!function(e,t){if("function"==typeof define&&define.amd)define("Waline",["exports"],t);else if("undefined"!=typeof exports)t(exports);else{var n={exports:{}};t(n.exports),e.Waline=n.exports}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.pageviewCount=e.init=e.defaultLocales=e.commentCount=e.RecentComments=void 0;const t=["nick","mail","link"],n=e=>e.filter((e=>t.includes(e))),o="zh-CN",r=e=>new Promise(((t,n)=>{const o=new FileReader;o.readAsDataURL(e),o.onload=()=>{var e;return t((null===(e=o.result)||void 0===e?void 0:e.toString())||"")},o.onerror=n})),l=e=>!0===e?'

Tex is not available in preview

':'Tex is not available in preview',i=new RegExp("(".concat(/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source,"|").concat(/{let t=0;return e.replace(i,((e,n,o)=>{if(o)return''.concat(o,"");if("<"===n)return"<";let r;u[n]?r=u[n]:(r=s[t],u[n]=r);const l='').concat(n,"");return t=++t%s.length,l}))},c=["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"],p=e=>Object.fromEntries(e.map(((e,t)=>[c[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"]),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"]),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};function w(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e!!n[e.toLowerCase()]:e=>!!n[e]}e.defaultLocales=y;const k=w("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function b(e){return!!e||""===e}function A(e){if(N(e)){const t={};for(let n=0;n{if(e){const n=e.split(E);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function F(e){let t="";if(Z(e))t=e;else if(N(e))for(let n=0;n_(e,t)))}const B=e=>Z(e)?e:null==e?"":N(e)||J(e)&&(e.toString===Q||!q(e.toString))?JSON.stringify(e,S,2):String(e),S=(e,t)=>t&&t.__v_isRef?S(e,t.value):V(t)?{["Map(".concat(t.size,")")]:[...t.entries()].reduce(((e,t)=>{let[n,o]=t;return e["".concat(n," =>")]=o,e}),{})}:H(t)?{["Set(".concat(t.size,")")]:[...t.values()]}:!J(t)||N(t)||X(t)?t:String(t),I={},z=[],R=()=>{},L=()=>!1,j=/^on[^a-z]/,T=e=>j.test(e),$=e=>e.startsWith("onUpdate:"),O=Object.assign,U=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},M=Object.prototype.hasOwnProperty,P=(e,t)=>M.call(e,t),N=Array.isArray,V=e=>"[object Map]"===Y(e),H=e=>"[object Set]"===Y(e),W=e=>"[object Date]"===Y(e),q=e=>"function"==typeof e,Z=e=>"string"==typeof e,G=e=>"symbol"==typeof e,J=e=>null!==e&&"object"==typeof e,K=e=>J(e)&&q(e.then)&&q(e.catch),Q=Object.prototype.toString,Y=e=>Q.call(e),X=e=>"[object Object]"===Y(e),ee=e=>Z(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,te=w(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ne=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},oe=/-(\w)/g,re=ne((e=>e.replace(oe,((e,t)=>t?t.toUpperCase():"")))),le=/\B([A-Z])/g,ie=ne((e=>e.replace(le,"-$1").toLowerCase())),se=ne((e=>e.charAt(0).toUpperCase()+e.slice(1))),ue=ne((e=>e?"on".concat(se(e)):"")),ae=(e,t)=>!Object.is(e,t),ce=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},de=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let he;let fe;class ge{constructor(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.active=!0,this.effects=[],this.cleanups=[],!e&&fe&&(this.parent=fe,this.index=(fe.scopes||(fe.scopes=[])).push(this)-1)}run(e){if(this.active){const t=fe;try{return fe=this,e()}finally{fe=t}}}on(){fe=this}off(){fe=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},ve=e=>(e.w&be)>0,ye=e=>(e.n&be)>0,we=new WeakMap;let ke=0,be=1;let Ae;const xe=Symbol(""),Ee=Symbol("");class Ce{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fe;t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=Ae,t=_e;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Ae,Ae=this,_e=!0,be=1<<++ke,ke<=30?(e=>{let{deps:t}=e;if(t.length)for(let e=0;e{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o{("length"===t||t>=o)&&s.push(e)}));else switch(void 0!==n&&s.push(i.get(n)),t){case"add":N(e)?ee(n)&&s.push(i.get("length")):(s.push(i.get(xe)),V(e)&&s.push(i.get(Ee)));break;case"delete":N(e)||(s.push(i.get(xe)),V(e)&&s.push(i.get(Ee)));break;case"set":V(e)&&s.push(i.get(xe))}if(1===s.length)s[0]&&Le(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);Le(me(e))}}function Le(e,t){const n=N(e)?e:[...e];for(const e of n)e.computed&&je(e);for(const e of n)e.computed||je(e)}function je(e,t){(e!==Ae||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Te=w("__proto__,__v_isRef,__isVue"),$e=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(G)),Oe=Ve(),Ue=Ve(!1,!0),Me=Ve(!0),Pe=Ne();function Ne(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(){const e=Dt(this);for(let t=0,n=this.length;t{e[t]=function(){Be();for(var e=arguments.length,n=new Array(e),o=0;o0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,o,r){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&r===(e?t?yt:vt:t?mt:gt).get(n))return n;const l=N(n);if(!e&&l&&P(Pe,o))return Reflect.get(Pe,o,r);const i=Reflect.get(n,o,r);return(G(o)?$e.has(o):Te(o))?i:(e||Ie(n,0,o),t?i:Lt(i)?l&&ee(o)?i:i.value:J(i)?e?At(i):kt(i):i)}}function He(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n,o,r){let l=t[n];if(Ct(l)&&Lt(l)&&!Lt(o))return!1;if(!e&&!Ct(o)&&(Ft(o)||(o=Dt(o),l=Dt(l)),!N(t)&&Lt(l)&&!Lt(o)))return l.value=o,!0;const i=N(t)&&ee(n)?Number(n)!0,deleteProperty:(e,t)=>!0},Ze=O({},We,{get:Ue,set:He(!0)}),Ge=e=>e,Je=e=>Reflect.getPrototypeOf(e);function Ke(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=Dt(e=e.__v_raw),l=Dt(t);n||(t!==l&&Ie(r,0,t),Ie(r,0,l));const{has:i}=Je(r),s=o?Ge:n?It:St;return i.call(r,t)?s(e.get(t)):i.call(r,l)?s(e.get(l)):void(e!==r&&e.get(t))}function Qe(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.__v_raw,o=Dt(n),r=Dt(e);return t||(e!==r&&Ie(o,0,e),Ie(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function Ye(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e=e.__v_raw,!t&&Ie(Dt(e),0,xe),Reflect.get(e,"size",e)}function Xe(e){e=Dt(e);const t=Dt(this);return Je(t).has.call(t,e)||(t.add(e),Re(t,"add",e,e)),this}function et(e,t){t=Dt(t);const n=Dt(this),{has:o,get:r}=Je(n);let l=o.call(n,e);l||(e=Dt(e),l=o.call(n,e));const i=r.call(n,e);return n.set(e,t),l?ae(t,i)&&Re(n,"set",e,t):Re(n,"add",e,t),this}function tt(e){const t=Dt(this),{has:n,get:o}=Je(t);let r=n.call(t,e);r||(e=Dt(e),r=n.call(t,e)),o&&o.call(t,e);const l=t.delete(e);return r&&Re(t,"delete",e,void 0),l}function nt(){const e=Dt(this),t=0!==e.size,n=e.clear();return t&&Re(e,"clear",void 0,void 0),n}function ot(e,t){return function(n,o){const r=this,l=r.__v_raw,i=Dt(l),s=t?Ge:e?It:St;return!e&&Ie(i,0,xe),l.forEach(((e,t)=>n.call(o,s(e),s(t),r)))}}function rt(e,t,n){return function(){const o=this.__v_raw,r=Dt(o),l=V(r),i="entries"===e||e===Symbol.iterator&&l,s="keys"===e&&l,u=o[e](...arguments),a=n?Ge:t?It:St;return!t&&Ie(r,0,s?Ee:xe),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:i?[a(e[0]),a(e[1])]:a(e),done:t}},[Symbol.iterator](){return this}}}}function lt(e){return function(){return"delete"!==e&&this}}function it(){const e={get(e){return Ke(this,e)},get size(){return Ye(this)},has:Qe,add:Xe,set:et,delete:tt,clear:nt,forEach:ot(!1,!1)},t={get(e){return Ke(this,e,!1,!0)},get size(){return Ye(this)},has:Qe,add:Xe,set:et,delete:tt,clear:nt,forEach:ot(!1,!0)},n={get(e){return Ke(this,e,!0)},get size(){return Ye(this,!0)},has(e){return Qe.call(this,e,!0)},add:lt("add"),set:lt("set"),delete:lt("delete"),clear:lt("clear"),forEach:ot(!0,!1)},o={get(e){return Ke(this,e,!0,!0)},get size(){return Ye(this,!0)},has(e){return Qe.call(this,e,!0)},add:lt("add"),set:lt("set"),delete:lt("delete"),clear:lt("clear"),forEach:ot(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=rt(r,!1,!1),n[r]=rt(r,!0,!1),t[r]=rt(r,!1,!0),o[r]=rt(r,!0,!0)})),[e,n,t,o]}const[st,ut,at,ct]=it();function pt(e,t){const n=t?e?ct:at:e?ut:st;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(P(n,o)&&o in t?n:t,o,r)}const dt={get:pt(!1,!1)},ht={get:pt(!1,!0)},ft={get:pt(!0,!1)},gt=new WeakMap,mt=new WeakMap,vt=new WeakMap,yt=new WeakMap;function wt(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=>Y(e).slice(8,-1))(e))}function kt(e){return Ct(e)?e:xt(e,!1,We,dt,gt)}function bt(e){return xt(e,!1,Ze,ht,mt)}function At(e){return xt(e,!0,qe,ft,vt)}function xt(e,t,n,o,r){if(!J(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const l=r.get(e);if(l)return l;const i=wt(e);if(0===i)return e;const s=new Proxy(e,2===i?o:n);return r.set(e,s),s}function Et(e){return Ct(e)?Et(e.__v_raw):!(!e||!e.__v_isReactive)}function Ct(e){return!(!e||!e.__v_isReadonly)}function Ft(e){return!(!e||!e.__v_isShallow)}function _t(e){return Et(e)||Ct(e)}function Dt(e){const t=e&&e.__v_raw;return t?Dt(t):e}function Bt(e){return pe(e,"__v_skip",!0),e}const St=e=>J(e)?kt(e):e,It=e=>J(e)?At(e):e;function zt(e){_e&&Ae&&ze((e=Dt(e)).dep||(e.dep=me()))}function Rt(e,t){(e=Dt(e)).dep&&Le(e.dep)}function Lt(e){return!(!e||!0!==e.__v_isRef)}function jt(e){return $t(e,!1)}function Tt(e){return $t(e,!0)}function $t(e,t){return Lt(e)?e:new Ot(e,t)}class Ot{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:St(e)}get value(){return zt(this),this._value}set value(e){e=this.__v_isShallow?e:Dt(e),ae(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:St(e),Rt(this))}}function Ut(e){return Lt(e)?e.value:e}const Mt={get:(e,t,n)=>Ut(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Lt(r)&&!Lt(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Pt(e){return Et(e)?e:new Proxy(e,Mt)}class Nt{constructor(e,t,n,o){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Ce(e,(()=>{this._dirty||(this._dirty=!0,Rt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Dt(this);return zt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Vt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(e){Wt(e,t,n)}return r}function Ht(e,t,n,o){if(q(e)){const r=Vt(e,t,n,o);return r&&K(r)&&r.catch((e=>{Wt(e,t,n)})),r}const r=[];for(let l=0;l3&&void 0!==arguments[3])||arguments[3];const r=t?t.vnode:null;if(t){let o=t.parent;const r=t.proxy,l=n;for(;o;){const t=o.ec;if(t)for(let n=0;n>>1;fn(Jt[o])1&&void 0!==arguments[1]?arguments[1]:null;if(Qt.length){for(ln=t,Yt=[...new Set(Qt)],Qt.length=0,Xt=0;Xtfn(e)-fn(t))),nn=0;nnnull==e.id?1/0:e.id;function gn(e){Gt=!1,Zt=!0,dn(e),Jt.sort(((e,t)=>fn(e)-fn(t)));try{for(Kt=0;Kt2?o-2:0),l=2;le.trim()))),t&&(i=r.map(de))}let a,c=n[a=ue(t)]||n[a=ue(re(t))];!c&&s&&(c=n[a=ue(ie(t))]),c&&Ht(c,e,6,i);const p=n[a+"Once"];if(p){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,Ht(p,e,6,i)}}function vn(e,t){const n=t.emitsCache,o=n.get(e);if(void 0!==o)return o;const r=e.emits;let l={},i=!1;return r||i?(N(r)?r.forEach((e=>l[e]=null)):O(l,r),n.set(e,l),l):(n.set(e,null),null)}function yn(e,t){return!(!e||!T(t))&&(t=t.slice(2).replace(/Once$/,""),P(e,t[0].toLowerCase()+t.slice(1))||P(e,ie(t))||P(e,t))}let wn=null,kn=null;function bn(e){const t=wn;return wn=e,kn=e&&e.type.__scopeId||null,t}function An(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:l,propsOptions:[i],slots:s,attrs:u,emit:a,render:c,renderCache:p,data:d,setupState:h,ctx:f,inheritAttrs:g}=e;let m,v;const y=bn(e);try{if(4&n.shapeFlag){const e=r||o;m=Vo(c.call(e,e,p,l,h,d,f)),v=u}else{const e=t;m=Vo(e.length>1?e(l,{attrs:u,slots:s,emit:a}):e(l,null)),v=t.props?u:xn(u)}}catch(t){Eo.length=0,Wt(t,e,1),m=Oo(Ao)}let w=m;if(v&&!1!==g){const e=Object.keys(v),{shapeFlag:t}=w;e.length&&7&t&&(i&&e.some($)&&(v=En(v,i)),w=Mo(w,v))}return n.dirs&&(w=Mo(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),m=w,bn(y),m}const xn=e=>{let t;for(const n in e)("class"===n||"style"===n||T(n))&&((t||(t={}))[n]=e[n]);return t},En=(e,t)=>{const n={};for(const o in e)$(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Cn(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;re.__isSuspense;function _n(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=Ko||wn;if(o){const r=null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&q(t)?t.call(o.proxy):t}}function Dn(e,t){return In(e,null,t)}const Bn={};function Sn(e,t,n){return In(e,t,n)}function In(e,t){let{immediate:n,deep:o,flush:r,onTrack:l,onTrigger:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:I;const s=Ko;let u,a,c=!1,p=!1;if(Lt(e)?(u=()=>e.value,c=Ft(e)):Et(e)?(u=()=>e,o=!0):N(e)?(p=!0,c=e.some((e=>Et(e)||Ft(e))),u=()=>e.map((e=>Lt(e)?e.value:Et(e)?zn(e):q(e)?Vt(e,s,2):void 0))):u=q(e)?t?()=>Vt(e,s,2):()=>{if(!s||!s.isUnmounted)return a&&a(),Ht(e,s,3,[d])}:R,t&&o){const e=u;u=()=>zn(e())}let d=e=>{a=m.onStop=()=>{Vt(e,s,4)}};if(er)return d=R,t?n&&Ht(t,s,3,[u(),p?[]:void 0,d]):u(),R;let h=p?[]:Bn;const f=()=>{if(m.active)if(t){const e=m.run();(o||c||(p?e.some(((e,t)=>ae(e,h[t]))):ae(e,h)))&&(a&&a(),Ht(t,s,3,[e,h===Bn?void 0:h,d]),h=e)}else m.run()};let g;f.allowRecurse=!!t,g="sync"===r?f:"post"===r?()=>go(f,s&&s.suspense):()=>pn(f);const m=new Ce(u,g);return t?n?f():h=m.run():"post"===r?go(m.run.bind(m),s&&s.suspense):m.run(),()=>{m.stop(),s&&s.scope&&U(s.scope.effects,m)}}function zn(e,t){if(!J(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),Lt(e))zn(e.value,t);else if(N(e))for(let n=0;n{zn(e,t)}));else if(X(e))for(const n in e)zn(e[n],t);return e}function Rn(e){return q(e)?{setup:e,name:e.name}:e}const Ln=e=>!!e.type.__asyncLoader;function jn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ko,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n){const r=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=function(){if(n.isUnmounted)return;Be(),Qo(n);for(var o=arguments.length,r=new Array(o),l=0;lfunction(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ko;return(!er||"sp"===e)&&jn(e,t,n)},$n=Tn("m"),On=Tn("bum"),Un=Tn("um");function Mn(e,t){const n=wn;if(null===n)return e;const o=rr(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let e=0;e3&&void 0!==arguments[3]&&arguments[3];const o=wn||Ko;if(o){const r=o.type;if(e===Nn){const e=lr(r);if(e&&(e===t||e===re(t)||e===se(re(t))))return r}const l=Wn(o[e]||r[e],t)||Wn(o.appContext[e],t);return!l&&n?r:l}}(Nn,e,!0,t)||e}const Hn=Symbol();function Wn(e,t){return e&&(e[t]||e[re(t)]||e[se(re(t))])}function qn(e,t,n,o){let r;const l=n&&n[o];if(N(e)||Z(e)){r=new Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,l&&l[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,i=n.length;oe?Xo(e)?rr(e)||e.proxy:Zn(e.parent):null,Gn=O(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=>Zn(e.parent),$root:e=>Zn(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>un(e.update)),$nextTick:e=>e.n||(e.n=sn.bind(e.proxy)),$watch:e=>R}),Jn={get(e,t){let{_:n}=e;const{ctx:o,setupState:r,data:l,props:i,accessCache:s,type:u,appContext:a}=n;let c;if("$"!==t[0]){const e=s[t];if(void 0!==e)switch(e){case 1:return r[t];case 2:return l[t];case 4:return o[t];case 3:return i[t]}else{if(r!==I&&P(r,t))return s[t]=1,r[t];if(l!==I&&P(l,t))return s[t]=2,l[t];if((c=n.propsOptions[0])&&P(c,t))return s[t]=3,i[t];if(o!==I&&P(o,t))return s[t]=4,o[t];s[t]=0}}const p=Gn[t];let d,h;return p?("$attrs"===t&&Ie(n,0,t),p(n)):(d=u.__cssModules)&&(d=d[t])?d:o!==I&&P(o,t)?(s[t]=4,o[t]):(h=a.config.globalProperties,P(h,t)?h[t]:void 0)},set(e,t,n){let{_:o}=e;const{data:r,setupState:l,ctx:i}=o;return l!==I&&P(l,t)?(l[t]=n,!0):r!==I&&P(r,t)?(r[t]=n,!0):!P(o.props,t)&&(("$"!==t[0]||!(t.slice(1)in o))&&(i[t]=n,!0))},has(e,t){let n,{_:{data:o,setupState:r,accessCache:l,ctx:i,appContext:s,propsOptions:u}}=e;return!!l[t]||o!==I&&P(o,t)||r!==I&&P(r,t)||(n=u[0])&&P(n,t)||P(i,t)||P(Gn,t)||P(s.config.globalProperties,t)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:P(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Kn(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r={},l={};pe(l,Lo,1),e.propsDefaults=Object.create(null),Qn(e,t,r,l);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=o?r:bt(r):e.type.props?e.props=r:e.props=l,e.attrs=l}function Qn(e,t,n,o){const[r,l]=e.propsOptions;let i,s=!1;if(t)for(let u in t){if(te(u))continue;const a=t[u];let c;r&&P(r,c=re(u))?l&&l.includes(c)?(i||(i={}))[c]=a:n[c]=a:yn(e.emitsOptions,u)||u in o&&a===o[u]||(o[u]=a,s=!0)}if(l){const t=Dt(n),o=i||I;for(let i=0;i-1,o[1]=n<0||e-1||P(o,"default"))&&i.push(t)}}}const u=[l,i];return n.set(e,u),u}function eo(e){return"$"!==e[0]}function to(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function no(e,t){return to(e)===to(t)}function oo(e,t){return N(t)?t.findIndex((t=>no(t,e))):q(t)&&no(t,e)?0:-1}const ro=e=>"_"===e[0]||"$stable"===e,lo=e=>N(e)?e.map(Vo):[Vo(e)],io=(e,t,n)=>{if(t._n)return t;const o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wn;if(!t)return e;if(e._n)return e;const n=function(){n._d&&Do(-1);const o=bn(t),r=e(...arguments);return bn(o),n._d&&Do(1),r};return n._n=!0,n._c=!0,n._d=!0,n}((function(){return lo(t(...arguments))}),n);return o._c=!1,o},so=(e,t,n)=>{const o=e._ctx;for(const n in e){if(ro(n))continue;const r=e[n];if(q(r))t[n]=io(0,r,o);else if(null!=r){const e=lo(r);t[n]=()=>e}}},uo=(e,t)=>{const n=lo(t);e.slots.default=()=>n},ao=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Dt(t),pe(t,"_",n)):so(t,e.slots={})}else e.slots={},t&&uo(e,t);pe(e.slots,Lo,1)};function co(){return{app:null,config:{isNativeTag:L,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 po=0;function ho(e,t){return function(n){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;q(n)||(n=Object.assign({},n)),null==o||J(o)||(o=null);const r=co(),l=new Set;let i=!1;const s=r.app={_uid:po++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:ar,get config(){return r.config},set config(e){},use(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;os,component:(e,t)=>t?(r.components[e]=t,s):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,s):r.directives[e],mount(l,u,a){if(!i){const c=Oo(n,o);return c.appContext=r,u&&t?t(c,l):e(c,l,a),i=!0,s._container=l,l.__vue_app__=s,rr(c.component)||c.component.proxy}},unmount(){i&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,s)};return s}}function fo(e,t,n,o){let r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(N(e))return void e.forEach(((e,l)=>fo(e,t&&(N(t)?t[l]:t),n,o,r)));if(Ln(o)&&!r)return;const l=4&o.shapeFlag?rr(o.component)||o.component.proxy:o.el,i=r?null:l,{i:s,r:u}=e,a=t&&t.r,c=s.refs===I?s.refs={}:s.refs,p=s.setupState;if(null!=a&&a!==u&&(Z(a)?(c[a]=null,P(p,a)&&(p[a]=null)):Lt(a)&&(a.value=null)),q(u))Vt(u,s,12,[i,c]);else{const t=Z(u),o=Lt(u);if(t||o){const o=()=>{if(e.f){const n=t?c[u]:u.value;r?N(n)&&U(n,l):N(n)?n.includes(l)||n.push(l):t?(c[u]=[l],P(p,u)&&(p[u]=c[u])):(u.value=[l],e.k&&(c[e.k]=u.value))}else t?(c[u]=i,P(p,u)&&(p[u]=i)):Lt(u)&&(u.value=i,e.k&&(c[e.k]=i))};i?(o.id=-1,go(o,n)):o()}}}const go=function(e,t){t&&t.pendingBranch?N(e)?t.effects.push(...e):t.effects.push(e):cn(e,tn,en,nn)};function mo(e){return function(e,t){(he||(he="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})).__VUE__=!0;const{insert:n,remove:o,patchProp:r,createElement:l,createText:i,createComment:s,setText:u,setElementText:a,parentNode:c,nextSibling:p,setScopeId:d=R,cloneNode:h,insertStaticContent:f}=e,g=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,i=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:!!t.dynamicChildren;if(e===t)return;e&&!Ro(e,t)&&(o=G(e),V(e,r,l,!0),e=null),-2===t.patchFlag&&(u=!1,t.dynamicChildren=null);const{type:a,ref:c,shapeFlag:p}=t;switch(a){case bo:m(e,t,n,o);break;case Ao:v(e,t,n,o);break;case xo:null==e&&y(t,n,o,i);break;case ko:D(e,t,n,o,r,l,i,s,u);break;default:1&p?b(e,t,n,o,r,l,i,s,u):6&p?B(e,t,n,o,r,l,i,s,u):(64&p||128&p)&&a.process(e,t,n,o,r,l,i,s,u,K)}null!=c&&r&&fo(c,e&&e.ref,l,t||e,!t)},m=(e,t,o,r)=>{if(null==e)n(t.el=i(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&u(n,t.children)}},v=(e,t,o,r)=>{null==e?n(t.el=s(t.children||""),o,r):t.el=e.el},y=(e,t,n,o)=>{[e.el,e.anchor]=f(e.children,t,n,o,e.el,e.anchor)},w=(e,t,o)=>{let r,{el:l,anchor:i}=e;for(;l&&l!==i;)r=p(l),n(l,t,o),l=r;n(i,t,o)},k=e=>{let t,{el:n,anchor:r}=e;for(;n&&n!==r;)t=p(n),o(n),n=t;o(r)},b=(e,t,n,o,r,l,i,s,u)=>{i=i||"svg"===t.type,null==e?A(t,n,o,r,l,i,s,u):C(e,t,r,l,i,s,u)},A=(e,t,o,i,s,u,c,p)=>{let d,f;const{type:g,props:m,shapeFlag:v,transition:y,patchFlag:w,dirs:k}=e;if(e.el&&void 0!==h&&-1===w)d=e.el=h(e.el);else{if(d=e.el=l(e.type,u,m&&m.is,m),8&v?a(d,e.children):16&v&&E(e.children,d,null,i,s,u&&"foreignObject"!==g,c,p),k&&Pn(e,null,i,"created"),m){for(const t in m)"value"===t||te(t)||r(d,t,null,m[t],u,e.children,i,s,Z);"value"in m&&r(d,"value",null,m.value),(f=m.onVnodeBeforeMount)&&Zo(f,i,e)}x(d,e,e.scopeId,c,i)}k&&Pn(e,null,i,"beforeMount");const b=(!s||s&&!s.pendingBranch)&&y&&!y.persisted;b&&y.beforeEnter(d),n(d,t,o),((f=m&&m.onVnodeMounted)||b||k)&&go((()=>{f&&Zo(f,i,e),b&&y.enter(d),k&&Pn(e,null,i,"mounted")}),s)},x=(e,t,n,o,r)=>{if(n&&d(e,n),o)for(let t=0;t8&&void 0!==arguments[8]?arguments[8]:0;u{const u=t.el=e.el;let{patchFlag:c,dynamicChildren:p,dirs:d}=t;c|=16&e.patchFlag;const h=e.props||I,f=t.props||I;let g;n&&vo(n,!1),(g=f.onVnodeBeforeUpdate)&&Zo(g,n,t,e),d&&Pn(t,e,n,"beforeUpdate"),n&&vo(n,!0);const m=l&&"foreignObject"!==t.type;if(p?F(e.dynamicChildren,p,u,n,o,m,i):s||$(e,t,u,null,n,o,m,i,!1),c>0){if(16&c)_(u,t,h,f,n,o,l);else if(2&c&&h.class!==f.class&&r(u,"class",null,f.class,l),4&c&&r(u,"style",h.style,f.style,l),8&c){const i=t.dynamicProps;for(let t=0;t{g&&Zo(g,n,t,e),d&&Pn(t,e,n,"updated")}),o)},F=(e,t,n,o,r,l,i)=>{for(let s=0;s{if(n!==o){for(const u in o){if(te(u))continue;const a=o[u],c=n[u];a!==c&&"value"!==u&&r(e,u,c,a,s,t.children,l,i,Z)}if(n!==I)for(const u in n)te(u)||u in o||r(e,u,n[u],null,s,t.children,l,i,Z);"value"in o&&r(e,"value",n.value,o.value)}},D=(e,t,o,r,l,s,u,a,c)=>{const p=t.el=e?e.el:i(""),d=t.anchor=e?e.anchor:i("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:g}=t;g&&(a=a?a.concat(g):g),null==e?(n(p,o,r),n(d,o,r),E(t.children,o,d,l,s,u,a,c)):h>0&&64&h&&f&&e.dynamicChildren?(F(e.dynamicChildren,f,o,l,s,u,a),(null!=t.key||l&&t===l.subTree)&&yo(e,t,!0)):$(e,t,o,d,l,s,u,a,c)},B=(e,t,n,o,r,l,i,s,u)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,i,u):S(t,n,o,r,l,i,u):L(e,t,u)},S=(e,t,n,o,r,l,i)=>{const s=e.component=function(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Go,l={uid:Jo++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new ge(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Xn(o,r),emitsOptions:vn(o,r),emit:null,emitted:null,propsDefaults:I,inheritAttrs:o.inheritAttrs,ctx:I,data:I,props:I,attrs:I,slots:I,refs:I,setupState:I,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};l.ctx={_:l},l.root=t?t.root:l,l.emit=mn.bind(null,l),e.ce&&e.ce(l);return l}(e,o,r);if(e.type.__isKeepAlive&&(s.ctx.renderer=K),function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];er=t;const{props:n,children:o}=e.vnode,r=Xo(e);Kn(e,n,r,t),ao(e,o);const l=r?tr(e,t):void 0;er=!1}(s),s.asyncDep){if(r&&r.registerDep(s,j),!e.el){const e=s.subTree=Oo(Ao);v(null,e,t,n)}}else j(s,e,t,n,r,l,i)},L=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:l}=e,{props:i,children:s,patchFlag:u}=t,a=l.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&u>=0))return!(!r&&!s||s&&s.$stable)||o!==i&&(o?!i||Cn(o,i,a):!!i);if(1024&u)return!0;if(16&u)return o?Cn(o,i,a):!!i;if(8&u){const e=t.dynamicProps;for(let t=0;tKt&&Jt.splice(t,1)}(o.update),o.update()}else t.el=e.el,o.vnode=t},j=(e,t,n,o,r,l,i)=>{const s=()=>{if(e.isMounted){let t,{next:n,bu:o,u:s,parent:u,vnode:a}=e,p=n;vo(e,!1),n?(n.el=a.el,T(e,n,i)):n=a,o&&ce(o),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Zo(t,u,n,a),vo(e,!0);const d=An(e),h=e.subTree;e.subTree=d,g(h,d,c(h.el),G(h),e,r,l),n.el=d.el,null===p&&function(e,t){let{vnode:n,parent:o}=e;for(;o&&o.subTree===n;)(n=o.vnode).el=t,o=o.parent}(e,d.el),s&&go(s,r),(t=n.props&&n.props.onVnodeUpdated)&&go((()=>Zo(t,u,n,a)),r)}else{let i;const{el:s,props:u}=t,{bm:a,m:c,parent:p}=e,d=Ln(t);if(vo(e,!1),a&&ce(a),!d&&(i=u&&u.onVnodeBeforeMount)&&Zo(i,p,t),vo(e,!0),s&&Y){const n=()=>{e.subTree=An(e),Y(s,e.subTree,e,r,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=An(e);g(null,i,n,o,e,r,l),t.el=i.el}if(c&&go(c,r),!d&&(i=u&&u.onVnodeMounted)){const e=t;go((()=>Zo(i,p,e)),r)}(256&t.shapeFlag||p&&Ln(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&go(e.a,r),e.isMounted=!0,t=n=o=null}},u=e.effect=new Ce(s,(()=>un(a)),e.scope),a=e.update=()=>u.run();a.id=e.uid,vo(e,!0),a()},T=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:l,vnode:{patchFlag:i}}=e,s=Dt(r),[u]=e.propsOptions;let a=!1;if(!(o||i>0)||16&i){let o;Qn(e,t,r,l)&&(a=!0);for(const l in s)t&&(P(t,l)||(o=ie(l))!==l&&P(t,o))||(u?!n||void 0===n[l]&&void 0===n[o]||(r[l]=Yn(u,s,l,void 0,e,!0)):delete r[l]);if(l!==s)for(const e in l)t&&P(t,e)||(delete l[e],a=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let o=0;o{const{vnode:o,slots:r}=e;let l=!0,i=I;if(32&o.shapeFlag){const e=t._;e?n&&1===e?l=!1:(O(r,t),n||1!==e||delete r._):(l=!t.$stable,so(t,r)),i=t}else t&&(uo(e,t),i={default:1});if(l)for(const e in r)ro(e)||e in i||delete r[e]})(e,t.children,n),Be(),dn(void 0,e.update),Se()},$=function(e,t,n,o,r,l,i,s){let u=arguments.length>8&&void 0!==arguments[8]&&arguments[8];const c=e&&e.children,p=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void M(c,d,n,o,r,l,i,s,u);if(256&h)return void U(c,d,n,o,r,l,i,s,u)}8&f?(16&p&&Z(c,r,l),d!==c&&a(n,d)):16&p?16&f?M(c,d,n,o,r,l,i,s,u):Z(c,r,l,!0):(8&p&&a(n,""),16&f&&E(d,n,o,r,l,i,s,u))},U=(e,t,n,o,r,l,i,s,u)=>{t=t||z;const a=(e=e||z).length,c=t.length,p=Math.min(a,c);let d;for(d=0;dc?Z(e,r,l,!0,!1,p):E(t,n,o,r,l,i,s,u,p)},M=(e,t,n,o,r,l,i,s,u)=>{let a=0;const c=t.length;let p=e.length-1,d=c-1;for(;a<=p&&a<=d;){const o=e[a],c=t[a]=u?Ho(t[a]):Vo(t[a]);if(!Ro(o,c))break;g(o,c,n,null,r,l,i,s,u),a++}for(;a<=p&&a<=d;){const o=e[p],a=t[d]=u?Ho(t[d]):Vo(t[d]);if(!Ro(o,a))break;g(o,a,n,null,r,l,i,s,u),p--,d--}if(a>p){if(a<=d){const e=d+1,p=ed)for(;a<=p;)V(e[a],r,l,!0),a++;else{const h=a,f=a,m=new Map;for(a=f;a<=d;a++){const e=t[a]=u?Ho(t[a]):Vo(t[a]);null!=e.key&&m.set(e.key,a)}let v,y=0;const w=d-f+1;let k=!1,b=0;const A=new Array(w);for(a=0;a=w){V(o,r,l,!0);continue}let c;if(null!=o.key)c=m.get(o.key);else for(v=f;v<=d;v++)if(0===A[v-f]&&Ro(o,t[v])){c=v;break}void 0===c?V(o,r,l,!0):(A[c-f]=a+1,c>=b?b=c:k=!0,g(o,t[c],n,null,r,l,i,s,u),y++)}const x=k?function(e){const t=e.slice(),n=[0];let o,r,l,i,s;const u=e.length;for(o=0;o>1,e[n[s]]0&&(t[o]=n[l-1]),n[l]=o)}}l=n.length,i=n[l-1];for(;l-- >0;)n[l]=i,i=t[i];return n}(A):z;for(v=x.length-1,a=w-1;a>=0;a--){const e=f+a,p=t[e],d=e+14&&void 0!==arguments[4]?arguments[4]:null;const{el:i,type:s,transition:u,children:a,shapeFlag:c}=e;if(6&c)return void N(e.component.subTree,t,o,r);if(128&c)return void e.suspense.move(t,o,r);if(64&c)return void s.move(e,t,o,K);if(s===ko){n(i,t,o);for(let e=0;eu.enter(i)),l);else{const{leave:e,delayLeave:r,afterLeave:l}=u,s=()=>n(i,t,o),a=()=>{e(i,(()=>{s(),l&&l()}))};r?r(i,s,a):a()}else n(i,t,o)},V=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const{type:l,props:i,ref:s,children:u,dynamicChildren:a,shapeFlag:c,patchFlag:p,dirs:d}=e;if(null!=s&&fo(s,null,n,e,!0),256&c)return void t.ctx.deactivate(e);const h=1&c&&d,f=!Ln(e);let g;if(f&&(g=i&&i.onVnodeBeforeUnmount)&&Zo(g,t,e),6&c)q(e.component,n,o);else{if(128&c)return void e.suspense.unmount(n,o);h&&Pn(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,r,K,o):a&&(l!==ko||p>0&&64&p)?Z(a,t,n,!1,!0):(l===ko&&384&p||!r&&16&c)&&Z(u,t,n),o&&H(e)}(f&&(g=i&&i.onVnodeUnmounted)||h)&&go((()=>{g&&Zo(g,t,e),h&&Pn(e,null,t,"unmounted")}),n)},H=e=>{const{type:t,el:n,anchor:r,transition:l}=e;if(t===ko)return void W(n,r);if(t===xo)return void k(e);const i=()=>{o(n),l&&!l.persisted&&l.afterLeave&&l.afterLeave()};if(1&e.shapeFlag&&l&&!l.persisted){const{leave:t,delayLeave:o}=l,r=()=>t(n,i);o?o(e.el,i,r):r()}else i()},W=(e,t)=>{let n;for(;e!==t;)n=p(e),o(e),e=n;o(t)},q=(e,t,n)=>{const{bum:o,scope:r,update:l,subTree:i,um:s}=e;o&&ce(o),r.stop(),l&&(l.active=!1,V(i,e,t,n)),s&&go(s,t),go((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},Z=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];for(let l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;l6&e.shapeFlag?G(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),J=(e,t,n)=>{null==e?t._vnode&&V(t._vnode,null,null,!0):g(t._vnode||null,e,t,null,null,null,n),hn(),t._vnode=e},K={p:g,um:V,m:N,r:H,mt:S,mc:E,pc:$,pbc:F,n:G,o:e};let Q,Y;t&&([Q,Y]=t(K));return{render:J,hydrate:Q,createApp:ho(J,Q)}}(e)}function vo(e,t){let{effect:n,update:o}=e;n.allowRecurse=o.allowRecurse=t}function yo(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=e.children,r=t.children;if(N(o)&&N(r))for(let e=0;ee.__isTeleport,ko=Symbol(void 0),bo=Symbol(void 0),Ao=Symbol(void 0),xo=Symbol(void 0),Eo=[];let Co=null;function Fo(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Eo.push(Co=e?null:[])}let _o=1;function Do(e){_o+=e}function Bo(e){return e.dynamicChildren=_o>0?Co||z:null,Eo.pop(),Co=Eo[Eo.length-1]||null,_o>0&&Co&&Co.push(e),e}function So(e,t,n,o,r,l){return Bo($o(e,t,n,o,r,l,!0))}function Io(e,t,n,o,r){return Bo(Oo(e,t,n,o,r,!0))}function zo(e){return!!e&&!0===e.__v_isVNode}function Ro(e,t){return e.type===t.type&&e.key===t.key}const Lo="__vInternal",jo=e=>{let{key:t}=e;return null!=t?t:null},To=e=>{let{ref:t,ref_key:n,ref_for:o}=e;return null!=t?Z(t)||Lt(t)||q(t)?{i:wn,r:t,k:n,f:!!o}:t:null};function $o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e===ko?0:1,i=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&jo(t),ref:t&&To(t),scopeId:kn,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:l,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};return s?(Wo(u,n),128&l&&e.normalize(u)):n&&(u.shapeFlag|=Z(n)?8:16),_o>0&&!i&&Co&&(u.patchFlag>0||6&l)&&32!==u.patchFlag&&Co.push(u),u}const Oo=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,l=arguments.length>5&&void 0!==arguments[5]&&arguments[5];e&&e!==Hn||(e=Ao);if(zo(e)){const o=Mo(e,t,!0);return n&&Wo(o,n),_o>0&&!l&&Co&&(6&o.shapeFlag?Co[Co.indexOf(e)]=o:Co.push(o)),o.patchFlag|=-2,o}ir(e)&&(e=e.__vccOpts);if(t){t=Uo(t);let{class:e,style:n}=t;e&&!Z(e)&&(t.class=F(e)),J(n)&&(_t(n)&&!N(n)&&(n=O({},n)),t.style=A(n))}const i=Z(e)?1:Fn(e)?128:wo(e)?64:J(e)?4:q(e)?2:0;return $o(e,t,n,o,r,i,l,!0)};function Uo(e){return e?_t(e)||Lo in e?O({},e):e:null}function Mo(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{props:o,ref:r,patchFlag:l,children:i}=e,s=t?qo(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&jo(s),ref:t&&t.ref?n&&r?N(r)?r.concat(To(t)):[r,To(t)]:To(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ko?-1===l?16:16|l:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Mo(e.ssContent),ssFallback:e.ssFallback&&Mo(e.ssFallback),el:e.el,anchor:e.anchor};return u}function Po(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Oo(bo,null,e,t)}function No(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?(Fo(),Io(Ao,null,e)):Oo(Ao,null,e)}function Vo(e){return null==e||"boolean"==typeof e?Oo(Ao):N(e)?Oo(ko,null,e.slice()):"object"==typeof e?Ho(e):Oo(bo,null,String(e))}function Ho(e){return null===e.el||e.memo?e:Mo(e)}function Wo(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(N(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),Wo(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||Lo in t?3===o&&wn&&(1===wn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=wn}}else q(t)?(t={default:t,_ctx:wn},n=32):(t=String(t),64&o?(n=16,t=[Po(t)]):n=8);e.children=t,e.shapeFlag|=n}function qo(){const e={};for(let t=0;t3&&void 0!==arguments[3]?arguments[3]:null;Ht(e,t,7,[n,o])}const Go=co();let Jo=0;let Ko=null;const Qo=e=>{Ko=e,e.scope.on()},Yo=()=>{Ko&&Ko.scope.off(),Ko=null};function Xo(e){return 4&e.vnode.shapeFlag}let er=!1;function tr(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Bt(new Proxy(e.ctx,Jn));const{setup:o}=n;if(o){const n=e.setupContext=o.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)=>(Ie(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;Qo(e),Be();const r=Vt(o,e,0,[e.props,n]);if(Se(),Yo(),K(r)){if(r.then(Yo,Yo),t)return r.then((n=>{nr(e,n,t)})).catch((t=>{Wt(t,e,0)}));e.asyncDep=r}else nr(e,r,t)}else or(e,t)}function nr(e,t,n){q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:J(t)&&(e.setupState=Pt(t)),or(e,n)}function or(e,t,n){const o=e.type;e.render||(e.render=o.render||R)}function rr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Pt(Bt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Gn?Gn[n](e):void 0}))}function lr(e){return q(e)&&e.displayName||e.name}function ir(e){return q(e)&&"__vccOpts"in e}const sr=(e,t)=>function(e,t){let n,o,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const l=q(e);l?(n=e,o=R):(n=e.get,o=e.set);return new Nt(n,o,l||!o,r)}(e,t,er);function ur(e,t,n){const o=arguments.length;return 2===o?J(t)&&!N(t)?zo(t)?Oo(e,null,[t]):Oo(e,t):Oo(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&zo(n)&&(n=[n]),Oo(e,t,n))}const ar="3.2.35",cr="undefined"!=typeof document?document:null,pr=cr&&cr.createElement("template"),dr={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?cr.createElementNS("http://www.w3.org/2000/svg",e):cr.createElement(e,n?{is:n}:void 0);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>cr.createTextNode(e),createComment:e=>cr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>cr.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,o,r,l){const i=n?n.previousSibling:t.lastChild;if(r&&(r===l||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==l&&(r=r.nextSibling););else{pr.innerHTML=o?"".concat(e,""):e;const r=pr.content;if(o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function hr(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function fr(e,t,n){const o=e.style,r=Z(n);if(n&&!r){for(const e in n)mr(o,e,n[e]);if(t&&!Z(t))for(const e in t)null==n[e]&&mr(o,e,"")}else{const l=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=l)}}const gr=/\s*!important$/;function mr(e,t,n){if(N(n))n.forEach((n=>mr(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=yr[t];if(n)return n;let o=re(t);if("filter"!==o&&o in e)return yr[t]=o;o=se(o);for(let n=0;n{let e=Date.now,t=!1;if("undefined"!=typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=()=>performance.now());const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let Er=0;const Cr=Promise.resolve(),Fr=()=>{Er=0};function _r(e,t,n,o){e.addEventListener(t,n,o)}function Dr(e,t,n,o){e.removeEventListener(t,n,o)}function Br(e,t,n,o){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;const l=e._vei||(e._vei={}),i=l[t];if(o&&i)i.value=o;else{const[n,s]=Ir(t);if(o){_r(e,n,l[t]=zr(o,r),s)}else i&&(Dr(e,n,i,s),l[t]=void 0)}}const Sr=/(?:Once|Passive|Capture)$/;function Ir(e){let t;if(Sr.test(e)){let n;for(t={};n=e.match(Sr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[ie(e.slice(2)),t]}function zr(e,t){const n=e=>{const o=e.timeStamp||Ar();(xr||o>=n.attached-1)&&Ht(function(e,t){if(N(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=Er||(Cr.then(Fr),Er=Ar()),n}const Rr=/^on[a-z]/;function Lr(e,t,n,o){return o?"innerHTML"===t||"textContent"===t||!!(t in e&&Rr.test(t)&&q(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!Rr.test(t)||!Z(n))&&t in e))))}const jr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return N(t)?e=>ce(t,e):t};function Tr(e){e.target.composing=!0}function $r(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Or={created(e,t,n){let{modifiers:{lazy:o,trim:r,number:l}}=t;e._assign=jr(n);const i=l||n.props&&"number"===n.props.type;_r(e,o?"change":"input",(t=>{if(t.target.composing)return;let n=e.value;r&&(n=n.trim()),i&&(n=de(n)),e._assign(n)})),r&&_r(e,"change",(()=>{e.value=e.value.trim()})),o||(_r(e,"compositionstart",Tr),_r(e,"compositionend",$r),_r(e,"change",$r))},mounted(e,t){let{value:n}=t;e.value=null==n?"":n},beforeUpdate(e,t,n){let{value:o,modifiers:{lazy:r,trim:l,number:i}}=t;if(e._assign=jr(n),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(r)return;if(l&&e.value.trim()===o)return;if((i||"number"===e.type)&&de(e.value)===o)return}const s=null==o?"":o;e.value!==s&&(e.value=s)}},Ur={deep:!0,created(e,t,n){e._assign=jr(n),_r(e,"change",(()=>{const t=e._modelValue,n=Hr(e),o=e.checked,r=e._assign;if(N(t)){const e=D(t,n),l=-1!==e;if(o&&!l)r(t.concat(n));else if(!o&&l){const n=[...t];n.splice(e,1),r(n)}}else if(H(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(Wr(e,o))}))},mounted:Mr,beforeUpdate(e,t,n){e._assign=jr(n),Mr(e,t,n)}};function Mr(e,t,n){let{value:o,oldValue:r}=t;e._modelValue=o,N(o)?e.checked=D(o,n.props.value)>-1:H(o)?e.checked=o.has(n.props.value):o!==r&&(e.checked=_(o,Wr(e,!0)))}const Pr={created(e,t,n){let{value:o}=t;e.checked=_(o,n.props.value),e._assign=jr(n),_r(e,"change",(()=>{e._assign(Hr(e))}))},beforeUpdate(e,t,n){let{value:o,oldValue:r}=t;e._assign=jr(n),o!==r&&(e.checked=_(o,n.props.value))}},Nr={deep:!0,created(e,t,n){let{value:o,modifiers:{number:r}}=t;const l=H(o);_r(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>r?de(Hr(e)):Hr(e)));e._assign(e.multiple?l?new Set(t):t:t[0])})),e._assign=jr(n)},mounted(e,t){let{value:n}=t;Vr(e,n)},beforeUpdate(e,t,n){e._assign=jr(n)},updated(e,t){let{value:n}=t;Vr(e,n)}};function Vr(e,t){const n=e.multiple;if(!n||N(t)||H(t)){for(let o=0,r=e.options.length;o-1:r.selected=t.has(l);else if(_(Hr(r),t))return void(e.selectedIndex!==o&&(e.selectedIndex=o))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Hr(e){return"_value"in e?e._value:e.value}function Wr(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const qr={created(e,t,n){Zr(e,t,n,null,"created")},mounted(e,t,n){Zr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){Zr(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){Zr(e,t,n,o,"updated")}};function Zr(e,t,n,o,r){const l=function(e,t){switch(e){case"SELECT":return Nr;case"TEXTAREA":return Or;default:switch(t){case"checkbox":return Ur;case"radio":return Pr;default:return Or}}}(e.tagName,n.props&&n.props.type)[r];l&&l(e,t,n,o)}const Gr={beforeMount(e,t,n){let{value:o}=t,{transition:r}=n;e._vod="none"===e.style.display?"":e.style.display,r&&o?r.beforeEnter(e):Jr(e,o)},mounted(e,t,n){let{value:o}=t,{transition:r}=n;r&&o&&r.enter(e)},updated(e,t,n){let{value:o,oldValue:r}=t,{transition:l}=n;!o!=!r&&(l?o?(l.beforeEnter(e),Jr(e,!0),l.enter(e)):l.leave(e,(()=>{Jr(e,!1)})):Jr(e,o))},beforeUnmount(e,t){let{value:n}=t;Jr(e,n)}};function Jr(e,t){e.style.display=t?e._vod:"none"}const Kr=O({patchProp:function(e,t,n,o){let r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=arguments.length>5?arguments[5]:void 0,i=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0;"class"===t?hr(e,o,r):"style"===t?fr(e,n,o):T(t)?$(t)||Br(e,t,n,o,i):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):Lr(e,t,o,r))?br(e,t,o,l,i,s,u):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),kr(e,t,o,r))}},dr);let Qr;function Yr(){return Qr||(Qr=mo(Kr))}function Xr(e){if(Z(e)){return document.querySelector(e)}return e}function el(e){return!!fe&&(function(e){fe&&fe.cleanups.push(e)}(e),!0)}var tl;const nl="undefined"!=typeof window,ol=e=>"string"==typeof e,rl=()=>{};function ll(e,t){return function(){for(var n=arguments.length,o=new Array(n),r=0;rt.apply(this,o)),{fn:t,thisArg:this,args:o})}}nl&&(null==(tl=null==window?void 0:window.navigator)?void 0:tl.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const il=e=>e();function sl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:il;const t=jt(!0);function n(){t.value=!1}function o(){t.value=!0}const r=function(){t.value&&e(...arguments)};return{isActive:t,pause:n,resume:o,eventFilter:r}}function ul(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{immediate:o=!0,immediateCallback:r=!1}=n;let l=null;const i=jt(!1);function s(){l&&(clearInterval(l),l=null)}function u(){i.value=!1,s()}function a(){t<=0||(i.value=!0,r&&e(),s(),l=setInterval(e,Ut(t)))}if(o&&nl&&a(),Lt(t)){el(Sn(t,(()=>{o&&nl&&a()})))}return el(u),{isActive:i,pause:u,resume:a}}var al=Object.getOwnPropertySymbols,cl=Object.prototype.hasOwnProperty,pl=Object.prototype.propertyIsEnumerable,dl=(e,t)=>{var n={};for(var o in e)cl.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&al)for(var o of al(e))t.indexOf(o)<0&&pl.call(e,o)&&(n[o]=e[o]);return n};function hl(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=n,{eventFilter:r=il}=o,l=dl(o,["eventFilter"]);return Sn(e,ll(r,t),l)}var fl=Object.defineProperty,gl=Object.defineProperties,ml=Object.getOwnPropertyDescriptors,vl=Object.getOwnPropertySymbols,yl=Object.prototype.hasOwnProperty,wl=Object.prototype.propertyIsEnumerable,kl=(e,t,n)=>t in e?fl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bl=(e,t)=>{for(var n in t||(t={}))yl.call(t,n)&&kl(e,n,t[n]);if(vl)for(var n of vl(t))wl.call(t,n)&&kl(e,n,t[n]);return e},Al=(e,t)=>gl(e,ml(t)),xl=(e,t)=>{var n={};for(var o in e)yl.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&vl)for(var o of vl(e))t.indexOf(o)<0&&wl.call(e,o)&&(n[o]=e[o]);return n};function El(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=n,{eventFilter:r}=o,l=xl(o,["eventFilter"]),{eventFilter:i,pause:s,resume:u,isActive:a}=sl(r),c=hl(e,t,Al(bl({},l),{eventFilter:i}));return{stop:c,pause:s,resume:u,isActive:a}}function Cl(e){var t;const n=Ut(e);return null!=(t=null==n?void 0:n.$el)?t:n}const Fl=nl?window:void 0,_l=nl?window.document:void 0;function Dl(){let e,t,n,o;for(var r=arguments.length,l=new Array(r),i=0;iCl(e)),(e=>{s(),e&&(e.addEventListener(t,n,o),s=()=>{e.removeEventListener(t,n,o),s=rl})}),{immediate:!0,flush:"post"}),a=()=>{u(),s()};return el(a),a}nl&&window.navigator,nl&&window.location;const Bl="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Sl="__vueuse_ssr_handlers__";Bl[Sl]=Bl[Sl]||{};const Il=Bl[Sl];function zl(e,t){return Il[e]||t}function Rl(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"}const Ll={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 jl(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var r;const{flush:l="pre",deep:i=!0,listenToStorageChanges:s=!0,writeDefaults:u=!0,shallow:a,window:c=Fl,eventFilter:p,onError:d=(e=>{console.error(e)})}=o,h=(a?Tt:jt)(t);if(!n)try{n=zl("getDefaultStorage",(()=>{var e;return null==(e=Fl)?void 0:e.localStorage}))()}catch(e){d(e)}if(!n)return h;const f=Ut(t),g=Rl(f),m=null!=(r=o.serializer)?r:Ll[g],{pause:v,resume:y}=El(h,(()=>w(h.value)),{flush:l,deep:i,eventFilter:p});return c&&s&&Dl(c,"storage",b),b(),h;function w(t){try{null==t?n.removeItem(e):n.setItem(e,m.write(t))}catch(e){d(e)}}function k(t){if(!t||t.key===e){v();try{const o=t?t.newValue:n.getItem(e);return null==o?(u&&null!==f&&n.setItem(e,m.write(f)),f):"string"!=typeof o?o:m.read(o)}catch(e){d(e)}finally{y()}}}function b(t){t&&t.key!==e||(h.value=k(t))}}function Tl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{immediate:n=!0,window:o=Fl}=t,r=jt(!1);let l=null;function i(){r.value&&o&&(e(),l=o.requestAnimationFrame(i))}function s(){!r.value&&o&&(r.value=!0,i())}function u(){r.value=!1,null!=l&&o&&(o.cancelAnimationFrame(l),l=null)}return n&&s(),el(u),{isActive:r,pause:u,resume:s}}var $l=Object.defineProperty,Ol=Object.getOwnPropertySymbols,Ul=Object.prototype.hasOwnProperty,Ml=Object.prototype.propertyIsEnumerable,Pl=(e,t,n)=>t in e?$l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nl=(e,t)=>{for(var n in t||(t={}))Ul.call(t,n)&&Pl(e,n,t[n]);if(Ol)for(var n of Ol(t))Ml.call(t,n)&&Pl(e,n,t[n]);return e};let Vl=0;const Hl=e=>{try{e=decodeURI(e)}catch(e){}return e},Wl=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/\/$/u,"")},ql=e=>/^(https?:)?\/\//.test(e),Zl=e=>{const t=Wl(e);return ql(t)?t:"https://".concat(t)},Gl=e=>Array.isArray(e)?e:!!e&&[0,e],Jl=(e,t)=>"function"==typeof e?e:!1!==e&&t,Kl="{--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}",Ql=(e,t)=>{let n=e.toString();for(;n.length{if(!e)return"";const o="string"==typeof e?new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e):e,r=t.getTime()-o.getTime(),l=Math.floor(r/864e5);if(0===l){const e=r%864e5,t=Math.floor(e/36e5);if(0===t){const t=e%36e5,o=Math.floor(t/6e4);if(0===o){const e=t%6e4,o=Math.round(e/1e3);return"".concat(o," ").concat(n.seconds)}return"".concat(o," ").concat(n.minutes)}return"".concat(t," ").concat(n.hours)}return l<0?n.now:l<8?"".concat(l," ").concat(n.days):(e=>{const t=Ql(e.getDate(),2),n=Ql(e.getMonth()+1,2),o=Ql(e.getFullYear(),2);return"".concat(o,"-").concat(n,"-").concat(t)})(o)},Xl=e=>{const t=jl("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("".concat(e,"/info.json")).then((e=>e.json())).then((o=>{const r={folder:e,...o};return n&&(t.value[e]=r),r}))},ei=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return"".concat(t?"".concat(t,"/"):"").concat(n).concat(e).concat(o?".".concat(o):"")},ti=e=>{"AbortError"!==e.name&&console.error(e.message)},ni={"Content-Type":"application/json"},oi=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("object"==typeof e&&e.errno)throw new TypeError("Fetch ".concat(t," failed with ").concat(e.errno,": ").concat(e.errmsg));return e},ri=e=>{let{serverURL:t,lang:n,token:o,objectId:r,...l}=e;const i={"Content-Type":"application/json",Authorization:"Bearer ".concat(o)};return fetch("".concat(t,"/comment/").concat(r,"?lang=").concat(n),{method:"PUT",headers:i,body:JSON.stringify(l)}).then((e=>e.json()))},li=e=>{let{serverURL:t,lang:n,paths:o,signal:r}=e;return fetch("".concat(t,"/article?path=").concat(encodeURIComponent(o.join(",")),"&lang=").concat(n),{signal:r}).then((e=>e.json())).then((e=>oi(e,"visit count"))).then((e=>Array.isArray(e)?e:[e]))},ii=e=>{let{serverURL:t,lang:n,path:o}=e;return fetch("".concat(t,"/article?lang=").concat(n),{method:"POST",headers:ni,body:JSON.stringify({path:o})}).then((e=>e.json())).then((e=>oi(e,"visit count")))},si=e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null,ui=e=>e.type.includes("image"),ai=e=>{const t=Array.from(e).find(ui);return t?t.getAsFile():null};function ci(){return{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 pi={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 di=/[&<>"']/,hi=/[&<>"']/g,fi=/[<>"']|&(?!#?\w+;)/,gi=/[<>"']|&(?!#?\w+;)/g,mi={"&":"&","<":"<",">":">",'"':""","'":"'"},vi=e=>mi[e];function yi(e,t){if(t){if(di.test(e))return e.replace(hi,vi)}else if(fi.test(e))return e.replace(gi,vi);return e}const wi=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function ki(e){return e.replace(wi,((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 bi=/(^|[^\[])\^/g;function Ai(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,o)=>(o=(o=o.source||o).replace(bi,"$1"),e=e.replace(t,o),n),getRegex:()=>new RegExp(e,t)};return n}const xi=/[^\w:]/g,Ei=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Ci(e,t,n){if(e){let e;try{e=decodeURIComponent(ki(n)).replace(xi,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!Ei.test(n)&&(n=function(e,t){Fi[" "+e]||(_i.test(e)?Fi[" "+e]=e+"/":Fi[" "+e]=Ri(e,"/",!0));const n=-1===(e=Fi[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(Di,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(Bi,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const Fi={},_i=/^[^:]+:\/*[^/]*$/,Di=/^([^:]+:)[\s\S]*$/,Bi=/^([^:]+:\/*[^/]*)[\s\S]*$/;const Si={exec:function(){}};function Ii(e){let t,n,o=1;for(;o{let o=!1,r=t;for(;--r>=0&&"\\"===n[r];)o=!o;return o?"|":" |"})).split(/ \|/);let o=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.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function Ti(e,t,n,o){const r=t.href,l=t.title?yi(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){o.state.inLink=!0;const e={type:"link",raw:n,href:r,title:l,text:i,tokens:o.inlineTokens(i,[])};return o.state.inLink=!1,e}return{type:"image",raw:n,href:r,title:l,text:yi(i)}}class $i{constructor(e){this.options=e||pi}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:Ri(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 o=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=o.length?e.slice(o.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=Ri(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}const n={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}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,o,r,l,i,s,u,a,c,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}\\".concat(f.slice(-1)):"\\".concat(f),this.options.pedantic&&(f=g?f:"[*+-]");const v=new RegExp("^( {0,3}".concat(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),a=t[2].split("\n",1)[0],c=e.split("\n",1)[0],this.options.pedantic?(l=2,d=a.trimLeft()):(l=t[2].search(/[^ ]/),l=l>4?1:l,d=a.slice(l),l+=t[1].length),s=!1,!a&&/^ *$/.test(c)&&(n+=c+"\n",e=e.substring(c.length+1),h=!0),!h){const t=new RegExp("^ {0,".concat(Math.min(3,l-1),"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))")),o=new RegExp("^ {0,".concat(Math.min(3,l-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"));for(;e&&(p=e.split("\n",1)[0],a=p,this.options.pedantic&&(a=a.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!t.test(a))&&!o.test(e);){if(a.search(/[^ ]/)>=l||!a.trim())d+="\n"+a.slice(l);else{if(s)break;d+="\n"+a}s||a.trim()||(s=!0),n+=p+"\n",e=e.substring(p.length+1)}}m.loose||(u?m.loose=!0:/\n *\n *$/.test(n)&&(u=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(d),o&&(r="[ ] "!==o[0],d=d.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!o,checked:r,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(i=0;i"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[i].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]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):yi(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),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:zi(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,o,r,l,i=e.align.length;for(n=0;n({text:e})));for(i=e.header.length,o=0;o/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]):yi(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))return;const t=Ri(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 o=0,r=0;for(;r-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],o="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],o=e[3])}else o=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^$/.test(e)?n.slice(1):n.slice(1,-1)),Ti(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:o?o.replace(this.rules.inline._escapes,"$1"):o},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 Ti(n,e,n[0],this.lexer)}}emStrong(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=this.rules.inline.emStrong.lDelim.exec(e);if(!o)return;if(o[3]&&n.match(/[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10107}-\u{10133}\u{10140}-\u{10178}\u{1018A}\u{1018B}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E1}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{103A0}-\u{103C3}\u{103C8}-\u{103CF}\u{103D1}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{10570}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10858}-\u{10876}\u{10879}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A60}-\u{10A7E}\u{10A80}-\u{10A9F}\u{10AC0}-\u{10AC7}\u{10AC9}-\u{10AE4}\u{10AEB}-\u{10AEF}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F54}\u{10F70}-\u{10F81}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{11003}-\u{11037}\u{11052}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11083}-\u{110AF}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{11136}-\u{1113F}\u{11144}\u{11147}\u{11150}-\u{11172}\u{11176}\u{11183}-\u{111B2}\u{111C1}-\u{111C4}\u{111D0}-\u{111DA}\u{111DC}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122B}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A8}\u{112B0}-\u{112DE}\u{112F0}-\u{112F9}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}\u{11350}\u{1135D}-\u{11361}\u{11400}-\u{11434}\u{11447}-\u{1144A}\u{11450}-\u{11459}\u{1145F}-\u{11461}\u{11480}-\u{114AF}\u{114C4}\u{114C5}\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115AE}\u{115D8}-\u{115DB}\u{11600}-\u{1162F}\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116B8}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11730}-\u{1173B}\u{11740}-\u{11746}\u{11800}-\u{1182B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{1192F}\u{1193F}\u{11941}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D0}\u{119E1}\u{119E3}\u{11A00}\u{11A0B}-\u{11A32}\u{11A3A}\u{11A50}\u{11A5C}-\u{11A89}\u{11A9D}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2E}\u{11C40}\u{11C50}-\u{11C6C}\u{11C72}-\u{11C8F}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D89}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11FB0}\u{11FC0}-\u{11FD4}\u{12000}-\u{12399}\u{12400}-\u{1246E}\u{12480}-\u{12543}\u{12F90}-\u{12FF0}\u{13000}-\u{1342E}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A70}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16B00}-\u{16B2F}\u{16B40}-\u{16B43}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E96}\u{16F00}-\u{16F4A}\u{16F50}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B150}-\u{1B152}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D7FF}\u{1DF00}-\u{1DF1E}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1EC71}-\u{1ECAB}\u{1ECAD}-\u{1ECAF}\u{1ECB1}-\u{1ECB4}\u{1ED01}-\u{1ED2D}\u{1ED2F}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1F100}-\u{1F10C}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B738}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}]/u))return;const r=o[1]||o[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){const n=o[0].length-1;let r,l,i=n,s=0;const u="*"===o[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+n);null!=(o=u.exec(t));){if(r=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!r)continue;if(l=r.length,o[3]||o[4]){i+=l;continue}if((o[5]||o[6])&&n%3&&!((n+l)%3)){s+=l;continue}if(i-=l,i>0)continue;if(l=Math.min(l,l+i+s),Math.min(n,l)%2){const t=e.slice(1,n+o.index+l);return{type:"em",raw:e.slice(0,n+o.index+l+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,n+o.index+l-1);return{type:"strong",raw:e.slice(0,n+o.index+l+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),o=/^ /.test(e)&&/ $/.test(e);return n&&o&&(e=e.substring(1,e.length-1)),e=yi(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,o;return"@"===n[2]?(e=yi(this.options.mangle?t(n[1]):n[1]),o="mailto:"+e):(e=yi(n[1]),o=e),{type:"link",raw:n[0],text:e,href:o,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,o;if("@"===n[2])e=yi(this.options.mangle?t(n[0]):n[0]),o="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=yi(n[0]),o="www."===n[1]?"http://"+e:e}return{type:"link",raw:n[0],text:e,href:o,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]):yi(n[0]):n[0]:yi(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const Oi={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]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Si,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?'|\([^()]*\))/};Oi.def=Ai(Oi.def).replace("label",Oi._label).replace("title",Oi._title).getRegex(),Oi.bullet=/(?:[*+-]|\d{1,9}[.)])/,Oi.listItemStart=Ai(/^( *)(bull) */).replace("bull",Oi.bullet).getRegex(),Oi.list=Ai(Oi.list).replace(/bull/g,Oi.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Oi.def.source+")").getRegex(),Oi._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",Oi._comment=/|$)/,Oi.html=Ai(Oi.html,"i").replace("comment",Oi._comment).replace("tag",Oi._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Oi.paragraph=Ai(Oi._paragraph).replace("hr",Oi.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",")|<(?:script|pre|style|textarea|!--)").replace("tag",Oi._tag).getRegex(),Oi.blockquote=Ai(Oi.blockquote).replace("paragraph",Oi.paragraph).getRegex(),Oi.normal=Ii({},Oi),Oi.gfm=Ii({},Oi.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Oi.gfm.table=Ai(Oi.gfm.table).replace("hr",Oi.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",")|<(?:script|pre|style|textarea|!--)").replace("tag",Oi._tag).getRegex(),Oi.gfm.paragraph=Ai(Oi._paragraph).replace("hr",Oi.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Oi.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Oi._tag).getRegex(),Oi.pedantic=Ii({},Oi.normal,{html:Ai("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Oi._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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Si,paragraph:Ai(Oi.normal._paragraph).replace("hr",Oi.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Oi.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const Ui={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Si,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\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:Si,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),o+="&#"+n+";";return o}Ui._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Ui.punctuation=Ai(Ui.punctuation).replace(/punctuation/g,Ui._punctuation).getRegex(),Ui.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Ui.escapedEmSt=/\\\*|\\_/g,Ui._comment=Ai(Oi._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Ui.emStrong.lDelim=Ai(Ui.emStrong.lDelim).replace(/punct/g,Ui._punctuation).getRegex(),Ui.emStrong.rDelimAst=Ai(Ui.emStrong.rDelimAst,"g").replace(/punct/g,Ui._punctuation).getRegex(),Ui.emStrong.rDelimUnd=Ai(Ui.emStrong.rDelimUnd,"g").replace(/punct/g,Ui._punctuation).getRegex(),Ui._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Ui._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Ui._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])?)+(?![-_])/,Ui.autolink=Ai(Ui.autolink).replace("scheme",Ui._scheme).replace("email",Ui._email).getRegex(),Ui._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Ui.tag=Ai(Ui.tag).replace("comment",Ui._comment).replace("attribute",Ui._attribute).getRegex(),Ui._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ui._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Ui._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ui.link=Ai(Ui.link).replace("label",Ui._label).replace("href",Ui._href).replace("title",Ui._title).getRegex(),Ui.reflink=Ai(Ui.reflink).replace("label",Ui._label).replace("ref",Oi._label).getRegex(),Ui.nolink=Ai(Ui.nolink).replace("ref",Oi._label).getRegex(),Ui.reflinkSearch=Ai(Ui.reflinkSearch,"g").replace("reflink",Ui.reflink).replace("nolink",Ui.nolink).getRegex(),Ui.normal=Ii({},Ui),Ui.pedantic=Ii({},Ui.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:Ai(/^!?\[(label)\]\((.*?)\)/).replace("label",Ui._label).getRegex(),reflink:Ai(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ui._label).getRegex()}),Ui.gfm=Ii({},Ui.normal,{escape:Ai(Ui.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]*?(?:(?=[\\1&&void 0!==arguments[1]?arguments[1]:[];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((n=>!!(t=n.call({lexer:this},e,l))&&(e=e.substring(t.raw.length),l.push(t),!0)))))if(t=this.tokenizer.space(e))e=e.substring(t.raw.length),1===t.raw.length&&l.length>0?l[l.length-1].raw+="\n":l.push(t);else if(t=this.tokenizer.code(e))e=e.substring(t.raw.length),n=l[l.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?l.push(t):(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(t=this.tokenizer.fences(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.heading(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.hr(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.blockquote(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.list(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.html(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.def(e))e=e.substring(t.raw.length),n=l[l.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title}):(n.raw+="\n"+t.raw,n.text+="\n"+t.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(t=this.tokenizer.table(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.lheading(e))e=e.substring(t.raw.length),l.push(t);else{if(o=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&&(o=e.substring(0,t+1))}if(this.state.top&&(t=this.tokenizer.paragraph(o)))n=l[l.length-1],r&&"paragraph"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):l.push(t),r=o.length!==e.length,e=e.substring(t.raw.length);else if(t=this.tokenizer.text(e))e=e.substring(t.raw.length),n=l[l.length-1],n&&"text"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):l.push(t);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,l}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e){let t,n,o,r,l,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],u=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(u));)e.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,r.index)+"["+ji("a",r[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(u));)u=u.slice(0,r.index)+"["+ji("a",r[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.escapedEmSt.exec(u));)u=u.slice(0,r.index)+"++"+u.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(l||(i=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((n=>!!(t=n.call({lexer:this},e,s))&&(e=e.substring(t.raw.length),s.push(t),!0)))))if(t=this.tokenizer.escape(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.tag(e))e=e.substring(t.raw.length),n=s[s.length-1],n&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):s.push(t);else if(t=this.tokenizer.link(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(t.raw.length),n=s[s.length-1],n&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):s.push(t);else if(t=this.tokenizer.emStrong(e,u,i))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.codespan(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.br(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.del(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.autolink(e,Pi))e=e.substring(t.raw.length),s.push(t);else if(this.state.inLink||!(t=this.tokenizer.url(e,Pi))){if(o=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&&(o=e.substring(0,t+1))}if(t=this.tokenizer.inlineText(o,Mi))e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(i=t.raw.slice(-1)),l=!0,n=s[s.length-1],n&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):s.push(t);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(t.raw.length),s.push(t);return s}}class Vi{constructor(e){this.options=e||pi}code(e,t,n){const o=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,o);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",o?'
'+(n?e:yi(e,!0))+"
\n":"
"+(n?e:yi(e,!0))+"
\n"}blockquote(e){return"
\n".concat(e,"
\n")}html(e){return e}heading(e,t,n,o){if(this.options.headerIds){const r=this.options.headerPrefix+o.slug(n);return"').concat(e,"\n")}return"").concat(e,"\n")}hr(){return this.options.xhtml?"
\n":"
\n"}list(e,t,n){const o=t?"ol":"ul";return"<"+o+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"}listitem(e){return"
  • ".concat(e,"
  • \n")}checkbox(e){return" "}paragraph(e){return"

    ".concat(e,"

    \n")}table(e,t){return t&&(t="".concat(t,"")),"\n\n"+e+"\n"+t+"
    \n"}tablerow(e){return"\n".concat(e,"\n")}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<".concat(n,' align="').concat(t.align,'">'):"<".concat(n,">"))+e+"\n")}strong(e){return"".concat(e,"")}em(e){return"".concat(e,"")}codespan(e){return"".concat(e,"")}br(){return this.options.xhtml?"
    ":"
    "}del(e){return"".concat(e,"")}link(e,t,n){if(null===(e=Ci(this.options.sanitize,this.options.baseUrl,e)))return n;let o='",o}image(e,t,n){if(null===(e=Ci(this.options.sanitize,this.options.baseUrl,e)))return n;let o='').concat(n,'":">",o}text(e){return e}}class Hi{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 Wi{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,o=0;if(this.seen.hasOwnProperty(n)){o=this.seen[e];do{o++,n=e+"-"+o}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=o,this.seen[n]=0),n}slug(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class qi{constructor(e){this.options=e||pi,this.options.renderer=this.options.renderer||new Vi,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Hi,this.slugger=new Wi}static parse(e,t){return new qi(t).parse(e)}static parseInline(e,t){return new qi(t).parseInline(e)}parse(e){let t,n,o,r,l,i,s,u,a,c,p,d,h,f,g,m,v,y,w,k=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],b="";const A=e.length;for(t=0;t0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=y+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=y+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:y}):f+=y),f+=this.parse(g.tokens,h),a+=this.renderer.listitem(f,v,m);b+=this.renderer.list(a,p,d);continue;case"html":b+=this.renderer.html(c.text);continue;case"paragraph":b+=this.renderer.paragraph(this.parseInline(c.tokens));continue;case"text":for(a=c.tokens?this.parseInline(c.tokens):c.text;t+1{o(e.text,e.lang,(function(t,n){if(t)return l(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),i--,0===i&&l()}))}),0))})),void(0===i&&l())}try{const n=Ni.lex(e,t);return t.walkTokens&&Zi.walkTokens(n,t.walkTokens),qi.parse(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+yi(e.message+"",!0)+"
    ";throw e}}Zi.options=Zi.setOptions=function(e){var t;return Ii(Zi.defaults,e),t=Zi.defaults,pi=t,Zi},Zi.getDefaults=ci,Zi.defaults=pi,Zi.use=function(){for(var e=arguments.length,t=new Array(e),n=0;n{if(e.extensions&&(l=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=r.renderers?r.renderers[e.name]:null;r.renderers[e.name]=t?function(){for(var n=arguments.length,o=new Array(n),r=0;rAn error occurred:

    "+yi(e.message+"",!0)+"
    ";throw e}},Zi.Parser=qi,Zi.parser=qi.parse,Zi.Renderer=Vi,Zi.TextRenderer=Hi,Zi.Lexer=Ni,Zi.lexer=Ni.lex,Zi.Tokenizer=$i,Zi.Slugger=Wi,Zi.parse=Zi;const Gi=/\$.*?\$/,Ji=/^\$(.*?)\$/,Ki=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,Qi=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.replace(/:(.+?):/g,((e,n)=>t[n]?'').concat(n,''):e))},Yi=(e,t)=>{let{emojiMap:n,highlighter:o,texRenderer:r}=t;if(Zi.setOptions({highlight:o||void 0,breaks:!0,smartLists:!0,smartypants:!0}),r){const e=(e=>[{name:"blockMath",level:"block",tokenizer(t){const n=Ki.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(Gi);return-1!==t?t:e.length},tokenizer(t){const n=Ji.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}}])(r);Zi.use({extensions:e})}return Zi.parse(Qi(e,n))},Xi=e=>e.dataset.path||e.getAttribute("id"),es=e=>{let{key:t,keyword:n,pos:o,limit:r}=e;const l=new URLSearchParams("media_filter=minimal");return l.set("key",t||"PAY5JLFIH6V6"),l.set("limit",(r||20).toString()),l.set("pos",o||""),l.set("q",n),fetch("".concat("https://g.tenor.com/v1/search","?").concat(l.toString()),{headers:{"Content-Type":"application/json"}}).then((e=>e.json()))},ts=(e,t)=>{const n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{controls:t=!1,interval:n="requestAnimationFrame"}=e,o=jt(new Date),r=()=>o.value=new Date,l="requestAnimationFrame"===n?Tl(r,{immediate:!0}):ul(r,n,{immediate:!0});return t?Nl({now:o},l):o}();return sr((()=>Yl(e,n.value,t)))};let ns=null;const os=()=>ns||(ns=jl("USER_KEY",{}));let rs=null;const ls=()=>rs||(rs=jl("WALINE_LIKE",[])),is=e=>{var t;let{serverURL:n,path:o=window.location.pathname,selector:r=".waline-comment-count",lang:l="zh-CN"}=e;const i=new AbortController,s=document.querySelectorAll(r),u=os();return s.length&&(e=>{let{serverURL:t,lang:n,paths:o,signal:r,token:l}=e;const i={};return l&&(i.Authorization="Bearer ".concat(l)),fetch("".concat(t,"/comment?type=count&url=").concat(encodeURIComponent(o.join(",")),"&lang=").concat(n),{signal:r,headers:i}).then((e=>e.json())).then((e=>oi(e,"comment count"))).then((e=>Array.isArray(e)?e:[e]))})({serverURL:n,paths:Array.from(s).map((e=>Hl(e.dataset.path||e.getAttribute("id")||o))),lang:l,signal:i.signal,token:null===(t=u.value)||void 0===t?void 0:t.token}).then((e=>{s.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch(ti),i.abort.bind(i)};e.commentCount=is;var ss,us,as="function"==typeof Map?new Map:(ss=[],us=[],{has:function(e){return ss.indexOf(e)>-1},get:function(e){return us[ss.indexOf(e)]},set:function(e,t){-1===ss.indexOf(e)&&(ss.push(e),us.push(t))},delete:function(e){var t=ss.indexOf(e);t>-1&&(ss.splice(t,1),us.splice(t,1))}}),cs=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(ss){cs=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function ps(e){var t=as.get(e);t&&t.destroy()}function ds(e){var t=as.get(e);t&&t.update()}var hs=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((hs=function(e){return e}).destroy=function(e){return e},hs.update=function(e){return e}):((hs=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&&!as.has(e)){var t,n=null,o=null,r=null,l=function(){e.clientWidth!==o&&a()},i=function(t){window.removeEventListener("resize",l,!1),e.removeEventListener("input",a,!1),e.removeEventListener("keyup",a,!1),e.removeEventListener("autosize:destroy",i,!1),e.removeEventListener("autosize:update",a,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),as.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",i,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",a,!1),window.addEventListener("resize",l,!1),e.addEventListener("input",a,!1),e.addEventListener("autosize:update",a,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",as.set(e,{destroy:i,update:a}),"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),a()}function s(t){var n=e.style.width;e.style.width="0px",e.style.width=n,e.style.overflowY=t}function u(){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),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",o=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function a(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),o="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(o{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n};const ms=Rn({props:{columnWidth:{type:Number,default:300},items:{type:Array,default:()=>[]},gap:{type:Number,default:0},rtl:{type:Boolean,default:!1}},emit:["insert"],setup(e){let t=null;const n=jt(null),o=jt([]),r=()=>{const t=Math.floor((n.value.getBoundingClientRect().width+e.gap)/(e.columnWidth+e.gap));return t>0?t:1},l=e=>new Array(e).fill(null).map((()=>[])),i=async t=>{var r;if(t>=e.items.length)return;await sn();const l=Array.from((null===(r=n.value)||void 0===r?void 0:r.children)||[]);e.rtl&&l.reverse();const s=l.reduce(((e,t)=>t.getBoundingClientRect().height0&&void 0!==arguments[0]&&arguments[0];if(o.value.length===r()&&!e)return;o.value=l(r());const t=window.scrollY;await i(0),window.scrollTo({top:t})};return Sn((()=>[e.items,e.rtl]),(()=>s(!0))),Sn((()=>[e.columnWidth,e.gap]),(()=>s())),$n((()=>{s(!0),t=new ResizeObserver((()=>s())),t.observe(n.value)})),On((()=>t.unobserve(n.value))),{columns:o,wall:n}}}),vs=["data-index"],ys=["src","title","onClick"];const ws=e=>{let{size:t}=e;return ur("svg",{width:t,height:t,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},ur("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},ur("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})))},ks=Rn({name:"CommentBox",components:{CloseIcon:e=>{let{size:t}=e;return ur("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:t,height:t},[ur("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"}),ur("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:()=>ur("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ur("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:()=>ur("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ur("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"}),ur("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:gs(ms,[["render",function(e,t,n,o,r,l){return Fo(),So("div",{ref:"wall",class:"wl-gallery",style:A({gap:"".concat(e.gap,"px")})},[(Fo(!0),So(ko,null,qn(e.columns,((t,n)=>(Fo(),So("div",{key:n,class:"wl-gallery-column","data-index":n,style:A({gap:"".concat(e.gap,"px")})},[(Fo(!0),So(ko,null,qn(t,(t=>(Fo(),So("img",{key:t,class:"wl-gallery-item",src:e.items[t].media[0].tinygif.url,title:e.items[t].title,loading:"lazy",onClick:n=>e.$emit("insert","![](".concat(e.items[t].media[0].tinygif.url,")"))},null,8,ys)))),128))],12,vs)))),128))],4)}],["__file","ImageWall.vue"]]),MarkdownIcon:()=>ur("svg",{width:"16",height:"16",ariaHidden:"true"},ur("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:()=>ur("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ur("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"}),ur("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:ws,GifIcon:()=>ur("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[ur("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"}),ur("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:""}},emits:["submit","cancel-reply"],setup(e,t){let{emit:n}=t;const o=_n("config"),r=jl("WALINE_COMMENT_BOX_EDITOR",""),l=jl("WALINE_USER_META",{nick:"",mail:"",link:""}),i=os(),s=jt({}),u=jt(null),a=jt(null),c=jt(null),p=jt(null),d=jt(null),h=jt(null),f=jt(null),g=jt({tabs:[],map:{}}),m=jt(0),v=jt(!1),y=jt(!1),w=jt(!1),k=jt(""),b=jt(0),A=jt({cursor:"",loading:!0,list:[]}),x=jt(0),E=jt(!1),C=jt(""),F=jt(!1),_=sr((()=>o.value.locale)),D=sr((()=>{var e;return Boolean(null===(e=i.value)||void 0===e?void 0:e.token)})),B=sr((()=>!1!==o.value.imageUploader)),S=e=>{const t=u.value,n=t.selectionStart,o=t.selectionEnd||0,l=t.scrollTop;r.value=t.value.substring(0,n)+e+t.value.substring(o,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=l},I=e=>{const t="![".concat(o.value.locale.uploading," ").concat(e.name,"]()");return S(t),Promise.resolve().then((()=>o.value.imageUploader(e))).then((n=>{r.value=r.value.replace(t,"\r\n![".concat(e.name,"](").concat(n,")"))}))},z=()=>{var t,a;const{serverURL:c,lang:p,login:d,wordLimit:h,requiredMeta:f}=o.value,m={comment:C.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,ua:navigator.userAgent,url:o.value.path};if(null!==(t=i.value)&&void 0!==t&&t.token)m.nick=i.value.display_name,m.mail=i.value.email,m.link=i.value.url;else{if("force"===d)return;var v,y,w;if(f.indexOf("nick")>-1&&!m.nick)return null===(v=s.value.nick)||void 0===v||v.focus(),alert(_.value.nickError);if(f.indexOf("mail")>-1&&!m.mail||m.mail&&!/^\w(?:[\w._-]*\w)?@(?:\w(?:[\w-]*\w)?\.)*\w+$/.exec(m.mail))return null===(y=s.value.mail)||void 0===y||y.focus(),alert(_.value.mailError);if(!m.comment)return void(null===(w=u.value)||void 0===w||w.focus());m.nick||(m.nick=_.value.anonymous)}if(!E.value)return alert(_.value.wordHint.replace("$0",h[0].toString()).replace("$1",h[1].toString()).replace("$2",b.value.toString()));m.comment=Qi(m.comment,g.value.map),e.replyId&&e.rootId&&(m.pid=e.replyId,m.rid=e.rootId,m.at=e.replyUser),F.value=!0,(e=>{let{serverURL:t,lang:n,token:o,comment:r}=e;const l={"Content-Type":"application/json"};return o&&(l.Authorization="Bearer ".concat(o)),fetch("".concat(t,"/comment?lang=").concat(n),{method:"POST",headers:l,body:JSON.stringify(r)}).then((e=>e.json()))})({serverURL:c,lang:p,token:null===(a=i.value)||void 0===a?void 0:a.token,comment:m}).then((t=>{if(F.value=!1,t.errmsg)return alert(t.errmsg);n("submit",t.data),r.value="",k.value="",e.replyId&&n("cancel-reply")})).catch((e=>{F.value=!1,alert(e.message)}))},R=e=>{c.value.contains(e.target)||p.value.contains(e.target)||(v.value=!1),d.value.contains(e.target)||h.value.contains(e.target)||(y.value=!1)},L=async e=>{var t;const{scrollTop:n,clientHeight:o,scrollHeight:r}=e.target;if((o+n)/r<.9||A.value.loading)return;A.value.loading=!0;const l=await es({keyword:(null===(t=f.value)||void 0===t?void 0:t.value)||"",pos:A.value.cursor}).finally((()=>{A.value.loading=!1}));A.value.cursor=l.next,A.value.list=A.value.list.concat(l.results),setTimeout((()=>{e.target.scrollTop=n}),50)},j=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300;return function(){for(var o=arguments.length,r=new Array(o),l=0;l{e(...r),t=null}),n)}}((async e=>{A.value.cursor="",A.value.list=[],L(e)}));return Sn([o,b],(e=>{let[t,n]=e;const{wordLimit:o}=t;o?no[1]?(x.value=o[1],E.value=!1):(x.value=o[1],E.value=!0):(x.value=0,E.value=!0)}),{immediate:!0}),Sn(y,(async e=>{if(!e)return;A.value.loading=!0;const t=await es({keyword:""}).finally((()=>{A.value.loading=!1}));A.value.cursor=t.next,A.value.list=A.value.list.concat(t.results)})),$n((()=>{document.body.addEventListener("click",R),Sn((()=>r.value),(e=>{const{highlighter:t,texRenderer:n}=o.value;C.value=e,k.value=Yi(e,{emojiMap:g.value.map,highlighter:t,texRenderer:n}),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?fs(u.value):fs.destroy(u.value)}),{immediate:!0}),Sn((()=>o.value.emoji),(e=>{return(t=Array.isArray(e)?e:[],Promise.all(t.map((e=>"string"==typeof e?Xl(Wl(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:o,icon:r,prefix:l,type:i,items:s}=e;t.tabs.push({name:n,icon:ei(r,o,l,i),items:s.map((e=>{const n="".concat(l||"").concat(e);return t.map[n]=ei(e,o,l,i),n}))})})),t}))).then((e=>{g.value=e}));var t}),{immediate:!0})})),Un((()=>{document.body.removeEventListener("click",R)})),{config:o,locale:_,insert:S,onChange:()=>{const e=a.value;e.files&&B.value&&I(e.files[0]).then((()=>{e.value=""}))},onDrop:e=>{var t;if(null!==(t=e.dataTransfer)&&void 0!==t&&t.items){const t=ai(e.dataTransfer.items);t&&B.value&&(I(t),e.preventDefault())}},onKeyDown:e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&z()},onPaste:e=>{if(e.clipboardData){const t=ai(e.clipboardData.items);t&&B.value&&I(t)}},onLogin:e=>{e.preventDefault();const{lang:t,serverURL:n}=o.value,r=(window.innerWidth-450)/2,l=(window.innerHeight-450)/2,s=window.open("".concat(n,"/ui/login?lng=").concat(encodeURIComponent(t)),"_blank","width=".concat(450,",height=").concat(450,",left=").concat(r,",top=").concat(l,",scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no"));null==s||s.postMessage({type:"TOKEN",data:null},"*");const u=e=>{let{data:t}=e;t&&"userInfo"===t.type&&t.data.token&&(null==s||s.close(),i.value=t.data,(t.data.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(t.data)),window.removeEventListener("message",u))};window.addEventListener("message",u)},onLogout:()=>{i.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null")},onProfile:e=>{e.preventDefault();const{lang:t,serverURL:n}=o.value,r=(window.innerWidth-800)/2,l=(window.innerHeight-800)/2,s=window.open("".concat(n,"/ui/profile?lng=").concat(encodeURIComponent(t)),"_blank","width=".concat(800,",height=").concat(800,",left=").concat(r,",top=").concat(l,",scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no"));null==s||s.postMessage({type:"TOKEN",data:i.value.token},"*");const u=e=>{let{data:t}=e;t&&"profile"===t.type&&(i.value={...i.value,...t},[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(i)))),window.removeEventListener("message",u))};window.addEventListener("message",u)},submitComment:z,onImageWallScroll:L,onGifSearch:j,isLogin:D,userInfo:i,isSubmitting:F,wordNumber:b,wordLimit:x,isWordNumberLegal:E,editor:r,userMeta:l,emoji:g,emojiTabIndex:m,showEmoji:v,gifData:A,showGif:y,canUploadImage:B,previewText:k,showPreview:w,inputRefs:s,editorRef:u,emojiButtonRef:c,emojiPopupRef:p,gifButtonRef:d,gifPopupRef:h,imageUploadRef:a,gifSearchInputRef:f}}}),bs={class:"wl-comment"},As={key:0,class:"wl-login-info"},xs={class:"wl-avatar"},Es=["title"],Cs=["src"],Fs=["textContent"],_s={class:"wl-panel"},Ds=["for","textContent"],Bs=["id","name","type","onUpdate:modelValue"],Ss=["placeholder"],Is={class:"wl-preview"},zs=$o("hr",null,null,-1),Rs=["innerHTML"],Ls={class:"wl-footer"},js={class:"wl-actions"},Ts={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noreferrer"},$s=["title"],Os=["title"],Us=["title"],Ms=["title"],Ps={class:"wl-info"},Ns={class:"wl-text-number"},Vs={key:0},Hs=Po("  /  "),Ws=["textContent"],qs=["textContent"],Zs=["disabled"],Gs=["placeholder"],Js={key:0,class:"wl-loading"},Ks={key:0,class:"wl-tab-wrapper"},Qs=["title","onClick"],Ys=["src","alt"],Xs={key:0,class:"wl-tabs"},eu=["onClick"],tu=["src","alt","title"],nu=["title"];var ou=gs(ks,[["render",function(e,t,n,o,r,l){const i=Vn("CloseIcon"),s=Vn("MarkdownIcon"),u=Vn("EmojiIcon"),a=Vn("GifIcon"),c=Vn("ImageIcon"),p=Vn("PreviewIcon"),d=Vn("LoadingIcon"),h=Vn("ImageWall");return Fo(),So("div",bs,["disable"!==e.config.login&&e.isLogin?(Fo(),So("div",As,[$o("div",xs,[$o("button",{class:"wl-logout-btn",title:e.locale.logout,onClick:t[0]||(t[0]=function(){return e.onLogout&&e.onLogout(...arguments)})},[Oo(i,{size:14})],8,Es),$o("img",{src:e.userInfo.avatar,alt:"avatar"},null,8,Cs)]),$o("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",onClick:t[1]||(t[1]=function(){return e.onProfile&&e.onProfile(...arguments)}),textContent:B(e.userInfo.display_name)},null,8,Fs)])):No("v-if",!0),$o("div",_s,["force"!==e.config.login&&e.config.meta.length&&!e.isLogin?(Fo(),So("div",{key:0,class:F(["wl-header","item".concat(e.config.meta.length)])},[(Fo(!0),So(ko,null,qn(e.config.meta,(t=>(Fo(),So("div",{class:"wl-header-item",key:t},[$o("label",{for:t,textContent:B(e.locale[t]+(e.config.requiredMeta.includes(t)||!e.config.requiredMeta.length?"":"(".concat(e.locale.optional,")")))},null,8,Ds),Mn($o("input",{ref_for:!0,ref:n=>{n&&(e.inputRefs[t]=n)},id:"wl-".concat(t),class:F(["wl-input","wl-".concat(t)]),name:t,type:"mail"===t?"email":"text","onUpdate:modelValue":n=>e.userMeta[t]=n},null,10,Bs),[[qr,e.userMeta[t]]])])))),128))],2)):No("v-if",!0),Mn($o("textarea",{class:"wl-editor",ref:"editorRef",id:"wl-edit",placeholder:e.replyUser?"@".concat(e.replyUser):e.locale.placeholder,"onUpdate:modelValue":t[2]||(t[2]=t=>e.editor=t),onKeydown:t[3]||(t[3]=function(){return e.onKeyDown&&e.onKeyDown(...arguments)}),onDrop:t[4]||(t[4]=function(){return e.onDrop&&e.onDrop(...arguments)}),onPaste:t[5]||(t[5]=function(){return e.onPaste&&e.onPaste(...arguments)})},null,40,Ss),[[Or,e.editor]]),Mn($o("div",Is,[zs,$o("h4",null,B(e.locale.preview)+":",1),$o("div",{class:"wl-content",innerHTML:e.previewText},null,8,Rs)],512),[[Gr,e.showPreview]]),$o("div",Ls,[$o("div",js,[$o("a",Ts,[Oo(s)]),Mn($o("button",{ref:"emojiButtonRef",class:F(["wl-action",{actived:e.showEmoji}]),title:e.locale.emoji,onClick:t[6]||(t[6]=t=>e.showEmoji=!e.showEmoji)},[Oo(u)],10,$s),[[Gr,e.emoji.tabs.length]]),$o("button",{ref:"gifButtonRef",class:F(["wl-action",{actived:e.showGif}]),title:e.locale.gif,onClick:t[7]||(t[7]=t=>e.showGif=!e.showGif)},[Oo(a)],10,Os),$o("input",{ref:"imageUploadRef",class:"upload",id:"wl-image-upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:t[8]||(t[8]=function(){return e.onChange&&e.onChange(...arguments)})},null,544),e.canUploadImage?(Fo(),So("label",{key:0,for:"wl-image-upload",class:"wl-action",title:e.locale.uploadImage},[Oo(c)],8,Us)):No("v-if",!0),$o("button",{class:F(["wl-action",{actived:e.showPreview}]),title:e.locale.preview,onClick:t[9]||(t[9]=t=>e.showPreview=!e.showPreview)},[Oo(p)],10,Ms)]),$o("div",Ps,[$o("div",Ns,[Po(B(e.wordNumber)+" ",1),e.config.wordLimit?(Fo(),So("span",Vs,[Hs,$o("span",{class:F({illegal:!e.isWordNumberLegal}),textContent:B(e.wordLimit)},null,10,Ws)])):No("v-if",!0),Po("  "+B(e.locale.word),1)]),"disable"===e.config.login||e.isLogin?No("v-if",!0):(Fo(),So("button",{key:0,class:"wl-btn",onClick:t[10]||(t[10]=function(){return e.onLogin&&e.onLogin(...arguments)}),textContent:B(e.locale.login)},null,8,qs)),"force"!==e.config.login||e.isLogin?(Fo(),So("button",{key:1,class:"wl-btn primary",title:"Cmd|Ctrl + Enter",disabled:e.isSubmitting,onClick:t[11]||(t[11]=function(){return e.submitComment&&e.submitComment(...arguments)})},[e.isSubmitting?(Fo(),Io(d,{key:0,size:16})):(Fo(),So(ko,{key:1},[Po(B(e.locale.submit),1)],64))],8,Zs)):No("v-if",!0)]),$o("div",{ref:"gifPopupRef",class:F(["wl-gif-popup",{display:e.showGif}])},[$o("input",{type:"text",placeholder:e.locale.gifSearchPlaceholder,ref:"gifSearchInputRef",onInput:t[12]||(t[12]=function(){return e.onGifSearch&&e.onGifSearch(...arguments)})},null,40,Gs),Oo(h,{items:e.gifData.list,"column-width":200,gap:6,onInsert:t[13]||(t[13]=t=>e.insert(t)),onScroll:e.onImageWallScroll},null,8,["items","onScroll"]),e.gifData.loading?(Fo(),So("div",Js,[Oo(d,{size:30})])):No("v-if",!0)],2),$o("div",{ref:"emojiPopupRef",class:F(["wl-emoji-popup",{display:e.showEmoji}])},[(Fo(!0),So(ko,null,qn(e.emoji.tabs,((t,n)=>(Fo(),So(ko,{key:t.name},[n===e.emojiTabIndex?(Fo(),So("div",Ks,[(Fo(!0),So(ko,null,qn(t.items,(t=>(Fo(),So("button",{key:t,title:t,onClick:n=>e.insert(":".concat(t,":"))},[e.showEmoji?(Fo(),So("img",{key:0,class:"wl-emoji",src:e.emoji.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Ys)):No("v-if",!0)],8,Qs)))),128))])):No("v-if",!0)],64)))),128)),e.emoji.tabs.length>1?(Fo(),So("div",Xs,[(Fo(!0),So(ko,null,qn(e.emoji.tabs,((t,n)=>(Fo(),So("button",{key:t.name,class:F(["wl-tab",{active:e.emojiTabIndex===n}]),onClick:t=>e.emojiTabIndex=n},[$o("img",{class:"wl-emoji",src:t.icon,alt:t.name,title:t.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,tu)],10,eu)))),128))])):No("v-if",!0)],2)])]),e.replyId?(Fo(),So("button",{key:1,class:"wl-close",title:e.locale.cancelReply,onClick:t[14]||(t[14]=t=>e.$emit("cancel-reply"))},[Oo(i,{size:24})],8,nu)):No("v-if",!0)])}],["__file","CommentBox.vue"]]);const ru=["approved","waiting","spam"],lu=Rn({props:{comment:{type:Object,required:!0},rootId:{type:String,required:!0},reply:{type:Object}},components:{CommentBox:ou,DeleteIcon:()=>ur("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ur("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:e=>{let{active:t=!1}=e;return ur("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ur("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".concat(t?"":"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:t?"red":"currentColor"})])},ReplyIcon:()=>ur("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ur("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"})),VerifiedIcon:()=>ur("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},ur("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"}))},emits:["submit","reply","like","delete","status","sticky"],setup(e){const t=_n("config"),n=ls(),o=os(),r=sr((()=>t.value.locale)),l=sr((()=>{let{link:t}=e.comment;return t?ql(t)?t:"https://".concat(t):""})),i=sr((()=>n.value.includes(e.comment.objectId))),s=ts(e.comment.insertedAt,r.value),u=sr((()=>"administrator"===o.value.type)),a=sr((()=>e.comment.user_id&&o.value.objectId===e.comment.user_id)),c=sr((()=>{var t;return e.comment.objectId===(null===(t=e.reply)||void 0===t?void 0:t.objectId)}));return{config:t,locale:r,isReplyingCurrent:c,link:l,like:i,time:s,isAdmin:u,isOwner:a,commentStatus:ru}}}),iu=["id"],su={class:"wl-user","aria-hidden":"true"},uu=["src"],au={class:"wl-card"},cu={class:"wl-head"},pu=["href"],du={key:1,class:"wl-nick"},hu=["textContent"],fu=["textContent"],gu=["textContent"],mu=["textContent"],vu=["textContent"],yu={class:"wl-comment-actions"},wu=["title"],ku=["textContent"],bu=["title"],Au={class:"wl-meta","aria-hidden":"true"},xu=["textContent"],Eu=["textContent"],Cu=["textContent"],Fu=["innerHTML"],_u={key:0,class:"wl-admin-actions"},Du={class:"wl-comment-status"},Bu=["disabled","onClick","textContent"],Su={key:1,class:"wl-reply-wrapper"},Iu={key:2,class:"wl-quote"};const zu=Rn({name:"WalineRoot",components:{CommentBox:ou,CommentCard:gs(lu,[["render",function(e,t,n,o,r,l){const i=Vn("VerifiedIcon"),s=Vn("DeleteIcon"),u=Vn("LikeIcon"),a=Vn("ReplyIcon"),c=Vn("CommentBox"),p=Vn("CommentCard",!0);return Fo(),So("div",{class:"wl-item",id:e.comment.objectId},[$o("div",su,[e.comment.avatar?(Fo(),So("img",{key:0,src:e.comment.avatar},null,8,uu)):No("v-if",!0),e.comment.type?(Fo(),Io(i,{key:1})):No("v-if",!0)]),$o("div",au,[$o("div",cu,[e.link?(Fo(),So("a",{key:0,class:"wl-nick",href:e.link,target:"_blank",rel:"nofollow noreferrer"},B(e.comment.nick),9,pu)):(Fo(),So("span",du,B(e.comment.nick),1)),"administrator"===e.comment.type?(Fo(),So("span",{key:2,class:"wl-badge",textContent:B(e.locale.admin)},null,8,hu)):No("v-if",!0),e.comment.label?(Fo(),So("span",{key:3,class:"wl-badge",textContent:B(e.comment.label)},null,8,fu)):No("v-if",!0),e.comment.sticky?(Fo(),So("span",{key:4,class:"wl-badge",textContent:B(e.locale.sticky)},null,8,gu)):No("v-if",!0),void 0!==e.comment.level&&e.comment.level>=0?(Fo(),So("span",{key:5,class:F("wl-badge level".concat(e.comment.level)),textContent:B(e.locale["level".concat(e.comment.level)]||"Level ".concat(e.comment.level))},null,10,mu)):No("v-if",!0),$o("span",{class:"wl-time",textContent:B(e.time)},null,8,vu),$o("div",yu,[e.isAdmin||e.isOwner?(Fo(),So("button",{key:0,class:"wl-delete",onClick:t[0]||(t[0]=t=>e.$emit("delete",e.comment))},[Oo(s)])):No("v-if",!0),$o("button",{class:"wl-like",onClick:t[1]||(t[1]=t=>e.$emit("like",e.comment)),title:e.like?e.locale.cancelLike:e.locale.like},[Oo(u,{active:e.like},null,8,["active"]),"like"in e.comment?(Fo(),So("span",{key:0,textContent:B(e.comment.like)},null,8,ku)):No("v-if",!0)],8,wu),$o("button",{class:F(["wl-reply",{active:e.isReplyingCurrent}]),title:e.isReplyingCurrent?e.locale.cancelReply:e.locale.reply,onClick:t[2]||(t[2]=t=>e.$emit("reply",e.isReplyingCurrent?null:e.comment))},[Oo(a)],10,bu)])]),$o("div",Au,[e.comment.addr?(Fo(),So("span",{key:0,textContent:B(e.comment.addr)},null,8,xu)):No("v-if",!0),e.comment.browser?(Fo(),So("span",{key:1,textContent:B(e.comment.browser)},null,8,Eu)):No("v-if",!0),e.comment.os?(Fo(),So("span",{key:2,textContent:B(e.comment.os)},null,8,Cu)):No("v-if",!0)]),$o("div",{class:"wl-content",innerHTML:e.comment.comment},null,8,Fu),e.isAdmin?(Fo(),So("div",_u,[$o("span",Du,[(Fo(!0),So(ko,null,qn(e.commentStatus,(t=>(Fo(),So("button",{key:t,class:F("wl-btn wl-".concat(t)),disabled:e.comment.status===t,onClick:n=>e.$emit("status",{status:t,comment:e.comment}),textContent:B(t)},null,10,Bu)))),128))]),e.isAdmin&&!e.comment.rid?(Fo(),So("button",{key:0,class:"wl-btn wl-sticky",onClick:t[3]||(t[3]=t=>e.$emit("sticky",e.comment))},B(e.comment.sticky?"unsticky":"sticky"),1)):No("v-if",!0)])):No("v-if",!0),e.isReplyingCurrent?(Fo(),So("div",Su,[Oo(c,{replyId:e.comment.objectId,replyUser:e.comment.nick,rootId:e.rootId,onSubmit:t[4]||(t[4]=t=>e.$emit("submit",t)),onCancelReply:t[5]||(t[5]=t=>e.$emit("reply",null))},null,8,["replyId","replyUser","rootId"])])):No("v-if",!0),e.comment.children?(Fo(),So("div",Iu,[(Fo(!0),So(ko,null,qn(e.comment.children,(n=>(Fo(),Io(p,{key:n.objectId,comment:n,reply:e.reply,rootId:e.rootId,onReply:t[6]||(t[6]=t=>e.$emit("reply",t)),onSubmit:t[7]||(t[7]=t=>e.$emit("submit",t)),onLike:t[8]||(t[8]=t=>e.$emit("like",t)),onDelete:t[9]||(t[9]=t=>e.$emit("delete",t)),onStatus:t[10]||(t[10]=t=>e.$emit("status",t)),onSticky:t[11]||(t[11]=t=>e.$emit("sticky",t))},null,8,["comment","reply","rootId"])))),128))])):No("v-if",!0)])],8,iu)}],["__file","CommentCard.vue"]]),LoadingIcon:ws},props:["serverURL","path","meta","requiredMeta","dark","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","copyright"],setup(e){const t=sr((()=>(e=>{let{serverURL:t,path:i=location.pathname,lang:s=o,locale:u,emoji:c=["//unpkg.com/@waline/emojis@1.0.1/weibo"],meta:p=["nick","mail","link"],requiredMeta:d=[],dark:h=!1,pageSize:f=10,wordLimit:g,imageUploader:m,highlighter:v,texRenderer:w,copyright:k=!0,login:b="enable",...A}=e;return{serverURL:Zl(t),path:Hl(i),locale:{...y[s]||y[o],..."object"==typeof u?u:{}},wordLimit:Gl(g),meta:n(p),requiredMeta:n(d),imageUploader:Jl(m,r),highlighter:Jl(v,a),texRenderer:Jl(w,l),lang:s,dark:h,emoji:c,pageSize:f,login:b,copyright:k,...A}})(e))),i=os(),s=ls(),u=jt("loading"),c=jt(0),p=jt(1),d=jt(0),h=jt([]),f=jt(null),g=sr((()=>{return"string"==typeof(e=t.value.dark)?"auto"===e?"@media(prefers-color-scheme:dark){body".concat(Kl,"}"):"".concat(e).concat(Kl):!0===e?":root".concat(Kl):"";var e}));let m;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=jt(!1),{document:o=_l,immediate:r=!0,manual:l=!1,id:i="vueuse_styletag_".concat(++Vl)}=t,s=jt(e);let u=()=>{};const a=()=>{if(!o)return;const e=o.getElementById(i)||o.createElement("style");e.type="text/css",e.id=i,t.media&&(e.media=t.media),o.head.appendChild(e),n.value||(u=Sn(s,(t=>{e.innerText=t}),{immediate:!0}),n.value=!0)},c=()=>{o&&n.value&&(u(),o.head.removeChild(o.getElementById(i)),n.value=!1)};r&&!l&&a(),l||el(c),At(n)}(g);const v=e=>{var n,o;const{serverURL:r,path:l,pageSize:s}=t.value,a=new AbortController;u.value="loading",null===(n=m)||void 0===n||n(),(e=>{let{serverURL:t,lang:n,path:o,page:r,pageSize:l,signal:i,token:s}=e;const u={};return s&&(u.Authorization="Bearer ".concat(s)),fetch("".concat(t,"/comment?path=").concat(encodeURIComponent(o),"&pageSize=").concat(l,"&page=").concat(r,"&lang=").concat(n),{signal:i,headers:u}).then((e=>e.json())).then((e=>oi(e,"comment list")))})({serverURL:r,lang:t.value.lang,path:l,pageSize:s,page:e,signal:a.signal,token:null===(o=i.value)||void 0===o?void 0:o.token}).then((t=>{u.value="success",c.value=t.count,h.value.push(...t.data),p.value=e,d.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),u.value="error")})),m=a.abort.bind(a)},w=()=>{c.value=0,h.value=[],v(1)};return function(e,t){if(Ko){let n=Ko.provides;const o=Ko.parent&&Ko.parent.provides;o===n&&(n=Ko.provides=Object.create(o)),n[e]=t}}("config",t),Sn((()=>e.path),w),$n((()=>w())),{config:t,darkmodeStyle:g,i18n:sr((()=>t.value.locale)),status:u,count:c,page:p,totalPages:d,data:h,reply:f,loadMore:()=>v(p.value+1),refresh:w,onReply:e=>{f.value=e},onSubmit:e=>{if(e.rid){const t=h.value.find((t=>{let{objectId:n}=t;return n===e.rid}));if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else h.value.unshift(e)},onStatusChange:async e=>{var n;let{comment:o,status:r}=e;if(o.status===r)return;const{serverURL:l,lang:s}=t.value;await ri({serverURL:l,lang:s,token:null===(n=i.value)||void 0===n?void 0:n.token,objectId:o.objectId,status:r}),o.status=r},onDelete:async e=>{var n;let{objectId:o}=e;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:r,lang:l}=t.value;await(e=>{let{serverURL:t,lang:n,token:o,objectId:r}=e;const l={Authorization:"Bearer ".concat(o)};return fetch("".concat(t,"/comment/").concat(r,"?lang=").concat(n),{method:"DELETE",headers:l}).then((e=>e.json()))})({serverURL:r,lang:l,token:null===(n=i.value)||void 0===n?void 0:n.token,objectId:o}),h.value.some(((e,t)=>e.objectId===o?(h.value=h.value.filter(((e,n)=>n!==t)),!0):e.children.some(((n,r)=>n.objectId===o&&(h.value[t].children=e.children.filter(((e,t)=>t!==r)),!0)))))},onSticky:async e=>{var n;if(e.rid)return;const{serverURL:o,lang:r}=t.value;await ri({serverURL:o,lang:r,token:null===(n=i.value)||void 0===n?void 0:n.token,objectId:e.objectId,sticky:e.sticky?0:1}),e.sticky=!e.sticky},onLike:async e=>{const{serverURL:n,lang:o}=t.value,{objectId:r}=e,l=s.value.includes(r);await(e=>{let{serverURL:t,lang:n,objectId:o,like:r}=e;return fetch("".concat(t,"/comment/").concat(o,"?lang=").concat(n),{method:"PUT",headers:ni,body:JSON.stringify({like:r})}).then((e=>e.json()))})({serverURL:n,lang:o,objectId:r,like:!l}),l?s.value=s.value.filter((e=>e!==r)):(s.value=[...s.value,r],s.value.length>50&&(s.value=s.value.slice(-50))),e.like=(e.like||0)+(l?-1:1)},version:"2.5.1"}}}),Ru={"data-waline":""},Lu={class:"wl-count"},ju=["textContent"],Tu={class:"wl-cards"},$u={key:1,class:"wl-operation"},Ou=["textContent"],Uu={key:0,class:"wl-loading"},Mu=["textContent"],Pu={class:"wl-operation"},Nu=["textContent"],Vu={key:3,class:"wl-power"},Hu=Po(" Powered by "),Wu=$o("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noreferrer"}," Waline ",-1);var qu=gs(zu,[["render",function(e,t,n,o,r,l){const i=Vn("CommentBox"),s=Vn("CommentCard"),u=Vn("LoadingIcon");return Fo(),So("div",Ru,[e.reply?No("v-if",!0):(Fo(),Io(i,{key:0,onSubmit:e.onSubmit},null,8,["onSubmit"])),$o("div",Lu,[e.count?(Fo(),So("span",{key:0,class:"wl-num",textContent:B(e.count)},null,8,ju)):No("v-if",!0),Po(" "+B(e.i18n.comment),1)]),$o("div",Tu,[(Fo(!0),So(ko,null,qn(e.data,(t=>(Fo(),Io(s,{key:t.objectId,"root-id":t.objectId,comment:t,reply:e.reply,onReply:e.onReply,onSubmit:e.onSubmit,onStatus:e.onStatusChange,onDelete:e.onDelete,onSticky:e.onSticky,onLike:e.onLike},null,8,["root-id","comment","reply","onReply","onSubmit","onStatus","onDelete","onSticky","onLike"])))),128))]),"error"===e.status?(Fo(),So("div",$u,[$o("button",{type:"button",class:"wl-btn",onClick:t[0]||(t[0]=function(){return e.refresh&&e.refresh(...arguments)}),textContent:B(e.i18n.refresh)},null,8,Ou)])):(Fo(),So(ko,{key:2},["loading"===e.status?(Fo(),So("div",Uu,[Oo(u,{size:30})])):e.data.length?e.page{t.forEach(((t,n)=>{t.innerText=e[n].toString()}))},Gu=e=>{let{serverURL:t,path:n=window.location.pathname,selector:o=".waline-pageview-count",update:r=!0,lang:l="zh-CN"}=e;const i=new AbortController,s=Array.from(document.querySelectorAll(o)),u=e=>{const t=Xi(e);return null!==t&&n!==t},a=e=>li({serverURL:t,paths:e.map((e=>Xi(e)||n)),lang:l,signal:i.signal}).then((t=>Zu(t,e))).catch(ti);if(r){const e=s.filter((e=>!u(e))),o=s.filter(u);ii({serverURL:t,path:n,lang:l}).then((t=>Zu(new Array(e.length).fill(t),e))),o.length&&a(o)}else a(s);return i.abort.bind(i)};e.pageviewCount=Gu;e.init=e=>{let{el:t="#waline",path:n=window.location.pathname,comment:o=!1,pageview:r=!1,...l}=e;const i=t?si(t):null;if(t&&!i)throw new Error("Option 'el' do not match any domElement!");if(!l.serverURL)throw new Error("Option 'serverURL' is missing!");const s=kt({...l}),u=kt({comment:o,pageview:r,path:n}),a=()=>{u.comment&&is({serverURL:s.serverURL,path:u.path,selector:"string"==typeof u.comment?u.comment:void 0})},c=()=>{u.pageview&&Gu({serverURL:s.serverURL,path:u.path,selector:"string"==typeof u.pageview?u.pageview:void 0})},p=i?function(){const e=Yr().createApp(...arguments),{mount:t}=e;return e.mount=n=>{const o=Xr(n);if(!o)return;const r=e._component;q(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const l=t(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),l},e}((()=>ur(qu,{path:u.path,...s}))):null;p&&p.mount(i),a(),c();const d=Dn(a),h=Dn(c);return{el:i,update:function(){let{comment:e,pageview:t,path:n=window.location.pathname,...o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.entries(o).forEach((e=>{let[t,n]=e;s[t]=n})),u.path=n,void 0!==e&&(u.comment=e),void 0!==t&&(u.pageview=t)},destroy:()=>{null==p||p.unmount(),d(),h()}}};e.version="2.5.1";e.RecentComments=e=>{var t;let{el:n,serverURL:o,count:r,lang:l="zh-CN"}=e;const i=os(),s=si(n),u=new AbortController;return(e=>{let{serverURL:t,lang:n,count:o,signal:r,token:l}=e;const i={};return l&&(i.Authorization="Bearer ".concat(l)),fetch("".concat(t,"/comment?type=recent&count=").concat(o,"&lang=").concat(n),{signal:r,headers:i}).then((e=>e.json())).then((e=>oi(e,"recent comment")))})({serverURL:o,count:r,lang:l,signal:u.signal,token:null===(t=i.value)||void 0===t?void 0:t.token}).then((e=>s&&e.length?(s.innerHTML='
    "),{comments:e,destroy:()=>{u.abort(),s.innerHTML=""}}):{comments:e,destroy:()=>u.abort()}))}})); //# sourceMappingURL=waline.js.map