@waline/client 2.11.2 → 2.11.3
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.cjs +1 -1
- package/dist/comment.cjs.map +1 -1
- package/dist/comment.js +1 -1
- package/dist/comment.js.map +1 -1
- package/dist/comment.mjs +1 -1
- package/dist/comment.mjs.map +1 -1
- package/dist/component.mjs +1 -1
- package/dist/component.mjs.map +1 -1
- package/dist/legacy.umd.d.ts +57 -30
- package/dist/legacy.umd.js +1 -1
- package/dist/legacy.umd.js.map +1 -1
- package/dist/pageview.cjs +1 -1
- package/dist/pageview.cjs.map +1 -1
- package/dist/pageview.js +1 -1
- package/dist/pageview.js.map +1 -1
- package/dist/pageview.mjs +1 -1
- package/dist/pageview.mjs.map +1 -1
- package/dist/shim.cjs +1 -1
- package/dist/shim.cjs.map +1 -1
- package/dist/shim.d.cts +58 -31
- package/dist/shim.d.mts +58 -31
- package/dist/shim.mjs +1 -1
- package/dist/shim.mjs.map +1 -1
- package/dist/waline.cjs +1 -1
- package/dist/waline.cjs.map +1 -1
- package/dist/waline.d.cts +58 -31
- package/dist/waline.d.mts +58 -31
- package/dist/waline.d.ts +58 -31
- package/dist/waline.js +1 -1
- package/dist/waline.js.map +1 -1
- package/dist/waline.mjs +1 -1
- package/dist/waline.mjs.map +1 -1
- package/package.json +1 -1
- package/src/compact/convert.ts +2 -2
- package/src/components/ArticleReaction.vue +36 -24
- package/src/components/CommentBox.vue +1 -1
- package/src/components/ImageWall.vue +1 -1
- package/src/composables/vote.ts +5 -2
- package/src/typings/base.ts +33 -7
- package/src/typings/locale.ts +37 -23
- package/src/utils/config.ts +8 -2
package/dist/waline.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=["nick","mail","link"],t=t=>t.filter((t=>e.includes(t))),n=e=>new Promise(((t,n)=>{if(e.size>128e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result?.toString()||""),r.onerror=n})),r=e=>!0===e?'<p class="wl-tex">Tex is not available in preview</p>':'<span class="wl-tex">Tex is not available in preview</span>',i=()=>{const e={next:""},t=({keyword:e,pos:t})=>{const n=new URLSearchParams("media_filter=minimal");return n.set("key","PAY5JLFIH6V6"),n.set("limit","20"),n.set("pos",t||""),n.set("q",e),fetch(`https://g.tenor.com/v1/search?${n.toString()}`,{headers:{"Content-Type":"application/json"}}).then((e=>e.json())).catch((()=>({next:t||"",results:[]})))};return{search:(n="")=>t({keyword:n}).then((t=>(e.next=t.next,t.results.map((e=>({title:e.title,src:e.media[0].tinygif.url})))))),more:n=>t({keyword:n,pos:e.next}).then((t=>(e.next=t.next,t.results.map((e=>({title:e.title,src:e.media[0].tinygif.url}))))))}},o=["//unpkg.com/@waline/emojis/tieba/tieba_agree.png","//unpkg.com/@waline/emojis/tieba/tieba_look_down.png","//unpkg.com/@waline/emojis/tieba/tieba_sunglasses.png","//unpkg.com/@waline/emojis/tieba/tieba_pick_nose.png","//unpkg.com/@waline/emojis/tieba/tieba_awkward.png","//unpkg.com/@waline/emojis/tieba/tieba_sleep.png"],l=new RegExp(`(${/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source}|${/</.source})|((?:${/(?:^|\s)\/\/(.+?)$/gm.source})|(?:${/\/\*([\S\s]*?)\*\//gm.source}))`,"gmi"),s=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],a={},c=e=>{let t=0;return e.replace(l,((e,n,r)=>{if(r)return`<span style="color: slategray">${r}</span>`;if("<"===n)return"<";let i;a[n]?i=a[n]:(i=s[t],a[n]=i);const o=`<span style="color: #${i}">${n}</span>`;return t=++t%s.length,o}))},u=["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"],p=e=>Object.fromEntries(e.map(((e,t)=>[u[t],e])));var d=p(["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!\n 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?"]),h=p(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),f=p(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),g=p(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎評論","來發評論吧~","提交","喜歡","取消喜歡","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字","評論字數應在 $0 到 $1 字之間!\n當前字數:$2","匿名","潛水","冒泡","吐槽","活躍","話癆","傳說","表情包","搜索表情包","個人資料","通過","待審核","垃圾","取消置頂","按倒序","按正序","按熱度","你認為這篇文章怎麼樣?"]),m=p(["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 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?"]),v=p(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова","Пожалуйста, введите комментарии от $0 до $1 слов!\nНомер текущего слова: $2","Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]);const y={zh:f,"zh-cn":f,"zh-CN":f,"zh-tw":g,"zh-TW":g,en:d,"en-US":d,"en-us":d,jp:h,"jp-jp":h,"jp-JP":h,"pt-br":m,"pt-BR":m,ru:v,"ru-ru":v,"ru-RU":v},w={"Content-Type":"application/json"},b=(e,t="")=>{if("object"==typeof e&&e.errno)throw new TypeError(`Fetch ${t} failed with ${e.errno}: ${e.errmsg}`);return e},k=({serverURL:e,lang:t,paths:n,type:r,signal:i})=>fetch(`${e}/article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:i}).then((e=>e.json())).then((e=>b(e,"article count"))),x=({serverURL:e,lang:t,path:n,type:r,action:i})=>fetch(`${e}/article?lang=${t}`,{method:"POST",headers:w,body:JSON.stringify({path:n,type:r,action:i})}).then((e=>e.json())).then((e=>b(e,"article count"))),_=({serverURL:e,lang:t,token:n,objectId:r,...i})=>fetch(`${e}/comment/${r}?lang=${t}`,{method:"PUT",headers:{...w,Authorization:`Bearer ${n}`},body:JSON.stringify(i)}).then((e=>e.json())),C=e=>{try{e=decodeURI(e)}catch(e){}return e},S=(e="")=>e.replace(/\/$/u,""),$=e=>/^(https?:)?\/\//.test(e),I=e=>{const t=S(e);return $(t)?t:`https://${t}`},E=e=>Array.isArray(e)?e:!!e&&[0,e],R=(e,t)=>"function"==typeof e?e:!1!==e&&t,L="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-color:#888;--waline-bgcolor:#1e1e1e;--waline-bgcolor-light:#272727;--waline-bgcolor-hover: #444;--waline-border-color:#333;--waline-disable-bgcolor:#444;--waline-disable-color:#272727;--waline-bq-color:#272727;--waline-info-bgcolor:#272727;--waline-info-color:#666}",A=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},z=(e,t,n)=>{if(!e)return"";const r="string"==typeof e?new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e):e,i=t.getTime()-r.getTime(),o=Math.floor(i/864e5);if(0===o){const e=i%864e5,t=Math.floor(e/36e5);if(0===t){const t=e%36e5,r=Math.floor(t/6e4);if(0===r){const e=t%6e4;return`${Math.round(e/1e3)} ${n.seconds}`}return`${r} ${n.minutes}`}return`${t} ${n.hours}`}return o<0?n.now:o<8?`${o} ${n.days}`:(e=>{const t=A(e.getDate(),2),n=A(e.getMonth()+1,2);return`${A(e.getFullYear(),2)}-${n}-${t}`})(r)};function O(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const j=O("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function T(e){return!!e||""===e}function P(e){if(ne(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=se(r)?N(r):P(r);if(i)for(const e in i)t[e]=i[e]}return t}return se(e)||ce(e)?e:void 0}const U=/;(?![^(]*\))/g,M=/:(.+)/;function N(e){const t={};return e.split(U).forEach((e=>{if(e){const n=e.split(M);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function F(e){let t="";if(se(e))t=e;else if(ne(e))for(let n=0;n<e.length;n++){const r=F(e[n]);r&&(t+=r+" ")}else if(ce(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function D(e,t){if(e===t)return!0;let n=oe(e),r=oe(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=ae(e),r=ae(t),n||r)return e===t;if(n=ne(e),r=ne(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=D(e[r],t[r]);return n}(e,t);if(n=ce(e),r=ce(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!D(e[n],t[n]))return!1}}return String(e)===String(t)}function V(e,t){return e.findIndex((e=>D(e,t)))}const B=e=>se(e)?e:null==e?"":ne(e)||ce(e)&&(e.toString===pe||!le(e.toString))?JSON.stringify(e,H,2):String(e),H=(e,t)=>t&&t.__v_isRef?H(e,t.value):re(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:ie(t)?{[`Set(${t.size})`]:[...t.values()]}:!ce(t)||ne(t)||he(t)?t:String(t),W={},q=[],Z=()=>{},G=()=>!1,K=/^on[^a-z]/,Q=e=>K.test(e),J=e=>e.startsWith("onUpdate:"),Y=Object.assign,X=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ee=Object.prototype.hasOwnProperty,te=(e,t)=>ee.call(e,t),ne=Array.isArray,re=e=>"[object Map]"===de(e),ie=e=>"[object Set]"===de(e),oe=e=>"[object Date]"===de(e),le=e=>"function"==typeof e,se=e=>"string"==typeof e,ae=e=>"symbol"==typeof e,ce=e=>null!==e&&"object"==typeof e,ue=e=>ce(e)&&le(e.then)&&le(e.catch),pe=Object.prototype.toString,de=e=>pe.call(e),he=e=>"[object Object]"===de(e),fe=e=>se(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,ge=O(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),me=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ve=/-(\w)/g,ye=me((e=>e.replace(ve,((e,t)=>t?t.toUpperCase():"")))),we=/\B([A-Z])/g,be=me((e=>e.replace(we,"-$1").toLowerCase())),ke=me((e=>e.charAt(0).toUpperCase()+e.slice(1))),xe=me((e=>e?`on${ke(e)}`:"")),_e=(e,t)=>!Object.is(e,t),Ce=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Se=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},$e=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ie;let Ee;class Re{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&Ee&&(this.parent=Ee,this.index=(Ee.scopes||(Ee.scopes=[])).push(this)-1)}run(e){if(this.active){const t=Ee;try{return Ee=this,e()}finally{Ee=t}}}on(){Ee=this}off(){Ee=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}const Le=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Ae=e=>(e.w&Te)>0,ze=e=>(e.n&Te)>0,Oe=new WeakMap;let je=0,Te=1;let Pe;const Ue=Symbol(""),Me=Symbol("");class Ne{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=Ee){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=Pe,t=De;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Pe,Pe=this,De=!0,Te=1<<++je,je<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Te})(this):Fe(this),this.fn()}finally{je<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const i=t[r];Ae(i)&&!ze(i)?i.delete(e):t[n++]=i,i.w&=~Te,i.n&=~Te}t.length=n}})(this),Te=1<<--je,Pe=this.parent,De=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Pe===this?this.deferStop=!0:this.active&&(Fe(this),this.onStop&&this.onStop(),this.active=!1)}}function Fe(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let De=!0;const Ve=[];function Be(){Ve.push(De),De=!1}function He(){const e=Ve.pop();De=void 0===e||e}function We(e,t,n){if(De&&Pe){let t=Oe.get(e);t||Oe.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=Le()),qe(r)}}function qe(e,t){let n=!1;je<=30?ze(e)||(e.n|=Te,n=!Ae(e)):n=!e.has(Pe),n&&(e.add(Pe),Pe.deps.push(e))}function Ze(e,t,n,r,i,o){const l=Oe.get(e);if(!l)return;let s=[];if("clear"===t)s=[...l.values()];else if("length"===n&&ne(e))l.forEach(((e,t)=>{("length"===t||t>=r)&&s.push(e)}));else switch(void 0!==n&&s.push(l.get(n)),t){case"add":ne(e)?fe(n)&&s.push(l.get("length")):(s.push(l.get(Ue)),re(e)&&s.push(l.get(Me)));break;case"delete":ne(e)||(s.push(l.get(Ue)),re(e)&&s.push(l.get(Me)));break;case"set":re(e)&&s.push(l.get(Ue))}if(1===s.length)s[0]&&Ge(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);Ge(Le(e))}}function Ge(e,t){const n=ne(e)?e:[...e];for(const e of n)e.computed&&Ke(e);for(const e of n)e.computed||Ke(e)}function Ke(e,t){(e!==Pe||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Qe=O("__proto__,__v_isRef,__isVue"),Je=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(ae)),Ye=rt(),Xe=rt(!1,!0),et=rt(!0),tt=nt();function nt(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Dt(this);for(let e=0,t=this.length;e<t;e++)We(n,0,e+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(Dt)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){Be();const n=Dt(this)[t].apply(this,e);return He(),n}})),e}function rt(e=!1,t=!1){return function(n,r,i){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&i===(e?t?zt:At:t?Lt:Rt).get(n))return n;const o=ne(n);if(!e&&o&&te(tt,r))return Reflect.get(tt,r,i);const l=Reflect.get(n,r,i);return(ae(r)?Je.has(r):Qe(r))?l:(e||We(n,0,r),t?l:Zt(l)?o&&fe(r)?l:l.value:ce(l)?e?Tt(l):jt(l):l)}}function it(e=!1){return function(t,n,r,i){let o=t[n];if(Mt(o)&&Zt(o)&&!Zt(r))return!1;if(!e&&(Nt(r)||Mt(r)||(o=Dt(o),r=Dt(r)),!ne(t)&&Zt(o)&&!Zt(r)))return o.value=r,!0;const l=ne(t)&&fe(n)?Number(n)<t.length:te(t,n),s=Reflect.set(t,n,r,i);return t===Dt(i)&&(l?_e(r,o)&&Ze(t,"set",n,r):Ze(t,"add",n,r)),s}}const ot={get:Ye,set:it(),deleteProperty:function(e,t){const n=te(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&Ze(e,"delete",t,void 0),r},has:function(e,t){const n=Reflect.has(e,t);return ae(t)&&Je.has(t)||We(e,0,t),n},ownKeys:function(e){return We(e,0,ne(e)?"length":Ue),Reflect.ownKeys(e)}},lt={get:et,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},st=Y({},ot,{get:Xe,set:it(!0)}),at=e=>e,ct=e=>Reflect.getPrototypeOf(e);function ut(e,t,n=!1,r=!1){const i=Dt(e=e.__v_raw),o=Dt(t);n||(t!==o&&We(i,0,t),We(i,0,o));const{has:l}=ct(i),s=r?at:n?Ht:Bt;return l.call(i,t)?s(e.get(t)):l.call(i,o)?s(e.get(o)):void(e!==i&&e.get(t))}function pt(e,t=!1){const n=this.__v_raw,r=Dt(n),i=Dt(e);return t||(e!==i&&We(r,0,e),We(r,0,i)),e===i?n.has(e):n.has(e)||n.has(i)}function dt(e,t=!1){return e=e.__v_raw,!t&&We(Dt(e),0,Ue),Reflect.get(e,"size",e)}function ht(e){e=Dt(e);const t=Dt(this);return ct(t).has.call(t,e)||(t.add(e),Ze(t,"add",e,e)),this}function ft(e,t){t=Dt(t);const n=Dt(this),{has:r,get:i}=ct(n);let o=r.call(n,e);o||(e=Dt(e),o=r.call(n,e));const l=i.call(n,e);return n.set(e,t),o?_e(t,l)&&Ze(n,"set",e,t):Ze(n,"add",e,t),this}function gt(e){const t=Dt(this),{has:n,get:r}=ct(t);let i=n.call(t,e);i||(e=Dt(e),i=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return i&&Ze(t,"delete",e,void 0),o}function mt(){const e=Dt(this),t=0!==e.size,n=e.clear();return t&&Ze(e,"clear",void 0,void 0),n}function vt(e,t){return function(n,r){const i=this,o=i.__v_raw,l=Dt(o),s=t?at:e?Ht:Bt;return!e&&We(l,0,Ue),o.forEach(((e,t)=>n.call(r,s(e),s(t),i)))}}function yt(e,t,n){return function(...r){const i=this.__v_raw,o=Dt(i),l=re(o),s="entries"===e||e===Symbol.iterator&&l,a="keys"===e&&l,c=i[e](...r),u=n?at:t?Ht:Bt;return!t&&We(o,0,a?Me:Ue),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function wt(e){return function(...t){return"delete"!==e&&this}}function bt(){const e={get(e){return ut(this,e)},get size(){return dt(this)},has:pt,add:ht,set:ft,delete:gt,clear:mt,forEach:vt(!1,!1)},t={get(e){return ut(this,e,!1,!0)},get size(){return dt(this)},has:pt,add:ht,set:ft,delete:gt,clear:mt,forEach:vt(!1,!0)},n={get(e){return ut(this,e,!0)},get size(){return dt(this,!0)},has(e){return pt.call(this,e,!0)},add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear"),forEach:vt(!0,!1)},r={get(e){return ut(this,e,!0,!0)},get size(){return dt(this,!0)},has(e){return pt.call(this,e,!0)},add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear"),forEach:vt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{e[i]=yt(i,!1,!1),n[i]=yt(i,!0,!1),t[i]=yt(i,!1,!0),r[i]=yt(i,!0,!0)})),[e,n,t,r]}const[kt,xt,_t,Ct]=bt();function St(e,t){const n=t?e?Ct:_t:e?xt:kt;return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(te(n,r)&&r in t?n:t,r,i)}const $t={get:St(!1,!1)},It={get:St(!1,!0)},Et={get:St(!0,!1)},Rt=new WeakMap,Lt=new WeakMap,At=new WeakMap,zt=new WeakMap;function Ot(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>de(e).slice(8,-1))(e))}function jt(e){return Mt(e)?e:Pt(e,!1,ot,$t,Rt)}function Tt(e){return Pt(e,!0,lt,Et,At)}function Pt(e,t,n,r,i){if(!ce(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const l=Ot(e);if(0===l)return e;const s=new Proxy(e,2===l?r:n);return i.set(e,s),s}function Ut(e){return Mt(e)?Ut(e.__v_raw):!(!e||!e.__v_isReactive)}function Mt(e){return!(!e||!e.__v_isReadonly)}function Nt(e){return!(!e||!e.__v_isShallow)}function Ft(e){return Ut(e)||Mt(e)}function Dt(e){const t=e&&e.__v_raw;return t?Dt(t):e}function Vt(e){return Se(e,"__v_skip",!0),e}const Bt=e=>ce(e)?jt(e):e,Ht=e=>ce(e)?Tt(e):e;function Wt(e){De&&Pe&&qe((e=Dt(e)).dep||(e.dep=Le()))}function qt(e,t){(e=Dt(e)).dep&&Ge(e.dep)}function Zt(e){return!(!e||!0!==e.__v_isRef)}function Gt(e){return Qt(e,!1)}function Kt(e){return Qt(e,!0)}function Qt(e,t){return Zt(e)?e:new Jt(e,t)}class Jt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Dt(e),this._value=t?e:Bt(e)}get value(){return Wt(this),this._value}set value(e){const t=this.__v_isShallow||Nt(e)||Mt(e);e=t?e:Dt(e),_e(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Bt(e),qt(this))}}function Yt(e){return Zt(e)?e.value:e}const Xt={get:(e,t,n)=>Yt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Zt(i)&&!Zt(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function en(e){return Ut(e)?e:new Proxy(e,Xt)}var tn;class nn{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[tn]=!1,this._dirty=!0,this.effect=new Ne(e,(()=>{this._dirty||(this._dirty=!0,qt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=Dt(this);return Wt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function rn(e,t,n,r){let i;try{i=r?e(...r):e()}catch(e){ln(e,t,n)}return i}function on(e,t,n,r){if(le(e)){const i=rn(e,t,n,r);return i&&ue(i)&&i.catch((e=>{ln(e,t,n)})),i}const i=[];for(let o=0;o<e.length;o++)i.push(on(e[o],t,n,r));return i}function ln(e,t,n,r=!0){t&&t.vnode;if(t){let r=t.parent;const i=t.proxy,o=n;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,i,o))return;r=r.parent}const l=t.appContext.config.errorHandler;if(l)return void rn(l,null,10,[e,i,o])}!function(e,t,n,r=!0){console.error(e)}(e,0,0,r)}tn="__v_isReadonly";let sn=!1,an=!1;const cn=[];let un=0;const pn=[];let dn=null,hn=0;const fn=Promise.resolve();let gn=null;function mn(e){const t=gn||fn;return e?t.then(this?e.bind(this):e):t}function vn(e){cn.length&&cn.includes(e,sn&&e.allowRecurse?un+1:un)||(null==e.id?cn.push(e):cn.splice(function(e){let t=un+1,n=cn.length;for(;t<n;){const r=t+n>>>1;kn(cn[r])<e?t=r+1:n=r}return t}(e.id),0,e),yn())}function yn(){sn||an||(an=!0,gn=fn.then(_n))}function wn(e,t=(sn?un+1:0)){for(;t<cn.length;t++){const e=cn[t];e&&e.pre&&(cn.splice(t,1),t--,e())}}function bn(e){if(pn.length){const e=[...new Set(pn)];if(pn.length=0,dn)return void dn.push(...e);for(dn=e,dn.sort(((e,t)=>kn(e)-kn(t))),hn=0;hn<dn.length;hn++)dn[hn]();dn=null,hn=0}}const kn=e=>null==e.id?1/0:e.id,xn=(e,t)=>{const n=kn(e)-kn(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function _n(e){an=!1,sn=!0,cn.sort(xn);try{for(un=0;un<cn.length;un++){const e=cn[un];e&&!1!==e.active&&rn(e,null,14)}}finally{un=0,cn.length=0,bn(),sn=!1,gn=null,(cn.length||pn.length)&&_n()}}function Cn(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||W;let i=n;const o=t.startsWith("update:"),l=o&&t.slice(7);if(l&&l in r){const e=`${"modelValue"===l?"model":l}Modifiers`,{number:t,trim:o}=r[e]||W;o&&(i=n.map((e=>e.trim()))),t&&(i=n.map($e))}let s,a=r[s=xe(t)]||r[s=xe(ye(t))];!a&&o&&(a=r[s=xe(be(t))]),a&&on(a,e,6,i);const c=r[s+"Once"];if(c){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,on(c,e,6,i)}}function Sn(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const o=e.emits;let l={};return o?(ne(o)?o.forEach((e=>l[e]=null)):Y(l,o),ce(e)&&r.set(e,l),l):(ce(e)&&r.set(e,null),null)}function $n(e,t){return!(!e||!Q(t))&&(t=t.slice(2).replace(/Once$/,""),te(e,t[0].toLowerCase()+t.slice(1))||te(e,be(t))||te(e,t))}let In=null,En=null;function Rn(e){const t=In;return In=e,En=e&&e.type.__scopeId||null,t}function Ln(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:o,propsOptions:[l],slots:s,attrs:a,emit:c,render:u,renderCache:p,data:d,setupState:h,ctx:f,inheritAttrs:g}=e;let m,v;const y=Rn(e);try{if(4&n.shapeFlag){const e=i||r;m=Hr(u.call(e,e,p,o,h,d,f)),v=a}else{const e=t;m=Hr(e.length>1?e(o,{attrs:a,slots:s,emit:c}):e(o,null)),v=t.props?a:An(a)}}catch(t){$r.length=0,ln(t,e,1),m=Fr(Cr)}let w=m;if(v&&!1!==g){const e=Object.keys(v),{shapeFlag:t}=w;e.length&&7&t&&(l&&e.some(J)&&(v=zn(v,l)),w=Dr(w,v))}return n.dirs&&(w=Dr(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),m=w,Rn(y),m}const An=e=>{let t;for(const n in e)("class"===n||"style"===n||Q(n))&&((t||(t={}))[n]=e[n]);return t},zn=(e,t)=>{const n={};for(const r in e)J(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function On(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(t[o]!==e[o]&&!$n(n,o))return!0}return!1}function jn(e,t,n=!1){const r=Qr||In;if(r){const i=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&le(t)?t.call(r.proxy):t}}function Tn(e,t){return Mn(e,null,t)}const Pn={};function Un(e,t,n){return Mn(e,t,n)}function Mn(e,t,{immediate:n,deep:r,flush:i,onTrack:o,onTrigger:l}=W){const s=Qr;let a,c,u=!1,p=!1;if(Zt(e)?(a=()=>e.value,u=Nt(e)):Ut(e)?(a=()=>e,r=!0):ne(e)?(p=!0,u=e.some((e=>Ut(e)||Nt(e))),a=()=>e.map((e=>Zt(e)?e.value:Ut(e)?Nn(e):le(e)?rn(e,s,2):void 0))):a=le(e)?t?()=>rn(e,s,2):()=>{if(!s||!s.isUnmounted)return c&&c(),on(e,s,3,[d])}:Z,t&&r){const e=a;a=()=>Nn(e())}let d=e=>{c=m.onStop=()=>{rn(e,s,4)}};if(ei)return d=Z,t?n&&on(t,s,3,[a(),p?[]:void 0,d]):a(),Z;let h=p?[]:Pn;const f=()=>{if(m.active)if(t){const e=m.run();(r||u||(p?e.some(((e,t)=>_e(e,h[t]))):_e(e,h)))&&(c&&c(),on(t,s,3,[e,h===Pn?void 0:h,d]),h=e)}else m.run()};let g;f.allowRecurse=!!t,"sync"===i?g=f:"post"===i?g=()=>yr(f,s&&s.suspense):(f.pre=!0,s&&(f.id=s.uid),g=()=>vn(f));const m=new Ne(a,g);return t?n?f():h=m.run():"post"===i?yr(m.run.bind(m),s&&s.suspense):m.run(),()=>{m.stop(),s&&s.scope&&X(s.scope.effects,m)}}function Nn(e,t){if(!ce(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),Zt(e))Nn(e.value,t);else if(ne(e))for(let n=0;n<e.length;n++)Nn(e[n],t);else if(ie(e)||re(e))e.forEach((e=>{Nn(e,t)}));else if(he(e))for(const n in e)Nn(e[n],t);return e}function Fn(e){return le(e)?{setup:e,name:e.name}:e}const Dn=e=>!!e.type.__asyncLoader;const Vn=e=>(t,n=Qr)=>(!ei||"sp"===e)&&function(e,t,n=Qr,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;Be(),Jr(n);const i=on(t,n,e,r);return Yr(),He(),i});return r?i.unshift(o):i.push(o),o}}(e,t,n),Bn=Vn("m"),Hn=Vn("bum"),Wn=Vn("um");function qn(e,t){const n=In;if(null===n)return e;const r=ri(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[n,o,l,s=W]=t[e];le(n)&&(n={mounted:n,updated:n}),n.deep&&Nn(o),i.push({dir:n,instance:r,value:o,oldValue:void 0,arg:l,modifiers:s})}return e}function Zn(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let l=0;l<i.length;l++){const s=i[l];o&&(s.oldValue=o[l].value);let a=s.dir[r];a&&(Be(),on(a,n,8,[e.el,s,e,t]),He())}}function Gn(e,t){return function(e,t,n=!0,r=!1){const i=In||Qr;if(i){const n=i.type;if("components"===e){const e=function(e,t=!0){return le(e)?e.displayName||e.name:e.name||t&&e.__name}(n,!1);if(e&&(e===t||e===ye(t)||e===ke(ye(t))))return n}const o=Qn(i[e]||n[e],t)||Qn(i.appContext[e],t);return!o&&r?n:o}}("components",e,!0,t)||e}const Kn=Symbol();function Qn(e,t){return e&&(e[t]||e[ye(t)]||e[ke(ye(t))])}function Jn(e,t,n,r){let i;const o=n&&n[r];if(ne(e)||se(e)){i=new Array(e.length);for(let n=0,r=e.length;n<r;n++)i[n]=t(e[n],n,void 0,o&&o[n])}else if("number"==typeof e){i=new Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,o&&o[n])}else if(ce(e))if(e[Symbol.iterator])i=Array.from(e,((e,n)=>t(e,n,void 0,o&&o[n])));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,l=n.length;r<l;r++){const l=n[r];i[r]=t(e[l],l,r,o&&o[r])}}else i=[];return n&&(n[r]=i),i}const Yn=e=>e?Xr(e)?ri(e)||e.proxy:Yn(e.parent):null,Xn=Y(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=>Yn(e.parent),$root:e=>Yn(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>vn(e.update)),$nextTick:e=>e.n||(e.n=mn.bind(e.proxy)),$watch:e=>Z}),er={get({_:e},t){const{ctx:n,setupState:r,data:i,props:o,accessCache:l,type:s,appContext:a}=e;let c;if("$"!==t[0]){const s=l[t];if(void 0!==s)switch(s){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(r!==W&&te(r,t))return l[t]=1,r[t];if(i!==W&&te(i,t))return l[t]=2,i[t];if((c=e.propsOptions[0])&&te(c,t))return l[t]=3,o[t];if(n!==W&&te(n,t))return l[t]=4,n[t];l[t]=0}}const u=Xn[t];let p,d;return u?("$attrs"===t&&We(e,0,t),u(e)):(p=s.__cssModules)&&(p=p[t])?p:n!==W&&te(n,t)?(l[t]=4,n[t]):(d=a.config.globalProperties,te(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return i!==W&&te(i,t)?(i[t]=n,!0):r!==W&&te(r,t)?(r[t]=n,!0):!te(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(o[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:o}},l){let s;return!!n[l]||e!==W&&te(e,l)||t!==W&&te(t,l)||(s=o[0])&&te(s,l)||te(r,l)||te(Xn,l)||te(i.config.globalProperties,l)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:te(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function tr(e,t,n,r=!1){const i={},o={};Se(o,Pr,1),e.propsDefaults=Object.create(null),nr(e,t,i,o);for(const t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:Pt(i,!1,st,It,Lt):e.type.props?e.props=i:e.props=o,e.attrs=o}function nr(e,t,n,r){const[i,o]=e.propsOptions;let l,s=!1;if(t)for(let a in t){if(ge(a))continue;const c=t[a];let u;i&&te(i,u=ye(a))?o&&o.includes(u)?(l||(l={}))[u]=c:n[u]=c:$n(e.emitsOptions,a)||a in r&&c===r[a]||(r[a]=c,s=!0)}if(o){const t=Dt(n),r=l||W;for(let l=0;l<o.length;l++){const s=o[l];n[s]=rr(i,t,s,r[s],e,!te(r,s))}}return s}function rr(e,t,n,r,i,o){const l=e[n];if(null!=l){const e=te(l,"default");if(e&&void 0===r){const e=l.default;if(l.type!==Function&&le(e)){const{propsDefaults:o}=i;n in o?r=o[n]:(Jr(i),r=o[n]=e.call(null,t),Yr())}else r=e}l[0]&&(o&&!e?r=!1:!l[1]||""!==r&&r!==be(n)||(r=!0))}return r}function ir(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const o=e.props,l={},s=[];if(!o)return ce(e)&&r.set(e,q),q;if(ne(o))for(let e=0;e<o.length;e++){const t=ye(o[e]);or(t)&&(l[t]=W)}else if(o)for(const e in o){const t=ye(e);if(or(t)){const n=o[e],r=l[t]=ne(n)||le(n)?{type:n}:n;if(r){const e=ar(Boolean,r.type),n=ar(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||te(r,"default"))&&s.push(t)}}}const a=[l,s];return ce(e)&&r.set(e,a),a}function or(e){return"$"!==e[0]}function lr(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function sr(e,t){return lr(e)===lr(t)}function ar(e,t){return ne(t)?t.findIndex((t=>sr(t,e))):le(t)&&sr(t,e)?0:-1}const cr=e=>"_"===e[0]||"$stable"===e,ur=e=>ne(e)?e.map(Hr):[Hr(e)],pr=(e,t,n)=>{if(t._n)return t;const r=function(e,t=In,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Lr(-1);const i=Rn(t),o=e(...n);return Rn(i),r._d&&Lr(1),o};return r._n=!0,r._c=!0,r._d=!0,r}(((...e)=>ur(t(...e))),n);return r._c=!1,r},dr=(e,t,n)=>{const r=e._ctx;for(const n in e){if(cr(n))continue;const i=e[n];if(le(i))t[n]=pr(0,i,r);else if(null!=i){const e=ur(i);t[n]=()=>e}}},hr=(e,t)=>{const n=ur(t);e.slots.default=()=>n};function fr(){return{app:null,config:{isNativeTag:G,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 gr=0;function mr(e,t){return function(n,r=null){le(n)||(n=Object.assign({},n)),null==r||ce(r)||(r=null);const i=fr(),o=new Set;let l=!1;const s=i.app={_uid:gr++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:li,get config(){return i.config},set config(e){},use:(e,...t)=>(o.has(e)||(e&&le(e.install)?(o.add(e),e.install(s,...t)):le(e)&&(o.add(e),e(s,...t))),s),mixin:e=>s,component:(e,t)=>t?(i.components[e]=t,s):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,s):i.directives[e],mount(o,a,c){if(!l){const u=Fr(n,r);return u.appContext=i,a&&t?t(u,o):e(u,o,c),l=!0,s._container=o,o.__vue_app__=s,ri(u.component)||u.component.proxy}},unmount(){l&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,s)};return s}}function vr(e,t,n,r,i=!1){if(ne(e))return void e.forEach(((e,o)=>vr(e,t&&(ne(t)?t[o]:t),n,r,i)));if(Dn(r)&&!i)return;const o=4&r.shapeFlag?ri(r.component)||r.component.proxy:r.el,l=i?null:o,{i:s,r:a}=e,c=t&&t.r,u=s.refs===W?s.refs={}:s.refs,p=s.setupState;if(null!=c&&c!==a&&(se(c)?(u[c]=null,te(p,c)&&(p[c]=null)):Zt(c)&&(c.value=null)),le(a))rn(a,s,12,[l,u]);else{const t=se(a),r=Zt(a);if(t||r){const s=()=>{if(e.f){const n=t?u[a]:a.value;i?ne(n)&&X(n,o):ne(n)?n.includes(o)||n.push(o):t?(u[a]=[o],te(p,a)&&(p[a]=u[a])):(a.value=[o],e.k&&(u[e.k]=a.value))}else t?(u[a]=l,te(p,a)&&(p[a]=l)):r&&(a.value=l,e.k&&(u[e.k]=l))};l?(s.id=-1,yr(s,n)):s()}}}const yr=function(e,t){var n;t&&t.pendingBranch?ne(e)?t.effects.push(...e):t.effects.push(e):(ne(n=e)?pn.push(...n):dn&&dn.includes(n,n.allowRecurse?hn+1:hn)||pn.push(n),yn())};function wr(e){return function(e,t){(Ie||(Ie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})).__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:o,createText:l,createComment:s,setText:a,setElementText:c,parentNode:u,nextSibling:p,setScopeId:d=Z,cloneNode:h,insertStaticContent:f}=e,g=(e,t,n,r=null,i=null,o=null,l=!1,s=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!Tr(e,t)&&(r=B(e),M(e,i,o,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:p}=t;switch(c){case _r:m(e,t,n,r);break;case Cr:v(e,t,n,r);break;case Sr:null==e&&y(t,n,r,l);break;case xr:E(e,t,n,r,i,o,l,s,a);break;default:1&p?k(e,t,n,r,i,o,l,s,a):6&p?R(e,t,n,r,i,o,l,s,a):(64&p||128&p)&&c.process(e,t,n,r,i,o,l,s,a,G)}null!=u&&i&&vr(u,e&&e.ref,o,t||e,!t)},m=(e,t,r,i)=>{if(null==e)n(t.el=l(t.children),r,i);else{const n=t.el=e.el;t.children!==e.children&&a(n,t.children)}},v=(e,t,r,i)=>{null==e?n(t.el=s(t.children||""),r,i):t.el=e.el},y=(e,t,n,r)=>{[e.el,e.anchor]=f(e.children,t,n,r,e.el,e.anchor)},w=({el:e,anchor:t},r,i)=>{let o;for(;e&&e!==t;)o=p(e),n(e,r,i),e=o;n(t,r,i)},b=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=p(e),r(e),e=n;r(t)},k=(e,t,n,r,i,o,l,s,a)=>{l=l||"svg"===t.type,null==e?x(t,n,r,i,o,l,s,a):S(e,t,i,o,l,s,a)},x=(e,t,r,l,s,a,u,p)=>{let d,f;const{type:g,props:m,shapeFlag:v,transition:y,patchFlag:w,dirs:b}=e;if(e.el&&void 0!==h&&-1===w)d=e.el=h(e.el);else{if(d=e.el=o(e.type,a,m&&m.is,m),8&v?c(d,e.children):16&v&&C(e.children,d,null,l,s,a&&"foreignObject"!==g,u,p),b&&Zn(e,null,l,"created"),m){for(const t in m)"value"===t||ge(t)||i(d,t,null,m[t],a,e.children,l,s,V);"value"in m&&i(d,"value",null,m.value),(f=m.onVnodeBeforeMount)&&Zr(f,l,e)}_(d,e,e.scopeId,u,l)}b&&Zn(e,null,l,"beforeMount");const k=(!s||s&&!s.pendingBranch)&&y&&!y.persisted;k&&y.beforeEnter(d),n(d,t,r),((f=m&&m.onVnodeMounted)||k||b)&&yr((()=>{f&&Zr(f,l,e),k&&y.enter(d),b&&Zn(e,null,l,"mounted")}),s)},_=(e,t,n,r,i)=>{if(n&&d(e,n),r)for(let t=0;t<r.length;t++)d(e,r[t]);if(i){if(t===i.subTree){const t=i.vnode;_(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},C=(e,t,n,r,i,o,l,s,a=0)=>{for(let c=a;c<e.length;c++){const a=e[c]=s?Wr(e[c]):Hr(e[c]);g(null,a,t,n,r,i,o,l,s)}},S=(e,t,n,r,o,l,s)=>{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:p,dirs:d}=t;u|=16&e.patchFlag;const h=e.props||W,f=t.props||W;let g;n&&br(n,!1),(g=f.onVnodeBeforeUpdate)&&Zr(g,n,t,e),d&&Zn(t,e,n,"beforeUpdate"),n&&br(n,!0);const m=o&&"foreignObject"!==t.type;if(p?$(e.dynamicChildren,p,a,n,r,m,l):s||j(e,t,a,null,n,r,m,l,!1),u>0){if(16&u)I(a,t,h,f,n,r,o);else if(2&u&&h.class!==f.class&&i(a,"class",null,f.class,o),4&u&&i(a,"style",h.style,f.style,o),8&u){const l=t.dynamicProps;for(let t=0;t<l.length;t++){const s=l[t],c=h[s],u=f[s];u===c&&"value"!==s||i(a,s,c,u,o,e.children,n,r,V)}}1&u&&e.children!==t.children&&c(a,t.children)}else s||null!=p||I(a,t,h,f,n,r,o);((g=f.onVnodeUpdated)||d)&&yr((()=>{g&&Zr(g,n,t,e),d&&Zn(t,e,n,"updated")}),r)},$=(e,t,n,r,i,o,l)=>{for(let s=0;s<t.length;s++){const a=e[s],c=t[s],p=a.el&&(a.type===xr||!Tr(a,c)||70&a.shapeFlag)?u(a.el):n;g(a,c,p,null,r,i,o,l,!0)}},I=(e,t,n,r,o,l,s)=>{if(n!==r){for(const a in r){if(ge(a))continue;const c=r[a],u=n[a];c!==u&&"value"!==a&&i(e,a,u,c,s,t.children,o,l,V)}if(n!==W)for(const a in n)ge(a)||a in r||i(e,a,n[a],null,s,t.children,o,l,V);"value"in r&&i(e,"value",n.value,r.value)}},E=(e,t,r,i,o,s,a,c,u)=>{const p=t.el=e?e.el:l(""),d=t.anchor=e?e.anchor:l("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:g}=t;g&&(c=c?c.concat(g):g),null==e?(n(p,r,i),n(d,r,i),C(t.children,r,d,o,s,a,c,u)):h>0&&64&h&&f&&e.dynamicChildren?($(e.dynamicChildren,f,r,o,s,a,c),(null!=t.key||o&&t===o.subTree)&&kr(e,t,!0)):j(e,t,r,d,o,s,a,c,u)},R=(e,t,n,r,i,o,l,s,a)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,l,a):L(t,n,r,i,o,l,a):A(e,t,a)},L=(e,t,n,r,i,o,l)=>{const s=e.component=function(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||Gr,o={uid:Kr++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Re(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ir(r,i),emitsOptions:Sn(r,i),emit:null,emitted:null,propsDefaults:W,inheritAttrs:r.inheritAttrs,ctx:W,data:W,props:W,attrs:W,slots:W,refs:W,setupState:W,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};o.ctx={_:o},o.root=t?t.root:o,o.emit=Cn.bind(null,o),e.ce&&e.ce(o);return o}(e,r,i);if(e.type.__isKeepAlive&&(s.ctx.renderer=G),function(e,t=!1){ei=t;const{props:n,children:r}=e.vnode,i=Xr(e);tr(e,n,i,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Dt(t),Se(t,"_",n)):dr(t,e.slots={})}else e.slots={},t&&hr(e,t);Se(e.slots,Pr,1)})(e,r);const o=i?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Vt(new Proxy(e.ctx,er));const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?function(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(We(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;Jr(e),Be();const i=rn(r,e,0,[e.props,n]);if(He(),Yr(),ue(i)){if(i.then(Yr,Yr),t)return i.then((n=>{ti(e,n,t)})).catch((t=>{ln(t,e,0)}));e.asyncDep=i}else ti(e,i,t)}else ni(e,t)}(e,t):void 0;ei=!1}(s),s.asyncDep){if(i&&i.registerDep(s,z),!e.el){const e=s.subTree=Fr(Cr);v(null,e,t,n)}}else z(s,e,t,n,i,o,l)},A=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:i,component:o}=e,{props:l,children:s,patchFlag:a}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!i&&!s||s&&s.$stable)||r!==l&&(r?!l||On(r,l,c):!!l);if(1024&a)return!0;if(16&a)return r?On(r,l,c):!!l;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(l[n]!==r[n]&&!$n(c,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void O(r,t,n);r.next=t,function(e){const t=cn.indexOf(e);t>un&&cn.splice(t,1)}(r.update),r.update()}else t.el=e.el,r.vnode=t},z=(e,t,n,r,i,o,l)=>{const s=()=>{if(e.isMounted){let t,{next:n,bu:r,u:s,parent:a,vnode:c}=e,p=n;br(e,!1),n?(n.el=c.el,O(e,n,l)):n=c,r&&Ce(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Zr(t,a,n,c),br(e,!0);const d=Ln(e),h=e.subTree;e.subTree=d,g(h,d,u(h.el),B(h),e,i,o),n.el=d.el,null===p&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,d.el),s&&yr(s,i),(t=n.props&&n.props.onVnodeUpdated)&&yr((()=>Zr(t,a,n,c)),i)}else{let l;const{el:s,props:a}=t,{bm:c,m:u,parent:p}=e,d=Dn(t);if(br(e,!1),c&&Ce(c),!d&&(l=a&&a.onVnodeBeforeMount)&&Zr(l,p,t),br(e,!0),s&&Q){const n=()=>{e.subTree=Ln(e),Q(s,e.subTree,e,i,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const l=e.subTree=Ln(e);g(null,l,n,r,e,i,o),t.el=l.el}if(u&&yr(u,i),!d&&(l=a&&a.onVnodeMounted)){const e=t;yr((()=>Zr(l,p,e)),i)}(256&t.shapeFlag||p&&Dn(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&yr(e.a,i),e.isMounted=!0,t=n=r=null}},a=e.effect=new Ne(s,(()=>vn(c)),e.scope),c=e.update=()=>a.run();c.id=e.uid,br(e,!0),c()},O=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:l}}=e,s=Dt(i),[a]=e.propsOptions;let c=!1;if(!(r||l>0)||16&l){let r;nr(e,t,i,o)&&(c=!0);for(const o in s)t&&(te(t,o)||(r=be(o))!==o&&te(t,r))||(a?!n||void 0===n[o]&&void 0===n[r]||(i[o]=rr(a,s,o,void 0,e,!0)):delete i[o]);if(o!==s)for(const e in o)t&&te(t,e)||(delete o[e],c=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let l=n[r];if($n(e.emitsOptions,l))continue;const u=t[l];if(a)if(te(o,l))u!==o[l]&&(o[l]=u,c=!0);else{const t=ye(l);i[t]=rr(a,s,t,u,e,!1)}else u!==o[l]&&(o[l]=u,c=!0)}}c&&Ze(e,"set","$attrs")}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,l=W;if(32&r.shapeFlag){const e=t._;e?n&&1===e?o=!1:(Y(i,t),n||1!==e||delete i._):(o=!t.$stable,dr(t,i)),l=t}else t&&(hr(e,t),l={default:1});if(o)for(const e in i)cr(e)||e in l||delete i[e]})(e,t.children,n),Be(),wn(),He()},j=(e,t,n,r,i,o,l,s,a=!1)=>{const u=e&&e.children,p=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void P(u,d,n,r,i,o,l,s,a);if(256&h)return void T(u,d,n,r,i,o,l,s,a)}8&f?(16&p&&V(u,i,o),d!==u&&c(n,d)):16&p?16&f?P(u,d,n,r,i,o,l,s,a):V(u,i,o,!0):(8&p&&c(n,""),16&f&&C(d,n,r,i,o,l,s,a))},T=(e,t,n,r,i,o,l,s,a)=>{t=t||q;const c=(e=e||q).length,u=t.length,p=Math.min(c,u);let d;for(d=0;d<p;d++){const r=t[d]=a?Wr(t[d]):Hr(t[d]);g(e[d],r,n,null,i,o,l,s,a)}c>u?V(e,i,o,!0,!1,p):C(t,n,r,i,o,l,s,a,p)},P=(e,t,n,r,i,o,l,s,a)=>{let c=0;const u=t.length;let p=e.length-1,d=u-1;for(;c<=p&&c<=d;){const r=e[c],u=t[c]=a?Wr(t[c]):Hr(t[c]);if(!Tr(r,u))break;g(r,u,n,null,i,o,l,s,a),c++}for(;c<=p&&c<=d;){const r=e[p],c=t[d]=a?Wr(t[d]):Hr(t[d]);if(!Tr(r,c))break;g(r,c,n,null,i,o,l,s,a),p--,d--}if(c>p){if(c<=d){const e=d+1,p=e<u?t[e].el:r;for(;c<=d;)g(null,t[c]=a?Wr(t[c]):Hr(t[c]),n,p,i,o,l,s,a),c++}}else if(c>d)for(;c<=p;)M(e[c],i,o,!0),c++;else{const h=c,f=c,m=new Map;for(c=f;c<=d;c++){const e=t[c]=a?Wr(t[c]):Hr(t[c]);null!=e.key&&m.set(e.key,c)}let v,y=0;const w=d-f+1;let b=!1,k=0;const x=new Array(w);for(c=0;c<w;c++)x[c]=0;for(c=h;c<=p;c++){const r=e[c];if(y>=w){M(r,i,o,!0);continue}let u;if(null!=r.key)u=m.get(r.key);else for(v=f;v<=d;v++)if(0===x[v-f]&&Tr(r,t[v])){u=v;break}void 0===u?M(r,i,o,!0):(x[u-f]=c+1,u>=k?k=u:b=!0,g(r,t[u],n,null,i,o,l,s,a),y++)}const _=b?function(e){const t=e.slice(),n=[0];let r,i,o,l,s;const a=e.length;for(r=0;r<a;r++){const a=e[r];if(0!==a){if(i=n[n.length-1],e[i]<a){t[r]=i,n.push(r);continue}for(o=0,l=n.length-1;o<l;)s=o+l>>1,e[n[s]]<a?o=s+1:l=s;a<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}o=n.length,l=n[o-1];for(;o-- >0;)n[o]=l,l=t[l];return n}(x):q;for(v=_.length-1,c=w-1;c>=0;c--){const e=f+c,p=t[e],d=e+1<u?t[e+1].el:r;0===x[c]?g(null,p,n,d,i,o,l,s,a):b&&(v<0||c!==_[v]?U(p,n,d,2):v--)}}},U=(e,t,r,i,o=null)=>{const{el:l,type:s,transition:a,children:c,shapeFlag:u}=e;if(6&u)return void U(e.component.subTree,t,r,i);if(128&u)return void e.suspense.move(t,r,i);if(64&u)return void s.move(e,t,r,G);if(s===xr){n(l,t,r);for(let e=0;e<c.length;e++)U(c[e],t,r,i);return void n(e.anchor,t,r)}if(s===Sr)return void w(e,t,r);if(2!==i&&1&u&&a)if(0===i)a.beforeEnter(l),n(l,t,r),yr((()=>a.enter(l)),o);else{const{leave:e,delayLeave:i,afterLeave:o}=a,s=()=>n(l,t,r),c=()=>{e(l,(()=>{s(),o&&o()}))};i?i(l,s,c):c()}else n(l,t,r)},M=(e,t,n,r=!1,i=!1)=>{const{type:o,props:l,ref:s,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d}=e;if(null!=s&&vr(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&d,f=!Dn(e);let g;if(f&&(g=l&&l.onVnodeBeforeUnmount)&&Zr(g,t,e),6&u)D(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);h&&Zn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,i,G,r):c&&(o!==xr||p>0&&64&p)?V(c,t,n,!1,!0):(o===xr&&384&p||!i&&16&u)&&V(a,t,n),r&&N(e)}(f&&(g=l&&l.onVnodeUnmounted)||h)&&yr((()=>{g&&Zr(g,t,e),h&&Zn(e,null,t,"unmounted")}),n)},N=e=>{const{type:t,el:n,anchor:i,transition:o}=e;if(t===xr)return void F(n,i);if(t===Sr)return void b(e);const l=()=>{r(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,i=()=>t(n,l);r?r(e.el,l,i):i()}else l()},F=(e,t)=>{let n;for(;e!==t;)n=p(e),r(e),e=n;r(t)},D=(e,t,n)=>{const{bum:r,scope:i,update:o,subTree:l,um:s}=e;r&&Ce(r),i.stop(),o&&(o.active=!1,M(l,e,t,n)),s&&yr(s,t),yr((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},V=(e,t,n,r=!1,i=!1,o=0)=>{for(let l=o;l<e.length;l++)M(e[l],t,n,r,i)},B=e=>6&e.shapeFlag?B(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),H=(e,t,n)=>{null==e?t._vnode&&M(t._vnode,null,null,!0):g(t._vnode||null,e,t,null,null,null,n),wn(),bn(),t._vnode=e},G={p:g,um:M,m:U,r:N,mt:L,mc:C,pc:j,pbc:$,n:B,o:e};let K,Q;t&&([K,Q]=t(G));return{render:H,hydrate:K,createApp:mr(H,K)}}(e)}function br({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function kr(e,t,n=!1){const r=e.children,i=t.children;if(ne(r)&&ne(i))for(let e=0;e<r.length;e++){const t=r[e];let o=i[e];1&o.shapeFlag&&!o.dynamicChildren&&((o.patchFlag<=0||32===o.patchFlag)&&(o=i[e]=Wr(i[e]),o.el=t.el),n||kr(t,o))}}const xr=Symbol(void 0),_r=Symbol(void 0),Cr=Symbol(void 0),Sr=Symbol(void 0),$r=[];let Ir=null;function Er(e=!1){$r.push(Ir=e?null:[])}let Rr=1;function Lr(e){Rr+=e}function Ar(e){return e.dynamicChildren=Rr>0?Ir||q:null,$r.pop(),Ir=$r[$r.length-1]||null,Rr>0&&Ir&&Ir.push(e),e}function zr(e,t,n,r,i,o){return Ar(Nr(e,t,n,r,i,o,!0))}function Or(e,t,n,r,i){return Ar(Fr(e,t,n,r,i,!0))}function jr(e){return!!e&&!0===e.__v_isVNode}function Tr(e,t){return e.type===t.type&&e.key===t.key}const Pr="__vInternal",Ur=({key:e})=>null!=e?e:null,Mr=({ref:e,ref_key:t,ref_for:n})=>null!=e?se(e)||Zt(e)||le(e)?{i:In,r:e,k:t,f:!!n}:e:null;function Nr(e,t=null,n=null,r=0,i=null,o=(e===xr?0:1),l=!1,s=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ur(t),ref:t&&Mr(t),scopeId:En,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return s?(qr(a,n),128&o&&e.normalize(a)):n&&(a.shapeFlag|=se(n)?8:16),Rr>0&&!l&&Ir&&(a.patchFlag>0||6&o)&&32!==a.patchFlag&&Ir.push(a),a}const Fr=function(e,t=null,n=null,r=0,i=null,o=!1){e&&e!==Kn||(e=Cr);if(jr(e)){const r=Dr(e,t,!0);return n&&qr(r,n),Rr>0&&!o&&Ir&&(6&r.shapeFlag?Ir[Ir.indexOf(e)]=r:Ir.push(r)),r.patchFlag|=-2,r}l=e,le(l)&&"__vccOpts"in l&&(e=e.__vccOpts);var l;if(t){t=function(e){return e?Ft(e)||Pr in e?Y({},e):e:null}(t);let{class:e,style:n}=t;e&&!se(e)&&(t.class=F(e)),ce(n)&&(Ft(n)&&!ne(n)&&(n=Y({},n)),t.style=P(n))}const s=se(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:ce(e)?4:le(e)?2:0;return Nr(e,t,n,r,i,s,o,!0)};function Dr(e,t,n=!1){const{props:r,ref:i,patchFlag:o,children:l}=e,s=t?function(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=F([t.class,r.class]));else if("style"===e)t.style=P([t.style,r.style]);else if(Q(e)){const n=t[e],i=r[e];!i||n===i||ne(n)&&n.includes(i)||(t[e]=n?[].concat(n,i):i)}else""!==e&&(t[e]=r[e])}return t}(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Ur(s),ref:t&&t.ref?n&&i?ne(i)?i.concat(Mr(t)):[i,Mr(t)]:Mr(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xr?-1===o?16:16|o:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Dr(e.ssContent),ssFallback:e.ssFallback&&Dr(e.ssFallback),el:e.el,anchor:e.anchor}}function Vr(e=" ",t=0){return Fr(_r,null,e,t)}function Br(e="",t=!1){return t?(Er(),Or(Cr,null,e)):Fr(Cr,null,e)}function Hr(e){return null==e||"boolean"==typeof e?Fr(Cr):ne(e)?Fr(xr,null,e.slice()):"object"==typeof e?Wr(e):Fr(_r,null,String(e))}function Wr(e){return null===e.el||e.memo?e:Dr(e)}function qr(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(ne(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),qr(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Pr in t?3===r&&In&&(1===In.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=In}}else le(t)?(t={default:t,_ctx:In},n=32):(t=String(t),64&r?(n=16,t=[Vr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Zr(e,t,n,r=null){on(e,t,7,[n,r])}const Gr=fr();let Kr=0;let Qr=null;const Jr=e=>{Qr=e,e.scope.on()},Yr=()=>{Qr&&Qr.scope.off(),Qr=null};function Xr(e){return 4&e.vnode.shapeFlag}let ei=!1;function ti(e,t,n){le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ce(t)&&(e.setupState=en(t)),ni(e,n)}function ni(e,t,n){const r=e.type;e.render||(e.render=r.render||Z)}function ri(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(en(Vt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Xn?Xn[n](e):void 0}))}const ii=(e,t)=>function(e,t,n=!1){let r,i;const o=le(e);return o?(r=e,i=Z):(r=e.get,i=e.set),new nn(r,i,o||!i,n)}(e,0,ei);function oi(e,t,n){const r=arguments.length;return 2===r?ce(t)&&!ne(t)?jr(t)?Fr(e,null,[t]):Fr(e,t):Fr(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&jr(n)&&(n=[n]),Fr(e,t,n))}const li="3.2.39",si="undefined"!=typeof document?document:null,ai=si&&si.createElement("template"),ci={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?si.createElementNS("http://www.w3.org/2000/svg",e):si.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>si.createTextNode(e),createComment:e=>si.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>si.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,i,o){const l=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==o&&(i=i.nextSibling););else{ai.innerHTML=r?`<svg>${e}</svg>`:e;const i=ai.content;if(r){const e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};const ui=/\s*!important$/;function pi(e,t,n){if(ne(n))n.forEach((n=>pi(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=hi[t];if(n)return n;let r=ye(t);if("filter"!==r&&r in e)return hi[t]=r;r=ke(r);for(let n=0;n<di.length;n++){const i=di[n]+r;if(i in e)return hi[t]=i}return t}(e,t);ui.test(n)?e.setProperty(be(r),n.replace(ui,""),"important"):e[r]=n}}const di=["Webkit","Moz","ms"],hi={};const fi="http://www.w3.org/1999/xlink";const[gi,mi]=(()=>{let e=Date.now,t=!1;if("undefined"!=typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let vi=0;const yi=Promise.resolve(),wi=()=>{vi=0};function bi(e,t,n,r){e.addEventListener(t,n,r)}function ki(e,t,n,r,i=null){const o=e._vei||(e._vei={}),l=o[t];if(r&&l)l.value=r;else{const[n,s]=function(e){let t;if(xi.test(e)){let n;for(t={};n=e.match(xi);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):be(e.slice(2)),t]}(t);if(r){const l=o[t]=function(e,t){const n=e=>{const r=e.timeStamp||gi();(mi||r>=n.attached-1)&&on(function(e,t){if(ne(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=(()=>vi||(yi.then(wi),vi=gi()))(),n}(r,i);bi(e,n,l,s)}else l&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,l,s),o[t]=void 0)}}const xi=/(?:Once|Passive|Capture)$/;const _i=/^on[a-z]/;const Ci=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ne(t)?e=>Ce(t,e):t};function Si(e){e.target.composing=!0}function $i(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ii={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=Ci(i);const o=r||i.props&&"number"===i.props.type;bi(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),o&&(r=$e(r)),e._assign(r)})),n&&bi(e,"change",(()=>{e.value=e.value.trim()})),t||(bi(e,"compositionstart",Si),bi(e,"compositionend",$i),bi(e,"change",$i))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},o){if(e._assign=Ci(o),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(n)return;if(r&&e.value.trim()===t)return;if((i||"number"===e.type)&&$e(e.value)===t)return}const l=null==t?"":t;e.value!==l&&(e.value=l)}},Ei={deep:!0,created(e,t,n){e._assign=Ci(n),bi(e,"change",(()=>{const t=e._modelValue,n=Oi(e),r=e.checked,i=e._assign;if(ne(t)){const e=V(t,n),o=-1!==e;if(r&&!o)i(t.concat(n));else if(!r&&o){const n=[...t];n.splice(e,1),i(n)}}else if(ie(t)){const e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(ji(e,r))}))},mounted:Ri,beforeUpdate(e,t,n){e._assign=Ci(n),Ri(e,t,n)}};function Ri(e,{value:t,oldValue:n},r){e._modelValue=t,ne(t)?e.checked=V(t,r.props.value)>-1:ie(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=D(t,ji(e,!0)))}const Li={created(e,{value:t},n){e.checked=D(t,n.props.value),e._assign=Ci(n),bi(e,"change",(()=>{e._assign(Oi(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Ci(r),t!==n&&(e.checked=D(t,r.props.value))}},Ai={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=ie(t);bi(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?$e(Oi(e)):Oi(e)));e._assign(e.multiple?i?new Set(t):t:t[0])})),e._assign=Ci(r)},mounted(e,{value:t}){zi(e,t)},beforeUpdate(e,t,n){e._assign=Ci(n)},updated(e,{value:t}){zi(e,t)}};function zi(e,t){const n=e.multiple;if(!n||ne(t)||ie(t)){for(let r=0,i=e.options.length;r<i;r++){const i=e.options[r],o=Oi(i);if(n)ne(t)?i.selected=V(t,o)>-1:i.selected=t.has(o);else if(D(Oi(i),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Oi(e){return"_value"in e?e._value:e.value}function ji(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ti={created(e,t,n){Pi(e,t,n,null,"created")},mounted(e,t,n){Pi(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Pi(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Pi(e,t,n,r,"updated")}};function Pi(e,t,n,r,i){const o=function(e,t){switch(e){case"SELECT":return Ai;case"TEXTAREA":return Ii;default:switch(t){case"checkbox":return Ei;case"radio":return Li;default:return Ii}}}(e.tagName,n.props&&n.props.type)[i];o&&o(e,t,n,r)}const Ui={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Mi(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),Mi(e,!0),r.enter(e)):r.leave(e,(()=>{Mi(e,!1)})):Mi(e,t))},beforeUnmount(e,{value:t}){Mi(e,t)}};function Mi(e,t){e.style.display=t?e._vod:"none"}const Ni=Y({patchProp:(e,t,n,r,i=!1,o,l,s,a)=>{"class"===t?function(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,i):"style"===t?function(e,t,n){const r=e.style,i=se(n);if(n&&!i){for(const e in n)pi(r,e,n[e]);if(t&&!se(t))for(const e in t)null==n[e]&&pi(r,e,"")}else{const o=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}(e,n,r):Q(t)?J(t)||ki(e,t,0,r,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&_i.test(t)&&le(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(_i.test(t)&&se(n))return!1;return t in e}(e,t,r,i))?function(e,t,n,r,i,o,l){if("innerHTML"===t||"textContent"===t)return r&&l(r,i,o),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const r=null==n?"":n;return e.value===r&&"OPTION"!==e.tagName||(e.value=r),void(null==n&&e.removeAttribute(t))}let s=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=T(n):null==n&&"string"===r?(n="",s=!0):"number"===r&&(n=0,s=!0)}try{e[t]=n}catch(e){}s&&e.removeAttribute(t)}(e,t,r,o,l,s,a):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,n,r,i){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(fi,t.slice(6,t.length)):e.setAttributeNS(fi,t,n);else{const r=j(t);null==n||r&&!T(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,i))}},ci);let Fi;const Di=(...e)=>{const t=(Fi||(Fi=wr(Ni))).createApp(...e),{mount:n}=t;return t.mount=e=>{const r=function(e){if(se(e)){return document.querySelector(e)}return e}(e);if(!r)return;const i=t._component;le(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};var Vi;const Bi="undefined"!=typeof window,Hi=()=>{};function Wi(e){return"function"==typeof e?e():Yt(e)}function qi(e,t){return function(...n){e((()=>t.apply(this,n)),{fn:t,thisArg:this,args:n})}}Bi&&(null==(Vi=null==window?void 0:window.navigator)?void 0:Vi.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const Zi=e=>e();function Gi(e){return!!Ee&&(function(e){Ee&&Ee.cleanups.push(e)}(e),!0)}function Ki(e,t=200,n={}){return qi(function(e,t={}){let n,r;return i=>{const o=Wi(e),l=Wi(t.maxWait);if(n&&clearTimeout(n),o<=0||void 0!==l&&l<=0)return r&&(clearTimeout(r),r=null),i();l&&!r&&(r=setTimeout((()=>{n&&clearTimeout(n),r=null,i()}),l)),n=setTimeout((()=>{r&&clearTimeout(r),r=null,i()}),o)}}(t,n),e)}function Qi(e,t=!0){Qr||In?Bn(e):t?e():mn(e)}var Ji=Object.getOwnPropertySymbols,Yi=Object.prototype.hasOwnProperty,Xi=Object.prototype.propertyIsEnumerable;function eo(e,t,n={}){const r=n,{eventFilter:i=Zi}=r,o=((e,t)=>{var n={};for(var r in e)Yi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ji)for(var r of Ji(e))t.indexOf(r)<0&&Xi.call(e,r)&&(n[r]=e[r]);return n})(r,["eventFilter"]);return Un(e,qi(i,t),o)}var to=Object.defineProperty,no=Object.defineProperties,ro=Object.getOwnPropertyDescriptors,io=Object.getOwnPropertySymbols,oo=Object.prototype.hasOwnProperty,lo=Object.prototype.propertyIsEnumerable,so=(e,t,n)=>t in e?to(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function ao(e,t,n={}){const r=n,{eventFilter:i}=r,o=((e,t)=>{var n={};for(var r in e)oo.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&io)for(var r of io(e))t.indexOf(r)<0&&lo.call(e,r)&&(n[r]=e[r]);return n})(r,["eventFilter"]),{eventFilter:l,pause:s,resume:a,isActive:c}=function(e=Zi){const t=Gt(!0);return{isActive:t,pause:function(){t.value=!1},resume:function(){t.value=!0},eventFilter:(...n)=>{t.value&&e(...n)}}}(i),u=eo(e,t,(p=((e,t)=>{for(var n in t||(t={}))oo.call(t,n)&&so(e,n,t[n]);if(io)for(var n of io(t))lo.call(t,n)&&so(e,n,t[n]);return e})({},o),no(p,ro({eventFilter:l}))));var p;return{stop:u,pause:s,resume:a,isActive:c}}const co=Bi?window:void 0,uo=Bi?window.document:void 0;function po(...e){let t,n,r,i;if("string"==typeof e[0]?([n,r,i]=e,t=co):[t,n,r,i]=e,!t)return Hi;let o=Hi;const l=Un((()=>function(e){var t;const n=Wi(e);return null!=(t=null==n?void 0:n.$el)?t:n}(t)),(e=>{o(),e&&(e.addEventListener(n,r,i),o=()=>{e.removeEventListener(n,r,i),o=Hi})}),{immediate:!0,flush:"post"}),s=()=>{l(),o()};return Gi(s),s}Bi&&window.navigator,Bi&&window.location;const ho="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},fo="__vueuse_ssr_handlers__";ho[fo]=ho[fo]||{};const go=ho[fo];var mo=Object.defineProperty,vo=Object.getOwnPropertySymbols,yo=Object.prototype.hasOwnProperty,wo=Object.prototype.propertyIsEnumerable,bo=(e,t,n)=>t in e?mo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ko=(e,t)=>{for(var n in t||(t={}))yo.call(t,n)&&bo(e,n,t[n]);if(vo)for(var n of vo(t))wo.call(t,n)&&bo(e,n,t[n]);return e};const xo={boolean:{read:e=>"true"===e,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function _o(e,t,n,r={}){var i;const{flush:o="pre",deep:l=!0,listenToStorageChanges:s=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:p=co,eventFilter:d,onError:h=(e=>{console.error(e)})}=r,f=(u?Kt:Gt)(t);if(!n)try{n=function(e,t){return go[e]||t}("getDefaultStorage",(()=>{var e;return null==(e=co)?void 0:e.localStorage}))()}catch(e){h(e)}if(!n)return f;const g=Wi(t),m=function(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"object"==typeof e||Array.isArray(e)?"object":Number.isNaN(e)?"any":"number"}(g),v=null!=(i=r.serializer)?i:xo[m],{pause:y,resume:w}=ao(f,(()=>function(t){try{null==t?n.removeItem(e):n.setItem(e,v.write(t))}catch(e){h(e)}}(f.value)),{flush:o,deep:l,eventFilter:d});return p&&s&&po(p,"storage",b),b(),f;function b(t){t&&t.key!==e||(f.value=function(t){if(!t||t.key===e){y();try{const r=t?t.newValue:n.getItem(e);if(null==r)return a&&null!==g&&n.setItem(e,v.write(g)),g;if(!t&&c){const e=v.read(r);return"function"==typeof c?c(e,g):"object"!==m||Array.isArray(e)?e:ko(ko({},g),e)}return"string"!=typeof r?r:v.read(r)}catch(e){h(e)}finally{w()}}}(t))}}var Co,So,$o=Object.defineProperty,Io=Object.getOwnPropertySymbols,Eo=Object.prototype.hasOwnProperty,Ro=Object.prototype.propertyIsEnumerable,Lo=(e,t,n)=>t in e?$o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Ao(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=Gt(new Date),i=()=>r.value=new Date,o="requestAnimationFrame"===n?function(e,t={}){const{immediate:n=!0,window:r=co}=t,i=Gt(!1);let o=null;function l(){i.value&&r&&(e(),o=r.requestAnimationFrame(l))}function s(){!i.value&&r&&(i.value=!0,l())}function a(){i.value=!1,null!=o&&r&&(r.cancelAnimationFrame(o),o=null)}return n&&s(),Gi(a),{isActive:i,pause:a,resume:s}}(i,{immediate:!0}):function(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:i=!1}=n;let o=null;const l=Gt(!1);function s(){o&&(clearInterval(o),o=null)}function a(){l.value=!1,s()}function c(){Yt(t)<=0||(l.value=!0,i&&e(),s(),o=setInterval(e,Wi(t)))}r&&Bi&&c(),Zt(t)&&Gi(Un(t,(()=>{l.value&&Bi&&c()})));return Gi(a),{isActive:l,pause:a,resume:c}}(i,n,{immediate:!0});return t?((e,t)=>{for(var n in t||(t={}))Eo.call(t,n)&&Lo(e,n,t[n]);if(Io)for(var n of Io(t))Ro.call(t,n)&&Lo(e,n,t[n]);return e})({now:r},o):r}(So=Co||(Co={})).UP="UP",So.RIGHT="RIGHT",So.DOWN="DOWN",So.LEFT="LEFT",So.NONE="NONE";let zo=0;var Oo=Object.defineProperty,jo=Object.getOwnPropertySymbols,To=Object.prototype.hasOwnProperty,Po=Object.prototype.propertyIsEnumerable,Uo=(e,t,n)=>t in e?Oo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;((e,t)=>{for(var n in t||(t={}))To.call(t,n)&&Uo(e,n,t[n]);if(jo)for(var n of jo(t))Po.call(t,n)&&Uo(e,n,t[n])})({linear:function(e){return e}},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const Mo=e=>{const t=_o("WALINE_EMOJI",{}),n=Boolean(/@[0-9]+\.[0-9]+\.[0-9]+/.test(e));if(n){const n=t.value[e];if(n)return Promise.resolve(n)}return fetch(`${e}/info.json`).then((e=>e.json())).then((r=>{const i={folder:e,...r};return n&&(t.value[e]=i),i}))},No=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,Fo=e=>{"AbortError"!==e.name&&console.error(e.message)},Do=e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null,Vo=e=>e.type.includes("image"),Bo=e=>{const t=Array.from(e).find(Vo);return t?t.getAsFile():null};function Ho(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let Wo={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const qo=/[&<>"']/,Zo=/[&<>"']/g,Go=/[<>"']|&(?!#?\w+;)/,Ko=/[<>"']|&(?!#?\w+;)/g,Qo={"&":"&","<":"<",">":">",'"':""","'":"'"},Jo=e=>Qo[e];function Yo(e,t){if(t){if(qo.test(e))return e.replace(Zo,Jo)}else if(Go.test(e))return e.replace(Ko,Jo);return e}const Xo=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function el(e){return e.replace(Xo,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const tl=/(^|[^\[])\^/g;function nl(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(tl,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const rl=/[^\w:]/g,il=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ol(e,t,n){if(e){let e;try{e=decodeURIComponent(el(n)).replace(rl,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!il.test(n)&&(n=function(e,t){ll[" "+e]||(sl.test(e)?ll[" "+e]=e+"/":ll[" "+e]=hl(e,"/",!0));const n=-1===(e=ll[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(al,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(cl,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const ll={},sl=/^[^:]+:\/*[^/]*$/,al=/^([^:]+:)[\s\S]*$/,cl=/^([^:]+:\/*[^/]*)[\s\S]*$/;const ul={exec:function(){}};function pl(e){let t,n,r=1;for(;r<arguments.length;r++)for(n in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function dl(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"})).split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function hl(e,t,n){const r=e.length;if(0===r)return"";let i=0;for(;i<r;){const o=e.charAt(r-i-1);if(o!==t||n){if(o===t||!n)break;i++}else i++}return e.slice(0,r-i)}function fl(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function gl(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function ml(e,t,n,r){const i=t.href,o=t.title?Yo(t.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:i,title:o,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,e}return{type:"image",raw:n,href:i,title:o,text:Yo(l)}}class vl{constructor(e){this.options=e||Wo}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:hl(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim():t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=hl(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(e,[]),text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,i,o,l,s,a,c,u,p,d,h,f=t[1].trim();const g=f.length>1,m={type:"list",raw:"",ordered:g,start:g?+f.slice(0,-1):"",loose:!1,items:[]};f=g?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=g?f:"[*+-]");const v=new RegExp(`^( {0,3}${f})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(h=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0],u=e.split("\n",1)[0],this.options.pedantic?(o=2,d=c.trimLeft()):(o=t[2].search(/[^ ]/),o=o>4?1:o,d=c.slice(o),o+=t[1].length),s=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),h=!0),!h){const t=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),r=new RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),i=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),l=new RegExp(`^ {0,${Math.min(3,o-1)}}#`);for(;e&&(p=e.split("\n",1)[0],c=p,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!i.test(c))&&!l.test(c)&&!t.test(c)&&!r.test(e);){if(c.search(/[^ ]/)>=o||!c.trim())d+="\n"+c.slice(o);else{if(s)break;d+="\n"+c}s||c.trim()||(s=!0),n+=p+"\n",e=e.substring(p.length+1)}}m.loose||(a?m.loose=!0:/\n *\n *$/.test(n)&&(a=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(d),r&&(i="[ ] "!==r[0],d=d.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!r,checked:i,loose:!1,text:d}),m.raw+=n}m.items[m.items.length-1].raw=n.trimRight(),m.items[m.items.length-1].text=d.trimRight(),m.raw=m.raw.trimRight();const y=m.items.length;for(l=0;l<y;l++){this.lexer.state.top=!1,m.items[l].tokens=this.lexer.blockTokens(m.items[l].text,[]);const e=m.items[l].tokens.filter((e=>"space"===e.type)),t=e.every((e=>{const t=e.raw.split("");let n=0;for(const e of t)if("\n"===e&&(n+=1),n>1)return!0;return!1}));!m.loose&&e.length&&t&&(m.loose=!0,m.items[l].loose=!0)}return m}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){const n=this.options.sanitizer?this.options.sanitizer(t[0]):Yo(t[0]);e.type="paragraph",e.text=n,e.tokens=this.lexer.inline(n)}return e}}def(e){const t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));return{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:dl(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,r,i,o,l=e.align.length;for(n=0;n<l;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(l=e.rows.length,n=0;n<l;n++)e.rows[n]=dl(e.rows[n],e.header.length).map((e=>({text:e})));for(l=e.header.length,r=0;r<l;r++)e.header[r].tokens=this.lexer.inline(e.header[r].text);for(l=e.rows.length,r=0;r<l;r++)for(o=e.rows[r],i=0;i<o.length;i++)o[i].tokens=this.lexer.inline(o[i].text);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const 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){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Yo(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):Yo(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=hl(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,i=0;for(;i<n;i++)if("\\"===e[i])i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return-1}(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?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){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),ml(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e||!e.href){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return ml(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;const i=r[1]||r[2]||"";if(!i||i&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let i,o,l=n,s=0;const a="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=a.exec(t));){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(o=i.length,r[3]||r[4]){l+=o;continue}if((r[5]||r[6])&&n%3&&!((n+o)%3)){s+=o;continue}if(l-=o,l>0)continue;if(o=Math.min(o,o+l+s),Math.min(n,o)%2){const t=e.slice(1,n+r.index+o);return{type:"em",raw:e.slice(0,n+r.index+o+1),text:t,tokens:this.lexer.inlineTokens(t)}}const t=e.slice(2,n+r.index+o-1);return{type:"strong",raw:e.slice(0,n+r.index+o+1),text:t,tokens:this.lexer.inlineTokens(t)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=Yo(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,r;return"@"===n[2]?(e=Yo(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=Yo(n[1]),r=e),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=Yo(this.options.mangle?t(n[0]):n[0]),r="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=Yo(n[0]),r="www."===n[1]?"http://"+e:e}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):Yo(n[0]):n[0]:Yo(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const yl={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {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|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:ul,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};yl.def=nl(yl.def).replace("label",yl._label).replace("title",yl._title).getRegex(),yl.bullet=/(?:[*+-]|\d{1,9}[.)])/,yl.listItemStart=nl(/^( *)(bull) */).replace("bull",yl.bullet).getRegex(),yl.list=nl(yl.list).replace(/bull/g,yl.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+yl.def.source+")").getRegex(),yl._tag="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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",yl._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,yl.html=nl(yl.html,"i").replace("comment",yl._comment).replace("tag",yl._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),yl.paragraph=nl(yl._paragraph).replace("hr",yl.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",yl._tag).getRegex(),yl.blockquote=nl(yl.blockquote).replace("paragraph",yl.paragraph).getRegex(),yl.normal=pl({},yl),yl.gfm=pl({},yl.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),yl.gfm.table=nl(yl.gfm.table).replace("hr",yl.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",yl._tag).getRegex(),yl.gfm.paragraph=nl(yl._paragraph).replace("hr",yl.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",yl.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",yl._tag).getRegex(),yl.pedantic=pl({},yl.normal,{html:nl("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",yl._comment).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:ul,paragraph:nl(yl.normal._paragraph).replace("hr",yl.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",yl.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const wl={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ul,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:ul,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function bl(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function kl(e){let t,n,r="";const i=e.length;for(t=0;t<i;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}wl._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",wl.punctuation=nl(wl.punctuation).replace(/punctuation/g,wl._punctuation).getRegex(),wl.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,wl.escapedEmSt=/\\\*|\\_/g,wl._comment=nl(yl._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),wl.emStrong.lDelim=nl(wl.emStrong.lDelim).replace(/punct/g,wl._punctuation).getRegex(),wl.emStrong.rDelimAst=nl(wl.emStrong.rDelimAst,"g").replace(/punct/g,wl._punctuation).getRegex(),wl.emStrong.rDelimUnd=nl(wl.emStrong.rDelimUnd,"g").replace(/punct/g,wl._punctuation).getRegex(),wl._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,wl._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,wl._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])?)+(?![-_])/,wl.autolink=nl(wl.autolink).replace("scheme",wl._scheme).replace("email",wl._email).getRegex(),wl._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,wl.tag=nl(wl.tag).replace("comment",wl._comment).replace("attribute",wl._attribute).getRegex(),wl._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,wl._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,wl._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,wl.link=nl(wl.link).replace("label",wl._label).replace("href",wl._href).replace("title",wl._title).getRegex(),wl.reflink=nl(wl.reflink).replace("label",wl._label).replace("ref",yl._label).getRegex(),wl.nolink=nl(wl.nolink).replace("ref",yl._label).getRegex(),wl.reflinkSearch=nl(wl.reflinkSearch,"g").replace("reflink",wl.reflink).replace("nolink",wl.nolink).getRegex(),wl.normal=pl({},wl),wl.pedantic=pl({},wl.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:nl(/^!?\[(label)\]\((.*?)\)/).replace("label",wl._label).getRegex(),reflink:nl(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",wl._label).getRegex()}),wl.gfm=pl({},wl.normal,{escape:nl(wl.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),wl.gfm.url=nl(wl.gfm.url,"i").replace("email",wl.gfm._extended_email).getRegex(),wl.breaks=pl({},wl.gfm,{br:nl(wl.br).replace("{2,}","*").getRegex(),text:nl(wl.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class xl{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Wo,this.options.tokenizer=this.options.tokenizer||new vl,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:yl.normal,inline:wl.normal};this.options.pedantic?(t.block=yl.pedantic,t.inline=wl.pedantic):this.options.gfm&&(t.block=yl.gfm,this.options.breaks?t.inline=wl.breaks:t.inline=wl.gfm),this.tokenizer.rules=t}static get rules(){return{block:yl,inline:wl}}static lex(e,t){return new xl(t).lex(e)}static lexInline(e,t){return new xl(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let n,r,i,o;for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,n)=>t+" ".repeat(n.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?t.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(i=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startBlock.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(i)))r=t[t.length-1],o&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),o=i.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r,i,o,l,s,a=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,o.index)+"["+gl("a",o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,o.index)+"["+gl("a",o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(a));)a=a.slice(0,o.index)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(l||(s=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,a,s))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,kl))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,kl))){if(i=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startInline.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(i,bl))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),l=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}class _l{constructor(e){this.options=e||Wo}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+Yo(r,!0)+'">'+(n?e:Yo(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:Yo(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>\n${e}</blockquote>\n`}html(e){return e}heading(e,t,n,r){if(this.options.headerIds){return`<h${t} id="${this.options.headerPrefix+r.slug(n)}">${e}</h${t}>\n`}return`<h${t}>${e}</h${t}>\n`}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return`<li>${e}</li>\n`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>\n`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr>\n${e}</tr>\n`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>\n`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){if(null===(e=ol(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+Yo(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=ol(this.options.sanitize,this.options.baseUrl,e)))return n;let r=`<img src="${e}" alt="${n}"`;return t&&(r+=` title="${t}"`),r+=this.options.xhtml?"/>":">",r}text(e){return e}}class Cl{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class Sl{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class $l{constructor(e){this.options=e||Wo,this.options.renderer=this.options.renderer||new _l,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Cl,this.slugger=new Sl}static parse(e,t){return new $l(t).parse(e)}static parseInline(e,t){return new $l(t).parseInline(e)}parse(e,t=!0){let n,r,i,o,l,s,a,c,u,p,d,h,f,g,m,v,y,w,b,k="";const x=e.length;for(n=0;n<x;n++)if(p=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type]&&(b=this.options.extensions.renderers[p.type].call({parser:this},p),!1!==b||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type)))k+=b||"";else switch(p.type){case"space":continue;case"hr":k+=this.renderer.hr();continue;case"heading":k+=this.renderer.heading(this.parseInline(p.tokens),p.depth,el(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue;case"code":k+=this.renderer.code(p.text,p.lang,p.escaped);continue;case"table":for(c="",a="",o=p.header.length,r=0;r<o;r++)a+=this.renderer.tablecell(this.parseInline(p.header[r].tokens),{header:!0,align:p.align[r]});for(c+=this.renderer.tablerow(a),u="",o=p.rows.length,r=0;r<o;r++){for(s=p.rows[r],a="",l=s.length,i=0;i<l;i++)a+=this.renderer.tablecell(this.parseInline(s[i].tokens),{header:!1,align:p.align[i]});u+=this.renderer.tablerow(a)}k+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(p.tokens),k+=this.renderer.blockquote(u);continue;case"list":for(d=p.ordered,h=p.start,f=p.loose,o=p.items.length,u="",r=0;r<o;r++)m=p.items[r],v=m.checked,y=m.task,g="",m.task&&(w=this.renderer.checkbox(v),f?m.tokens.length>0&&"paragraph"===m.tokens[0].type?(m.tokens[0].text=w+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=w+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:w}):g+=w),g+=this.parse(m.tokens,f),u+=this.renderer.listitem(g,y,v);k+=this.renderer.list(u,d,h);continue;case"html":k+=this.renderer.html(p.text);continue;case"paragraph":k+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(u=p.tokens?this.parseInline(p.tokens):p.text;n+1<x&&"text"===e[n+1].type;)p=e[++n],u+="\n"+(p.tokens?this.parseInline(p.tokens):p.text);k+=t?this.renderer.paragraph(u):u;continue;default:{const e='Token with "'+p.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return k}parseInline(e,t){t=t||this.renderer;let n,r,i,o="";const l=e.length;for(n=0;n<l;n++)if(r=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(i=this.options.extensions.renderers[r.type].call({parser:this},r),!1!==i||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))o+=i||"";else switch(r.type){case"escape":case"text":o+=t.text(r.text);break;case"html":o+=t.html(r.text);break;case"link":o+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":o+=t.image(r.href,r.title,r.text);break;case"strong":o+=t.strong(this.parseInline(r.tokens,t));break;case"em":o+=t.em(this.parseInline(r.tokens,t));break;case"codespan":o+=t.codespan(r.text);break;case"br":o+=t.br();break;case"del":o+=t.del(this.parseInline(r.tokens,t));break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return o}}function Il(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),fl(t=pl({},Il.defaults,t||{})),n){const r=t.highlight;let i;try{i=xl.lex(e,t)}catch(e){return n(e)}const o=function(e){let o;if(!e)try{t.walkTokens&&Il.walkTokens(i,t.walkTokens),o=$l.parse(i,t)}catch(t){e=t}return t.highlight=r,e?n(e):n(null,o)};if(!r||r.length<3)return o();if(delete t.highlight,!i.length)return o();let l=0;return Il.walkTokens(i,(function(e){"code"===e.type&&(l++,setTimeout((()=>{r(e.text,e.lang,(function(t,n){if(t)return o(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),l--,0===l&&o()}))}),0))})),void(0===l&&o())}function r(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+Yo(e.message+"",!0)+"</pre>";throw e}try{const n=xl.lex(e,t);if(t.walkTokens){if(t.async)return Promise.all(Il.walkTokens(n,t.walkTokens)).then((()=>$l.parse(n,t))).catch(r);Il.walkTokens(n,t.walkTokens)}return $l.parse(n,t)}catch(e){r(e)}}Il.options=Il.setOptions=function(e){var t;return pl(Il.defaults,e),t=Il.defaults,Wo=t,Il},Il.getDefaults=Ho,Il.defaults=Wo,Il.use=function(...e){const t=pl({},...e),n=Il.defaults.extensions||{renderers:{},childTokens:{}};let r;e.forEach((e=>{if(e.extensions&&(r=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=n.renderers?n.renderers[e.name]:null;n.renderers[e.name]=t?function(...n){let r=e.renderer.apply(this,n);return!1===r&&(r=t.apply(this,n)),r}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");n[e.level]?n[e.level].unshift(e.tokenizer):n[e.level]=[e.tokenizer],e.start&&("block"===e.level?n.startBlock?n.startBlock.push(e.start):n.startBlock=[e.start]:"inline"===e.level&&(n.startInline?n.startInline.push(e.start):n.startInline=[e.start]))}e.childTokens&&(n.childTokens[e.name]=e.childTokens)}))),e.renderer){const n=Il.defaults.renderer||new _l;for(const t in e.renderer){const r=n[t];n[t]=(...i)=>{let o=e.renderer[t].apply(n,i);return!1===o&&(o=r.apply(n,i)),o}}t.renderer=n}if(e.tokenizer){const n=Il.defaults.tokenizer||new vl;for(const t in e.tokenizer){const r=n[t];n[t]=(...i)=>{let o=e.tokenizer[t].apply(n,i);return!1===o&&(o=r.apply(n,i)),o}}t.tokenizer=n}if(e.walkTokens){const n=Il.defaults.walkTokens;t.walkTokens=function(t){let r=[];return r.push(e.walkTokens.call(this,t)),n&&(r=r.concat(n.call(this,t))),r}}r&&(t.extensions=n),Il.setOptions(t)}))},Il.walkTokens=function(e,t){let n=[];for(const r of e)switch(n=n.concat(t.call(Il,r)),r.type){case"table":for(const e of r.header)n=n.concat(Il.walkTokens(e.tokens,t));for(const e of r.rows)for(const r of e)n=n.concat(Il.walkTokens(r.tokens,t));break;case"list":n=n.concat(Il.walkTokens(r.items,t));break;default:Il.defaults.extensions&&Il.defaults.extensions.childTokens&&Il.defaults.extensions.childTokens[r.type]?Il.defaults.extensions.childTokens[r.type].forEach((function(e){n=n.concat(Il.walkTokens(r[e],t))})):r.tokens&&(n=n.concat(Il.walkTokens(r.tokens,t)))}return n},Il.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");fl(t=pl({},Il.defaults,t||{}));try{const n=xl.lexInline(e,t);return t.walkTokens&&Il.walkTokens(n,t.walkTokens),$l.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+Yo(e.message+"",!0)+"</pre>";throw e}},Il.Parser=$l,Il.parser=$l.parse,Il.Renderer=_l,Il.TextRenderer=Cl,Il.Lexer=xl,Il.lexer=xl.lex,Il.Tokenizer=vl,Il.Slugger=Sl,Il.parse=Il;const El=/\$.*?\$/,Rl=/^\$(.*?)\$/,Ll=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,Al=(e="",t={})=>e.replace(/:(.+?):/g,((e,n)=>t[n]?`<img class="wl-emoji" src="${t[n]}" alt="${n}">`:e)),zl=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{if(Il.setOptions({highlight:n||void 0,breaks:!0,smartLists:!0,smartypants:!0}),r){const e=(e=>[{name:"blockMath",level:"block",tokenizer(t){const n=Ll.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!0,n[1])}}},{name:"inlineMath",level:"inline",start(e){const t=e.search(El);return-1!==t?t:e.length},tokenizer(t){const n=Rl.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}}])(r);Il.use({extensions:e})}return Il.parse(Al(e,t))},Ol=e=>e.dataset.path||e.getAttribute("id"),jl=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r="zh-CN"})=>{const i=new AbortController,o=document.querySelectorAll(n);return o.length&&(({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${e}/comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r,headers:{}}).then((e=>e.json())).then((e=>b(e,"comment count"))).then((e=>Array.isArray(e)?e:[e])))({serverURL:I(e),paths:Array.from(o).map((e=>C(e.dataset.path||e.getAttribute("id")||t))),lang:r,signal:i.signal}).then((e=>{o.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch(Fo),i.abort.bind(i)};let Tl=null;const Pl=()=>Tl||(Tl=_o("WALINE_LIKE",[]));var Ul="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Ml={},Nl={},Fl={},Dl=Ul&&Ul.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function l(e){try{a(r.next(e))}catch(e){o(e)}}function s(e){try{a(r.throw(e))}catch(e){o(e)}}function a(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,s)}a((r=r.apply(e,t||[])).next())}))},Vl=Ul&&Ul.__generator||function(e,t){var n,r,i,o,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return l.label++,{value:o[1],done:!1};case 5:l.label++,r=o[1],o=[0];continue;case 7:o=l.ops.pop(),l.trys.pop();continue;default:if(!(i=l.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){l=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){l.label=o[1];break}if(6===o[0]&&l.label<i[1]){l.label=i[1],i=o;break}if(i&&l.label<i[2]){l.label=i[2],l.ops.push(o);break}i[2]&&l.ops.pop(),l.trys.pop();continue}o=t.call(e,l)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.ReCaptchaInstance=void 0;var Bl=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 Dl(this,void 0,void 0,(function(){return Vl(this,(function(t){return[2,this.recaptcha.enterprise?this.recaptcha.enterprise.execute(this.recaptchaID,{action:e}):this.recaptcha.execute(this.recaptchaID,{action:e})]}))}))},e.prototype.getSiteKey=function(){return this.siteKey},e.prototype.hideBadge=function(){null===this.styleContainer&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},e.prototype.showBadge=function(){null!==this.styleContainer&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},e}();Fl.ReCaptchaInstance=Bl,Object.defineProperty(Nl,"__esModule",{value:!0}),Nl.getInstance=Nl.load=void 0;var Hl,Wl=Fl;!function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"}(Hl||(Hl={}));var ql=function(){function e(){}return e.load=function(t,n){if(void 0===n&&(n={}),"undefined"==typeof document)return Promise.reject(new Error("This is a library for the browser!"));if(e.getLoadingState()===Hl.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===Hl.LOADING)return t!==e.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise((function(t,n){e.successfulLoadingConsumers.push((function(e){return t(e)})),e.errorLoadingRunnable.push((function(e){return n(e)}))}));e.instanceSiteKey=t,e.setLoadingState(Hl.LOADING);var r=new e;return new Promise((function(i,o){r.loadScript(t,n.useRecaptchaNet||!1,n.useEnterprise||!1,n.renderParameters?n.renderParameters:{},n.customUrl).then((function(){e.setLoadingState(Hl.LOADED);var o=r.doExplicitRender(grecaptcha,t,n.explicitRenderParameters?n.explicitRenderParameters:{},n.useEnterprise||!1),l=new Wl.ReCaptchaInstance(t,o,grecaptcha);e.successfulLoadingConsumers.forEach((function(e){return e(l)})),e.successfulLoadingConsumers=[],n.autoHideBadge&&l.hideBadge(),e.instance=l,i(l)})).catch((function(t){e.errorLoadingRunnable.forEach((function(e){return e(t)})),e.errorLoadingRunnable=[],o(t)}))}))},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return null===e.loadingState?Hl.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,n,r,i,o){var l=this;void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===i&&(i={}),void 0===o&&(o="");var s=document.createElement("script");s.setAttribute("recaptcha-v3-script","");var a="https://www.google.com/recaptcha/api.js";n&&(a=r?"https://recaptcha.net/recaptcha/enterprise.js":"https://recaptcha.net/recaptcha/api.js"),r&&(a="https://www.google.com/recaptcha/enterprise.js"),o&&(a=o),i.render&&(i.render=void 0);var c=this.buildQueryString(i);return s.src=a+"?render=explicit"+c,new Promise((function(t,n){s.addEventListener("load",l.waitForScriptToLoad((function(){t(s)}),r),!1),s.onerror=function(t){e.setLoadingState(Hl.NOT_LOADED),n(t)},document.head.appendChild(s)}))},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(){void 0===window.grecaptcha?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,t,n,r){var i={sitekey:t,badge:n.badge,size:n.size,tabindex:n.tabindex};return n.container?r?e.enterprise.render(n.container,i):e.render(n.container,i):r?e.enterprise.render(i):e.render(i)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();Nl.load=ql.load,Nl.getInstance=ql.getInstance,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Nl;Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=Fl;Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(Ml);const Zl={};let Gl=null;const Kl=()=>Gl||(Gl=_o("WALINE_VOTE",[]));let Ql=null;const Jl=()=>Ql||(Ql=_o("WALINE_USER",{}));var Yl=Fn({setup(){const e=Gt([]),t=Kl(),n=jn("config"),r=ii((()=>n.value.locale)),i=ii((()=>{const{reaction:i,path:o}=n.value;return(Array.isArray(i)?i:[]).map(((n,i)=>({icon:n,vote:e.value[i]||0,desc:r.value[`reaction${i}`],active:Boolean(t.value.find((({u:e,i:t})=>e===o&&t===i)))})))})),o=new AbortController;return Bn((()=>(async()=>{const{serverURL:t,lang:r,path:i,reaction:l}=n.value;if(!Array.isArray(l))return;const s=await k({serverURL:t,lang:r,paths:[i],type:l.map(((e,t)=>`reaction${t}`)),signal:o.signal});Array.isArray(s)||"number"==typeof s||(e.value=l.map(((e,t)=>s[`reaction${t}`])))})())),Wn((()=>o.abort())),{reaction:i,locale:r,vote:async r=>{const{serverURL:i,lang:o,path:l}=n.value,s=t.value.find((({u:e})=>e===l));s&&s.i===r||(await x({serverURL:i,lang:o,path:l,type:`reaction${r}`}),e.value[r]=(e.value[r]||0)+1,s?(e.value[s.i]=Math.max(e.value[s.i]-1,0),x({serverURL:i,lang:o,path:l,type:`reaction${s.i}`,action:"desc"}),s.i=r,t.value=Array.from(t.value)):t.value=[...t.value,{u:l,i:r}],t.value.length>50&&(t.value=t.value.slice(-50)))}}}}),Xl=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n};const es={key:0,class:"wl-reaction"},ts=["textContent"],ns=["onClick"],rs={class:"wl-reaction-img"},is=["src","alt"],os={class:"wl-reaction-votes"},ls={class:"wl-reaction-text"};var ss,as,cs=Xl(Yl,[["render",function(e,t,n,r,i,o){return e.reaction&&e.reaction.length?(Er(),zr("div",es,[Nr("h4",{textContent:B(e.locale.reactionTitle)},null,8,ts),Nr("ul",null,[(Er(!0),zr(xr,null,Jn(e.reaction,((t,n)=>(Er(),zr("li",{key:n,class:F({active:t.active}),onClick:t=>e.vote(n)},[Nr("div",rs,[Nr("img",{src:t.icon,alt:t.desc},null,8,is),Nr("div",os,B(t.vote),1)]),Nr("div",ls,B(t.desc),1)],10,ns)))),128))])])):Br("v-if",!0)}],["__file","ArticleReaction.vue"]]),us="function"==typeof Map?new Map:(ss=[],as=[],{has:function(e){return ss.indexOf(e)>-1},get:function(e){return as[ss.indexOf(e)]},set:function(e,t){-1===ss.indexOf(e)&&(ss.push(e),as.push(t))},delete:function(e){var t=ss.indexOf(e);t>-1&&(ss.splice(t,1),as.splice(t,1))}}),ps=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(ss){ps=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function ds(e){var t=us.get(e);t&&t.destroy()}function hs(e){var t=us.get(e);t&&t.update()}var fs=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((fs=function(e){return e}).destroy=function(e){return e},fs.update=function(e){return e}):((fs=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!us.has(e)){var t,n=null,r=null,i=null,o=function(){e.clientWidth!==r&&c()},l=function(t){window.removeEventListener("resize",o,!1),e.removeEventListener("input",c,!1),e.removeEventListener("keyup",c,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",c,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),us.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",c,!1),window.addEventListener("resize",o,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",us.set(e,{destroy:l,update:c}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),c()}function s(t){var n=e.style.width;e.style.width="0px",e.style.width=n,e.style.overflowY=t}function a(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),i=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),i&&(document.documentElement.scrollTop=i)}}function c(){a();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(s("scroll"),a(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),a(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),i!==r){i=r;var o=ps("autosize:resized");try{e.dispatchEvent(o)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],ds),e},fs.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],hs),e});var gs=fs;const ms=({size:e})=>oi("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},oi("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},oi("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})));var vs=Fn({name:"ImageWall",components:{LoadingIcon:ms},props:{items:{type:Array,default:()=>[]},columnWidth:{type:Number,default:300},gap:{type:Number,default:0}},emits:["insert"],setup(e){let t=null;const n=Gt(null),r=Gt({}),i=Gt([]),o=()=>{const t=Math.floor((n.value.getBoundingClientRect().width+e.gap)/(e.columnWidth+e.gap));return t>0?t:1},l=async t=>{if(t>=e.items.length)return;await mn();const r=Array.from(n.value?.children||[]).reduce(((e,t)=>t.getBoundingClientRect().height<e.getBoundingClientRect().height?t:e));i.value[Number(r.dataset.index)].push(t),await l(t+1)},s=async(e=!1)=>{if(i.value.length===o()&&!e)return;var t;i.value=(t=o(),new Array(t).fill(null).map((()=>[])));const n=window.scrollY;await l(0),window.scrollTo({top:n})};return Un((()=>[e.items]),(()=>{r.value={},s(!0)})),Un((()=>[e.columnWidth,e.gap]),(()=>s())),Bn((()=>{s(!0),t=new ResizeObserver((()=>s())),t.observe(n.value)})),Hn((()=>t.unobserve(n.value))),{columns:i,state:r,wall:n}}});const ys=["data-index"],ws=["src","title","onLoad","onClick"];var bs=Fn({name:"CommentBox",components:{CloseIcon:({size:e})=>oi("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[oi("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"}),oi("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"})]),EmojiIcon:()=>oi("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},oi("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"})),ImageIcon:()=>oi("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[oi("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"}),oi("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"})]),ImageWall:Xl(vs,[["render",function(e,t,n,r,i,o){const l=Gn("LoadingIcon");return Er(),zr("div",{ref:"wall",class:"wl-gallery",style:P({gap:`${e.gap}px`})},[(Er(!0),zr(xr,null,Jn(e.columns,((t,n)=>(Er(),zr("div",{key:n,class:"wl-gallery-column","data-index":n,style:P({gap:`${e.gap}px`})},[(Er(!0),zr(xr,null,Jn(t,(t=>(Er(),zr(xr,{key:t},[e.state[e.items[t].src]?Br("v-if",!0):(Er(),Or(l,{key:0,size:36,style:{margin:"20px auto"}})),Nr("img",{class:"wl-gallery-item",src:e.items[t].src,title:e.items[t].title,loading:"lazy",onLoad:n=>e.state[e.items[t].src]=!0,onClick:n=>e.$emit("insert",``)},null,40,ws)],64)))),128))],12,ys)))),128))],4)}],["__file","ImageWall.vue"]]),MarkdownIcon:()=>oi("svg",{width:"16",height:"16",ariaHidden:"true"},oi("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"})),PreviewIcon:()=>oi("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[oi("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"}),oi("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"})]),LoadingIcon:ms,GifIcon:()=>oi("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[oi("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"}),oi("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"})])},props:{rootId:{type:String,default:""},replyId:{type:String,default:""},replyUser:{type:String,default:""},edit:{type:Object,default:null}},emits:["submit","cancel-reply","cancel-edit"],setup(e,{emit:t}){const n=jn("config"),r=_o("WALINE_COMMENT_BOX_EDITOR",""),i=_o("WALINE_USER_META",{nick:"",mail:"",link:""}),o=Jl(),l=Gt({}),s=Gt(null),a=Gt(null),c=Gt(null),u=Gt(null),p=Gt(null),d=Gt(null),h=Gt(null),f=Gt({tabs:[],map:{}}),g=Gt(0),m=Gt(!1),v=Gt(!1),y=Gt(!1),w=Gt(""),b=Gt(0),k=jt({loading:!0,list:[]}),x=Gt(0),_=Gt(!1),C=Gt(""),$=Gt(!1),I=ii((()=>n.value.locale)),E=ii((()=>Boolean(o.value?.token))),R=ii((()=>!1!==n.value.imageUploader)),L=e=>{const t=s.value,n=t.selectionStart,i=t.selectionEnd||0,o=t.scrollTop;r.value=t.value.substring(0,n)+e+t.value.substring(i,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=o},A=e=>{const t=`![${n.value.locale.uploading} ${e.name}]()`;return L(t),Promise.resolve().then((()=>n.value.imageUploader(e))).then((n=>{r.value=r.value.replace(t,`\r\n`)})).catch((e=>{alert(e.message),r.value=r.value.replace(t,"")}))},z=async()=>{const{serverURL:a,lang:c,login:u,wordLimit:p,requiredMeta:d}=n.value;let h="";n.value.recaptchaV3Key&&(h=await(e=>{const t=Zl[e]??(Zl[e]=Ml.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:e=>t.then((t=>t.execute(e)))}})(n.value.recaptchaV3Key).execute("social"));const g={comment:C.value,nick:i.value.nick,mail:i.value.mail,link:i.value.link,ua:navigator.userAgent,url:n.value.path,recaptchaV3:h};if(o.value?.token)g.nick=o.value.display_name,g.mail=o.value.email,g.link=o.value.url;else{if("force"===u)return;if(d.indexOf("nick")>-1&&!g.nick)return l.value.nick?.focus(),alert(I.value.nickError);if(d.indexOf("mail")>-1&&!g.mail||g.mail&&!/^\w(?:[\w._-]*\w)?@(?:\w(?:[\w-]*\w)?\.)*\w+$/.exec(g.mail))return l.value.mail?.focus(),alert(I.value.mailError);if(!g.comment)return void s.value?.focus();g.nick||(g.nick=I.value.anonymous)}if(!_.value)return alert(I.value.wordHint.replace("$0",p[0].toString()).replace("$1",p[1].toString()).replace("$2",b.value.toString()));g.comment=Al(g.comment,f.value.map),e.replyId&&e.rootId?(g.pid=e.replyId,g.rid=e.rootId,g.at=e.replyUser):e.edit&&(g.eid=e.edit.objectId),$.value=!0,(({serverURL:e,lang:t,token:n,comment:r})=>{const i={"Content-Type":"application/json"};return n&&(i.Authorization=`Bearer ${n}`),r.eid?fetch(`${e}/comment/${r.eid}?lang=${t}`,{method:"PUT",headers:i,body:JSON.stringify(r)}).then((e=>e.json())):fetch(`${e}/comment?lang=${t}`,{method:"POST",headers:i,body:JSON.stringify(r)}).then((e=>e.json()))})({serverURL:a,lang:c,token:o.value?.token,comment:g}).then((n=>{if($.value=!1,n.errmsg)return alert(n.errmsg);t("submit",n.data),r.value="",w.value="",e.replyId&&t("cancel-reply"),e.edit?.objectId&&t("cancel-edit")})).catch((e=>{$.value=!1,alert(e.message)}))},O=e=>{c.value.contains(e.target)||u.value.contains(e.target)||(m.value=!1),p.value.contains(e.target)||d.value.contains(e.target)||(v.value=!1)},j=async e=>{const{scrollTop:t,clientHeight:r,scrollHeight:i}=e.target,o=(r+t)/i,l=n.value.search,s=h.value?.value||"";o<.9||k.loading||(k.loading=!0,k.list.push(...l.more?await l.more(s,k.list.length):await l.search(s)),k.loading=!1,setTimeout((()=>{e.target.scrollTop=t}),50))},T=Ki((e=>{k.list=[],j(e)}),300);Un([n,b],(([e,t])=>{const{wordLimit:n}=e;n?t<n[0]&&0!==n[0]?(x.value=n[0],_.value=!1):t>n[1]?(x.value=n[1],_.value=!1):(x.value=n[1],_.value=!0):(x.value=0,_.value=!0)}),{immediate:!0}),Un(v,(async e=>{if(!e)return;const t=n.value.search;h.value&&(h.value.value=""),k.loading=!0,k.list=t.default?await t.default():await t.search(""),k.loading=!1}));const P=({data:e})=>{e&&"profile"===e.type&&(o.value={...o.value,...e.data},[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(o)))))};return Bn((()=>{document.body.addEventListener("click",O),window.addEventListener("message",P),e.edit?.objectId&&(r.value=e.edit.orig),Un((()=>r.value),(e=>{const{highlighter:t,texRenderer:r}=n.value;C.value=e,w.value=zl(e,{emojiMap:f.value.map,highlighter:t,texRenderer:r}),b.value=(e=>(e=>e.match(/[\w\d\s\u00C0-\u024F]+/giu)||[])(e).reduce(((e,t)=>e+(""===t.trim()?0:t.trim().split(/\s+/u).length)),0)+(e=>e.match(/[\u4E00-\u9FA5]/gu)||[])(e).length)(e),e?gs(s.value):gs.destroy(s.value)}),{immediate:!0}),Un((()=>n.value.emoji),(e=>{return(t=Array.isArray(e)?e:[],Promise.all(t.map((e=>"string"==typeof e?Mo(S(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:r,icon:i,prefix:o,type:l,items:s}=e;t.tabs.push({name:n,icon:No(i,r,o,l),items:s.map((e=>{const n=`${o||""}${e}`;return t.map[n]=No(e,r,o,l),n}))})})),t}))).then((e=>{f.value=e}));var t}),{immediate:!0})})),Wn((()=>{document.body.removeEventListener("click",O),window.removeEventListener("message",P)})),{config:n,locale:I,insert:L,onChange:()=>{const e=a.value;e.files&&R.value&&A(e.files[0]).then((()=>{e.value=""}))},onDrop:e=>{if(e.dataTransfer?.items){const t=Bo(e.dataTransfer.items);t&&R.value&&(A(t),e.preventDefault())}},onKeyDown:e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&z()},onPaste:e=>{if(e.clipboardData){const t=Bo(e.clipboardData.items);t&&R.value&&A(t)}},onLogin:e=>{e.preventDefault();const{lang:t,serverURL:r}=n.value;(({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,i=window.open(`${t}/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=>{const t=({data:n})=>{n&&"object"==typeof n&&"userInfo"===n.type&&n.data.token&&(i?.close(),window.removeEventListener("message",t),e(n.data))};window.addEventListener("message",t)}))})({serverURL:r,lang:t}).then((e=>{o.value=e,(e.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(e))}))},onLogout:()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null")},onProfile:e=>{e.preventDefault();const{lang:t,serverURL:r}=n.value,i=(window.innerWidth-800)/2,l=(window.innerHeight-800)/2;window.open(`${r}/ui/profile?lng=${encodeURIComponent(t)}`,"_blank",`width=800,height=800,left=${i},top=${l},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`)?.postMessage({type:"TOKEN",data:o.value.token},"*")},submitComment:z,onImageWallScroll:j,onGifSearch:T,isLogin:E,userInfo:o,isSubmitting:$,wordNumber:b,wordLimit:x,isWordNumberLegal:_,editor:r,userMeta:i,emoji:f,emojiTabIndex:g,showEmoji:m,gifData:k,showGif:v,canUploadImage:R,previewText:w,showPreview:y,inputRefs:l,editorRef:s,emojiButtonRef:c,emojiPopupRef:u,gifButtonRef:p,gifPopupRef:d,imageUploadRef:a,gifSearchInputRef:h}}});const ks={class:"wl-comment"},xs={key:0,class:"wl-login-info"},_s={class:"wl-avatar"},Cs=["title"],Ss=["title"],$s=["src"],Is=["title","textContent"],Es={class:"wl-panel"},Rs=["for","textContent"],Ls=["id","onUpdate:modelValue","name","type"],As=["placeholder"],zs={class:"wl-preview"},Os=Nr("hr",null,null,-1),js=["innerHTML"],Ts={class:"wl-footer"},Ps={class:"wl-actions"},Us={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noreferrer"},Ms=["title"],Ns=["title"],Fs=["title"],Ds=["title"],Vs={class:"wl-info"},Bs={class:"wl-text-number"},Hs={key:0},Ws=Vr(" / "),qs=["textContent"],Zs=["textContent"],Gs=["disabled"],Ks=["placeholder"],Qs={key:0,class:"wl-loading"},Js={key:0,class:"wl-tab-wrapper"},Ys=["title","onClick"],Xs=["src","alt"],ea={key:0,class:"wl-tabs"},ta=["onClick"],na=["src","alt","title"],ra=["title"];var ia=Xl(bs,[["render",function(e,t,n,r,i,o){const l=Gn("CloseIcon"),s=Gn("MarkdownIcon"),a=Gn("EmojiIcon"),c=Gn("GifIcon"),u=Gn("ImageIcon"),p=Gn("PreviewIcon"),d=Gn("LoadingIcon"),h=Gn("ImageWall");return Er(),zr("div",ks,["disable"!==e.config.login&&e.isLogin&&!e.edit?.objectId?(Er(),zr("div",xs,[Nr("div",_s,[Nr("button",{class:"wl-logout-btn",title:e.locale.logout,onClick:t[0]||(t[0]=(...t)=>e.onLogout&&e.onLogout(...t))},[Fr(l,{size:14})],8,Cs),Nr("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:e.locale.profile,onClick:t[1]||(t[1]=(...t)=>e.onProfile&&e.onProfile(...t))},[Nr("img",{src:e.userInfo.avatar,alt:"avatar"},null,8,$s)],8,Ss)]),Nr("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:e.locale.profile,onClick:t[2]||(t[2]=(...t)=>e.onProfile&&e.onProfile(...t)),textContent:B(e.userInfo.display_name)},null,8,Is)])):Br("v-if",!0),Nr("div",Es,["force"!==e.config.login&&e.config.meta.length&&!e.isLogin?(Er(),zr("div",{key:0,class:F(["wl-header",`item${e.config.meta.length}`])},[(Er(!0),zr(xr,null,Jn(e.config.meta,(t=>(Er(),zr("div",{key:t,class:"wl-header-item"},[Nr("label",{for:t,textContent:B(e.locale[t]+(e.config.requiredMeta.includes(t)||!e.config.requiredMeta.length?"":`(${e.locale.optional})`))},null,8,Rs),qn(Nr("input",{id:`wl-${t}`,ref_for:!0,ref:n=>{n&&(e.inputRefs[t]=n)},"onUpdate:modelValue":n=>e.userMeta[t]=n,class:F(["wl-input",`wl-${t}`]),name:t,type:"mail"===t?"email":"text"},null,10,Ls),[[Ti,e.userMeta[t]]])])))),128))],2)):Br("v-if",!0),qn(Nr("textarea",{id:"wl-edit",ref:"editorRef","onUpdate:modelValue":t[3]||(t[3]=t=>e.editor=t),class:"wl-editor",placeholder:e.replyUser?`@${e.replyUser}`:e.locale.placeholder,onKeydown:t[4]||(t[4]=(...t)=>e.onKeyDown&&e.onKeyDown(...t)),onDrop:t[5]||(t[5]=(...t)=>e.onDrop&&e.onDrop(...t)),onPaste:t[6]||(t[6]=(...t)=>e.onPaste&&e.onPaste(...t))},null,40,As),[[Ii,e.editor]]),qn(Nr("div",zs,[Os,Nr("h4",null,B(e.locale.preview)+":",1),Br(" eslint-disable-next-line vue/no-v-html "),Nr("div",{class:"wl-content",innerHTML:e.previewText},null,8,js)],512),[[Ui,e.showPreview]]),Nr("div",Ts,[Nr("div",Ps,[Nr("a",Us,[Fr(s)]),qn(Nr("button",{ref:"emojiButtonRef",class:F(["wl-action",{actived:e.showEmoji}]),title:e.locale.emoji,onClick:t[7]||(t[7]=t=>e.showEmoji=!e.showEmoji)},[Fr(a)],10,Ms),[[Ui,e.emoji.tabs.length]]),e.config.search?(Er(),zr("button",{key:0,ref:"gifButtonRef",class:F(["wl-action",{actived:e.showGif}]),title:e.locale.gif,onClick:t[8]||(t[8]=t=>e.showGif=!e.showGif)},[Fr(c)],10,Ns)):Br("v-if",!0),Nr("input",{id:"wl-image-upload",ref:"imageUploadRef",class:"upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:t[9]||(t[9]=(...t)=>e.onChange&&e.onChange(...t))},null,544),e.canUploadImage?(Er(),zr("label",{key:1,for:"wl-image-upload",class:"wl-action",title:e.locale.uploadImage},[Fr(u)],8,Fs)):Br("v-if",!0),Nr("button",{class:F(["wl-action",{actived:e.showPreview}]),title:e.locale.preview,onClick:t[10]||(t[10]=t=>e.showPreview=!e.showPreview)},[Fr(p)],10,Ds)]),Nr("div",Vs,[Nr("div",Bs,[Vr(B(e.wordNumber)+" ",1),e.config.wordLimit?(Er(),zr("span",Hs,[Ws,Nr("span",{class:F({illegal:!e.isWordNumberLegal}),textContent:B(e.wordLimit)},null,10,qs)])):Br("v-if",!0),Vr(" "+B(e.locale.word),1)]),"disable"===e.config.login||e.isLogin?Br("v-if",!0):(Er(),zr("button",{key:0,class:"wl-btn",onClick:t[11]||(t[11]=(...t)=>e.onLogin&&e.onLogin(...t)),textContent:B(e.locale.login)},null,8,Zs)),"force"!==e.config.login||e.isLogin?(Er(),zr("button",{key:1,class:"wl-btn primary",title:"Cmd|Ctrl + Enter",disabled:e.isSubmitting,onClick:t[12]||(t[12]=(...t)=>e.submitComment&&e.submitComment(...t))},[e.isSubmitting?(Er(),Or(d,{key:0,size:16})):(Er(),zr(xr,{key:1},[Vr(B(e.locale.submit),1)],64))],8,Gs)):Br("v-if",!0)]),Nr("div",{ref:"gifPopupRef",class:F(["wl-gif-popup",{display:e.showGif}])},[Nr("input",{ref:"gifSearchInputRef",type:"text",placeholder:e.locale.gifSearchPlaceholder,onInput:t[13]||(t[13]=(...t)=>e.onGifSearch&&e.onGifSearch(...t))},null,40,Ks),Fr(h,{items:e.gifData.list,"column-width":200,gap:6,onInsert:t[14]||(t[14]=t=>e.insert(t)),onScroll:e.onImageWallScroll},null,8,["items","onScroll"]),e.gifData.loading?(Er(),zr("div",Qs,[Fr(d,{size:30})])):Br("v-if",!0)],2),Nr("div",{ref:"emojiPopupRef",class:F(["wl-emoji-popup",{display:e.showEmoji}])},[(Er(!0),zr(xr,null,Jn(e.emoji.tabs,((t,n)=>(Er(),zr(xr,{key:t.name},[n===e.emojiTabIndex?(Er(),zr("div",Js,[(Er(!0),zr(xr,null,Jn(t.items,(t=>(Er(),zr("button",{key:t,title:t,onClick:n=>e.insert(`:${t}:`)},[e.showEmoji?(Er(),zr("img",{key:0,class:"wl-emoji",src:e.emoji.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Xs)):Br("v-if",!0)],8,Ys)))),128))])):Br("v-if",!0)],64)))),128)),e.emoji.tabs.length>1?(Er(),zr("div",ea,[(Er(!0),zr(xr,null,Jn(e.emoji.tabs,((t,n)=>(Er(),zr("button",{key:t.name,class:F(["wl-tab",{active:e.emojiTabIndex===n}]),onClick:t=>e.emojiTabIndex=n},[Nr("img",{class:"wl-emoji",src:t.icon,alt:t.name,title:t.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,na)],10,ta)))),128))])):Br("v-if",!0)],2)])]),e.replyId||e.edit?.objectId?(Er(),zr("button",{key:1,class:"wl-close",title:e.locale.cancelReply,onClick:t[15]||(t[15]=t=>e.$emit(e.replyId?"cancel-reply":"cancel-edit"))},[Fr(l,{size:24})],8,ra)):Br("v-if",!0)])}],["__file","CommentBox.vue"]]);const oa=["approved","waiting","spam"];var la=Fn({components:{CommentBox:ia,DeleteIcon:()=>oi("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},oi("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"})),LikeIcon:({active:e=!1})=>oi("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[oi("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"})]),ReplyIcon:()=>oi("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},oi("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"})),EditIcon:()=>oi("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},oi("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"})),VerifiedIcon:()=>oi("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},oi("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"}))},props:{comment:{type:Object,required:!0},rootId:{type:String,required:!0},reply:{type:Object,default:null},edit:{type:Object,default:null}},emits:["submit","reply","like","delete","status","sticky","edit"],setup(e){const t=jn("config"),n=Pl(),r=Jl(),i=ii((()=>t.value.locale)),o=ii((()=>{const{link:t}=e.comment;return t?$(t)?t:`https://${t}`:""})),l=ii((()=>n.value.includes(e.comment.objectId))),s=((e,t)=>{const n=Ao();return ii((()=>z(e,n.value,t)))})(e.comment.insertedAt,i.value),a=ii((()=>"administrator"===r.value.type)),c=ii((()=>e.comment.user_id&&r.value.objectId===e.comment.user_id)),u=ii((()=>e.comment.objectId===e.reply?.objectId)),p=ii((()=>e.comment.objectId===e.edit?.objectId));return{config:t,locale:i,isReplyingCurrent:u,isEditingCurrent:p,link:o,like:l,time:s,isAdmin:a,isOwner:c,commentStatus:oa}}});const sa=["id"],aa={class:"wl-user","aria-hidden":"true"},ca=["src"],ua={class:"wl-card"},pa={class:"wl-head"},da=["href"],ha={key:1,class:"wl-nick"},fa=["textContent"],ga=["textContent"],ma=["textContent"],va=["textContent"],ya=["textContent"],wa={class:"wl-comment-actions"},ba=["title"],ka=["textContent"],xa=["title"],_a={class:"wl-meta","aria-hidden":"true"},Ca=["data-value","textContent"],Sa=["data-value","textContent"],$a=["data-value","textContent"],Ia=["innerHTML"],Ea={key:1,class:"wl-admin-actions"},Ra={class:"wl-comment-status"},La=["disabled","onClick","textContent"],Aa={key:3,class:"wl-quote"};const za=[{key:"insertedAt_desc",name:"latest"},{key:"insertedAt_asc",name:"oldest"},{key:"like_desc",name:"hottest"}];var Oa=Fn({name:"WalineRoot",components:{Reaction:cs,CommentBox:ia,CommentCard:Xl(la,[["render",function(e,t,n,r,i,o){const l=Gn("VerifiedIcon"),s=Gn("EditIcon"),a=Gn("DeleteIcon"),c=Gn("LikeIcon"),u=Gn("ReplyIcon"),p=Gn("CommentBox"),d=Gn("CommentCard",!0);return Er(),zr("div",{id:e.comment.objectId,class:"wl-item"},[Nr("div",aa,[e.comment.avatar?(Er(),zr("img",{key:0,src:e.comment.avatar},null,8,ca)):Br("v-if",!0),e.comment.type?(Er(),Or(l,{key:1})):Br("v-if",!0)]),Nr("div",ua,[Nr("div",pa,[e.link?(Er(),zr("a",{key:0,class:"wl-nick",href:e.link,target:"_blank",rel:"nofollow noreferrer"},B(e.comment.nick),9,da)):(Er(),zr("span",ha,B(e.comment.nick),1)),"administrator"===e.comment.type?(Er(),zr("span",{key:2,class:"wl-badge",textContent:B(e.locale.admin)},null,8,fa)):Br("v-if",!0),e.comment.label?(Er(),zr("span",{key:3,class:"wl-badge",textContent:B(e.comment.label)},null,8,ga)):Br("v-if",!0),e.comment.sticky?(Er(),zr("span",{key:4,class:"wl-badge",textContent:B(e.locale.sticky)},null,8,ma)):Br("v-if",!0),void 0!==e.comment.level&&e.comment.level>=0?(Er(),zr("span",{key:5,class:F(`wl-badge level${e.comment.level}`),textContent:B(e.locale[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,va)):Br("v-if",!0),Nr("span",{class:"wl-time",textContent:B(e.time)},null,8,ya),Nr("div",wa,[e.isAdmin||e.isOwner?(Er(),zr("button",{key:0,class:"wl-edit",onClick:t[0]||(t[0]=t=>e.$emit("edit",e.comment))},[Fr(s)])):Br("v-if",!0),e.isAdmin||e.isOwner?(Er(),zr("button",{key:1,class:"wl-delete",onClick:t[1]||(t[1]=t=>e.$emit("delete",e.comment))},[Fr(a)])):Br("v-if",!0),Nr("button",{class:"wl-like",title:e.like?e.locale.cancelLike:e.locale.like,onClick:t[2]||(t[2]=t=>e.$emit("like",e.comment))},[Fr(c,{active:e.like},null,8,["active"]),"like"in e.comment?(Er(),zr("span",{key:0,textContent:B(e.comment.like)},null,8,ka)):Br("v-if",!0)],8,ba),Nr("button",{class:F(["wl-reply",{active:e.isReplyingCurrent}]),title:e.isReplyingCurrent?e.locale.cancelReply:e.locale.reply,onClick:t[3]||(t[3]=t=>e.$emit("reply",e.isReplyingCurrent?null:e.comment))},[Fr(u)],10,xa)])]),Nr("div",_a,[e.comment.addr?(Er(),zr("span",{key:0,class:"wl-addr","data-value":e.comment.addr,textContent:B(e.comment.addr)},null,8,Ca)):Br("v-if",!0),e.comment.browser?(Er(),zr("span",{key:1,class:"wl-browser","data-value":e.comment.browser,textContent:B(e.comment.browser)},null,8,Sa)):Br("v-if",!0),e.comment.os?(Er(),zr("span",{key:2,class:"wl-os","data-value":e.comment.os,textContent:B(e.comment.os)},null,8,$a)):Br("v-if",!0)]),Br(" eslint-disable vue/no-v-html "),e.isEditingCurrent?Br("v-if",!0):(Er(),zr("div",{key:0,class:"wl-content",innerHTML:e.comment.comment},null,8,Ia)),Br(" eslint-enable vue/no-v-html "),e.isAdmin&&!e.isEditingCurrent?(Er(),zr("div",Ea,[Nr("span",Ra,[(Er(!0),zr(xr,null,Jn(e.commentStatus,(t=>(Er(),zr("button",{key:t,class:F(`wl-btn wl-${t}`),disabled:e.comment.status===t,onClick:n=>e.$emit("status",{status:t,comment:e.comment}),textContent:B(e.locale[t])},null,10,La)))),128))]),e.isAdmin&&!e.comment.rid?(Er(),zr("button",{key:0,class:"wl-btn wl-sticky",onClick:t[4]||(t[4]=t=>e.$emit("sticky",e.comment))},B(e.comment.sticky?e.locale.unsticky:e.locale.sticky),1)):Br("v-if",!0)])):Br("v-if",!0),e.isReplyingCurrent||e.isEditingCurrent?(Er(),zr("div",{key:2,class:F({"wl-reply-wrapper":e.isReplyingCurrent,"wl-edit-wrapper":e.isEditingCurrent})},[Fr(p,{edit:e.edit,"reply-id":e.reply?.objectId,"reply-user":e.comment.nick,"root-id":e.rootId,onSubmit:t[5]||(t[5]=t=>e.$emit("submit",t)),onCancelReply:t[6]||(t[6]=t=>e.$emit("reply",null)),onCancelEdit:t[7]||(t[7]=t=>e.$emit("edit",null))},null,8,["edit","reply-id","reply-user","root-id"])],2)):Br("v-if",!0),e.comment.children?(Er(),zr("div",Aa,[(Er(!0),zr(xr,null,Jn(e.comment.children,(n=>(Er(),Or(d,{key:n.objectId,comment:n,reply:e.reply,edit:e.edit,"root-id":e.rootId,onReply:t[8]||(t[8]=t=>e.$emit("reply",t)),onSubmit:t[9]||(t[9]=t=>e.$emit("submit",t)),onLike:t[10]||(t[10]=t=>e.$emit("like",t)),onEdit:t[11]||(t[11]=t=>e.$emit("edit",t)),onDelete:t[12]||(t[12]=t=>e.$emit("delete",t)),onStatus:t[13]||(t[13]=t=>e.$emit("status",t)),onSticky:t[14]||(t[14]=t=>e.$emit("sticky",t))},null,8,["comment","reply","edit","root-id"])))),128))])):Br("v-if",!0)])],8,sa)}],["__file","CommentCard.vue"]]),LoadingIcon:ms},props:["serverURL","path","meta","requiredMeta","dark","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright","recaptchaV3Key","reaction"],setup(e){const l=ii((()=>(({serverURL:e,path:l=location.pathname,lang:s="zh-CN",locale:a,emoji:u=["//unpkg.com/@waline/emojis@1.1.0/weibo"],meta:p=["nick","mail","link"],requiredMeta:d=[],dark:h=!1,pageSize:f=10,wordLimit:g,imageUploader:m,highlighter:v,texRenderer:w,copyright:b=!0,login:k="enable",search:x=i(),reaction:_,recaptchaV3Key:S="",...$})=>({serverURL:I(e),path:C(l),locale:{...y[s]||y["zh-CN"],..."object"==typeof a?a:{}},wordLimit:E(g),meta:t(p),requiredMeta:t(d),imageUploader:R(m,n),highlighter:R(v,c),texRenderer:R(w,r),lang:s,dark:h,emoji:u,pageSize:f,login:k,copyright:b,search:x,recaptchaV3Key:S,reaction:!0===_?o:_||!1,...$}))(e))),s=Jl(),a=Pl(),u=Gt("loading"),p=Gt(0),d=Gt(1),h=Gt(0),f=Gt(za[0].key),g=Gt([]),m=Gt(null),v=Gt(null),k=ii((()=>{return"string"==typeof(e=l.value.dark)?"auto"===e?`@media(prefers-color-scheme:dark){body${L}}`:`${e}${L}`:!0===e?`:root${L}`:"";var e}));let x;!function(e,t={}){const n=Gt(!1),{document:r=uo,immediate:i=!0,manual:o=!1,id:l="vueuse_styletag_"+ ++zo}=t,s=Gt(e);let a=()=>{};const c=()=>{if(!r)return;const e=r.getElementById(l)||r.createElement("style");e.type="text/css",e.id=l,t.media&&(e.media=t.media),r.head.appendChild(e),n.value||(a=Un(s,(t=>{e.innerText=t}),{immediate:!0}),n.value=!0)},u=()=>{r&&n.value&&(a(),r.head.removeChild(r.getElementById(l)),n.value=!1)};i&&!o&&Qi(c),o||Gi(u),Tt(n)}(k);const S=e=>{const{serverURL:t,path:n,pageSize:r}=l.value,i=new AbortController;u.value="loading",x?.(),(({serverURL:e,lang:t,path:n,page:r,pageSize:i,sortBy:o,signal:l,token:s})=>{const a={};return s&&(a.Authorization=`Bearer ${s}`),fetch(`${e}/comment?path=${encodeURIComponent(n)}&pageSize=${i}&page=${r}&lang=${t}&sortBy=${o}`,{signal:l,headers:a}).then((e=>e.json())).then((e=>b(e,"comment data")))})({serverURL:t,lang:l.value.lang,path:n,pageSize:r,sortBy:f.value,page:e,signal:i.signal,token:s.value?.token}).then((t=>{u.value="success",p.value=t.count,g.value.push(...t.data),d.value=e,h.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),u.value="error")})),x=i.abort.bind(i)},$=()=>{p.value=0,g.value=[],S(1)};return function(e,t){if(Qr){let n=Qr.provides;const r=Qr.parent&&Qr.parent.provides;r===n&&(n=Qr.provides=Object.create(r)),n[e]=t}}("config",l),Un((()=>e.path),$),Bn((()=>$())),{config:l,darkmodeStyle:k,i18n:ii((()=>l.value.locale)),status:u,count:p,page:d,totalPages:h,sortBy:f,sortByItems:za,data:g,reply:m,edit:v,loadMore:()=>S(d.value+1),refresh:$,onSortByChange:e=>{f.value!==e&&(f.value=e,$())},onReply:e=>{m.value=e},onSubmit:e=>{if(v.value)v.value.comment=e.comment,v.value.orig=e.orig;else if(e.rid){const t=g.value.find((({objectId:t})=>t===e.rid));if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else g.value.unshift(e)},onStatusChange:async({comment:e,status:t})=>{if(e.status===t)return;const{serverURL:n,lang:r}=l.value;await _({serverURL:n,lang:r,token:s.value?.token,objectId:e.objectId,status:t}),e.status=t},onDelete:async({objectId:e})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:t,lang:n}=l.value;await(({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${e}/comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then((e=>e.json())))({serverURL:t,lang:n,token:s.value?.token,objectId:e}),g.value.some(((t,n)=>t.objectId===e?(g.value=g.value.filter(((e,t)=>t!==n)),!0):t.children.some(((r,i)=>r.objectId===e&&(g.value[n].children=t.children.filter(((e,t)=>t!==i)),!0)))))},onSticky:async e=>{if(e.rid)return;const{serverURL:t,lang:n}=l.value;await _({serverURL:t,lang:n,token:s.value?.token,objectId:e.objectId,sticky:e.sticky?0:1}),e.sticky=!e.sticky},onLike:async e=>{const{serverURL:t,lang:n}=l.value,{objectId:r}=e,i=a.value.includes(r);await(({serverURL:e,lang:t,objectId:n,like:r})=>fetch(`${e}/comment/${n}?lang=${t}`,{method:"PUT",headers:w,body:JSON.stringify({like:r})}).then((e=>e.json())))({serverURL:t,lang:n,objectId:r,like:!i}),i?a.value=a.value.filter((e=>e!==r)):(a.value=[...a.value,r],a.value.length>50&&(a.value=a.value.slice(-50))),e.like=(e.like||0)+(i?-1:1)},onEdit:e=>{v.value=e},version:"2.11.2"}}});const ja={"data-waline":""},Ta={class:"wl-meta-head"},Pa={class:"wl-count"},Ua=["textContent"],Ma={class:"wl-sort"},Na=["onClick"],Fa={class:"wl-cards"},Da={key:1,class:"wl-operation"},Va=["textContent"],Ba={key:0,class:"wl-loading"},Ha=["textContent"],Wa={class:"wl-operation"},qa=["textContent"],Za={key:3,class:"wl-power"},Ga=Vr(" Powered by "),Ka=Nr("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noreferrer"}," Waline ",-1);var Qa=Xl(Oa,[["render",function(e,t,n,r,i,o){const l=Gn("Reaction"),s=Gn("CommentBox"),a=Gn("CommentCard"),c=Gn("LoadingIcon");return Er(),zr("div",ja,[Fr(l),e.reply?Br("v-if",!0):(Er(),Or(s,{key:0,onSubmit:e.onSubmit},null,8,["onSubmit"])),Nr("div",Ta,[Nr("div",Pa,[e.count?(Er(),zr("span",{key:0,class:"wl-num",textContent:B(e.count)},null,8,Ua)):Br("v-if",!0),Vr(" "+B(e.i18n.comment),1)]),Nr("ul",Ma,[(Er(!0),zr(xr,null,Jn(e.sortByItems,(t=>(Er(),zr("li",{key:t.key,class:F([t.key===e.sortBy?"active":""]),onClick:n=>e.onSortByChange(t.key)},B(e.i18n[t.name]),11,Na)))),128))])]),Nr("div",Fa,[(Er(!0),zr(xr,null,Jn(e.data,(t=>(Er(),Or(a,{key:t.objectId,"root-id":t.objectId,comment:t,reply:e.reply,edit:e.edit,onReply:e.onReply,onEdit:e.onEdit,onSubmit:e.onSubmit,onStatus:e.onStatusChange,onDelete:e.onDelete,onSticky:e.onSticky,onLike:e.onLike},null,8,["root-id","comment","reply","edit","onReply","onEdit","onSubmit","onStatus","onDelete","onSticky","onLike"])))),128))]),"error"===e.status?(Er(),zr("div",Da,[Nr("button",{type:"button",class:"wl-btn",onClick:t[0]||(t[0]=(...t)=>e.refresh&&e.refresh(...t)),textContent:B(e.i18n.refresh)},null,8,Va)])):(Er(),zr(xr,{key:2},["loading"===e.status?(Er(),zr("div",Ba,[Fr(c,{size:30})])):e.data.length?e.page<e.totalPages?(Er(),zr(xr,{key:2},[Br(" Load more button "),Nr("div",Wa,[Nr("button",{type:"button",class:"wl-btn",onClick:t[1]||(t[1]=(...t)=>e.loadMore&&e.loadMore(...t)),textContent:B(e.i18n.more)},null,8,qa)])],2112)):Br("v-if",!0):(Er(),zr("div",{key:1,class:"wl-empty",textContent:B(e.i18n.sofa)},null,8,Ha))],64)),Br(" Copyright Information "),e.config.copyright?(Er(),zr("div",Za,[Ga,Ka,Vr(" v"+B(e.version),1)])):Br("v-if",!0)])}],["__file","Waline.vue"]]);const Ja=(e,t)=>{t.forEach(((t,n)=>{t.innerText=e[n].toString()}))},Ya=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:i="zh-CN"})=>{const o=new AbortController,l=Array.from(document.querySelectorAll(n)),s=e=>{const n=Ol(e);return null!==n&&t!==n},a=n=>(({serverURL:e,lang:t,paths:n,signal:r})=>k({serverURL:e,lang:t,paths:n,type:["time"],signal:r}).then((e=>Array.isArray(e)?e:[e])))({serverURL:I(e),paths:n.map((e=>Ol(e)||t)),lang:i,signal:o.signal}).then((e=>Ja(e,n))).catch(Fo);if(r){const n=l.filter((e=>!s(e))),r=l.filter(s);(c={serverURL:I(e),path:t,lang:i},x({...c,type:"time"})).then((e=>Ja(new Array(n.length).fill(e),n))),r.length&&a(r)}else a(l);var c;return o.abort.bind(o)};exports.RecentComments=({el:e,serverURL:t,count:n,lang:r="zh-CN"})=>{const i=Jl(),o=Do(e),l=new AbortController;return(({serverURL:e,lang:t,count:n,signal:r,token:i})=>{const o={};return i&&(o.Authorization=`Bearer ${i}`),fetch(`${e}/comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:o}).then((e=>e.json())).then((e=>b(e,"recent comment")))})({serverURL:t,count:n,lang:r,signal:l.signal,token:i.value?.token}).then((e=>o&&e.length?(o.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:()=>{l.abort(),o.innerHTML=""}}):{comments:e,destroy:()=>l.abort()}))},exports.commentCount=jl,exports.defaultLocales=y,exports.init=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...i})=>{const o=e?Do(e):null;if(e&&!o)throw new Error("Option 'el' do not match any domElement!");if(!i.serverURL)throw new Error("Option 'serverURL' is missing!");const l=jt({...i}),s=jt({comment:n,pageview:r,path:t}),a=o?Di((()=>oi(Qa,{path:s.path,...l}))):null;a&&a.mount(o);const c=Tn((()=>{s.comment&&jl({serverURL:l.serverURL,path:s.path,selector:"string"==typeof s.comment?s.comment:void 0})})),u=Tn((()=>{s.pageview&&Ya({serverURL:l.serverURL,path:s.path,selector:"string"==typeof s.pageview?s.pageview:void 0})}));return{el:o,update:({comment:e,pageview:t,path:n=window.location.pathname,...r}={})=>{Object.entries(r).forEach((([e,t])=>{l[e]=t})),s.path=n,void 0!==e&&(s.comment=e),void 0!==t&&(s.pageview=t)},destroy:()=>{a?.unmount(),c(),u()}}},exports.pageviewCount=Ya,exports.version="2.11.2";
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=["nick","mail","link"],t=t=>t.filter((t=>e.includes(t))),n=e=>new Promise(((t,n)=>{if(e.size>128e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result?.toString()||""),r.onerror=n})),r=e=>!0===e?'<p class="wl-tex">Tex is not available in preview</p>':'<span class="wl-tex">Tex is not available in preview</span>',i=()=>{const e={next:""},t=({keyword:e,pos:t})=>{const n=new URLSearchParams("media_filter=minimal");return n.set("key","PAY5JLFIH6V6"),n.set("limit","20"),n.set("pos",t||""),n.set("q",e),fetch(`https://g.tenor.com/v1/search?${n.toString()}`,{headers:{"Content-Type":"application/json"}}).then((e=>e.json())).catch((()=>({next:t||"",results:[]})))};return{search:(n="")=>t({keyword:n}).then((t=>(e.next=t.next,t.results.map((e=>({title:e.title,src:e.media[0].tinygif.url})))))),more:n=>t({keyword:n,pos:e.next}).then((t=>(e.next=t.next,t.results.map((e=>({title:e.title,src:e.media[0].tinygif.url}))))))}},o=["//unpkg.com/@waline/emojis/tieba/tieba_agree.png","//unpkg.com/@waline/emojis/tieba/tieba_look_down.png","//unpkg.com/@waline/emojis/tieba/tieba_sunglasses.png","//unpkg.com/@waline/emojis/tieba/tieba_pick_nose.png","//unpkg.com/@waline/emojis/tieba/tieba_awkward.png","//unpkg.com/@waline/emojis/tieba/tieba_sleep.png"],l=new RegExp(`(${/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source}|${/</.source})|((?:${/(?:^|\s)\/\/(.+?)$/gm.source})|(?:${/\/\*([\S\s]*?)\*\//gm.source}))`,"gmi"),s=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],a={},c=e=>{let t=0;return e.replace(l,((e,n,r)=>{if(r)return`<span style="color: slategray">${r}</span>`;if("<"===n)return"<";let i;a[n]?i=a[n]:(i=s[t],a[n]=i);const o=`<span style="color: #${i}">${n}</span>`;return t=++t%s.length,o}))},u=["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"],p=e=>Object.fromEntries(e.map(((e,t)=>[u[t],e])));var d=p(["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!\n 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?"]),h=p(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),f=p(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),g=p(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎評論","來發評論吧~","提交","喜歡","取消喜歡","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字","評論字數應在 $0 到 $1 字之間!\n當前字數:$2","匿名","潛水","冒泡","吐槽","活躍","話癆","傳說","表情包","搜索表情包","個人資料","通過","待審核","垃圾","取消置頂","按倒序","按正序","按熱度","你認為這篇文章怎麼樣?"]),m=p(["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 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?"]),v=p(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова","Пожалуйста, введите комментарии от $0 до $1 слов!\nНомер текущего слова: $2","Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]);const y={zh:f,"zh-cn":f,"zh-CN":f,"zh-tw":g,"zh-TW":g,en:d,"en-US":d,"en-us":d,jp:h,"jp-jp":h,"jp-JP":h,"pt-br":m,"pt-BR":m,ru:v,"ru-ru":v,"ru-RU":v},w={"Content-Type":"application/json"},b=(e,t="")=>{if("object"==typeof e&&e.errno)throw new TypeError(`Fetch ${t} failed with ${e.errno}: ${e.errmsg}`);return e},k=({serverURL:e,lang:t,paths:n,type:r,signal:i})=>fetch(`${e}/article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:i}).then((e=>e.json())).then((e=>b(e,"article count"))),x=({serverURL:e,lang:t,path:n,type:r,action:i})=>fetch(`${e}/article?lang=${t}`,{method:"POST",headers:w,body:JSON.stringify({path:n,type:r,action:i})}).then((e=>e.json())).then((e=>b(e,"article count"))),_=({serverURL:e,lang:t,token:n,objectId:r,...i})=>fetch(`${e}/comment/${r}?lang=${t}`,{method:"PUT",headers:{...w,Authorization:`Bearer ${n}`},body:JSON.stringify(i)}).then((e=>e.json())),C=e=>{try{e=decodeURI(e)}catch(e){}return e},S=(e="")=>e.replace(/\/$/u,""),$=e=>/^(https?:)?\/\//.test(e),I=e=>{const t=S(e);return $(t)?t:`https://${t}`},E=e=>Array.isArray(e)?e:!!e&&[0,e],R=(e,t)=>"function"==typeof e?e:!1!==e&&t,L="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-color:#888;--waline-bgcolor:#1e1e1e;--waline-bgcolor-light:#272727;--waline-bgcolor-hover: #444;--waline-border-color:#333;--waline-disable-bgcolor:#444;--waline-disable-color:#272727;--waline-bq-color:#272727;--waline-info-bgcolor:#272727;--waline-info-color:#666}",A=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},z=(e,t,n)=>{if(!e)return"";const r="string"==typeof e?new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e):e,i=t.getTime()-r.getTime(),o=Math.floor(i/864e5);if(0===o){const e=i%864e5,t=Math.floor(e/36e5);if(0===t){const t=e%36e5,r=Math.floor(t/6e4);if(0===r){const e=t%6e4;return`${Math.round(e/1e3)} ${n.seconds}`}return`${r} ${n.minutes}`}return`${t} ${n.hours}`}return o<0?n.now:o<8?`${o} ${n.days}`:(e=>{const t=A(e.getDate(),2),n=A(e.getMonth()+1,2);return`${A(e.getFullYear(),2)}-${n}-${t}`})(r)};function O(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const j=O("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function T(e){return!!e||""===e}function P(e){if(ne(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=se(r)?N(r):P(r);if(i)for(const e in i)t[e]=i[e]}return t}return se(e)||ce(e)?e:void 0}const U=/;(?![^(]*\))/g,M=/:(.+)/;function N(e){const t={};return e.split(U).forEach((e=>{if(e){const n=e.split(M);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function F(e){let t="";if(se(e))t=e;else if(ne(e))for(let n=0;n<e.length;n++){const r=F(e[n]);r&&(t+=r+" ")}else if(ce(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function D(e,t){if(e===t)return!0;let n=oe(e),r=oe(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=ae(e),r=ae(t),n||r)return e===t;if(n=ne(e),r=ne(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=D(e[r],t[r]);return n}(e,t);if(n=ce(e),r=ce(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!D(e[n],t[n]))return!1}}return String(e)===String(t)}function V(e,t){return e.findIndex((e=>D(e,t)))}const B=e=>se(e)?e:null==e?"":ne(e)||ce(e)&&(e.toString===pe||!le(e.toString))?JSON.stringify(e,H,2):String(e),H=(e,t)=>t&&t.__v_isRef?H(e,t.value):re(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:ie(t)?{[`Set(${t.size})`]:[...t.values()]}:!ce(t)||ne(t)||he(t)?t:String(t),W={},q=[],Z=()=>{},G=()=>!1,K=/^on[^a-z]/,Q=e=>K.test(e),J=e=>e.startsWith("onUpdate:"),Y=Object.assign,X=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ee=Object.prototype.hasOwnProperty,te=(e,t)=>ee.call(e,t),ne=Array.isArray,re=e=>"[object Map]"===de(e),ie=e=>"[object Set]"===de(e),oe=e=>"[object Date]"===de(e),le=e=>"function"==typeof e,se=e=>"string"==typeof e,ae=e=>"symbol"==typeof e,ce=e=>null!==e&&"object"==typeof e,ue=e=>ce(e)&&le(e.then)&&le(e.catch),pe=Object.prototype.toString,de=e=>pe.call(e),he=e=>"[object Object]"===de(e),fe=e=>se(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,ge=O(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),me=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ve=/-(\w)/g,ye=me((e=>e.replace(ve,((e,t)=>t?t.toUpperCase():"")))),we=/\B([A-Z])/g,be=me((e=>e.replace(we,"-$1").toLowerCase())),ke=me((e=>e.charAt(0).toUpperCase()+e.slice(1))),xe=me((e=>e?`on${ke(e)}`:"")),_e=(e,t)=>!Object.is(e,t),Ce=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Se=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},$e=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ie;let Ee;class Re{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&Ee&&(this.parent=Ee,this.index=(Ee.scopes||(Ee.scopes=[])).push(this)-1)}run(e){if(this.active){const t=Ee;try{return Ee=this,e()}finally{Ee=t}}}on(){Ee=this}off(){Ee=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}const Le=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Ae=e=>(e.w&Te)>0,ze=e=>(e.n&Te)>0,Oe=new WeakMap;let je=0,Te=1;let Pe;const Ue=Symbol(""),Me=Symbol("");class Ne{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=Ee){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=Pe,t=De;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Pe,Pe=this,De=!0,Te=1<<++je,je<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Te})(this):Fe(this),this.fn()}finally{je<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const i=t[r];Ae(i)&&!ze(i)?i.delete(e):t[n++]=i,i.w&=~Te,i.n&=~Te}t.length=n}})(this),Te=1<<--je,Pe=this.parent,De=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Pe===this?this.deferStop=!0:this.active&&(Fe(this),this.onStop&&this.onStop(),this.active=!1)}}function Fe(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let De=!0;const Ve=[];function Be(){Ve.push(De),De=!1}function He(){const e=Ve.pop();De=void 0===e||e}function We(e,t,n){if(De&&Pe){let t=Oe.get(e);t||Oe.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=Le()),qe(r)}}function qe(e,t){let n=!1;je<=30?ze(e)||(e.n|=Te,n=!Ae(e)):n=!e.has(Pe),n&&(e.add(Pe),Pe.deps.push(e))}function Ze(e,t,n,r,i,o){const l=Oe.get(e);if(!l)return;let s=[];if("clear"===t)s=[...l.values()];else if("length"===n&&ne(e))l.forEach(((e,t)=>{("length"===t||t>=r)&&s.push(e)}));else switch(void 0!==n&&s.push(l.get(n)),t){case"add":ne(e)?fe(n)&&s.push(l.get("length")):(s.push(l.get(Ue)),re(e)&&s.push(l.get(Me)));break;case"delete":ne(e)||(s.push(l.get(Ue)),re(e)&&s.push(l.get(Me)));break;case"set":re(e)&&s.push(l.get(Ue))}if(1===s.length)s[0]&&Ge(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);Ge(Le(e))}}function Ge(e,t){const n=ne(e)?e:[...e];for(const e of n)e.computed&&Ke(e);for(const e of n)e.computed||Ke(e)}function Ke(e,t){(e!==Pe||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Qe=O("__proto__,__v_isRef,__isVue"),Je=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(ae)),Ye=rt(),Xe=rt(!1,!0),et=rt(!0),tt=nt();function nt(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Dt(this);for(let e=0,t=this.length;e<t;e++)We(n,0,e+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(Dt)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){Be();const n=Dt(this)[t].apply(this,e);return He(),n}})),e}function rt(e=!1,t=!1){return function(n,r,i){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&i===(e?t?zt:At:t?Lt:Rt).get(n))return n;const o=ne(n);if(!e&&o&&te(tt,r))return Reflect.get(tt,r,i);const l=Reflect.get(n,r,i);return(ae(r)?Je.has(r):Qe(r))?l:(e||We(n,0,r),t?l:Zt(l)?o&&fe(r)?l:l.value:ce(l)?e?Tt(l):jt(l):l)}}function it(e=!1){return function(t,n,r,i){let o=t[n];if(Mt(o)&&Zt(o)&&!Zt(r))return!1;if(!e&&(Nt(r)||Mt(r)||(o=Dt(o),r=Dt(r)),!ne(t)&&Zt(o)&&!Zt(r)))return o.value=r,!0;const l=ne(t)&&fe(n)?Number(n)<t.length:te(t,n),s=Reflect.set(t,n,r,i);return t===Dt(i)&&(l?_e(r,o)&&Ze(t,"set",n,r):Ze(t,"add",n,r)),s}}const ot={get:Ye,set:it(),deleteProperty:function(e,t){const n=te(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&Ze(e,"delete",t,void 0),r},has:function(e,t){const n=Reflect.has(e,t);return ae(t)&&Je.has(t)||We(e,0,t),n},ownKeys:function(e){return We(e,0,ne(e)?"length":Ue),Reflect.ownKeys(e)}},lt={get:et,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},st=Y({},ot,{get:Xe,set:it(!0)}),at=e=>e,ct=e=>Reflect.getPrototypeOf(e);function ut(e,t,n=!1,r=!1){const i=Dt(e=e.__v_raw),o=Dt(t);n||(t!==o&&We(i,0,t),We(i,0,o));const{has:l}=ct(i),s=r?at:n?Ht:Bt;return l.call(i,t)?s(e.get(t)):l.call(i,o)?s(e.get(o)):void(e!==i&&e.get(t))}function pt(e,t=!1){const n=this.__v_raw,r=Dt(n),i=Dt(e);return t||(e!==i&&We(r,0,e),We(r,0,i)),e===i?n.has(e):n.has(e)||n.has(i)}function dt(e,t=!1){return e=e.__v_raw,!t&&We(Dt(e),0,Ue),Reflect.get(e,"size",e)}function ht(e){e=Dt(e);const t=Dt(this);return ct(t).has.call(t,e)||(t.add(e),Ze(t,"add",e,e)),this}function ft(e,t){t=Dt(t);const n=Dt(this),{has:r,get:i}=ct(n);let o=r.call(n,e);o||(e=Dt(e),o=r.call(n,e));const l=i.call(n,e);return n.set(e,t),o?_e(t,l)&&Ze(n,"set",e,t):Ze(n,"add",e,t),this}function gt(e){const t=Dt(this),{has:n,get:r}=ct(t);let i=n.call(t,e);i||(e=Dt(e),i=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return i&&Ze(t,"delete",e,void 0),o}function mt(){const e=Dt(this),t=0!==e.size,n=e.clear();return t&&Ze(e,"clear",void 0,void 0),n}function vt(e,t){return function(n,r){const i=this,o=i.__v_raw,l=Dt(o),s=t?at:e?Ht:Bt;return!e&&We(l,0,Ue),o.forEach(((e,t)=>n.call(r,s(e),s(t),i)))}}function yt(e,t,n){return function(...r){const i=this.__v_raw,o=Dt(i),l=re(o),s="entries"===e||e===Symbol.iterator&&l,a="keys"===e&&l,c=i[e](...r),u=n?at:t?Ht:Bt;return!t&&We(o,0,a?Me:Ue),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function wt(e){return function(...t){return"delete"!==e&&this}}function bt(){const e={get(e){return ut(this,e)},get size(){return dt(this)},has:pt,add:ht,set:ft,delete:gt,clear:mt,forEach:vt(!1,!1)},t={get(e){return ut(this,e,!1,!0)},get size(){return dt(this)},has:pt,add:ht,set:ft,delete:gt,clear:mt,forEach:vt(!1,!0)},n={get(e){return ut(this,e,!0)},get size(){return dt(this,!0)},has(e){return pt.call(this,e,!0)},add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear"),forEach:vt(!0,!1)},r={get(e){return ut(this,e,!0,!0)},get size(){return dt(this,!0)},has(e){return pt.call(this,e,!0)},add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear"),forEach:vt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{e[i]=yt(i,!1,!1),n[i]=yt(i,!0,!1),t[i]=yt(i,!1,!0),r[i]=yt(i,!0,!0)})),[e,n,t,r]}const[kt,xt,_t,Ct]=bt();function St(e,t){const n=t?e?Ct:_t:e?xt:kt;return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(te(n,r)&&r in t?n:t,r,i)}const $t={get:St(!1,!1)},It={get:St(!1,!0)},Et={get:St(!0,!1)},Rt=new WeakMap,Lt=new WeakMap,At=new WeakMap,zt=new WeakMap;function Ot(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>de(e).slice(8,-1))(e))}function jt(e){return Mt(e)?e:Pt(e,!1,ot,$t,Rt)}function Tt(e){return Pt(e,!0,lt,Et,At)}function Pt(e,t,n,r,i){if(!ce(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const l=Ot(e);if(0===l)return e;const s=new Proxy(e,2===l?r:n);return i.set(e,s),s}function Ut(e){return Mt(e)?Ut(e.__v_raw):!(!e||!e.__v_isReactive)}function Mt(e){return!(!e||!e.__v_isReadonly)}function Nt(e){return!(!e||!e.__v_isShallow)}function Ft(e){return Ut(e)||Mt(e)}function Dt(e){const t=e&&e.__v_raw;return t?Dt(t):e}function Vt(e){return Se(e,"__v_skip",!0),e}const Bt=e=>ce(e)?jt(e):e,Ht=e=>ce(e)?Tt(e):e;function Wt(e){De&&Pe&&qe((e=Dt(e)).dep||(e.dep=Le()))}function qt(e,t){(e=Dt(e)).dep&&Ge(e.dep)}function Zt(e){return!(!e||!0!==e.__v_isRef)}function Gt(e){return Qt(e,!1)}function Kt(e){return Qt(e,!0)}function Qt(e,t){return Zt(e)?e:new Jt(e,t)}class Jt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Dt(e),this._value=t?e:Bt(e)}get value(){return Wt(this),this._value}set value(e){const t=this.__v_isShallow||Nt(e)||Mt(e);e=t?e:Dt(e),_e(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Bt(e),qt(this))}}function Yt(e){return Zt(e)?e.value:e}const Xt={get:(e,t,n)=>Yt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Zt(i)&&!Zt(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function en(e){return Ut(e)?e:new Proxy(e,Xt)}var tn;class nn{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[tn]=!1,this._dirty=!0,this.effect=new Ne(e,(()=>{this._dirty||(this._dirty=!0,qt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=Dt(this);return Wt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function rn(e,t,n,r){let i;try{i=r?e(...r):e()}catch(e){ln(e,t,n)}return i}function on(e,t,n,r){if(le(e)){const i=rn(e,t,n,r);return i&&ue(i)&&i.catch((e=>{ln(e,t,n)})),i}const i=[];for(let o=0;o<e.length;o++)i.push(on(e[o],t,n,r));return i}function ln(e,t,n,r=!0){t&&t.vnode;if(t){let r=t.parent;const i=t.proxy,o=n;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,i,o))return;r=r.parent}const l=t.appContext.config.errorHandler;if(l)return void rn(l,null,10,[e,i,o])}!function(e,t,n,r=!0){console.error(e)}(e,0,0,r)}tn="__v_isReadonly";let sn=!1,an=!1;const cn=[];let un=0;const pn=[];let dn=null,hn=0;const fn=Promise.resolve();let gn=null;function mn(e){const t=gn||fn;return e?t.then(this?e.bind(this):e):t}function vn(e){cn.length&&cn.includes(e,sn&&e.allowRecurse?un+1:un)||(null==e.id?cn.push(e):cn.splice(function(e){let t=un+1,n=cn.length;for(;t<n;){const r=t+n>>>1;kn(cn[r])<e?t=r+1:n=r}return t}(e.id),0,e),yn())}function yn(){sn||an||(an=!0,gn=fn.then(_n))}function wn(e,t=(sn?un+1:0)){for(;t<cn.length;t++){const e=cn[t];e&&e.pre&&(cn.splice(t,1),t--,e())}}function bn(e){if(pn.length){const e=[...new Set(pn)];if(pn.length=0,dn)return void dn.push(...e);for(dn=e,dn.sort(((e,t)=>kn(e)-kn(t))),hn=0;hn<dn.length;hn++)dn[hn]();dn=null,hn=0}}const kn=e=>null==e.id?1/0:e.id,xn=(e,t)=>{const n=kn(e)-kn(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function _n(e){an=!1,sn=!0,cn.sort(xn);try{for(un=0;un<cn.length;un++){const e=cn[un];e&&!1!==e.active&&rn(e,null,14)}}finally{un=0,cn.length=0,bn(),sn=!1,gn=null,(cn.length||pn.length)&&_n()}}function Cn(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||W;let i=n;const o=t.startsWith("update:"),l=o&&t.slice(7);if(l&&l in r){const e=`${"modelValue"===l?"model":l}Modifiers`,{number:t,trim:o}=r[e]||W;o&&(i=n.map((e=>e.trim()))),t&&(i=n.map($e))}let s,a=r[s=xe(t)]||r[s=xe(ye(t))];!a&&o&&(a=r[s=xe(be(t))]),a&&on(a,e,6,i);const c=r[s+"Once"];if(c){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,on(c,e,6,i)}}function Sn(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const o=e.emits;let l={};return o?(ne(o)?o.forEach((e=>l[e]=null)):Y(l,o),ce(e)&&r.set(e,l),l):(ce(e)&&r.set(e,null),null)}function $n(e,t){return!(!e||!Q(t))&&(t=t.slice(2).replace(/Once$/,""),te(e,t[0].toLowerCase()+t.slice(1))||te(e,be(t))||te(e,t))}let In=null,En=null;function Rn(e){const t=In;return In=e,En=e&&e.type.__scopeId||null,t}function Ln(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:o,propsOptions:[l],slots:s,attrs:a,emit:c,render:u,renderCache:p,data:d,setupState:h,ctx:f,inheritAttrs:g}=e;let m,v;const y=Rn(e);try{if(4&n.shapeFlag){const e=i||r;m=Hr(u.call(e,e,p,o,h,d,f)),v=a}else{const e=t;m=Hr(e.length>1?e(o,{attrs:a,slots:s,emit:c}):e(o,null)),v=t.props?a:An(a)}}catch(t){$r.length=0,ln(t,e,1),m=Fr(Cr)}let w=m;if(v&&!1!==g){const e=Object.keys(v),{shapeFlag:t}=w;e.length&&7&t&&(l&&e.some(J)&&(v=zn(v,l)),w=Dr(w,v))}return n.dirs&&(w=Dr(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),m=w,Rn(y),m}const An=e=>{let t;for(const n in e)("class"===n||"style"===n||Q(n))&&((t||(t={}))[n]=e[n]);return t},zn=(e,t)=>{const n={};for(const r in e)J(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function On(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(t[o]!==e[o]&&!$n(n,o))return!0}return!1}function jn(e,t,n=!1){const r=Qr||In;if(r){const i=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&le(t)?t.call(r.proxy):t}}function Tn(e,t){return Mn(e,null,t)}const Pn={};function Un(e,t,n){return Mn(e,t,n)}function Mn(e,t,{immediate:n,deep:r,flush:i,onTrack:o,onTrigger:l}=W){const s=Qr;let a,c,u=!1,p=!1;if(Zt(e)?(a=()=>e.value,u=Nt(e)):Ut(e)?(a=()=>e,r=!0):ne(e)?(p=!0,u=e.some((e=>Ut(e)||Nt(e))),a=()=>e.map((e=>Zt(e)?e.value:Ut(e)?Nn(e):le(e)?rn(e,s,2):void 0))):a=le(e)?t?()=>rn(e,s,2):()=>{if(!s||!s.isUnmounted)return c&&c(),on(e,s,3,[d])}:Z,t&&r){const e=a;a=()=>Nn(e())}let d=e=>{c=m.onStop=()=>{rn(e,s,4)}};if(ei)return d=Z,t?n&&on(t,s,3,[a(),p?[]:void 0,d]):a(),Z;let h=p?[]:Pn;const f=()=>{if(m.active)if(t){const e=m.run();(r||u||(p?e.some(((e,t)=>_e(e,h[t]))):_e(e,h)))&&(c&&c(),on(t,s,3,[e,h===Pn?void 0:h,d]),h=e)}else m.run()};let g;f.allowRecurse=!!t,"sync"===i?g=f:"post"===i?g=()=>yr(f,s&&s.suspense):(f.pre=!0,s&&(f.id=s.uid),g=()=>vn(f));const m=new Ne(a,g);return t?n?f():h=m.run():"post"===i?yr(m.run.bind(m),s&&s.suspense):m.run(),()=>{m.stop(),s&&s.scope&&X(s.scope.effects,m)}}function Nn(e,t){if(!ce(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),Zt(e))Nn(e.value,t);else if(ne(e))for(let n=0;n<e.length;n++)Nn(e[n],t);else if(ie(e)||re(e))e.forEach((e=>{Nn(e,t)}));else if(he(e))for(const n in e)Nn(e[n],t);return e}function Fn(e){return le(e)?{setup:e,name:e.name}:e}const Dn=e=>!!e.type.__asyncLoader;const Vn=e=>(t,n=Qr)=>(!ei||"sp"===e)&&function(e,t,n=Qr,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;Be(),Jr(n);const i=on(t,n,e,r);return Yr(),He(),i});return r?i.unshift(o):i.push(o),o}}(e,t,n),Bn=Vn("m"),Hn=Vn("bum"),Wn=Vn("um");function qn(e,t){const n=In;if(null===n)return e;const r=ri(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[n,o,l,s=W]=t[e];le(n)&&(n={mounted:n,updated:n}),n.deep&&Nn(o),i.push({dir:n,instance:r,value:o,oldValue:void 0,arg:l,modifiers:s})}return e}function Zn(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let l=0;l<i.length;l++){const s=i[l];o&&(s.oldValue=o[l].value);let a=s.dir[r];a&&(Be(),on(a,n,8,[e.el,s,e,t]),He())}}function Gn(e,t){return function(e,t,n=!0,r=!1){const i=In||Qr;if(i){const n=i.type;if("components"===e){const e=function(e,t=!0){return le(e)?e.displayName||e.name:e.name||t&&e.__name}(n,!1);if(e&&(e===t||e===ye(t)||e===ke(ye(t))))return n}const o=Qn(i[e]||n[e],t)||Qn(i.appContext[e],t);return!o&&r?n:o}}("components",e,!0,t)||e}const Kn=Symbol();function Qn(e,t){return e&&(e[t]||e[ye(t)]||e[ke(ye(t))])}function Jn(e,t,n,r){let i;const o=n&&n[r];if(ne(e)||se(e)){i=new Array(e.length);for(let n=0,r=e.length;n<r;n++)i[n]=t(e[n],n,void 0,o&&o[n])}else if("number"==typeof e){i=new Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,o&&o[n])}else if(ce(e))if(e[Symbol.iterator])i=Array.from(e,((e,n)=>t(e,n,void 0,o&&o[n])));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,l=n.length;r<l;r++){const l=n[r];i[r]=t(e[l],l,r,o&&o[r])}}else i=[];return n&&(n[r]=i),i}const Yn=e=>e?Xr(e)?ri(e)||e.proxy:Yn(e.parent):null,Xn=Y(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=>Yn(e.parent),$root:e=>Yn(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>vn(e.update)),$nextTick:e=>e.n||(e.n=mn.bind(e.proxy)),$watch:e=>Z}),er={get({_:e},t){const{ctx:n,setupState:r,data:i,props:o,accessCache:l,type:s,appContext:a}=e;let c;if("$"!==t[0]){const s=l[t];if(void 0!==s)switch(s){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(r!==W&&te(r,t))return l[t]=1,r[t];if(i!==W&&te(i,t))return l[t]=2,i[t];if((c=e.propsOptions[0])&&te(c,t))return l[t]=3,o[t];if(n!==W&&te(n,t))return l[t]=4,n[t];l[t]=0}}const u=Xn[t];let p,d;return u?("$attrs"===t&&We(e,0,t),u(e)):(p=s.__cssModules)&&(p=p[t])?p:n!==W&&te(n,t)?(l[t]=4,n[t]):(d=a.config.globalProperties,te(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return i!==W&&te(i,t)?(i[t]=n,!0):r!==W&&te(r,t)?(r[t]=n,!0):!te(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(o[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:o}},l){let s;return!!n[l]||e!==W&&te(e,l)||t!==W&&te(t,l)||(s=o[0])&&te(s,l)||te(r,l)||te(Xn,l)||te(i.config.globalProperties,l)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:te(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function tr(e,t,n,r=!1){const i={},o={};Se(o,Pr,1),e.propsDefaults=Object.create(null),nr(e,t,i,o);for(const t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:Pt(i,!1,st,It,Lt):e.type.props?e.props=i:e.props=o,e.attrs=o}function nr(e,t,n,r){const[i,o]=e.propsOptions;let l,s=!1;if(t)for(let a in t){if(ge(a))continue;const c=t[a];let u;i&&te(i,u=ye(a))?o&&o.includes(u)?(l||(l={}))[u]=c:n[u]=c:$n(e.emitsOptions,a)||a in r&&c===r[a]||(r[a]=c,s=!0)}if(o){const t=Dt(n),r=l||W;for(let l=0;l<o.length;l++){const s=o[l];n[s]=rr(i,t,s,r[s],e,!te(r,s))}}return s}function rr(e,t,n,r,i,o){const l=e[n];if(null!=l){const e=te(l,"default");if(e&&void 0===r){const e=l.default;if(l.type!==Function&&le(e)){const{propsDefaults:o}=i;n in o?r=o[n]:(Jr(i),r=o[n]=e.call(null,t),Yr())}else r=e}l[0]&&(o&&!e?r=!1:!l[1]||""!==r&&r!==be(n)||(r=!0))}return r}function ir(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const o=e.props,l={},s=[];if(!o)return ce(e)&&r.set(e,q),q;if(ne(o))for(let e=0;e<o.length;e++){const t=ye(o[e]);or(t)&&(l[t]=W)}else if(o)for(const e in o){const t=ye(e);if(or(t)){const n=o[e],r=l[t]=ne(n)||le(n)?{type:n}:n;if(r){const e=ar(Boolean,r.type),n=ar(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||te(r,"default"))&&s.push(t)}}}const a=[l,s];return ce(e)&&r.set(e,a),a}function or(e){return"$"!==e[0]}function lr(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function sr(e,t){return lr(e)===lr(t)}function ar(e,t){return ne(t)?t.findIndex((t=>sr(t,e))):le(t)&&sr(t,e)?0:-1}const cr=e=>"_"===e[0]||"$stable"===e,ur=e=>ne(e)?e.map(Hr):[Hr(e)],pr=(e,t,n)=>{if(t._n)return t;const r=function(e,t=In,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Lr(-1);const i=Rn(t),o=e(...n);return Rn(i),r._d&&Lr(1),o};return r._n=!0,r._c=!0,r._d=!0,r}(((...e)=>ur(t(...e))),n);return r._c=!1,r},dr=(e,t,n)=>{const r=e._ctx;for(const n in e){if(cr(n))continue;const i=e[n];if(le(i))t[n]=pr(0,i,r);else if(null!=i){const e=ur(i);t[n]=()=>e}}},hr=(e,t)=>{const n=ur(t);e.slots.default=()=>n};function fr(){return{app:null,config:{isNativeTag:G,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 gr=0;function mr(e,t){return function(n,r=null){le(n)||(n=Object.assign({},n)),null==r||ce(r)||(r=null);const i=fr(),o=new Set;let l=!1;const s=i.app={_uid:gr++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:li,get config(){return i.config},set config(e){},use:(e,...t)=>(o.has(e)||(e&&le(e.install)?(o.add(e),e.install(s,...t)):le(e)&&(o.add(e),e(s,...t))),s),mixin:e=>s,component:(e,t)=>t?(i.components[e]=t,s):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,s):i.directives[e],mount(o,a,c){if(!l){const u=Fr(n,r);return u.appContext=i,a&&t?t(u,o):e(u,o,c),l=!0,s._container=o,o.__vue_app__=s,ri(u.component)||u.component.proxy}},unmount(){l&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,s)};return s}}function vr(e,t,n,r,i=!1){if(ne(e))return void e.forEach(((e,o)=>vr(e,t&&(ne(t)?t[o]:t),n,r,i)));if(Dn(r)&&!i)return;const o=4&r.shapeFlag?ri(r.component)||r.component.proxy:r.el,l=i?null:o,{i:s,r:a}=e,c=t&&t.r,u=s.refs===W?s.refs={}:s.refs,p=s.setupState;if(null!=c&&c!==a&&(se(c)?(u[c]=null,te(p,c)&&(p[c]=null)):Zt(c)&&(c.value=null)),le(a))rn(a,s,12,[l,u]);else{const t=se(a),r=Zt(a);if(t||r){const s=()=>{if(e.f){const n=t?u[a]:a.value;i?ne(n)&&X(n,o):ne(n)?n.includes(o)||n.push(o):t?(u[a]=[o],te(p,a)&&(p[a]=u[a])):(a.value=[o],e.k&&(u[e.k]=a.value))}else t?(u[a]=l,te(p,a)&&(p[a]=l)):r&&(a.value=l,e.k&&(u[e.k]=l))};l?(s.id=-1,yr(s,n)):s()}}}const yr=function(e,t){var n;t&&t.pendingBranch?ne(e)?t.effects.push(...e):t.effects.push(e):(ne(n=e)?pn.push(...n):dn&&dn.includes(n,n.allowRecurse?hn+1:hn)||pn.push(n),yn())};function wr(e){return function(e,t){(Ie||(Ie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})).__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:o,createText:l,createComment:s,setText:a,setElementText:c,parentNode:u,nextSibling:p,setScopeId:d=Z,cloneNode:h,insertStaticContent:f}=e,g=(e,t,n,r=null,i=null,o=null,l=!1,s=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!Tr(e,t)&&(r=B(e),M(e,i,o,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:p}=t;switch(c){case _r:m(e,t,n,r);break;case Cr:v(e,t,n,r);break;case Sr:null==e&&y(t,n,r,l);break;case xr:E(e,t,n,r,i,o,l,s,a);break;default:1&p?k(e,t,n,r,i,o,l,s,a):6&p?R(e,t,n,r,i,o,l,s,a):(64&p||128&p)&&c.process(e,t,n,r,i,o,l,s,a,G)}null!=u&&i&&vr(u,e&&e.ref,o,t||e,!t)},m=(e,t,r,i)=>{if(null==e)n(t.el=l(t.children),r,i);else{const n=t.el=e.el;t.children!==e.children&&a(n,t.children)}},v=(e,t,r,i)=>{null==e?n(t.el=s(t.children||""),r,i):t.el=e.el},y=(e,t,n,r)=>{[e.el,e.anchor]=f(e.children,t,n,r,e.el,e.anchor)},w=({el:e,anchor:t},r,i)=>{let o;for(;e&&e!==t;)o=p(e),n(e,r,i),e=o;n(t,r,i)},b=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=p(e),r(e),e=n;r(t)},k=(e,t,n,r,i,o,l,s,a)=>{l=l||"svg"===t.type,null==e?x(t,n,r,i,o,l,s,a):S(e,t,i,o,l,s,a)},x=(e,t,r,l,s,a,u,p)=>{let d,f;const{type:g,props:m,shapeFlag:v,transition:y,patchFlag:w,dirs:b}=e;if(e.el&&void 0!==h&&-1===w)d=e.el=h(e.el);else{if(d=e.el=o(e.type,a,m&&m.is,m),8&v?c(d,e.children):16&v&&C(e.children,d,null,l,s,a&&"foreignObject"!==g,u,p),b&&Zn(e,null,l,"created"),m){for(const t in m)"value"===t||ge(t)||i(d,t,null,m[t],a,e.children,l,s,V);"value"in m&&i(d,"value",null,m.value),(f=m.onVnodeBeforeMount)&&Zr(f,l,e)}_(d,e,e.scopeId,u,l)}b&&Zn(e,null,l,"beforeMount");const k=(!s||s&&!s.pendingBranch)&&y&&!y.persisted;k&&y.beforeEnter(d),n(d,t,r),((f=m&&m.onVnodeMounted)||k||b)&&yr((()=>{f&&Zr(f,l,e),k&&y.enter(d),b&&Zn(e,null,l,"mounted")}),s)},_=(e,t,n,r,i)=>{if(n&&d(e,n),r)for(let t=0;t<r.length;t++)d(e,r[t]);if(i){if(t===i.subTree){const t=i.vnode;_(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},C=(e,t,n,r,i,o,l,s,a=0)=>{for(let c=a;c<e.length;c++){const a=e[c]=s?Wr(e[c]):Hr(e[c]);g(null,a,t,n,r,i,o,l,s)}},S=(e,t,n,r,o,l,s)=>{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:p,dirs:d}=t;u|=16&e.patchFlag;const h=e.props||W,f=t.props||W;let g;n&&br(n,!1),(g=f.onVnodeBeforeUpdate)&&Zr(g,n,t,e),d&&Zn(t,e,n,"beforeUpdate"),n&&br(n,!0);const m=o&&"foreignObject"!==t.type;if(p?$(e.dynamicChildren,p,a,n,r,m,l):s||j(e,t,a,null,n,r,m,l,!1),u>0){if(16&u)I(a,t,h,f,n,r,o);else if(2&u&&h.class!==f.class&&i(a,"class",null,f.class,o),4&u&&i(a,"style",h.style,f.style,o),8&u){const l=t.dynamicProps;for(let t=0;t<l.length;t++){const s=l[t],c=h[s],u=f[s];u===c&&"value"!==s||i(a,s,c,u,o,e.children,n,r,V)}}1&u&&e.children!==t.children&&c(a,t.children)}else s||null!=p||I(a,t,h,f,n,r,o);((g=f.onVnodeUpdated)||d)&&yr((()=>{g&&Zr(g,n,t,e),d&&Zn(t,e,n,"updated")}),r)},$=(e,t,n,r,i,o,l)=>{for(let s=0;s<t.length;s++){const a=e[s],c=t[s],p=a.el&&(a.type===xr||!Tr(a,c)||70&a.shapeFlag)?u(a.el):n;g(a,c,p,null,r,i,o,l,!0)}},I=(e,t,n,r,o,l,s)=>{if(n!==r){for(const a in r){if(ge(a))continue;const c=r[a],u=n[a];c!==u&&"value"!==a&&i(e,a,u,c,s,t.children,o,l,V)}if(n!==W)for(const a in n)ge(a)||a in r||i(e,a,n[a],null,s,t.children,o,l,V);"value"in r&&i(e,"value",n.value,r.value)}},E=(e,t,r,i,o,s,a,c,u)=>{const p=t.el=e?e.el:l(""),d=t.anchor=e?e.anchor:l("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:g}=t;g&&(c=c?c.concat(g):g),null==e?(n(p,r,i),n(d,r,i),C(t.children,r,d,o,s,a,c,u)):h>0&&64&h&&f&&e.dynamicChildren?($(e.dynamicChildren,f,r,o,s,a,c),(null!=t.key||o&&t===o.subTree)&&kr(e,t,!0)):j(e,t,r,d,o,s,a,c,u)},R=(e,t,n,r,i,o,l,s,a)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,l,a):L(t,n,r,i,o,l,a):A(e,t,a)},L=(e,t,n,r,i,o,l)=>{const s=e.component=function(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||Gr,o={uid:Kr++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Re(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ir(r,i),emitsOptions:Sn(r,i),emit:null,emitted:null,propsDefaults:W,inheritAttrs:r.inheritAttrs,ctx:W,data:W,props:W,attrs:W,slots:W,refs:W,setupState:W,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};o.ctx={_:o},o.root=t?t.root:o,o.emit=Cn.bind(null,o),e.ce&&e.ce(o);return o}(e,r,i);if(e.type.__isKeepAlive&&(s.ctx.renderer=G),function(e,t=!1){ei=t;const{props:n,children:r}=e.vnode,i=Xr(e);tr(e,n,i,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Dt(t),Se(t,"_",n)):dr(t,e.slots={})}else e.slots={},t&&hr(e,t);Se(e.slots,Pr,1)})(e,r);const o=i?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Vt(new Proxy(e.ctx,er));const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?function(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(We(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;Jr(e),Be();const i=rn(r,e,0,[e.props,n]);if(He(),Yr(),ue(i)){if(i.then(Yr,Yr),t)return i.then((n=>{ti(e,n,t)})).catch((t=>{ln(t,e,0)}));e.asyncDep=i}else ti(e,i,t)}else ni(e,t)}(e,t):void 0;ei=!1}(s),s.asyncDep){if(i&&i.registerDep(s,z),!e.el){const e=s.subTree=Fr(Cr);v(null,e,t,n)}}else z(s,e,t,n,i,o,l)},A=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:i,component:o}=e,{props:l,children:s,patchFlag:a}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!i&&!s||s&&s.$stable)||r!==l&&(r?!l||On(r,l,c):!!l);if(1024&a)return!0;if(16&a)return r?On(r,l,c):!!l;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(l[n]!==r[n]&&!$n(c,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void O(r,t,n);r.next=t,function(e){const t=cn.indexOf(e);t>un&&cn.splice(t,1)}(r.update),r.update()}else t.el=e.el,r.vnode=t},z=(e,t,n,r,i,o,l)=>{const s=()=>{if(e.isMounted){let t,{next:n,bu:r,u:s,parent:a,vnode:c}=e,p=n;br(e,!1),n?(n.el=c.el,O(e,n,l)):n=c,r&&Ce(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Zr(t,a,n,c),br(e,!0);const d=Ln(e),h=e.subTree;e.subTree=d,g(h,d,u(h.el),B(h),e,i,o),n.el=d.el,null===p&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,d.el),s&&yr(s,i),(t=n.props&&n.props.onVnodeUpdated)&&yr((()=>Zr(t,a,n,c)),i)}else{let l;const{el:s,props:a}=t,{bm:c,m:u,parent:p}=e,d=Dn(t);if(br(e,!1),c&&Ce(c),!d&&(l=a&&a.onVnodeBeforeMount)&&Zr(l,p,t),br(e,!0),s&&Q){const n=()=>{e.subTree=Ln(e),Q(s,e.subTree,e,i,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const l=e.subTree=Ln(e);g(null,l,n,r,e,i,o),t.el=l.el}if(u&&yr(u,i),!d&&(l=a&&a.onVnodeMounted)){const e=t;yr((()=>Zr(l,p,e)),i)}(256&t.shapeFlag||p&&Dn(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&yr(e.a,i),e.isMounted=!0,t=n=r=null}},a=e.effect=new Ne(s,(()=>vn(c)),e.scope),c=e.update=()=>a.run();c.id=e.uid,br(e,!0),c()},O=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:l}}=e,s=Dt(i),[a]=e.propsOptions;let c=!1;if(!(r||l>0)||16&l){let r;nr(e,t,i,o)&&(c=!0);for(const o in s)t&&(te(t,o)||(r=be(o))!==o&&te(t,r))||(a?!n||void 0===n[o]&&void 0===n[r]||(i[o]=rr(a,s,o,void 0,e,!0)):delete i[o]);if(o!==s)for(const e in o)t&&te(t,e)||(delete o[e],c=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let l=n[r];if($n(e.emitsOptions,l))continue;const u=t[l];if(a)if(te(o,l))u!==o[l]&&(o[l]=u,c=!0);else{const t=ye(l);i[t]=rr(a,s,t,u,e,!1)}else u!==o[l]&&(o[l]=u,c=!0)}}c&&Ze(e,"set","$attrs")}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,l=W;if(32&r.shapeFlag){const e=t._;e?n&&1===e?o=!1:(Y(i,t),n||1!==e||delete i._):(o=!t.$stable,dr(t,i)),l=t}else t&&(hr(e,t),l={default:1});if(o)for(const e in i)cr(e)||e in l||delete i[e]})(e,t.children,n),Be(),wn(),He()},j=(e,t,n,r,i,o,l,s,a=!1)=>{const u=e&&e.children,p=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void P(u,d,n,r,i,o,l,s,a);if(256&h)return void T(u,d,n,r,i,o,l,s,a)}8&f?(16&p&&V(u,i,o),d!==u&&c(n,d)):16&p?16&f?P(u,d,n,r,i,o,l,s,a):V(u,i,o,!0):(8&p&&c(n,""),16&f&&C(d,n,r,i,o,l,s,a))},T=(e,t,n,r,i,o,l,s,a)=>{t=t||q;const c=(e=e||q).length,u=t.length,p=Math.min(c,u);let d;for(d=0;d<p;d++){const r=t[d]=a?Wr(t[d]):Hr(t[d]);g(e[d],r,n,null,i,o,l,s,a)}c>u?V(e,i,o,!0,!1,p):C(t,n,r,i,o,l,s,a,p)},P=(e,t,n,r,i,o,l,s,a)=>{let c=0;const u=t.length;let p=e.length-1,d=u-1;for(;c<=p&&c<=d;){const r=e[c],u=t[c]=a?Wr(t[c]):Hr(t[c]);if(!Tr(r,u))break;g(r,u,n,null,i,o,l,s,a),c++}for(;c<=p&&c<=d;){const r=e[p],c=t[d]=a?Wr(t[d]):Hr(t[d]);if(!Tr(r,c))break;g(r,c,n,null,i,o,l,s,a),p--,d--}if(c>p){if(c<=d){const e=d+1,p=e<u?t[e].el:r;for(;c<=d;)g(null,t[c]=a?Wr(t[c]):Hr(t[c]),n,p,i,o,l,s,a),c++}}else if(c>d)for(;c<=p;)M(e[c],i,o,!0),c++;else{const h=c,f=c,m=new Map;for(c=f;c<=d;c++){const e=t[c]=a?Wr(t[c]):Hr(t[c]);null!=e.key&&m.set(e.key,c)}let v,y=0;const w=d-f+1;let b=!1,k=0;const x=new Array(w);for(c=0;c<w;c++)x[c]=0;for(c=h;c<=p;c++){const r=e[c];if(y>=w){M(r,i,o,!0);continue}let u;if(null!=r.key)u=m.get(r.key);else for(v=f;v<=d;v++)if(0===x[v-f]&&Tr(r,t[v])){u=v;break}void 0===u?M(r,i,o,!0):(x[u-f]=c+1,u>=k?k=u:b=!0,g(r,t[u],n,null,i,o,l,s,a),y++)}const _=b?function(e){const t=e.slice(),n=[0];let r,i,o,l,s;const a=e.length;for(r=0;r<a;r++){const a=e[r];if(0!==a){if(i=n[n.length-1],e[i]<a){t[r]=i,n.push(r);continue}for(o=0,l=n.length-1;o<l;)s=o+l>>1,e[n[s]]<a?o=s+1:l=s;a<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}o=n.length,l=n[o-1];for(;o-- >0;)n[o]=l,l=t[l];return n}(x):q;for(v=_.length-1,c=w-1;c>=0;c--){const e=f+c,p=t[e],d=e+1<u?t[e+1].el:r;0===x[c]?g(null,p,n,d,i,o,l,s,a):b&&(v<0||c!==_[v]?U(p,n,d,2):v--)}}},U=(e,t,r,i,o=null)=>{const{el:l,type:s,transition:a,children:c,shapeFlag:u}=e;if(6&u)return void U(e.component.subTree,t,r,i);if(128&u)return void e.suspense.move(t,r,i);if(64&u)return void s.move(e,t,r,G);if(s===xr){n(l,t,r);for(let e=0;e<c.length;e++)U(c[e],t,r,i);return void n(e.anchor,t,r)}if(s===Sr)return void w(e,t,r);if(2!==i&&1&u&&a)if(0===i)a.beforeEnter(l),n(l,t,r),yr((()=>a.enter(l)),o);else{const{leave:e,delayLeave:i,afterLeave:o}=a,s=()=>n(l,t,r),c=()=>{e(l,(()=>{s(),o&&o()}))};i?i(l,s,c):c()}else n(l,t,r)},M=(e,t,n,r=!1,i=!1)=>{const{type:o,props:l,ref:s,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d}=e;if(null!=s&&vr(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&d,f=!Dn(e);let g;if(f&&(g=l&&l.onVnodeBeforeUnmount)&&Zr(g,t,e),6&u)D(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);h&&Zn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,i,G,r):c&&(o!==xr||p>0&&64&p)?V(c,t,n,!1,!0):(o===xr&&384&p||!i&&16&u)&&V(a,t,n),r&&N(e)}(f&&(g=l&&l.onVnodeUnmounted)||h)&&yr((()=>{g&&Zr(g,t,e),h&&Zn(e,null,t,"unmounted")}),n)},N=e=>{const{type:t,el:n,anchor:i,transition:o}=e;if(t===xr)return void F(n,i);if(t===Sr)return void b(e);const l=()=>{r(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,i=()=>t(n,l);r?r(e.el,l,i):i()}else l()},F=(e,t)=>{let n;for(;e!==t;)n=p(e),r(e),e=n;r(t)},D=(e,t,n)=>{const{bum:r,scope:i,update:o,subTree:l,um:s}=e;r&&Ce(r),i.stop(),o&&(o.active=!1,M(l,e,t,n)),s&&yr(s,t),yr((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},V=(e,t,n,r=!1,i=!1,o=0)=>{for(let l=o;l<e.length;l++)M(e[l],t,n,r,i)},B=e=>6&e.shapeFlag?B(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),H=(e,t,n)=>{null==e?t._vnode&&M(t._vnode,null,null,!0):g(t._vnode||null,e,t,null,null,null,n),wn(),bn(),t._vnode=e},G={p:g,um:M,m:U,r:N,mt:L,mc:C,pc:j,pbc:$,n:B,o:e};let K,Q;t&&([K,Q]=t(G));return{render:H,hydrate:K,createApp:mr(H,K)}}(e)}function br({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function kr(e,t,n=!1){const r=e.children,i=t.children;if(ne(r)&&ne(i))for(let e=0;e<r.length;e++){const t=r[e];let o=i[e];1&o.shapeFlag&&!o.dynamicChildren&&((o.patchFlag<=0||32===o.patchFlag)&&(o=i[e]=Wr(i[e]),o.el=t.el),n||kr(t,o))}}const xr=Symbol(void 0),_r=Symbol(void 0),Cr=Symbol(void 0),Sr=Symbol(void 0),$r=[];let Ir=null;function Er(e=!1){$r.push(Ir=e?null:[])}let Rr=1;function Lr(e){Rr+=e}function Ar(e){return e.dynamicChildren=Rr>0?Ir||q:null,$r.pop(),Ir=$r[$r.length-1]||null,Rr>0&&Ir&&Ir.push(e),e}function zr(e,t,n,r,i,o){return Ar(Nr(e,t,n,r,i,o,!0))}function Or(e,t,n,r,i){return Ar(Fr(e,t,n,r,i,!0))}function jr(e){return!!e&&!0===e.__v_isVNode}function Tr(e,t){return e.type===t.type&&e.key===t.key}const Pr="__vInternal",Ur=({key:e})=>null!=e?e:null,Mr=({ref:e,ref_key:t,ref_for:n})=>null!=e?se(e)||Zt(e)||le(e)?{i:In,r:e,k:t,f:!!n}:e:null;function Nr(e,t=null,n=null,r=0,i=null,o=(e===xr?0:1),l=!1,s=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ur(t),ref:t&&Mr(t),scopeId:En,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return s?(qr(a,n),128&o&&e.normalize(a)):n&&(a.shapeFlag|=se(n)?8:16),Rr>0&&!l&&Ir&&(a.patchFlag>0||6&o)&&32!==a.patchFlag&&Ir.push(a),a}const Fr=function(e,t=null,n=null,r=0,i=null,o=!1){e&&e!==Kn||(e=Cr);if(jr(e)){const r=Dr(e,t,!0);return n&&qr(r,n),Rr>0&&!o&&Ir&&(6&r.shapeFlag?Ir[Ir.indexOf(e)]=r:Ir.push(r)),r.patchFlag|=-2,r}l=e,le(l)&&"__vccOpts"in l&&(e=e.__vccOpts);var l;if(t){t=function(e){return e?Ft(e)||Pr in e?Y({},e):e:null}(t);let{class:e,style:n}=t;e&&!se(e)&&(t.class=F(e)),ce(n)&&(Ft(n)&&!ne(n)&&(n=Y({},n)),t.style=P(n))}const s=se(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:ce(e)?4:le(e)?2:0;return Nr(e,t,n,r,i,s,o,!0)};function Dr(e,t,n=!1){const{props:r,ref:i,patchFlag:o,children:l}=e,s=t?function(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=F([t.class,r.class]));else if("style"===e)t.style=P([t.style,r.style]);else if(Q(e)){const n=t[e],i=r[e];!i||n===i||ne(n)&&n.includes(i)||(t[e]=n?[].concat(n,i):i)}else""!==e&&(t[e]=r[e])}return t}(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Ur(s),ref:t&&t.ref?n&&i?ne(i)?i.concat(Mr(t)):[i,Mr(t)]:Mr(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xr?-1===o?16:16|o:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Dr(e.ssContent),ssFallback:e.ssFallback&&Dr(e.ssFallback),el:e.el,anchor:e.anchor}}function Vr(e=" ",t=0){return Fr(_r,null,e,t)}function Br(e="",t=!1){return t?(Er(),Or(Cr,null,e)):Fr(Cr,null,e)}function Hr(e){return null==e||"boolean"==typeof e?Fr(Cr):ne(e)?Fr(xr,null,e.slice()):"object"==typeof e?Wr(e):Fr(_r,null,String(e))}function Wr(e){return null===e.el||e.memo?e:Dr(e)}function qr(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(ne(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),qr(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Pr in t?3===r&&In&&(1===In.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=In}}else le(t)?(t={default:t,_ctx:In},n=32):(t=String(t),64&r?(n=16,t=[Vr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Zr(e,t,n,r=null){on(e,t,7,[n,r])}const Gr=fr();let Kr=0;let Qr=null;const Jr=e=>{Qr=e,e.scope.on()},Yr=()=>{Qr&&Qr.scope.off(),Qr=null};function Xr(e){return 4&e.vnode.shapeFlag}let ei=!1;function ti(e,t,n){le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ce(t)&&(e.setupState=en(t)),ni(e,n)}function ni(e,t,n){const r=e.type;e.render||(e.render=r.render||Z)}function ri(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(en(Vt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Xn?Xn[n](e):void 0}))}const ii=(e,t)=>function(e,t,n=!1){let r,i;const o=le(e);return o?(r=e,i=Z):(r=e.get,i=e.set),new nn(r,i,o||!i,n)}(e,0,ei);function oi(e,t,n){const r=arguments.length;return 2===r?ce(t)&&!ne(t)?jr(t)?Fr(e,null,[t]):Fr(e,t):Fr(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&jr(n)&&(n=[n]),Fr(e,t,n))}const li="3.2.39",si="undefined"!=typeof document?document:null,ai=si&&si.createElement("template"),ci={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?si.createElementNS("http://www.w3.org/2000/svg",e):si.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>si.createTextNode(e),createComment:e=>si.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>si.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,i,o){const l=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==o&&(i=i.nextSibling););else{ai.innerHTML=r?`<svg>${e}</svg>`:e;const i=ai.content;if(r){const e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};const ui=/\s*!important$/;function pi(e,t,n){if(ne(n))n.forEach((n=>pi(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=hi[t];if(n)return n;let r=ye(t);if("filter"!==r&&r in e)return hi[t]=r;r=ke(r);for(let n=0;n<di.length;n++){const i=di[n]+r;if(i in e)return hi[t]=i}return t}(e,t);ui.test(n)?e.setProperty(be(r),n.replace(ui,""),"important"):e[r]=n}}const di=["Webkit","Moz","ms"],hi={};const fi="http://www.w3.org/1999/xlink";const[gi,mi]=(()=>{let e=Date.now,t=!1;if("undefined"!=typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let vi=0;const yi=Promise.resolve(),wi=()=>{vi=0};function bi(e,t,n,r){e.addEventListener(t,n,r)}function ki(e,t,n,r,i=null){const o=e._vei||(e._vei={}),l=o[t];if(r&&l)l.value=r;else{const[n,s]=function(e){let t;if(xi.test(e)){let n;for(t={};n=e.match(xi);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):be(e.slice(2)),t]}(t);if(r){const l=o[t]=function(e,t){const n=e=>{const r=e.timeStamp||gi();(mi||r>=n.attached-1)&&on(function(e,t){if(ne(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=(()=>vi||(yi.then(wi),vi=gi()))(),n}(r,i);bi(e,n,l,s)}else l&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,l,s),o[t]=void 0)}}const xi=/(?:Once|Passive|Capture)$/;const _i=/^on[a-z]/;const Ci=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ne(t)?e=>Ce(t,e):t};function Si(e){e.target.composing=!0}function $i(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ii={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=Ci(i);const o=r||i.props&&"number"===i.props.type;bi(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),o&&(r=$e(r)),e._assign(r)})),n&&bi(e,"change",(()=>{e.value=e.value.trim()})),t||(bi(e,"compositionstart",Si),bi(e,"compositionend",$i),bi(e,"change",$i))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},o){if(e._assign=Ci(o),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(n)return;if(r&&e.value.trim()===t)return;if((i||"number"===e.type)&&$e(e.value)===t)return}const l=null==t?"":t;e.value!==l&&(e.value=l)}},Ei={deep:!0,created(e,t,n){e._assign=Ci(n),bi(e,"change",(()=>{const t=e._modelValue,n=Oi(e),r=e.checked,i=e._assign;if(ne(t)){const e=V(t,n),o=-1!==e;if(r&&!o)i(t.concat(n));else if(!r&&o){const n=[...t];n.splice(e,1),i(n)}}else if(ie(t)){const e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(ji(e,r))}))},mounted:Ri,beforeUpdate(e,t,n){e._assign=Ci(n),Ri(e,t,n)}};function Ri(e,{value:t,oldValue:n},r){e._modelValue=t,ne(t)?e.checked=V(t,r.props.value)>-1:ie(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=D(t,ji(e,!0)))}const Li={created(e,{value:t},n){e.checked=D(t,n.props.value),e._assign=Ci(n),bi(e,"change",(()=>{e._assign(Oi(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Ci(r),t!==n&&(e.checked=D(t,r.props.value))}},Ai={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=ie(t);bi(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?$e(Oi(e)):Oi(e)));e._assign(e.multiple?i?new Set(t):t:t[0])})),e._assign=Ci(r)},mounted(e,{value:t}){zi(e,t)},beforeUpdate(e,t,n){e._assign=Ci(n)},updated(e,{value:t}){zi(e,t)}};function zi(e,t){const n=e.multiple;if(!n||ne(t)||ie(t)){for(let r=0,i=e.options.length;r<i;r++){const i=e.options[r],o=Oi(i);if(n)ne(t)?i.selected=V(t,o)>-1:i.selected=t.has(o);else if(D(Oi(i),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Oi(e){return"_value"in e?e._value:e.value}function ji(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ti={created(e,t,n){Pi(e,t,n,null,"created")},mounted(e,t,n){Pi(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Pi(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Pi(e,t,n,r,"updated")}};function Pi(e,t,n,r,i){const o=function(e,t){switch(e){case"SELECT":return Ai;case"TEXTAREA":return Ii;default:switch(t){case"checkbox":return Ei;case"radio":return Li;default:return Ii}}}(e.tagName,n.props&&n.props.type)[i];o&&o(e,t,n,r)}const Ui={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Mi(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),Mi(e,!0),r.enter(e)):r.leave(e,(()=>{Mi(e,!1)})):Mi(e,t))},beforeUnmount(e,{value:t}){Mi(e,t)}};function Mi(e,t){e.style.display=t?e._vod:"none"}const Ni=Y({patchProp:(e,t,n,r,i=!1,o,l,s,a)=>{"class"===t?function(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,i):"style"===t?function(e,t,n){const r=e.style,i=se(n);if(n&&!i){for(const e in n)pi(r,e,n[e]);if(t&&!se(t))for(const e in t)null==n[e]&&pi(r,e,"")}else{const o=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}(e,n,r):Q(t)?J(t)||ki(e,t,0,r,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&_i.test(t)&&le(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(_i.test(t)&&se(n))return!1;return t in e}(e,t,r,i))?function(e,t,n,r,i,o,l){if("innerHTML"===t||"textContent"===t)return r&&l(r,i,o),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const r=null==n?"":n;return e.value===r&&"OPTION"!==e.tagName||(e.value=r),void(null==n&&e.removeAttribute(t))}let s=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=T(n):null==n&&"string"===r?(n="",s=!0):"number"===r&&(n=0,s=!0)}try{e[t]=n}catch(e){}s&&e.removeAttribute(t)}(e,t,r,o,l,s,a):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,n,r,i){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(fi,t.slice(6,t.length)):e.setAttributeNS(fi,t,n);else{const r=j(t);null==n||r&&!T(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,i))}},ci);let Fi;const Di=(...e)=>{const t=(Fi||(Fi=wr(Ni))).createApp(...e),{mount:n}=t;return t.mount=e=>{const r=function(e){if(se(e)){return document.querySelector(e)}return e}(e);if(!r)return;const i=t._component;le(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};var Vi;const Bi="undefined"!=typeof window,Hi=()=>{};function Wi(e){return"function"==typeof e?e():Yt(e)}function qi(e,t){return function(...n){e((()=>t.apply(this,n)),{fn:t,thisArg:this,args:n})}}Bi&&(null==(Vi=null==window?void 0:window.navigator)?void 0:Vi.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const Zi=e=>e();function Gi(e){return!!Ee&&(function(e){Ee&&Ee.cleanups.push(e)}(e),!0)}function Ki(e,t=200,n={}){return qi(function(e,t={}){let n,r;return i=>{const o=Wi(e),l=Wi(t.maxWait);if(n&&clearTimeout(n),o<=0||void 0!==l&&l<=0)return r&&(clearTimeout(r),r=null),i();l&&!r&&(r=setTimeout((()=>{n&&clearTimeout(n),r=null,i()}),l)),n=setTimeout((()=>{r&&clearTimeout(r),r=null,i()}),o)}}(t,n),e)}function Qi(e,t=!0){Qr||In?Bn(e):t?e():mn(e)}var Ji=Object.getOwnPropertySymbols,Yi=Object.prototype.hasOwnProperty,Xi=Object.prototype.propertyIsEnumerable;function eo(e,t,n={}){const r=n,{eventFilter:i=Zi}=r,o=((e,t)=>{var n={};for(var r in e)Yi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ji)for(var r of Ji(e))t.indexOf(r)<0&&Xi.call(e,r)&&(n[r]=e[r]);return n})(r,["eventFilter"]);return Un(e,qi(i,t),o)}var to=Object.defineProperty,no=Object.defineProperties,ro=Object.getOwnPropertyDescriptors,io=Object.getOwnPropertySymbols,oo=Object.prototype.hasOwnProperty,lo=Object.prototype.propertyIsEnumerable,so=(e,t,n)=>t in e?to(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function ao(e,t,n={}){const r=n,{eventFilter:i}=r,o=((e,t)=>{var n={};for(var r in e)oo.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&io)for(var r of io(e))t.indexOf(r)<0&&lo.call(e,r)&&(n[r]=e[r]);return n})(r,["eventFilter"]),{eventFilter:l,pause:s,resume:a,isActive:c}=function(e=Zi){const t=Gt(!0);return{isActive:t,pause:function(){t.value=!1},resume:function(){t.value=!0},eventFilter:(...n)=>{t.value&&e(...n)}}}(i),u=eo(e,t,(p=((e,t)=>{for(var n in t||(t={}))oo.call(t,n)&&so(e,n,t[n]);if(io)for(var n of io(t))lo.call(t,n)&&so(e,n,t[n]);return e})({},o),no(p,ro({eventFilter:l}))));var p;return{stop:u,pause:s,resume:a,isActive:c}}const co=Bi?window:void 0,uo=Bi?window.document:void 0;function po(...e){let t,n,r,i;if("string"==typeof e[0]?([n,r,i]=e,t=co):[t,n,r,i]=e,!t)return Hi;let o=Hi;const l=Un((()=>function(e){var t;const n=Wi(e);return null!=(t=null==n?void 0:n.$el)?t:n}(t)),(e=>{o(),e&&(e.addEventListener(n,r,i),o=()=>{e.removeEventListener(n,r,i),o=Hi})}),{immediate:!0,flush:"post"}),s=()=>{l(),o()};return Gi(s),s}Bi&&window.navigator,Bi&&window.location;const ho="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},fo="__vueuse_ssr_handlers__";ho[fo]=ho[fo]||{};const go=ho[fo];var mo=Object.defineProperty,vo=Object.getOwnPropertySymbols,yo=Object.prototype.hasOwnProperty,wo=Object.prototype.propertyIsEnumerable,bo=(e,t,n)=>t in e?mo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ko=(e,t)=>{for(var n in t||(t={}))yo.call(t,n)&&bo(e,n,t[n]);if(vo)for(var n of vo(t))wo.call(t,n)&&bo(e,n,t[n]);return e};const xo={boolean:{read:e=>"true"===e,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function _o(e,t,n,r={}){var i;const{flush:o="pre",deep:l=!0,listenToStorageChanges:s=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:p=co,eventFilter:d,onError:h=(e=>{console.error(e)})}=r,f=(u?Kt:Gt)(t);if(!n)try{n=function(e,t){return go[e]||t}("getDefaultStorage",(()=>{var e;return null==(e=co)?void 0:e.localStorage}))()}catch(e){h(e)}if(!n)return f;const g=Wi(t),m=function(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"object"==typeof e||Array.isArray(e)?"object":Number.isNaN(e)?"any":"number"}(g),v=null!=(i=r.serializer)?i:xo[m],{pause:y,resume:w}=ao(f,(()=>function(t){try{null==t?n.removeItem(e):n.setItem(e,v.write(t))}catch(e){h(e)}}(f.value)),{flush:o,deep:l,eventFilter:d});return p&&s&&po(p,"storage",b),b(),f;function b(t){t&&t.key!==e||(f.value=function(t){if(!t||t.key===e){y();try{const r=t?t.newValue:n.getItem(e);if(null==r)return a&&null!==g&&n.setItem(e,v.write(g)),g;if(!t&&c){const e=v.read(r);return"function"==typeof c?c(e,g):"object"!==m||Array.isArray(e)?e:ko(ko({},g),e)}return"string"!=typeof r?r:v.read(r)}catch(e){h(e)}finally{w()}}}(t))}}var Co,So,$o=Object.defineProperty,Io=Object.getOwnPropertySymbols,Eo=Object.prototype.hasOwnProperty,Ro=Object.prototype.propertyIsEnumerable,Lo=(e,t,n)=>t in e?$o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Ao(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=Gt(new Date),i=()=>r.value=new Date,o="requestAnimationFrame"===n?function(e,t={}){const{immediate:n=!0,window:r=co}=t,i=Gt(!1);let o=null;function l(){i.value&&r&&(e(),o=r.requestAnimationFrame(l))}function s(){!i.value&&r&&(i.value=!0,l())}function a(){i.value=!1,null!=o&&r&&(r.cancelAnimationFrame(o),o=null)}return n&&s(),Gi(a),{isActive:i,pause:a,resume:s}}(i,{immediate:!0}):function(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:i=!1}=n;let o=null;const l=Gt(!1);function s(){o&&(clearInterval(o),o=null)}function a(){l.value=!1,s()}function c(){Yt(t)<=0||(l.value=!0,i&&e(),s(),o=setInterval(e,Wi(t)))}r&&Bi&&c(),Zt(t)&&Gi(Un(t,(()=>{l.value&&Bi&&c()})));return Gi(a),{isActive:l,pause:a,resume:c}}(i,n,{immediate:!0});return t?((e,t)=>{for(var n in t||(t={}))Eo.call(t,n)&&Lo(e,n,t[n]);if(Io)for(var n of Io(t))Ro.call(t,n)&&Lo(e,n,t[n]);return e})({now:r},o):r}(So=Co||(Co={})).UP="UP",So.RIGHT="RIGHT",So.DOWN="DOWN",So.LEFT="LEFT",So.NONE="NONE";let zo=0;var Oo=Object.defineProperty,jo=Object.getOwnPropertySymbols,To=Object.prototype.hasOwnProperty,Po=Object.prototype.propertyIsEnumerable,Uo=(e,t,n)=>t in e?Oo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;((e,t)=>{for(var n in t||(t={}))To.call(t,n)&&Uo(e,n,t[n]);if(jo)for(var n of jo(t))Po.call(t,n)&&Uo(e,n,t[n])})({linear:function(e){return e}},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const Mo=e=>{const t=_o("WALINE_EMOJI",{}),n=Boolean(/@[0-9]+\.[0-9]+\.[0-9]+/.test(e));if(n){const n=t.value[e];if(n)return Promise.resolve(n)}return fetch(`${e}/info.json`).then((e=>e.json())).then((r=>{const i={folder:e,...r};return n&&(t.value[e]=i),i}))},No=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,Fo=e=>{"AbortError"!==e.name&&console.error(e.message)},Do=e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null,Vo=e=>e.type.includes("image"),Bo=e=>{const t=Array.from(e).find(Vo);return t?t.getAsFile():null};function Ho(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let Wo={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const qo=/[&<>"']/,Zo=/[&<>"']/g,Go=/[<>"']|&(?!#?\w+;)/,Ko=/[<>"']|&(?!#?\w+;)/g,Qo={"&":"&","<":"<",">":">",'"':""","'":"'"},Jo=e=>Qo[e];function Yo(e,t){if(t){if(qo.test(e))return e.replace(Zo,Jo)}else if(Go.test(e))return e.replace(Ko,Jo);return e}const Xo=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function el(e){return e.replace(Xo,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const tl=/(^|[^\[])\^/g;function nl(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(tl,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const rl=/[^\w:]/g,il=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ol(e,t,n){if(e){let e;try{e=decodeURIComponent(el(n)).replace(rl,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!il.test(n)&&(n=function(e,t){ll[" "+e]||(sl.test(e)?ll[" "+e]=e+"/":ll[" "+e]=hl(e,"/",!0));const n=-1===(e=ll[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(al,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(cl,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const ll={},sl=/^[^:]+:\/*[^/]*$/,al=/^([^:]+:)[\s\S]*$/,cl=/^([^:]+:\/*[^/]*)[\s\S]*$/;const ul={exec:function(){}};function pl(e){let t,n,r=1;for(;r<arguments.length;r++)for(n in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function dl(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"})).split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function hl(e,t,n){const r=e.length;if(0===r)return"";let i=0;for(;i<r;){const o=e.charAt(r-i-1);if(o!==t||n){if(o===t||!n)break;i++}else i++}return e.slice(0,r-i)}function fl(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function gl(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function ml(e,t,n,r){const i=t.href,o=t.title?Yo(t.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:i,title:o,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,e}return{type:"image",raw:n,href:i,title:o,text:Yo(l)}}class vl{constructor(e){this.options=e||Wo}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:hl(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim():t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=hl(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(e,[]),text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,i,o,l,s,a,c,u,p,d,h,f=t[1].trim();const g=f.length>1,m={type:"list",raw:"",ordered:g,start:g?+f.slice(0,-1):"",loose:!1,items:[]};f=g?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=g?f:"[*+-]");const v=new RegExp(`^( {0,3}${f})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(h=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0],u=e.split("\n",1)[0],this.options.pedantic?(o=2,d=c.trimLeft()):(o=t[2].search(/[^ ]/),o=o>4?1:o,d=c.slice(o),o+=t[1].length),s=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),h=!0),!h){const t=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),r=new RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),i=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),l=new RegExp(`^ {0,${Math.min(3,o-1)}}#`);for(;e&&(p=e.split("\n",1)[0],c=p,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!i.test(c))&&!l.test(c)&&!t.test(c)&&!r.test(e);){if(c.search(/[^ ]/)>=o||!c.trim())d+="\n"+c.slice(o);else{if(s)break;d+="\n"+c}s||c.trim()||(s=!0),n+=p+"\n",e=e.substring(p.length+1)}}m.loose||(a?m.loose=!0:/\n *\n *$/.test(n)&&(a=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(d),r&&(i="[ ] "!==r[0],d=d.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!r,checked:i,loose:!1,text:d}),m.raw+=n}m.items[m.items.length-1].raw=n.trimRight(),m.items[m.items.length-1].text=d.trimRight(),m.raw=m.raw.trimRight();const y=m.items.length;for(l=0;l<y;l++){this.lexer.state.top=!1,m.items[l].tokens=this.lexer.blockTokens(m.items[l].text,[]);const e=m.items[l].tokens.filter((e=>"space"===e.type)),t=e.every((e=>{const t=e.raw.split("");let n=0;for(const e of t)if("\n"===e&&(n+=1),n>1)return!0;return!1}));!m.loose&&e.length&&t&&(m.loose=!0,m.items[l].loose=!0)}return m}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){const n=this.options.sanitizer?this.options.sanitizer(t[0]):Yo(t[0]);e.type="paragraph",e.text=n,e.tokens=this.lexer.inline(n)}return e}}def(e){const t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));return{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:dl(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,r,i,o,l=e.align.length;for(n=0;n<l;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(l=e.rows.length,n=0;n<l;n++)e.rows[n]=dl(e.rows[n],e.header.length).map((e=>({text:e})));for(l=e.header.length,r=0;r<l;r++)e.header[r].tokens=this.lexer.inline(e.header[r].text);for(l=e.rows.length,r=0;r<l;r++)for(o=e.rows[r],i=0;i<o.length;i++)o[i].tokens=this.lexer.inline(o[i].text);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const 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){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Yo(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):Yo(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=hl(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,i=0;for(;i<n;i++)if("\\"===e[i])i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return-1}(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?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){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),ml(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e||!e.href){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return ml(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;const i=r[1]||r[2]||"";if(!i||i&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let i,o,l=n,s=0;const a="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=a.exec(t));){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(o=i.length,r[3]||r[4]){l+=o;continue}if((r[5]||r[6])&&n%3&&!((n+o)%3)){s+=o;continue}if(l-=o,l>0)continue;if(o=Math.min(o,o+l+s),Math.min(n,o)%2){const t=e.slice(1,n+r.index+o);return{type:"em",raw:e.slice(0,n+r.index+o+1),text:t,tokens:this.lexer.inlineTokens(t)}}const t=e.slice(2,n+r.index+o-1);return{type:"strong",raw:e.slice(0,n+r.index+o+1),text:t,tokens:this.lexer.inlineTokens(t)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=Yo(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,r;return"@"===n[2]?(e=Yo(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=Yo(n[1]),r=e),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=Yo(this.options.mangle?t(n[0]):n[0]),r="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=Yo(n[0]),r="www."===n[1]?"http://"+e:e}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):Yo(n[0]):n[0]:Yo(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const yl={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {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|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:ul,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};yl.def=nl(yl.def).replace("label",yl._label).replace("title",yl._title).getRegex(),yl.bullet=/(?:[*+-]|\d{1,9}[.)])/,yl.listItemStart=nl(/^( *)(bull) */).replace("bull",yl.bullet).getRegex(),yl.list=nl(yl.list).replace(/bull/g,yl.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+yl.def.source+")").getRegex(),yl._tag="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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",yl._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,yl.html=nl(yl.html,"i").replace("comment",yl._comment).replace("tag",yl._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),yl.paragraph=nl(yl._paragraph).replace("hr",yl.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",yl._tag).getRegex(),yl.blockquote=nl(yl.blockquote).replace("paragraph",yl.paragraph).getRegex(),yl.normal=pl({},yl),yl.gfm=pl({},yl.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),yl.gfm.table=nl(yl.gfm.table).replace("hr",yl.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",yl._tag).getRegex(),yl.gfm.paragraph=nl(yl._paragraph).replace("hr",yl.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",yl.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",yl._tag).getRegex(),yl.pedantic=pl({},yl.normal,{html:nl("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",yl._comment).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:ul,paragraph:nl(yl.normal._paragraph).replace("hr",yl.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",yl.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const wl={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ul,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:ul,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function bl(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function kl(e){let t,n,r="";const i=e.length;for(t=0;t<i;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}wl._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",wl.punctuation=nl(wl.punctuation).replace(/punctuation/g,wl._punctuation).getRegex(),wl.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,wl.escapedEmSt=/\\\*|\\_/g,wl._comment=nl(yl._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),wl.emStrong.lDelim=nl(wl.emStrong.lDelim).replace(/punct/g,wl._punctuation).getRegex(),wl.emStrong.rDelimAst=nl(wl.emStrong.rDelimAst,"g").replace(/punct/g,wl._punctuation).getRegex(),wl.emStrong.rDelimUnd=nl(wl.emStrong.rDelimUnd,"g").replace(/punct/g,wl._punctuation).getRegex(),wl._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,wl._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,wl._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])?)+(?![-_])/,wl.autolink=nl(wl.autolink).replace("scheme",wl._scheme).replace("email",wl._email).getRegex(),wl._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,wl.tag=nl(wl.tag).replace("comment",wl._comment).replace("attribute",wl._attribute).getRegex(),wl._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,wl._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,wl._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,wl.link=nl(wl.link).replace("label",wl._label).replace("href",wl._href).replace("title",wl._title).getRegex(),wl.reflink=nl(wl.reflink).replace("label",wl._label).replace("ref",yl._label).getRegex(),wl.nolink=nl(wl.nolink).replace("ref",yl._label).getRegex(),wl.reflinkSearch=nl(wl.reflinkSearch,"g").replace("reflink",wl.reflink).replace("nolink",wl.nolink).getRegex(),wl.normal=pl({},wl),wl.pedantic=pl({},wl.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:nl(/^!?\[(label)\]\((.*?)\)/).replace("label",wl._label).getRegex(),reflink:nl(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",wl._label).getRegex()}),wl.gfm=pl({},wl.normal,{escape:nl(wl.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),wl.gfm.url=nl(wl.gfm.url,"i").replace("email",wl.gfm._extended_email).getRegex(),wl.breaks=pl({},wl.gfm,{br:nl(wl.br).replace("{2,}","*").getRegex(),text:nl(wl.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class xl{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Wo,this.options.tokenizer=this.options.tokenizer||new vl,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:yl.normal,inline:wl.normal};this.options.pedantic?(t.block=yl.pedantic,t.inline=wl.pedantic):this.options.gfm&&(t.block=yl.gfm,this.options.breaks?t.inline=wl.breaks:t.inline=wl.gfm),this.tokenizer.rules=t}static get rules(){return{block:yl,inline:wl}}static lex(e,t){return new xl(t).lex(e)}static lexInline(e,t){return new xl(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let n,r,i,o;for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,n)=>t+" ".repeat(n.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?t.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(i=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startBlock.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(i)))r=t[t.length-1],o&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),o=i.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r,i,o,l,s,a=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,o.index)+"["+gl("a",o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,o.index)+"["+gl("a",o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(a));)a=a.slice(0,o.index)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(l||(s=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,a,s))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,kl))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,kl))){if(i=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startInline.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(i,bl))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),l=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}class _l{constructor(e){this.options=e||Wo}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+Yo(r,!0)+'">'+(n?e:Yo(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:Yo(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>\n${e}</blockquote>\n`}html(e){return e}heading(e,t,n,r){if(this.options.headerIds){return`<h${t} id="${this.options.headerPrefix+r.slug(n)}">${e}</h${t}>\n`}return`<h${t}>${e}</h${t}>\n`}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return`<li>${e}</li>\n`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>\n`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr>\n${e}</tr>\n`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>\n`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){if(null===(e=ol(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+Yo(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=ol(this.options.sanitize,this.options.baseUrl,e)))return n;let r=`<img src="${e}" alt="${n}"`;return t&&(r+=` title="${t}"`),r+=this.options.xhtml?"/>":">",r}text(e){return e}}class Cl{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class Sl{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class $l{constructor(e){this.options=e||Wo,this.options.renderer=this.options.renderer||new _l,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Cl,this.slugger=new Sl}static parse(e,t){return new $l(t).parse(e)}static parseInline(e,t){return new $l(t).parseInline(e)}parse(e,t=!0){let n,r,i,o,l,s,a,c,u,p,d,h,f,g,m,v,y,w,b,k="";const x=e.length;for(n=0;n<x;n++)if(p=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type]&&(b=this.options.extensions.renderers[p.type].call({parser:this},p),!1!==b||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type)))k+=b||"";else switch(p.type){case"space":continue;case"hr":k+=this.renderer.hr();continue;case"heading":k+=this.renderer.heading(this.parseInline(p.tokens),p.depth,el(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue;case"code":k+=this.renderer.code(p.text,p.lang,p.escaped);continue;case"table":for(c="",a="",o=p.header.length,r=0;r<o;r++)a+=this.renderer.tablecell(this.parseInline(p.header[r].tokens),{header:!0,align:p.align[r]});for(c+=this.renderer.tablerow(a),u="",o=p.rows.length,r=0;r<o;r++){for(s=p.rows[r],a="",l=s.length,i=0;i<l;i++)a+=this.renderer.tablecell(this.parseInline(s[i].tokens),{header:!1,align:p.align[i]});u+=this.renderer.tablerow(a)}k+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(p.tokens),k+=this.renderer.blockquote(u);continue;case"list":for(d=p.ordered,h=p.start,f=p.loose,o=p.items.length,u="",r=0;r<o;r++)m=p.items[r],v=m.checked,y=m.task,g="",m.task&&(w=this.renderer.checkbox(v),f?m.tokens.length>0&&"paragraph"===m.tokens[0].type?(m.tokens[0].text=w+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=w+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:w}):g+=w),g+=this.parse(m.tokens,f),u+=this.renderer.listitem(g,y,v);k+=this.renderer.list(u,d,h);continue;case"html":k+=this.renderer.html(p.text);continue;case"paragraph":k+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(u=p.tokens?this.parseInline(p.tokens):p.text;n+1<x&&"text"===e[n+1].type;)p=e[++n],u+="\n"+(p.tokens?this.parseInline(p.tokens):p.text);k+=t?this.renderer.paragraph(u):u;continue;default:{const e='Token with "'+p.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return k}parseInline(e,t){t=t||this.renderer;let n,r,i,o="";const l=e.length;for(n=0;n<l;n++)if(r=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(i=this.options.extensions.renderers[r.type].call({parser:this},r),!1!==i||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))o+=i||"";else switch(r.type){case"escape":case"text":o+=t.text(r.text);break;case"html":o+=t.html(r.text);break;case"link":o+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":o+=t.image(r.href,r.title,r.text);break;case"strong":o+=t.strong(this.parseInline(r.tokens,t));break;case"em":o+=t.em(this.parseInline(r.tokens,t));break;case"codespan":o+=t.codespan(r.text);break;case"br":o+=t.br();break;case"del":o+=t.del(this.parseInline(r.tokens,t));break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return o}}function Il(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),fl(t=pl({},Il.defaults,t||{})),n){const r=t.highlight;let i;try{i=xl.lex(e,t)}catch(e){return n(e)}const o=function(e){let o;if(!e)try{t.walkTokens&&Il.walkTokens(i,t.walkTokens),o=$l.parse(i,t)}catch(t){e=t}return t.highlight=r,e?n(e):n(null,o)};if(!r||r.length<3)return o();if(delete t.highlight,!i.length)return o();let l=0;return Il.walkTokens(i,(function(e){"code"===e.type&&(l++,setTimeout((()=>{r(e.text,e.lang,(function(t,n){if(t)return o(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),l--,0===l&&o()}))}),0))})),void(0===l&&o())}function r(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+Yo(e.message+"",!0)+"</pre>";throw e}try{const n=xl.lex(e,t);if(t.walkTokens){if(t.async)return Promise.all(Il.walkTokens(n,t.walkTokens)).then((()=>$l.parse(n,t))).catch(r);Il.walkTokens(n,t.walkTokens)}return $l.parse(n,t)}catch(e){r(e)}}Il.options=Il.setOptions=function(e){var t;return pl(Il.defaults,e),t=Il.defaults,Wo=t,Il},Il.getDefaults=Ho,Il.defaults=Wo,Il.use=function(...e){const t=pl({},...e),n=Il.defaults.extensions||{renderers:{},childTokens:{}};let r;e.forEach((e=>{if(e.extensions&&(r=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=n.renderers?n.renderers[e.name]:null;n.renderers[e.name]=t?function(...n){let r=e.renderer.apply(this,n);return!1===r&&(r=t.apply(this,n)),r}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");n[e.level]?n[e.level].unshift(e.tokenizer):n[e.level]=[e.tokenizer],e.start&&("block"===e.level?n.startBlock?n.startBlock.push(e.start):n.startBlock=[e.start]:"inline"===e.level&&(n.startInline?n.startInline.push(e.start):n.startInline=[e.start]))}e.childTokens&&(n.childTokens[e.name]=e.childTokens)}))),e.renderer){const n=Il.defaults.renderer||new _l;for(const t in e.renderer){const r=n[t];n[t]=(...i)=>{let o=e.renderer[t].apply(n,i);return!1===o&&(o=r.apply(n,i)),o}}t.renderer=n}if(e.tokenizer){const n=Il.defaults.tokenizer||new vl;for(const t in e.tokenizer){const r=n[t];n[t]=(...i)=>{let o=e.tokenizer[t].apply(n,i);return!1===o&&(o=r.apply(n,i)),o}}t.tokenizer=n}if(e.walkTokens){const n=Il.defaults.walkTokens;t.walkTokens=function(t){let r=[];return r.push(e.walkTokens.call(this,t)),n&&(r=r.concat(n.call(this,t))),r}}r&&(t.extensions=n),Il.setOptions(t)}))},Il.walkTokens=function(e,t){let n=[];for(const r of e)switch(n=n.concat(t.call(Il,r)),r.type){case"table":for(const e of r.header)n=n.concat(Il.walkTokens(e.tokens,t));for(const e of r.rows)for(const r of e)n=n.concat(Il.walkTokens(r.tokens,t));break;case"list":n=n.concat(Il.walkTokens(r.items,t));break;default:Il.defaults.extensions&&Il.defaults.extensions.childTokens&&Il.defaults.extensions.childTokens[r.type]?Il.defaults.extensions.childTokens[r.type].forEach((function(e){n=n.concat(Il.walkTokens(r[e],t))})):r.tokens&&(n=n.concat(Il.walkTokens(r.tokens,t)))}return n},Il.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");fl(t=pl({},Il.defaults,t||{}));try{const n=xl.lexInline(e,t);return t.walkTokens&&Il.walkTokens(n,t.walkTokens),$l.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+Yo(e.message+"",!0)+"</pre>";throw e}},Il.Parser=$l,Il.parser=$l.parse,Il.Renderer=_l,Il.TextRenderer=Cl,Il.Lexer=xl,Il.lexer=xl.lex,Il.Tokenizer=vl,Il.Slugger=Sl,Il.parse=Il;const El=/\$.*?\$/,Rl=/^\$(.*?)\$/,Ll=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,Al=(e="",t={})=>e.replace(/:(.+?):/g,((e,n)=>t[n]?`<img class="wl-emoji" src="${t[n]}" alt="${n}">`:e)),zl=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{if(Il.setOptions({highlight:n||void 0,breaks:!0,smartLists:!0,smartypants:!0}),r){const e=(e=>[{name:"blockMath",level:"block",tokenizer(t){const n=Ll.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!0,n[1])}}},{name:"inlineMath",level:"inline",start(e){const t=e.search(El);return-1!==t?t:e.length},tokenizer(t){const n=Rl.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}}])(r);Il.use({extensions:e})}return Il.parse(Al(e,t))},Ol=e=>e.dataset.path||e.getAttribute("id"),jl=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r="zh-CN"})=>{const i=new AbortController,o=document.querySelectorAll(n);return o.length&&(({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${e}/comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r,headers:{}}).then((e=>e.json())).then((e=>b(e,"comment count"))).then((e=>Array.isArray(e)?e:[e])))({serverURL:I(e),paths:Array.from(o).map((e=>C(e.dataset.path||e.getAttribute("id")||t))),lang:r,signal:i.signal}).then((e=>{o.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch(Fo),i.abort.bind(i)};let Tl=null;const Pl=()=>Tl||(Tl=_o("WALINE_LIKE",[]));var Ul="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Ml={},Nl={},Fl={},Dl=Ul&&Ul.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function l(e){try{a(r.next(e))}catch(e){o(e)}}function s(e){try{a(r.throw(e))}catch(e){o(e)}}function a(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,s)}a((r=r.apply(e,t||[])).next())}))},Vl=Ul&&Ul.__generator||function(e,t){var n,r,i,o,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return l.label++,{value:o[1],done:!1};case 5:l.label++,r=o[1],o=[0];continue;case 7:o=l.ops.pop(),l.trys.pop();continue;default:if(!(i=l.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){l=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){l.label=o[1];break}if(6===o[0]&&l.label<i[1]){l.label=i[1],i=o;break}if(i&&l.label<i[2]){l.label=i[2],l.ops.push(o);break}i[2]&&l.ops.pop(),l.trys.pop();continue}o=t.call(e,l)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.ReCaptchaInstance=void 0;var Bl=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 Dl(this,void 0,void 0,(function(){return Vl(this,(function(t){return[2,this.recaptcha.enterprise?this.recaptcha.enterprise.execute(this.recaptchaID,{action:e}):this.recaptcha.execute(this.recaptchaID,{action:e})]}))}))},e.prototype.getSiteKey=function(){return this.siteKey},e.prototype.hideBadge=function(){null===this.styleContainer&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},e.prototype.showBadge=function(){null!==this.styleContainer&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},e}();Fl.ReCaptchaInstance=Bl,Object.defineProperty(Nl,"__esModule",{value:!0}),Nl.getInstance=Nl.load=void 0;var Hl,Wl=Fl;!function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"}(Hl||(Hl={}));var ql=function(){function e(){}return e.load=function(t,n){if(void 0===n&&(n={}),"undefined"==typeof document)return Promise.reject(new Error("This is a library for the browser!"));if(e.getLoadingState()===Hl.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===Hl.LOADING)return t!==e.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise((function(t,n){e.successfulLoadingConsumers.push((function(e){return t(e)})),e.errorLoadingRunnable.push((function(e){return n(e)}))}));e.instanceSiteKey=t,e.setLoadingState(Hl.LOADING);var r=new e;return new Promise((function(i,o){r.loadScript(t,n.useRecaptchaNet||!1,n.useEnterprise||!1,n.renderParameters?n.renderParameters:{},n.customUrl).then((function(){e.setLoadingState(Hl.LOADED);var o=r.doExplicitRender(grecaptcha,t,n.explicitRenderParameters?n.explicitRenderParameters:{},n.useEnterprise||!1),l=new Wl.ReCaptchaInstance(t,o,grecaptcha);e.successfulLoadingConsumers.forEach((function(e){return e(l)})),e.successfulLoadingConsumers=[],n.autoHideBadge&&l.hideBadge(),e.instance=l,i(l)})).catch((function(t){e.errorLoadingRunnable.forEach((function(e){return e(t)})),e.errorLoadingRunnable=[],o(t)}))}))},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return null===e.loadingState?Hl.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,n,r,i,o){var l=this;void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===i&&(i={}),void 0===o&&(o="");var s=document.createElement("script");s.setAttribute("recaptcha-v3-script","");var a="https://www.google.com/recaptcha/api.js";n&&(a=r?"https://recaptcha.net/recaptcha/enterprise.js":"https://recaptcha.net/recaptcha/api.js"),r&&(a="https://www.google.com/recaptcha/enterprise.js"),o&&(a=o),i.render&&(i.render=void 0);var c=this.buildQueryString(i);return s.src=a+"?render=explicit"+c,new Promise((function(t,n){s.addEventListener("load",l.waitForScriptToLoad((function(){t(s)}),r),!1),s.onerror=function(t){e.setLoadingState(Hl.NOT_LOADED),n(t)},document.head.appendChild(s)}))},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(){void 0===window.grecaptcha?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,t,n,r){var i={sitekey:t,badge:n.badge,size:n.size,tabindex:n.tabindex};return n.container?r?e.enterprise.render(n.container,i):e.render(n.container,i):r?e.enterprise.render(i):e.render(i)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();Nl.load=ql.load,Nl.getInstance=ql.getInstance,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Nl;Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=Fl;Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(Ml);const Zl={};let Gl=null;const Kl=()=>Gl||(Gl=_o("WALINE_VOTE",[]));let Ql=null;const Jl=()=>Ql||(Ql=_o("WALINE_USER",{}));var Yl=Fn({setup(){const e=Gt([]),t=Kl(),n=jn("config"),r=ii((()=>n.value.locale)),i=ii((()=>{const{reaction:i,path:o}=n.value;return i.map(((n,i)=>({icon:n,vote:e.value[i]||0,desc:r.value[`reaction${i}`],active:Boolean(t.value.find((({id:e,i:t})=>e===o&&t===i)))})))}));let o;return Bn((()=>(()=>{const{serverURL:t,lang:r,path:i,reaction:l}=n.value;if(l.length){const n=new AbortController;k({serverURL:t,lang:r,paths:[i],type:l.map(((e,t)=>`reaction${t}`)),signal:n.signal}).then((t=>{Array.isArray(t)||"number"==typeof t||(e.value=l.map(((e,n)=>t[`reaction${n}`])))})),o=n.abort.bind(n)}})())),Wn((()=>o?.())),{reaction:i,locale:r,vote:async r=>{const{serverURL:i,lang:o,path:l}=n.value,s=t.value.find((({id:e})=>e===l));s&&s.i===r||(await x({serverURL:i,lang:o,path:l,type:`reaction${r}`}),e.value[r]=(e.value[r]||0)+1,s?(e.value[s.i]=Math.max(e.value[s.i]-1,0),x({serverURL:i,lang:o,path:l,type:`reaction${s.i}`,action:"desc"}),s.i=r,t.value=Array.from(t.value)):t.value=[...t.value,{id:l,i:r}],t.value.length>50&&(t.value=t.value.slice(-50)))}}}}),Xl=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n};const es={key:0,class:"wl-reaction"},ts=["textContent"],ns=["onClick"],rs={class:"wl-reaction-img"},is=["src","alt"],os={class:"wl-reaction-votes"},ls={class:"wl-reaction-text"};var ss,as,cs=Xl(Yl,[["render",function(e,t,n,r,i,o){return e.reaction.length?(Er(),zr("div",es,[Nr("h4",{textContent:B(e.locale.reactionTitle)},null,8,ts),Nr("ul",null,[(Er(!0),zr(xr,null,Jn(e.reaction,((t,n)=>(Er(),zr("li",{key:n,class:F({active:t.active}),onClick:t=>e.vote(n)},[Nr("div",rs,[Nr("img",{src:t.icon,alt:t.desc},null,8,is),Nr("div",os,B(t.vote),1)]),Nr("div",ls,B(t.desc),1)],10,ns)))),128))])])):Br("v-if",!0)}],["__file","ArticleReaction.vue"]]),us="function"==typeof Map?new Map:(ss=[],as=[],{has:function(e){return ss.indexOf(e)>-1},get:function(e){return as[ss.indexOf(e)]},set:function(e,t){-1===ss.indexOf(e)&&(ss.push(e),as.push(t))},delete:function(e){var t=ss.indexOf(e);t>-1&&(ss.splice(t,1),as.splice(t,1))}}),ps=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(ss){ps=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function ds(e){var t=us.get(e);t&&t.destroy()}function hs(e){var t=us.get(e);t&&t.update()}var fs=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((fs=function(e){return e}).destroy=function(e){return e},fs.update=function(e){return e}):((fs=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!us.has(e)){var t,n=null,r=null,i=null,o=function(){e.clientWidth!==r&&c()},l=function(t){window.removeEventListener("resize",o,!1),e.removeEventListener("input",c,!1),e.removeEventListener("keyup",c,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",c,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),us.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",c,!1),window.addEventListener("resize",o,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",us.set(e,{destroy:l,update:c}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),c()}function s(t){var n=e.style.width;e.style.width="0px",e.style.width=n,e.style.overflowY=t}function a(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),i=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),i&&(document.documentElement.scrollTop=i)}}function c(){a();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(s("scroll"),a(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),a(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),i!==r){i=r;var o=ps("autosize:resized");try{e.dispatchEvent(o)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],ds),e},fs.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],hs),e});var gs=fs;const ms=({size:e})=>oi("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},oi("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},oi("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})));var vs=Fn({name:"ImageWall",components:{LoadingIcon:ms},props:{items:{type:Array,default:()=>[]},columnWidth:{type:Number,default:300},gap:{type:Number,default:0}},emits:["insert"],setup(e){let t=null;const n=Gt(null),r=Gt({}),i=Gt([]),o=()=>{const t=Math.floor((n.value.getBoundingClientRect().width+e.gap)/(e.columnWidth+e.gap));return t>0?t:1},l=async t=>{if(t>=e.items.length)return;await mn();const r=Array.from(n.value?.children||[]).reduce(((e,t)=>t.getBoundingClientRect().height<e.getBoundingClientRect().height?t:e));i.value[Number(r.dataset.index)].push(t),await l(t+1)},s=async(e=!1)=>{if(i.value.length===o()&&!e)return;var t;i.value=(t=o(),new Array(t).fill(null).map((()=>[])));const n=window.scrollY;await l(0),window.scrollTo({top:n})};return Un((()=>[e.items]),(()=>{r.value={},s(!0)})),Un((()=>[e.columnWidth,e.gap]),(()=>s())),Bn((()=>{s(!0),t=new ResizeObserver((()=>s())),t.observe(n.value)})),Hn((()=>t.unobserve(n.value))),{columns:i,state:r,wall:n}}});const ys=["data-index"],ws=["src","title","onLoad","onClick"];var bs=Fn({name:"CommentBox",components:{CloseIcon:({size:e})=>oi("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[oi("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"}),oi("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"})]),EmojiIcon:()=>oi("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},oi("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"})),ImageIcon:()=>oi("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[oi("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"}),oi("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"})]),ImageWall:Xl(vs,[["render",function(e,t,n,r,i,o){const l=Gn("LoadingIcon");return Er(),zr("div",{ref:"wall",class:"wl-gallery",style:P({gap:`${e.gap}px`})},[(Er(!0),zr(xr,null,Jn(e.columns,((t,n)=>(Er(),zr("div",{key:n,class:"wl-gallery-column","data-index":n,style:P({gap:`${e.gap}px`})},[(Er(!0),zr(xr,null,Jn(t,(t=>(Er(),zr(xr,{key:t},[e.state[e.items[t].src]?Br("v-if",!0):(Er(),Or(l,{key:0,size:36,style:{margin:"20px auto"}})),Nr("img",{class:"wl-gallery-item",src:e.items[t].src,title:e.items[t].title,loading:"lazy",onLoad:n=>e.state[e.items[t].src]=!0,onClick:n=>e.$emit("insert",``)},null,40,ws)],64)))),128))],12,ys)))),128))],4)}],["__file","ImageWall.vue"]]),MarkdownIcon:()=>oi("svg",{width:"16",height:"16",ariaHidden:"true"},oi("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"})),PreviewIcon:()=>oi("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[oi("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"}),oi("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"})]),LoadingIcon:ms,GifIcon:()=>oi("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[oi("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"}),oi("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"})])},props:{rootId:{type:String,default:""},replyId:{type:String,default:""},replyUser:{type:String,default:""},edit:{type:Object,default:null}},emits:["submit","cancel-reply","cancel-edit"],setup(e,{emit:t}){const n=jn("config"),r=_o("WALINE_COMMENT_BOX_EDITOR",""),i=_o("WALINE_USER_META",{nick:"",mail:"",link:""}),o=Jl(),l=Gt({}),s=Gt(null),a=Gt(null),c=Gt(null),u=Gt(null),p=Gt(null),d=Gt(null),h=Gt(null),f=Gt({tabs:[],map:{}}),g=Gt(0),m=Gt(!1),v=Gt(!1),y=Gt(!1),w=Gt(""),b=Gt(0),k=jt({loading:!0,list:[]}),x=Gt(0),_=Gt(!1),C=Gt(""),$=Gt(!1),I=ii((()=>n.value.locale)),E=ii((()=>Boolean(o.value?.token))),R=ii((()=>!1!==n.value.imageUploader)),L=e=>{const t=s.value,n=t.selectionStart,i=t.selectionEnd||0,o=t.scrollTop;r.value=t.value.substring(0,n)+e+t.value.substring(i,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=o},A=e=>{const t=`![${n.value.locale.uploading} ${e.name}]()`;return L(t),Promise.resolve().then((()=>n.value.imageUploader(e))).then((n=>{r.value=r.value.replace(t,`\r\n`)})).catch((e=>{alert(e.message),r.value=r.value.replace(t,"")}))},z=async()=>{const{serverURL:a,lang:c,login:u,wordLimit:p,requiredMeta:d}=n.value;let h="";n.value.recaptchaV3Key&&(h=await(e=>{const t=Zl[e]??(Zl[e]=Ml.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:e=>t.then((t=>t.execute(e)))}})(n.value.recaptchaV3Key).execute("social"));const g={comment:C.value,nick:i.value.nick,mail:i.value.mail,link:i.value.link,ua:navigator.userAgent,url:n.value.path,recaptchaV3:h};if(o.value?.token)g.nick=o.value.display_name,g.mail=o.value.email,g.link=o.value.url;else{if("force"===u)return;if(d.indexOf("nick")>-1&&!g.nick)return l.value.nick?.focus(),alert(I.value.nickError);if(d.indexOf("mail")>-1&&!g.mail||g.mail&&!/^\w(?:[\w._-]*\w)?@(?:\w(?:[\w-]*\w)?\.)*\w+$/.exec(g.mail))return l.value.mail?.focus(),alert(I.value.mailError);if(!g.comment)return void s.value?.focus();g.nick||(g.nick=I.value.anonymous)}if(!_.value)return alert(I.value.wordHint.replace("$0",p[0].toString()).replace("$1",p[1].toString()).replace("$2",b.value.toString()));g.comment=Al(g.comment,f.value.map),e.replyId&&e.rootId?(g.pid=e.replyId,g.rid=e.rootId,g.at=e.replyUser):e.edit&&(g.eid=e.edit.objectId),$.value=!0,(({serverURL:e,lang:t,token:n,comment:r})=>{const i={"Content-Type":"application/json"};return n&&(i.Authorization=`Bearer ${n}`),r.eid?fetch(`${e}/comment/${r.eid}?lang=${t}`,{method:"PUT",headers:i,body:JSON.stringify(r)}).then((e=>e.json())):fetch(`${e}/comment?lang=${t}`,{method:"POST",headers:i,body:JSON.stringify(r)}).then((e=>e.json()))})({serverURL:a,lang:c,token:o.value?.token,comment:g}).then((n=>{if($.value=!1,n.errmsg)return alert(n.errmsg);t("submit",n.data),r.value="",w.value="",e.replyId&&t("cancel-reply"),e.edit?.objectId&&t("cancel-edit")})).catch((e=>{$.value=!1,alert(e.message)}))},O=e=>{c.value.contains(e.target)||u.value.contains(e.target)||(m.value=!1),p.value.contains(e.target)||d.value.contains(e.target)||(v.value=!1)},j=async e=>{const{scrollTop:t,clientHeight:r,scrollHeight:i}=e.target,o=(r+t)/i,l=n.value.search,s=h.value?.value||"";o<.9||k.loading||(k.loading=!0,k.list.push(...l.more?await l.more(s,k.list.length):await l.search(s)),k.loading=!1,setTimeout((()=>{e.target.scrollTop=t}),50))},T=Ki((e=>{k.list=[],j(e)}),300);Un([n,b],(([e,t])=>{const{wordLimit:n}=e;n?t<n[0]&&0!==n[0]?(x.value=n[0],_.value=!1):t>n[1]?(x.value=n[1],_.value=!1):(x.value=n[1],_.value=!0):(x.value=0,_.value=!0)}),{immediate:!0}),Un(v,(async e=>{if(!e)return;const t=n.value.search;h.value&&(h.value.value=""),k.loading=!0,k.list=t.default?await t.default():await t.search(""),k.loading=!1}));const P=({data:e})=>{e&&"profile"===e.type&&(o.value={...o.value,...e.data},[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(o)))))};return Bn((()=>{document.body.addEventListener("click",O),window.addEventListener("message",P),e.edit?.objectId&&(r.value=e.edit.orig),Un((()=>r.value),(e=>{const{highlighter:t,texRenderer:r}=n.value;C.value=e,w.value=zl(e,{emojiMap:f.value.map,highlighter:t,texRenderer:r}),b.value=(e=>(e=>e.match(/[\w\d\s\u00C0-\u024F]+/giu)||[])(e).reduce(((e,t)=>e+(""===t.trim()?0:t.trim().split(/\s+/u).length)),0)+(e=>e.match(/[\u4E00-\u9FA5]/gu)||[])(e).length)(e),e?gs(s.value):gs.destroy(s.value)}),{immediate:!0}),Un((()=>n.value.emoji),(e=>{return(t=Array.isArray(e)?e:[],Promise.all(t.map((e=>"string"==typeof e?Mo(S(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:r,icon:i,prefix:o,type:l,items:s}=e;t.tabs.push({name:n,icon:No(i,r,o,l),items:s.map((e=>{const n=`${o||""}${e}`;return t.map[n]=No(e,r,o,l),n}))})})),t}))).then((e=>{f.value=e}));var t}),{immediate:!0})})),Wn((()=>{document.body.removeEventListener("click",O),window.removeEventListener("message",P)})),{config:n,locale:I,insert:L,onChange:()=>{const e=a.value;e.files&&R.value&&A(e.files[0]).then((()=>{e.value=""}))},onDrop:e=>{if(e.dataTransfer?.items){const t=Bo(e.dataTransfer.items);t&&R.value&&(A(t),e.preventDefault())}},onKeyDown:e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&z()},onPaste:e=>{if(e.clipboardData){const t=Bo(e.clipboardData.items);t&&R.value&&A(t)}},onLogin:e=>{e.preventDefault();const{lang:t,serverURL:r}=n.value;(({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,i=window.open(`${t}/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=>{const t=({data:n})=>{n&&"object"==typeof n&&"userInfo"===n.type&&n.data.token&&(i?.close(),window.removeEventListener("message",t),e(n.data))};window.addEventListener("message",t)}))})({serverURL:r,lang:t}).then((e=>{o.value=e,(e.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(e))}))},onLogout:()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null")},onProfile:e=>{e.preventDefault();const{lang:t,serverURL:r}=n.value,i=(window.innerWidth-800)/2,l=(window.innerHeight-800)/2;window.open(`${r}/ui/profile?lng=${encodeURIComponent(t)}`,"_blank",`width=800,height=800,left=${i},top=${l},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`)?.postMessage({type:"TOKEN",data:o.value.token},"*")},submitComment:z,onImageWallScroll:j,onGifSearch:T,isLogin:E,userInfo:o,isSubmitting:$,wordNumber:b,wordLimit:x,isWordNumberLegal:_,editor:r,userMeta:i,emoji:f,emojiTabIndex:g,showEmoji:m,gifData:k,showGif:v,canUploadImage:R,previewText:w,showPreview:y,inputRefs:l,editorRef:s,emojiButtonRef:c,emojiPopupRef:u,gifButtonRef:p,gifPopupRef:d,imageUploadRef:a,gifSearchInputRef:h}}});const ks={class:"wl-comment"},xs={key:0,class:"wl-login-info"},_s={class:"wl-avatar"},Cs=["title"],Ss=["title"],$s=["src"],Is=["title","textContent"],Es={class:"wl-panel"},Rs=["for","textContent"],Ls=["id","onUpdate:modelValue","name","type"],As=["placeholder"],zs={class:"wl-preview"},Os=Nr("hr",null,null,-1),js=["innerHTML"],Ts={class:"wl-footer"},Ps={class:"wl-actions"},Us={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noreferrer"},Ms=["title"],Ns=["title"],Fs=["title"],Ds=["title"],Vs={class:"wl-info"},Bs={class:"wl-text-number"},Hs={key:0},Ws=Vr(" / "),qs=["textContent"],Zs=["textContent"],Gs=["disabled"],Ks=["placeholder"],Qs={key:0,class:"wl-loading"},Js={key:0,class:"wl-tab-wrapper"},Ys=["title","onClick"],Xs=["src","alt"],ea={key:0,class:"wl-tabs"},ta=["onClick"],na=["src","alt","title"],ra=["title"];var ia=Xl(bs,[["render",function(e,t,n,r,i,o){const l=Gn("CloseIcon"),s=Gn("MarkdownIcon"),a=Gn("EmojiIcon"),c=Gn("GifIcon"),u=Gn("ImageIcon"),p=Gn("PreviewIcon"),d=Gn("LoadingIcon"),h=Gn("ImageWall");return Er(),zr("div",ks,["disable"!==e.config.login&&e.isLogin&&!e.edit?.objectId?(Er(),zr("div",xs,[Nr("div",_s,[Nr("button",{class:"wl-logout-btn",title:e.locale.logout,onClick:t[0]||(t[0]=(...t)=>e.onLogout&&e.onLogout(...t))},[Fr(l,{size:14})],8,Cs),Nr("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:e.locale.profile,onClick:t[1]||(t[1]=(...t)=>e.onProfile&&e.onProfile(...t))},[Nr("img",{src:e.userInfo.avatar,alt:"avatar"},null,8,$s)],8,Ss)]),Nr("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:e.locale.profile,onClick:t[2]||(t[2]=(...t)=>e.onProfile&&e.onProfile(...t)),textContent:B(e.userInfo.display_name)},null,8,Is)])):Br("v-if",!0),Nr("div",Es,["force"!==e.config.login&&e.config.meta.length&&!e.isLogin?(Er(),zr("div",{key:0,class:F(["wl-header",`item${e.config.meta.length}`])},[(Er(!0),zr(xr,null,Jn(e.config.meta,(t=>(Er(),zr("div",{key:t,class:"wl-header-item"},[Nr("label",{for:t,textContent:B(e.locale[t]+(e.config.requiredMeta.includes(t)||!e.config.requiredMeta.length?"":`(${e.locale.optional})`))},null,8,Rs),qn(Nr("input",{id:`wl-${t}`,ref_for:!0,ref:n=>{n&&(e.inputRefs[t]=n)},"onUpdate:modelValue":n=>e.userMeta[t]=n,class:F(["wl-input",`wl-${t}`]),name:t,type:"mail"===t?"email":"text"},null,10,Ls),[[Ti,e.userMeta[t]]])])))),128))],2)):Br("v-if",!0),qn(Nr("textarea",{id:"wl-edit",ref:"editorRef","onUpdate:modelValue":t[3]||(t[3]=t=>e.editor=t),class:"wl-editor",placeholder:e.replyUser?`@${e.replyUser}`:e.locale.placeholder,onKeydown:t[4]||(t[4]=(...t)=>e.onKeyDown&&e.onKeyDown(...t)),onDrop:t[5]||(t[5]=(...t)=>e.onDrop&&e.onDrop(...t)),onPaste:t[6]||(t[6]=(...t)=>e.onPaste&&e.onPaste(...t))},null,40,As),[[Ii,e.editor]]),qn(Nr("div",zs,[Os,Nr("h4",null,B(e.locale.preview)+":",1),Br(" eslint-disable-next-line vue/no-v-html "),Nr("div",{class:"wl-content",innerHTML:e.previewText},null,8,js)],512),[[Ui,e.showPreview]]),Nr("div",Ts,[Nr("div",Ps,[Nr("a",Us,[Fr(s)]),qn(Nr("button",{ref:"emojiButtonRef",class:F(["wl-action",{actived:e.showEmoji}]),title:e.locale.emoji,onClick:t[7]||(t[7]=t=>e.showEmoji=!e.showEmoji)},[Fr(a)],10,Ms),[[Ui,e.emoji.tabs.length]]),e.config.search?(Er(),zr("button",{key:0,ref:"gifButtonRef",class:F(["wl-action",{actived:e.showGif}]),title:e.locale.gif,onClick:t[8]||(t[8]=t=>e.showGif=!e.showGif)},[Fr(c)],10,Ns)):Br("v-if",!0),Nr("input",{id:"wl-image-upload",ref:"imageUploadRef",class:"upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:t[9]||(t[9]=(...t)=>e.onChange&&e.onChange(...t))},null,544),e.canUploadImage?(Er(),zr("label",{key:1,for:"wl-image-upload",class:"wl-action",title:e.locale.uploadImage},[Fr(u)],8,Fs)):Br("v-if",!0),Nr("button",{class:F(["wl-action",{actived:e.showPreview}]),title:e.locale.preview,onClick:t[10]||(t[10]=t=>e.showPreview=!e.showPreview)},[Fr(p)],10,Ds)]),Nr("div",Vs,[Nr("div",Bs,[Vr(B(e.wordNumber)+" ",1),e.config.wordLimit?(Er(),zr("span",Hs,[Ws,Nr("span",{class:F({illegal:!e.isWordNumberLegal}),textContent:B(e.wordLimit)},null,10,qs)])):Br("v-if",!0),Vr(" "+B(e.locale.word),1)]),"disable"===e.config.login||e.isLogin?Br("v-if",!0):(Er(),zr("button",{key:0,class:"wl-btn",onClick:t[11]||(t[11]=(...t)=>e.onLogin&&e.onLogin(...t)),textContent:B(e.locale.login)},null,8,Zs)),"force"!==e.config.login||e.isLogin?(Er(),zr("button",{key:1,class:"wl-btn primary",title:"Cmd|Ctrl + Enter",disabled:e.isSubmitting,onClick:t[12]||(t[12]=(...t)=>e.submitComment&&e.submitComment(...t))},[e.isSubmitting?(Er(),Or(d,{key:0,size:16})):(Er(),zr(xr,{key:1},[Vr(B(e.locale.submit),1)],64))],8,Gs)):Br("v-if",!0)]),Nr("div",{ref:"gifPopupRef",class:F(["wl-gif-popup",{display:e.showGif}])},[Nr("input",{ref:"gifSearchInputRef",type:"text",placeholder:e.locale.gifSearchPlaceholder,onInput:t[13]||(t[13]=(...t)=>e.onGifSearch&&e.onGifSearch(...t))},null,40,Ks),Fr(h,{items:e.gifData.list,"column-width":200,gap:6,onInsert:t[14]||(t[14]=t=>e.insert(t)),onScroll:e.onImageWallScroll},null,8,["items","onScroll"]),e.gifData.loading?(Er(),zr("div",Qs,[Fr(d,{size:30})])):Br("v-if",!0)],2),Nr("div",{ref:"emojiPopupRef",class:F(["wl-emoji-popup",{display:e.showEmoji}])},[(Er(!0),zr(xr,null,Jn(e.emoji.tabs,((t,n)=>(Er(),zr(xr,{key:t.name},[n===e.emojiTabIndex?(Er(),zr("div",Js,[(Er(!0),zr(xr,null,Jn(t.items,(t=>(Er(),zr("button",{key:t,title:t,onClick:n=>e.insert(`:${t}:`)},[e.showEmoji?(Er(),zr("img",{key:0,class:"wl-emoji",src:e.emoji.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Xs)):Br("v-if",!0)],8,Ys)))),128))])):Br("v-if",!0)],64)))),128)),e.emoji.tabs.length>1?(Er(),zr("div",ea,[(Er(!0),zr(xr,null,Jn(e.emoji.tabs,((t,n)=>(Er(),zr("button",{key:t.name,class:F(["wl-tab",{active:e.emojiTabIndex===n}]),onClick:t=>e.emojiTabIndex=n},[Nr("img",{class:"wl-emoji",src:t.icon,alt:t.name,title:t.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,na)],10,ta)))),128))])):Br("v-if",!0)],2)])]),e.replyId||e.edit?.objectId?(Er(),zr("button",{key:1,class:"wl-close",title:e.locale.cancelReply,onClick:t[15]||(t[15]=t=>e.$emit(e.replyId?"cancel-reply":"cancel-edit"))},[Fr(l,{size:24})],8,ra)):Br("v-if",!0)])}],["__file","CommentBox.vue"]]);const oa=["approved","waiting","spam"];var la=Fn({components:{CommentBox:ia,DeleteIcon:()=>oi("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},oi("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"})),LikeIcon:({active:e=!1})=>oi("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[oi("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"})]),ReplyIcon:()=>oi("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},oi("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"})),EditIcon:()=>oi("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},oi("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"})),VerifiedIcon:()=>oi("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},oi("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"}))},props:{comment:{type:Object,required:!0},rootId:{type:String,required:!0},reply:{type:Object,default:null},edit:{type:Object,default:null}},emits:["submit","reply","like","delete","status","sticky","edit"],setup(e){const t=jn("config"),n=Pl(),r=Jl(),i=ii((()=>t.value.locale)),o=ii((()=>{const{link:t}=e.comment;return t?$(t)?t:`https://${t}`:""})),l=ii((()=>n.value.includes(e.comment.objectId))),s=((e,t)=>{const n=Ao();return ii((()=>z(e,n.value,t)))})(e.comment.insertedAt,i.value),a=ii((()=>"administrator"===r.value.type)),c=ii((()=>e.comment.user_id&&r.value.objectId===e.comment.user_id)),u=ii((()=>e.comment.objectId===e.reply?.objectId)),p=ii((()=>e.comment.objectId===e.edit?.objectId));return{config:t,locale:i,isReplyingCurrent:u,isEditingCurrent:p,link:o,like:l,time:s,isAdmin:a,isOwner:c,commentStatus:oa}}});const sa=["id"],aa={class:"wl-user","aria-hidden":"true"},ca=["src"],ua={class:"wl-card"},pa={class:"wl-head"},da=["href"],ha={key:1,class:"wl-nick"},fa=["textContent"],ga=["textContent"],ma=["textContent"],va=["textContent"],ya=["textContent"],wa={class:"wl-comment-actions"},ba=["title"],ka=["textContent"],xa=["title"],_a={class:"wl-meta","aria-hidden":"true"},Ca=["data-value","textContent"],Sa=["data-value","textContent"],$a=["data-value","textContent"],Ia=["innerHTML"],Ea={key:1,class:"wl-admin-actions"},Ra={class:"wl-comment-status"},La=["disabled","onClick","textContent"],Aa={key:3,class:"wl-quote"};const za=[{key:"insertedAt_desc",name:"latest"},{key:"insertedAt_asc",name:"oldest"},{key:"like_desc",name:"hottest"}];var Oa=Fn({name:"WalineRoot",components:{Reaction:cs,CommentBox:ia,CommentCard:Xl(la,[["render",function(e,t,n,r,i,o){const l=Gn("VerifiedIcon"),s=Gn("EditIcon"),a=Gn("DeleteIcon"),c=Gn("LikeIcon"),u=Gn("ReplyIcon"),p=Gn("CommentBox"),d=Gn("CommentCard",!0);return Er(),zr("div",{id:e.comment.objectId,class:"wl-item"},[Nr("div",aa,[e.comment.avatar?(Er(),zr("img",{key:0,src:e.comment.avatar},null,8,ca)):Br("v-if",!0),e.comment.type?(Er(),Or(l,{key:1})):Br("v-if",!0)]),Nr("div",ua,[Nr("div",pa,[e.link?(Er(),zr("a",{key:0,class:"wl-nick",href:e.link,target:"_blank",rel:"nofollow noreferrer"},B(e.comment.nick),9,da)):(Er(),zr("span",ha,B(e.comment.nick),1)),"administrator"===e.comment.type?(Er(),zr("span",{key:2,class:"wl-badge",textContent:B(e.locale.admin)},null,8,fa)):Br("v-if",!0),e.comment.label?(Er(),zr("span",{key:3,class:"wl-badge",textContent:B(e.comment.label)},null,8,ga)):Br("v-if",!0),e.comment.sticky?(Er(),zr("span",{key:4,class:"wl-badge",textContent:B(e.locale.sticky)},null,8,ma)):Br("v-if",!0),void 0!==e.comment.level&&e.comment.level>=0?(Er(),zr("span",{key:5,class:F(`wl-badge level${e.comment.level}`),textContent:B(e.locale[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,va)):Br("v-if",!0),Nr("span",{class:"wl-time",textContent:B(e.time)},null,8,ya),Nr("div",wa,[e.isAdmin||e.isOwner?(Er(),zr("button",{key:0,class:"wl-edit",onClick:t[0]||(t[0]=t=>e.$emit("edit",e.comment))},[Fr(s)])):Br("v-if",!0),e.isAdmin||e.isOwner?(Er(),zr("button",{key:1,class:"wl-delete",onClick:t[1]||(t[1]=t=>e.$emit("delete",e.comment))},[Fr(a)])):Br("v-if",!0),Nr("button",{class:"wl-like",title:e.like?e.locale.cancelLike:e.locale.like,onClick:t[2]||(t[2]=t=>e.$emit("like",e.comment))},[Fr(c,{active:e.like},null,8,["active"]),"like"in e.comment?(Er(),zr("span",{key:0,textContent:B(e.comment.like)},null,8,ka)):Br("v-if",!0)],8,ba),Nr("button",{class:F(["wl-reply",{active:e.isReplyingCurrent}]),title:e.isReplyingCurrent?e.locale.cancelReply:e.locale.reply,onClick:t[3]||(t[3]=t=>e.$emit("reply",e.isReplyingCurrent?null:e.comment))},[Fr(u)],10,xa)])]),Nr("div",_a,[e.comment.addr?(Er(),zr("span",{key:0,class:"wl-addr","data-value":e.comment.addr,textContent:B(e.comment.addr)},null,8,Ca)):Br("v-if",!0),e.comment.browser?(Er(),zr("span",{key:1,class:"wl-browser","data-value":e.comment.browser,textContent:B(e.comment.browser)},null,8,Sa)):Br("v-if",!0),e.comment.os?(Er(),zr("span",{key:2,class:"wl-os","data-value":e.comment.os,textContent:B(e.comment.os)},null,8,$a)):Br("v-if",!0)]),Br(" eslint-disable vue/no-v-html "),e.isEditingCurrent?Br("v-if",!0):(Er(),zr("div",{key:0,class:"wl-content",innerHTML:e.comment.comment},null,8,Ia)),Br(" eslint-enable vue/no-v-html "),e.isAdmin&&!e.isEditingCurrent?(Er(),zr("div",Ea,[Nr("span",Ra,[(Er(!0),zr(xr,null,Jn(e.commentStatus,(t=>(Er(),zr("button",{key:t,class:F(`wl-btn wl-${t}`),disabled:e.comment.status===t,onClick:n=>e.$emit("status",{status:t,comment:e.comment}),textContent:B(e.locale[t])},null,10,La)))),128))]),e.isAdmin&&!e.comment.rid?(Er(),zr("button",{key:0,class:"wl-btn wl-sticky",onClick:t[4]||(t[4]=t=>e.$emit("sticky",e.comment))},B(e.comment.sticky?e.locale.unsticky:e.locale.sticky),1)):Br("v-if",!0)])):Br("v-if",!0),e.isReplyingCurrent||e.isEditingCurrent?(Er(),zr("div",{key:2,class:F({"wl-reply-wrapper":e.isReplyingCurrent,"wl-edit-wrapper":e.isEditingCurrent})},[Fr(p,{edit:e.edit,"reply-id":e.reply?.objectId,"reply-user":e.comment.nick,"root-id":e.rootId,onSubmit:t[5]||(t[5]=t=>e.$emit("submit",t)),onCancelReply:t[6]||(t[6]=t=>e.$emit("reply",null)),onCancelEdit:t[7]||(t[7]=t=>e.$emit("edit",null))},null,8,["edit","reply-id","reply-user","root-id"])],2)):Br("v-if",!0),e.comment.children?(Er(),zr("div",Aa,[(Er(!0),zr(xr,null,Jn(e.comment.children,(n=>(Er(),Or(d,{key:n.objectId,comment:n,reply:e.reply,edit:e.edit,"root-id":e.rootId,onReply:t[8]||(t[8]=t=>e.$emit("reply",t)),onSubmit:t[9]||(t[9]=t=>e.$emit("submit",t)),onLike:t[10]||(t[10]=t=>e.$emit("like",t)),onEdit:t[11]||(t[11]=t=>e.$emit("edit",t)),onDelete:t[12]||(t[12]=t=>e.$emit("delete",t)),onStatus:t[13]||(t[13]=t=>e.$emit("status",t)),onSticky:t[14]||(t[14]=t=>e.$emit("sticky",t))},null,8,["comment","reply","edit","root-id"])))),128))])):Br("v-if",!0)])],8,sa)}],["__file","CommentCard.vue"]]),LoadingIcon:ms},props:["serverURL","path","meta","requiredMeta","dark","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright","recaptchaV3Key","reaction"],setup(e){const l=ii((()=>(({serverURL:e,path:l=location.pathname,lang:s="zh-CN",locale:a,emoji:u=["//unpkg.com/@waline/emojis@1.1.0/weibo"],meta:p=["nick","mail","link"],requiredMeta:d=[],dark:h=!1,pageSize:f=10,wordLimit:g,imageUploader:m,highlighter:v,texRenderer:w,copyright:b=!0,login:k="enable",search:x=i(),reaction:_,recaptchaV3Key:S="",...$})=>({serverURL:I(e),path:C(l),locale:{...y[s]||y["zh-CN"],..."object"==typeof a?a:{}},wordLimit:E(g),meta:t(p),requiredMeta:t(d),imageUploader:R(m,n),highlighter:R(v,c),texRenderer:R(w,r),lang:s,dark:h,emoji:u,pageSize:f,login:k,copyright:b,search:x,recaptchaV3Key:S,reaction:Array.isArray(_)?_:!0===_?o:[],...$}))(e))),s=Jl(),a=Pl(),u=Gt("loading"),p=Gt(0),d=Gt(1),h=Gt(0),f=Gt(za[0].key),g=Gt([]),m=Gt(null),v=Gt(null),k=ii((()=>{return"string"==typeof(e=l.value.dark)?"auto"===e?`@media(prefers-color-scheme:dark){body${L}}`:`${e}${L}`:!0===e?`:root${L}`:"";var e}));let x;!function(e,t={}){const n=Gt(!1),{document:r=uo,immediate:i=!0,manual:o=!1,id:l="vueuse_styletag_"+ ++zo}=t,s=Gt(e);let a=()=>{};const c=()=>{if(!r)return;const e=r.getElementById(l)||r.createElement("style");e.type="text/css",e.id=l,t.media&&(e.media=t.media),r.head.appendChild(e),n.value||(a=Un(s,(t=>{e.innerText=t}),{immediate:!0}),n.value=!0)},u=()=>{r&&n.value&&(a(),r.head.removeChild(r.getElementById(l)),n.value=!1)};i&&!o&&Qi(c),o||Gi(u),Tt(n)}(k);const S=e=>{const{serverURL:t,path:n,pageSize:r}=l.value,i=new AbortController;u.value="loading",x?.(),(({serverURL:e,lang:t,path:n,page:r,pageSize:i,sortBy:o,signal:l,token:s})=>{const a={};return s&&(a.Authorization=`Bearer ${s}`),fetch(`${e}/comment?path=${encodeURIComponent(n)}&pageSize=${i}&page=${r}&lang=${t}&sortBy=${o}`,{signal:l,headers:a}).then((e=>e.json())).then((e=>b(e,"comment data")))})({serverURL:t,lang:l.value.lang,path:n,pageSize:r,sortBy:f.value,page:e,signal:i.signal,token:s.value?.token}).then((t=>{u.value="success",p.value=t.count,g.value.push(...t.data),d.value=e,h.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),u.value="error")})),x=i.abort.bind(i)},$=()=>{p.value=0,g.value=[],S(1)};return function(e,t){if(Qr){let n=Qr.provides;const r=Qr.parent&&Qr.parent.provides;r===n&&(n=Qr.provides=Object.create(r)),n[e]=t}}("config",l),Un((()=>e.path),$),Bn((()=>$())),{config:l,darkmodeStyle:k,i18n:ii((()=>l.value.locale)),status:u,count:p,page:d,totalPages:h,sortBy:f,sortByItems:za,data:g,reply:m,edit:v,loadMore:()=>S(d.value+1),refresh:$,onSortByChange:e=>{f.value!==e&&(f.value=e,$())},onReply:e=>{m.value=e},onSubmit:e=>{if(v.value)v.value.comment=e.comment,v.value.orig=e.orig;else if(e.rid){const t=g.value.find((({objectId:t})=>t===e.rid));if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else g.value.unshift(e)},onStatusChange:async({comment:e,status:t})=>{if(e.status===t)return;const{serverURL:n,lang:r}=l.value;await _({serverURL:n,lang:r,token:s.value?.token,objectId:e.objectId,status:t}),e.status=t},onDelete:async({objectId:e})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:t,lang:n}=l.value;await(({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${e}/comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then((e=>e.json())))({serverURL:t,lang:n,token:s.value?.token,objectId:e}),g.value.some(((t,n)=>t.objectId===e?(g.value=g.value.filter(((e,t)=>t!==n)),!0):t.children.some(((r,i)=>r.objectId===e&&(g.value[n].children=t.children.filter(((e,t)=>t!==i)),!0)))))},onSticky:async e=>{if(e.rid)return;const{serverURL:t,lang:n}=l.value;await _({serverURL:t,lang:n,token:s.value?.token,objectId:e.objectId,sticky:e.sticky?0:1}),e.sticky=!e.sticky},onLike:async e=>{const{serverURL:t,lang:n}=l.value,{objectId:r}=e,i=a.value.includes(r);await(({serverURL:e,lang:t,objectId:n,like:r})=>fetch(`${e}/comment/${n}?lang=${t}`,{method:"PUT",headers:w,body:JSON.stringify({like:r})}).then((e=>e.json())))({serverURL:t,lang:n,objectId:r,like:!i}),i?a.value=a.value.filter((e=>e!==r)):(a.value=[...a.value,r],a.value.length>50&&(a.value=a.value.slice(-50))),e.like=(e.like||0)+(i?-1:1)},onEdit:e=>{v.value=e},version:"2.11.3"}}});const ja={"data-waline":""},Ta={class:"wl-meta-head"},Pa={class:"wl-count"},Ua=["textContent"],Ma={class:"wl-sort"},Na=["onClick"],Fa={class:"wl-cards"},Da={key:1,class:"wl-operation"},Va=["textContent"],Ba={key:0,class:"wl-loading"},Ha=["textContent"],Wa={class:"wl-operation"},qa=["textContent"],Za={key:3,class:"wl-power"},Ga=Vr(" Powered by "),Ka=Nr("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noreferrer"}," Waline ",-1);var Qa=Xl(Oa,[["render",function(e,t,n,r,i,o){const l=Gn("Reaction"),s=Gn("CommentBox"),a=Gn("CommentCard"),c=Gn("LoadingIcon");return Er(),zr("div",ja,[Fr(l),e.reply?Br("v-if",!0):(Er(),Or(s,{key:0,onSubmit:e.onSubmit},null,8,["onSubmit"])),Nr("div",Ta,[Nr("div",Pa,[e.count?(Er(),zr("span",{key:0,class:"wl-num",textContent:B(e.count)},null,8,Ua)):Br("v-if",!0),Vr(" "+B(e.i18n.comment),1)]),Nr("ul",Ma,[(Er(!0),zr(xr,null,Jn(e.sortByItems,(t=>(Er(),zr("li",{key:t.key,class:F([t.key===e.sortBy?"active":""]),onClick:n=>e.onSortByChange(t.key)},B(e.i18n[t.name]),11,Na)))),128))])]),Nr("div",Fa,[(Er(!0),zr(xr,null,Jn(e.data,(t=>(Er(),Or(a,{key:t.objectId,"root-id":t.objectId,comment:t,reply:e.reply,edit:e.edit,onReply:e.onReply,onEdit:e.onEdit,onSubmit:e.onSubmit,onStatus:e.onStatusChange,onDelete:e.onDelete,onSticky:e.onSticky,onLike:e.onLike},null,8,["root-id","comment","reply","edit","onReply","onEdit","onSubmit","onStatus","onDelete","onSticky","onLike"])))),128))]),"error"===e.status?(Er(),zr("div",Da,[Nr("button",{type:"button",class:"wl-btn",onClick:t[0]||(t[0]=(...t)=>e.refresh&&e.refresh(...t)),textContent:B(e.i18n.refresh)},null,8,Va)])):(Er(),zr(xr,{key:2},["loading"===e.status?(Er(),zr("div",Ba,[Fr(c,{size:30})])):e.data.length?e.page<e.totalPages?(Er(),zr(xr,{key:2},[Br(" Load more button "),Nr("div",Wa,[Nr("button",{type:"button",class:"wl-btn",onClick:t[1]||(t[1]=(...t)=>e.loadMore&&e.loadMore(...t)),textContent:B(e.i18n.more)},null,8,qa)])],2112)):Br("v-if",!0):(Er(),zr("div",{key:1,class:"wl-empty",textContent:B(e.i18n.sofa)},null,8,Ha))],64)),Br(" Copyright Information "),e.config.copyright?(Er(),zr("div",Za,[Ga,Ka,Vr(" v"+B(e.version),1)])):Br("v-if",!0)])}],["__file","Waline.vue"]]);const Ja=(e,t)=>{t.forEach(((t,n)=>{t.innerText=e[n].toString()}))},Ya=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:i="zh-CN"})=>{const o=new AbortController,l=Array.from(document.querySelectorAll(n)),s=e=>{const n=Ol(e);return null!==n&&t!==n},a=n=>(({serverURL:e,lang:t,paths:n,signal:r})=>k({serverURL:e,lang:t,paths:n,type:["time"],signal:r}).then((e=>Array.isArray(e)?e:[e])))({serverURL:I(e),paths:n.map((e=>Ol(e)||t)),lang:i,signal:o.signal}).then((e=>Ja(e,n))).catch(Fo);if(r){const n=l.filter((e=>!s(e))),r=l.filter(s);(c={serverURL:I(e),path:t,lang:i},x({...c,type:"time"})).then((e=>Ja(new Array(n.length).fill(e),n))),r.length&&a(r)}else a(l);var c;return o.abort.bind(o)};exports.RecentComments=({el:e,serverURL:t,count:n,lang:r="zh-CN"})=>{const i=Jl(),o=Do(e),l=new AbortController;return(({serverURL:e,lang:t,count:n,signal:r,token:i})=>{const o={};return i&&(o.Authorization=`Bearer ${i}`),fetch(`${e}/comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:o}).then((e=>e.json())).then((e=>b(e,"recent comment")))})({serverURL:t,count:n,lang:r,signal:l.signal,token:i.value?.token}).then((e=>o&&e.length?(o.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:()=>{l.abort(),o.innerHTML=""}}):{comments:e,destroy:()=>l.abort()}))},exports.commentCount=jl,exports.defaultLocales=y,exports.init=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...i})=>{const o=e?Do(e):null;if(e&&!o)throw new Error("Option 'el' do not match any domElement!");if(!i.serverURL)throw new Error("Option 'serverURL' is missing!");const l=jt({...i}),s=jt({comment:n,pageview:r,path:t}),a=o?Di((()=>oi(Qa,{path:s.path,...l}))):null;a&&a.mount(o);const c=Tn((()=>{s.comment&&jl({serverURL:l.serverURL,path:s.path,selector:"string"==typeof s.comment?s.comment:void 0})})),u=Tn((()=>{s.pageview&&Ya({serverURL:l.serverURL,path:s.path,selector:"string"==typeof s.pageview?s.pageview:void 0})}));return{el:o,update:({comment:e,pageview:t,path:n=window.location.pathname,...r}={})=>{Object.entries(r).forEach((([e,t])=>{l[e]=t})),s.path=n,void 0!==e&&(s.comment=e),void 0!==t&&(s.pageview=t)},destroy:()=>{a?.unmount(),c(),u()}}},exports.pageviewCount=Ya,exports.version="2.11.3";
|
|
2
2
|
//# sourceMappingURL=waline.cjs.map
|