UNPKG

@waline/client

Version:

client for waline comment system

21 lines 162 kB
var yo=Object.defineProperty;var wo=(e,t,n)=>t in e?yo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var je=(e,t,n)=>(wo(e,typeof t!="symbol"?t+"":t,n),n),bo=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var _i=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)};var Rn=(e,t,n)=>(bo(e,t,"access private method"),n);var Tn,Cr,bi,vo;const Rr={"Content-Type":"application/json"},Ge=e=>`${e.replace(/\/?$/,"/")}api/`,yt=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},Ci=({serverURL:e,lang:t,paths:n,type:i,signal:r})=>fetch(`${Ge(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(i.join(","))}&lang=${t}`,{signal:r}).then(s=>s.json()).then(s=>yt(s,"Get counter").data),Sn=({serverURL:e,lang:t,path:n,type:i,action:r})=>fetch(`${Ge(e)}article?lang=${t}`,{method:"POST",headers:Rr,body:JSON.stringify({path:n,type:i,action:r})}).then(s=>s.json()).then(s=>yt(s,"Update counter").data),Sr=({serverURL:e,lang:t,path:n,page:i,pageSize:r,sortBy:s,signal:l,token:o})=>{const a={};return o&&(a.Authorization=`Bearer ${o}`),fetch(`${Ge(e)}comment?path=${encodeURIComponent(n)}&pageSize=${r}&page=${i}&lang=${t}&sortBy=${s}`,{signal:l,headers:a}).then(c=>c.json()).then(c=>yt(c,"Get comment data").data)},Ar=({serverURL:e,lang:t,token:n,comment:i})=>{const r={"Content-Type":"application/json"};return n&&(r.Authorization=`Bearer ${n}`),fetch(`${Ge(e)}comment?lang=${t}`,{method:"POST",headers:r,body:JSON.stringify(i)}).then(s=>s.json())},Ir=({serverURL:e,lang:t,token:n,objectId:i})=>fetch(`${Ge(e)}comment/${i}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(r=>r.json()).then(r=>yt(r,"Delete comment")),Zt=({serverURL:e,lang:t,token:n,objectId:i,comment:r})=>fetch(`${Ge(e)}comment/${i}?lang=${t}`,{method:"PUT",headers:{...Rr,Authorization:`Bearer ${n}`},body:JSON.stringify(r)}).then(s=>s.json()).then(s=>yt(s,"Update comment")),Lr=({serverURL:e,lang:t,paths:n,signal:i})=>fetch(`${Ge(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:i}).then(r=>r.json()).then(r=>yt(r,"Get comment count").data),Mr=({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,i=(window.innerHeight-450)/2,r=window.open(`${t.replace(/\/$/,"")}/ui/login?lng=${encodeURIComponent(e)}`,"_blank",`width=450,height=450,left=${n},top=${i},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return r==null||r.postMessage({type:"TOKEN",data:null},"*"),new Promise(s=>{const l=({data:o})=>{!o||typeof o!="object"||o.type!=="userInfo"||o.data.token&&(r==null||r.close(),window.removeEventListener("message",l),s(o.data))};window.addEventListener("message",l)})},Or=({serverURL:e,lang:t,paths:n,signal:i})=>Ci({serverURL:e,lang:t,paths:n,type:["time"],signal:i}),zr=e=>Sn({...e,type:"time",action:"inc"}),jr=({serverURL:e,lang:t,count:n,signal:i,token:r})=>{const s={};return r&&(s.Authorization=`Bearer ${r}`),fetch(`${Ge(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:i,headers:s}).then(l=>l.json())},Pr=({serverURL:e,signal:t,pageSize:n,lang:i})=>fetch(`${Ge(e)}user?pageSize=${n}&lang=${i}`,{signal:t}).then(r=>r.json()).then(r=>yt(r,"user list")).then(r=>r.data),ko=["nick","mail","link"],Fr=e=>e.filter(t=>ko.includes(t)),Ur=["//unpkg.com/@waline/emojis@1.1.0/weibo"],xo=["//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"],_o=e=>new Promise((t,n)=>{if(e.size>128*1e3)return n(new Error("File too large! File size limit 128KB"));const i=new FileReader;i.readAsDataURL(e),i.onload=()=>{var r;return t(((r=i.result)==null?void 0:r.toString())||"")},i.onerror=n}),Co=e=>e===!0?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',$o=e=>{const t=async(n,i={})=>fetch(`https://api.giphy.com/v1/gifs/${n}?${new URLSearchParams({lang:e,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...i}).toString()}`).then(r=>r.json()).then(({data:r})=>r.map(s=>({title:s.title,src:s.images.downsized_medium.url})));return{search:n=>t("search",{q:n,offset:"0"}),default:()=>t("trending",{}),more:(n,i=0)=>t("search",{q:n,offset:i.toString()})}},Eo=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,To=/</,Ro=/(?:^|\s)\/\/(.+?)$/gm,So=/\/\*([\S\s]*?)\*\//gm,Ao=new RegExp(`(${Eo.source}|${To.source})|((?:${Ro.source})|(?:${So.source}))`,"gmi"),Nr=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],$i={},Io=e=>{let t=0;return e.replace(Ao,(n,i,r)=>{if(r)return`<span style="color: slategray">${r}</span>`;if(i==="<")return"&lt;";let s;$i[i]?s=$i[i]:(s=Nr[t],$i[i]=s);const l=`<span style="color: #${s}">${i}</span>`;return t=++t%Nr.length,l})},Lo=["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"],st=e=>Object.fromEntries(e.map((t,n)=>[Lo[n],t]));var Hr=st(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Like","Cancel like","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words",`Please input comments between $0 and $1 words! Current word number: $2`,"Anonymous","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF","Profile","Approved","Waiting","Spam","Unsticky","Oldest","Latest","Hottest","What do you think?"]),Dr=st(["Pseudo","Le pseudo ne peut pas faire moins de 3 octets.","E-mail","Veuillez confirmer votre adresse e-mail.","Site Web","Optionnel","Commentez ici...","Aucun commentaire pour l'instant.","Envoyer","J'aime","Annuler le j'aime","Répondre","Annuler la réponse","Commentaires","Actualiser","Charger plus...","Aperçu","Emoji","Télécharger une image","Il y a quelques secondes","Il y a quelques minutes","Il y a quelques heures","Il y a quelques jours","À l'instant","Téléchargement en cours","Connexion","Déconnexion","Admin","Épinglé","Mots",`Veuillez saisir des commentaires entre $0 et $1 mots ! Nombre actuel de mots : $2`,"Anonyme","Nains","Hobbits","Ents","Mages","Elfes","Maïar","GIF","Rechercher un GIF","Profil","Approuvé","En attente","Indésirable","Détacher","Le plus ancien","Dernier","Le plus populaire","Qu'en pensez-vous ?"]),Vr=st(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません! 現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),Mo=st(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Like","Cancel like","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras",`Favor enviar comentário com $0 a $1 palavras! Número de palavras atuais: $2`,"Anônimo","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Pesquisar GIF","informação pessoal","Aprovado","Espera","Spam","Unsticky","Mais velho","Mais recentes","Mais quente","O que você acha?"]),Br=st(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов! Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),Wr=st(["Tên","Tên không được nhỏ hơn 3 ký tự.","E-Mail","Vui lòng xác nhập địa chỉ email của bạn.","Website","Tùy chọn","Hãy bình luận có văn hoá!","Chưa có bình luận","Gửi","Thích","Bỏ thích","Trả lời","Hủy bỏ","bình luận","Làm mới","Tải thêm...","Xem trước","Emoji","Tải lên hình ảnh","giây trước","phút trước","giờ trước","ngày trước","Vừa xong","Đang tải lên","Đăng nhập","đăng xuất","Quản trị viên","Dính","từ",`Bình luận phải có độ dài giữa $0 và $1 từ! Số từ hiện tại: $2`,"Vô danh","Người lùn","Người tí hon","Thần rừng","Pháp sư","Tiên tộc","Maiar","Ảnh GIF","Tìm kiếm ảnh GIF","thông tin cá nhân","Đã được phê duyệt","Đang chờ đợi","Thư rác","Không dính","lâu đời nhất","muộn nhất","nóng nhất","What do you think?"]),qr=st(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间! 当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),Oo=st(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間! 目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const Kr="en-US",An={zh:qr,"zh-cn":qr,"zh-tw":Oo,en:Hr,"en-us":Hr,fr:Dr,"fr-fr":Dr,jp:Vr,"jp-jp":Vr,"pt-br":Mo,ru:Br,"ru-ru":Br,vi:Wr,"vi-vn":Wr},Zr=e=>An[e.toLowerCase()]||An[Kr],zo=e=>Object.keys(An).includes(e.toLowerCase())?e:Kr,Gr=e=>{try{e=decodeURI(e)}catch{}return e},Qr=(e="")=>e.replace(/\/$/u,""),Jr=e=>/^(https?:)?\/\//.test(e),In=e=>{const t=Qr(e);return Jr(t)?t:`https://${t}`},jo=e=>Array.isArray(e)?e:e?[0,e]:!1,Ei=(e,t)=>typeof e=="function"?e:e===!1?!1:t,Po=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:i,emoji:r=Ur,meta:s=["nick","mail","link"],requiredMeta:l=[],dark:o=!1,pageSize:a=10,wordLimit:c,imageUploader:f,highlighter:p,texRenderer:d,copyright:m=!0,login:S="enable",search:x,reaction:C,recaptchaV3Key:w="",turnstileKey:T="",commentSorting:j="latest",...N})=>({serverURL:In(e),path:Gr(t),lang:zo(n),locale:{...Zr(n),...typeof i=="object"?i:{}},wordLimit:jo(c),meta:Fr(s),requiredMeta:Fr(l),imageUploader:Ei(f,_o),highlighter:Ei(p,Io),texRenderer:Ei(d,Co),dark:o,emoji:typeof r=="boolean"?r?Ur:[]:r,pageSize:a,login:S,copyright:m,search:x===!1?!1:typeof x=="object"?x:$o(n),recaptchaV3Key:w,turnstileKey:T,reaction:Array.isArray(C)?C:C===!0?xo:[],commentSorting:j,...N}),It=e=>typeof e=="string",Ti="{--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}",Fo=e=>It(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${Ti}}`:`${e}${Ti}`:e===!0?`:root${Ti}`:"",Ri=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},Uo=e=>{const t=Ri(e.getDate(),2),n=Ri(e.getMonth()+1,2);return`${Ri(e.getFullYear(),2)}-${n}-${t}`},No=(e,t,n)=>{if(!e)return"";const i=It(e)?new Date(e.indexOf(" ")!==-1?e.replace(/-/g,"/"):e):e,r=t.getTime()-i.getTime(),s=Math.floor(r/(24*3600*1e3));if(s===0){const l=r%864e5,o=Math.floor(l/(3600*1e3));if(o===0){const a=l%36e5,c=Math.floor(a/(60*1e3));if(c===0){const f=a%6e4;return`${Math.round(f/1e3)} ${n.seconds}`}return`${c} ${n.minutes}`}return`${o} ${n.hours}`}return s<0?n.now:s<8?`${s} ${n.days}`:Uo(i)},Ho=/^[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])?)*$/,Do=e=>Ho.test(e);/** * @vue/shared v3.4.19 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function Si(e,t){const n=new Set(e.split(","));return t?i=>n.has(i.toLowerCase()):i=>n.has(i)}const ce={},Lt=[],Qe=()=>{},Vo=()=>!1,Ln=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ai=e=>e.startsWith("onUpdate:"),Ce=Object.assign,Yr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Bo=Object.prototype.hasOwnProperty,J=(e,t)=>Bo.call(e,t),V=Array.isArray,Mt=e=>Gt(e)==="[object Map]",Ot=e=>Gt(e)==="[object Set]",Xr=e=>Gt(e)==="[object Date]",te=e=>typeof e=="function",we=e=>typeof e=="string",lt=e=>typeof e=="symbol",fe=e=>e!==null&&typeof e=="object",es=e=>(fe(e)||te(e))&&te(e.then)&&te(e.catch),ts=Object.prototype.toString,Gt=e=>ts.call(e),Wo=e=>Gt(e).slice(8,-1),ns=e=>Gt(e)==="[object Object]",Ii=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Qt=Si(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Mn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},qo=/-(\w)/g,Ve=Mn(e=>e.replace(qo,(t,n)=>n?n.toUpperCase():"")),Ko=/\B([A-Z])/g,zt=Mn(e=>e.replace(Ko,"-$1").toLowerCase()),On=Mn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Li=Mn(e=>e?`on${On(e)}`:""),ot=(e,t)=>!Object.is(e,t),zn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},jn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Jt=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let is;const Mi=()=>is||(is=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Yt(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],r=we(i)?Jo(i):Yt(i);if(r)for(const s in r)t[s]=r[s]}return t}else if(we(e)||fe(e))return e}const Zo=/;(?![^(]*\))/g,Go=/:([^]+)/,Qo=/\/\*[^]*?\*\//g;function Jo(e){const t={};return e.replace(Qo,"").split(Zo).forEach(n=>{if(n){const i=n.split(Go);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function pe(e){let t="";if(we(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const i=pe(e[n]);i&&(t+=i+" ")}else if(fe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Yo="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Xo=Si(Yo);function rs(e){return!!e||e===""}function ea(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=wt(e[i],t[i]);return n}function wt(e,t){if(e===t)return!0;let n=Xr(e),i=Xr(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=lt(e),i=lt(t),n||i)return e===t;if(n=V(e),i=V(t),n||i)return n&&i?ea(e,t):!1;if(n=fe(e),i=fe(t),n||i){if(!n||!i)return!1;const r=Object.keys(e).length,s=Object.keys(t).length;if(r!==s)return!1;for(const l in e){const o=e.hasOwnProperty(l),a=t.hasOwnProperty(l);if(o&&!a||!o&&a||!wt(e[l],t[l]))return!1}}return String(e)===String(t)}function Oi(e,t){return e.findIndex(n=>wt(n,t))}const ne=e=>we(e)?e:e==null?"":V(e)||fe(e)&&(e.toString===ts||!te(e.toString))?JSON.stringify(e,ss,2):String(e),ss=(e,t)=>t&&t.__v_isRef?ss(e,t.value):Mt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,r],s)=>(n[zi(i,s)+" =>"]=r,n),{})}:Ot(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>zi(n))}:lt(t)?zi(t):fe(t)&&!V(t)&&!ns(t)?String(t):t,zi=(e,t="")=>{var n;return lt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.4.19 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Le;class ta{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Le,!t&&Le&&(this.index=(Le.scopes||(Le.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Le;try{return Le=this,t()}finally{Le=n}}}on(){Le=this}off(){Le=this.parent}stop(t){if(this._active){let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.scopes)for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function na(e,t=Le){t&&t.active&&t.effects.push(e)}function ls(){return Le}function ia(e){Le&&Le.cleanups.push(e)}let bt;class ji{constructor(t,n,i,r){this.fn=t,this.trigger=n,this.scheduler=i,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,na(this,r)}get dirty(){return(this._dirtyLevel===2||this._dirtyLevel===3)&&(this._dirtyLevel=1,jt(),this._dirtyLevel===1&&(this._dirtyLevel=0),Pt()),this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=at,n=bt;try{return at=!0,bt=this,this._runnings++,os(this),this.fn()}finally{as(this),this._runnings--,bt=n,at=t}}stop(){var t;this.active&&(os(this),as(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function os(e){e._trackId++,e._depsLength=0}function as(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)cs(e.deps[t],e);e.deps.length=e._depsLength}}function cs(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let at=!0,Pi=0;const us=[];function jt(){us.push(at),at=!1}function Pt(){const e=us.pop();at=e===void 0?!0:e}function Fi(){Pi++}function Ui(){for(Pi--;!Pi&&Ni.length;)Ni.shift()()}function fs(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const i=e.deps[e._depsLength];i!==t?(i&&cs(i,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Ni=[];function hs(e,t,n){Fi();for(const i of e.keys()){let r;i._dirtyLevel<t&&(r??(r=e.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=t),i._shouldSchedule&&(r??(r=e.get(i)===i._trackId))&&(i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&Ni.push(i.scheduler)))}Ui()}const ds=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Hi=new WeakMap,kt=Symbol(""),Di=Symbol("");function Se(e,t,n){if(at&&bt){let i=Hi.get(e);i||Hi.set(e,i=new Map);let r=i.get(n);r||i.set(n,r=ds(()=>i.delete(n))),fs(bt,r)}}function Je(e,t,n,i,r,s){const l=Hi.get(e);if(!l)return;let o=[];if(t==="clear")o=[...l.values()];else if(n==="length"&&V(e)){const a=Number(i);l.forEach((c,f)=>{(f==="length"||!lt(f)&&f>=a)&&o.push(c)})}else switch(n!==void 0&&o.push(l.get(n)),t){case"add":V(e)?Ii(n)&&o.push(l.get("length")):(o.push(l.get(kt)),Mt(e)&&o.push(l.get(Di)));break;case"delete":V(e)||(o.push(l.get(kt)),Mt(e)&&o.push(l.get(Di)));break;case"set":Mt(e)&&o.push(l.get(kt));break}Fi();for(const a of o)a&&hs(a,4);Ui()}const ra=Si("__proto__,__v_isRef,__isVue"),ps=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(lt)),gs=sa();function sa(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=X(this);for(let s=0,l=this.length;s<l;s++)Se(i,"get",s+"");const r=i[t](...n);return r===-1||r===!1?i[t](...n.map(X)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){jt(),Fi();const i=X(this)[t].apply(this,n);return Ui(),Pt(),i}}),e}function la(e){const t=X(this);return Se(t,"has",e),t.hasOwnProperty(e)}class ms{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,i){const r=this._isReadonly,s=this._shallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return s;if(n==="__v_raw")return i===(r?s?wa:Cs:s?_s:xs).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const l=V(t);if(!r){if(l&&J(gs,n))return Reflect.get(gs,n,i);if(n==="hasOwnProperty")return la}const o=Reflect.get(t,n,i);return(lt(n)?ps.has(n):ra(n))||(r||Se(t,"get",n),s)?o:$e(o)?l&&Ii(n)?o:o.value:fe(o)?r?en(o):Xt(o):o}}class vs extends ms{constructor(t=!1){super(!1,t)}set(t,n,i,r){let s=t[n];if(!this._shallow){const a=Ut(s);if(!Vn(i)&&!Ut(i)&&(s=X(s),i=X(i)),!V(t)&&$e(s)&&!$e(i))return a?!1:(s.value=i,!0)}const l=V(t)&&Ii(n)?Number(n)<t.length:J(t,n),o=Reflect.set(t,n,i,r);return t===X(r)&&(l?ot(i,s)&&Je(t,"set",n,i):Je(t,"add",n,i)),o}deleteProperty(t,n){const i=J(t,n),r=Reflect.deleteProperty(t,n);return r&&i&&Je(t,"delete",n,void 0),r}has(t,n){const i=Reflect.has(t,n);return(!lt(n)||!ps.has(n))&&Se(t,"has",n),i}ownKeys(t){return Se(t,"iterate",V(t)?"length":kt),Reflect.ownKeys(t)}}class oa extends ms{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const aa=new vs,ca=new oa,ua=new vs(!0),Vi=e=>e,Pn=e=>Reflect.getPrototypeOf(e);function Fn(e,t,n=!1,i=!1){e=e.__v_raw;const r=X(e),s=X(t);n||(ot(t,s)&&Se(r,"get",t),Se(r,"get",s));const{has:l}=Pn(r),o=i?Vi:n?qi:tn;if(l.call(r,t))return o(e.get(t));if(l.call(r,s))return o(e.get(s));e!==r&&e.get(t)}function Un(e,t=!1){const n=this.__v_raw,i=X(n),r=X(e);return t||(ot(e,r)&&Se(i,"has",e),Se(i,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Nn(e,t=!1){return e=e.__v_raw,!t&&Se(X(e),"iterate",kt),Reflect.get(e,"size",e)}function ys(e){e=X(e);const t=X(this);return Pn(t).has.call(t,e)||(t.add(e),Je(t,"add",e,e)),this}function ws(e,t){t=X(t);const n=X(this),{has:i,get:r}=Pn(n);let s=i.call(n,e);s||(e=X(e),s=i.call(n,e));const l=r.call(n,e);return n.set(e,t),s?ot(t,l)&&Je(n,"set",e,t):Je(n,"add",e,t),this}function bs(e){const t=X(this),{has:n,get:i}=Pn(t);let r=n.call(t,e);r||(e=X(e),r=n.call(t,e)),i&&i.call(t,e);const s=t.delete(e);return r&&Je(t,"delete",e,void 0),s}function ks(){const e=X(this),t=e.size!==0,n=e.clear();return t&&Je(e,"clear",void 0,void 0),n}function Hn(e,t){return function(i,r){const s=this,l=s.__v_raw,o=X(l),a=t?Vi:e?qi:tn;return!e&&Se(o,"iterate",kt),l.forEach((c,f)=>i.call(r,a(c),a(f),s))}}function Dn(e,t,n){return function(...i){const r=this.__v_raw,s=X(r),l=Mt(s),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=r[e](...i),f=n?Vi:t?qi:tn;return!t&&Se(s,"iterate",a?Di:kt),{next(){const{value:p,done:d}=c.next();return d?{value:p,done:d}:{value:o?[f(p[0]),f(p[1])]:f(p),done:d}},[Symbol.iterator](){return this}}}}function ct(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function fa(){const e={get(s){return Fn(this,s)},get size(){return Nn(this)},has:Un,add:ys,set:ws,delete:bs,clear:ks,forEach:Hn(!1,!1)},t={get(s){return Fn(this,s,!1,!0)},get size(){return Nn(this)},has:Un,add:ys,set:ws,delete:bs,clear:ks,forEach:Hn(!1,!0)},n={get(s){return Fn(this,s,!0)},get size(){return Nn(this,!0)},has(s){return Un.call(this,s,!0)},add:ct("add"),set:ct("set"),delete:ct("delete"),clear:ct("clear"),forEach:Hn(!0,!1)},i={get(s){return Fn(this,s,!0,!0)},get size(){return Nn(this,!0)},has(s){return Un.call(this,s,!0)},add:ct("add"),set:ct("set"),delete:ct("delete"),clear:ct("clear"),forEach:Hn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Dn(s,!1,!1),n[s]=Dn(s,!0,!1),t[s]=Dn(s,!1,!0),i[s]=Dn(s,!0,!0)}),[e,n,t,i]}const[ha,da,pa,ga]=fa();function Bi(e,t){const n=t?e?ga:pa:e?da:ha;return(i,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?i:Reflect.get(J(n,r)&&r in i?n:i,r,s)}const ma={get:Bi(!1,!1)},va={get:Bi(!1,!0)},ya={get:Bi(!0,!1)},xs=new WeakMap,_s=new WeakMap,Cs=new WeakMap,wa=new WeakMap;function ba(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ka(e){return e.__v_skip||!Object.isExtensible(e)?0:ba(Wo(e))}function Xt(e){return Ut(e)?e:Wi(e,!1,aa,ma,xs)}function xa(e){return Wi(e,!1,ua,va,_s)}function en(e){return Wi(e,!0,ca,ya,Cs)}function Wi(e,t,n,i,r){if(!fe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const l=ka(e);if(l===0)return e;const o=new Proxy(e,l===2?i:n);return r.set(e,o),o}function Ft(e){return Ut(e)?Ft(e.__v_raw):!!(e&&e.__v_isReactive)}function Ut(e){return!!(e&&e.__v_isReadonly)}function Vn(e){return!!(e&&e.__v_isShallow)}function $s(e){return Ft(e)||Ut(e)}function X(e){const t=e&&e.__v_raw;return t?X(t):e}function Es(e){return Object.isExtensible(e)&&jn(e,"__v_skip",!0),e}const tn=e=>fe(e)?Xt(e):e,qi=e=>fe(e)?en(e):e;class Ts{constructor(t,n,i,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ji(()=>t(this._value),()=>Bn(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=i}get value(){const t=X(this);return(!t._cacheable||t.effect.dirty)&&ot(t._value,t._value=t.effect.run())&&Bn(t,4),Rs(t),t.effect._dirtyLevel>=2&&Bn(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function _a(e,t,n=!1){let i,r;const s=te(e);return s?(i=e,r=Qe):(i=e.get,r=e.set),new Ts(i,r,s||!r,n)}function Rs(e){var t;at&&bt&&(e=X(e),fs(bt,(t=e.dep)!=null?t:e.dep=ds(()=>e.dep=void 0,e instanceof Ts?e:void 0)))}function Bn(e,t=4,n){e=X(e);const i=e.dep;i&&hs(i,t)}function $e(e){return!!(e&&e.__v_isRef===!0)}function K(e){return Ss(e,!1)}function Ca(e){return Ss(e,!0)}function Ss(e,t){return $e(e)?e:new $a(e,t)}class $a{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:X(t),this._value=n?t:tn(t)}get value(){return Rs(this),this._value}set value(t){const n=this.__v_isShallow||Vn(t)||Ut(t);t=n?t:X(t),ot(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:tn(t),Bn(this,4))}}function G(e){return $e(e)?e.value:e}const Ea={get:(e,t,n)=>G(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const r=e[t];return $e(r)&&!$e(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function As(e){return Ft(e)?e:new Proxy(e,Ea)}/** * @vue/runtime-core v3.4.19 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function ut(e,t,n,i){try{return i?e(...i):e()}catch(r){Wn(r,t,n)}}function Be(e,t,n,i){if(te(e)){const s=ut(e,t,n,i);return s&&es(s)&&s.catch(l=>{Wn(l,t,n)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(Be(e[s],t,n,i));return r}function Wn(e,t,n,i=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const l=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const c=s.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,o)===!1)return}s=s.parent}const a=t.appContext.config.errorHandler;if(a){ut(a,null,10,[e,l,o]);return}}Ta(e,n,r,i)}function Ta(e,t,n,i=!0){console.error(e)}let nn=!1,Ki=!1;const xe=[];let We=0;const Nt=[];let ft=null,xt=0;const Is=Promise.resolve();let Zi=null;function rn(e){const t=Zi||Is;return e?t.then(this?e.bind(this):e):t}function Ra(e){let t=We+1,n=xe.length;for(;t<n;){const i=t+n>>>1,r=xe[i],s=sn(r);s<e||s===e&&r.pre?t=i+1:n=i}return t}function Gi(e){(!xe.length||!xe.includes(e,nn&&e.allowRecurse?We+1:We))&&(e.id==null?xe.push(e):xe.splice(Ra(e.id),0,e),Ls())}function Ls(){!nn&&!Ki&&(Ki=!0,Zi=Is.then(zs))}function Sa(e){const t=xe.indexOf(e);t>We&&xe.splice(t,1)}function Aa(e){V(e)?Nt.push(...e):(!ft||!ft.includes(e,e.allowRecurse?xt+1:xt))&&Nt.push(e),Ls()}function Ms(e,t,n=nn?We+1:0){for(;n<xe.length;n++){const i=xe[n];if(i&&i.pre){if(e&&i.id!==e.uid)continue;xe.splice(n,1),n--,i()}}}function Os(e){if(Nt.length){const t=[...new Set(Nt)].sort((n,i)=>sn(n)-sn(i));if(Nt.length=0,ft){ft.push(...t);return}for(ft=t,xt=0;xt<ft.length;xt++)ft[xt]();ft=null,xt=0}}const sn=e=>e.id==null?1/0:e.id,Ia=(e,t)=>{const n=sn(e)-sn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function zs(e){Ki=!1,nn=!0,xe.sort(Ia);try{for(We=0;We<xe.length;We++){const t=xe[We];t&&t.active!==!1&&ut(t,null,14)}}finally{We=0,xe.length=0,Os(),nn=!1,Zi=null,(xe.length||Nt.length)&&zs()}}function La(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||ce;let r=n;const s=t.startsWith("update:"),l=s&&t.slice(7);if(l&&l in i){const f=`${l==="modelValue"?"model":l}Modifiers`,{number:p,trim:d}=i[f]||ce;d&&(r=n.map(m=>we(m)?m.trim():m)),p&&(r=n.map(Jt))}let o,a=i[o=Li(t)]||i[o=Li(Ve(t))];!a&&s&&(a=i[o=Li(zt(t))]),a&&Be(a,e,6,r);const c=i[o+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,Be(c,e,6,r)}}function Ma(e,t,n=!1){const i=t.emitsCache,r=i.get(e);if(r!==void 0)return r;const s=e.emits;let l={};return!s&&!!1?(fe(e)&&i.set(e,null),null):(V(s)?s.forEach(a=>l[a]=null):Ce(l,s),fe(e)&&i.set(e,l),l)}function qn(e,t){return!e||!Ln(t)?!1:(t=t.slice(2).replace(/Once$/,""),J(e,t[0].toLowerCase()+t.slice(1))||J(e,zt(t))||J(e,t))}let Ee=null,js=null;function Kn(e){const t=Ee;return Ee=e,js=e&&e.type.__scopeId||null,t}function Oa(e,t=Ee,n){if(!t||e._n)return e;const i=(...r)=>{i._d&&il(-1);const s=Kn(t);let l;try{l=e(...r)}finally{Kn(s),i._d&&il(1)}return l};return i._n=!0,i._c=!0,i._d=!0,i}function Qi(e){const{type:t,vnode:n,proxy:i,withProxy:r,props:s,propsOptions:[l],slots:o,attrs:a,emit:c,render:f,renderCache:p,data:d,setupState:m,ctx:S,inheritAttrs:x}=e;let C,w;const T=Kn(e);try{if(n.shapeFlag&4){const N=r||i,P=N;C=qe(f.call(P,N,p,s,m,d,S)),w=a}else{const N=t;C=qe(N.length>1?N(s,{attrs:a,slots:o,emit:c}):N(s,null)),w=t.props?a:za(a)}}catch(N){fn.length=0,Wn(N,e,1),C=se(Et)}let j=C;if(w&&x!==!1){const N=Object.keys(w),{shapeFlag:P}=j;N.length&&P&7&&(l&&N.some(Ai)&&(w=ja(w,l)),j=Ht(j,w))}return n.dirs&&(j=Ht(j),j.dirs=j.dirs?j.dirs.concat(n.dirs):n.dirs),n.transition&&(j.transition=n.transition),C=j,Kn(T),C}const za=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ln(n))&&((t||(t={}))[n]=e[n]);return t},ja=(e,t)=>{const n={};for(const i in e)(!Ai(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function Pa(e,t,n){const{props:i,children:r,component:s}=e,{props:l,children:o,patchFlag:a}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return i?Ps(i,l,c):!!l;if(a&8){const f=t.dynamicProps;for(let p=0;p<f.length;p++){const d=f[p];if(l[d]!==i[d]&&!qn(c,d))return!0}}}else return(r||o)&&(!o||!o.$stable)?!0:i===l?!1:i?l?Ps(i,l,c):!0:!!l;return!1}function Ps(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let r=0;r<i.length;r++){const s=i[r];if(t[s]!==e[s]&&!qn(n,s))return!0}return!1}function Fa({vnode:e,parent:t},n){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.el=e.el),i===e)(e=t.vnode).el=n,t=t.parent;else break}}const Fs="components";function Ua(e,t){return Ha(Fs,e,!0,t)||e}const Na=Symbol.for("v-ndc");function Ha(e,t,n=!0,i=!1){const r=Ee||Re;if(r){const s=r.type;if(e===Fs){const o=Tc(s,!1);if(o&&(o===t||o===Ve(t)||o===On(Ve(t))))return s}const l=Us(r[e]||s[e],t)||Us(r.appContext[e],t);return!l&&i?s:l}}function Us(e,t){return e&&(e[t]||e[Ve(t)]||e[On(Ve(t))])}const Da=e=>e.__isSuspense;function Va(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):Aa(e)}const Ba=Symbol.for("v-scx"),Wa=()=>Xn(Ba);function Ns(e,t){return Hs(e,null,t)}const Zn={};function Pe(e,t,n){return Hs(e,t,n)}function Hs(e,t,{immediate:n,deep:i,flush:r,once:s,onTrack:l,onTrigger:o}=ce){if(t&&s){const z=t;t=(...W)=>{z(...W),P()}}const a=Re,c=z=>i===!0?z:_t(z,i===!1?1:void 0);let f,p=!1,d=!1;if($e(e)?(f=()=>e.value,p=Vn(e)):Ft(e)?(f=()=>c(e),p=!0):V(e)?(d=!0,p=e.some(z=>Ft(z)||Vn(z)),f=()=>e.map(z=>{if($e(z))return z.value;if(Ft(z))return c(z);if(te(z))return ut(z,a,2)})):te(e)?t?f=()=>ut(e,a,2):f=()=>(m&&m(),Be(e,a,3,[S])):f=Qe,t&&i){const z=f;f=()=>_t(z())}let m,S=z=>{m=j.onStop=()=>{ut(z,a,4),m=j.onStop=void 0}},x;if(ri)if(S=Qe,t?n&&Be(t,a,3,[f(),d?[]:void 0,S]):f(),r==="sync"){const z=Wa();x=z.__watcherHandles||(z.__watcherHandles=[])}else return Qe;let C=d?new Array(e.length).fill(Zn):Zn;const w=()=>{if(!(!j.active||!j.dirty))if(t){const z=j.run();(i||p||(d?z.some((W,B)=>ot(W,C[B])):ot(z,C)))&&(m&&m(),Be(t,a,3,[z,C===Zn?void 0:d&&C[0]===Zn?[]:C,S]),C=z)}else j.run()};w.allowRecurse=!!t;let T;r==="sync"?T=w:r==="post"?T=()=>Ae(w,a&&a.suspense):(w.pre=!0,a&&(w.id=a.uid),T=()=>Gi(w));const j=new ji(f,Qe,T),N=ls(),P=()=>{j.stop(),N&&Yr(N.effects,j)};return t?n?w():C=j.run():r==="post"?Ae(j.run.bind(j),a&&a.suspense):j.run(),x&&x.push(P),P}function _t(e,t,n=0,i){if(!fe(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(i=i||new Set,i.has(e))return e;if(i.add(e),$e(e))_t(e.value,t,n,i);else if(V(e))for(let r=0;r<e.length;r++)_t(e[r],t,n,i);else if(Ot(e)||Mt(e))e.forEach(r=>{_t(r,t,n,i)});else if(ns(e))for(const r in e)_t(e[r],t,n,i);return e}function Gn(e,t){if(Ee===null)return e;const n=si(Ee)||Ee.proxy,i=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[s,l,o,a=ce]=t[r];s&&(te(s)&&(s={mounted:s,updated:s}),s.deep&&_t(l),i.push({dir:s,instance:n,value:l,oldValue:void 0,arg:o,modifiers:a}))}return e}function Ct(e,t,n,i){const r=e.dirs,s=t&&t.dirs;for(let l=0;l<r.length;l++){const o=r[l];s&&(o.oldValue=s[l].value);let a=o.dir[i];a&&(jt(),Be(a,n,8,[e.el,o,e,t]),Pt())}}/*! #__NO_SIDE_EFFECTS__ */function ln(e,t){return te(e)?Ce({name:e.name},t,{setup:e}):e}const Qn=e=>!!e.type.__asyncLoader,qa=e=>e.type.__isKeepAlive;function Ka(e,t,n=Re,i=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{if(n.isUnmounted)return;jt();const o=ar(n),a=Be(t,n,e,l);return o(),Pt(),a});return i?r.unshift(s):r.push(s),s}}const Ji=e=>(t,n=Re)=>(!ri||e==="sp")&&Ka(e,(...i)=>t(...i),n),on=Ji("m"),Za=Ji("bum"),Jn=Ji("um");function Fe(e,t,n,i){let r;const s=n&&n[i];if(V(e)||we(e)){r=new Array(e.length);for(let l=0,o=e.length;l<o;l++)r[l]=t(e[l],l,void 0,s&&s[l])}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,s&&s[l])}else if(fe(e))if(e[Symbol.iterator])r=Array.from(e,(l,o)=>t(l,o,void 0,s&&s[o]));else{const l=Object.keys(e);r=new Array(l.length);for(let o=0,a=l.length;o<a;o++){const c=l[o];r[o]=t(e[c],c,o,s&&s[o])}}else r=[];return n&&(n[i]=r),r}const Yi=e=>e?ol(e)?si(e)||e.proxy:Yi(e.parent):null,an=Ce(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=>Yi(e.parent),$root:e=>Yi(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Gi(e.update)}),$nextTick:e=>e.n||(e.n=rn.bind(e.proxy)),$watch:e=>Qe}),Xi=(e,t)=>e!==ce&&!e.__isScriptSetup&&J(e,t),Ga={get({_:e},t){const{ctx:n,setupState:i,data:r,props:s,accessCache:l,type:o,appContext:a}=e;let c;if(t[0]!=="$"){const m=l[t];if(m!==void 0)switch(m){case 1:return i[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(Xi(i,t))return l[t]=1,i[t];if(r!==ce&&J(r,t))return l[t]=2,r[t];if((c=e.propsOptions[0])&&J(c,t))return l[t]=3,s[t];if(n!==ce&&J(n,t))return l[t]=4,n[t];l[t]=0}}const f=an[t];let p,d;if(f)return t==="$attrs"&&Se(e,"get",t),f(e);if((p=o.__cssModules)&&(p=p[t]))return p;if(n!==ce&&J(n,t))return l[t]=4,n[t];if(d=a.config.globalProperties,J(d,t))return d[t]},set({_:e},t,n){const{data:i,setupState:r,ctx:s}=e;return Xi(r,t)?(r[t]=n,!0):i!==ce&&J(i,t)?(i[t]=n,!0):J(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:r,propsOptions:s}},l){let o;return!!n[l]||e!==ce&&J(e,l)||Xi(t,l)||(o=s[0])&&J(o,l)||J(i,l)||J(an,l)||J(r.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:J(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ds(e){return V(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Qa(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:l}}=e.appContext,o=s.get(t);let a;return o?a=o:!r.length&&!n&&!i?a=t:(a={},r.length&&r.forEach(c=>Yn(a,c,l,!0)),Yn(a,t,l)),fe(t)&&s.set(t,a),a}function Yn(e,t,n,i=!1){const{mixins:r,extends:s}=t;s&&Yn(e,s,n,!0),r&&r.forEach(l=>Yn(e,l,n,!0));for(const l in t)if(!(i&&l==="expose")){const o=Ja[l]||n&&n[l];e[l]=o?o(e[l],t[l]):t[l]}return e}const Ja={data:Vs,props:Ws,emits:Ws,methods:cn,computed:cn,beforeCreate:Te,created:Te,beforeMount:Te,mounted:Te,beforeUpdate:Te,updated:Te,beforeDestroy:Te,beforeUnmount:Te,destroyed:Te,unmounted:Te,activated:Te,deactivated:Te,errorCaptured:Te,serverPrefetch:Te,components:cn,directives:cn,watch:Xa,provide:Vs,inject:Ya};function Vs(e,t){return t?e?function(){return Ce(te(e)?e.call(this,this):e,te(t)?t.call(this,this):t)}:t:e}function Ya(e,t){return cn(Bs(e),Bs(t))}function Bs(e){if(V(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Te(e,t){return e?[...new Set([].concat(e,t))]:t}function cn(e,t){return e?Ce(Object.create(null),e,t):t}function Ws(e,t){return e?V(e)&&V(t)?[...new Set([...e,...t])]:Ce(Object.create(null),Ds(e),Ds(t??{})):t}function Xa(e,t){if(!e)return t;if(!t)return e;const n=Ce(Object.create(null),e);for(const i in t)n[i]=Te(e[i],t[i]);return n}function qs(){return{app:null,config:{isNativeTag:Vo,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 ec=0;function tc(e,t){return function(i,r=null){te(i)||(i=Ce({},i)),r!=null&&!fe(r)&&(r=null);const s=qs(),l=new WeakSet;let o=!1;const a=s.app={_uid:ec++,_component:i,_props:r,_container:null,_context:s,_instance:null,version:Sc,get config(){return s.config},set config(c){},use(c,...f){return l.has(c)||(c&&te(c.install)?(l.add(c),c.install(a,...f)):te(c)&&(l.add(c),c(a,...f))),a},mixin(c){return a},component(c,f){return f?(s.components[c]=f,a):s.components[c]},directive(c,f){return f?(s.directives[c]=f,a):s.directives[c]},mount(c,f,p){if(!o){const d=se(i,r);return d.appContext=s,p===!0?p="svg":p===!1&&(p=void 0),f&&t?t(d,c):e(d,c,p),o=!0,a._container=c,c.__vue_app__=a,si(d.component)||d.component.proxy}},unmount(){o&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,f){return s.provides[c]=f,a},runWithContext(c){const f=un;un=a;try{return c()}finally{un=f}}};return a}}let un=null;function nc(e,t){if(Re){let n=Re.provides;const i=Re.parent&&Re.parent.provides;i===n&&(n=Re.provides=Object.create(i)),n[e]=t}}function Xn(e,t,n=!1){const i=Re||Ee;if(i||un){const r=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:un._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&te(t)?t.call(i&&i.proxy):t}}function ic(e,t,n,i=!1){const r={},s={};jn(s,ti,1),e.propsDefaults=Object.create(null),Ks(e,t,r,s);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);n?e.props=i?r:xa(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function rc(e,t,n,i){const{props:r,attrs:s,vnode:{patchFlag:l}}=e,o=X(r),[a]=e.propsOptions;let c=!1;if((i||l>0)&&!(l&16)){if(l&8){const f=e.vnode.dynamicProps;for(let p=0;p<f.length;p++){let d=f[p];if(qn(e.emitsOptions,d))continue;const m=t[d];if(a)if(J(s,d))m!==s[d]&&(s[d]=m,c=!0);else{const S=Ve(d);r[S]=er(a,o,S,m,e,!1)}else m!==s[d]&&(s[d]=m,c=!0)}}}else{Ks(e,t,r,s)&&(c=!0);let f;for(const p in o)(!t||!J(t,p)&&((f=zt(p))===p||!J(t,f)))&&(a?n&&(n[p]!==void 0||n[f]!==void 0)&&(r[p]=er(a,o,p,void 0,e,!0)):delete r[p]);if(s!==o)for(const p in s)(!t||!J(t,p))&&(delete s[p],c=!0)}c&&Je(e,"set","$attrs")}function Ks(e,t,n,i){const[r,s]=e.propsOptions;let l=!1,o;if(t)for(let a in t){if(Qt(a))continue;const c=t[a];let f;r&&J(r,f=Ve(a))?!s||!s.includes(f)?n[f]=c:(o||(o={}))[f]=c:qn(e.emitsOptions,a)||(!(a in i)||c!==i[a])&&(i[a]=c,l=!0)}if(s){const a=X(n),c=o||ce;for(let f=0;f<s.length;f++){const p=s[f];n[p]=er(r,a,p,c[p],e,!J(c,p))}}return l}function er(e,t,n,i,r,s){const l=e[n];if(l!=null){const o=J(l,"default");if(o&&i===void 0){const a=l.default;if(l.type!==Function&&!l.skipFactory&&te(a)){const{propsDefaults:c}=r;if(n in c)i=c[n];else{const f=ar(r);i=c[n]=a.call(null,t),f()}}else i=a}l[0]&&(s&&!o?i=!1:l[1]&&(i===""||i===zt(n))&&(i=!0))}return i}function sc(e,t,n=!1){const i=t.propsCache,r=i.get(e);if(r)return r;const s=e.props,l={},o=[];if(!s&&!!1)return fe(e)&&i.set(e,Lt),Lt;if(V(s))for(let f=0;f<s.length;f++){const p=Ve(s[f]);Zs(p)&&(l[p]=ce)}else if(s)for(const f in s){const p=Ve(f);if(Zs(p)){const d=s[f],m=l[p]=V(d)||te(d)?{type:d}:Ce({},d);if(m){const S=Js(Boolean,m.type),x=Js(String,m.type);m[0]=S>-1,m[1]=x<0||S<x,(S>-1||J(m,"default"))&&o.push(p)}}}const c=[l,o];return fe(e)&&i.set(e,c),c}function Zs(e){return e[0]!=="$"&&!Qt(e)}function Gs(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Qs(e,t){return Gs(e)===Gs(t)}function Js(e,t){return V(t)?t.findIndex(n=>Qs(n,e)):te(t)&&Qs(t,e)?0:-1}const Ys=e=>e[0]==="_"||e==="$stable",tr=e=>V(e)?e.map(qe):[qe(e)],lc=(e,t,n)=>{if(t._n)return t;const i=Oa((...r)=>tr(t(...r)),n);return i._c=!1,i},Xs=(e,t,n)=>{const i=e._ctx;for(const r in e){if(Ys(r))continue;const s=e[r];if(te(s))t[r]=lc(r,s,i);else if(s!=null){const l=tr(s);t[r]=()=>l}}},el=(e,t)=>{const n=tr(t);e.slots.default=()=>n},oc=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=X(t),jn(t,"_",n)):Xs(t,e.slots={})}else e.slots={},t&&el(e,t);jn(e.slots,ti,1)},ac=(e,t,n)=>{const{vnode:i,slots:r}=e;let s=!0,l=ce;if(i.shapeFlag&32){const o=t._;o?n&&o===1?s=!1:(Ce(r,t),!n&&o===1&&delete r._):(s=!t.$stable,Xs(t,r)),l=t}else t&&(el(e,t),l={default:1});if(s)for(const o in r)!Ys(o)&&l[o]==null&&delete r[o]};function nr(e,t,n,i,r=!1){if(V(e)){e.forEach((d,m)=>nr(d,t&&(V(t)?t[m]:t),n,i,r));return}if(Qn(i)&&!r)return;const s=i.shapeFlag&4?si(i.component)||i.component.proxy:i.el,l=r?null:s,{i:o,r:a}=e,c=t&&t.r,f=o.refs===ce?o.refs={}:o.refs,p=o.setupState;if(c!=null&&c!==a&&(we(c)?(f[c]=null,J(p,c)&&(p[c]=null)):$e(c)&&(c.value=null)),te(a))ut(a,o,12,[l,f]);else{const d=we(a),m=$e(a);if(d||m){const S=()=>{if(e.f){const x=d?J(p,a)?p[a]:f[a]:a.value;r?V(x)&&Yr(x,s):V(x)?x.includes(s)||x.push(s):d?(f[a]=[s],J(p,a)&&(p[a]=f[a])):(a.value=[s],e.k&&(f[e.k]=a.value))}else d?(f[a]=l,J(p,a)&&(p[a]=l)):m&&(a.value=l,e.k&&(f[e.k]=l))};l?(S.id=-1,Ae(S,n)):S()}}}function cc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(Mi().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Ae=Va;function uc(e){return fc(e)}function fc(e,t){cc();const n=Mi();n.__VUE__=!0;const{insert:i,remove:r,patchProp:s,createElement:l,createText:o,createComment:a,setText:c,setElementText:f,parentNode:p,nextSibling:d,setScopeId:m=Qe,insertStaticContent:S}=e,x=(u,h,g,v=null,y=null,k=null,E=void 0,_=null,$=!!h.dynamicChildren)=>{if(u===h)return;u&&!dn(u,h)&&(v=vt(u),Oe(u,y,k,!0),u=null),h.patchFlag===-2&&($=!1,h.dynamicChildren=null);const{type:b,ref:I,shapeFlag:U}=h;switch(b){case ei:C(u,h,g,v);break;case Et:w(u,h,g,v);break;case rr:u==null&&T(h,g,v,E);break;case oe:ve(u,h,g,v,y,k,E,_,$);break;default:U&1?P(u,h,g,v,y,k,E,_,$):U&6?q(u,h,g,v,y,k,E,_,$):(U&64||U&128)&&b.process(u,h,g,v,y,k,E,_,$,Ze)}I!=null&&y&&nr(I,u&&u.ref,k,h||u,!h)},C=(u,h,g,v)=>{if(u==null)i(h.el=o(h.children),g,v);else{const y=h.el=u.el;h.children!==u.children&&c(y,h.children)}},w=(u,h,g,v)=>{u==null?i(h.el=a(h.children||""),g,v):h.el=u.el},T=(u,h,g,v)=>{[u.el,u.anchor]=S(u.children,h,g,v,u.el,u.anchor)},j=({el:u,anchor:h},g,v)=>{let y;for(;u&&u!==h;)y=d(u),i(u,g,v),u=y;i(h,g,v)},N=({el:u,anchor:h})=>{let g;for(;u&&u!==h;)g=d(u),r(u),u=g;r(h)},P=(u,h,g,v,y,k,E,_,$)=>{h.type==="svg"?E="svg":h.type==="math"&&(E="mathml"),u==null?z(h,g,v,y,k,E,_,$):Q(u,h,y,k,E,_,$)},z=(u,h,g,v,y,k,E,_)=>{let $,b;const{props:I,shapeFlag:U,transition:R,dirs:H}=u;if($=u.el=l(u.type,k,I&&I.is,I),U&8?f($,u.children):U&16&&B(u.children,$,null,v,y,ir(u,k),E,_),H&&Ct(u,null,v,"created"),W($,u,u.scopeId,E,v),I){for(const re in I)re!=="value"&&!Qt(re)&&s($,re,null,I[re],k,u.children,v,y,ze);"value"in I&&s($,"value",null,I.value,k),(b=I.onVnodeBeforeMount)&&Ke(b,v,u)}H&&Ct(u,null,v,"beforeMount");const Z=hc(y,R);Z&&R.beforeEnter($),i($,h,g),((b=I&&I.onVnodeMounted)||Z||H)&&Ae(()=>{b&&Ke(b,v,u),Z&&R.enter($),H&&Ct(u,null,v,"mounted")},y)},W=(u,h,g,v,y)=>{if(g&&m(u,g),v)for(let k=0;k<v.length;k++)m(u,v[k]);if(y){let k=y.subTree;if(h===k){const E=y.vnode;W(u,E,E.scopeId,E.slotScopeIds,y.parent)}}},B=(u,h,g,v,y,k,E,_,$=0)=>{for(let b=$;b<u.length;b++){const I=u[b]=_?ht(u[b]):qe(u[b]);x(null,I,h,g,v,y,k,E,_)}},Q=(u,h,g,v,y,k,E)=>{const _=h.el=u.el;let{patchFlag:$,dynamicChildren:b,dirs:I}=h;$|=u.patchFlag&16;const U=u.props||ce,R=h.props||ce;let H;if(g&&$t(g,!1),(H=R.onVnodeBeforeUpdate)&&Ke(H,g,h,u),I&&Ct(h,u,g,"beforeUpdate"),g&&$t(g,!0),b?ae(u.dynamicChildren,b,_,g,v,ir(h,y),k):E||ke(u,h,_,null,g,v,ir(h,y),k,!1),$>0){if($&16)_e(_,h,U,R,g,v,y);else if($&2&&U.class!==R.class&&s(_,"class",null,R.class,y),$&4&&s(_,"style",U.style,R.style,y),$&8){const Z=h.dynamicProps;for(let re=0;re<Z.length;re++){const ue=Z[re],me=U[ue],Ne=R[ue];(Ne!==me||ue==="value")&&s(_,ue,me,Ne,y,u.children,g,v,ze)}}$&1&&u.children!==h.children&&f(_,h.children)}else!E&&b==null&&_e(_,h,U,R,g,v,y);((H=R.onVnodeUpdated)||I)&&Ae(()=>{H&&Ke(H,g,h,u),I&&Ct(h,u,g,"updated")},v)},ae=(u,h,g,v,y,k,E)=>{for(let _=0;_<h.length;_++){const $=u[_],b=h[_],I=$.el&&($.type===oe||!dn($,b)||$.shapeFlag&70)?p($.el):g;x($,b,I,null,v,y,k,E,!0)}},_e=(u,h,g,v,y,k,E)=>{if(g!==v){if(g!==ce)for(const _ in g)!Qt(_)&&!(_ in v)&&s(u,_,g[_],null,E,h.children,y,k,ze);for(const _ in v){if(Qt(_))continue;const $=v[_],b=g[_];$!==b&&_!=="value"&&s(u,_,b,$,E,h.children,y,k,ze)}"value"in v&&s(u,"value",g.value,v.value,E)}},ve=(u,h,g,v,y,k,E,_,$)=>{const b=h.el=u?u.el:o(""),I=h.anchor=u?u.anchor:o("");let{patchFlag:U,dynamicChildren:R,slotScopeIds:H}=h;H&&(_=_?_.concat(H):H),u==null?(i(b,g,v),i(I,g,v),B(h.children||[],g,I,y,k,E,_,$)):U>0&&U&64&&R&&u.dynamicChildren?(ae(u.dynamicChildren,R,g,y,k,E,_),(h.key!=null||y&&h===y.subTree)&&tl(u,h,!0)):ke(u,h,g,I,y,k,E,_,$)},q=(u,h,g,v,y,k,E,_,$)=>{h.slotScopeIds=_,u==null?h.shapeFlag&512?y.ctx.activate(h,g,v,E,$):D(h,g,v,y,k,E,$):ie(u,h,$)},D=(u,h,g,v,y,k,E)=>{const _=u.component=kc(u,v,y);if(qa(u)&&(_.ctx.renderer=Ze),_c(_),_.asyncDep){if(y&&y.registerDep(_,ge),!u.el){const $=_.subTree=se(Et);w(null,$,h,g)}}else ge(_,u,h,g,y,k,E)},ie=(u,h,g)=>{const v=h.component=u.component;if(Pa(u,h,g))if(v.asyncDep&&!v.asyncResolved){de(v,h,g);return}else v.next=h,Sa(v.update),v.effect.dirty=!0,v.update();else h.el=u.el,v.vnode=h},ge=(u,h,g,v,y,k,E)=>{const _=()=>{if(u.isMounted){let{next:I,bu:U,u:R,parent:H,vnode:Z}=u;{const At=nl(u);if(At){I&&(I.el=Z.el,de(u,I,E)),At.asyncDep.then(()=>{u.isUnmounted||_()});return}}let re=I,ue;$t(u,!1),I?(I.el=Z.el,de(u,I,E)):I=Z,U&&zn(U),(ue=I.props&&I.props.onVnodeBeforeUpdate)&&Ke(ue,H,I,Z),$t(u,!0);const me=Qi(u),Ne=u.subTree;u.subTree=me,x(Ne,me,p(Ne.el),vt(Ne),u,y,k),I.el=me.el,re===null&&Fa(u,me.el),R&&Ae(R,y),(ue=I.props&&I.props.onVnodeUpdated)&&Ae(()=>Ke(ue,H,I,Z),y)}else{let I;const{el:U,props:R}=h,{bm:H,m:Z,parent:re}=u,ue=Qn(h);if($t(u,!1),H&&zn(H),!ue&&(I=R&&R.onVnodeBeforeMount)&&Ke(I,re,h),$t(u,!0),U&&A){const me=()=>{u.subTree=Qi(u),A(U,u.subTree,u,y,null)};ue?h.type.__asyncLoader().then(()=>!u.isUnmounted&&me()):me()}else{const me=u.subTree=Qi(u);x(null,me,g,v,u,y,k),h.el=me.el}if(Z&&Ae(Z,y),!ue&&(I=R&&R.onVnodeMounted)){const me=h;Ae(()=>Ke(I,re,me),y)}(h.shapeFlag&256||re&&Qn(re.vnode)&&re.vnode.shapeFlag&256)&&u.a&&Ae(u.a,y),u.isMounted=!0,h=g=v=null}},$=u.effect=new ji(_,Qe,()=>Gi(b),u.scope),b=u.update=()=>{$.dirty&&$.run()};b.id=u.uid,$t(u,!0),b()},de=(u,h,g)=>{h.component=u;const v=u.vnode.props;u.vnode=h,u.next=null,rc(u,h.props,v,g),ac(u,h.children,g),jt(),Ms(u),Pt()},ke=(u,h,g,v,y,k,E,_,$=!1)=>{const b=u&&u.children,I=u?u.shapeFlag:0,U=h.children,{patchFlag:R,shapeFlag:H}=h;if(R>0){if(R&128){rt(b,U,g,v,y,k,E,_,$);return}else if(R&256){ye(b,U,g,v,y,k,E,_,$);return}}H&8?(I&16&&ze(b,y,k),U!==b&&f(g,U)):I&16?H&16?rt(b,U,g,v,y,k,E,_,$):ze(b,y,k,!0):(I&8&&f(g,""),H&16&&B(U,g,v,y,k,E,_,$))},ye=(u,h,g,v,y,k,E,_,$)=>{u=u||Lt,h=h||Lt;const b=u.length,I=h.length,U=Math.min(b,I);let R;for(R=0;R<U;R++){const H=h[R]=$?ht(h[R]):qe(h[R]);x(u[R],H,g,null,y,k,E,_,$)}b>I?ze(u,y,k,!0,!1,U):B(h,g,v,y,k,E,_,$,U)},rt=(u,h,g,v,y,k,E,_,$)=>{let b=0;const I=h.length;let U=u.length-1,R=I-1;for(;b<=U&&b<=R;){const H=u[b],Z=h[b]=$?ht(h[b]):qe(h[b]);if(dn(H,Z))x(H,Z,g,null,y,k,E,_,$);else break;b++}for(;b<=U&&b<=R;){const H=u[U],Z=h[R]=$?ht(h[R]):qe(h[R]);if(dn(H,Z))x(H,Z,g,null,y,k,E,_,$);else break;U--,R--}if(b>U){if(b<=R){const H=R+1,Z=H<I?h[H].el:v;for(;b<=R;)x(null,h[b]=$?ht(h[b]):qe(h[b]),g,Z,y,k,E,_,$),b++}}else if(b>R)for(;b<=U;)Oe(u[b],y,k,!0),b++;else{const H=b,Z=b,re=new Map;for(b=Z;b<=R;b++){const Ie=h[b]=$?ht(h[b]):qe(h[b]);Ie.key!=null&&re.set(Ie.key,b)}let ue,me=0;const Ne=R-Z+1;let At=!1,$r=0;const Kt=new Array(Ne);for(b=0;b<Ne;b++)Kt[b]=0;for(b=H;b<=U;b++){const Ie=u[b];if(me>=Ne){Oe(Ie,y,k,!0);continue}let De;if(Ie.key!=null)De=re.get(Ie.key);else for(ue=Z;ue<=R;ue++)if(Kt[ue-Z]===0&&dn(Ie,h[ue])){De=ue;break}De===void 0?Oe(Ie,y,k,!0):(Kt[De-Z]=b+1,De>=$r?$r=De:At=!0,x(Ie,h[De],g,null,y,k,E,_,$),me++)}const Er=At?dc(Kt):Lt;for(ue=Er.length-1,b=Ne-1;b>=0;b--){const Ie=Z+b,De=h[Ie],Tr=Ie+1<I?h[Ie+1].el:v;Kt[b]===0?x(null,De,g,Tr,y,k,E,_,$):At&&(ue<0||b!==Er[ue]?mt(De,g,Tr,2):ue--)}}},mt=(u,h,g,v,y=null)=>{const{el:k,type:E,transition:_,children:$,shapeFlag:b}=u;if(b&6){mt(u.component.subTree,h,g,v);return}if(b&128){u.suspense.move(h,g,v);return}if(b&64){E.move(