@waline/client 3.14.0 → 3.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/comment.d.ts +2 -1
- package/dist/comment.js +2 -1
- package/dist/comment.js.map +1 -0
- package/dist/comment.umd.js +2 -0
- package/dist/comment.umd.js.map +1 -0
- package/dist/component.d.ts +2 -1
- package/dist/component.js +2 -1
- package/dist/component.js.map +1 -0
- package/dist/pageview.d.ts +2 -1
- package/dist/pageview.js +2 -1
- package/dist/pageview.js.map +1 -0
- package/dist/pageview.umd.js +2 -0
- package/dist/pageview.umd.js.map +1 -0
- package/dist/slim.d.ts +2 -1
- package/dist/slim.js +2 -1
- package/dist/slim.js.map +1 -0
- package/dist/{full.d.ts → waline.d.ts} +28 -20
- package/dist/waline.js +110 -0
- package/dist/waline.js.map +1 -0
- package/dist/waline.umd.js +110 -0
- package/dist/waline.umd.js.map +1 -0
- package/package.json +7 -7
- package/dist/full.js +0 -109
package/dist/full.js
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(e,t,n)=>(c(e,t,`default`),n&&c(n,t,`default`)),u=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));const d={"Content-Type":`application/json`},f=e=>`${e.replace(/\/?$/u,`/`)}api/`,p=(e,t=``)=>{if(typeof e==`object`&&e.errno)throw TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},m=({serverURL:e,lang:t,paths:n,type:r,signal:i})=>fetch(`${f(e)}article?path=${encodeURIComponent(n.join(`,`))}&type=${encodeURIComponent(r.join(`,`))}&lang=${t}`,{signal:i}).then(e=>e.json()).then(e=>p(e,`Get counter`).data),h=({serverURL:e,lang:t,path:n,type:r,action:i})=>fetch(`${f(e)}article?lang=${t}`,{method:`POST`,headers:d,body:JSON.stringify({path:n,type:r,action:i})}).then(e=>e.json()).then(e=>p(e,`Update counter`).data),g=({serverURL:e,lang:t,path:n,page:r,pageSize:i,sortBy:a,signal:o,token:s})=>{let c={};return s&&(c.Authorization=`Bearer ${s}`),fetch(`${f(e)}comment?path=${encodeURIComponent(n)}&pageSize=${i}&page=${r}&lang=${t}&sortBy=${a}`,{signal:o,headers:c}).then(e=>e.json()).then(e=>p(e,`Get comment data`).data)},_=({serverURL:e,lang:t,token:n,comment:r})=>{let i={"Content-Type":`application/json`};return n&&(i.Authorization=`Bearer ${n}`),fetch(`${f(e)}comment?lang=${t}`,{method:`POST`,headers:i,body:JSON.stringify(r)}).then(e=>e.json())},v=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${f(e)}comment/${r}?lang=${t}`,{method:`DELETE`,headers:{Authorization:`Bearer ${n}`}}).then(e=>e.json()).then(e=>p(e,`Delete comment`)),y=({serverURL:e,lang:t,token:n,objectId:r,comment:i})=>fetch(`${f(e)}comment/${r}?lang=${t}`,{method:`PUT`,headers:{...d,Authorization:`Bearer ${n}`},body:JSON.stringify(i)}).then(e=>e.json()).then(e=>p(e,`Update comment`)),b=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${f(e)}comment?type=count&url=${encodeURIComponent(n.join(`,`))}&lang=${t}`,{signal:r}).then(e=>e.json()).then(e=>p(e,`Get comment count`).data),x=()=>{let e=navigator.userAgent;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/iu.test(e)},S=({lang:e,serverURL:t})=>{let n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2;if(x())return location.href=`${t.replace(/\/$/u,``)}/ui/login?lng=${encodeURIComponent(e)}&redirect=${encodeURIComponent(location.href)}`,new Promise(()=>{});let i=window.open(`${t.replace(/\/$/u,``)}/ui/login?lng=${encodeURIComponent(e)}`,`_blank`,`width=450,height=450,left=${n},top=${r},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return i?.postMessage({type:`TOKEN`,data:null},`*`),new Promise(e=>{let t=({data:n})=>{!n||typeof n!=`object`||n.type!==`userInfo`||n.data.token&&(i?.close(),window.removeEventListener(`message`,t),e(n.data))};window.addEventListener(`message`,t)})},C=({serverURL:e,lang:t,paths:n,signal:r})=>m({serverURL:e,lang:t,paths:n,type:[`time`],signal:r}),w=e=>h({...e,type:`time`,action:`inc`}),T=({serverURL:e,lang:t,count:n,signal:r,token:i})=>{let a={};return i&&(a.Authorization=`Bearer ${i}`),fetch(`${f(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:a}).then(e=>e.json())},E=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${f(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(e=>e.json()).then(e=>p(e,`user list`)).then(e=>e.data),D=new Set([`nick`,`mail`,`link`]),O=e=>e.filter(e=>D.has(e)),k=[`//unpkg.com/@waline/emojis@1.1.0/weibo`],A=[`//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`],j=e=>new Promise((t,n)=>{if(e.size>128*1e3){n(Error(`File too large! File size limit 128KB`));return}let r=new FileReader;r.readAsDataURL(e),r.addEventListener(`load`,()=>{t(r.result)}),r.addEventListener(`error`,n)}),ee=e=>e?`<p class="wl-tex">TeX is not available in preview</p>`:`<span class="wl-tex">TeX is not available in preview</span>`,M=e=>{let t=(t,n={})=>fetch(`https://api.giphy.com/v1/gifs/${t}?${new URLSearchParams({lang:e,limit:`20`,rating:`g`,api_key:`6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp`,...n}).toString()}`).then(e=>e.json()).then(({data:e})=>e.map(e=>({title:e.title,src:e.images.downsized_medium.url})));return{search:e=>t(`search`,{q:e,offset:`0`}),default:()=>t(`trending`,{}),more:(e,n=0)=>t(`search`,{q:e,offset:n.toString()})}},te=RegExp(`(${/[\u4E00-\u9FFF\u3400-\u4DBF\uF900-\uFAFF\u3040-\u309F\uAC00-\uD7AF\u0400-\u04FF]+|\w+/u.source}|${/</u.source})|((?:${/(?:^|\s)\/\/(.+?)$/gmu.source})|(?:${/\/\*([\S\s]*?)\*\//gmu.source}))`,`gmiu`),N=[`23AC69`,`91C132`,`F19726`,`E8552D`,`1AAB8E`,`E1147F`,`2980C1`,`1BA1E6`,`9FA0A0`,`F19726`,`E30B20`,`E30B20`,`A3338B`],P={},F=e=>{let t=0;return e.replace(te,(e,n,r)=>{if(r)return`<span style="color: slategray">${r}</span>`;if(n===`<`)return`<`;let i;P[n]?i=P[n]:(i=N[t],P[n]=i);let a=`<span style="color: #${i}">${n}</span>`;return t=++t%N.length,a})},ne=`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.commentUnderReview.subPostComment.subSiteComment.subscribeToReplies`.split(`.`),I=e=>Object.fromEntries(e.map((e,t)=>[ne[t],e]));var L=I(`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?,Ihr Kommentar wird überprüft und ist derzeit nur für Sie sichtbar. Nach der Genehmigung wird er öffentlich angezeigt.,Abonnieren Sie die Kommentare zu diesem Beitrag,Abonnieren Sie die Kommentare auf dieser Seite,Abonnieren Sie die Antworten auf Ihre Kommentare`.split(`,`)),R=I(`NickName,NickName cannot be less than 3 bytes.,E-Mail,Please confirm your email address.,Website,Optional,Comment here...,No comment yet.,Submit,Like,Cancel like,Reply,Cancel reply,Comments,Refresh,Load More...,Preview,Emoji,Upload Image,seconds ago,minutes ago,hours ago,days ago,just now,Uploading,Login,logout,Admin,Sticky,Words,Please input comments between $0 and $1 words!
|
|
2
|
-
Current word number: $2,Anonymous,Dwarves,Hobbits,Ents,Wizards,Elves,Maiar,GIF,Search GIF,Profile,Approved,Waiting,Spam,Unsticky,Oldest,Latest,Hottest,What do you think?,Your comment is under review and is currently only visible to you. It will be publicly visible after approval.,Subscribe to comments of this post,Subscribe to comments of this site,Subscribe to replies of your comments`.split(`,`)),re=I(`Nombre de usuario,El nombre de usuario no puede tener menos de 3 bytes.,Correo electrónico,Por favor confirma tu dirección de correo electrónico.,Sitio web,Opcional,Comenta aquí...,Sin comentarios todavía.,Enviar,Like,Anular like,Responder,Anular respuesta,Comentarios,Recargar,Cargar Más...,Previsualizar,Emoji,Subir Imagen,segundos atrás,minutos atrás,horas atrás,días atrás,justo ahora,Subiendo,Iniciar sesión,cerrar sesión,Admin,Fijado,Palabras,Por favor escriba entre $0 y $1 palabras!
|
|
3
|
-
El número actual de palabras: $2,Anónimo,Enanos,Hobbits,Ents,Magos,Elfos,Maiar,GIF,Buscar GIF,Perfil,Aprobado,Esperando,Spam,Desfijar,Más antiguos,Más recientes,Más vistos,¿Qué piensas?,Tu comentario está en revisión y actualmente solo es visible para ti. Será visible públicamente después de la aprobación.,Suscribirse a los comentarios de esta publicación,Suscribirse a los comentarios de este sitio,Suscribirse a las respuestas de tus comentarios`.split(`,`)),ie=I(`Pseudo,Le pseudo ne peut pas faire moins de 3 octets.,E-mail,Veuillez confirmer votre adresse e-mail.,Site Web,Optionnel,Commentez ici...,Aucun commentaire pour l'instant.,Envoyer,J'aime,Annuler le j'aime,Répondre,Annuler la réponse,Commentaires,Actualiser,Charger plus...,Aperçu,Emoji,Télécharger une image,Il y a quelques secondes,Il y a quelques minutes,Il y a quelques heures,Il y a quelques jours,À l'instant,Téléchargement en cours,Connexion,Déconnexion,Admin,Épinglé,Mots,Veuillez saisir des commentaires entre $0 et $1 mots !
|
|
4
|
-
Nombre actuel de mots : $2,Anonyme,Nains,Hobbits,Ents,Mages,Elfes,Maïar,GIF,Rechercher un GIF,Profil,Approuvé,En attente,Indésirable,Détacher,Le plus ancien,Dernier,Le plus populaire,Qu'en pensez-vous ?,Votre commentaire est en cours de révision et n'est actuellement visible que par vous. Il sera visible publiquement après approbation.,S’abonner aux commentaires de ce post,S’abonner aux commentaires de ce site,S’abonner aux réponses de vos commentaires`.split(`,`)),ae=I(`Nama Panggilan,Nama Panggilan tidak boleh kurang dari 3 bita.,E-Mail,Silakan konfirmasi alamat email Anda.,Situs Web,Opsional,Tulis komentar di sini...,Belum ada komentar.,Kirim,Suka,Batal suka,Balas,Batal balas,Komentar,Segarkan,Muat Lebih Banyak...,Pratinjau,Emoji,Unggah Gambar,detik yang lalu,menit yang lalu,jam yang lalu,hari yang lalu,baru saja,Mengunggah,Masuk,Keluar,Admin,Sematkan,Kata,Silakan masukkan komentar antara $0 dan $1 kata!
|
|
5
|
-
Jumlah kata saat ini: $2,Anonim,Kurcaci,Hobbit,Ent,Penyihir,Peri,Maiar,GIF,Cari GIF,Profil,Disetujui,Menunggu,Spam,Lepas Sematan,Terlama,Terbaru,Terpopuler,Apa yang Anda pikirkan?,Komentar Anda sedang ditinjau dan saat ini hanya terlihat oleh Anda. Komentar akan terlihat secara publik setelah disetujui.,Berlangganan komentar di postingan ini,Berlangganan komentar di situs ini,Berlangganan balasan komentar Anda`.split(`,`)),z=I(`Nickname,Il nickname non può avere meno di 3 caratteri.,E-mail,Per favore conferma il tuo indirizzo e-mail.,Sito web,Facoltativo,Scrivi un commento...,Ancora nessun commento.,Invia,Mi piace,Annulla mi piace,Rispondi,Annulla risposta,Commenti,Aggiorna,Carica altri...,Anteprima,Emoji,Carica immagine,secondi fa,minuti fa,ore fa,giorni fa,adesso,Caricamento in corso...,Accedi,Esci,Admin,In evidenza,Parole,Inserisci un commento tra $0 e $1 parole!
|
|
6
|
-
Numero attuale di parole: $2,Anonimo,Nano,Hobbit,Ent,Mago,Elfo,Maiar,GIF,Cerca GIF,Profilo,Approvato,In attesa,Spam,Rimuovi evidenza,Più vecchi,Più recenti,Più popolari,Cosa ne pensi?,Il tuo commento è in fase di revisione ed è attualmente visibile solo a te. Sarà visibile pubblicamente dopo l'approvazione.,Iscriviti ai commenti di questo post,Iscriviti ai commenti di questo sito,Iscriviti alle risposte dei tuoi commenti`.split(`,`)),oe=I(`ニックネーム,3バイト以上のニックネームをご入力ください.,メールアドレス,メールアドレスをご確認ください.,サイト,オプション,ここにコメント,コメントしましょう~,提出する,Like,Cancel like,返信する,キャンセル,コメント,更新,さらに読み込む,プレビュー,絵文字,画像をアップロード,秒前,分前,時間前,日前,たっだ今,アップロード,ログインする,ログアウト,管理者,トップに置く,ワード,コメントは $0 から $1 ワードの間でなければなりません!
|
|
7
|
-
現在の単語番号: $2,匿名,うえにん,なかにん,しもおし,特にしもおし,かげ,なぬし,GIF,探す GIF,個人情報,承認済み,待っている,スパム,べたつかない,逆順,正順,人気順,どう思いますか?,あなたのコメントは審査中で、現在はあなただけに表示されています。承認後に公開されます。,この投稿のコメントを購読する,このサイトのコメントを購読する,あなたのコメントの返信を購読する`.split(`,`)),se=I(`닉네임,닉네임은 3바이트 이상이어야 합니다.,이메일,이메일 주소를 확인해 주세요.,웹사이트,선택사항,여기에 댓글을 입력하세요...,아직 댓글이 없습니다.,제출,좋아요,좋아요 취소,답글,답글 취소,댓글,새로고침,더 보기...,미리보기,이모지,이미지 업로드,초 전,분 전,시간 전,일 전,방금 전,업로드 중,로그인,로그아웃,관리자,고정,글자 수,댓글은 $0자에서 $1자 사이여야 합니다!
|
|
8
|
-
현재 글자 수: $2,익명,난쟁이,호빗,엔트,마법사,엘프,마이아,GIF,GIF 검색,프로필,승인됨,대기 중,스팸,고정 해제,오래된 순,최신 순,인기순,어떻게 생각하시나요?,댓글이 검토 중이며 현재 본인만 볼 수 있습니다. 승인 후 공개됩니다.,이 게시물의 댓글 구독,이 사이트의 댓글 구독,댓글에 대한 답글 구독`.split(`,`)),ce=I(`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!
|
|
9
|
-
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?(Seu comentário está em revisão e atualmente está visível apenas para você. Ele será visível publicamente após a aprovação.(Assinar os comentários deste post(Assinar os comentários deste site(Assinar as respostas dos seus comentários`.split(`(`)),B=I(`Псевдоним(Никнейм не может быть меньше 3 байт.(Эл. адрес(Пожалуйста, подтвердите адрес вашей электронной почты.(Веб-сайт(Необязательный(Комментарий здесь...(Пока нет комментариев.(Отправить(Like(Cancel like(Отвечать(Отменить ответ(Комментарии(Обновить(Загрузи больше...(Превью(эмодзи(Загрузить изображение(секунд назад(несколько минут назад(несколько часов назад(дней назад(прямо сейчас(Загрузка(Авторизоваться(Выход из системы(Админ(Липкий(Слова(Пожалуйста, введите комментарии от $0 до $1 слов!
|
|
10
|
-
Номер текущего слова: $2(Анонимный(Dwarves(Hobbits(Ents(Wizards(Elves(Maiar(GIF(Поиск GIF(Персональные данные(Одобренный(Ожидающий(Спам(Нелипкий(самый старый(последний(самый горячий(Что вы думаете?(Ваш комментарий находится на рассмотрении и в настоящее время виден только вам. После одобрения он станет общедоступным.(Подписаться на комментарии к этому посту(Подписаться на комментарии этого сайта(Подписаться на ответы ваших комментариев`.split(`(`)),le=I(`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ừ!
|
|
11
|
-
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?,Bình luận của bạn đang được xem xét và hiện chỉ hiển thị với bạn. Nó sẽ được công khai sau khi được phê duyệt.,Đăng ký nhận xét của bài viết này,Đăng ký nhận xét của trang web này,Đăng ký nhận xét của bạn`.split(`,`)),ue=I(`昵称,昵称不能少于3个字符,邮箱,请填写正确的邮件地址,网址,可选,欢迎评论,来发评论吧~,提交,喜欢,取消喜欢,回复,取消回复,评论,刷新,加载更多...,预览,表情,上传图片,秒前,分钟前,小时前,天前,刚刚,正在上传,登录,退出,博主,置顶,字,评论字数应在 $0 到 $1 字之间!
|
|
12
|
-
当前字数:$2,匿名,潜水,冒泡,吐槽,活跃,话痨,传说,表情包,搜索表情包,个人资料,通过,待审核,垃圾,取消置顶,按倒序,按正序,按热度,你认为这篇文章怎么样?,评论正在审核中,当前仅自己可见,审核通过后公开可见。,订阅本文评论,订阅本站评论,订阅你的评论回复`.split(`,`));const V={zh:ue,"zh-cn":ue,"zh-tw":I(`暱稱,暱稱不能少於3個字元,郵箱,請填寫正確的郵件地址,網址,可選,歡迎留言,來發留言吧~,送出,喜歡,取消喜歡,回覆,取消回覆,留言,重整,載入更多...,預覽,表情,上傳圖片,秒前,分鐘前,小時前,天前,剛剛,正在上傳,登入,登出,管理者,置頂,字,留言字數應在 $0 到 $1 字之間!
|
|
13
|
-
目前字數:$2,匿名,潛水,冒泡,吐槽,活躍,多話,傳說,表情包,搜尋表情包,個人資料,通過,待審核,垃圾,取消置頂,最早,最新,熱門,你認為這篇文章怎麼樣?,您的評論正在審核中,目前僅您可見。審核通過後將公開顯示。,訂閱此文章的評論,訂閱本站的評論,訂閱您的評論回覆`.split(`,`)),en:R,"en-us":R,fr:ie,"fr-fr":ie,id:ae,"id-id":ae,it:z,"it-it":z,jp:oe,"jp-jp":oe,ko:se,"ko-kr":se,"pt-br":ce,ru:B,"ru-ru":B,vi:le,"vi-vn":le,de:L,es:re,"es-mx":re},de=e=>V[e.toLowerCase()]??V[`en-us`],fe=e=>Object.keys(V).includes(e.toLowerCase())?e:`en-US`,pe={latest:`insertedAt_desc`,oldest:`insertedAt_asc`,hottest:`like_desc`},me=Object.keys(pe),he=Symbol(`waline-config`),ge=e=>{try{return decodeURI(e)}catch{return e}},_e=(e=``)=>e.replace(/\/$/u,``),ve=e=>/^(https?:)?\/\//u.test(e),ye=e=>{let t=_e(e);return ve(t)?t:`https://${t}`},be=e=>Array.isArray(e)?e:typeof e==`number`&&e>0?[0,e]:!1,H=(e,t)=>e==null||e===!0?t:e===!1?null:e,xe=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>`u`?`en-US`:navigator.language,locale:r,meta:i=[`nick`,`mail`,`link`],requiredMeta:a=[],dark:o=!1,pageSize:s=10,wordLimit:c,noCopyright:l=!1,noRss:u=!1,login:d=`enable`,recaptchaV3Key:f=``,turnstileKey:p=``,commentSorting:m=`latest`,emoji:h=k,imageUploader:g,highlighter:_,texRenderer:v,search:y,reaction:b,...x})=>({serverURL:ye(e),path:ge(t),lang:fe(n),locale:{...de(fe(n)),...typeof r==`object`?r:{}},wordLimit:be(c),meta:O(i),requiredMeta:O(a),dark:o,pageSize:s,commentSorting:m,login:d,noCopyright:l,noRss:u,recaptchaV3Key:f,turnstileKey:p,...x,reaction:b===!0?A:b||null,imageUploader:H(g,j),highlighter:H(_,F),texRenderer:H(v,ee),emoji:H(h,k),search:H(y,M(n))}),Se=e=>typeof e==`string`,U=`{--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}`,Ce=e=>Se(e)?e===`auto`?`@media(prefers-color-scheme:dark){body${U}}`:`${e}${U}`:e===!0?`:root${U}`:``,we=(e,t)=>{let n=e.toString();for(;n.length<t;)n=`0${n}`;return n},Te=e=>{let t=we(e.getDate(),2),n=we(e.getMonth()+1,2);return`${we(e.getFullYear(),2)}-${n}-${t}`},Ee=(e,t,n)=>{if(!e)return``;let r=Se(e)?new Date(e.includes(` `)?e.replaceAll(`-`,`/`):e):e,i=t.getTime()-r.getTime(),a=Math.floor(i/(24*3600*1e3));if(a===0){let e=i%(24*3600*1e3),t=Math.floor(e/(3600*1e3));if(t===0){let t=e%(3600*1e3),r=Math.floor(t/(60*1e3));if(r===0){let e=t%(60*1e3);return`${Math.round(e/1e3)} ${n.seconds}`}return`${r} ${n.minutes}`}return`${t} ${n.hours}`}return a<0?n.now:a<8?`${a} ${n.days}`:Te(r)},De=/^[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])?)*$/u,Oe=e=>De.test(e);
|
|
14
|
-
/**
|
|
15
|
-
* @vue/shared v3.5.34
|
|
16
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
17
|
-
* @license MIT
|
|
18
|
-
**/
|
|
19
|
-
var ke=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}let n={},r=[],i=()=>{},a=()=>!1,o=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),s=e=>e.startsWith(`onUpdate:`),c=Object.assign,l=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},u=Object.prototype.hasOwnProperty,d=(e,t)=>u.call(e,t),f=Array.isArray,p=e=>C(e)===`[object Map]`,m=e=>C(e)===`[object Set]`,h=e=>C(e)===`[object Date]`,g=e=>C(e)===`[object RegExp]`,_=e=>typeof e==`function`,v=e=>typeof e==`string`,y=e=>typeof e==`symbol`,b=e=>typeof e==`object`&&!!e,x=e=>(b(e)||_(e))&&_(e.then)&&_(e.catch),S=Object.prototype.toString,C=e=>S.call(e),w=e=>C(e).slice(8,-1),T=e=>C(e)===`[object Object]`,E=e=>v(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,D=t(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),O=t(`bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo`),k=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},A=/-\w/g,j=k(e=>e.replace(A,e=>e.slice(1).toUpperCase())),ee=/\B([A-Z])/g,M=k(e=>e.replace(ee,`-$1`).toLowerCase()),te=k(e=>e.charAt(0).toUpperCase()+e.slice(1)),N=k(e=>e?`on${te(e)}`:``),P=(e,t)=>!Object.is(e,t),F=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ne=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},I=e=>{let t=parseFloat(e);return isNaN(t)?e:t},L=e=>{let t=v(e)?Number(e):NaN;return isNaN(t)?e:t},R,re=()=>R||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{},ie=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function ae(e){return ie.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function z(e,t){return e+JSON.stringify(t,(e,t)=>typeof t==`function`?t.toString():t)}let oe={TEXT:1,1:`TEXT`,CLASS:2,2:`CLASS`,STYLE:4,4:`STYLE`,PROPS:8,8:`PROPS`,FULL_PROPS:16,16:`FULL_PROPS`,NEED_HYDRATION:32,32:`NEED_HYDRATION`,STABLE_FRAGMENT:64,64:`STABLE_FRAGMENT`,KEYED_FRAGMENT:128,128:`KEYED_FRAGMENT`,UNKEYED_FRAGMENT:256,256:`UNKEYED_FRAGMENT`,NEED_PATCH:512,512:`NEED_PATCH`,DYNAMIC_SLOTS:1024,1024:`DYNAMIC_SLOTS`,DEV_ROOT_FRAGMENT:2048,2048:`DEV_ROOT_FRAGMENT`,CACHED:-1,"-1":`CACHED`,BAIL:-2,"-2":`BAIL`},se={1:`TEXT`,2:`CLASS`,4:`STYLE`,8:`PROPS`,16:`FULL_PROPS`,32:`NEED_HYDRATION`,64:`STABLE_FRAGMENT`,128:`KEYED_FRAGMENT`,256:`UNKEYED_FRAGMENT`,512:`NEED_PATCH`,1024:`DYNAMIC_SLOTS`,2048:`DEV_ROOT_FRAGMENT`,[-1]:`CACHED`,[-2]:`BAIL`},ce={ELEMENT:1,1:`ELEMENT`,FUNCTIONAL_COMPONENT:2,2:`FUNCTIONAL_COMPONENT`,STATEFUL_COMPONENT:4,4:`STATEFUL_COMPONENT`,TEXT_CHILDREN:8,8:`TEXT_CHILDREN`,ARRAY_CHILDREN:16,16:`ARRAY_CHILDREN`,SLOTS_CHILDREN:32,32:`SLOTS_CHILDREN`,TELEPORT:64,64:`TELEPORT`,SUSPENSE:128,128:`SUSPENSE`,COMPONENT_SHOULD_KEEP_ALIVE:256,256:`COMPONENT_SHOULD_KEEP_ALIVE`,COMPONENT_KEPT_ALIVE:512,512:`COMPONENT_KEPT_ALIVE`,COMPONENT:6,6:`COMPONENT`},B={STABLE:1,1:`STABLE`,DYNAMIC:2,2:`DYNAMIC`,FORWARDED:3,3:`FORWARDED`},le={1:`STABLE`,2:`DYNAMIC`,3:`FORWARDED`},ue=t(`Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol`),V=ue;function de(e,t=0,n=e.length){if(t=Math.max(0,Math.min(t,e.length)),n=Math.max(0,Math.min(n,e.length)),t>n)return``;let r=e.split(/(\r?\n)/),i=r.filter((e,t)=>t%2==1);r=r.filter((e,t)=>t%2==0);let a=0,o=[];for(let e=0;e<r.length;e++)if(a+=r[e].length+(i[e]&&i[e].length||0),a>=t){for(let s=e-2;s<=e+2||n>a;s++){if(s<0||s>=r.length)continue;let c=s+1;o.push(`${c}${` `.repeat(Math.max(3-String(c).length,0))}| ${r[s]}`);let l=r[s].length,u=i[s]&&i[s].length||0;if(s===e){let e=t-(a-(l+u)),r=Math.max(1,n>a?l-e:n-t);o.push(` | `+` `.repeat(e)+`^`.repeat(r))}else if(s>e){if(n>a){let e=Math.max(Math.min(n-a,l),1);o.push(` | `+`^`.repeat(e))}a+=l+u}}break}return o.join(`
|
|
20
|
-
`)}function fe(e){if(f(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=v(r)?ge(r):fe(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(v(e)||b(e))return e}let pe=/;(?![^(]*\))/g,me=/:([^]+)/,he=/\/\*[^]*?\*\//g;function ge(e){let t={};return e.replace(he,``).split(pe).forEach(e=>{if(e){let n=e.split(me);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function _e(e){if(!e)return``;if(v(e))return e;let t=``;for(let n in e){let r=e[n];if(v(r)||typeof r==`number`){let e=n.startsWith(`--`)?n:M(n);t+=`${e}:${r};`}}return t}function ve(e){let t=``;if(v(e))t=e;else if(f(e))for(let n=0;n<e.length;n++){let r=ve(e[n]);r&&(t+=r+` `)}else if(b(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function ye(e){if(!e)return null;let{class:t,style:n}=e;return t&&!v(t)&&(e.class=ve(t)),n&&(e.style=fe(n)),e}let be=t(`html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot`),H=t(`svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view`),xe=t(`annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics`),Se=t(`area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr`),U=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,Ce=t(U),we=t(U+`,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);function Te(e){return!!e||e===``}let Ee=/[>/="'\u0009\u000a\u000c\u0020]/,De={};function Oe(e){if(De.hasOwnProperty(e))return De[e];let t=Ee.test(e);return t&&console.error(`unsafe attribute name: ${e}`),De[e]=!t}let ke={acceptCharset:`accept-charset`,className:`class`,htmlFor:`for`,httpEquiv:`http-equiv`},Ae=t(`accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap`),je=t(`xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan`),Me=t(`accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns`);function Ne(e){if(e==null)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`}let Pe=/["'&<>]/;function Fe(e){let t=``+e,n=Pe.exec(t);if(!n)return t;let r=``,i,a,o=0;for(a=n.index;a<t.length;a++){switch(t.charCodeAt(a)){case 34:i=`"`;break;case 38:i=`&`;break;case 39:i=`'`;break;case 60:i=`<`;break;case 62:i=`>`;break;default:continue}o!==a&&(r+=t.slice(o,a)),o=a+1,r+=i}return o===a?r:r+t.slice(o,a)}let Ie=/^-?>|<!--|-->|--!>|<!-$/g;function W(e){return e.replace(Ie,``)}let Le=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function Re(e,t){return e.replace(Le,e=>t?e===`"`?`\\\\\\"`:`\\\\${e}`:`\\${e}`)}function ze(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Be(e[r],t[r]);return n}function Be(e,t){if(e===t)return!0;let n=h(e),r=h(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=y(e),r=y(t),n||r)return e===t;if(n=f(e),r=f(t),n||r)return n&&r?ze(e,t):!1;if(n=b(e),r=b(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!Be(e[n],t[n]))return!1}}return String(e)===String(t)}function G(e,t){return e.findIndex(e=>Be(e,t))}let K=e=>!!(e&&e.__v_isRef===!0),Ve=e=>v(e)?e:e==null?``:f(e)||b(e)&&(e.toString===S||!_(e.toString))?K(e)?Ve(e.value):JSON.stringify(e,q,2):String(e),q=(e,t)=>K(t)?q(e,t.value):p(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[He(t,r)+` =>`]=n,e),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>He(e))}:y(t)?He(t):b(t)&&!f(t)&&!T(t)?String(t):t,He=(e,t=``)=>y(e)?`Symbol(${e.description??t})`:e;function Ue(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}e.EMPTY_ARR=r,e.EMPTY_OBJ=n,e.NO=a,e.NOOP=i,e.PatchFlagNames=se,e.PatchFlags=oe,e.ShapeFlags=ce,e.SlotFlags=B,e.camelize=j,e.capitalize=te,e.cssVarNameEscapeSymbolsRE=Le,e.def=ne,e.escapeHtml=Fe,e.escapeHtmlComment=W,e.extend=c,e.genCacheKey=z,e.genPropsAccessExp=ae,e.generateCodeFrame=de,e.getEscapedCssVarName=Re,e.getGlobalThis=re,e.hasChanged=P,e.hasOwn=d,e.hyphenate=M,e.includeBooleanAttr=Te,e.invokeArrayFns=F,e.isArray=f,e.isBooleanAttr=we,e.isBuiltInDirective=O,e.isDate=h,e.isFunction=_,e.isGloballyAllowed=ue,e.isGloballyWhitelisted=V,e.isHTMLTag=be,e.isIntegerKey=E,e.isKnownHtmlAttr=Ae,e.isKnownMathMLAttr=Me,e.isKnownSvgAttr=je,e.isMap=p,e.isMathMLTag=xe,e.isModelListener=s,e.isObject=b,e.isOn=o,e.isPlainObject=T,e.isPromise=x,e.isRegExp=g,e.isRenderableAttrValue=Ne,e.isReservedProp=D,e.isSSRSafeAttrName=Oe,e.isSVGTag=H,e.isSet=m,e.isSpecialBooleanAttr=Ce,e.isString=v,e.isSymbol=y,e.isVoidTag=Se,e.looseEqual=Be,e.looseIndexOf=G,e.looseToNumber=I,e.makeMap=t,e.normalizeClass=ve,e.normalizeCssVarValue=Ue,e.normalizeProps=ye,e.normalizeStyle=fe,e.objectToString=S,e.parseStringStyle=ge,e.propsToAttrMap=ke,e.remove=l,e.slotFlagsText=le,e.stringifyStyle=_e,e.toDisplayString=Ve,e.toHandlerKey=N,e.toNumber=L,e.toRawType=w,e.toTypeString=C})),Ae=o(((e,t)=>{t.exports=ke()})),je=o((e=>{
|
|
21
|
-
/**
|
|
22
|
-
* @vue/reactivity v3.5.34
|
|
23
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
24
|
-
* @license MIT
|
|
25
|
-
**/
|
|
26
|
-
Object.defineProperty(e,`__esModule`,{value:!0});var t=Ae();let n;var r=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&n&&(n.active?(this.parent=n,this.index=(n.scopes||=[]).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){let t=n;try{return n=this,e()}finally{n=t}}}on(){++this._on===1&&(this.prevScope=n,n=this)}off(){if(this._on>0&&--this._on===0){if(n===this)n=this.prevScope;else{let e=n;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function i(e){return new r(e)}function a(){return n}function o(e,t=!1){n&&n.cleanups.push(e)}let s,c={ACTIVE:1,1:`ACTIVE`,RUNNING:2,2:`RUNNING`,TRACKING:4,4:`TRACKING`,NOTIFIED:8,8:`NOTIFIED`,DIRTY:16,16:`DIRTY`,ALLOW_RECURSE:32,32:`ALLOW_RECURSE`,PAUSED:64,64:`PAUSED`,EVALUATED:128,128:`EVALUATED`},l=new WeakSet;var u=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,n&&(n.active?n.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,l.has(this)&&(l.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||m(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,j(this),_(this);let e=s,t=T;s=this,T=!0;try{return this.fn()}finally{v(this),s=e,T=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)x(e);this.deps=this.depsTail=void 0,j(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?l.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){y(this)&&this.run()}get dirty(){return y(this)}};let d=0,f,p;function m(e,t=!1){if(e.flags|=8,t){e.next=p,p=e;return}e.next=f,f=e}function h(){d++}function g(){if(--d>0)return;if(p){let e=p;for(p=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;f;){let t=f;for(f=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function _(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function v(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),x(r),S(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function y(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(b(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function b(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ee)||(e.globalVersion=ee,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!y(e))))return;e.flags|=2;let n=e.dep,r=s,i=T;s=e,T=!0;try{_(e);let r=e.fn(e._value);(n.version===0||t.hasChanged(r,e._value))&&(e.flags|=128,e._value=r,n.version++)}catch(e){throw n.version++,e}finally{s=r,T=i,v(e),e.flags&=-3}}function x(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)x(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function S(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function C(e,n){e.effect instanceof u&&(e=e.effect.fn);let r=new u(e);n&&t.extend(r,n);try{r.run()}catch(e){throw r.stop(),e}let i=r.run.bind(r);return i.effect=r,i}function w(e){e.effect.stop()}let T=!0,E=[];function D(){E.push(T),T=!1}function O(){E.push(T),T=!0}function k(){let e=E.pop();T=e===void 0?!0:e}function A(e,t=!1){s instanceof u&&(s.cleanup=e)}function j(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=s;s=void 0;try{t()}finally{s=e}}}let ee=0;var M=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},te=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!s||!T||s===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==s)t=this.activeLink=new M(s,this),s.deps?(t.prevDep=s.depsTail,s.depsTail.nextDep=t,s.depsTail=t):s.deps=s.depsTail=t,N(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=s.depsTail,t.nextDep=void 0,s.depsTail.nextDep=t,s.depsTail=t,s.deps===t&&(s.deps=e)}return t}trigger(e){this.version++,ee++,this.notify(e)}notify(e){h();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{g()}}};function N(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)N(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}let P=new WeakMap,F=Symbol(``),ne=Symbol(``),I=Symbol(``);function L(e,t,n){if(T&&s){let t=P.get(e);t||P.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new te),r.map=t,r.key=n),r.track()}}function R(e,n,r,i,a,o){let s=P.get(e);if(!s){ee++;return}let c=e=>{e&&e.trigger()};if(h(),n===`clear`)s.forEach(c);else{let a=t.isArray(e),o=a&&t.isIntegerKey(r);if(a&&r===`length`){let e=Number(i);s.forEach((n,r)=>{(r===`length`||r===I||!t.isSymbol(r)&&r>=e)&&c(n)})}else switch((r!==void 0||s.has(void 0))&&c(s.get(r)),o&&c(s.get(I)),n){case`add`:a?o&&c(s.get(`length`)):(c(s.get(F)),t.isMap(e)&&c(s.get(ne)));break;case`delete`:a||(c(s.get(F)),t.isMap(e)&&c(s.get(ne)));break;case`set`:t.isMap(e)&&c(s.get(F));break}}g()}function re(e,t){let n=P.get(e);return n&&n.get(t)}function ie(e){let t=q(e);return t===e?t:(L(t,`iterate`,I),K(e)?t:t.map(Ue))}function ae(e){return L(e=q(e),`iterate`,I),e}function z(e,t){return G(e)?We(Be(e)?Ue(t):t):Ue(t)}let oe={__proto__:null,[Symbol.iterator](){return se(this,Symbol.iterator,e=>z(this,e))},concat(...e){return ie(this).concat(...e.map(e=>t.isArray(e)?ie(e):e))},entries(){return se(this,`entries`,e=>(e[1]=z(this,e[1]),e))},every(e,t){return B(this,`every`,e,t,void 0,arguments)},filter(e,t){return B(this,`filter`,e,t,e=>e.map(e=>z(this,e)),arguments)},find(e,t){return B(this,`find`,e,t,e=>z(this,e),arguments)},findIndex(e,t){return B(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return B(this,`findLast`,e,t,e=>z(this,e),arguments)},findLastIndex(e,t){return B(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return B(this,`forEach`,e,t,void 0,arguments)},includes(...e){return ue(this,`includes`,e)},indexOf(...e){return ue(this,`indexOf`,e)},join(e){return ie(this).join(e)},lastIndexOf(...e){return ue(this,`lastIndexOf`,e)},map(e,t){return B(this,`map`,e,t,void 0,arguments)},pop(){return V(this,`pop`)},push(...e){return V(this,`push`,e)},reduce(e,...t){return le(this,`reduce`,e,t)},reduceRight(e,...t){return le(this,`reduceRight`,e,t)},shift(){return V(this,`shift`)},some(e,t){return B(this,`some`,e,t,void 0,arguments)},splice(...e){return V(this,`splice`,e)},toReversed(){return ie(this).toReversed()},toSorted(e){return ie(this).toSorted(e)},toSpliced(...e){return ie(this).toSpliced(...e)},unshift(...e){return V(this,`unshift`,e)},values(){return se(this,`values`,e=>z(this,e))}};function se(e,t,n){let r=ae(e),i=r[t]();return r!==e&&!K(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}let ce=Array.prototype;function B(e,t,n,r,i,a){let o=ae(e),s=o!==e&&!K(e),c=o[t];if(c!==ce[t]){let t=c.apply(e,a);return s?Ue(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,z(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function le(e,t,n,r){let i=ae(e),a=i!==e&&!K(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=z(e,t)),n.call(this,t,z(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?z(e,c):c}function ue(e,t,n){let r=q(e);L(r,`iterate`,I);let i=r[t](...n);return(i===-1||i===!1)&&Ve(n[0])?(n[0]=q(n[0]),r[t](...n)):i}function V(e,t,n=[]){D(),h();let r=q(e)[t].apply(e,n);return g(),k(),r}let de=t.makeMap(`__proto__,__v_isRef,__isVue`),fe=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(t.isSymbol));function pe(e){t.isSymbol(e)||(e=String(e));let n=q(this);return L(n,`has`,e),n.hasOwnProperty(e)}var me=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,n,r){if(n===`__v_skip`)return e.__v_skip;let i=this._isReadonly,a=this._isShallow;if(n===`__v_isReactive`)return!i;if(n===`__v_isReadonly`)return i;if(n===`__v_isShallow`)return a;if(n===`__v_raw`)return r===(i?a?Ne:Me:a?je:ke).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;let o=t.isArray(e);if(!i){let e;if(o&&(e=oe[n]))return e;if(n===`hasOwnProperty`)return pe}let s=Reflect.get(e,n,J(e)?e:r);if((t.isSymbol(n)?fe.has(n):de(n))||(i||L(e,`get`,n),a))return s;if(J(s)){let e=o&&t.isIntegerKey(n)?s:s.value;return i&&t.isObject(e)?Le(e):e}return t.isObject(s)?i?Le(s):Ie(s):s}},he=class extends me{constructor(e=!1){super(!1,e)}set(e,n,r,i){let a=e[n],o=t.isArray(e)&&t.isIntegerKey(n);if(!this._isShallow){let e=G(a);if(!K(r)&&!G(r)&&(a=q(a),r=q(r)),!o&&J(a)&&!J(r))return e||(a.value=r),!0}let s=o?Number(n)<e.length:t.hasOwn(e,n),c=Reflect.set(e,n,r,J(e)?e:i);return e===q(i)&&(s?t.hasChanged(r,a)&&R(e,`set`,n,r):R(e,`add`,n,r)),c}deleteProperty(e,n){let r=t.hasOwn(e,n);e[n];let i=Reflect.deleteProperty(e,n);return i&&r&&R(e,`delete`,n,void 0),i}has(e,n){let r=Reflect.has(e,n);return(!t.isSymbol(n)||!fe.has(n))&&L(e,`has`,n),r}ownKeys(e){return L(e,`iterate`,t.isArray(e)?`length`:F),Reflect.ownKeys(e)}},ge=class extends me{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}};let _e=new he,ve=new ge,ye=new he(!0),be=new ge(!0),H=e=>e,xe=e=>Reflect.getPrototypeOf(e);function Se(e,n,r){return function(...i){let a=this.__v_raw,o=q(a),s=t.isMap(o),c=e===`entries`||e===Symbol.iterator&&s,l=e===`keys`&&s,u=a[e](...i),d=r?H:n?We:Ue;return!n&&L(o,`iterate`,l?ne:F),t.extend(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function U(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Ce(e,n){let r={get(r){let i=this.__v_raw,a=q(i),o=q(r);e||(t.hasChanged(r,o)&&L(a,`get`,r),L(a,`get`,o));let{has:s}=xe(a),c=n?H:e?We:Ue;if(s.call(a,r))return c(i.get(r));if(s.call(a,o))return c(i.get(o));i!==a&&i.get(r)},get size(){let t=this.__v_raw;return!e&&L(q(t),`iterate`,F),t.size},has(n){let r=this.__v_raw,i=q(r),a=q(n);return e||(t.hasChanged(n,a)&&L(i,`has`,n),L(i,`has`,a)),n===a?r.has(n):r.has(n)||r.has(a)},forEach(t,r){let i=this,a=i.__v_raw,o=q(a),s=n?H:e?We:Ue;return!e&&L(o,`iterate`,F),a.forEach((e,n)=>t.call(r,s(e),s(n),i))}};return t.extend(r,e?{add:U(`add`),set:U(`set`),delete:U(`delete`),clear:U(`clear`)}:{add(e){let r=q(this),i=xe(r),a=q(e),o=!n&&!K(e)&&!G(e)?a:e;return i.has.call(r,o)||t.hasChanged(e,o)&&i.has.call(r,e)||t.hasChanged(a,o)&&i.has.call(r,a)||(r.add(o),R(r,`add`,o,o)),this},set(e,r){!n&&!K(r)&&!G(r)&&(r=q(r));let i=q(this),{has:a,get:o}=xe(i),s=a.call(i,e);s||=(e=q(e),a.call(i,e));let c=o.call(i,e);return i.set(e,r),s?t.hasChanged(r,c)&&R(i,`set`,e,r):R(i,`add`,e,r),this},delete(e){let t=q(this),{has:n,get:r}=xe(t),i=n.call(t,e);i||=(e=q(e),n.call(t,e)),r&&r.call(t,e);let a=t.delete(e);return i&&R(t,`delete`,e,void 0),a},clear(){let e=q(this),t=e.size!==0,n=e.clear();return t&&R(e,`clear`,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(t=>{r[t]=Se(t,e,n)}),r}function we(e,n){let r=Ce(e,n);return(n,i,a)=>i===`__v_isReactive`?!e:i===`__v_isReadonly`?e:i===`__v_raw`?n:Reflect.get(t.hasOwn(r,i)&&i in n?r:n,i,a)}let Te={get:we(!1,!1)},Ee={get:we(!1,!0)},De={get:we(!0,!1)},Oe={get:we(!0,!0)},ke=new WeakMap,je=new WeakMap,Me=new WeakMap,Ne=new WeakMap;function Pe(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Fe(e){return e.__v_skip||!Object.isExtensible(e)?0:Pe(t.toRawType(e))}function Ie(e){return G(e)?e:ze(e,!1,_e,Te,ke)}function W(e){return ze(e,!1,ye,Ee,je)}function Le(e){return ze(e,!0,ve,De,Me)}function Re(e){return ze(e,!0,be,Oe,Ne)}function ze(e,n,r,i,a){if(!t.isObject(e)||e.__v_raw&&!(n&&e.__v_isReactive))return e;let o=Fe(e);if(o===0)return e;let s=a.get(e);if(s)return s;let c=new Proxy(e,o===2?i:r);return a.set(e,c),c}function Be(e){return G(e)?Be(e.__v_raw):!!(e&&e.__v_isReactive)}function G(e){return!!(e&&e.__v_isReadonly)}function K(e){return!!(e&&e.__v_isShallow)}function Ve(e){return e?!!e.__v_raw:!1}function q(e){let t=e&&e.__v_raw;return t?q(t):e}function He(e){return!t.hasOwn(e,`__v_skip`)&&Object.isExtensible(e)&&t.def(e,`__v_skip`,!0),e}let Ue=e=>t.isObject(e)?Ie(e):e,We=e=>t.isObject(e)?Le(e):e;function J(e){return e?e.__v_isRef===!0:!1}function Ge(e){return qe(e,!1)}function Ke(e){return qe(e,!0)}function qe(e,t){return J(e)?e:new Je(e,t)}var Je=class{constructor(e,t){this.dep=new te,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:q(e),this._value=t?e:Ue(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let n=this._rawValue,r=this.__v_isShallow||K(e)||G(e);e=r?e:q(e),t.hasChanged(e,n)&&(this._rawValue=e,this._value=r?e:Ue(e),this.dep.trigger())}};function Ye(e){e.dep&&e.dep.trigger()}function Xe(e){return J(e)?e.value:e}function Ze(e){return t.isFunction(e)?e():Xe(e)}let Qe={get:(e,t,n)=>t===`__v_raw`?e:Xe(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return J(i)&&!J(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function $e(e){return Be(e)?e:new Proxy(e,Qe)}var et=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new te,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function tt(e){return new et(e)}function nt(e){let n=t.isArray(e)?Array(e.length):{};for(let t in e)n[t]=ot(e,t);return n}var rt=class{constructor(e,n,r){this._object=e,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=t.isSymbol(n)?n:String(n),this._raw=q(e);let i=!0,a=e;if(!t.isArray(e)||t.isSymbol(this._key)||!t.isIntegerKey(this._key))do i=!Ve(a)||K(a);while(i&&(a=a.__v_raw));this._shallow=i}get value(){let e=this._object[this._key];return this._shallow&&(e=Xe(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&J(this._raw[this._key])){let t=this._object[this._key];if(J(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return re(this._raw,this._key)}},it=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function at(e,n,r){return J(e)?e:t.isFunction(e)?new it(e):t.isObject(e)&&arguments.length>1?ot(e,n,r):Ge(e)}function ot(e,t,n){return new rt(e,t,n)}var st=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new te(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ee-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&s!==this)return m(this,!0),!0}get value(){let e=this.dep.track();return b(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function ct(e,n,r=!1){let i,a;return t.isFunction(e)?i=e:(i=e.get,a=e.set),new st(i,a,r)}let lt={GET:`get`,HAS:`has`,ITERATE:`iterate`},ut={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},dt={SKIP:`__v_skip`,IS_REACTIVE:`__v_isReactive`,IS_READONLY:`__v_isReadonly`,IS_SHALLOW:`__v_isShallow`,RAW:`__v_raw`,IS_REF:`__v_isRef`},ft={WATCH_GETTER:2,2:`WATCH_GETTER`,WATCH_CALLBACK:3,3:`WATCH_CALLBACK`,WATCH_CLEANUP:4,4:`WATCH_CLEANUP`},pt={},mt=new WeakMap,ht;function gt(){return ht}function _t(e,t=!1,n=ht){if(n){let t=mt.get(n);t||mt.set(n,t=[]),t.push(e)}}function vt(e,n,r=t.EMPTY_OBJ){let{immediate:i,deep:o,once:s,scheduler:c,augmentJob:l,call:d}=r,f=e=>o?e:K(e)||o===!1||o===0?yt(e,1):yt(e),p,m,h,g,_=!1,v=!1;if(J(e)?(m=()=>e.value,_=K(e)):Be(e)?(m=()=>f(e),_=!0):t.isArray(e)?(v=!0,_=e.some(e=>Be(e)||K(e)),m=()=>e.map(e=>{if(J(e))return e.value;if(Be(e))return f(e);if(t.isFunction(e))return d?d(e,2):e()})):m=t.isFunction(e)?n?d?()=>d(e,2):e:()=>{if(h){D();try{h()}finally{k()}}let t=ht;ht=p;try{return d?d(e,3,[g]):e(g)}finally{ht=t}}:t.NOOP,n&&o){let e=m,t=o===!0?1/0:o;m=()=>yt(e(),t)}let y=a(),b=()=>{p.stop(),y&&y.active&&t.remove(y.effects,p)};if(s&&n){let e=n;n=(...t)=>{e(...t),b()}}let x=v?Array(e.length).fill(pt):pt,S=e=>{if(!(!(p.flags&1)||!p.dirty&&!e))if(n){let e=p.run();if(o||_||(v?e.some((e,n)=>t.hasChanged(e,x[n])):t.hasChanged(e,x))){h&&h();let t=ht;ht=p;try{let t=[e,x===pt?void 0:v&&x[0]===pt?[]:x,g];x=e,d?d(n,3,t):n(...t)}finally{ht=t}}}else p.run()};return l&&l(S),p=new u(m),p.scheduler=c?()=>c(S,!1):S,g=e=>_t(e,!1,p),h=p.onStop=()=>{let e=mt.get(p);if(e){if(d)d(e,4);else for(let t of e)t();mt.delete(p)}},n?i?S(!0):x=p.run():c?c(S.bind(null,!0),!0):p.run(),b.pause=p.pause.bind(p),b.resume=p.resume.bind(p),b.stop=b,b}function yt(e,n=1/0,r){if(n<=0||!t.isObject(e)||e.__v_skip||(r||=new Map,(r.get(e)||0)>=n))return e;if(r.set(e,n),n--,J(e))yt(e.value,n,r);else if(t.isArray(e))for(let t=0;t<e.length;t++)yt(e[t],n,r);else if(t.isSet(e)||t.isMap(e))e.forEach(e=>{yt(e,n,r)});else if(t.isPlainObject(e)){for(let t in e)yt(e[t],n,r);for(let t of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,t)&&yt(e[t],n,r)}return e}e.ARRAY_ITERATE_KEY=I,e.EffectFlags=c,e.EffectScope=r,e.ITERATE_KEY=F,e.MAP_KEY_ITERATE_KEY=ne,e.ReactiveEffect=u,e.ReactiveFlags=dt,e.TrackOpTypes=lt,e.TriggerOpTypes=ut,e.WatchErrorCodes=ft,e.computed=ct,e.customRef=tt,e.effect=C,e.effectScope=i,e.enableTracking=O,e.getCurrentScope=a,e.getCurrentWatcher=gt,e.isProxy=Ve,e.isReactive=Be,e.isReadonly=G,e.isRef=J,e.isShallow=K,e.markRaw=He,e.onEffectCleanup=A,e.onScopeDispose=o,e.onWatcherCleanup=_t,e.pauseTracking=D,e.proxyRefs=$e,e.reactive=Ie,e.reactiveReadArray=ie,e.readonly=Le,e.ref=Ge,e.resetTracking=k,e.shallowReactive=W,e.shallowReadArray=ae,e.shallowReadonly=Re,e.shallowRef=Ke,e.stop=w,e.toRaw=q,e.toReactive=Ue,e.toReadonly=We,e.toRef=at,e.toRefs=nt,e.toValue=Ze,e.track=L,e.traverse=yt,e.trigger=R,e.triggerRef=Ye,e.unref=Xe,e.watch=vt})),Me=o(((e,t)=>{t.exports=je()})),Ne=o((e=>{
|
|
27
|
-
/**
|
|
28
|
-
* @vue/runtime-core v3.5.34
|
|
29
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
30
|
-
* @license MIT
|
|
31
|
-
**/
|
|
32
|
-
Object.defineProperty(e,`__esModule`,{value:!0});var t=Me(),n=Ae();function r(e){}function i(){}function a(e,t){}let o={SETUP_FUNCTION:0,0:`SETUP_FUNCTION`,RENDER_FUNCTION:1,1:`RENDER_FUNCTION`,NATIVE_EVENT_HANDLER:5,5:`NATIVE_EVENT_HANDLER`,COMPONENT_EVENT_HANDLER:6,6:`COMPONENT_EVENT_HANDLER`,VNODE_HOOK:7,7:`VNODE_HOOK`,DIRECTIVE_HOOK:8,8:`DIRECTIVE_HOOK`,TRANSITION_HOOK:9,9:`TRANSITION_HOOK`,APP_ERROR_HANDLER:10,10:`APP_ERROR_HANDLER`,APP_WARN_HANDLER:11,11:`APP_WARN_HANDLER`,FUNCTION_REF:12,12:`FUNCTION_REF`,ASYNC_COMPONENT_LOADER:13,13:`ASYNC_COMPONENT_LOADER`,SCHEDULER:14,14:`SCHEDULER`,COMPONENT_UPDATE:15,15:`COMPONENT_UPDATE`,APP_UNMOUNT_CLEANUP:16,16:`APP_UNMOUNT_CLEANUP`},s={sp:`serverPrefetch hook`,bc:`beforeCreate hook`,c:`created hook`,bm:`beforeMount hook`,m:`mounted hook`,bu:`beforeUpdate hook`,u:`updated`,bum:`beforeUnmount hook`,um:`unmounted hook`,a:`activated hook`,da:`deactivated hook`,ec:`errorCaptured hook`,rtc:`renderTracked hook`,rtg:`renderTriggered hook`,0:`setup function`,1:`render function`,2:`watcher getter`,3:`watcher callback`,4:`watcher cleanup function`,5:`native event handler`,6:`component event handler`,7:`vnode hook`,8:`directive hook`,9:`transition hook`,10:`app errorHandler`,11:`app warnHandler`,12:`ref function`,13:`async component loader`,14:`scheduler flush`,15:`component update`,16:`app unmount cleanup function`};function c(e,t,n,r){try{return r?e(...r):e()}catch(e){u(e,t,n)}}function l(e,t,r,i){if(n.isFunction(e)){let a=c(e,t,r,i);return a&&n.isPromise(a)&&a.catch(e=>{u(e,t,r)}),a}if(n.isArray(e)){let n=[];for(let a=0;a<e.length;a++)n.push(l(e[a],t,r,i));return n}}function u(e,r,i,a=!0){let o=r?r.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:l}=r&&r.appContext.config||n.EMPTY_OBJ;if(r){let n=r.parent,a=r.proxy,o=`https://vuejs.org/error-reference/#runtime-${i}`;for(;n;){let t=n.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,a,o)===!1)return}n=n.parent}if(s){t.pauseTracking(),c(s,null,10,[e,a,o]),t.resetTracking();return}}d(e,i,o,a,l)}function d(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}let f=[],p=-1,m=[],h=null,g=0,_=Promise.resolve(),v=null;function y(e){let t=v||_;return e?t.then(this?e.bind(this):e):t}function b(e){let t=p+1,n=f.length;for(;t<n;){let r=t+n>>>1,i=f[r],a=E(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function x(e){if(!(e.flags&1)){let t=E(e),n=f[f.length-1];!n||!(e.flags&2)&&t>=E(n)?f.push(e):f.splice(b(t),0,e),e.flags|=1,S()}}function S(){v||=_.then(D)}function C(e){n.isArray(e)?m.push(...e):h&&e.id===-1?h.splice(g+1,0,e):e.flags&1||(m.push(e),e.flags|=1),S()}function w(e,t,n=p+1){for(;n<f.length;n++){let t=f[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;f.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function T(e){if(m.length){let e=[...new Set(m)].sort((e,t)=>E(e)-E(t));if(m.length=0,h){h.push(...e);return}for(h=e,g=0;g<h.length;g++){let e=h[g];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}h=null,g=0}}let E=e=>e.id==null?e.flags&2?-1:1/0:e.id;function D(e){try{for(p=0;p<f.length;p++){let e=f[p];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),c(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;p<f.length;p++){let e=f[p];e&&(e.flags&=-2)}p=-1,f.length=0,T(),v=null,(f.length||m.length)&&D()}}let O=null,k=null;function A(e){let t=O;return O=e,k=e&&e.type.__scopeId||null,t}function j(e){k=e}function ee(){k=null}let M=e=>te;function te(e,t=O,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&Nr(-1);let i=A(t),a;try{a=e(...n)}finally{A(i),r._d&&Nr(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function N(e,r){if(O===null)return e;let i=xi(O),a=e.dirs||=[];for(let e=0;e<r.length;e++){let[o,s,c,l=n.EMPTY_OBJ]=r[e];o&&(n.isFunction(o)&&(o={mounted:o,updated:o}),o.deep&&t.traverse(s),a.push({dir:o,instance:i,value:s,oldValue:void 0,arg:c,modifiers:l}))}return e}function P(e,n,r,i){let a=e.dirs,o=n&&n.dirs;for(let s=0;s<a.length;s++){let c=a[s];o&&(c.oldValue=o[s].value);let u=c.dir[i];u&&(t.pauseTracking(),l(u,r,8,[e.el,c,e,n]),t.resetTracking())}}function F(e,t){if(ri){let n=ri.provides,r=ri.parent&&ri.parent.provides;r===n&&(n=ri.provides=Object.create(r)),n[e]=t}}function ne(e,t,r=!1){let i=ii();if(i||Cn){let a=Cn?Cn._context.provides:i?i.parent==null||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(a&&e in a)return a[e];if(arguments.length>1)return r&&n.isFunction(t)?t.call(i&&i.proxy):t}}function I(){return!!(ii()||Cn)}let L=Symbol.for(`v-scx`),R=()=>ne(L);function re(e,t){return oe(e,null,t)}function ie(e,t){return oe(e,null,{flush:`post`})}function ae(e,t){return oe(e,null,{flush:`sync`})}function z(e,t,n){return oe(e,t,n)}function oe(e,r,i=n.EMPTY_OBJ){let{immediate:a,deep:o,flush:s,once:c}=i,u=n.extend({},i),d=r&&a||!r&&s!==`post`,f;if(ui){if(s===`sync`){let e=R();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=n.NOOP,e.resume=n.NOOP,e.pause=n.NOOP,e}}let p=ri;u.call=(e,t,n)=>l(e,p,t,n);let m=!1;s===`post`?u.scheduler=e=>{X(e,p&&p.suspense)}:s!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():x(e)}),u.augmentJob=e=>{r&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=t.watch(e,r,u);return ui&&(f?f.push(h):d&&h()),h}function se(e,t,r){let i=this.proxy,a=n.isString(e)?e.includes(`.`)?ce(i,e):()=>i[e]:e.bind(i,i),o;n.isFunction(t)?o=t:(o=t.handler,r=t);let s=si(this),c=oe(a,o.bind(i),r);return s(),c}function ce(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}let B=new WeakMap,le=Symbol(`_vte`),ue=e=>e.__isTeleport,V=e=>e&&(e.disabled||e.disabled===``),de=e=>e&&(e.defer||e.defer===``),fe=e=>typeof SVGElement<`u`&&e instanceof SVGElement,pe=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,me=(e,t)=>{let r=e&&e.to;return n.isString(r)?t?t(r):null:r},he={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=V(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=V(e.props),r=e.target=me(e.props,m),a=be(r,e,h,p);r&&(o!==`svg`&&fe(r)?o=`svg`:o!==`mathml`&&pe(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),ye(e,!1)))},S=e=>{let t=()=>{B.get(e)===t&&(B.delete(e),V(e.props)&&(b(e,_(e.el)||n,e.anchor),ye(e,!0)),x(e))};B.set(e,t),X(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),de(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),ye(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=B.get(e);if(u){u.flags|=8,B.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=V(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||fe(p)?o=`svg`:(o===`mathml`||pe(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),sr(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ge(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=t.target=me(t.props,m);e&&ge(t,e,null,l,0)}else g&&ge(t,p,h,l,1);ye(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=a||!V(f),m=B.get(e);if(m&&(m.flags|=8,B.delete(e),p=!1),d&&(i(l),i(u)),a&&i(c),o&16)for(let e=0;e<s.length;e++){let i=s[e];r(i,t,n,p,!!i.dynamicChildren)}},move:ge,hydrate:_e};function ge(e,t,n,{o:{insert:r},m:i},a=2){a===0&&r(e.targetAnchor,t,n);let{el:o,anchor:s,shapeFlag:c,children:l,props:u}=e,d=a===2;if(d&&r(o,t,n),!B.has(e)&&(!d||V(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function _e(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:c,insert:l,createText:u}},d){function f(e,n){let r=n;for(;r;){if(r&&r.nodeType===8){if(r.data===`teleport start anchor`)t.targetStart=r;else if(r.data===`teleport anchor`){t.targetAnchor=r,e._lpa=t.targetAnchor&&o(t.targetAnchor);break}}r=o(r)}}function p(e,t){t.anchor=d(o(e),t,s(e),n,r,i,a)}let m=t.target=me(t.props,c),h=V(t.props);if(m){let c=m._lpa||m.firstChild;t.shapeFlag&16&&(h?(p(e,t),f(m,c),t.targetAnchor||be(m,t,u,l,s(e)===m?e:null)):(t.anchor=o(e),f(m,c),t.targetAnchor||be(m,t,u,l),d(c&&o(c),t,m,n,r,i,a))),ye(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}let ve=he;function ye(e,t){let n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute(`data-v-owner`,n.uid),r=r.nextSibling;n.ut()}}function be(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[le]=o,e&&(r(a,e,i),r(o,e,i)),o}let H=Symbol(`_leaveCb`),xe=Symbol(`_enterCb`);function Se(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return vt(()=>{e.isMounted=!0}),xt(()=>{e.isUnmounting=!0}),e}let U=[Function,Array],Ce={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:U,onEnter:U,onAfterEnter:U,onEnterCancelled:U,onBeforeLeave:U,onLeave:U,onAfterLeave:U,onLeaveCancelled:U,onBeforeAppear:U,onAppear:U,onAfterAppear:U,onAppearCancelled:U},we=e=>{let t=e.subTree;return t.component?we(t.component):t},Te={name:`BaseTransition`,props:Ce,setup(e,{slots:n}){let r=ii(),i=Se();return()=>{let a=n.default&&Fe(n.default(),!0),o=a&&a.length?Ee(a):r.subTree?Jr():void 0;if(!o)return;let s=t.toRaw(e),{mode:c}=s;if(i.isLeaving)return je(o);let l=Ne(o);if(!l)return je(o);let u=ke(l,s,i,r,e=>u=e);l.type!==Q&&Pe(l,u);let d=r.subTree&&Ne(r.subTree);if(d&&d.type!==Q&&!Rr(d,l)&&we(r).type!==Q){let e=ke(d,s,i,r);if(Pe(d,e),c===`out-in`&&l.type!==Q)return i.isLeaving=!0,e.afterLeave=()=>{i.isLeaving=!1,r.job.flags&8||r.update(),delete e.afterLeave,d=void 0},je(o);c===`in-out`&&l.type!==Q?e.delayLeave=(e,t,n)=>{let r=Oe(i,d);r[String(d.key)]=d,e[H]=()=>{t(),e[H]=void 0,delete u.delayedLeave,d=void 0},u.delayedLeave=()=>{n(),delete u.delayedLeave,d=void 0}}:d=void 0}else d&&=void 0;return o}}};function Ee(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==Q){t=n;break}}return t}let De=Te;function Oe(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ke(e,t,r,i,a){let{appear:o,mode:s,persisted:c=!1,onBeforeEnter:u,onEnter:d,onAfterEnter:f,onEnterCancelled:p,onBeforeLeave:m,onLeave:h,onAfterLeave:g,onLeaveCancelled:_,onBeforeAppear:v,onAppear:y,onAfterAppear:b,onAppearCancelled:x}=t,S=String(e.key),C=Oe(r,e),w=(e,t)=>{e&&l(e,i,9,t)},T=(e,t)=>{let r=t[1];w(e,t),n.isArray(e)?e.every(e=>e.length<=1)&&r():e.length<=1&&r()},E={mode:s,persisted:c,beforeEnter(t){let n=u;if(!r.isMounted)if(o)n=v||u;else return;t[H]&&t[H](!0);let i=C[S];i&&Rr(e,i)&&i.el[H]&&i.el[H](),w(n,[t])},enter(t){if(C[S]===e)return;let n=d,i=f,a=p;if(!r.isMounted)if(o)n=y||d,i=b||f,a=x||p;else return;let s=!1;t[xe]=e=>{s||(s=!0,w(e?a:i,[t]),E.delayedLeave&&E.delayedLeave(),t[xe]=void 0)};let c=t[xe].bind(null,!1);n?T(n,[t,c]):c()},leave(t,n){let i=String(e.key);if(t[xe]&&t[xe](!0),r.isUnmounting)return n();w(m,[t]);let a=!1;t[H]=r=>{a||(a=!0,n(),w(r?_:g,[t]),t[H]=void 0,C[i]===e&&delete C[i])};let o=t[H].bind(null,!1);C[i]=e,h?T(h,[t,o]):o()},clone(e){let n=ke(e,t,r,i,a);return a&&a(n),n}};return E}function je(e){if(ot(e))return e=Gr(e),e.children=null,e}function Ne(e){if(!ot(e))return ue(e.type)&&e.children?Ee(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&n.isFunction(r.default))return r.default()}}function Pe(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Pe(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Fe(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===Tr?(o.patchFlag&128&&i++,r=r.concat(Fe(o.children,t,s))):(t||o.type!==Q)&&r.push(s==null?o:Gr(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function Ie(e,t){return n.isFunction(e)?n.extend({name:e.name},t,{setup:e}):e}function W(){let e=ii();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+ e.ids[1]++:``}function Le(e){e.ids=[e.ids[0]+ e.ids[2]+++`-`,0,0]}function Re(e){let r=ii(),i=t.shallowRef(null);if(r){let t=r.refs===n.EMPTY_OBJ?r.refs={}:r.refs;Object.defineProperty(t,e,{enumerable:!0,get:()=>i.value,set:e=>i.value=e})}return i}function ze(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}let Be=new WeakMap;function G(e,r,i,a,o=!1){if(n.isArray(e)){e.forEach((e,t)=>G(e,r&&(n.isArray(r)?r[t]:r),i,a,o));return}if(rt(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&G(e,r,i,a.component.subTree);return}let s=a.shapeFlag&4?xi(a.component):a.el,l=o?null:s,{i:u,r:d}=e,f=r&&r.r,p=u.refs===n.EMPTY_OBJ?u.refs={}:u.refs,m=u.setupState,h=t.toRaw(m),g=m===n.EMPTY_OBJ?n.NO:e=>ze(p,e)?!1:n.hasOwn(h,e),_=(e,t)=>!(t&&ze(p,t));if(f!=null&&f!==d){if(K(r),n.isString(f))p[f]=null,g(f)&&(m[f]=null);else if(t.isRef(f)){let e=r;_(f,e.k)&&(f.value=null),e.k&&(p[e.k]=null)}}if(n.isFunction(d))c(d,u,12,[l,p]);else{let r=n.isString(d),a=t.isRef(d);if(r||a){let t=()=>{if(e.f){let t=r?g(d)?m[d]:p[d]:_()||!e.k?d.value:p[e.k];if(o)n.isArray(t)&&n.remove(t,s);else if(n.isArray(t))t.includes(s)||t.push(s);else if(r)p[d]=[s],g(d)&&(m[d]=p[d]);else{let t=[s];_(d,e.k)&&(d.value=t),e.k&&(p[e.k]=t)}}else r?(p[d]=l,g(d)&&(m[d]=l)):a&&(_(d,e.k)&&(d.value=l),e.k&&(p[e.k]=l))};if(l){let n=()=>{t(),Be.delete(e)};n.id=-1,Be.set(e,n),X(n,i)}else K(e),t()}}}function K(e){let t=Be.get(e);t&&(t.flags|=8,Be.delete(e))}let Ve=!1,q=()=>{Ve||=(console.error(`Hydration completed but contains mismatches.`),!0)},He=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,Ue=e=>e.namespaceURI.includes(`MathML`),We=e=>{if(e.nodeType===1){if(He(e))return`svg`;if(Ue(e))return`mathml`}},J=e=>e.nodeType===8;function Ge(e){let{mt:r,p:i,o:{patchProp:a,createText:o,nextSibling:s,parentNode:c,remove:l,insert:u,createComment:d}}=e,f=(e,t)=>{if(!t.hasChildNodes()){i(null,e,t),T(),t._vnode=e;return}p(t.firstChild,e,null,null,null),T(),t._vnode=e},p=(t,n,i,a,l,d=!1)=>{d||=!!n.dynamicChildren;let f=J(t)&&t.data===`[`,x=()=>_(t,n,i,a,l,f),{type:S,ref:C,shapeFlag:w,patchFlag:T}=n,E=t.nodeType;n.el=t,T===-2&&(d=!1,n.dynamicChildren=null);let D=null;switch(S){case Er:E===3?(t.data!==n.children&&(q(),t.data=n.children),D=s(t)):n.children===``?(u(n.el=o(``),c(t),t),D=t):D=x();break;case Q:b(t)?(D=s(t),y(n.el=t.content.firstChild,t,i)):D=E!==8||f?x():s(t);break;case Dr:if(f&&(t=s(t),E=t.nodeType),E===1||E===3){D=t;let e=!n.children.length;for(let t=0;t<n.staticCount;t++)e&&(n.children+=D.nodeType===1?D.outerHTML:D.data),t===n.staticCount-1&&(n.anchor=D),D=s(D);return f?s(D):D}else x();break;case Tr:D=f?g(t,n,i,a,l,d):x();break;default:if(w&1)D=(E!==1||n.type.toLowerCase()!==t.tagName.toLowerCase())&&!b(t)?x():m(t,n,i,a,l,d);else if(w&6){n.slotScopeIds=l;let e=c(t);if(D=f?v(t):J(t)&&t.data===`teleport start`?v(t,t.data,`teleport end`):s(t),r(n,e,null,i,a,We(e),d),rt(n)&&!n.type.__asyncResolved){let r;f?(r=$(Tr),r.anchor=D?D.previousSibling:e.lastChild):r=t.nodeType===3?Kr(``):$(`div`),r.el=t,n.component.subTree=r}}else w&64?D=E===8?n.type.hydrate(t,n,i,a,l,d,e,h):x():w&128&&(D=n.type.hydrate(t,n,i,a,We(c(t)),l,d,e,p))}return C!=null&&G(C,null,a,n),D},m=(e,r,i,o,s,c)=>{c||=!!r.dynamicChildren;let{type:u,props:d,patchFlag:f,shapeFlag:p,dirs:m,transition:g}=r,_=u===`input`||u===`option`;if(_||f!==-1){m&&P(r,null,i,`created`);let u=!1;if(b(e)){u=or(null,g)&&i&&i.vnode.props&&i.vnode.props.appear;let t=e.content.firstChild;if(u){let e=t.getAttribute(`class`);e&&(t.$cls=e),g.beforeEnter(t)}y(t,e,i),r.el=e=t}if(p&16&&!(d&&(d.innerHTML||d.textContent))){let t=h(e.firstChild,r,e,i,o,s,c);for(;t;){Je(e,1)||q();let n=t;t=t.nextSibling,l(n)}}else if(p&8){let t=r.children;t[0]===`
|
|
33
|
-
`&&(e.tagName===`PRE`||e.tagName===`TEXTAREA`)&&(t=t.slice(1));let{textContent:n}=e;n!==t&&n!==t.replace(/\r\n|\r/g,`
|
|
34
|
-
`)&&(Je(e,0)||q(),e.textContent=r.children)}if(d){if(_||!c||f&48){let t=e.tagName.includes(`-`);for(let r in d)(_&&(r.endsWith(`value`)||r===`indeterminate`)||n.isOn(r)&&!n.isReservedProp(r)||r[0]===`.`||t&&!n.isReservedProp(r))&&a(e,r,null,d[r],void 0,i)}else if(d.onClick)a(e,`onClick`,null,d.onClick,void 0,i);else if(f&4&&t.isReactive(d.style))for(let e in d.style)d.style[e]}let v;(v=d&&d.onVnodeBeforeMount)&&$r(v,i,r),m&&P(r,null,i,`beforeMount`),((v=d&&d.onVnodeMounted)||m||u)&&Sr(()=>{v&&$r(v,i,r),u&&g.enter(e),m&&P(r,null,i,`mounted`)},o)}return e.nextSibling},h=(e,t,n,r,a,c,l)=>{l||=!!t.dynamicChildren;let d=t.children,f=d.length;for(let t=0;t<f;t++){let m=l?d[t]:d[t]=Yr(d[t]),h=m.type===Er;e?(h&&!l&&t+1<f&&Yr(d[t+1]).type===Er&&(u(o(e.data.slice(m.children.length)),n,s(e)),e.data=m.children),e=p(e,m,r,a,c,l)):h&&!m.children?u(m.el=o(``),n):(Je(n,1)||q(),i(null,m,n,null,r,a,We(n),c))}return e},g=(e,t,n,r,i,a)=>{let{slotScopeIds:o}=t;o&&(i=i?i.concat(o):o);let l=c(e),f=h(s(e),t,l,n,r,i,a);return f&&J(f)&&f.data===`]`?s(t.anchor=f):(q(),u(t.anchor=d(`]`),l,f),f)},_=(e,t,n,r,a,o)=>{if(Je(e.parentElement,1)||q(),t.el=null,o){let t=v(e);for(;;){let n=s(e);if(n&&n!==t)l(n);else break}}let u=s(e),d=c(e);return l(e),i(null,t,d,u,n,r,We(d),a),n&&(n.vnode.el=t.el,Ln(n,t.el)),u},v=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=s(e),e&&J(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return s(e);r--}return e},y=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},b=e=>e.nodeType===1&&e.tagName===`TEMPLATE`;return[f,p]}let Ke=`data-allow-mismatch`,qe={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function Je(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Ke);)e=e.parentElement;let n=e&&e.getAttribute(Ke);if(n==null)return!1;if(n===``)return!0;{let e=n.split(`,`);return t===0&&e.includes(`children`)?!0:e.includes(qe[t])}}let Ye=n.getGlobalThis().requestIdleCallback||(e=>setTimeout(e,1)),Xe=n.getGlobalThis().cancelIdleCallback||(e=>clearTimeout(e)),Ze=(e=1e4)=>t=>{let n=Ye(t,{timeout:e});return()=>Xe(n)};function Qe(e){let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t<a||r>0&&r<a)&&(n>0&&n<o||i>0&&i<o)}let $e=e=>(t,n)=>{let r=new IntersectionObserver(e=>{for(let n of e)if(n.isIntersecting){r.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element){if(Qe(e))return t(),r.disconnect(),!1;r.observe(e)}}),()=>r.disconnect()},et=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener(`change`,t,{once:!0}),()=>n.removeEventListener(`change`,t)}},tt=(e=[])=>(t,r)=>{n.isString(e)&&(e=[e]);let i=!1,a=e=>{i||(i=!0,o(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},o=()=>{r(t=>{for(let n of e)t.removeEventListener(n,a)})};return r(t=>{for(let n of e)t.addEventListener(n,a,{once:!0})}),o};function nt(e,t){if(J(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(J(r))if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++;r=r.nextSibling}}else t(e)}let rt=e=>!!e.type.__asyncLoader;function it(e){n.isFunction(e)&&(e={loader:e});let{loader:r,loadingComponent:i,errorComponent:a,delay:o=200,hydrate:s,timeout:c,suspensible:l=!0,onError:d}=e,f=null,p,m=0,h=()=>(m++,f=null,g()),g=()=>{let e;return f||(e=f=r().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),d)return new Promise((t,n)=>{d(e,()=>t(h()),()=>n(e),m+1)});throw e}).then(t=>e!==f&&f?f:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),p=t,t)))};return Ie({name:`AsyncComponentWrapper`,__asyncLoader:g,__asyncHydrate(e,t,n){let r=!1;(t.bu||=[]).push(()=>r=!0);let i=()=>{r||n()},a=s?()=>{let n=s(i,t=>nt(e,t));n&&(t.bum||=[]).push(n)}:i;p?a():g().then(()=>!t.isUnmounted&&a())},get __asyncResolved(){return p},setup(){let e=ri;if(Le(e),p)return()=>at(p,e);let n=t=>{f=null,u(t,e,13,!a)};if(l&&e.suspense||ui)return g().then(t=>()=>at(t,e)).catch(e=>(n(e),()=>a?$(a,{error:e}):null));let r=t.ref(!1),s=t.ref(),d=t.ref(!!o);return o&&setTimeout(()=>{d.value=!1},o),c!=null&&setTimeout(()=>{if(!r.value&&!s.value){let e=Error(`Async component timed out after ${c}ms.`);n(e),s.value=e}},c),g().then(()=>{r.value=!0,e.parent&&ot(e.parent.vnode)&&e.parent.update()}).catch(e=>{n(e),s.value=e}),()=>{if(r.value&&p)return at(p,e);if(s.value&&a)return $(a,{error:s.value});if(i&&!d.value)return at(i,e)}}})}function at(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=$(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}let ot=e=>e.type.__isKeepAlive,st={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let r=ii(),i=r.ctx;if(!i.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let a=new Map,o=new Set,s=null,c=r.suspense,{renderer:{p:l,m:u,um:d,o:{createElement:f}}}=i,p=f(`div`);i.activate=(e,t,r,i,a)=>{let o=e.component;u(e,t,r,0,c),l(o.vnode,e,t,r,o,c,i,e.slotScopeIds,a),X(()=>{o.isDeactivated=!1,o.a&&n.invokeArrayFns(o.a);let t=e.props&&e.props.onVnodeMounted;t&&$r(t,o.parent,e)},c)},i.deactivate=e=>{let t=e.component;ur(t.m),ur(t.a),u(e,p,null,1,c),X(()=>{t.da&&n.invokeArrayFns(t.da);let r=e.props&&e.props.onVnodeUnmounted;r&&$r(r,t.parent,e),t.isDeactivated=!0},c)};function m(e){pt(e),d(e,r,c,!0)}function h(e){a.forEach((t,n)=>{let r=Si(rt(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&g(n)})}function g(e){let t=a.get(e);t&&(!s||!Rr(t,s))?m(t):s&&pt(s),a.delete(e),o.delete(e)}z(()=>[e.include,e.exclude],([e,t])=>{e&&h(t=>ct(e,t)),t&&h(e=>!ct(t,e))},{flush:`post`,deep:!0});let _=null,v=()=>{_!=null&&(fr(r.subTree.type)?X(()=>{a.set(_,mt(r.subTree))},r.subTree.suspense):a.set(_,mt(r.subTree)))};return vt(v),bt(v),xt(()=>{a.forEach(e=>{let{subTree:t,suspense:n}=r,i=mt(t);if(e.type===i.type&&e.key===i.key){pt(i);let e=i.component.da;e&&X(e,n);return}m(e)})}),()=>{if(_=null,!t.default)return s=null;let n=t.default(),r=n[0];if(n.length>1)return s=null,n;if(!Lr(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return s=null,r;let i=mt(r);if(i.type===Q)return s=null,i;let c=i.type,l=Si(rt(i)?i.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!ct(u,l))||d&&l&&ct(d,l))return i.shapeFlag&=-257,s=i,r;let p=i.key==null?c:i.key,m=a.get(p);return i.el&&(i=Gr(i),r.shapeFlag&128&&(r.ssContent=i)),_=p,m?(i.el=m.el,i.component=m.component,i.transition&&Pe(i,i.transition),i.shapeFlag|=512,o.delete(p),o.add(p)):(o.add(p),f&&o.size>parseInt(f,10)&&g(o.values().next().value)),i.shapeFlag|=256,s=i,fr(r.type)?r:i}}};function ct(e,t){return n.isArray(e)?e.some(e=>ct(e,t)):n.isString(e)?e.split(`,`).includes(t):n.isRegExp(e)?(e.lastIndex=0,e.test(t)):!1}function lt(e,t){dt(e,`a`,t)}function ut(e,t){dt(e,`da`,t)}function dt(e,t,n=ri){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(ht(t,r,n),n){let e=n.parent;for(;e&&e.parent;)ot(e.parent.vnode)&&ft(r,t,n,e),e=e.parent}}function ft(e,t,r,i){let a=ht(t,e,i,!0);St(()=>{n.remove(i[t],a)},r)}function pt(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function mt(e){return e.shapeFlag&128?e.ssContent:e}function ht(e,n,r=ri,i=!1){if(r){let a=r[e]||(r[e]=[]),o=n.__weh||=(...i)=>{t.pauseTracking();let a=si(r),o=l(n,r,e,i);return a(),t.resetTracking(),o};return i?a.unshift(o):a.push(o),o}}let gt=e=>(t,n=ri)=>{(!ui||e===`sp`)&&ht(e,(...e)=>t(...e),n)},_t=gt(`bm`),vt=gt(`m`),yt=gt(`bu`),bt=gt(`u`),xt=gt(`bum`),St=gt(`um`),Ct=gt(`sp`),wt=gt(`rtg`),Tt=gt(`rtc`);function Et(e,t=ri){ht(`ec`,e,t)}let Dt=`components`;function Ot(e,t){return jt(Dt,e,!0,t)||e}let kt=Symbol.for(`v-ndc`);function Y(e){return n.isString(e)?jt(Dt,e,!1)||e:e||kt}function At(e){return jt(`directives`,e)}function jt(e,t,r=!0,i=!1){let a=O||ri;if(a){let r=a.type;if(e===Dt){let e=Si(r,!1);if(e&&(e===t||e===n.camelize(t)||e===n.capitalize(n.camelize(t))))return r}let o=Mt(a[e]||r[e],t)||Mt(a.appContext[e],t);return!o&&i?r:o}}function Mt(e,t){return e&&(e[t]||e[n.camelize(t)]||e[n.capitalize(n.camelize(t))])}function Nt(e,r,i,a){let o,s=i&&i[a],c=n.isArray(e);if(c||n.isString(e)){let n=c&&t.isReactive(e),i=!1,a=!1;n&&(i=!t.isShallow(e),a=t.isReadonly(e),e=t.shallowReadArray(e)),o=Array(e.length);for(let n=0,c=e.length;n<c;n++)o[n]=r(i?a?t.toReadonly(t.toReactive(e[n])):t.toReactive(e[n]):e[n],n,void 0,s&&s[n])}else if(typeof e==`number`){o=Array(e);for(let t=0;t<e;t++)o[t]=r(t+1,t,void 0,s&&s[t])}else if(n.isObject(e))if(e[Symbol.iterator])o=Array.from(e,(e,t)=>r(e,t,void 0,s&&s[t]));else{let t=Object.keys(e);o=Array(t.length);for(let n=0,i=t.length;n<i;n++){let i=t[n];o[n]=r(e[i],i,n,s&&s[n])}}else o=[];return i&&(i[a]=o),o}function Pt(e,t){for(let r=0;r<t.length;r++){let i=t[r];if(n.isArray(i))for(let t=0;t<i.length;t++)e[i[t].name]=i[t].fn;else i&&(e[i.name]=i.key?(...e)=>{let t=i.fn(...e);return t&&(t.key=i.key),t}:i.fn)}return e}function Ft(e,t,r={},i,a){if(O.ce||O.parent&&rt(O.parent)&&O.parent.ce){let e=Object.keys(r).length>0;return t!==`default`&&(r.name=t),Ar(),Ir(Tr,null,[$(`slot`,r,i&&i())],e?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),Ar();let s=o&&It(o(r)),c=r.key||s&&s.key,l=Ir(Tr,{key:(c&&!n.isSymbol(c)?c:`_${t}`)+(!s&&i?`_fb`:``)},s||(i?i():[]),s&&e._===1?64:-2);return!a&&l.scopeId&&(l.slotScopeIds=[l.scopeId+`-s`]),o&&o._c&&(o._d=!0),l}function It(e){return e.some(e=>Lr(e)?!(e.type===Q||e.type===Tr&&!It(e.children)):!0)?e:null}function Lt(e,t){let r={};for(let i in e)r[t&&/[A-Z]/.test(i)?`on:${i}`:n.toHandlerKey(i)]=e[i];return r}let Rt=e=>e?li(e)?xi(e):Rt(e.parent):null,zt=n.extend(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=>Rt(e.parent),$root:e=>Rt(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>un(e),$forceUpdate:e=>e.f||=()=>{x(e.update)},$nextTick:e=>e.n||=y.bind(e.proxy),$watch:e=>se.bind(e)}),Bt=(e,t)=>e!==n.EMPTY_OBJ&&!e.__isScriptSetup&&n.hasOwn(e,t),Vt={get({_:e},r){if(r===`__v_skip`)return!0;let{ctx:i,setupState:a,data:o,props:s,accessCache:c,type:l,appContext:u}=e;if(r[0]!==`$`){let e=c[r];if(e!==void 0)switch(e){case 1:return a[r];case 2:return o[r];case 4:return i[r];case 3:return s[r]}else if(Bt(a,r))return c[r]=1,a[r];else if(o!==n.EMPTY_OBJ&&n.hasOwn(o,r))return c[r]=2,o[r];else if(n.hasOwn(s,r))return c[r]=3,s[r];else if(i!==n.EMPTY_OBJ&&n.hasOwn(i,r))return c[r]=4,i[r];else an&&(c[r]=0)}let d=zt[r],f,p;if(d)return r===`$attrs`&&t.track(e.attrs,`get`,``),d(e);if((f=l.__cssModules)&&(f=f[r]))return f;if(i!==n.EMPTY_OBJ&&n.hasOwn(i,r))return c[r]=4,i[r];if(p=u.config.globalProperties,n.hasOwn(p,r))return p[r]},set({_:e},t,r){let{data:i,setupState:a,ctx:o}=e;return Bt(a,t)?(a[t]=r,!0):i!==n.EMPTY_OBJ&&n.hasOwn(i,t)?(i[t]=r,!0):n.hasOwn(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(o[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==n.EMPTY_OBJ&&c[0]!==`$`&&n.hasOwn(e,c)||Bt(t,c)||n.hasOwn(o,c)||n.hasOwn(i,c)||n.hasOwn(zt,c)||n.hasOwn(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,r){return r.get==null?n.hasOwn(r,`value`)&&this.set(e,t,r.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,r)}},Ht=n.extend({},Vt,{get(e,t){if(t!==Symbol.unscopables)return Vt.get(e,t,e)},has(e,t){return t[0]!==`_`&&!n.isGloballyAllowed(t)}});function Ut(){return null}function Wt(){return null}function Gt(e){}function Kt(e){}function qt(){return null}function Jt(){}function Yt(e,t){return null}function Xt(){return Qt().slots}function Zt(){return Qt().attrs}function Qt(e){let t=ii();return t.setupContext||=bi(t)}function $t(e){return n.isArray(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function en(e,t){let r=$t(e);for(let e in t){if(e.startsWith(`__skip`))continue;let i=r[e];i?n.isArray(i)||n.isFunction(i)?i=r[e]={type:i,default:t[e]}:i.default=t[e]:i===null&&(i=r[e]={default:t[e]}),i&&t[`__skip_${e}`]&&(i.skipFactory=!0)}return r}function tn(e,t){return!e||!t?e||t:n.isArray(e)&&n.isArray(t)?e.concat(t):n.extend({},$t(e),$t(t))}function nn(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function rn(e){let t=ii(),r=ui,i=e();ci(),r&&oi(!1);let a=()=>{si(t),r&&oi(!0)},o=()=>{ii()!==t&&t.scope.off(),ci(),r&&oi(!1)};return n.isPromise(i)&&(i=i.catch(e=>{throw a(),Promise.resolve().then(()=>Promise.resolve().then(o)),e})),[i,()=>{a(),Promise.resolve().then(o)}]}let an=!0;function on(e){let r=un(e),i=e.proxy,a=e.ctx;an=!1,r.beforeCreate&&cn(r.beforeCreate,e,`bc`);let{data:o,computed:s,methods:c,watch:l,provide:u,inject:d,created:f,beforeMount:p,mounted:m,beforeUpdate:h,updated:g,activated:_,deactivated:v,beforeDestroy:y,beforeUnmount:b,destroyed:x,unmounted:S,render:C,renderTracked:w,renderTriggered:T,errorCaptured:E,serverPrefetch:D,expose:O,inheritAttrs:k,components:A,directives:j,filters:ee}=r;if(d&&sn(d,a,null),c)for(let e in c){let t=c[e];n.isFunction(t)&&(a[e]=t.bind(i))}if(o){let r=o.call(i,i);n.isObject(r)&&(e.data=t.reactive(r))}if(an=!0,s)for(let e in s){let t=s[e],r=wi({get:n.isFunction(t)?t.bind(i,i):n.isFunction(t.get)?t.get.bind(i,i):n.NOOP,set:!n.isFunction(t)&&n.isFunction(t.set)?t.set.bind(i):n.NOOP});Object.defineProperty(a,e,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e})}if(l)for(let e in l)ln(l[e],a,i,e);if(u){let e=n.isFunction(u)?u.call(i):u;Reflect.ownKeys(e).forEach(t=>{F(t,e[t])})}f&&cn(f,e,`c`);function M(e,t){n.isArray(t)?t.forEach(t=>e(t.bind(i))):t&&e(t.bind(i))}if(M(_t,p),M(vt,m),M(yt,h),M(bt,g),M(lt,_),M(ut,v),M(Et,E),M(Tt,w),M(wt,T),M(xt,b),M(St,S),M(Ct,D),n.isArray(O))if(O.length){let t=e.exposed||={};O.forEach(e=>{Object.defineProperty(t,e,{get:()=>i[e],set:t=>i[e]=t,enumerable:!0})})}else e.exposed||={};C&&e.render===n.NOOP&&(e.render=C),k!=null&&(e.inheritAttrs=k),A&&(e.components=A),j&&(e.directives=j),D&&Le(e)}function sn(e,r,i=n.NOOP){n.isArray(e)&&(e=hn(e));for(let i in e){let a=e[i],o;o=n.isObject(a)?`default`in a?ne(a.from||i,a.default,!0):ne(a.from||i):ne(a),t.isRef(o)?Object.defineProperty(r,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:e=>o.value=e}):r[i]=o}}function cn(e,t,r){l(n.isArray(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,r)}function ln(e,t,r,i){let a=i.includes(`.`)?ce(r,i):()=>r[i];if(n.isString(e)){let r=t[e];n.isFunction(r)&&z(a,r)}else if(n.isFunction(e))z(a,e.bind(r));else if(n.isObject(e))if(n.isArray(e))e.forEach(e=>ln(e,t,r,i));else{let i=n.isFunction(e.handler)?e.handler.bind(r):t[e.handler];n.isFunction(i)&&z(a,i,e)}}function un(e){let t=e.type,{mixins:r,extends:i}=t,{mixins:a,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,c=o.get(t),l;return c?l=c:!a.length&&!r&&!i?l=t:(l={},a.length&&a.forEach(e=>dn(l,e,s,!0)),dn(l,t,s)),n.isObject(t)&&o.set(t,l),l}function dn(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&dn(e,a,n,!0),i&&i.forEach(t=>dn(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=fn[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}let fn={data:pn,props:vn,emits:vn,methods:_n,computed:_n,beforeCreate:gn,created:gn,beforeMount:gn,mounted:gn,beforeUpdate:gn,updated:gn,beforeDestroy:gn,beforeUnmount:gn,destroyed:gn,unmounted:gn,activated:gn,deactivated:gn,errorCaptured:gn,serverPrefetch:gn,components:_n,directives:_n,watch:yn,provide:pn,inject:mn};function pn(e,t){return t?e?function(){return n.extend(n.isFunction(e)?e.call(this,this):e,n.isFunction(t)?t.call(this,this):t)}:t:e}function mn(e,t){return _n(hn(e),hn(t))}function hn(e){if(n.isArray(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function gn(e,t){return e?[...new Set([].concat(e,t))]:t}function _n(e,t){return e?n.extend(Object.create(null),e,t):t}function vn(e,t){return e?n.isArray(e)&&n.isArray(t)?[...new Set([...e,...t])]:n.extend(Object.create(null),$t(e),$t(t??{})):t}function yn(e,t){if(!e)return t;if(!t)return e;let r=n.extend(Object.create(null),e);for(let n in t)r[n]=gn(e[n],t[n]);return r}function bn(){return{app:null,config:{isNativeTag:n.NO,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 xn=0;function Sn(e,t){return function(r,i=null){n.isFunction(r)||(r=n.extend({},r)),i!=null&&!n.isObject(i)&&(i=null);let a=bn(),o=new WeakSet,s=[],c=!1,u=a.app={_uid:xn++,_component:r,_props:i,_container:null,_context:a,_instance:null,version:ki,get config(){return a.config},set config(e){},use(e,...t){return o.has(e)||(e&&n.isFunction(e.install)?(o.add(e),e.install(u,...t)):n.isFunction(e)&&(o.add(e),e(u,...t))),u},mixin(e){return a.mixins.includes(e)||a.mixins.push(e),u},component(e,t){return t?(a.components[e]=t,u):a.components[e]},directive(e,t){return t?(a.directives[e]=t,u):a.directives[e]},mount(n,o,s){if(!c){let l=u._ceVNode||$(r,i);return l.appContext=a,s===!0?s=`svg`:s===!1&&(s=void 0),o&&t?t(l,n):e(l,n,s),c=!0,u._container=n,n.__vue_app__=u,xi(l.component)}},onUnmount(e){s.push(e)},unmount(){c&&(l(s,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(e,t){return a.provides[e]=t,u},runWithContext(e){let t=Cn;Cn=u;try{return e()}finally{Cn=t}}};return u}}let Cn=null;function wn(e,r,i=n.EMPTY_OBJ){let a=ii(),o=n.camelize(r),s=n.hyphenate(r),c=Tn(e,o),l=t.customRef((t,c)=>{let l,u=n.EMPTY_OBJ,d;return ae(()=>{let t=e[o];n.hasChanged(l,t)&&(l=t,c())}),{get(){return t(),i.get?i.get(l):l},set(e){let t=i.set?i.set(e):e;if(!n.hasChanged(t,l)&&!(u!==n.EMPTY_OBJ&&n.hasChanged(e,u)))return;let f=a.vnode.props;f&&(r in f||o in f||s in f)&&(`onUpdate:${r}`in f||`onUpdate:${o}`in f||`onUpdate:${s}`in f)||(l=e,c()),a.emit(`update:${r}`,t),n.hasChanged(e,t)&&n.hasChanged(e,u)&&!n.hasChanged(t,d)&&c(),u=e,d=t}}});return l[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?c||n.EMPTY_OBJ:l,done:!1}:{done:!0}}}},l}let Tn=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${n.camelize(t)}Modifiers`]||e[`${n.hyphenate(t)}Modifiers`];function En(e,t,...r){if(e.isUnmounted)return;let i=e.vnode.props||n.EMPTY_OBJ,a=r,o=t.startsWith(`update:`),s=o&&Tn(i,t.slice(7));s&&(s.trim&&(a=r.map(e=>n.isString(e)?e.trim():e)),s.number&&(a=r.map(n.looseToNumber)));let c,u=i[c=n.toHandlerKey(t)]||i[c=n.toHandlerKey(n.camelize(t))];!u&&o&&(u=i[c=n.toHandlerKey(n.hyphenate(t))]),u&&l(u,e,6,a);let d=i[c+`Once`];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,l(d,e,6,a)}}let Dn=new WeakMap;function On(e,t,r=!1){let i=r?Dn:t.emitsCache,a=i.get(e);if(a!==void 0)return a;let o=e.emits,s={},c=!1;if(!n.isFunction(e)){let i=e=>{let r=On(e,t,!0);r&&(c=!0,n.extend(s,r))};!r&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return!o&&!c?(n.isObject(e)&&i.set(e,null),null):(n.isArray(o)?o.forEach(e=>s[e]=null):n.extend(s,o),n.isObject(e)&&i.set(e,s),s)}function kn(e,t){return!e||!n.isOn(t)?!1:(t=t.slice(2).replace(/Once$/,``),n.hasOwn(e,t[0].toLowerCase()+t.slice(1))||n.hasOwn(e,n.hyphenate(t))||n.hasOwn(e,t))}function An(e){let{type:t,vnode:r,proxy:i,withProxy:a,propsOptions:[o],slots:s,attrs:c,emit:l,render:d,renderCache:f,props:p,data:m,setupState:h,ctx:g,inheritAttrs:_}=e,v=A(e),y,b;try{if(r.shapeFlag&4){let e=a||i,t=e;y=Yr(d.call(t,e,f,p,h,m,g)),b=c}else{let e=t;y=Yr(e.length>1?e(p,{attrs:c,slots:s,emit:l}):e(p,null)),b=t.props?c:Mn(c)}}catch(t){Or.length=0,u(t,e,1),y=$(Q)}let x=y;if(b&&_!==!1){let e=Object.keys(b),{shapeFlag:t}=x;e.length&&t&7&&(o&&e.some(n.isModelListener)&&(b=Nn(b,o)),x=Gr(x,b,!1,!0))}return r.dirs&&(x=Gr(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(r.dirs):r.dirs),r.transition&&Pe(x,r.transition),y=x,A(v),y}function jn(e,t=!0){let n;for(let t=0;t<e.length;t++){let r=e[t];if(Lr(r)){if(r.type!==Q||r.children===`v-if`){if(n)return;n=r}}else return}return n}let Mn=e=>{let t;for(let r in e)(r===`class`||r===`style`||n.isOn(r))&&((t||={})[r]=e[r]);return t},Nn=(e,t)=>{let r={};for(let i in e)(!n.isModelListener(i)||!(i.slice(9)in t))&&(r[i]=e[i]);return r};function Pn(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Fn(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(In(o,r,n)&&!kn(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?Fn(r,o,l):!0:!!o;return!1}function Fn(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(In(t,e,a)&&!kn(n,a))return!0}return!1}function In(e,t,r){let i=e[r],a=t[r];return r===`style`&&n.isObject(i)&&n.isObject(a)?!n.looseEqual(i,a):i!==a}function Ln({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}let Rn={},zn=()=>Object.create(Rn),Bn=e=>Object.getPrototypeOf(e)===Rn;function Vn(e,n,r,i=!1){let a={},o=zn();e.propsDefaults=Object.create(null),Un(e,n,a,o);for(let t in e.propsOptions[0])t in a||(a[t]=void 0);r?e.props=i?a:t.shallowReactive(a):e.type.props?e.props=a:e.props=o,e.attrs=o}function Hn(e,r,i,a){let{props:o,attrs:s,vnode:{patchFlag:c}}=e,l=t.toRaw(o),[u]=e.propsOptions,d=!1;if((a||c>0)&&!(c&16)){if(c&8){let t=e.vnode.dynamicProps;for(let i=0;i<t.length;i++){let a=t[i];if(kn(e.emitsOptions,a))continue;let c=r[a];if(u)if(n.hasOwn(s,a))c!==s[a]&&(s[a]=c,d=!0);else{let t=n.camelize(a);o[t]=Wn(u,l,t,c,e,!1)}else c!==s[a]&&(s[a]=c,d=!0)}}}else{Un(e,r,o,s)&&(d=!0);let t;for(let a in l)(!r||!n.hasOwn(r,a)&&((t=n.hyphenate(a))===a||!n.hasOwn(r,t)))&&(u?i&&(i[a]!==void 0||i[t]!==void 0)&&(o[a]=Wn(u,l,a,void 0,e,!0)):delete o[a]);if(s!==l)for(let e in s)(!r||!n.hasOwn(r,e))&&(delete s[e],d=!0)}d&&t.trigger(e.attrs,`set`,``)}function Un(e,r,i,a){let[o,s]=e.propsOptions,c=!1,l;if(r)for(let t in r){if(n.isReservedProp(t))continue;let u=r[t],d;o&&n.hasOwn(o,d=n.camelize(t))?!s||!s.includes(d)?i[d]=u:(l||={})[d]=u:kn(e.emitsOptions,t)||(!(t in a)||u!==a[t])&&(a[t]=u,c=!0)}if(s){let r=t.toRaw(i),a=l||n.EMPTY_OBJ;for(let t=0;t<s.length;t++){let c=s[t];i[c]=Wn(o,r,c,a[c],e,!n.hasOwn(a,c))}}return c}function Wn(e,t,r,i,a,o){let s=e[r];if(s!=null){let e=n.hasOwn(s,`default`);if(e&&i===void 0){let e=s.default;if(s.type!==Function&&!s.skipFactory&&n.isFunction(e)){let{propsDefaults:n}=a;if(r in n)i=n[r];else{let o=si(a);i=n[r]=e.call(null,t),o()}}else i=e;a.ce&&a.ce._setProp(r,i)}s[0]&&(o&&!e?i=!1:s[1]&&(i===``||i===n.hyphenate(r))&&(i=!0))}return i}let Gn=new WeakMap;function Kn(e,t,r=!1){let i=r?Gn:t.propsCache,a=i.get(e);if(a)return a;let o=e.props,s={},c=[],l=!1;if(!n.isFunction(e)){let i=e=>{l=!0;let[r,i]=Kn(e,t,!0);n.extend(s,r),i&&c.push(...i)};!r&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}if(!o&&!l)return n.isObject(e)&&i.set(e,n.EMPTY_ARR),n.EMPTY_ARR;if(n.isArray(o))for(let e=0;e<o.length;e++){let t=n.camelize(o[e]);qn(t)&&(s[t]=n.EMPTY_OBJ)}else if(o)for(let e in o){let t=n.camelize(e);if(qn(t)){let r=o[e],i=s[t]=n.isArray(r)||n.isFunction(r)?{type:r}:n.extend({},r),a=i.type,l=!1,u=!0;if(n.isArray(a))for(let e=0;e<a.length;++e){let t=a[e],r=n.isFunction(t)&&t.name;if(r===`Boolean`){l=!0;break}else r===`String`&&(u=!1)}else l=n.isFunction(a)&&a.name===`Boolean`;i[0]=l,i[1]=u,(l||n.hasOwn(i,`default`))&&c.push(t)}}let u=[s,c];return n.isObject(e)&&i.set(e,u),u}function qn(e){return e[0]!==`$`&&!n.isReservedProp(e)}let Jn=e=>e===`_`||e===`_ctx`||e===`$stable`,Yn=e=>n.isArray(e)?e.map(Yr):[Yr(e)],Xn=(e,t,n)=>{if(t._n)return t;let r=te((...e)=>Yn(t(...e)),n);return r._c=!1,r},Zn=(e,t,r)=>{let i=e._ctx;for(let r in e){if(Jn(r))continue;let a=e[r];if(n.isFunction(a))t[r]=Xn(r,a,i);else if(a!=null){let e=Yn(a);t[r]=()=>e}}},Qn=(e,t)=>{let n=Yn(t);e.slots.default=()=>n},$n=(e,t,n)=>{for(let r in t)(n||!Jn(r))&&(e[r]=t[r])},er=(e,t,r)=>{let i=e.slots=zn();if(e.vnode.shapeFlag&32){let e=t._;e?($n(i,t,r),r&&n.def(i,`_`,e,!0)):Zn(t,i)}else t&&Qn(e,t)},tr=(e,t,r)=>{let{vnode:i,slots:a}=e,o=!0,s=n.EMPTY_OBJ;if(i.shapeFlag&32){let e=t._;e?r&&e===1?o=!1:$n(a,t,r):(o=!t.$stable,Zn(t,a)),s=t}else t&&(Qn(e,t),s={default:1});if(o)for(let e in a)!Jn(e)&&s[e]==null&&delete a[e]},X=Sr;function Z(e){return rr(e)}function nr(e){return rr(e,Ge)}function rr(e,r){let i=n.getGlobalThis();i.__VUE__=!0;let{insert:a,remove:o,patchProp:s,createElement:c,createText:l,createComment:u,setText:d,setElementText:f,parentNode:p,nextSibling:m,setScopeId:h=n.NOOP,insertStaticContent:g}=e,_=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Rr(e,t)&&(r=B(e),ae(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case Er:v(e,t,n,r);break;case Q:y(e,t,n,r);break;case Dr:e??b(t,n,r,o);break;case Tr:M(e,t,n,r,i,a,o,s,c);break;default:d&1?E(e,t,n,r,i,a,o,s,c):d&6?te(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,de)}u!=null&&i?G(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&G(e.ref,null,a,e,!0)},v=(e,t,n,r)=>{if(e==null)a(t.el=l(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},y=(e,t,n,r)=>{e==null?a(t.el=u(t.children||``),n,r):t.el=e.el},b=(e,t,n,r)=>{[e.el,e.anchor]=g(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=m(e),a(e,n,r),e=i;a(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),o(e),e=n;o(t)},E=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)D(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),A(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},D=(e,t,r,i,o,l,u,d)=>{let p,m,{props:h,shapeFlag:g,transition:_,dirs:v}=e;if(p=e.el=c(e.type,l,h&&h.is,h),g&8?f(p,e.children):g&16&&k(e.children,p,null,i,o,ir(e,l),u,d),v&&P(e,null,i,`created`),O(p,e,e.scopeId,u,i),h){for(let e in h)e!==`value`&&!n.isReservedProp(e)&&s(p,e,null,h[e],l,i);`value`in h&&s(p,`value`,null,h.value,l),(m=h.onVnodeBeforeMount)&&$r(m,i,e)}v&&P(e,null,i,`beforeMount`);let y=or(o,_);y&&_.beforeEnter(p),a(p,t,r),((m=h&&h.onVnodeMounted)||y||v)&&X(()=>{try{m&&$r(m,i,e),y&&_.enter(p),v&&P(e,null,i,`mounted`)}finally{}},o)},O=(e,t,n,r,i)=>{if(n&&h(e,n),r)for(let t=0;t<r.length;t++)h(e,r[t]);if(i){let n=i.subTree;if(t===n||fr(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;O(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},k=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++)_(null,e[l]=s?Xr(e[l]):Yr(e[l]),t,n,r,i,a,o,s)},A=(e,t,r,i,a,o,c)=>{let l=t.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=e.patchFlag&16;let m=e.props||n.EMPTY_OBJ,h=t.props||n.EMPTY_OBJ,g;if(r&&ar(r,!1),(g=h.onVnodeBeforeUpdate)&&$r(g,r,t,e),p&&P(t,e,r,`beforeUpdate`),r&&ar(r,!0),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&f(l,``),d?j(e.dynamicChildren,d,l,r,i,ir(t,a),o):c||L(e,t,l,null,r,i,ir(t,a),o,!1),u>0){if(u&16)ee(l,m,h,r,a);else if(u&2&&m.class!==h.class&&s(l,`class`,null,h.class,a),u&4&&s(l,`style`,m.style,h.style,a),u&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t],i=m[n],o=h[n];(o!==i||n===`value`)&&s(l,n,i,o,a,r)}}u&1&&e.children!==t.children&&f(l,t.children)}else !c&&d==null&&ee(l,m,h,r,a);((g=h.onVnodeUpdated)||p)&&X(()=>{g&&$r(g,r,t,e),p&&P(t,e,r,`updated`)},i)},j=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s];_(c,l,c.el&&(c.type===Tr||!Rr(c,l)||c.shapeFlag&198)?p(c.el):n,null,r,i,a,o,!0)}},ee=(e,t,r,i,a)=>{if(t!==r){if(t!==n.EMPTY_OBJ)for(let o in t)!n.isReservedProp(o)&&!(o in r)&&s(e,o,t[o],null,a,i);for(let o in r){if(n.isReservedProp(o))continue;let c=r[o],l=t[o];c!==l&&o!==`value`&&s(e,o,l,c,a,i)}`value`in r&&s(e,`value`,t.value,r.value,a)}},M=(e,t,n,r,i,o,s,c,u)=>{let d=t.el=e?e.el:l(``),f=t.anchor=e?e.anchor:l(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(a(d,n,r),a(f,n,r),k(t.children||[],n,f,i,o,s,c,u)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(j(e.dynamicChildren,m,n,i,o,s,c),(t.key!=null||i&&t===i.subTree)&&sr(e,t,!0)):L(e,t,n,f,i,o,s,c,u)},te=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):N(t,n,r,i,a,o,c):F(e,t,c)},N=(e,t,n,r,i,a,o)=>{let s=e.component=ni(e,r,i);if(ot(e)&&(s.ctx.renderer=de),di(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ne,o),!e.el){let r=s.subTree=$(Q);y(null,r,t,n),e.placeholder=r.el}}else ne(s,e,t,n,i,a,o)},F=(e,t,n)=>{let r=t.component=e.component;if(Pn(e,t,n))if(r.asyncDep&&!r.asyncResolved){I(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},ne=(e,r,i,a,o,s,c)=>{let l=()=>{if(e.isMounted){let{next:t,bu:r,u:i,parent:a,vnode:l}=e;{let n=lr(e);if(n){t&&(t.el=l.el,I(e,t,c)),n.asyncDep.then(()=>{X(()=>{e.isUnmounted||d()},o)});return}}let u=t,f;ar(e,!1),t?(t.el=l.el,I(e,t,c)):t=l,r&&n.invokeArrayFns(r),(f=t.props&&t.props.onVnodeBeforeUpdate)&&$r(f,a,t,l),ar(e,!0);let m=An(e),h=e.subTree;e.subTree=m,_(h,m,p(h.el),B(h),e,o,s),t.el=m.el,u===null&&Ln(e,m.el),i&&X(i,o),(f=t.props&&t.props.onVnodeUpdated)&&X(()=>$r(f,a,t,l),o)}else{let t,{el:c,props:l}=r,{bm:u,m:d,parent:f,root:p,type:m}=e,h=rt(r);if(ar(e,!1),u&&n.invokeArrayFns(u),!h&&(t=l&&l.onVnodeBeforeMount)&&$r(t,f,r),ar(e,!0),c&&pe){let t=()=>{e.subTree=An(e),pe(c,e.subTree,e,o,null)};h&&m.__asyncHydrate?m.__asyncHydrate(c,e,t):t()}else{p.ce&&p.ce._hasShadowRoot()&&p.ce._injectChildStyle(m,e.parent?e.parent.type:void 0);let t=e.subTree=An(e);_(null,t,i,a,e,o,s),r.el=t.el}if(d&&X(d,o),!h&&(t=l&&l.onVnodeMounted)){let e=r;X(()=>$r(t,f,e),o)}(r.shapeFlag&256||f&&rt(f.vnode)&&f.vnode.shapeFlag&256)&&e.a&&X(e.a,o),e.isMounted=!0,r=i=a=null}};e.scope.on();let u=e.effect=new t.ReactiveEffect(l);e.scope.off();let d=e.update=u.run.bind(u),f=e.job=u.runIfDirty.bind(u);f.i=e,f.id=e.uid,u.scheduler=()=>x(f),ar(e,!0),d()},I=(e,n,r)=>{n.component=e;let i=e.vnode.props;e.vnode=n,e.next=null,Hn(e,n.props,i,r),tr(e,n.children,r),t.pauseTracking(),w(e),t.resetTracking()},L=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:m}=t;if(p>0){if(p&128){re(l,d,n,r,i,a,o,s,c);return}else if(p&256){R(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&ce(l,i,a),d!==l&&f(n,d)):u&16?m&16?re(l,d,n,r,i,a,o,s,c):ce(l,i,a,!0):(u&8&&f(n,``),m&16&&k(d,n,r,i,a,o,s,c))},R=(e,t,r,i,a,o,s,c,l)=>{e||=n.EMPTY_ARR,t||=n.EMPTY_ARR;let u=e.length,d=t.length,f=Math.min(u,d),p;for(p=0;p<f;p++){let n=t[p]=l?Xr(t[p]):Yr(t[p]);_(e[p],n,r,null,a,o,s,c,l)}u>d?ce(e,a,o,!0,!1,f):k(t,r,i,a,o,s,c,l,f)},re=(e,t,r,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let n=e[u],i=t[u]=l?Xr(t[u]):Yr(t[u]);if(Rr(n,i))_(n,i,r,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let n=e[f],i=t[p]=l?Xr(t[p]):Yr(t[p]);if(Rr(n,i))_(n,i,r,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,n=e<d?t[e].el:i;for(;u<=p;)_(null,t[u]=l?Xr(t[u]):Yr(t[u]),r,n,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)ae(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?Xr(t[u]):Yr(t[u]);e.key!=null&&g.set(e.key,u)}let v,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u<b;u++)C[u]=0;for(u=m;u<=f;u++){let n=e[u];if(y>=b){ae(n,a,o,!0);continue}let i;if(n.key!=null)i=g.get(n.key);else for(v=h;v<=p;v++)if(C[v-h]===0&&Rr(n,t[v])){i=v;break}i===void 0?ae(n,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,_(n,t[i],r,null,a,o,s,c,l),y++)}let w=x?cr(C):n.EMPTY_ARR;for(v=w.length-1,u=b-1;u>=0;u--){let e=h+u,n=t[e],f=t[e+1],p=e+1<d?f.el||dr(f):i;C[u]===0?_(null,n,r,p,a,o,s,c,l):x&&(v<0||u!==w[v]?ie(n,r,p,2):v--)}}},ie=(e,t,n,r,i=null)=>{let{el:s,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){ie(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,de);return}if(c===Tr){a(s,t,n);for(let e=0;e<u.length;e++)ie(u[e],t,n,r);a(e.anchor,t,n);return}if(c===Dr){S(e,t,n);return}if(r!==2&&d&1&&l)if(r===0)l.beforeEnter(s),a(s,t,n),X(()=>l.enter(s),i);else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?o(s):a(s,t,n)},d=()=>{s._isLeaving&&s[H](!0),r(s,()=>{u(),c&&c()})};i?i(s,u,d):d()}else a(s,t,n)},ae=(e,n,r,i=!1,a=!1)=>{let{type:o,props:s,ref:c,children:l,dynamicChildren:u,shapeFlag:d,patchFlag:f,dirs:p,cacheIndex:m,memo:h}=e;if(f===-2&&(a=!1),c!=null&&(t.pauseTracking(),G(c,null,r,e,!0),t.resetTracking()),m!=null&&(n.renderCache[m]=void 0),d&256){n.ctx.deactivate(e);return}let g=d&1&&p,_=!rt(e),v;if(_&&(v=s&&s.onVnodeBeforeUnmount)&&$r(v,n,e),d&6)se(e.component,r,i);else{if(d&128){e.suspense.unmount(r,i);return}g&&P(e,null,n,`beforeUnmount`),d&64?e.type.remove(e,n,r,de,i):u&&!u.hasOnce&&(o!==Tr||f>0&&f&64)?ce(u,n,r,!1,!0):(o===Tr&&f&384||!a&&d&16)&&ce(l,n,r),i&&z(e)}let y=h!=null&&m==null;(_&&(v=s&&s.onVnodeUnmounted)||g||y)&&X(()=>{v&&$r(v,n,e),g&&P(e,null,n,`unmounted`),y&&(e.el=null)},r)},z=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===Tr){oe(n,r);return}if(t===Dr){C(e);return}let a=()=>{o(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},oe=(e,t)=>{let n;for(;e!==t;)n=m(e),o(e),e=n;o(t)},se=(e,t,r)=>{let{bum:i,scope:a,job:o,subTree:s,um:c,m:l,a:u}=e;ur(l),ur(u),i&&n.invokeArrayFns(i),a.stop(),o&&(o.flags|=8,ae(s,e,t,r)),c&&X(c,t),X(()=>{e.isUnmounted=!0},t)},ce=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)ae(e[o],t,n,r,i)},B=e=>{if(e.shapeFlag&6)return B(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=m(e.anchor||e.el),n=t&&t[le];return n?m(n):t},ue=!1,V=(e,t,n)=>{let r;e==null?t._vnode&&(ae(t._vnode,null,null,!0),r=t._vnode.component):_(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ue||=(ue=!0,w(r),T(),!1)},de={p:_,um:ae,m:ie,r:z,mt:N,mc:k,pc:L,pbc:j,n:B,o:e},fe,pe;return r&&([fe,pe]=r(de)),{render:V,hydrate:fe,createApp:Sn(V,fe)}}function ir({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function ar({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function or(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function sr(e,t,r=!1){let i=e.children,a=t.children;if(n.isArray(i)&&n.isArray(a))for(let e=0;e<i.length;e++){let t=i[e],n=a[e];n.shapeFlag&1&&!n.dynamicChildren&&((n.patchFlag<=0||n.patchFlag===32)&&(n=a[e]=Xr(a[e]),n.el=t.el),!r&&n.patchFlag!==-2&&sr(t,n)),n.type===Er&&(n.patchFlag===-1&&(n=a[e]=Xr(n)),n.el=t.el),n.type===Q&&!n.el&&(n.el=t.el)}}function cr(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function lr(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:lr(t)}function ur(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function dr(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?dr(t.subTree):null}let fr=e=>e.__isSuspense,pr=0,mr={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)gr(t,n,r,i,a,o,s,c,l);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}_r(e,t,n,r,i,o,s,c,l)}},hydrate:yr,normalize:br};function hr(e,t){let r=e.props&&e.props[t];n.isFunction(r)&&r()}function gr(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=vr(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(hr(e,`onPending`),hr(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),Cr(f,e.ssFallback)):f.resolve(!1,!0)}function _r(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,Rr(h,f)?(c(h,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():g&&(_||(c(m,p,n,r,i,null,a,o,s),Cr(d,p)))):(d.pendingId=pr++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():(c(m,p,n,r,i,null,a,o,s),Cr(d,p))):m&&Rr(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0)):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&Rr(m,f))c(m,f,n,r,i,d,a,o,s),Cr(d,f);else if(hr(t,`onPending`),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=pr++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):e===0&&d.fallback(p)}}function vr(e,t,r,i,a,o,s,c,l,d,f=!1){let{p,m,um:h,n:g,o:{parentNode:_,remove:v}}=d,y,b=wr(e);b&&t&&t.pendingBranch&&(y=t.pendingId,t.deps++);let x=e.props?n.toNumber(e.props.timeout):void 0,S=o,w={vnode:e,parent:t,parentComponent:r,namespace:s,container:i,hiddenContainer:a,deps:0,pendingId:pr++,timeout:typeof x==`number`?x:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!f,isHydrating:f,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:a,pendingId:s,effects:c,parentComponent:l,container:u,isInFallback:d}=w,f=!1;if(w.isHydrating)w.isHydrating=!1;else if(!e){f=i&&a.transition&&a.transition.mode===`out-in`;let e=!1;f&&(i.transition.afterLeave=()=>{s===w.pendingId&&(m(a,u,o===S&&!e?g(i):o,0),C(c),d&&r.ssFallback&&(r.ssFallback.el=null))}),i&&!w.isFallbackMountPending&&(_(i.el)===u&&(o=g(i),e=!0),h(i,l,w,!0),!f&&d&&r.ssFallback&&X(()=>r.ssFallback.el=null,w)),f||m(a,u,o,0)}w.isFallbackMountPending=!1,Cr(w,a),w.pendingBranch=null,w.isInFallback=!1;let p=w.parent,v=!1;for(;p;){if(p.pendingBranch){p.effects.push(...c),v=!0;break}p=p.parent}!v&&!f&&C(c),w.effects=[],b&&t&&t.pendingBranch&&y===t.pendingId&&(t.deps--,t.deps===0&&!n&&t.resolve()),hr(r,`onResolve`)},fallback(e){if(!w.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=w;hr(t,`onFallback`);let o=g(n),s=()=>{w.isFallbackMountPending=!1,w.isInFallback&&(p(null,e,i,o,r,null,a,c,l),Cr(w,e))},u=e.transition&&e.transition.mode===`out-in`;u&&(w.isFallbackMountPending=!0,n.transition.afterLeave=s),w.isInFallback=!0,h(n,r,null,!0),u||s()},move(e,t,n){w.activeBranch&&m(w.activeBranch,e,t,n),w.container=e},next(){return w.activeBranch&&g(w.activeBranch)},registerDep(e,t,n){let r=!!w.pendingBranch;r&&w.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{u(t,e,0)}).then(a=>{if(e.isUnmounted||w.isUnmounted||w.pendingId!==e.suspenseId)return;ci(),e.asyncResolved=!0;let{vnode:o}=e;pi(e,a,!1),i&&(o.el=i);let c=!i&&e.subTree.el;t(e,o,_(i||e.subTree.el),i?null:g(e.subTree),w,s,n),c&&(o.placeholder=null,v(c)),Ln(e,o.el),r&&--w.deps===0&&w.resolve()})},unmount(e,t){w.isUnmounted=!0,w.activeBranch&&h(w.activeBranch,r,e,t),w.pendingBranch&&h(w.pendingBranch,r,e,t)}};return w}function yr(e,t,n,r,i,a,o,s,c){let l=t.suspense=vr(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function br(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=xr(r?n.default:n),e.ssFallback=r?xr(n.fallback):$(Q)}function xr(e){let t;if(n.isFunction(e)){let n=Mr&&e._c;n&&(e._d=!1,Ar()),e=e(),n&&(e._d=!0,t=kr,jr())}return n.isArray(e)&&(e=jn(e)),e=Yr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function Sr(e,t){t&&t.pendingBranch?n.isArray(e)?t.effects.push(...e):t.effects.push(e):C(e)}function Cr(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,Ln(r,i))}function wr(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}let Tr=Symbol.for(`v-fgt`),Er=Symbol.for(`v-txt`),Q=Symbol.for(`v-cmt`),Dr=Symbol.for(`v-stc`),Or=[],kr=null;function Ar(e=!1){Or.push(kr=e?null:[])}function jr(){Or.pop(),kr=Or[Or.length-1]||null}let Mr=1;function Nr(e,t=!1){Mr+=e,e<0&&kr&&t&&(kr.hasOnce=!0)}function Pr(e){return e.dynamicChildren=Mr>0?kr||n.EMPTY_ARR:null,jr(),Mr>0&&kr&&kr.push(e),e}function Fr(e,t,n,r,i,a){return Pr(Hr(e,t,n,r,i,a,!0))}function Ir(e,t,n,r,i){return Pr($(e,t,n,r,i,!0))}function Lr(e){return e?e.__v_isVNode===!0:!1}function Rr(e,t){return e.type===t.type&&e.key===t.key}function zr(e){}let Br=({key:e})=>e??null,Vr=({ref:e,ref_key:r,ref_for:i})=>(typeof e==`number`&&(e=``+e),e==null?null:n.isString(e)||t.isRef(e)||n.isFunction(e)?{i:O,r:e,k:r,f:!!i}:e);function Hr(e,t=null,r=null,i=0,a=null,o=e===Tr?0:1,s=!1,c=!1){let l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Br(t),ref:t&&Vr(t),scopeId:k,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:i,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:O};return c?(Zr(l,r),o&128&&e.normalize(l)):r&&(l.shapeFlag|=n.isString(r)?8:16),Mr>0&&!s&&kr&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&kr.push(l),l}let $=Ur;function Ur(e,r=null,i=null,a=0,o=null,s=!1){if((!e||e===kt)&&(e=Q),Lr(e)){let t=Gr(e,r,!0);return i&&Zr(t,i),Mr>0&&!s&&kr&&(t.shapeFlag&6?kr[kr.indexOf(e)]=t:kr.push(t)),t.patchFlag=-2,t}if(Ci(e)&&(e=e.__vccOpts),r){r=Wr(r);let{class:e,style:i}=r;e&&!n.isString(e)&&(r.class=n.normalizeClass(e)),n.isObject(i)&&(t.isProxy(i)&&!n.isArray(i)&&(i=n.extend({},i)),r.style=n.normalizeStyle(i))}let c=n.isString(e)?1:fr(e)?128:ue(e)?64:n.isObject(e)?4:n.isFunction(e)?2:0;return Hr(e,r,i,a,o,c,s,!0)}function Wr(e){return e?t.isProxy(e)||Bn(e)?n.extend({},e):e:null}function Gr(e,t,r=!1,i=!1){let{props:a,ref:o,patchFlag:s,children:c,transition:l}=e,u=t?Qr(a||{},t):a,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Br(u),ref:t&&t.ref?r&&o?n.isArray(o)?o.concat(Vr(t)):[o,Vr(t)]:Vr(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Tr?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Gr(e.ssContent),ssFallback:e.ssFallback&&Gr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&i&&Pe(d,l.clone(d)),d}function Kr(e=` `,t=0){return $(Er,null,e,t)}function qr(e,t){let n=$(Dr,null,e);return n.staticCount=t,n}function Jr(e=``,t=!1){return t?(Ar(),Ir(Q,null,e)):$(Q,null,e)}function Yr(e){return e==null||typeof e==`boolean`?$(Q):n.isArray(e)?$(Tr,null,e.slice()):Lr(e)?Xr(e):$(Er,null,String(e))}function Xr(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Gr(e)}function Zr(e,t){let r=0,{shapeFlag:i}=e;if(t==null)t=null;else if(n.isArray(t))r=16;else if(typeof t==`object`)if(i&65){let n=t.default;n&&(n._c&&(n._d=!1),Zr(e,n()),n._c&&(n._d=!0));return}else{r=32;let n=t._;!n&&!Bn(t)?t._ctx=O:n===3&&O&&(O.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else n.isFunction(t)?(t={default:t,_ctx:O},r=32):(t=String(t),i&64?(r=16,t=[Kr(t)]):r=8);e.children=t,e.shapeFlag|=r}function Qr(...e){let t={};for(let r=0;r<e.length;r++){let i=e[r];for(let e in i)if(e===`class`)t.class!==i.class&&(t.class=n.normalizeClass([t.class,i.class]));else if(e===`style`)t.style=n.normalizeStyle([t.style,i.style]);else if(n.isOn(e)){let r=t[e],a=i[e];a&&r!==a&&!(n.isArray(r)&&r.includes(a))?t[e]=r?[].concat(r,a):a:a==null&&r==null&&!n.isModelListener(e)&&(t[e]=a)}else e!==``&&(t[e]=i[e])}return t}function $r(e,t,n,r=null){l(e,t,7,[n,r])}let ei=bn(),ti=0;function ni(e,r,i){let a=e.type,o=(r?r.appContext:e.appContext)||ei,s={uid:ti++,vnode:e,type:a,parent:r,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new t.EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:r?r.provides:Object.create(o.provides),ids:r?r.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Kn(a,o),emitsOptions:On(a,o),emit:null,emitted:null,propsDefaults:n.EMPTY_OBJ,inheritAttrs:a.inheritAttrs,ctx:n.EMPTY_OBJ,data:n.EMPTY_OBJ,props:n.EMPTY_OBJ,attrs:n.EMPTY_OBJ,slots:n.EMPTY_OBJ,refs:n.EMPTY_OBJ,setupState:n.EMPTY_OBJ,setupContext:null,suspense:i,suspenseId:i?i.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=r?r.root:s,s.emit=En.bind(null,s),e.ce&&e.ce(s),s}let ri=null,ii=()=>ri||O,ai,oi;{let e=n.getGlobalThis(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};ai=t(`__VUE_INSTANCE_SETTERS__`,e=>ri=e),oi=t(`__VUE_SSR_SETTERS__`,e=>ui=e)}let si=e=>{let t=ri;return ai(e),e.scope.on(),()=>{e.scope.off(),ai(t)}},ci=()=>{ri&&ri.scope.off(),ai(null)};function li(e){return e.vnode.shapeFlag&4}let ui=!1;function di(e,t=!1,n=!1){t&&oi(t);let{props:r,children:i}=e.vnode,a=li(e);Vn(e,r,a,t),er(e,i,n||t);let o=a?fi(e,t):void 0;return t&&oi(!1),o}function fi(e,r){let i=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Vt);let{setup:a}=i;if(a){t.pauseTracking();let i=e.setupContext=a.length>1?bi(e):null,o=si(e),s=c(a,e,0,[e.props,i]),l=n.isPromise(s);if(t.resetTracking(),o(),(l||e.sp)&&!rt(e)&&Le(e),l){if(s.then(ci,ci),r)return s.then(t=>{pi(e,t,r)}).catch(t=>{u(t,e,0)});e.asyncDep=s}else pi(e,s,r)}else vi(e,r)}function pi(e,r,i){n.isFunction(r)?e.type.__ssrInlineRender?e.ssrRender=r:e.render=r:n.isObject(r)&&(e.setupState=t.proxyRefs(r)),vi(e,i)}let mi,hi;function gi(e){mi=e,hi=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Ht))}}let _i=()=>!mi;function vi(e,r,i){let a=e.type;if(!e.render){if(!r&&mi&&!a.render){let t=a.template||un(e).template;if(t){let{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:o,compilerOptions:s}=a,c=n.extend(n.extend({isCustomElement:r,delimiters:o},i),s);a.render=mi(t,c)}}e.render=a.render||n.NOOP,hi&&hi(e)}{let n=si(e);t.pauseTracking();try{on(e)}finally{t.resetTracking(),n()}}}let yi={get(e,n){return t.track(e,`get`,``),e[n]}};function bi(e){return{attrs:new Proxy(e.attrs,yi),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function xi(e){return e.exposed?e.exposeProxy||=new Proxy(t.proxyRefs(t.markRaw(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in zt)return zt[n](e)},has(e,t){return t in e||t in zt}}):e.proxy}function Si(e,t=!0){return n.isFunction(e)?e.displayName||e.name:e.name||t&&e.__name}function Ci(e){return n.isFunction(e)&&`__vccOpts`in e}let wi=(e,n)=>t.computed(e,n,ui);function Ti(e,t,r){try{Nr(-1);let i=arguments.length;return i===2?n.isObject(t)&&!n.isArray(t)?Lr(t)?$(e,null,[t]):$(e,t):$(e,null,t):(i>3?r=Array.prototype.slice.call(arguments,2):i===3&&Lr(r)&&(r=[r]),$(e,t,r))}finally{Nr(1)}}function Ei(){}function Di(e,t,n,r){let i=n[r];if(i&&Oi(i,e))return i;let a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function Oi(e,t){let r=e.memo;if(r.length!=t.length)return!1;for(let e=0;e<r.length;e++)if(n.hasChanged(r[e],t[e]))return!1;return Mr>0&&kr&&kr.push(e),!0}let ki=`3.5.34`,Ai=n.NOOP,ji=s,Mi=n.NOOP,Ni={createComponentInstance:ni,setupComponent:di,renderComponentRoot:An,setCurrentRenderingInstance:A,isVNode:Lr,normalizeVNode:Yr,getComponentPublicInstance:xi,ensureValidVNode:It,pushWarningContext:r,popWarningContext:i};e.EffectScope=t.EffectScope,e.ReactiveEffect=t.ReactiveEffect,e.TrackOpTypes=t.TrackOpTypes,e.TriggerOpTypes=t.TriggerOpTypes,e.customRef=t.customRef,e.effect=t.effect,e.effectScope=t.effectScope,e.getCurrentScope=t.getCurrentScope,e.getCurrentWatcher=t.getCurrentWatcher,e.isProxy=t.isProxy,e.isReactive=t.isReactive,e.isReadonly=t.isReadonly,e.isRef=t.isRef,e.isShallow=t.isShallow,e.markRaw=t.markRaw,e.onScopeDispose=t.onScopeDispose,e.onWatcherCleanup=t.onWatcherCleanup,e.proxyRefs=t.proxyRefs,e.reactive=t.reactive,e.readonly=t.readonly,e.ref=t.ref,e.shallowReactive=t.shallowReactive,e.shallowReadonly=t.shallowReadonly,e.shallowRef=t.shallowRef,e.stop=t.stop,e.toRaw=t.toRaw,e.toRef=t.toRef,e.toRefs=t.toRefs,e.toValue=t.toValue,e.triggerRef=t.triggerRef,e.unref=t.unref,e.camelize=n.camelize,e.capitalize=n.capitalize,e.normalizeClass=n.normalizeClass,e.normalizeProps=n.normalizeProps,e.normalizeStyle=n.normalizeStyle,e.toDisplayString=n.toDisplayString,e.toHandlerKey=n.toHandlerKey,e.BaseTransition=De,e.BaseTransitionPropsValidators=Ce,e.Comment=Q,e.DeprecationTypes=null,e.ErrorCodes=o,e.ErrorTypeStrings=ji,e.Fragment=Tr,e.KeepAlive=st,e.Static=Dr,e.Suspense=mr,e.Teleport=ve,e.Text=Er,e.assertNumber=a,e.callWithAsyncErrorHandling=l,e.callWithErrorHandling=c,e.cloneVNode=Gr,e.compatUtils=null,e.computed=wi,e.createBlock=Ir,e.createCommentVNode=Jr,e.createElementBlock=Fr,e.createElementVNode=Hr,e.createHydrationRenderer=nr,e.createPropsRestProxy=nn,e.createRenderer=Z,e.createSlots=Pt,e.createStaticVNode=qr,e.createTextVNode=Kr,e.createVNode=$,e.defineAsyncComponent=it,e.defineComponent=Ie,e.defineEmits=Wt,e.defineExpose=Gt,e.defineModel=Jt,e.defineOptions=Kt,e.defineProps=Ut,e.defineSlots=qt,e.devtools=void 0,e.getCurrentInstance=ii,e.getTransitionRawChildren=Fe,e.guardReactiveProps=Wr,e.h=Ti,e.handleError=u,e.hasInjectionContext=I,e.hydrateOnIdle=Ze,e.hydrateOnInteraction=tt,e.hydrateOnMediaQuery=et,e.hydrateOnVisible=$e,e.initCustomFormatter=Ei,e.inject=ne,e.isMemoSame=Oi,e.isRuntimeOnly=_i,e.isVNode=Lr,e.mergeDefaults=en,e.mergeModels=tn,e.mergeProps=Qr,e.nextTick=y,e.onActivated=lt,e.onBeforeMount=_t,e.onBeforeUnmount=xt,e.onBeforeUpdate=yt,e.onDeactivated=ut,e.onErrorCaptured=Et,e.onMounted=vt,e.onRenderTracked=Tt,e.onRenderTriggered=wt,e.onServerPrefetch=Ct,e.onUnmounted=St,e.onUpdated=bt,e.openBlock=Ar,e.popScopeId=ee,e.provide=F,e.pushScopeId=j,e.queuePostFlushCb=C,e.registerRuntimeCompiler=gi,e.renderList=Nt,e.renderSlot=Ft,e.resolveComponent=Ot,e.resolveDirective=At,e.resolveDynamicComponent=Y,e.resolveFilter=null,e.resolveTransitionHooks=ke,e.setBlockTracking=Nr,e.setDevtoolsHook=Mi,e.setTransitionHooks=Pe,e.ssrContextKey=L,e.ssrUtils=Ni,e.toHandlers=Lt,e.transformVNodeArgs=zr,e.useAttrs=Zt,e.useId=W,e.useModel=wn,e.useSSRContext=R,e.useSlots=Xt,e.useTemplateRef=Re,e.useTransitionState=Se,e.version=ki,e.warn=Ai,e.watch=z,e.watchEffect=re,e.watchPostEffect=ie,e.watchSyncEffect=ae,e.withAsyncContext=rn,e.withCtx=te,e.withDefaults=Yt,e.withDirectives=N,e.withMemo=Di,e.withScopeId=M})),Pe=o(((e,t)=>{t.exports=Ne()})),Fe=o((e=>{
|
|
35
|
-
/**
|
|
36
|
-
* @vue/runtime-dom v3.5.34
|
|
37
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
38
|
-
* @license MIT
|
|
39
|
-
**/
|
|
40
|
-
Object.defineProperty(e,`__esModule`,{value:!0});var t=Pe(),n=Ae();let r,i=typeof window<`u`&&window.trustedTypes;if(i)try{r=i.createPolicy(`vue`,{createHTML:e=>e})}catch{}let a=r?e=>r.createHTML(e):e=>e,o=typeof document<`u`?document:null,s=o&&o.createElement(`template`),c={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?o.createElementNS(`http://www.w3.org/2000/svg`,e):t===`mathml`?o.createElementNS(`http://www.w3.org/1998/Math/MathML`,e):n?o.createElement(e,{is:n}):o.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>o.createTextNode(e),createComment:e=>o.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>o.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,o){let c=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{s.innerHTML=a(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=s.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[c?c.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},l=`transition`,u=`animation`,d=Symbol(`_vtc`),f={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},p=n.extend({},t.BaseTransitionPropsValidators,f),m=(e=>(e.displayName=`Transition`,e.props=p,e))((e,{slots:n})=>t.h(t.BaseTransition,_(e),n)),h=(e,t=[])=>{n.isArray(e)?e.forEach(e=>e(...t)):e&&e(...t)},g=e=>e?n.isArray(e)?e.some(e=>e.length>1):e.length>1:!1;function _(e){let t={};for(let n in e)n in f||(t[n]=e[n]);if(e.css===!1)return t;let{name:r=`v`,type:i,duration:a,enterFromClass:o=`${r}-enter-from`,enterActiveClass:s=`${r}-enter-active`,enterToClass:c=`${r}-enter-to`,appearFromClass:l=o,appearActiveClass:u=s,appearToClass:d=c,leaveFromClass:p=`${r}-leave-from`,leaveActiveClass:m=`${r}-leave-active`,leaveToClass:_=`${r}-leave-to`}=e,y=v(a),C=y&&y[0],T=y&&y[1],{onBeforeEnter:E,onEnter:D,onEnterCancelled:k,onLeave:A,onLeaveCancelled:j,onBeforeAppear:ee=E,onAppear:M=D,onAppearCancelled:te=k}=t,N=(e,t,n,r)=>{e._enterCancelled=r,x(e,t?d:c),x(e,t?u:s),n&&n()},P=(e,t)=>{e._isLeaving=!1,x(e,p),x(e,_),x(e,m),t&&t()},F=e=>(t,n)=>{let r=e?M:D,a=()=>N(t,e,n);h(r,[t,a]),S(()=>{x(t,e?l:o),b(t,e?d:c),g(r)||w(t,i,C,a)})};return n.extend(t,{onBeforeEnter(e){h(E,[e]),b(e,o),b(e,s)},onBeforeAppear(e){h(ee,[e]),b(e,l),b(e,u)},onEnter:F(!1),onAppear:F(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>P(e,t);b(e,p),e._enterCancelled?(b(e,m),O(e)):(O(e),b(e,m)),S(()=>{e._isLeaving&&(x(e,p),b(e,_),g(A)||w(e,i,T,n))}),h(A,[e,n])},onEnterCancelled(e){N(e,!1,void 0,!0),h(k,[e])},onAppearCancelled(e){N(e,!0,void 0,!0),h(te,[e])},onLeaveCancelled(e){P(e),h(j,[e])}})}function v(e){if(e==null)return null;if(n.isObject(e))return[y(e.enter),y(e.leave)];{let t=y(e);return[t,t]}}function y(e){return n.toNumber(e)}function b(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[d]||(e[d]=new Set)).add(t)}function x(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[d];n&&(n.delete(t),n.size||(e[d]=void 0))}function S(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let C=0;function w(e,t,n,r){let i=e._endId=++C,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=T(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function T(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${l}Delay`),a=r(`${l}Duration`),o=E(i,a),s=r(`${u}Delay`),c=r(`${u}Duration`),d=E(s,c),f=null,p=0,m=0;t===l?o>0&&(f=l,p=o,m=a.length):t===u?d>0&&(f=u,p=d,m=c.length):(p=Math.max(o,d),f=p>0?o>d?l:u:null,m=f?f===l?a.length:c.length:0);let h=f===l&&/\b(?:transform|all)(?:,|$)/.test(r(`${l}Property`).toString());return{type:f,timeout:p,propCount:m,hasTransform:h}}function E(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>D(t)+D(e[n])))}function D(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function O(e){return(e?e.ownerDocument:document).body.offsetHeight}function k(e,t,n){let r=e[d];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}let A=Symbol(`_vod`),j=Symbol(`_vsh`),ee={name:`show`,beforeMount(e,{value:t},{transition:n}){e[A]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):M(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),M(e,!0),r.enter(e)):r.leave(e,()=>{M(e,!1)}):M(e,t))},beforeUnmount(e,{value:t}){M(e,t)}};function M(e,t){e.style.display=t?e[A]:`none`,e[j]=!t}function te(){ee.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}let N=Symbol(``);function P(e){}let F=/(?:^|;)\s*display\s*:/;function ne(e,t,r){let i=e.style,a=n.isString(r),o=!1;if(r&&!a){if(t)if(n.isString(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();r[t]??L(i,t,``)}else for(let e in t)r[e]??L(i,e,``);for(let a in r){a===`display`&&(o=!0);let s=r[a];s==null?L(i,a,``):ae(e,a,!n.isString(t)&&t?t[a]:void 0,s)||L(i,a,s)}}else if(a){if(t!==r){let e=i[N];e&&(r+=`;`+e),i.cssText=r,o=F.test(r)}}else t&&e.removeAttribute(`style`);A in e&&(e[A]=o?i.display:``,e[j]&&(i.display=`none`))}let I=/\s*!important$/;function L(e,t,r){if(n.isArray(r))r.forEach(n=>L(e,t,n));else if(r??=``,t.startsWith(`--`))e.setProperty(t,r);else{let i=ie(e,t);I.test(r)?e.setProperty(n.hyphenate(i),r.replace(I,``),`important`):e[i]=r}}let R=[`Webkit`,`Moz`,`ms`],re={};function ie(e,r){let i=re[r];if(i)return i;let a=t.camelize(r);if(a!==`filter`&&a in e)return re[r]=a;a=n.capitalize(a);for(let t=0;t<R.length;t++){let n=R[t]+a;if(n in e)return re[r]=n}return r}function ae(e,t,r,i){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&n.isString(i)&&r===i}let z=`http://www.w3.org/1999/xlink`;function oe(e,t,r,i,a,o=n.isSpecialBooleanAttr(t)){i&&t.startsWith(`xlink:`)?r==null?e.removeAttributeNS(z,t.slice(6,t.length)):e.setAttributeNS(z,t,r):r==null||o&&!n.includeBooleanAttr(r)?e.removeAttribute(t):e.setAttribute(t,o?``:n.isSymbol(r)?String(r):r)}function se(e,t,r,i,o){if(t===`innerHTML`||t===`textContent`){r!=null&&(e[t]=t===`innerHTML`?a(r):r);return}let s=e.tagName;if(t===`value`&&s!==`PROGRESS`&&!s.includes(`-`)){let n=s===`OPTION`?e.getAttribute(`value`)||``:e.value,i=r==null?e.type===`checkbox`?`on`:``:String(r);(n!==i||!(`_value`in e))&&(e.value=i),r??e.removeAttribute(t),e._value=r;return}let c=!1;if(r===``||r==null){let i=typeof e[t];i===`boolean`?r=n.includeBooleanAttr(r):r==null&&i===`string`?(r=``,c=!0):i===`number`&&(r=0,c=!0)}try{e[t]=r}catch{}c&&e.removeAttribute(o||t)}function ce(e,t,n,r){e.addEventListener(t,n,r)}function B(e,t,n,r){e.removeEventListener(t,n,r)}let le=Symbol(`_vei`);function ue(e,t,n,r,i=null){let a=e[le]||(e[le]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=de(t);r?ce(e,n,a[t]=he(r,i),s):o&&(B(e,n,o,s),a[t]=void 0)}}let V=/(?:Once|Passive|Capture)$/;function de(e){let t;if(V.test(e)){t={};let n;for(;n=e.match(V);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===`:`?e.slice(3):n.hyphenate(e.slice(2)),t]}let fe=0,pe=Promise.resolve(),me=()=>fe||=(pe.then(()=>fe=0),Date.now());function he(e,n){let r=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=r.attached)return;t.callWithAsyncErrorHandling(ge(e,r.value),n,5,[e])};return r.value=e,r.attached=me(),r}function ge(e,t){if(n.isArray(t)){let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}else return t}let _e=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ve=(e,t,r,i,a,o)=>{let s=a===`svg`;t===`class`?k(e,i,s):t===`style`?ne(e,r,i):n.isOn(t)?n.isModelListener(t)||ue(e,t,r,i,o):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):ye(e,t,i,s))?(se(e,t,i),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&oe(e,t,i,s,o,t!==`value`)):e._isVueCE&&(be(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!n.isString(i)))?se(e,n.camelize(t),i,o,t):(t===`true-value`?e._trueValue=i:t===`false-value`&&(e._falseValue=i),oe(e,t,i,s))};function ye(e,t,r,i){if(i)return!!(t===`innerHTML`||t===`textContent`||t in e&&_e(t)&&n.isFunction(r));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return _e(t)&&n.isString(r)?!1:t in e}function be(e,t){let r=e._def.props;if(!r)return!1;let i=n.camelize(t);return Array.isArray(r)?r.some(e=>n.camelize(e)===i):Object.keys(r).some(e=>n.camelize(e)===i)}let H={};function xe(e,r,i){let a=t.defineComponent(e,r);n.isPlainObject(a)&&(a=n.extend({},a,r));class o extends Ce{constructor(e){super(a,e,i)}}return o.def=a,o}let Se=((e,t)=>xe(e,t,ut)),U=typeof HTMLElement<`u`?HTMLElement:class{};var Ce=class e extends U{constructor(e,t={},r=lt){super(),this._def=e,this._props=t,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&r!==lt?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow(n.extend({},e.shadowRootOptions,{mode:`open`})),this._root=this.shadowRoot)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.assignedSlot||t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,t.nextTick(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&=(this._teleportTargets.clear(),void 0))})}_processMutations(e){for(let t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});let e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;let{props:r,styles:i}=e,a;if(r&&!n.isArray(r))for(let e in r){let t=r[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=n.toNumber(this._props[e])),(a||=Object.create(null))[n.camelize(e)]=!0)}this._numberProps=a,this._resolveProps(e),this.shadowRoot&&this._applyStyles(i),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let r=this._instance&&this._instance.exposed;if(r)for(let e in r)n.hasOwn(this,e)||Object.defineProperty(this,e,{get:()=>t.unref(r[e])})}_resolveProps(e){let{props:t}=e,r=n.isArray(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&r.includes(e)&&this._setProp(e,this[e]);for(let e of r.map(n.camelize))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),r=t?this.getAttribute(e):H,i=n.camelize(e);t&&this._numberProps&&this._numberProps[i]&&(r=n.toNumber(r)),this._setProp(i,r,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,r=!0,i=!1){if(t!==this._props[e]&&(this._dirty=!0,t===H?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),i&&this._instance&&this._update(),r)){let r=this._ob;r&&(this._processMutations(r.takeRecords()),r.disconnect()),t===!0?this.setAttribute(n.hyphenate(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(n.hyphenate(e),t+``):t||this.removeAttribute(n.hyphenate(e)),r&&r.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),st(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let r=t.createVNode(this._def,n.extend(e,this._props));return this._instance||(r.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,n.isPlainObject(t[0])?n.extend({detail:t},t[0]):{detail:t}))};e.emit=(e,...r)=>{t(e,r),n.hyphenate(e)!==e&&t(n.hyphenate(e),r)},this._setParent()}),r}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let r=this._nonce,i=this.shadowRoot,a=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i),o=null;for(let s=e.length-1;s>=0;s--){let c=document.createElement(`style`);r&&c.setAttribute(`nonce`,r),c.textContent=e[s],i.insertBefore(c,o||a),o=c,s===0&&(n||this._styleAnchors.set(this._def,c),t&&this._styleAnchors.set(t,c))}}_getStyleAnchor(e){if(!e)return null;let t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){let e=this._slots={},t;for(;t=this.firstChild;){let n=t.nodeType===1&&t.getAttribute(`slot`)||`default`;(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){let e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){let r=e[n],i=r.getAttribute(`name`)||`default`,a=this._slots[i],o=r.parentNode;if(a)for(let e of a){if(t&&e.nodeType===1){let n=t+`-s`,r=document.createTreeWalker(e,1);e.setAttribute(n,``);let i;for(;i=r.nextNode();)i.setAttribute(n,``)}o.insertBefore(e,r)}else for(;r.firstChild;)o.insertBefore(r.firstChild,r);o.removeChild(r)}}_getSlots(){let e=[this];this._teleportTargets&&e.push(...this._teleportTargets);let t=new Set;for(let n of e){let e=n.querySelectorAll(`slot`);for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(e){}};function we(e){let n=t.getCurrentInstance();return n&&n.ce||null}function Te(){let e=we();return e&&e.shadowRoot}function Ee(e=`$style`){{let r=t.getCurrentInstance();if(!r)return n.EMPTY_OBJ;let i=r.type.__cssModules;return i&&i[e]||n.EMPTY_OBJ}}let De=new WeakMap,Oe=new WeakMap,ke=Symbol(`_moveCb`),je=Symbol(`_enterCb`),Me=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:n.extend({},p,{tag:String,moveClass:String}),setup(e,{slots:n}){let r=t.getCurrentInstance(),i=t.useTransitionState(),a,o;return t.onUpdated(()=>{if(!a.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!Le(a[0].el,r.vnode.el,t)){a=[];return}a.forEach(Ne),a.forEach(Fe);let n=a.filter(Ie);O(r.vnode.el),n.forEach(e=>{let n=e.el,r=n.style;b(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[ke]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[ke]=null,x(n,t))};n.addEventListener(`transitionend`,i)}),a=[]}),()=>{let s=t.toRaw(e),c=_(s),l=s.tag||t.Fragment;if(a=[],o)for(let e=0;e<o.length;e++){let n=o[e];n.el&&n.el instanceof Element&&(a.push(n),t.setTransitionHooks(n,t.resolveTransitionHooks(n,c,i,r)),De.set(n,W(n.el)))}o=n.default?t.getTransitionRawChildren(n.default()):[];for(let e=0;e<o.length;e++){let n=o[e];n.key!=null&&t.setTransitionHooks(n,t.resolveTransitionHooks(n,c,i,r))}return t.createVNode(l,null,o)}}});function Ne(e){let t=e.el;t[ke]&&t[ke](),t[je]&&t[je]()}function Fe(e){Oe.set(e,W(e.el))}function Ie(e){let t=De.get(e),n=Oe.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el,n=t.style,a=t.getBoundingClientRect(),o=1,s=1;return t.offsetWidth&&(o=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),(!Number.isFinite(o)||o===0)&&(o=1),(!Number.isFinite(s)||s===0)&&(s=1),Math.abs(o-1)<.01&&(o=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/o}px,${i/s}px)`,n.transitionDuration=`0s`,e}}function W(e){let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function Le(e,t,n){let r=e.cloneNode(),i=e[d];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=T(r);return a.removeChild(r),o}let Re=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return n.isArray(t)?e=>n.invokeArrayFns(t,e):t};function ze(e){e.target.composing=!0}function Be(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}let G=Symbol(`_assign`);function K(e,t,r){return t&&(e=e.trim()),r&&(e=n.looseToNumber(e)),e}let Ve={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[G]=Re(i);let a=r||i.props&&i.props.type===`number`;ce(e,t?`change`:`input`,t=>{t.target.composing||e[G](K(e.value,n,a))}),(n||a)&&ce(e,`change`,()=>{e.value=K(e.value,n,a)}),t||(ce(e,`compositionstart`,ze),ce(e,`compositionend`,Be),ce(e,`change`,Be))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:i,trim:a,number:o}},s){if(e[G]=Re(s),e.composing)return;let c=(o||e.type===`number`)&&!/^0\d/.test(e.value)?n.looseToNumber(e.value):e.value,l=t??``;if(c===l)return;let u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!==`range`&&(i&&t===r||a&&e.value.trim()===l)||(e.value=l)}},q={deep:!0,created(e,t,r){e[G]=Re(r),ce(e,`change`,()=>{let t=e._modelValue,r=Ge(e),i=e.checked,a=e[G];if(n.isArray(t)){let e=n.looseIndexOf(t,r),o=e!==-1;if(i&&!o)a(t.concat(r));else if(!i&&o){let n=[...t];n.splice(e,1),a(n)}}else if(n.isSet(t)){let e=new Set(t);i?e.add(r):e.delete(r),a(e)}else a(Ke(e,i))})},mounted:He,beforeUpdate(e,t,n){e[G]=Re(n),He(e,t,n)}};function He(e,{value:t,oldValue:r},i){e._modelValue=t;let a;if(n.isArray(t))a=n.looseIndexOf(t,i.props.value)>-1;else if(n.isSet(t))a=t.has(i.props.value);else{if(t===r)return;a=n.looseEqual(t,Ke(e,!0))}e.checked!==a&&(e.checked=a)}let Ue={created(e,{value:t},r){e.checked=n.looseEqual(t,r.props.value),e[G]=Re(r),ce(e,`change`,()=>{e[G](Ge(e))})},beforeUpdate(e,{value:t,oldValue:r},i){e[G]=Re(i),t!==r&&(e.checked=n.looseEqual(t,i.props.value))}},We={deep:!0,created(e,{value:r,modifiers:{number:i}},a){let o=n.isSet(r);ce(e,`change`,()=>{let r=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>i?n.looseToNumber(Ge(e)):Ge(e));e[G](e.multiple?o?new Set(r):r:r[0]),e._assigning=!0,t.nextTick(()=>{e._assigning=!1})}),e[G]=Re(a)},mounted(e,{value:t}){J(e,t)},beforeUpdate(e,t,n){e[G]=Re(n)},updated(e,{value:t}){e._assigning||J(e,t)}};function J(e,t){let r=e.multiple,i=n.isArray(t);if(!(r&&!i&&!n.isSet(t))){for(let a=0,o=e.options.length;a<o;a++){let o=e.options[a],s=Ge(o);if(r)if(i){let e=typeof s;e===`string`||e===`number`?o.selected=t.some(e=>String(e)===String(s)):o.selected=n.looseIndexOf(t,s)>-1}else o.selected=t.has(s);else if(n.looseEqual(Ge(o),t)){e.selectedIndex!==a&&(e.selectedIndex=a);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ge(e){return`_value`in e?e._value:e.value}function Ke(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}let qe={created(e,t,n){Ye(e,t,n,null,`created`)},mounted(e,t,n){Ye(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){Ye(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){Ye(e,t,n,r,`updated`)}};function Je(e,t){switch(e){case`SELECT`:return We;case`TEXTAREA`:return Ve;default:switch(t){case`checkbox`:return q;case`radio`:return Ue;default:return Ve}}}function Ye(e,t,n,r,i){let a=Je(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function Xe(){Ve.getSSRProps=({value:e})=>({value:e}),Ue.getSSRProps=({value:e},t)=>{if(t.props&&n.looseEqual(t.props.value,e))return{checked:!0}},q.getSSRProps=({value:e},t)=>{if(n.isArray(e)){if(t.props&&n.looseIndexOf(e,t.props.value)>-1)return{checked:!0}}else if(n.isSet(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},qe.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=Je(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}let Ze=[`ctrl`,`shift`,`alt`,`meta`],Qe={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>Ze.some(n=>e[`${n}Key`]&&!t.includes(n))},$e=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Qe[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},et={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},tt=(e,t)=>{let r=e._withKeys||={},i=t.join(`.`);return r[i]||(r[i]=(r=>{if(!(`key`in r))return;let i=n.hyphenate(r.key);if(t.some(e=>e===i||et[e]===i))return e(r)}))},nt=n.extend({patchProp:ve},c),rt,it=!1;function at(){return rt||=t.createRenderer(nt)}function ot(){return rt=it?rt:t.createHydrationRenderer(nt),it=!0,rt}let st=((...e)=>{at().render(...e)}),ct=((...e)=>{ot().hydrate(...e)}),lt=((...e)=>{let t=at().createApp(...e),{mount:r}=t;return t.mount=e=>{let i=ft(e);if(!i)return;let a=t._component;!n.isFunction(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent=``);let o=r(i,!1,dt(i));return i instanceof Element&&(i.removeAttribute(`v-cloak`),i.setAttribute(`data-v-app`,``)),o},t}),ut=((...e)=>{let t=ot().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=ft(e);if(t)return n(t,!0,dt(t))},t});function dt(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function ft(e){return n.isString(e)?document.querySelector(e):e}let pt=!1;e.Transition=m,e.TransitionGroup=Me,e.VueElement=Ce,e.createApp=lt,e.createSSRApp=ut,e.defineCustomElement=xe,e.defineSSRCustomElement=Se,e.hydrate=ct,e.initDirectivesForSSR=()=>{pt||(pt=!0,Xe(),te())},e.nodeOps=c,e.patchProp=ve,e.render=st,e.useCssModule=Ee,e.useCssVars=P,e.useHost=we,e.useShadowRoot=Te,e.vModelCheckbox=q,e.vModelDynamic=qe,e.vModelRadio=Ue,e.vModelSelect=We,e.vModelText=Ve,e.vShow=ee,e.withKeys=tt,e.withModifiers=$e,Object.keys(t).forEach(function(n){n!==`default`&&!Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=t[n])})})),Ie=o(((e,t)=>{t.exports=Fe()})),W=s({compile:()=>Le});l(W,u(Ie()));
|
|
41
|
-
/**
|
|
42
|
-
* vue v3.5.34
|
|
43
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
44
|
-
* @license MIT
|
|
45
|
-
**/
|
|
46
|
-
const Le=()=>{};function Re(e,t){return(0,W.getCurrentScope)()?((0,W.onScopeDispose)(e,t),!0):!1}const ze=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;const Be=Object.prototype.toString,G=e=>Be.call(e)===`[object Object]`,K=()=>{};function Ve(...e){if(e.length!==1)return(0,W.toRef)(...e);let t=e[0];return typeof t==`function`?(0,W.readonly)((0,W.customRef)(()=>({get:t,set:K}))):(0,W.ref)(t)}function q(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}const He=e=>e();function Ue(e,t={}){let n,r,i=K,a=e=>{clearTimeout(e),i(),i=K},o;return s=>{let c=(0,W.toValue)(e),l=(0,W.toValue)(t.maxWait);return n&&a(n),c<=0||l!==void 0&&l<=0?(r&&=(a(r),void 0),Promise.resolve(s())):new Promise((e,u)=>{i=t.rejectOnCancel?u:e,o=s,l&&!r&&(r=setTimeout(()=>{n&&a(n),r=void 0,e(o())},l)),n=setTimeout(()=>{r&&a(r),r=void 0,e(s())},c)})}}function We(e=He,t={}){let{initialState:n=`active`}=t,r=Ve(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:(0,W.shallowReadonly)(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function J(e){return Array.isArray(e)?e:[e]}function Ge(e){return e||(0,W.getCurrentInstance)()}function Ke(e,t=200,n={}){return q(Ue(t,n),e)}function qe(e,t,n={}){let{eventFilter:r=He,...i}=n;return(0,W.watch)(e,q(r,t),i)}function Je(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=We(r,{initialState:i});return{stop:qe(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function Ye(e,t=!0,n){Ge(n)?(0,W.onMounted)(e,n):t?e():(0,W.nextTick)(e)}function Xe(e,t){Ge(t)&&(0,W.onUnmounted)(e,t)}function Ze(e,t=1e3,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=null,o=(0,W.shallowRef)(!1);function s(){a&&=(clearInterval(a),null)}function c(){o.value=!1,s()}function l(){let n=(0,W.toValue)(t);n<=0||(o.value=!0,i&&e(),s(),o.value&&(a=setInterval(e,n)))}return r&&ze&&l(),((0,W.isRef)(t)||typeof t==`function`)&&Re((0,W.watch)(t,()=>{o.value&&ze&&l()})),Re(c),{isActive:(0,W.shallowReadonly)(o),pause:c,resume:l}}function Qe(e,t,n){return(0,W.watch)(e,t,{...n,immediate:!0})}const $e=ze?window:void 0,et=ze?window.document:void 0;ze&&window.navigator,ze&&window.location;function tt(e){let t=(0,W.toValue)(e);return t?.$el??t}function nt(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=(0,W.computed)(()=>{let t=J((0,W.toValue)(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return Qe(()=>[n.value?.map(e=>tt(e))??[$e].filter(e=>e!=null),J((0,W.toValue)(n.value?e[1]:e[0])),J((0,W.unref)(n.value?e[2]:e[1])),(0,W.toValue)(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=G(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function rt(e,t={}){let{immediate:n=!0,fpsLimit:r=null,window:i=$e,once:a=!1}=t,o=(0,W.shallowRef)(!1),s=(0,W.computed)(()=>{let e=(0,W.toValue)(r);return e?1e3/e:null}),c=0,l=null;function u(t){if(!o.value||!i)return;c||=t;let n=t-c;if(s.value&&n<s.value){l=i.requestAnimationFrame(u);return}if(c=t,e({delta:n,timestamp:t}),a){o.value=!1,l=null;return}l=i.requestAnimationFrame(u)}function d(){!o.value&&i&&(o.value=!0,c=0,l=i.requestAnimationFrame(u))}function f(){o.value=!1,l!=null&&i&&(i.cancelAnimationFrame(l),l=null)}return n&&d(),Re(f),{isActive:(0,W.shallowReadonly)(o),pause:f,resume:d}}const it=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},at=`__vueuse_ssr_handlers__`,ot=st();function st(){return at in it||(it[at]=it[at]||{}),it[at]}function ct(e,t){return ot[e]||t}function lt(e){return e==null?`any`:e instanceof Set?`set`:e instanceof Map?`map`:e instanceof Date?`date`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:typeof e==`object`?`object`:Number.isNaN(e)?`any`:`number`}const ut={boolean:{read:e=>e===`true`,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},dt=`vueuse-storage`;function ft(e,t,n,r={}){let{flush:i=`pre`,deep:a=!0,listenToStorageChanges:o=!0,writeDefaults:s=!0,mergeDefaults:c=!1,shallow:l,window:u=$e,eventFilter:d,onError:f=e=>{console.error(e)},initOnMounted:p}=r,m=(l?W.shallowRef:W.ref)(typeof t==`function`?t():t),h=(0,W.computed)(()=>(0,W.toValue)(e));if(!n)try{n=ct(`getDefaultStorage`,()=>$e?.localStorage)()}catch(e){f(e)}if(!n)return m;let g=(0,W.toValue)(t),_=lt(g),v=r.serializer??ut[_],{pause:y,resume:b}=Je(m,e=>C(e),{flush:i,deep:a,eventFilter:d});(0,W.watch)(h,()=>T(),{flush:i});let x=!1;u&&o&&(n instanceof Storage?nt(u,`storage`,e=>{p&&!x||T(e)},{passive:!0}):nt(u,dt,e=>{p&&!x||E(e)})),p?Ye(()=>{x=!0,T()}):T();function S(e,t){if(u){let r={key:h.value,oldValue:e,newValue:t,storageArea:n};u.dispatchEvent(n instanceof Storage?new StorageEvent(`storage`,r):new CustomEvent(dt,{detail:r}))}}function C(e){try{let t=n.getItem(h.value);if(e==null)S(t,null),n.removeItem(h.value);else{let r=v.write(e);t!==r&&(n.setItem(h.value,r),S(t,r))}}catch(e){f(e)}}function w(e){let t=e?e.newValue:n.getItem(h.value);if(t==null)return s&&g!=null&&n.setItem(h.value,v.write(g)),g;if(!e&&c){let e=v.read(t);return typeof c==`function`?c(e,g):_===`object`&&!Array.isArray(e)?{...g,...e}:e}else if(typeof t!=`string`)return t;else return v.read(t)}function T(e){if(!(e&&e.storageArea!==n)){if(e&&e.key==null){m.value=g;return}if(!(e&&e.key!==h.value)){y();try{let t=v.write(m.value);(e===void 0||e?.newValue!==t)&&(m.value=w(e))}catch(e){f(e)}finally{e?(0,W.nextTick)(b):b()}}}}function E(e){T(e.detail)}return m}function pt(e){if(`interval`in e||`immediate`in e){let{interval:t=`requestAnimationFrame`,immediate:n=!0}=e;return t===`requestAnimationFrame`?e=>rt(e,{immediate:n}):n=>Ze(n,t,e)}return rt}function mt(e={}){let{controls:t=!1,scheduler:n=pt(e)}=e,r=(0,W.shallowRef)(new Date),i=n(()=>r.value=new Date);return t?{now:r,...i}:r}function ht(e,t=K,n={}){let{immediate:r=!0,manual:i=!1,type:a=`text/javascript`,async:o=!0,crossOrigin:s,referrerPolicy:c,noModule:l,defer:u,document:d=et,attrs:f={},nonce:p=void 0}=n,m=(0,W.shallowRef)(null),h=null,g=n=>new Promise((r,i)=>{let h=e=>(m.value=e,r(e),e);if(!d){r(!1);return}let g=!1,_=d.querySelector(`script[src="${(0,W.toValue)(e)}"]`);_?_.hasAttribute(`data-loaded`)&&h(_):(_=d.createElement(`script`),_.type=a,_.async=o,_.src=(0,W.toValue)(e),u&&(_.defer=u),s&&(_.crossOrigin=s),l&&(_.noModule=l),c&&(_.referrerPolicy=c),p&&(_.nonce=p),Object.entries(f).forEach(([e,t])=>_?.setAttribute(e,t)),g=!0);let v={passive:!0};nt(_,`error`,e=>i(e),v),nt(_,`abort`,e=>i(e),v),nt(_,`load`,()=>{_.setAttribute(`data-loaded`,`true`),t(_),h(_)},v),g&&(_=d.head.appendChild(_)),n||h(_)}),_=(e=!0)=>(h||=g(e),h),v=()=>{if(!d)return;h=null,m.value&&=null;let t=d.querySelector(`script[src="${(0,W.toValue)(e)}"]`);t&&d.head.removeChild(t)};return r&&!i&&Ye(_),i||Xe(v),{scriptTag:m,load:_,unload:v}}let gt=0;function _t(e,t={}){let n=(0,W.shallowRef)(!1),{document:r=et,immediate:i=!0,manual:a=!1,id:o=`vueuse_styletag_${++gt}`}=t,s=(0,W.shallowRef)(e),c=()=>{},l=()=>{if(!r)return;let e=r.getElementById(o)||r.createElement(`style`);e.isConnected||(e.id=o,t.nonce&&(e.nonce=t.nonce),t.media&&(e.media=t.media),r.head.appendChild(e)),!n.value&&(c=(0,W.watch)(s,t=>{e.textContent=t},{immediate:!0}),n.value=!0)},u=()=>{!r||!n.value||(c(),r.head.removeChild(r.getElementById(o)),n.value=!1)};return i&&!a&&Ye(l),a||Re(u),{id:o,css:s,unload:u,load:l,isLoaded:(0,W.shallowReadonly)(n)}}const vt=ft(`WALINE_EMOJI`,{}),yt=e=>/@[0-9]+\.[0-9]+\.[0-9]+/u.test(e),bt=e=>{let t=yt(e);if(t){let t=vt.value[e];if(t)return Promise.resolve(t)}return fetch(`${e}/info.json`).then(e=>e.json()).then(n=>{let r={folder:e,...n};return t&&(vt.value[e]=r),r})},xt=(e,t=``,n=``,r=``)=>`${t?`${t}/`:``}${n}${e}${r?`.${r}`:``}`,St=e=>Promise.all(e?e.map(e=>Se(e)?bt(_e(e)):Promise.resolve(e)):[]).then(e=>{let t={tabs:[],map:{}};return e.forEach(e=>{let{name:n,folder:r,icon:i,prefix:a=``,type:o,items:s}=e;t.tabs.push({name:n,icon:xt(i,r,a,o),items:s.map(e=>{let n=`${a}${e}`;return t.map[n]=xt(e,r,a,o),n})})}),t}),Ct=e=>{e.name!==`AbortError`&&console.error(e.message)},wt=e=>e instanceof HTMLElement?e:Se(e)?document.querySelector(e):null,Tt=e=>{let t=[...e].find(e=>e.type.includes(`image`));return t?t.getAsFile():null};function Et(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Dt=Et();function Ot(e){Dt=e}var kt={exec:()=>null};function Y(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(jt.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var At=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),jt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`),blockquoteBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}>`)},Mt=/^(?:[ \t]*(?:\n|$))+/,Nt=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Pt=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ft=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,It=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Lt=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Rt=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,zt=Y(Rt).replace(/bull/g,Lt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Bt=Y(Rt).replace(/bull/g,Lt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Vt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ht=/^[^\n]+/,Ut=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Wt=Y(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,Ut).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Gt=Y(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Lt).getRegex(),Kt=`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`,qt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Jt=Y(`^ {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`,qt).replace(`tag`,Kt).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Yt=Y(Vt).replace(`hr`,Ft).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[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Kt).getRegex(),Xt={blockquote:Y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,Yt).getRegex(),code:Nt,def:Wt,fences:Pt,heading:It,hr:Ft,html:Jt,lheading:zt,list:Gt,newline:Mt,paragraph:Yt,table:kt,text:Ht},Zt=Y(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,Ft).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Kt).getRegex(),Qt={...Xt,lheading:Bt,table:Zt,paragraph:Y(Vt).replace(`hr`,Ft).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Zt).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Kt).getRegex()},$t={...Xt,html:Y(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,qt).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:kt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Y(Vt).replace(`hr`,Ft).replace(`heading`,` *#{1,6} *[^
|
|
47
|
-
]`).replace(`lheading`,zt).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},en=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,tn=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,nn=/^( {2,}|\\)\n(?!\s*$)/,rn=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,an=/[\p{P}\p{S}]/u,on=/[\s\p{P}\p{S}]/u,sn=/[^\s\p{P}\p{S}]/u,cn=Y(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,on).getRegex(),ln=/(?!~)[\p{P}\p{S}]/u,un=/(?!~)[\s\p{P}\p{S}]/u,dn=/(?:[^\s\p{P}\p{S}]|~)/u,fn=Y(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,At?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),pn=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,mn=Y(pn,`u`).replace(/punct/g,an).getRegex(),hn=Y(pn,`u`).replace(/punct/g,ln).getRegex(),gn=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,_n=Y(gn,`gu`).replace(/notPunctSpace/g,sn).replace(/punctSpace/g,on).replace(/punct/g,an).getRegex(),vn=Y(gn,`gu`).replace(/notPunctSpace/g,dn).replace(/punctSpace/g,un).replace(/punct/g,ln).getRegex(),yn=Y(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,sn).replace(/punctSpace/g,on).replace(/punct/g,an).getRegex(),bn=Y(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,an).getRegex(),xn=Y(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,sn).replace(/punctSpace/g,on).replace(/punct/g,an).getRegex(),Sn=Y(/\\(punct)/,`gu`).replace(/punct/g,an).getRegex(),Cn=Y(/^<(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(),wn=Y(qt).replace(`(?:-->|$)`,`-->`).getRegex(),Tn=Y(`^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`,wn).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),En=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Dn=Y(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,En).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),On=Y(/^!?\[(label)\]\[(ref)\]/).replace(`label`,En).replace(`ref`,Ut).getRegex(),kn=Y(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Ut).getRegex(),An=Y(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,On).replace(`nolink`,kn).getRegex(),jn=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Mn={_backpedal:kt,anyPunctuation:Sn,autolink:Cn,blockSkip:fn,br:nn,code:tn,del:kt,delLDelim:kt,delRDelim:kt,emStrongLDelim:mn,emStrongRDelimAst:_n,emStrongRDelimUnd:yn,escape:en,link:Dn,nolink:kn,punctuation:cn,reflink:On,reflinkSearch:An,tag:Tn,text:rn,url:kt},Nn={...Mn,link:Y(/^!?\[(label)\]\((.*?)\)/).replace(`label`,En).getRegex(),reflink:Y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,En).getRegex()},Pn={...Mn,emStrongRDelimAst:vn,emStrongLDelim:hn,delLDelim:bn,delRDelim:xn,url:Y(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,jn).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\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Y(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,jn).getRegex()},Fn={...Pn,br:Y(nn).replace(`{2,}`,`*`).getRegex(),text:Y(Pn.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},In={normal:Xt,gfm:Qt,pedantic:$t},Ln={normal:Mn,gfm:Pn,breaks:Fn,pedantic:Nn},Rn={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},zn=e=>Rn[e];function Bn(e,t){if(t){if(jt.escapeTest.test(e))return e.replace(jt.escapeReplace,zn)}else if(jt.escapeTestNoEncode.test(e))return e.replace(jt.escapeReplaceNoEncode,zn);return e}function Vn(e){try{e=encodeURI(e).replace(jt.percentDecode,`%`)}catch{return null}return e}function Hn(e,t){let n=e.replace(jt.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(jt.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(jt.slashPipe,`|`);return n}function Un(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function Wn(e){let t=e.split(`
|
|
48
|
-
`),n=t.length-1;for(;n>=0&&jt.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
|
|
49
|
-
`)}function Gn(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Kn(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function qn(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function Jn(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
|
|
50
|
-
`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
|
|
51
|
-
`)}var Yn=class{options;rules;lexer;constructor(e){this.options=e||Dt}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:Wn(t[0]);return{type:`code`,raw:e,codeBlockStyle:`indented`,text:e.replace(this.rules.other.codeRemoveIndent,``)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=Jn(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=Un(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:Un(t[0],`
|
|
52
|
-
`),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:Un(t[0],`
|
|
53
|
-
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=Un(t[0],`
|
|
54
|
-
`).split(`
|
|
55
|
-
`),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
|
|
56
|
-
`),c=s.replace(this.rules.other.blockquoteSetextReplace,`
|
|
57
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
|
|
58
|
-
${s}`:s,r=r?`${r}
|
|
59
|
-
${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=t.raw+`
|
|
60
|
-
`+e.join(`
|
|
61
|
-
`),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}else if(u?.type===`list`){let t=u,a=t.raw+`
|
|
62
|
-
`+e.join(`
|
|
63
|
-
`),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
|
|
64
|
-
`);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=Kn(t[2].split(`
|
|
65
|
-
`,1)[0],t[1].length),l=e.split(`
|
|
66
|
-
`,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=c.search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
|
|
67
|
-
`,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d),f=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p=e.split(`
|
|
68
|
-
`,1)[0],m;if(l=p,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),m=l):m=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||f.test(l)||t.test(l)||n.test(l))break;if(m.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
|
|
69
|
-
`+m.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
|
|
70
|
-
`+l}u=!l.trim(),r+=p+`
|
|
71
|
-
`,e=e.substring(p.length+1),c=m.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items){this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]);let t=e.tokens[0];if(e.task&&(t?.type===`text`||t?.type===`paragraph`)){e.text=e.text.replace(this.rules.other.listReplaceTask,``),t.raw=t.raw.replace(this.rules.other.listReplaceTask,``),t.text=t.text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:`checkbox`,raw:n[0]+` `,checked:n[0]!==`[ ]`};e.checked=t.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:`paragraph`,raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&=!1;if(!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=Wn(t[0]);return{type:`html`,block:!0,raw:e,pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:Un(t[0],`
|
|
72
|
-
`),href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Hn(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
|
|
73
|
-
`):[],a={type:`table`,raw:Un(t[0],`
|
|
74
|
-
`),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(Hn(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:Un(t[0],`
|
|
75
|
-
`),depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
|
|
76
|
-
`?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=Un(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=Gn(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),qn(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return qn(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}else if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},Xn=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Dt,this.options.tokenizer=this.options.tokenizer||new Yn,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:jt,block:In.normal,inline:Ln.normal};this.options.pedantic?(t.block=In.pedantic,t.inline=Ln.pedantic):this.options.gfm&&(t.block=In.gfm,this.options.breaks?t.inline=Ln.breaks:t.inline=Ln.gfm),this.tokenizer.rules=t}static get rules(){return{block:In,inline:Ln}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(jt.carriageReturn,`
|
|
77
|
-
`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(jt.tabCharGlobal,` `).replace(jt.spaceLine,``));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(n=>(i=n.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let n=t.at(-1);i.raw.length===1&&n!==void 0?n.raw+=`
|
|
78
|
-
`:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
|
|
79
|
-
`)?``:`
|
|
80
|
-
`)+i.raw,n.text+=`
|
|
81
|
-
`+i.text,this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
|
|
82
|
-
`)?``:`
|
|
83
|
-
`)+i.raw,n.text+=`
|
|
84
|
-
`+i.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}let a=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let r=t.at(-1);n&&r?.type===`paragraph`?(r.raw+=(r.raw.endsWith(`
|
|
85
|
-
`)?``:`
|
|
86
|
-
`)+i.raw,r.text+=`
|
|
87
|
-
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=a.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
|
|
88
|
-
`)?``:`
|
|
89
|
-
`)+i.raw,n.text+=`
|
|
90
|
-
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``,s=1/0;for(;e;){if(e.length<s)s=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t=`Infinite loop on byte: `+e;if(this.options.silent)console.error(t);else throw Error(t)}},Zn=class{options;parser;constructor(e){this.options=e||Dt}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(jt.notSpaceStart)?.[0],i=e.replace(jt.endingNewline,``)+`
|
|
91
|
-
`;return r?`<pre><code class="language-`+Bn(r)+`">`+(n?i:Bn(i,!0))+`</code></pre>
|
|
92
|
-
`:`<pre><code>`+(n?i:Bn(i,!0))+`</code></pre>
|
|
93
|
-
`}blockquote({tokens:e}){return`<blockquote>
|
|
94
|
-
${this.parser.parse(e)}</blockquote>
|
|
95
|
-
`}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
96
|
-
`}hr(e){return`<hr>
|
|
97
|
-
`}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
|
|
98
|
-
`+r+`</`+i+`>
|
|
99
|
-
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
100
|
-
`}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
101
|
-
`}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
|
|
102
|
-
<thead>
|
|
103
|
-
`+t+`</thead>
|
|
104
|
-
`+r+`</table>
|
|
105
|
-
`}tablerow({text:e}){return`<tr>
|
|
106
|
-
${e}</tr>
|
|
107
|
-
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
108
|
-
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Bn(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=Vn(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+Bn(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=Vn(e);if(i===null)return Bn(n);e=i;let a=`<img src="${e}" alt="${Bn(n)}"`;return t&&(a+=` title="${Bn(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:Bn(e.text)}},Qn=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},$n=class e{options;renderer;textRenderer;constructor(e){this.options=e||Dt,this.options.renderer=this.options.renderer||new Zn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Qn}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},er=class{options;block;constructor(e){this.options=e||Dt}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?Xn.lex:Xn.lexInline}provideParser(e=this.block){return e?$n.parse:$n.parseInline}},tr=class{defaults=Et();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=$n;Renderer=Zn;TextRenderer=Qn;Lexer=Xn;Tokenizer=Yn;Hooks=er;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new Zn(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new Yn(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new er;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];er.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&er.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Xn.lex(e,t??this.defaults)}parser(e,t){return $n.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?Xn.lex:Xn.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?$n.parse:$n.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?Xn.lex:Xn.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?$n.parse:$n.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
|
|
109
|
-
Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+Bn(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},X=new tr;function Z(e,t){return X.parse(e,t)}Z.options=Z.setOptions=function(e){return X.setOptions(e),Z.defaults=X.defaults,Ot(Z.defaults),Z},Z.getDefaults=Et,Z.defaults=Dt,Z.use=function(...e){return X.use(...e),Z.defaults=X.defaults,Ot(Z.defaults),Z},Z.walkTokens=function(e,t){return X.walkTokens(e,t)},Z.parseInline=X.parseInline,Z.Parser=$n,Z.parser=$n.parse,Z.Renderer=Zn,Z.TextRenderer=Qn,Z.Lexer=Xn,Z.lexer=Xn.lex,Z.Tokenizer=Yn,Z.Hooks=er,Z.parse=Z,Z.options,Z.setOptions,Z.use,Z.walkTokens,Z.parseInline,$n.parse,Xn.lex;function nr(e){if(typeof e==`function`&&(e={highlight:e}),!e||typeof e.highlight!=`function`)throw Error(`Must provide highlight function`);return typeof e.langPrefix!=`string`&&(e.langPrefix=`language-`),typeof e.emptyLangClass!=`string`&&(e.emptyLangClass=``),{async:!!e.async,walkTokens(t){if(t.type!==`code`)return;let n=rr(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||``)).then(ir(t));let r=e.highlight(t.text,n,t.lang||``);if(r instanceof Promise)throw 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.`);ir(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t==`object`&&(r=t.escaped,n=t.lang,t=t.text);let i=rr(n),a=i?e.langPrefix+dr(i):e.emptyLangClass,o=a?` class="${a}"`:``;return t=t.replace(/\n$/,``),`<pre><code${o}>${r?t:dr(t,!0)}\n</code></pre>`}}}}function rr(e){return(e||``).match(/\S*/)[0]}function ir(e){return t=>{typeof t==`string`&&t!==e.text&&(e.escaped=!0,e.text=t)}}const ar=/[&<>"']/,or=new RegExp(ar.source,`g`),sr=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,cr=new RegExp(sr.source,`g`),lr={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},ur=e=>lr[e];function dr(e,t){if(t){if(ar.test(e))return e.replace(or,ur)}else if(sr.test(e))return e.replace(cr,ur);return e}const fr=/\$.*?\$/u,pr=/^\$(.*?)\$/u,mr=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/u,hr=e=>[{name:`blockMath`,level:`block`,tokenizer(t){let n=mr.exec(t);if(n!=null)return{type:`html`,raw:n[0],text:e(!0,n[1])}}},{name:`inlineMath`,level:`inline`,start(e){let t=e.search(fr);return t===-1?e.length:t},tokenizer(t){let n=pr.exec(t);if(n!=null)return{type:`html`,raw:n[0],text:e(!1,n[1])}}}],gr=(e=``,t={})=>e.replaceAll(/:(.+?):/gu,(e,n)=>t[n]?`<img class="wl-emoji" src="${t[n]}" alt="${n}">`:e),_r=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{let i=new tr;if(i.setOptions({breaks:!0}),n&&i.use(nr({highlight:n})),r){let e=hr(r);i.use({extensions:e})}return i.parse(gr(e,t))},vr=e=>{let{path:t}=e.dataset;return t?.length?t:null},yr=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),br=e=>e.match(/[\u4E00-\u9FD5]/gu),xr=e=>(yr(e)?.reduce((e,t)=>e+([``,`,`,`.`].includes(t.trim())?0:t.trim().split(/\s+/u).length),0)??0)+(br(e)?.length??0),Sr=async()=>{let{userAgentData:e}=navigator,t=navigator.userAgent;if(e?.platform!==`Windows`)return t;let{platformVersion:n}=await e.getHighEntropyValues([`platformVersion`]);return n&&Number.parseInt(n.split(`.`)[0],10)>=13&&(t=t.replace(`Windows NT 10.0`,`Windows NT 11.0`)),t},Cr=({serverURL:e,path:t=window.location.pathname,selector:n=`.waline-comment-count`,lang:r=navigator.language})=>{let i=new AbortController,a=document.querySelectorAll(n);return a.length>0&&b({serverURL:ye(e),paths:Array.from(a,e=>ge(vr(e)??t)),lang:r,signal:i.signal}).then(e=>{a.forEach((t,n)=>{t.textContent=e[n].toString()})}).catch(Ct),i.abort.bind(i)},wr=()=>ft(`WALINE_USER_META`,{nick:``,mail:``,link:``}),Tr=()=>ft(`WALINE_COMMENT_BOX_EDITOR`,``),Er=ft(`WALINE_LIKE`,[]),Q=()=>Er,Dr=ft(`WALINE_REACTION`,{}),Or=()=>Dr;var kr=o((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};Object.defineProperty(e,`__esModule`,{value:!0}),e.ReCaptchaInstance=void 0,e.ReCaptchaInstance=function(){function e(e,t,n){this.siteKey=e,this.recaptchaID=t,this.recaptcha=n,this.styleContainer=null}return e.prototype.execute=function(e){return t(this,void 0,void 0,function(){var t;return n(this,function(n){switch(n.label){case 0:return this.recaptcha.enterprise?[4,this.recaptcha.enterprise.execute(this.recaptchaID,{action:e})]:[3,2];case 1:return t=n.sent(),[3,4];case 2:return[4,this.recaptcha.execute(this.recaptchaID,{action:e})];case 3:t=n.sent(),n.label=4;case 4:return[2,t]}})})},e.prototype.getSiteKey=function(){return this.siteKey},e.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement(`style`),this.styleContainer.innerHTML=`.grecaptcha-badge{visibility:hidden !important;}`,document.head.appendChild(this.styleContainer))},e.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},e}()})),Ar=o((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,`__esModule`,{value:!0}),e.getInstance=e.load=void 0;var n=kr(),r;(function(e){e[e.NOT_LOADED=0]=`NOT_LOADED`,e[e.LOADING=1]=`LOADING`,e[e.LOADED=2]=`LOADED`})(r||={});var i=function(){function e(){}return e.load=function(t,i){if(i===void 0&&(i={}),typeof document>`u`)return Promise.reject(Error(`This is a library for the browser!`));if(e.getLoadingState()===r.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(Error(`reCAPTCHA already loaded with different site key!`));if(e.getLoadingState()===r.LOADING)return t===e.instanceSiteKey?new Promise(function(t,n){e.successfulLoadingConsumers.push(function(e){return t(e)}),e.errorLoadingRunnable.push(function(e){return n(e)})}):Promise.reject(Error(`reCAPTCHA already loaded with different site key!`));e.instanceSiteKey=t,e.setLoadingState(r.LOADING);var a=new e;return new Promise(function(o,s){a.loadScript(t,i.useRecaptchaNet||!1,i.useEnterprise||!1,i.renderParameters?i.renderParameters:{},i.customUrl).then(function(){e.setLoadingState(r.LOADED);var s=a.doExplicitRender(grecaptcha,t,i.explicitRenderParameters?i.explicitRenderParameters:{},i.useEnterprise||!1),c=new n.ReCaptchaInstance(t,s,grecaptcha);e.successfulLoadingConsumers.forEach(function(e){return e(c)}),e.successfulLoadingConsumers=[],i.autoHideBadge&&c.hideBadge(),e.instance=c,o(c)}).catch(function(t){e.errorLoadingRunnable.forEach(function(e){return e(t)}),e.errorLoadingRunnable=[],s(t)})})},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return e.loadingState===null?r.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,n,i,a,o){var s=this;n===void 0&&(n=!1),i===void 0&&(i=!1),a===void 0&&(a={}),o===void 0&&(o=``);var c=document.createElement(`script`);c.setAttribute(`recaptcha-v3-script`,``),c.setAttribute(`async`,``),c.setAttribute(`defer`,``);var l=`https://www.google.com/recaptcha/api.js`;n?l=i?`https://recaptcha.net/recaptcha/enterprise.js`:`https://recaptcha.net/recaptcha/api.js`:i&&(l=`https://www.google.com/recaptcha/enterprise.js`),o&&(l=o),a.render&&=void 0;var u=this.buildQueryString(a);return c.src=l+`?render=explicit`+u,new Promise(function(t,n){c.addEventListener(`load`,s.waitForScriptToLoad(function(){t(c)},i),!1),c.onerror=function(t){e.setLoadingState(r.NOT_LOADED),n(t)},document.head.appendChild(c)})},e.prototype.buildQueryString=function(e){return Object.keys(e).length<1?``:`&`+Object.keys(e).filter(function(t){return!!e[t]}).map(function(t){return t+`=`+e[t]}).join(`&`)},e.prototype.waitForScriptToLoad=function(t,n){var r=this;return function(){window.grecaptcha===void 0?setTimeout(function(){r.waitForScriptToLoad(t,n)},e.SCRIPT_LOAD_DELAY):n?window.grecaptcha.enterprise.ready(function(){t()}):window.grecaptcha.ready(function(){t()})}},e.prototype.doExplicitRender=function(e,n,r,i){var a=t({sitekey:n},r);return r.container?i?e.enterprise.render(r.container,a):e.render(r.container,a):i?e.enterprise.render(a):e.render(a)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();e.load=i.load,e.getInstance=i.getInstance})),jr=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Ar();Object.defineProperty(e,`load`,{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,`getInstance`,{enumerable:!0,get:function(){return t.getInstance}});var n=kr();Object.defineProperty(e,`ReCaptchaInstance`,{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}))();const Mr={},Nr=e=>{let t=Mr[e]??=(0,jr.load)(e,{useRecaptchaNet:!0,autoHideBadge:!0});return{execute:e=>t.then(t=>t.execute(e))}},Pr=e=>({execute:async t=>{let{load:n}=ht(`https://challenges.cloudflare.com/turnstile/v0/api.js`,void 0,{async:!1});await n();let{turnstile:r}=window;return new Promise(n=>{r?.ready(()=>{r.render(`.wl-captcha-container`,{sitekey:e,action:t,size:`compact`,callback:n})})})}}),Fr=ft(`WALINE_USER`,{}),Ir=()=>Fr,Lr=`3.14.0`,Rr=({size:e})=>(0,W.h)(`svg`,{class:`wl-close-icon`,viewBox:`0 0 1024 1024`,width:e,height:e},[(0,W.h)(`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`}),(0,W.h)(`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`})]),zr=()=>(0,W.h)(`svg`,{viewBox:`0 0 1024 1024`,width:`24`,height:`24`},(0,W.h)(`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`})),Br=()=>(0,W.h)(`svg`,{viewBox:`0 0 1024 1024`,width:`24`,height:`24`},(0,W.h)(`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`})),Vr=()=>(0,W.h)(`svg`,{viewBox:`0 0 1024 1024`,width:`24`,height:`24`},[(0,W.h)(`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`}),(0,W.h)(`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`})]),Hr=({active:e=!1})=>(0,W.h)(`svg`,{viewBox:`0 0 1024 1024`,width:`24`,height:`24`},[(0,W.h)(`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`})]),$=()=>(0,W.h)(`svg`,{viewBox:`0 0 1024 1024`,width:`24`,height:`24`},[(0,W.h)(`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`}),(0,W.h)(`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`})]),Ur=()=>(0,W.h)(`svg`,{width:`16`,height:`16`,ariaHidden:`true`},(0,W.h)(`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`})),Wr=()=>(0,W.h)(`svg`,{viewBox:`0 0 1024 1024`,width:`24`,height:`24`},(0,W.h)(`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`})),Gr=()=>(0,W.h)(`svg`,{viewBox:`0 0 1024 1024`,width:`24`,height:`24`},(0,W.h)(`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`})),Kr=()=>(0,W.h)(`svg`,{class:`verified-icon`,viewBox:`0 0 1024 1024`,width:`14`,height:`14`},(0,W.h)(`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`})),qr=()=>(0,W.h)(`svg`,{class:`administrator-icon`,viewBox:`0 0 1024 1024`,width:`14`,height:`14`},[(0,W.h)(`path`,{d:`M461.6 129.56C489.6 105.96 534.8 105.96 562.4 129.56L625.6 183.96C637.6 194.36 660.4 202.76 676 202.76H744C786.4 202.76 821.2 237.56 821.2 279.96V347.96C821.2 363.96 829.6 386.36 840 398.36L894.4 461.56C918 489.16 918 534.76 894.8 562.36L840.4 625.56C830 637.56 821.6 660.36 821.6 675.96V743.96C821.6 786.36 786.8 821.16 744.4 821.16H676.4C660.4 821.16 638 829.56 626 839.96L562.8 894.36C534.8 917.96 489.6 917.96 462 894.36L398.8 839.96C386.8 829.56 364 821.16 348.4 821.16H279.2C236.8 821.16 202 786.36 202 743.96V675.56C201.999 659.96 193.6 637.56 183.6 625.56L129.6 561.96C106.4 534.36 106.4 489.56 129.6 461.96L183.6 398.36C193.6 386.359 202 363.959 202 348.36V279.96C202 237.56 236.8 202.76 279.2 202.76H348.4C364 202.76 386.8 194.36 398.8 184.36L461.6 129.56ZM549.567 331.896C530.047 303.082 486.645 306.12 471.433 337.412L442.175 396.526C435.587 409.848 422.856 419.097 408.146 421.226L342.706 430.726C340.776 431 338.884 431.397 336.993 431.946C303.482 441.361 292.756 483.493 317.671 507.812L364.975 553.96C375.623 564.321 380.507 579.299 377.991 593.954L366.917 659.102C366.595 661.03 366.355 662.967 366.279 664.923C364.906 699.688 401.683 722.937 432.514 706.738L491.05 675.966C504.217 669.068 519.954 669.069 533.121 675.966L591.675 706.738C593.406 707.645 595.174 708.432 597.028 709.104C629.666 721.205 663.139 693.382 657.273 659.102L646.069 593.954C643.42 579.176 648.24 564.083 659.001 553.6L706.315 507.461C707.687 506.118 708.994 504.66 710.215 503.127C731.779 475.809 715.737 435.41 681.281 430.365L615.839 420.874C601.13 418.745 588.4 409.486 581.821 396.174L552.562 337.052C551.644 335.284 550.674 333.551 549.567 331.896Z`,fill:`#f59831`})]),Jr=({size:e=100})=>(0,W.h)(`svg`,{width:e,height:e,viewBox:`0 0 100 100`,preserveAspectRatio:`xMidYMid`},(0,W.h)(`circle`,{cx:50,cy:50,fill:`none`,stroke:`currentColor`,strokeWidth:`4`,r:`40`,"stroke-dasharray":`85 30`},(0,W.h)(`animateTransform`,{attributeName:`transform`,type:`rotate`,repeatCount:`indefinite`,dur:`1s`,values:`0 50 50;360 50 50`,keyTimes:`0;1`}))),Yr=()=>(0,W.h)(`svg`,{width:24,height:24,fill:`currentcolor`,viewBox:`0 0 24 24`},[(0,W.h)(`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`}),(0,W.h)(`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`})]),Xr=()=>(0,W.h)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`},(0,W.h)(`g`,{transform:`translate(0 -1028.4)`},(0,W.h)(`g`,{},[(0,W.h)(`path`,{d:`m4 1031.4c-1.1046 0-2 0.9-2 2v16c0 1.1 0.8954 2 2 2h16c1.105 0 2-0.9 2-2v-16c0-1.1-0.895-2-2-2h-16z`,fill:`#d35400`}),(0,W.h)(`path`,{d:`m4 2c-1.1046 0-2 0.8954-2 2v16c0 1.105 0.8954 2 2 2h16c1.105 0 2-0.895 2-2v-16c0-1.1046-0.895-2-2-2h-16z`,transform:`translate(0 1028.4)`,fill:`#e67e22`}),(0,W.h)(`path`,{d:`m5 1034.4v2.3c6.443 0 11.667 5.2 11.667 11.7h2.333c0-7.8-6.268-14-14-14zm0 4.6v2.4c3.866 0 7 3.1 7 7h2.333c0-5.2-4.178-9.4-9.333-9.4zm2.0417 5.3c-1.1276 0-2.0417 0.9-2.0417 2s0.9141 2.1 2.0417 2.1c1.1275 0 2.0416-1 2.0416-2.1s-0.9141-2-2.0416-2z`,fill:`#d35400`}),(0,W.h)(`path`,{d:`m5 1033.4v2.3c6.443 0 11.667 5.2 11.667 11.7h2.333c0-7.8-6.268-14-14-14zm0 4.6v2.4c3.866 0 7 3.1 7 7h2.333c0-5.2-4.178-9.4-9.333-9.4zm2.0417 5.3c-1.1276 0-2.0417 0.9-2.0417 2s0.9141 2.1 2.0417 2.1c1.1275 0 2.0416-1 2.0416-2.1s-0.9141-2-2.0416-2z`,fill:`#ecf0f1`})]))),Zr=()=>(0,W.h)(`svg`,{fill:`currentColor`,width:`24`,height:`24`,viewBox:`-3 0 19 19`,class:`cf-icon-svg`},(0,W.h)(`path`,{d:`M.926 12.818a1.403 1.403 0 1 1 0 1.984 1.402 1.402 0 0 1 0-1.984zm10.531 2.357a1.03 1.03 0 0 1-1.029-1.03 8.775 8.775 0 0 0-.694-3.438A8.826 8.826 0 0 0 1.591 5.31a1.03 1.03 0 1 1 0-2.059 10.817 10.817 0 0 1 4.24.857 10.893 10.893 0 0 1 3.463 2.334 10.867 10.867 0 0 1 3.19 7.703 1.027 1.027 0 0 1-1.027 1.029zm-4.538 0a1.03 1.03 0 0 1-1.029-1.03 4.297 4.297 0 0 0-4.299-4.298 1.03 1.03 0 0 1 0-2.059 6.362 6.362 0 0 1 5.857 3.883 6.298 6.298 0 0 1 .5 2.475 1.03 1.03 0 0 1-1.029 1.029z`})),Qr={key:0,class:`wl-reaction`},$r=[`textContent`],ei={class:`wl-reaction-list`},ti=[`onClick`],ni={class:`wl-reaction-img`},ri=[`src`,`alt`],ii=[`textContent`],ai=[`textContent`];var oi=(0,W.defineComponent)({__name:`ArticleReaction`,setup(e){let t=Or(),n=(0,W.inject)(he),r=(0,W.ref)(-1),i=(0,W.ref)([]),a=(0,W.computed)(()=>n.value.locale),o=(0,W.computed)(()=>{let{reaction:e}=n.value;return e?.length?e:null}),s=(0,W.computed)(()=>{let{path:e}=n.value;return o.value?.map((n,r)=>({icon:n,desc:a.value[`reaction${r}`],active:t.value[e]===r}))??null}),c,l=async()=>{let{serverURL:e,lang:t,path:r}=n.value;if(!o.value)return;let a=new AbortController;c=a.abort.bind(a);let[s]=await m({serverURL:e,lang:t,paths:[r],type:o.value.map((e,t)=>`reaction${t}`),signal:a.signal});i.value=o.value.map((e,t)=>s[`reaction${t}`])},u=async e=>{if(r.value!==-1)return;let{serverURL:a,lang:o,path:s}=n.value,c=t.value[s];r.value=e,c!=null&&(await h({serverURL:a,lang:o,path:s,type:`reaction${c}`,action:`desc`}),i.value[c]=Math.max(i.value[c]-1,0)),c!==e&&(await h({serverURL:a,lang:o,path:s,type:`reaction${e}`}),i.value[e]=(i.value[e]||0)+1),c===e?delete t.value[s]:t.value[s]=e,r.value=-1};return(0,W.onMounted)(()=>{Qe(()=>[n.value.serverURL,n.value.path],()=>l())}),(0,W.onUnmounted)(()=>{c?.()}),(e,t)=>s.value?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,Qr,[(0,W.createElementVNode)(`div`,{class:`wl-reaction-title`,textContent:(0,W.toDisplayString)(a.value.reactionTitle)},null,8,$r),(0,W.createElementVNode)(`ul`,ei,[((0,W.openBlock)(!0),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)(s.value,({active:e,icon:t,desc:n},a)=>((0,W.openBlock)(),(0,W.createElementBlock)(`li`,{key:a,class:(0,W.normalizeClass)([`wl-reaction-item`,{active:e}]),onClick:e=>u(a)},[(0,W.createElementVNode)(`div`,ni,[(0,W.createElementVNode)(`img`,{src:t,alt:n},null,8,ri),r.value===a?((0,W.openBlock)(),(0,W.createBlock)((0,W.unref)(Jr),{key:0,class:`wl-reaction-loading`})):((0,W.openBlock)(),(0,W.createElementBlock)(`div`,{key:1,class:`wl-reaction-votes`,textContent:(0,W.toDisplayString)(i.value[a]||0)},null,8,ii))]),(0,W.createElementVNode)(`div`,{class:`wl-reaction-text`,textContent:(0,W.toDisplayString)(n)},null,8,ai)],10,ti))),128))])])):(0,W.createCommentVNode)(`v-if`,!0)}}),si=u(o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n||=self,n.autosize=r())})(e,(function(){var e=new Map;function t(t){if(!t||!t.nodeName||t.nodeName!==`TEXTAREA`||e.has(t))return;var n=null;function r(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],n=e[1];t.style.scrollBehavior=`auto`,t.scrollTop=n,t.style.scrollBehavior=null})}}var i=window.getComputedStyle(t);function a(e){var o=e.restoreTextAlign,s=o===void 0?null:o,c=e.testForHeightReduction,l=c===void 0?!0:c,u=i.overflowY;if(t.scrollHeight!==0){i.resize===`vertical`?t.style.resize=`none`:i.resize===`both`&&(t.style.resize=`horizontal`);var d;l&&(d=r(t),t.style.height=``);var f=i.boxSizing===`content-box`?t.scrollHeight-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)):t.scrollHeight+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth);if(i.maxHeight!==`none`&&f>parseFloat(i.maxHeight)?(i.overflowY===`hidden`&&(t.style.overflow=`scroll`),f=parseFloat(i.maxHeight)):i.overflowY!==`hidden`&&(t.style.overflow=`hidden`),t.style.height=f+`px`,s&&(t.style.textAlign=s),d&&d(),n!==f&&(t.dispatchEvent(new Event(`autosize:resized`,{bubbles:!0})),n=f),u!==i.overflow&&!s){var p=i.textAlign;i.overflow===`hidden`&&(t.style.textAlign=p===`start`?`end`:`start`),a({restoreTextAlign:p,testForHeightReduction:!0})}}}function o(){a({testForHeightReduction:!0,restoreTextAlign:null})}var s=function(){var e=t.value;return function(){a({testForHeightReduction:e===``||!t.value.startsWith(e),restoreTextAlign:null}),e=t.value}}(),c=function(n){t.removeEventListener(`autosize:destroy`,c),t.removeEventListener(`autosize:update`,o),t.removeEventListener(`input`,s),window.removeEventListener(`resize`,o),Object.keys(n).forEach(function(e){return t.style[e]=n[e]}),e.delete(t)}.bind(t,{height:t.style.height,resize:t.style.resize,textAlign:t.style.textAlign,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener(`autosize:destroy`,c),t.addEventListener(`autosize:update`,o),t.addEventListener(`input`,s),window.addEventListener(`resize`,o),t.style.overflowX=`hidden`,t.style.wordWrap=`break-word`,e.set(t,{destroy:c,update:o}),o()}function n(t){var n=e.get(t);n&&n.destroy()}function r(t){var n=e.get(t);n&&n.update()}var i=null;return typeof window>`u`?(i=function(e){return e},i.destroy=function(e){return e},i.update=function(e){return e}):(i=function(e,n){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return t(e)}),e},i.destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],n),e},i.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],r),e}),i}))}))());const ci=[`data-index`],li=[`src`,`title`,`onClick`];var ui=(0,W.defineComponent)({__name:`ImageWall`,props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:[`insert`],setup(e){let t=null,n=(0,W.useTemplateRef)(`wall`),r=(0,W.ref)({}),i=(0,W.ref)([]),a=()=>{let t=Math.floor((n.value.getBoundingClientRect().width+e.gap)/(e.columnWidth+e.gap));return t>0?t:1},o=e=>Array.from({length:e},()=>[]),s=async t=>{if(t>=e.items.length)return;await(0,W.nextTick)();let r=[...n.value?.children??[]].reduce((e,t)=>t.getBoundingClientRect().height<e.getBoundingClientRect().height?t:e);i.value[Number(r.dataset.index)].push(t),await s(t+1)},c=async(e=!1)=>{if(i.value.length===a()&&!e)return;i.value=o(a());let{scrollY:t}=window;await s(0),window.scrollTo({top:t})},l=e=>{r.value[e.target.src]=!0};return(0,W.onMounted)(()=>{c(!0),t=new ResizeObserver(()=>{c()}),t.observe(n.value),(0,W.watch)(()=>[e.items],()=>{r.value={},c(!0)}),(0,W.watch)(()=>[e.columnWidth,e.gap],()=>{c()})}),(0,W.onBeforeUnmount)(()=>{t.unobserve(n.value)}),(t,a)=>((0,W.openBlock)(),(0,W.createElementBlock)(`div`,{ref_key:`wall`,ref:n,class:`wl-gallery`,style:(0,W.normalizeStyle)({gap:`${e.gap}px`})},[((0,W.openBlock)(!0),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)(i.value,(n,i)=>((0,W.openBlock)(),(0,W.createElementBlock)(`div`,{key:i,class:`wl-gallery-column`,"data-index":i,style:(0,W.normalizeStyle)({gap:`${e.gap}px`})},[((0,W.openBlock)(!0),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)(n,n=>((0,W.openBlock)(),(0,W.createElementBlock)(W.Fragment,{key:n},[r.value[e.items[n].src]?(0,W.createCommentVNode)(`v-if`,!0):((0,W.openBlock)(),(0,W.createBlock)((0,W.unref)(Jr),{key:0,size:36,style:{margin:`20px auto`}})),(0,W.createElementVNode)(`img`,{class:`wl-gallery-item`,src:e.items[n].src,title:e.items[n].title,loading:`lazy`,onLoad:l,onClick:r=>t.$emit(`insert`,``)},null,40,li)],64))),128))],12,ci))),128))],4))}});const di={key:0,class:`wl-login-info`},fi={class:`wl-avatar`},pi=[`title`],mi=[`title`],hi=[`src`],gi=[`title`,`textContent`],_i={class:`wl-panel`},vi=[`for`,`textContent`],yi=[`id`,`onUpdate:modelValue`,`name`,`type`],bi=[`placeholder`],xi={class:`wl-preview`},Si=[`innerHTML`],Ci={class:`wl-footer`},wi={class:`wl-actions`},Ti={href:`https://guides.github.com/features/mastering-markdown/`,title:`Markdown Guide`,"aria-label":`Markdown is supported`,class:`wl-action`,target:`_blank`,rel:`noopener noreferrer`},Ei=[`title`],Di=[`title`],Oi=[`title`,`aria-label`],ki=[`title`],Ai={class:`wl-info`},ji={class:`wl-text-number`},Mi={key:0},Ni=[`textContent`],Pi=[`textContent`],Fi=[`disabled`],Ii=[`placeholder`],Li={key:1,class:`wl-loading`},Ri=[`title`,`onClick`,`onMouseenter`],zi=[`src`,`alt`],Bi=[`src`],Vi={key:0,class:`wl-tabs`},Hi=[`onClick`],Ui=[`src`,`alt`,`title`],Wi=[`title`];var Gi=(0,W.defineComponent)({__name:`CommentBox`,props:{edit:{},rootId:{},replyId:{},replyUser:{}},emits:[`log`,`cancelEdit`,`cancelReply`,`submit`],setup(e,{emit:t}){let n=e,r=t,i=(0,W.inject)(he),a=Tr(),o=wr(),s=Ir(),c=(0,W.ref)({}),l=(0,W.useTemplateRef)(`textarea`),u=(0,W.useTemplateRef)(`image-uploader`),d=(0,W.useTemplateRef)(`emoji-button`),f=(0,W.useTemplateRef)(`emoji-popup`),p=(0,W.useTemplateRef)(`gif-button`),m=(0,W.useTemplateRef)(`gif-popup`),h=(0,W.useTemplateRef)(`gif-search`),g=(0,W.ref)({tabs:[],map:{}}),v=(0,W.ref)(0),b=(0,W.ref)(!1),x=(0,W.ref)(``),C=(0,W.ref)({}),w,T=(e,t)=>{clearTimeout(w),x.value=t;let n=e.currentTarget,r=f.value;if(n&&r){let e=n.getBoundingClientRect(),t=r.getBoundingClientRect();C.value={left:`${e.left-t.left+e.width/2}px`,top:`${e.top-t.top}px`,transform:`translate(-50%, -100%)`}}},E=()=>{w=setTimeout(()=>{x.value=``},50)},D=(0,W.ref)(!1),O=(0,W.ref)(!1),k=(0,W.ref)(``),A=(0,W.ref)(0),j=(0,W.reactive)({loading:!0,list:[]}),ee=(0,W.ref)(0),M=(0,W.ref)(!1),te=(0,W.ref)(``),N=(0,W.ref)(!1),P=(0,W.ref)(!1),F=(0,W.computed)(()=>i.value.locale),ne=(0,W.computed)(()=>!!s.value.token),I=(0,W.computed)(()=>i.value.imageUploader!=null),L=e=>{let t=l.value,n=t.selectionStart,r=t.selectionEnd||0,{scrollTop:i}=t;a.value=t.value.slice(0,n)+e+t.value.slice(r),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=i},R=async e=>{let t=`![${i.value.locale.uploading} ${e.name}]()`;L(t),N.value=!0;try{let n=await i.value.imageUploader(e);a.value=a.value.replace(t,`\r\n`)}catch(e){alert(e.message),a.value=a.value.replace(t,``)}finally{N.value=!1}},re=e=>{if(e.dataTransfer?.items){let t=Tt(e.dataTransfer.items);t&&I.value&&(R(t),e.preventDefault())}},ie=e=>{if(e.clipboardData){let t=Tt(e.clipboardData.items);t&&I.value&&R(t)}},ae=()=>{let e=u.value;e.files&&I.value&&R(e.files[0]).then(()=>{e.value=``})},z=async()=>{let{serverURL:e,lang:t,login:u,wordLimit:d,requiredMeta:f,recaptchaV3Key:p,turnstileKey:m}=i.value,h={comment:te.value,nick:o.value.nick,mail:o.value.mail,link:o.value.link,url:i.value.path,ua:await Sr()};if(!n.edit)if(s.value.token)h.nick=s.value.display_name,h.mail=s.value.email,h.link=s.value.url;else{if(u===`force`)return;if(f.includes(`nick`)&&!h.nick){c.value.nick.focus(),alert(F.value.nickError);return}if(f.includes(`mail`)&&!h.mail||h.mail&&!Oe(h.mail)){c.value.mail.focus(),alert(F.value.mailError);return}h.nick||=F.value.anonymous}if(!h.comment){l.value.focus();return}if(!M.value){alert(F.value.wordHint.replace(`$0`,d[0].toString()).replace(`$1`,d[1].toString()).replace(`$2`,A.value.toString()));return}h.comment=gr(h.comment,g.value.map),n.replyId&&n.rootId&&(h.pid=n.replyId,h.rid=n.rootId,h.at=n.replyUser),N.value=!0;try{p&&(h.recaptchaV3=await Nr(p).execute(`social`)),m&&(h.turnstile=await Pr(m).execute(`social`));let i={serverURL:e,lang:t,token:s.value.token,comment:h},o=await(n.edit?y({objectId:n.edit.objectId,...i}):_(i));if(N.value=!1,o.errmsg){alert(o.errmsg);return}r(`submit`,o.data),a.value=``,k.value=``,await(0,W.nextTick)(),n.replyId&&r(`cancelReply`),n.edit?.objectId&&r(`cancelEdit`)}catch(e){N.value=!1,alert(e.message)}},oe=({key:e,ctrlKey:t,metaKey:n})=>{N.value||(t||n)&&e===`Enter`&&z()},se=e=>{e.preventDefault();let{lang:t,serverURL:n}=i.value;S({serverURL:n,lang:t}).then(e=>{s.value=e,(e.remember?localStorage:sessionStorage).setItem(`WALINE_USER`,JSON.stringify(e)),r(`log`)})},ce=()=>{s.value={},localStorage.setItem(`WALINE_USER`,`null`),sessionStorage.setItem(`WALINE_USER`,`null`),r(`log`)},B=e=>{e.preventDefault();let{lang:t,serverURL:n}=i.value,r=(window.innerWidth-800)/2,a=(window.innerHeight-800)/2,o=new URLSearchParams({lng:t,token:s.value.token});window.open(`${n}/ui/profile?${o.toString()}`,`_blank`,`width=800,height=800,left=${r},top=${a},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`)?.postMessage({type:`TOKEN`,data:s.value.token},`*`)},le=e=>{!d.value?.contains(e.target)&&!f.value?.contains(e.target)&&(b.value=!1),!p.value?.contains(e.target)&&!m.value?.contains(e.target)&&(D.value=!1)},ue=async e=>{let{scrollTop:t,clientHeight:n,scrollHeight:r}=e.target,a=(n+t)/r,o=i.value.search,s=h.value?.value??``;a<.9||j.loading||P.value||(j.loading=!0,(o.more&&j.list.length>0?await o.more(s,j.list.length):await o.search(s)).length>0?j.list=[...j.list,...o.more&&j.list.length>0?await o.more(s,j.list.length):await o.search(s)]:P.value=!0,j.loading=!1,setTimeout(()=>{e.target.scrollTop=t},50))},V=Ke(e=>{j.list=[],P.value=!1,ue(e)},300);return nt(`click`,le),nt(`message`,({data:e})=>{e?.type===`profile`&&(s.value={...s.value,...e.data},[localStorage,sessionStorage].filter(e=>e.getItem(`WALINE_USER`)).forEach(e=>{e.setItem(`WALINE_USER`,JSON.stringify(s))}))}),Qe([i,A],([e,t])=>{let{wordLimit:n}=e;n?t<n[0]&&n[0]!==0?([ee.value]=n,M.value=!1):([,ee.value]=n,M.value=t<=n[1]):(ee.value=0,M.value=!0)}),(0,W.watch)(D,async e=>{if(!e)return;let t=i.value.search;h.value&&(h.value.value=``),j.loading=!0,j.list=await(t.default?.()??t.search(``)),j.loading=!1}),(0,W.onMounted)(()=>{n.edit?.objectId&&(a.value=n.edit.orig),Qe(()=>a.value,e=>{let{highlighter:t,texRenderer:n}=i.value;te.value=e,k.value=_r(e,{emojiMap:g.value.map,highlighter:t,texRenderer:n}),A.value=xr(e),e?(0,si.default)(l.value):si.default.destroy(l.value)}),Qe(()=>i.value.emoji,async e=>{g.value=await St(e)})}),(t,n)=>((0,W.openBlock)(),(0,W.createElementBlock)(`div`,{key:(0,W.unref)(s).token,class:`wl-comment`},[(0,W.unref)(i).login!==`disable`&&ne.value&&!e.edit?.objectId?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,di,[(0,W.createElementVNode)(`div`,fi,[(0,W.createElementVNode)(`button`,{type:`submit`,class:`wl-logout-btn`,title:F.value.logout,onClick:ce},[(0,W.createVNode)((0,W.unref)(Rr),{size:14})],8,pi),(0,W.createElementVNode)(`a`,{href:`#`,class:`wl-login-nick`,"aria-label":`Profile`,title:F.value.profile,onClick:B},[(0,W.createElementVNode)(`img`,{src:(0,W.unref)(s).avatar,alt:`avatar`},null,8,hi)],8,mi)]),(0,W.createElementVNode)(`a`,{href:`#`,class:`wl-login-nick`,"aria-label":`Profile`,title:F.value.profile,onClick:B,textContent:(0,W.toDisplayString)((0,W.unref)(s).display_name)},null,8,gi)])):(0,W.createCommentVNode)(`v-if`,!0),(0,W.createElementVNode)(`div`,_i,[(0,W.unref)(i).login!==`force`&&(0,W.unref)(i).meta.length&&!ne.value?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,{key:0,class:(0,W.normalizeClass)([`wl-header`,`item${(0,W.unref)(i).meta.length}`])},[((0,W.openBlock)(!0),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)((0,W.unref)(i).meta,e=>((0,W.openBlock)(),(0,W.createElementBlock)(`div`,{key:e,class:`wl-header-item`},[(0,W.createElementVNode)(`label`,{for:`wl-${e}`,textContent:(0,W.toDisplayString)(F.value[e]+((0,W.unref)(i).requiredMeta.includes(e)||!(0,W.unref)(i).requiredMeta.length?``:`(${F.value.optional})`))},null,8,vi),(0,W.withDirectives)((0,W.createElementVNode)(`input`,{id:`wl-${e}`,ref_for:!0,ref:t=>{t&&(c.value[e]=t)},"onUpdate:modelValue":t=>(0,W.unref)(o)[e]=t,class:(0,W.normalizeClass)([`wl-input`,`wl-${e}`]),name:e,type:e===`mail`?`email`:`text`},null,10,yi),[[W.vModelDynamic,(0,W.unref)(o)[e]]])]))),128))],2)):(0,W.createCommentVNode)(`v-if`,!0),(0,W.withDirectives)((0,W.createElementVNode)(`textarea`,{id:`wl-edit`,ref:`textarea`,"onUpdate:modelValue":n[0]||=e=>(0,W.isRef)(a)?a.value=e:null,class:`wl-editor`,placeholder:e.replyUser?`@${e.replyUser}`:F.value.placeholder,onKeydown:oe,onDrop:re,onPaste:ie},null,40,bi),[[W.vModelText,(0,W.unref)(a)]]),(0,W.withDirectives)((0,W.createElementVNode)(`div`,xi,[n[7]||=(0,W.createElementVNode)(`hr`,null,null,-1),(0,W.createElementVNode)(`h4`,null,(0,W.toDisplayString)(F.value.preview)+`:`,1),(0,W.createElementVNode)(`div`,{class:`wl-content`,innerHTML:k.value},null,8,Si)],512),[[W.vShow,O.value]]),(0,W.createElementVNode)(`div`,Ci,[(0,W.createElementVNode)(`div`,wi,[(0,W.createElementVNode)(`a`,Ti,[(0,W.createVNode)((0,W.unref)(Ur))]),(0,W.withDirectives)((0,W.createElementVNode)(`button`,{ref:`emoji-button`,type:`button`,class:(0,W.normalizeClass)([`wl-action`,{active:b.value}]),title:F.value.emoji,onClick:n[1]||=e=>b.value=!b.value},[(0,W.createVNode)((0,W.unref)(Br))],10,Ei),[[W.vShow,g.value.tabs.length]]),(0,W.unref)(i).search?((0,W.openBlock)(),(0,W.createElementBlock)(`button`,{key:0,ref:`gif-button`,type:`button`,class:(0,W.normalizeClass)([`wl-action`,{active:D.value}]),title:F.value.gif,onClick:n[2]||=e=>D.value=!D.value},[(0,W.createVNode)((0,W.unref)(Yr))],10,Di)):(0,W.createCommentVNode)(`v-if`,!0),(0,W.createElementVNode)(`input`,{id:`wl-image-upload`,ref:`image-uploader`,class:`upload`,"aria-hidden":`true`,type:`file`,accept:`.png,.jpg,.jpeg,.webp,.bmp,.gif`,onChange:ae},null,544),I.value?((0,W.openBlock)(),(0,W.createElementBlock)(`label`,{key:1,for:`wl-image-upload`,class:`wl-action`,title:F.value.uploadImage,"aria-label":F.value.uploadImage},[(0,W.createVNode)((0,W.unref)(Vr))],8,Oi)):(0,W.createCommentVNode)(`v-if`,!0),(0,W.createElementVNode)(`button`,{type:`button`,class:(0,W.normalizeClass)([`wl-action`,{active:O.value}]),title:F.value.preview,onClick:n[3]||=e=>O.value=!O.value},[(0,W.createVNode)((0,W.unref)($))],10,ki)]),(0,W.createElementVNode)(`div`,Ai,[n[9]||=(0,W.createElementVNode)(`div`,{class:`wl-captcha-container`},null,-1),(0,W.createElementVNode)(`div`,ji,[(0,W.createTextVNode)((0,W.toDisplayString)(A.value)+` `,1),(0,W.unref)(i).wordLimit?((0,W.openBlock)(),(0,W.createElementBlock)(`span`,Mi,[n[8]||=(0,W.createTextVNode)(` \xA0/\xA0 `,-1),(0,W.createElementVNode)(`span`,{class:(0,W.normalizeClass)({illegal:!M.value}),textContent:(0,W.toDisplayString)(ee.value)},null,10,Ni)])):(0,W.createCommentVNode)(`v-if`,!0),(0,W.createTextVNode)(` \xA0`+(0,W.toDisplayString)(F.value.word),1)]),(0,W.unref)(i).login!==`disable`&&!ne.value?((0,W.openBlock)(),(0,W.createElementBlock)(`button`,{key:0,type:`button`,class:`wl-btn`,onClick:se,textContent:(0,W.toDisplayString)(F.value.login)},null,8,Pi)):(0,W.createCommentVNode)(`v-if`,!0),(0,W.unref)(i).login!==`force`||ne.value?((0,W.openBlock)(),(0,W.createElementBlock)(`button`,{key:1,type:`submit`,class:`primary wl-btn`,title:`Cmd|Ctrl + Enter`,disabled:N.value,onClick:z},[N.value?((0,W.openBlock)(),(0,W.createBlock)((0,W.unref)(Jr),{key:0,size:16})):((0,W.openBlock)(),(0,W.createElementBlock)(W.Fragment,{key:1},[(0,W.createTextVNode)((0,W.toDisplayString)(F.value.submit),1)],64))],8,Fi)):(0,W.createCommentVNode)(`v-if`,!0)]),(0,W.createElementVNode)(`div`,{ref:`gif-popup`,class:(0,W.normalizeClass)([`wl-gif-popup`,{display:D.value}])},[(0,W.createElementVNode)(`input`,{ref:`gif-search`,type:`text`,placeholder:F.value.gifSearchPlaceholder,onInput:n[4]||=(...e)=>(0,W.unref)(V)&&(0,W.unref)(V)(...e)},null,40,Ii),j.list.length?((0,W.openBlock)(),(0,W.createBlock)(ui,{key:0,items:j.list,"column-width":200,gap:6,onInsert:n[5]||=e=>L(e),onScroll:ue},null,8,[`items`])):(0,W.createCommentVNode)(`v-if`,!0),j.loading?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,Li,[(0,W.createVNode)((0,W.unref)(Jr),{size:30})])):(0,W.createCommentVNode)(`v-if`,!0)],2),(0,W.createElementVNode)(`div`,{ref:`emoji-popup`,class:(0,W.normalizeClass)([`wl-emoji-popup`,{display:b.value}])},[((0,W.openBlock)(!0),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)(g.value.tabs,(e,t)=>((0,W.openBlock)(),(0,W.createElementBlock)(W.Fragment,{key:e.name},[t===v.value?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,{key:0,class:`wl-tab-wrapper`,onScroll:E},[((0,W.openBlock)(!0),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)(e.items,e=>((0,W.openBlock)(),(0,W.createElementBlock)(`button`,{key:e,type:`button`,title:e,onClick:t=>L(`:${e}:`),onMouseenter:t=>T(t,e),onMouseleave:E},[b.value?((0,W.openBlock)(),(0,W.createElementBlock)(`img`,{key:0,class:`wl-emoji`,src:g.value.map[e],alt:e,loading:`lazy`,referrerPolicy:`no-referrer`},null,8,zi)):(0,W.createCommentVNode)(`v-if`,!0)],40,Ri))),128))],32)):(0,W.createCommentVNode)(`v-if`,!0)],64))),128)),(0,W.createElementVNode)(`div`,null,[x.value?((0,W.openBlock)(),(0,W.createElementBlock)(`img`,{key:0,class:`wl-emoji-preview`,src:g.value.map[x.value],alt:`preview`,loading:`lazy`,referrerPolicy:`no-referrer`,style:(0,W.normalizeStyle)(C.value)},null,12,Bi)):(0,W.createCommentVNode)(`v-if`,!0)]),g.value.tabs.length>1?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,Vi,[((0,W.openBlock)(!0),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)(g.value.tabs,(e,t)=>((0,W.openBlock)(),(0,W.createElementBlock)(`button`,{key:e.name,type:`button`,class:(0,W.normalizeClass)([`wl-tab`,{active:v.value===t}]),onClick:e=>v.value=t},[(0,W.createElementVNode)(`img`,{class:`wl-emoji`,src:e.icon,alt:e.name,title:e.name,loading:`lazy`,referrerPolicy:`no-referrer`},null,8,Ui)],10,Hi))),128))])):(0,W.createCommentVNode)(`v-if`,!0)],2)])]),e.replyId||e.edit?.objectId?((0,W.openBlock)(),(0,W.createElementBlock)(`button`,{key:1,type:`button`,class:`wl-close`,title:F.value.cancelReply,onClick:n[6]||=t=>e.replyId?r(`cancelReply`):r(`cancelEdit`)},[(0,W.createVNode)((0,W.unref)(Rr),{size:24})],8,Wi)):(0,W.createCommentVNode)(`v-if`,!0)]))}});const Ki=[`id`],qi={class:`wl-user`,"aria-hidden":`true`},Ji=[`src`],Yi={class:`wl-card`},Xi={class:`wl-head`},Zi=[`href`],Qi={key:1,class:`wl-nick`},$i=[`textContent`],ea=[`textContent`],ta=[`textContent`],na=[`textContent`],ra={class:`wl-comment-actions`},ia=[`title`,`href`],aa=[`title`],oa=[`title`],sa={class:`wl-meta`,"aria-hidden":`true`},ca=[`data-value`,`textContent`],la={key:0,class:`wl-warning`,"aria-hidden":`true`},ua={key:1,class:`wl-content`},da={key:0,class:`wl-reply-to`},fa=[`href`],pa=[`innerHTML`],ma={key:2,class:`wl-admin-actions`},ha={class:`wl-comment-status`},ga=[`disabled`,`onClick`,`textContent`],_a={key:4,class:`wl-quote`};var va=(0,W.defineComponent)({__name:`CommentCard`,props:{comment:{},edit:{},rootId:{},reply:{}},emits:[`log`,`submit`,`delete`,`like`,`sticky`,`edit`,`reply`,`status`],setup(e,{emit:t}){let n=t,r=[`approved`,`waiting`,`spam`],i=(0,W.inject)(he),a=Q(),o=mt(),s=Ir(),c=(0,W.computed)(()=>i.value.locale),l=(0,W.computed)(()=>{let{link:t}=e.comment;return t?ve(t)?t:`https://${t}`:``}),u=(0,W.computed)(()=>a.value.includes(e.comment.objectId)),d=(0,W.computed)(()=>Ee(new Date(e.comment.time),o.value,c.value)),f=(0,W.computed)(()=>s.value.type===`administrator`),p=(0,W.computed)(()=>e.comment.user_id&&s.value.objectId===e.comment.user_id),m=(0,W.computed)(()=>e.comment.objectId===e.reply?.objectId),h=(0,W.computed)(()=>e.comment.objectId===e.edit?.objectId);return(t,a)=>{let o=(0,W.resolveComponent)(`CommentCard`,!0);return(0,W.openBlock)(),(0,W.createElementBlock)(`div`,{id:e.comment.objectId.toString(),class:`wl-card-item`},[(0,W.createElementVNode)(`div`,qi,[e.comment.avatar?((0,W.openBlock)(),(0,W.createElementBlock)(`img`,{key:0,class:`wl-user-avatar`,src:e.comment.avatar,alt:``},null,8,Ji)):(0,W.createCommentVNode)(`v-if`,!0),e.comment.type===`guest`?((0,W.openBlock)(),(0,W.createBlock)((0,W.unref)(Kr),{key:1})):(0,W.createCommentVNode)(`v-if`,!0),e.comment.type===`administrator`?((0,W.openBlock)(),(0,W.createBlock)((0,W.unref)(qr),{key:2})):(0,W.createCommentVNode)(`v-if`,!0)]),(0,W.createElementVNode)(`div`,Yi,[(0,W.createElementVNode)(`div`,Xi,[l.value?((0,W.openBlock)(),(0,W.createElementBlock)(`a`,{key:0,class:`wl-nick`,href:l.value,target:`_blank`,rel:`ugc nofollow noreferrer noopener`},(0,W.toDisplayString)(e.comment.nick),9,Zi)):((0,W.openBlock)(),(0,W.createElementBlock)(`span`,Qi,(0,W.toDisplayString)(e.comment.nick),1)),e.comment.label?((0,W.openBlock)(),(0,W.createElementBlock)(`span`,{key:2,class:`wl-badge`,textContent:(0,W.toDisplayString)(e.comment.label)},null,8,$i)):(0,W.createCommentVNode)(`v-if`,!0),e.comment.sticky?((0,W.openBlock)(),(0,W.createElementBlock)(`span`,{key:3,class:`wl-badge`,textContent:(0,W.toDisplayString)(c.value.sticky)},null,8,ea)):(0,W.createCommentVNode)(`v-if`,!0),typeof e.comment.level==`number`?((0,W.openBlock)(),(0,W.createElementBlock)(`span`,{key:4,class:(0,W.normalizeClass)(`wl-badge level${e.comment.level}`),textContent:(0,W.toDisplayString)(c.value[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,ta)):(0,W.createCommentVNode)(`v-if`,!0),(0,W.createElementVNode)(`span`,{class:`wl-time`,textContent:(0,W.toDisplayString)(d.value)},null,8,na),(0,W.createElementVNode)(`div`,ra,[f.value||p.value?((0,W.openBlock)(),(0,W.createElementBlock)(W.Fragment,{key:0},[(0,W.createElementVNode)(`button`,{type:`button`,class:`wl-edit`,onClick:a[0]||=t=>n(`edit`,e.comment)},[(0,W.createVNode)((0,W.unref)(Gr))]),(0,W.createElementVNode)(`button`,{type:`button`,class:`wl-delete`,onClick:a[1]||=t=>n(`delete`,e.comment)},[(0,W.createVNode)((0,W.unref)(zr))])],64)):(0,W.createCommentVNode)(`v-if`,!0),p.value&&!(0,W.unref)(i).noRss?((0,W.openBlock)(),(0,W.createElementBlock)(`a`,{key:1,role:`button`,class:`wl-rss`,title:c.value.subscribeToReplies,href:`${(0,W.unref)(i).serverURL}/api/comment/rss?user_id=${e.comment.user_id}`,target:`_blank`,rel:`noopener noreferrer`},[(0,W.createVNode)((0,W.unref)(Zr))],8,ia)):(0,W.createCommentVNode)(`v-if`,!0),(0,W.createElementVNode)(`button`,{type:`button`,class:`wl-like`,title:u.value?c.value.cancelLike:c.value.like,onClick:a[2]||=t=>n(`like`,e.comment)},[(0,W.createVNode)((0,W.unref)(Hr),{active:u.value},null,8,[`active`]),(0,W.createTextVNode)(` `+(0,W.toDisplayString)(`like`in e.comment?e.comment.like:``),1)],8,aa),(0,W.createElementVNode)(`button`,{type:`button`,class:(0,W.normalizeClass)([`wl-reply`,{active:m.value}]),title:m.value?c.value.cancelReply:c.value.reply,onClick:a[3]||=t=>n(`reply`,m.value?null:e.comment)},[(0,W.createVNode)((0,W.unref)(Wr))],10,oa)])]),(0,W.createElementVNode)(`div`,sa,[((0,W.openBlock)(),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)([`addr`,`browser`,`os`],t=>((0,W.openBlock)(),(0,W.createElementBlock)(W.Fragment,null,[e.comment[t]?((0,W.openBlock)(),(0,W.createElementBlock)(`span`,{key:t,class:(0,W.normalizeClass)(`wl-${t}`),"data-value":e.comment[t],textContent:(0,W.toDisplayString)(e.comment[t])},null,10,ca)):(0,W.createCommentVNode)(`v-if`,!0)],64))),64))]),e.comment.status===`waiting`&&!f.value?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,la,(0,W.toDisplayString)(c.value.commentUnderReview),1)):(0,W.createCommentVNode)(`v-if`,!0),h.value?(0,W.createCommentVNode)(`v-if`,!0):((0,W.openBlock)(),(0,W.createElementBlock)(`div`,ua,[`reply_user`in e.comment&&e.comment.reply_user?((0,W.openBlock)(),(0,W.createElementBlock)(`p`,da,[(0,W.createElementVNode)(`a`,{href:`#`+e.comment.pid},`@`+(0,W.toDisplayString)(e.comment.reply_user.nick),9,fa),a[17]||=(0,W.createElementVNode)(`span`,null,`: `,-1)])):(0,W.createCommentVNode)(`v-if`,!0),(0,W.createElementVNode)(`div`,{innerHTML:e.comment.comment},null,8,pa)])),f.value&&!h.value?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,ma,[(0,W.createElementVNode)(`span`,ha,[((0,W.openBlock)(),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)(r,t=>(0,W.createElementVNode)(`button`,{key:t,type:`submit`,class:(0,W.normalizeClass)(`wl-btn wl-${t}`),disabled:e.comment.status===t,onClick:r=>n(`status`,{status:t,comment:e.comment}),textContent:(0,W.toDisplayString)(c.value[t])},null,10,ga)),64))]),f.value&&!(`rid`in e.comment)?((0,W.openBlock)(),(0,W.createElementBlock)(`button`,{key:0,type:`submit`,class:`wl-btn wl-sticky`,onClick:a[4]||=t=>n(`sticky`,e.comment)},(0,W.toDisplayString)(e.comment.sticky?c.value.unsticky:c.value.sticky),1)):(0,W.createCommentVNode)(`v-if`,!0)])):(0,W.createCommentVNode)(`v-if`,!0),m.value||h.value?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,{key:3,class:(0,W.normalizeClass)({"wl-reply-wrapper":m.value,"wl-edit-wrapper":h.value})},[(0,W.createVNode)(Gi,{edit:e.edit,"reply-id":e.reply?.objectId,"reply-user":e.comment.nick,"root-id":e.rootId,onLog:a[5]||=e=>n(`log`),onCancelReply:a[6]||=e=>n(`reply`,null),onCancelEdit:a[7]||=e=>n(`edit`,null),onSubmit:a[8]||=e=>n(`submit`,e)},null,8,[`edit`,`reply-id`,`reply-user`,`root-id`])],2)):(0,W.createCommentVNode)(`v-if`,!0),`children`in e.comment?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,_a,[((0,W.openBlock)(!0),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)(e.comment.children,t=>((0,W.openBlock)(),(0,W.createBlock)(o,{key:t.objectId,comment:t,reply:e.reply,edit:e.edit,"root-id":e.rootId,onLog:a[9]||=e=>n(`log`),onDelete:a[10]||=e=>n(`delete`,e),onEdit:a[11]||=e=>n(`edit`,e),onLike:a[12]||=e=>n(`like`,e),onReply:a[13]||=e=>n(`reply`,e),onStatus:a[14]||=e=>n(`status`,e),onSticky:a[15]||=e=>n(`sticky`,e),onSubmit:a[16]||=e=>n(`submit`,e)},null,8,[`comment`,`reply`,`edit`,`root-id`]))),128))])):(0,W.createCommentVNode)(`v-if`,!0)])],8,Ki)}}});const ya={"data-waline":``},ba={class:`wl-meta-head`},xa={class:`wl-count`},Sa=[`textContent`],Ca={class:`wl-sort`},wa=[`onClick`],Ta={class:`wl-cards`},Ea={key:1,class:`wl-operation`},Da=[`textContent`],Oa={key:2,class:`wl-loading`},ka=[`textContent`],Aa={key:4,class:`wl-operation`},ja=[`textContent`],Ma={key:5,class:`wl-meta-foot`},Na={key:0,class:`wl-rss`},Pa=[`href`,`alt`],Fa=[`textContent`],Ia=[`href`,`alt`],La=[`textContent`],Ra={key:1,class:`wl-power`};var za=(0,W.defineComponent)({__name:`WalineComment`,props:{serverURL:{},path:{},meta:{},requiredMeta:{},wordLimit:{},pageSize:{},lang:{},locale:{},commentSorting:{},dark:{type:[String,Boolean]},login:{},noCopyright:{type:Boolean},noRss:{type:Boolean},recaptchaV3Key:{},turnstileKey:{},reaction:{type:[Array,Boolean]},emoji:{},search:{type:[Object,Boolean]},highlighter:{type:Function},imageUploader:{type:Function},texRenderer:{type:Function}},setup(e){let t=e,n=Ir(),r=Q(),i=(0,W.ref)(`loading`),a=(0,W.ref)(0),o=(0,W.ref)(1),s=(0,W.ref)(0),c=(0,W.computed)(()=>xe(t)),l=(0,W.ref)(c.value.commentSorting),u=(0,W.ref)([]),d=(0,W.ref)(null),f=(0,W.ref)(null),p=(0,W.computed)(()=>Ce(c.value.dark)),m=(0,W.computed)(()=>c.value.locale);_t(p,{id:`waline-darkmode`});let h=null,_=e=>{let{serverURL:t,path:r,pageSize:d}=c.value,f=new AbortController;i.value=`loading`,h?.(),g({serverURL:t,lang:c.value.lang,path:r,pageSize:d,sortBy:pe[l.value],page:e,signal:f.signal,token:n.value.token}).then(t=>{i.value=`success`,a.value=t.count,u.value.push(...t.data),o.value=e,s.value=t.totalPages}).catch(e=>{e.name!==`AbortError`&&(console.error(e.message),i.value=`error`)}),h=f.abort.bind(f)},b=()=>{_(o.value+1)},x=()=>{a.value=0,u.value=[],_(1)},S=e=>{l.value!==e&&(l.value=e,x())},C=e=>{d.value=e},w=e=>{f.value=e},T=e=>{if(f.value)f.value.comment=e.comment,f.value.orig=e.orig;else if(`rid`in e){let t=u.value.find(({objectId:t})=>t===e.rid);if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else u.value.unshift(e),a.value+=1},E=async({comment:e,status:t})=>{if(e.status===t)return;let{serverURL:r,lang:i}=c.value;await y({serverURL:r,lang:i,token:n.value.token,objectId:e.objectId,comment:{status:t}}),e.status=t},D=async e=>{if(`rid`in e)return;let{serverURL:t,lang:r}=c.value;await y({serverURL:t,lang:r,token:n.value.token,objectId:e.objectId,comment:{sticky:+!e.sticky}}),e.sticky=!e.sticky},O=async({objectId:e})=>{if(!confirm(`Are you sure you want to delete this comment?`))return;let{serverURL:t,lang:r}=c.value;await v({serverURL:t,lang:r,token:n.value.token,objectId:e}),u.value.some((t,n)=>t.objectId===e?(u.value=u.value.filter((e,t)=>t!==n),!0):t.children.some((r,i)=>r.objectId===e?(u.value[n].children=t.children.filter((e,t)=>t!==i),!0):!1))},k=async e=>{let{serverURL:t,lang:i}=c.value,{objectId:a}=e,o=r.value.includes(a);await y({serverURL:t,lang:i,objectId:a,token:n.value.token,comment:{like:!o}}),o?r.value=r.value.filter(e=>e!==a):(r.value=[...r.value,a],r.value.length>50&&(r.value=r.value.slice(-50))),e.like=Math.max(0,(e.like||0)+(o?-1:1))};return(0,W.provide)(he,c),(0,W.onMounted)(async()=>{Qe(()=>[t.serverURL,t.path],()=>{x()});let e=new URLSearchParams(location.search).get(`token`);if(!e)return;let r=await fetch(`${c?.value.serverURL}/token`,{headers:{Authorization:`Bearer ${e}`}}).then(e=>e.json()).catch(e=>(console.error(e),{}));!r.errno&&r?.data?.objectId&&(n.value={...r.data,token:e});let i=new URL(window.location.href);i.searchParams.delete(`token`),history.replaceState(null,``,i.pathname+(i.searchParams.toString()?`?${i.searchParams.toString()}`:``)+i.hash)}),(0,W.onUnmounted)(()=>{h?.()}),(e,t)=>((0,W.openBlock)(),(0,W.createElementBlock)(`div`,ya,[(0,W.createVNode)(oi),!d.value&&!f.value?((0,W.openBlock)(),(0,W.createBlock)(Gi,{key:0,onLog:x,onSubmit:T})):(0,W.createCommentVNode)(`v-if`,!0),(0,W.createElementVNode)(`div`,ba,[(0,W.createElementVNode)(`div`,xa,[a.value?((0,W.openBlock)(),(0,W.createElementBlock)(`span`,{key:0,class:`wl-num`,textContent:(0,W.toDisplayString)(a.value)},null,8,Sa)):(0,W.createCommentVNode)(`v-if`,!0),(0,W.createTextVNode)(` `+(0,W.toDisplayString)(m.value.comment),1)]),(0,W.createElementVNode)(`ul`,Ca,[((0,W.openBlock)(!0),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)((0,W.unref)(me),e=>((0,W.openBlock)(),(0,W.createElementBlock)(`li`,{key:e,class:(0,W.normalizeClass)([e===l.value?`active`:``]),onClick:t=>S(e)},(0,W.toDisplayString)(m.value[e]),11,wa))),128))])]),(0,W.createElementVNode)(`div`,Ta,[((0,W.openBlock)(!0),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)(u.value,e=>((0,W.openBlock)(),(0,W.createBlock)(va,{key:e.objectId,"root-id":e.objectId,comment:e,reply:d.value,edit:f.value,onLog:x,onReply:C,onEdit:w,onSubmit:T,onStatus:E,onDelete:O,onSticky:D,onLike:k},null,8,[`root-id`,`comment`,`reply`,`edit`]))),128))]),i.value===`error`?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,Ea,[(0,W.createElementVNode)(`button`,{type:`button`,class:`wl-btn`,onClick:x,textContent:(0,W.toDisplayString)(m.value.refresh)},null,8,Da)])):i.value===`loading`?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,Oa,[(0,W.createVNode)((0,W.unref)(Jr),{size:30})])):u.value.length?o.value<s.value?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,Aa,[(0,W.createElementVNode)(`button`,{type:`button`,class:`wl-btn`,onClick:b,textContent:(0,W.toDisplayString)(m.value.more)},null,8,ja)])):(0,W.createCommentVNode)(`v-if`,!0):((0,W.openBlock)(),(0,W.createElementBlock)(`div`,{key:3,class:`wl-empty`,textContent:(0,W.toDisplayString)(m.value.sofa)},null,8,ka)),u.value.length||i.value!==`loading`?((0,W.openBlock)(),(0,W.createElementBlock)(`div`,Ma,[c.value.noRss?(0,W.createCommentVNode)(`v-if`,!0):((0,W.openBlock)(),(0,W.createElementBlock)(`div`,Na,[(0,W.createElementVNode)(`a`,{href:`${c.value.serverURL}/api/comment/rss?path=${encodeURIComponent(c.value.path)}`,target:`_blank`,rel:`noopener noreferrer`,alt:m.value.subPostComment},[(0,W.createVNode)((0,W.unref)(Xr)),(0,W.createElementVNode)(`span`,{textContent:(0,W.toDisplayString)(m.value.subPostComment)},null,8,Fa)],8,Pa),(0,W.createElementVNode)(`a`,{href:`${c.value.serverURL}/api/comment/rss`,target:`_blank`,rel:`noopener noreferrer`,alt:m.value.subSiteComment},[(0,W.createVNode)((0,W.unref)(Xr)),(0,W.createElementVNode)(`span`,{textContent:(0,W.toDisplayString)(m.value.subSiteComment)},null,8,La)],8,Ia)])),c.value.noCopyright?(0,W.createCommentVNode)(`v-if`,!0):((0,W.openBlock)(),(0,W.createElementBlock)(`div`,Ra,[t[0]||=(0,W.createTextVNode)(` Powered by `,-1),t[1]||=(0,W.createElementVNode)(`a`,{href:`https://github.com/walinejs/waline`,target:`_blank`,rel:`noopener noreferrer`},` Waline `,-1),(0,W.createTextVNode)(` v`+(0,W.toDisplayString)((0,W.unref)(Lr)),1)]))])):(0,W.createCommentVNode)(`v-if`,!0)]))}});const Ba=(e,t)=>{t.forEach((t,n)=>{let r=e[n].time;typeof r==`number`&&(t.textContent=r.toString())})},Va=({serverURL:e,path:t=window.location.pathname,selector:n=`.waline-pageview-count`,update:r=!0,lang:i=navigator.language})=>{let a=new AbortController,o=[...document.querySelectorAll(n)],s=e=>{let n=vr(e);return n!=null&&t!==n},c=n=>C({serverURL:ye(e),paths:n.map(e=>vr(e)??t),lang:i,signal:a.signal}).then(e=>{Ba(e,n)}).catch(Ct);if(r){let n=o.filter(e=>!s(e)),r=o.filter(e=>s(e));w({serverURL:ye(e),path:t,lang:i}).then(e=>{Ba(e,n)}),r.length>0&&c(r)}else c(o);return a.abort.bind(a)},Ha=({el:e=`#waline`,path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...i})=>{let a=e?wt(e):null;if(e&&!a)throw Error(`Option 'el' do not match any domElement!`);if(!i.serverURL)throw Error(`Option 'serverURL' is missing!`);let o=(0,W.reactive)({...i}),s=(0,W.reactive)({comment:n,pageview:r,path:t}),c=()=>{s.comment&&Cr({serverURL:o.serverURL,path:s.path,...Se(s.comment)?{selector:s.comment}:{}})},l=()=>{s.pageview&&Va({serverURL:o.serverURL,path:s.path,...Se(s.pageview)?{selector:s.pageview}:{}})},u=null;a&&(u=(0,W.createApp)(()=>(0,W.h)(za,{path:s.path,...o})),u.mount(a));let d=(0,W.watchEffect)(c),f=(0,W.watchEffect)(l);return{el:a,update:({comment:e,pageview:t,path:n=window.location.pathname,...r}={})=>{Object.entries(r).forEach(([e,t])=>{o[e]=t}),s.path=n,e!=null&&(s.comment=e),t!=null&&(s.pageview=t)},destroy:()=>{u?.unmount(),d(),f()}}},Ua=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{let i=Ir(),a=wt(e),o=new AbortController;return T({serverURL:t,count:n,lang:r,signal:o.signal,token:i.value.token}).then(e=>a&&e.length>0?(a.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(),a.innerHTML=``}}):{comments:e,destroy:()=>{o.abort()}})},Wa=({el:e,serverURL:t,count:n,locale:r,lang:i=navigator.language,mode:a=`list`})=>{let o=wt(e),s=new AbortController;return E({serverURL:t,pageSize:n,lang:i,signal:s.signal}).then(e=>{if(!o||e.length===0)return{users:e,destroy:()=>{s.abort()}};let t={...de(i),...typeof r==`object`?r:{}};return o.innerHTML=`<ul class="wl-user-${a}">${e.map((e,n)=>[`<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">${n+1}</span>`,`</div>`,`<div class="wl-user-meta">`,`<div class="wl-user-name">`,e.nick,typeof e.level==`number`?`<span class="wl-badge">${t[`level${e.level}`]??`Level ${e.level}`}</span>`:``,e.label?`<span class="wl-badge">${e.label}</span>`:``,`</div>`,e.link,`</div>`,e.link?`</a>`:``,`</li>`].filter(Boolean).join(``)).join(``)}</ul>`,{users:e,destroy:()=>{s.abort(),o.innerHTML=``}}})},Ga=async({serverURL:e,lang:t,path:n})=>{let r=[1,2,3,4,5],i=new AbortController,a=i.abort.bind(i),[o]=await m({serverURL:e,lang:t,paths:[n],type:Array.from({length:5},(e,t)=>`reaction${t}`),signal:i.signal});return{value:r.map((e,t)=>o[`reaction${t}`]),abort:a}},Ka=e=>Number.isNaN(e)?0:Math.min(5,Math.max(0,Math.round(e))),qa=(e=[])=>Array.from({length:5},(t,n)=>{let r=e[n]??0;return typeof r==`number`&&r>0?r:0}),Ja={class:`wl-star-icon`,viewBox:`0 0 24 24`};var Ya=(0,W.defineComponent)({__name:`WalineStarDisplay`,props:{score:{default:0}},setup(e){let t=(0,W.computed)(()=>Ka(e.score)),n=e=>t.value>=e?`wl-star-solid`:`wl-star-outline`;return(e,t)=>((0,W.openBlock)(),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)([1,2,3,4,5],e=>(0,W.createElementVNode)(`span`,{key:e,class:`wl-star-item`},[((0,W.openBlock)(),(0,W.createElementBlock)(`svg`,Ja,[(0,W.createElementVNode)(`path`,{class:(0,W.normalizeClass)(n(e)),d:`M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.56 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z`},null,2)]))])),64))}});const Xa={class:`wl-star`},Za={class:`wl-star-score`},Qa={class:`wl-star-rate`},$a={class:`wl-star-progress`},eo=[`data-count`],to={class:`wl-star-percent`};var no=(0,W.defineComponent)({__name:`WalineStarWidget`,props:{serverURL:{},lang:{},path:{}},emits:[`rate`],setup(e,{emit:t}){let n=e,r=t,i=(0,W.ref)(null),a=Or(),o=(0,W.ref)(Ka((a.value[n.path]??0)+1)),s=(0,W.ref)(null),c=(0,W.ref)(qa([])),l=(0,W.ref)(!1);(0,W.onMounted)(()=>{Qe(()=>[n.serverURL,n.path],async()=>{try{c.value=qa((await Ga(n)).value)}catch(e){console.error(`Failed to fetch reaction data:`,e)}})});let u=(0,W.computed)(()=>s.value??o.value),d=(0,W.computed)(()=>c.value.reduce((e,t)=>e+t,0)),f=(0,W.computed)(()=>c.value.map(e=>d.value?e/d.value:0)),p=e=>{if(!i.value)return 0;let{firstElementChild:t,lastElementChild:n}=i.value;if(!t||!n)return 0;let{left:r}=t.getBoundingClientRect(),{right:a}=n.getBoundingClientRect(),o=a-r,s=(e.clientX-r)/o;return Ka(Math.min(1,Math.max(0,s))*5)},m=e=>{s.value=p(e)},g=()=>{s.value=null},_=async e=>{let t=s.value??p(e);if(t===o.value||l.value)return;l.value=!0;let i=o.value;try{i&&(await h({...n,type:`reaction${i-1}`,action:`desc`}),c.value[i-1]=Math.max(0,(c.value[i-1]??0)-1)),o.value=t;let e=t-1;a.value[n.path]=e,await h({...n,type:`reaction${e}`,action:`inc`}),c.value[e]=(c.value[e]??0)+1,r(`rate`,t)}catch(e){o.value=i,i?a.value[n.path]=i-1:delete a.value[n.path],console.error(`[Waline] Failed to update reaction counter`,e)}finally{l.value=!1}},v=e=>c.value[e-1]??0,y=e=>`${((f.value[e-1]??0)*100).toFixed(1)}%`;return(e,t)=>((0,W.openBlock)(),(0,W.createElementBlock)(`div`,Xa,[(0,W.createElementVNode)(`div`,{ref_key:`ratingArea`,ref:i,class:`wl-star-rate`,onMousemove:m,onMouseleave:g,onClick:_},[(0,W.createVNode)(Ya,{score:u.value},null,8,[`score`])],544),(0,W.createElementVNode)(`div`,Za,[((0,W.openBlock)(),(0,W.createElementBlock)(W.Fragment,null,(0,W.renderList)([5,4,3,2,1],e=>(0,W.createElementVNode)(`div`,{key:e,class:`wl-star-row`},[(0,W.createElementVNode)(`div`,Qa,[(0,W.createVNode)(Ya,{score:e},null,8,[`score`])]),(0,W.createElementVNode)(`div`,$a,[(0,W.createElementVNode)(`div`,{class:`wl-star-progress-bar`,style:(0,W.normalizeStyle)({width:y(e)}),"data-count":v(e).toString()},null,12,eo)]),(0,W.createElementVNode)(`span`,to,(0,W.toDisplayString)(y(e)),1)])),64))])]))}});const ro=({el:e,path:t,lang:n=navigator.language,serverURL:r,onRate:i})=>{let a=wt(e);if(!a)return{destroy:()=>{}};let o=(0,W.createApp)(no,{path:t,lang:n,serverURL:r,onRate:i});return o.mount(a),{destroy:()=>{o.unmount(),a.innerHTML=``}}};export{Ua as RecentComments,ro as Star,Wa as UserList,_ as addComment,Cr as commentCount,V as defaultLocales,v as deleteComment,b as fetchCommentCount,m as getArticleCounter,g as getComment,C as getPageview,T as getRecentComment,E as getUserList,Ha as init,S as login,Va as pageviewCount,h as updateArticleCounter,y as updateComment,w as updatePageview,Lr as version};
|