@waline/client 2.15.7 → 2.15.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Waline=t()}(this,(function(){"use strict";const e=["region","appId","appKey","notify","verify","avatar","avatarForce","enableQQ","recordIP","serverURLs","avatarCDN","mathTagSupport"],t=[["emojiCDN","emoji"],["emojiMaps","emoji"],["requiredFields","requiredMeta"],["visitor","pageview"],["langMode","locale"],["placeholder","locale.placeholder"],["highlight","highlighter"],["uploadImage","imageUploader"],["previewMath","texRenderer"],["anonymous","login"],["copyRight","copyright"]],n=e=>console.warn(`%c ${e}`,"background:#ff0;color:red;font-size:36px;font-weight:bold;"),r=(e,t="")=>{const n={};for(const r in e)n[r]=/(?:https?:)?\/\//.test(e[r])?e[r]:`${t}${e[r]}`;return[{name:"Emoji",icon:Object.values(n).pop()||"",items:Object.keys(n)}]};function l(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const i={},o=[],s=()=>{},a=()=>!1,c=/^on[^a-z]/,u=e=>c.test(e),p=e=>e.startsWith("onUpdate:"),d=Object.assign,h=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},f=Object.prototype.hasOwnProperty,g=(e,t)=>f.call(e,t),m=Array.isArray,v=e=>"[object Map]"===S(e),y=e=>"[object Set]"===S(e),w=e=>"[object Date]"===S(e),b=e=>"function"==typeof e,k=e=>"string"==typeof e,x=e=>"symbol"==typeof e,_=e=>null!==e&&"object"==typeof e,$=e=>_(e)&&b(e.then)&&b(e.catch),C=Object.prototype.toString,S=e=>C.call(e),A=e=>S(e).slice(8,-1),R=e=>"[object Object]"===S(e),E=e=>k(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,z=l(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),L=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},I=/-(\w)/g,T=L((e=>e.replace(I,((e,t)=>t?t.toUpperCase():"")))),j=/\B([A-Z])/g,O=L((e=>e.replace(j,"-$1").toLowerCase())),U=L((e=>e.charAt(0).toUpperCase()+e.slice(1))),M=L((e=>e?`on${U(e)}`:"")),P=(e,t)=>!Object.is(e,t),F=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},N=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},V=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let D;const H=()=>D||(D="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function B(e){if(m(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],l=k(r)?K(r):B(r);if(l)for(const e in l)t[e]=l[e]}return t}return k(e)||_(e)?e:void 0}const W=/;(?![^(]*\))/g,q=/:([^]+)/,Z=/\/\*[^]*?\*\//g;function K(e){const t={};return e.replace(Z,"").split(W).forEach((e=>{if(e){const n=e.split(q);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function G(e){let t="";if(k(e))t=e;else if(m(e))for(let n=0;n<e.length;n++){const r=G(e[n]);r&&(t+=r+" ")}else if(_(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Q=l("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function J(e){return!!e||""===e}function X(e,t){if(e===t)return!0;let n=w(e),r=w(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=x(e),r=x(t),n||r)return e===t;if(n=m(e),r=m(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=X(e[r],t[r]);return n}(e,t);if(n=_(e),r=_(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),l=t.hasOwnProperty(n);if(r&&!l||!r&&l||!X(e[n],t[n]))return!1}}return String(e)===String(t)}function Y(e,t){return e.findIndex((e=>X(e,t)))}const ee=e=>k(e)?e:null==e?"":m(e)||_(e)&&(e.toString===C||!b(e.toString))?JSON.stringify(e,te,2):String(e),te=(e,t)=>t&&t.__v_isRef?te(e,t.value):v(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,t)=>{let[n,r]=t;return e[`${n} =>`]=r,e}),{})}:y(t)?{[`Set(${t.size})`]:[...t.values()]}:!_(t)||m(t)||R(t)?t:String(t);let ne;class re{constructor(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ne,!e&&ne&&(this.index=(ne.scopes||(ne.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=ne;try{return ne=this,e()}finally{ne=t}}}on(){ne=this}off(){ne=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function le(){return ne}const ie=e=>{const t=new Set(e);return t.w=0,t.n=0,t},oe=e=>(e.w&ue)>0,se=e=>(e.n&ue)>0,ae=new WeakMap;let ce=0,ue=1;const pe=30;let de;const he=Symbol(""),fe=Symbol("");class ge{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]:ne;t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=de,t=ve;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=de,de=this,ve=!0,ue=1<<++ce,ce<=pe?(e=>{let{deps:t}=e;if(t.length)for(let e=0;e<t.length;e++)t[e].w|=ue})(this):me(this),this.fn()}finally{ce<=pe&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const l=t[r];oe(l)&&!se(l)?l.delete(e):t[n++]=l,l.w&=~ue,l.n&=~ue}t.length=n}})(this),ue=1<<--ce,de=this.parent,ve=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){de===this?this.deferStop=!0:this.active&&(me(this),this.onStop&&this.onStop(),this.active=!1)}}function me(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let ve=!0;const ye=[];function we(){ye.push(ve),ve=!1}function be(){const e=ye.pop();ve=void 0===e||e}function ke(e,t,n){if(ve&&de){let t=ae.get(e);t||ae.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=ie()),xe(r)}}function xe(e,t){let n=!1;ce<=pe?se(e)||(e.n|=ue,n=!oe(e)):n=!e.has(de),n&&(e.add(de),de.deps.push(e))}function _e(e,t,n,r,l,i){const o=ae.get(e);if(!o)return;let s=[];if("clear"===t)s=[...o.values()];else if("length"===n&&m(e)){const e=Number(r);o.forEach(((t,n)=>{("length"===n||n>=e)&&s.push(t)}))}else switch(void 0!==n&&s.push(o.get(n)),t){case"add":m(e)?E(n)&&s.push(o.get("length")):(s.push(o.get(he)),v(e)&&s.push(o.get(fe)));break;case"delete":m(e)||(s.push(o.get(he)),v(e)&&s.push(o.get(fe)));break;case"set":v(e)&&s.push(o.get(he))}if(1===s.length)s[0]&&$e(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);$e(ie(e))}}function $e(e,t){const n=m(e)?e:[...e];for(const e of n)e.computed&&Ce(e);for(const e of n)e.computed||Ce(e)}function Ce(e,t){(e!==de||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Se=l("__proto__,__v_isRef,__isVue"),Ae=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(x)),Re=je(),Ee=je(!1,!0),ze=je(!0),Le=Ie();function Ie(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(){const e=vt(this);for(let t=0,n=this.length;t<n;t++)ke(e,0,t+"");for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];const i=e[t](...r);return-1===i||!1===i?e[t](...r.map(vt)):i}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(){we();for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const l=vt(this)[t].apply(this,n);return be(),l}})),e}function Te(e){const t=vt(this);return ke(t,0,e),t.hasOwnProperty(e)}function je(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r,l){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&l===(e?t?ct:at:t?st:ot).get(n))return n;const i=m(n);if(!e){if(i&&g(Le,r))return Reflect.get(Le,r,l);if("hasOwnProperty"===r)return Te}const o=Reflect.get(n,r,l);return(x(r)?Ae.has(r):Se(r))?o:(e||ke(n,0,r),t?o:_t(o)?i&&E(r)?o:o.value:_(o)?e?pt(o):ut(o):o)}}function Oe(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n,r,l){let i=t[n];if(ft(i)&&_t(i)&&!_t(r))return!1;if(!e&&(gt(r)||ft(r)||(i=vt(i),r=vt(r)),!m(t)&&_t(i)&&!_t(r)))return i.value=r,!0;const o=m(t)&&E(n)?Number(n)<t.length:g(t,n),s=Reflect.set(t,n,r,l);return t===vt(l)&&(o?P(r,i)&&_e(t,"set",n,r):_e(t,"add",n,r)),s}}const Ue={get:Re,set:Oe(),deleteProperty:function(e,t){const n=g(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&_e(e,"delete",t,void 0),r},has:function(e,t){const n=Reflect.has(e,t);return x(t)&&Ae.has(t)||ke(e,0,t),n},ownKeys:function(e){return ke(e,0,m(e)?"length":he),Reflect.ownKeys(e)}},Me={get:ze,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},Pe=d({},Ue,{get:Ee,set:Oe(!0)}),Fe=e=>e,Ne=e=>Reflect.getPrototypeOf(e);function Ve(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const l=vt(e=e.__v_raw),i=vt(t);n||(t!==i&&ke(l,0,t),ke(l,0,i));const{has:o}=Ne(l),s=r?Fe:n?bt:wt;return o.call(l,t)?s(e.get(t)):o.call(l,i)?s(e.get(i)):void(e!==l&&e.get(t))}function De(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.__v_raw,r=vt(n),l=vt(e);return t||(e!==l&&ke(r,0,e),ke(r,0,l)),e===l?n.has(e):n.has(e)||n.has(l)}function He(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e=e.__v_raw,!t&&ke(vt(e),0,he),Reflect.get(e,"size",e)}function Be(e){e=vt(e);const t=vt(this);return Ne(t).has.call(t,e)||(t.add(e),_e(t,"add",e,e)),this}function We(e,t){t=vt(t);const n=vt(this),{has:r,get:l}=Ne(n);let i=r.call(n,e);i||(e=vt(e),i=r.call(n,e));const o=l.call(n,e);return n.set(e,t),i?P(t,o)&&_e(n,"set",e,t):_e(n,"add",e,t),this}function qe(e){const t=vt(this),{has:n,get:r}=Ne(t);let l=n.call(t,e);l||(e=vt(e),l=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return l&&_e(t,"delete",e,void 0),i}function Ze(){const e=vt(this),t=0!==e.size,n=e.clear();return t&&_e(e,"clear",void 0,void 0),n}function Ke(e,t){return function(n,r){const l=this,i=l.__v_raw,o=vt(i),s=t?Fe:e?bt:wt;return!e&&ke(o,0,he),i.forEach(((e,t)=>n.call(r,s(e),s(t),l)))}}function Ge(e,t,n){return function(){const r=this.__v_raw,l=vt(r),i=v(l),o="entries"===e||e===Symbol.iterator&&i,s="keys"===e&&i,a=r[e](...arguments),c=n?Fe:t?bt:wt;return!t&&ke(l,0,s?fe:he),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:o?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function Qe(e){return function(){return"delete"!==e&&this}}function Je(){const e={get(e){return Ve(this,e)},get size(){return He(this)},has:De,add:Be,set:We,delete:qe,clear:Ze,forEach:Ke(!1,!1)},t={get(e){return Ve(this,e,!1,!0)},get size(){return He(this)},has:De,add:Be,set:We,delete:qe,clear:Ze,forEach:Ke(!1,!0)},n={get(e){return Ve(this,e,!0)},get size(){return He(this,!0)},has(e){return De.call(this,e,!0)},add:Qe("add"),set:Qe("set"),delete:Qe("delete"),clear:Qe("clear"),forEach:Ke(!0,!1)},r={get(e){return Ve(this,e,!0,!0)},get size(){return He(this,!0)},has(e){return De.call(this,e,!0)},add:Qe("add"),set:Qe("set"),delete:Qe("delete"),clear:Qe("clear"),forEach:Ke(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((l=>{e[l]=Ge(l,!1,!1),n[l]=Ge(l,!0,!1),t[l]=Ge(l,!1,!0),r[l]=Ge(l,!0,!0)})),[e,n,t,r]}const[Xe,Ye,et,tt]=Je();function nt(e,t){const n=t?e?tt:et:e?Ye:Xe;return(t,r,l)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(g(n,r)&&r in t?n:t,r,l)}const rt={get:nt(!1,!1)},lt={get:nt(!1,!0)},it={get:nt(!0,!1)},ot=new WeakMap,st=new WeakMap,at=new WeakMap,ct=new WeakMap;function ut(e){return ft(e)?e:dt(e,!1,Ue,rt,ot)}function pt(e){return dt(e,!0,Me,it,at)}function dt(e,t,n,r,l){if(!_(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=l.get(e);if(i)return i;const o=(s=e).__v_skip||!Object.isExtensible(s)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(A(s));var s;if(0===o)return e;const a=new Proxy(e,2===o?r:n);return l.set(e,a),a}function ht(e){return ft(e)?ht(e.__v_raw):!(!e||!e.__v_isReactive)}function ft(e){return!(!e||!e.__v_isReadonly)}function gt(e){return!(!e||!e.__v_isShallow)}function mt(e){return ht(e)||ft(e)}function vt(e){const t=e&&e.__v_raw;return t?vt(t):e}function yt(e){return N(e,"__v_skip",!0),e}const wt=e=>_(e)?ut(e):e,bt=e=>_(e)?pt(e):e;function kt(e){ve&&de&&xe((e=vt(e)).dep||(e.dep=ie()))}function xt(e,t){const n=(e=vt(e)).dep;n&&$e(n)}function _t(e){return!(!e||!0!==e.__v_isRef)}function $t(e){return St(e,!1)}function Ct(e){return St(e,!0)}function St(e,t){return _t(e)?e:new At(e,t)}class At{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:vt(e),this._value=t?e:wt(e)}get value(){return kt(this),this._value}set value(e){const t=this.__v_isShallow||gt(e)||ft(e);e=t?e:vt(e),P(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:wt(e),xt(this))}}function Rt(e){return _t(e)?e.value:e}const Et={get:(e,t,n)=>Rt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const l=e[t];return _t(l)&&!_t(n)?(l.value=n,!0):Reflect.set(e,t,n,r)}};function zt(e){return ht(e)?e:new Proxy(e,Et)}class Lt{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ge(e,(()=>{this._dirty||(this._dirty=!0,xt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=vt(this);return kt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function It(e,t,n,r){let l;try{l=r?e(...r):e()}catch(e){jt(e,t,n)}return l}function Tt(e,t,n,r){if(b(e)){const l=It(e,t,n,r);return l&&$(l)&&l.catch((e=>{jt(e,t,n)})),l}const l=[];for(let i=0;i<e.length;i++)l.push(Tt(e[i],t,n,r));return l}function jt(e,t,n){if(t){let r=t.parent;const l=t.proxy,i=n;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,l,i))return;r=r.parent}const o=t.appContext.config.errorHandler;if(o)return void It(o,null,10,[e,l,i])}!function(e,t,n){console.error(e)}(e)}let Ot=!1,Ut=!1;const Mt=[];let Pt=0;const Ft=[];let Nt=null,Vt=0;const Dt=Promise.resolve();let Ht=null;function Bt(e){const t=Ht||Dt;return e?t.then(this?e.bind(this):e):t}function Wt(e){Mt.length&&Mt.includes(e,Ot&&e.allowRecurse?Pt+1:Pt)||(null==e.id?Mt.push(e):Mt.splice(function(e){let t=Pt+1,n=Mt.length;for(;t<n;){const r=t+n>>>1;Gt(Mt[r])<e?t=r+1:n=r}return t}(e.id),0,e),qt())}function qt(){Ot||Ut||(Ut=!0,Ht=Dt.then(Jt))}function Zt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ot?Pt+1:0;for(;t<Mt.length;t++){const e=Mt[t];e&&e.pre&&(Mt.splice(t,1),t--,e())}}function Kt(e){if(Ft.length){const e=[...new Set(Ft)];if(Ft.length=0,Nt)return void Nt.push(...e);for(Nt=e,Nt.sort(((e,t)=>Gt(e)-Gt(t))),Vt=0;Vt<Nt.length;Vt++)Nt[Vt]();Nt=null,Vt=0}}const Gt=e=>null==e.id?1/0:e.id,Qt=(e,t)=>{const n=Gt(e)-Gt(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Jt(e){Ut=!1,Ot=!0,Mt.sort(Qt);try{for(Pt=0;Pt<Mt.length;Pt++){const e=Mt[Pt];e&&!1!==e.active&&It(e,null,14)}}finally{Pt=0,Mt.length=0,Kt(),Ot=!1,Ht=null,(Mt.length||Ft.length)&&Jt()}}function Xt(e,t){if(e.isUnmounted)return;const n=e.vnode.props||i;for(var r=arguments.length,l=new Array(r>2?r-2:0),o=2;o<r;o++)l[o-2]=arguments[o];let s=l;const a=t.startsWith("update:"),c=a&&t.slice(7);if(c&&c in n){const e=`${"modelValue"===c?"model":c}Modifiers`,{number:t,trim:r}=n[e]||i;r&&(s=l.map((e=>k(e)?e.trim():e))),t&&(s=l.map(V))}let u,p=n[u=M(t)]||n[u=M(T(t))];!p&&a&&(p=n[u=M(O(t))]),p&&Tt(p,e,6,s);const d=n[u+"Once"];if(d){if(e.emitted){if(e.emitted[u])return}else e.emitted={};e.emitted[u]=!0,Tt(d,e,6,s)}}function Yt(e,t){const n=t.emitsCache,r=n.get(e);if(void 0!==r)return r;const l=e.emits;let i={};return l?(m(l)?l.forEach((e=>i[e]=null)):d(i,l),_(e)&&n.set(e,i),i):(_(e)&&n.set(e,null),null)}function en(e,t){return!(!e||!u(t))&&(t=t.slice(2).replace(/Once$/,""),g(e,t[0].toLowerCase()+t.slice(1))||g(e,O(t))||g(e,t))}let tn=null,nn=null;function rn(e){const t=tn;return tn=e,nn=e&&e.type.__scopeId||null,t}function ln(e){const{type:t,vnode:n,proxy:r,withProxy:l,props:i,propsOptions:[o],slots:s,attrs:a,emit:c,render:u,renderCache:d,data:h,setupState:f,ctx:g,inheritAttrs:m}=e;let v,y;const w=rn(e);try{if(4&n.shapeFlag){const e=l||r;v=Tr(u.call(e,e,d,i,f,h,g)),y=a}else{const e=t;v=Tr(e.length>1?e(i,{attrs:a,slots:s,emit:c}):e(i,null)),y=t.props?a:on(a)}}catch(t){gr.length=0,jt(t,e,1),v=Er(hr)}let b=v;if(y&&!1!==m){const e=Object.keys(y),{shapeFlag:t}=b;e.length&&7&t&&(o&&e.some(p)&&(y=sn(y,o)),b=zr(b,y))}return n.dirs&&(b=zr(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),v=b,rn(w),v}const on=e=>{let t;for(const n in e)("class"===n||"style"===n||u(n))&&((t||(t={}))[n]=e[n]);return t},sn=(e,t)=>{const n={};for(const r in e)p(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function an(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let l=0;l<r.length;l++){const i=r[l];if(t[i]!==e[i]&&!en(n,i))return!0}return!1}function cn(e,t){return dn(e,null,t)}const un={};function pn(e,t,n){return dn(e,t,n)}function dn(e,t){let{immediate:n,deep:r,flush:l,onTrack:o,onTrigger:a}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i;var c;const u=le()===(null==(c=Fr)?void 0:c.scope)?Fr:null;let p,d,f=!1,g=!1;if(_t(e)?(p=()=>e.value,f=gt(e)):ht(e)?(p=()=>e,r=!0):m(e)?(g=!0,f=e.some((e=>ht(e)||gt(e))),p=()=>e.map((e=>_t(e)?e.value:ht(e)?hn(e):b(e)?It(e,u,2):void 0))):p=b(e)?t?()=>It(e,u,2):()=>{if(!u||!u.isUnmounted)return d&&d(),Tt(e,u,3,[y])}:s,t&&r){const e=p;p=()=>hn(e())}let v,y=e=>{d=_.onStop=()=>{It(e,u,4)}};if(Kr){if(y=s,t?n&&Tt(t,u,3,[p(),g?[]:void 0,y]):p(),"sync"!==l)return s;{const e=tl();v=e.__watcherHandles||(e.__watcherHandles=[])}}let w=g?new Array(e.length).fill(un):un;const k=()=>{if(_.active)if(t){const e=_.run();(r||f||(g?e.some(((e,t)=>P(e,w[t]))):P(e,w)))&&(d&&d(),Tt(t,u,3,[e,w===un?void 0:g&&w[0]===un?[]:w,y]),w=e)}else _.run()};let x;k.allowRecurse=!!t,"sync"===l?x=k:"post"===l?x=()=>sr(k,u&&u.suspense):(k.pre=!0,u&&(k.id=u.uid),x=()=>Wt(k));const _=new ge(p,x);t?n?k():w=_.run():"post"===l?sr(_.run.bind(_),u&&u.suspense):_.run();const $=()=>{_.stop(),u&&u.scope&&h(u.scope.effects,_)};return v&&v.push($),$}function hn(e,t){if(!_(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),_t(e))hn(e.value,t);else if(m(e))for(let n=0;n<e.length;n++)hn(e[n],t);else if(y(e)||v(e))e.forEach((e=>{hn(e,t)}));else if(R(e))for(const n in e)hn(e[n],t);return e}function fn(e,t){const n=tn;if(null===n)return e;const r=Jr(n)||n.proxy,l=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[n,o,s,a=i]=t[e];n&&(b(n)&&(n={mounted:n,updated:n}),n.deep&&hn(o),l.push({dir:n,instance:r,value:o,oldValue:void 0,arg:s,modifiers:a}))}return e}function gn(e,t,n,r){const l=e.dirs,i=t&&t.dirs;for(let o=0;o<l.length;o++){const s=l[o];i&&(s.oldValue=i[o].value);let a=s.dir[r];a&&(we(),Tt(a,n,8,[e.el,s,e,t]),be())}}function mn(e,t){return b(e)?(()=>d({name:e.name},t,{setup:e}))():e}const vn=e=>!!e.type.__asyncLoader,yn=e=>e.type.__isKeepAlive;const wn=e=>function(t){return(!Kr||"sp"===e)&&function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Fr,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n){const l=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=function(){if(n.isUnmounted)return;we(),Br(n);for(var r=arguments.length,l=new Array(r),i=0;i<r;i++)l[i]=arguments[i];const o=Tt(t,n,e,l);return Wr(),be(),o});return r?l.unshift(i):l.push(i),i}}(e,(function(){return t(...arguments)}),arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fr)},bn=wn("m"),kn=wn("bum"),xn=wn("um"),_n="components";function $n(e,t){return function(e,t){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=tn||Fr;if(r){const l=r.type;if(e===_n){const e=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return b(e)?e.displayName||e.name:e.name||t&&e.__name}(l,!1);if(e&&(e===t||e===T(t)||e===U(T(t))))return l}const i=Sn(r[e]||l[e],t)||Sn(r.appContext[e],t);return!i&&n?l:i}}(_n,e,!0,t)||e}const Cn=Symbol.for("v-ndc");function Sn(e,t){return e&&(e[t]||e[T(t)]||e[U(T(t))])}function An(e,t,n,r){let l;const i=n&&n[r];if(m(e)||k(e)){l=new Array(e.length);for(let n=0,r=e.length;n<r;n++)l[n]=t(e[n],n,void 0,i&&i[n])}else if("number"==typeof e){l=new Array(e);for(let n=0;n<e;n++)l[n]=t(n+1,n,void 0,i&&i[n])}else if(_(e))if(e[Symbol.iterator])l=Array.from(e,((e,n)=>t(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);l=new Array(n.length);for(let r=0,o=n.length;r<o;r++){const o=n[r];l[r]=t(e[o],o,r,i&&i[r])}}else l=[];return n&&(n[r]=l),l}const Rn=e=>e?qr(e)?Jr(e)||e.proxy:Rn(e.parent):null,En=d(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=>Rn(e.parent),$root:e=>Rn(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>Wt(e.update)),$nextTick:e=>e.n||(e.n=Bt.bind(e.proxy)),$watch:e=>s}),zn=(e,t)=>e!==i&&!e.__isScriptSetup&&g(e,t),Ln={get(e,t){let{_:n}=e;const{ctx:r,setupState:l,data:o,props:s,accessCache:a,type:c,appContext:u}=n;let p;if("$"!==t[0]){const e=a[t];if(void 0!==e)switch(e){case 1:return l[t];case 2:return o[t];case 4:return r[t];case 3:return s[t]}else{if(zn(l,t))return a[t]=1,l[t];if(o!==i&&g(o,t))return a[t]=2,o[t];if((p=n.propsOptions[0])&&g(p,t))return a[t]=3,s[t];if(r!==i&&g(r,t))return a[t]=4,r[t];a[t]=0}}const d=En[t];let h,f;return d?("$attrs"===t&&ke(n,0,t),d(n)):(h=c.__cssModules)&&(h=h[t])?h:r!==i&&g(r,t)?(a[t]=4,r[t]):(f=u.config.globalProperties,g(f,t)?f[t]:void 0)},set(e,t,n){let{_:r}=e;const{data:l,setupState:o,ctx:s}=r;return zn(o,t)?(o[t]=n,!0):l!==i&&g(l,t)?(l[t]=n,!0):!g(r.props,t)&&(("$"!==t[0]||!(t.slice(1)in r))&&(s[t]=n,!0))},has(e,t){let n,{_:{data:r,setupState:l,accessCache:o,ctx:s,appContext:a,propsOptions:c}}=e;return!!o[t]||r!==i&&g(r,t)||zn(l,t)||(n=c[0])&&g(n,t)||g(s,t)||g(En,t)||g(a.config.globalProperties,t)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:g(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function In(e){return m(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function Tn(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const{mixins:l,extends:i}=t;i&&Tn(e,i,n,!0),l&&l.forEach((t=>Tn(e,t,n,!0)));for(const l in t)if(r&&"expose"===l);else{const r=jn[l]||n&&n[l];e[l]=r?r(e[l],t[l]):t[l]}return e}const jn={data:On,props:Fn,emits:Fn,methods:Pn,computed:Pn,beforeCreate:Mn,created:Mn,beforeMount:Mn,mounted:Mn,beforeUpdate:Mn,updated:Mn,beforeDestroy:Mn,beforeUnmount:Mn,destroyed:Mn,unmounted:Mn,activated:Mn,deactivated:Mn,errorCaptured:Mn,serverPrefetch:Mn,components:Pn,directives:Pn,watch:function(e,t){if(!e)return t;if(!t)return e;const n=d(Object.create(null),e);for(const r in t)n[r]=Mn(e[r],t[r]);return n},provide:On,inject:function(e,t){return Pn(Un(e),Un(t))}};function On(e,t){return t?e?function(){return d(b(e)?e.call(this,this):e,b(t)?t.call(this,this):t)}:t:e}function Un(e){if(m(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Mn(e,t){return e?[...new Set([].concat(e,t))]:t}function Pn(e,t){return e?d(Object.create(null),e,t):t}function Fn(e,t){return e?m(e)&&m(t)?[...new Set([...e,...t])]:d(Object.create(null),In(e),In(null!=t?t:{})):t}function Nn(){return{app:null,config:{isNativeTag:a,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 Vn=0;function Dn(e,t){return function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;b(n)||(n=d({},n)),null==r||_(r)||(r=null);const l=Nn(),i=new Set;let o=!1;const s=l.app={_uid:Vn++,_component:n,_props:r,_container:null,_context:l,_instance:null,version:nl,get config(){return l.config},set config(e){},use(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return i.has(e)||(e&&b(e.install)?(i.add(e),e.install(s,...n)):b(e)&&(i.add(e),e(s,...n))),s},mixin:e=>s,component:(e,t)=>t?(l.components[e]=t,s):l.components[e],directive:(e,t)=>t?(l.directives[e]=t,s):l.directives[e],mount(i,a,c){if(!o){const u=Er(n,r);return u.appContext=l,a&&t?t(u,i):e(u,i,c),o=!0,s._container=i,i.__vue_app__=s,Jr(u.component)||u.component.proxy}},unmount(){o&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(l.provides[e]=t,s),runWithContext(e){Hn=s;try{return e()}finally{Hn=null}}};return s}}let Hn=null;function Bn(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=Fr||tn;if(r||Hn){const l=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Hn._context.provides;if(l&&e in l)return l[e];if(arguments.length>1)return n&&b(t)?t.call(r&&r.proxy):t}}function Wn(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const l={},i={};N(i,Cr,1),e.propsDefaults=Object.create(null),qn(e,t,l,i);for(const t in e.propsOptions[0])t in l||(l[t]=void 0);n?e.props=r?l:dt(l,!1,Pe,lt,st):e.type.props?e.props=l:e.props=i,e.attrs=i}function qn(e,t,n,r){const[l,o]=e.propsOptions;let s,a=!1;if(t)for(let i in t){if(z(i))continue;const c=t[i];let u;l&&g(l,u=T(i))?o&&o.includes(u)?(s||(s={}))[u]=c:n[u]=c:en(e.emitsOptions,i)||i in r&&c===r[i]||(r[i]=c,a=!0)}if(o){const t=vt(n),r=s||i;for(let i=0;i<o.length;i++){const s=o[i];n[s]=Zn(l,t,s,r[s],e,!g(r,s))}}return a}function Zn(e,t,n,r,l,i){const o=e[n];if(null!=o){const e=g(o,"default");if(e&&void 0===r){const e=o.default;if(o.type!==Function&&!o.skipFactory&&b(e)){const{propsDefaults:i}=l;n in i?r=i[n]:(Br(l),r=i[n]=e.call(null,t),Wr())}else r=e}o[0]&&(i&&!e?r=!1:!o[1]||""!==r&&r!==O(n)||(r=!0))}return r}function Kn(e,t){const n=t.propsCache,r=n.get(e);if(r)return r;const l=e.props,s={},a=[];if(!l)return _(e)&&n.set(e,o),o;if(m(l))for(let e=0;e<l.length;e++){const t=T(l[e]);Gn(t)&&(s[t]=i)}else if(l)for(const e in l){const t=T(e);if(Gn(t)){const n=l[e],r=s[t]=m(n)||b(n)?{type:n}:d({},n);if(r){const e=Xn(Boolean,r.type),n=Xn(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||g(r,"default"))&&a.push(t)}}}const c=[s,a];return _(e)&&n.set(e,c),c}function Gn(e){return"$"!==e[0]}function Qn(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function Jn(e,t){return Qn(e)===Qn(t)}function Xn(e,t){return m(t)?t.findIndex((t=>Jn(t,e))):b(t)&&Jn(t,e)?0:-1}const Yn=e=>"_"===e[0]||"$stable"===e,er=e=>m(e)?e.map(Tr):[Tr(e)],tr=(e,t,n)=>{if(t._n)return t;const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tn;if(!t)return e;if(e._n)return e;const n=function(){n._d&&wr(-1);const r=rn(t);let l;try{l=e(...arguments)}finally{rn(r),n._d&&wr(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}((function(){return er(t(...arguments))}),n);return r._c=!1,r},nr=(e,t,n)=>{const r=e._ctx;for(const n in e){if(Yn(n))continue;const l=e[n];if(b(l))t[n]=tr(0,l,r);else if(null!=l){const e=er(l);t[n]=()=>e}}},rr=(e,t)=>{const n=er(t);e.slots.default=()=>n},lr=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=vt(t),N(t,"_",n)):nr(t,e.slots={})}else e.slots={},t&&rr(e,t);N(e.slots,Cr,1)},ir=(e,t,n)=>{const{vnode:r,slots:l}=e;let o=!0,s=i;if(32&r.shapeFlag){const e=t._;e?n&&1===e?o=!1:(d(l,t),n||1!==e||delete l._):(o=!t.$stable,nr(t,l)),s=t}else t&&(rr(e,t),s={default:1});if(o)for(const e in l)Yn(e)||e in s||delete l[e]};function or(e,t,n,r){let l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(m(e))return void e.forEach(((e,i)=>or(e,t&&(m(t)?t[i]:t),n,r,l)));if(vn(r)&&!l)return;const o=4&r.shapeFlag?Jr(r.component)||r.component.proxy:r.el,s=l?null:o,{i:a,r:c}=e,u=t&&t.r,p=a.refs===i?a.refs={}:a.refs,d=a.setupState;if(null!=u&&u!==c&&(k(u)?(p[u]=null,g(d,u)&&(d[u]=null)):_t(u)&&(u.value=null)),b(c))It(c,a,12,[s,p]);else{const t=k(c),r=_t(c);if(t||r){const i=()=>{if(e.f){const n=t?g(d,c)?d[c]:p[c]:c.value;l?m(n)&&h(n,o):m(n)?n.includes(o)||n.push(o):t?(p[c]=[o],g(d,c)&&(d[c]=p[c])):(c.value=[o],e.k&&(p[e.k]=c.value))}else t?(p[c]=s,g(d,c)&&(d[c]=s)):r&&(c.value=s,e.k&&(p[e.k]=s))};s?(i.id=-1,sr(i,n)):i()}}}const sr=function(e,t){var n;t&&t.pendingBranch?m(e)?t.effects.push(...e):t.effects.push(e):(m(n=e)?Ft.push(...n):Nt&&Nt.includes(n,n.allowRecurse?Vt+1:Vt)||Ft.push(n),qt())};function ar(e){return function(e,t){H().__VUE__=!0;const{insert:n,remove:r,patchProp:l,createElement:a,createText:c,createComment:u,setText:p,setElementText:d,parentNode:h,nextSibling:f,setScopeId:m=s,insertStaticContent:v}=e,y=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,a=arguments.length>8&&void 0!==arguments[8]?arguments[8]:!!t.dynamicChildren;if(e===t)return;e&&!$r(e,t)&&(r=X(e),Z(e,l,i,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:p}=t;switch(c){case dr:w(e,t,n,r);break;case hr:b(e,t,n,r);break;case fr:null==e&&k(t,n,r,o);break;case pr:j(e,t,n,r,l,i,o,s,a);break;default:1&p?C(e,t,n,r,l,i,o,s,a):6&p?U(e,t,n,r,l,i,o,s,a):(64&p||128&p)&&c.process(e,t,n,r,l,i,o,s,a,ee)}null!=u&&l&&or(u,e&&e.ref,i,t||e,!t)},w=(e,t,r,l)=>{if(null==e)n(t.el=c(t.children),r,l);else{const n=t.el=e.el;t.children!==e.children&&p(n,t.children)}},b=(e,t,r,l)=>{null==e?n(t.el=u(t.children||""),r,l):t.el=e.el},k=(e,t,n,r)=>{[e.el,e.anchor]=v(e.children,t,n,r,e.el,e.anchor)},x=(e,t,r)=>{let l,{el:i,anchor:o}=e;for(;i&&i!==o;)l=f(i),n(i,t,r),i=l;n(o,t,r)},_=e=>{let t,{el:n,anchor:l}=e;for(;n&&n!==l;)t=f(n),r(n),n=t;r(l)},C=(e,t,n,r,l,i,o,s,a)=>{o=o||"svg"===t.type,null==e?S(t,n,r,l,i,o,s,a):E(e,t,l,i,o,s,a)},S=(e,t,r,i,o,s,c,u)=>{let p,h;const{type:f,props:g,shapeFlag:m,transition:v,dirs:y}=e;if(p=e.el=a(e.type,s,g&&g.is,g),8&m?d(p,e.children):16&m&&R(e.children,p,null,i,o,s&&"foreignObject"!==f,c,u),y&&gn(e,null,i,"created"),A(p,e,e.scopeId,c,i),g){for(const t in g)"value"===t||z(t)||l(p,t,null,g[t],s,e.children,i,o,J);"value"in g&&l(p,"value",null,g.value),(h=g.onVnodeBeforeMount)&&Ur(h,i,e)}y&&gn(e,null,i,"beforeMount");const w=(!o||o&&!o.pendingBranch)&&v&&!v.persisted;w&&v.beforeEnter(p),n(p,t,r),((h=g&&g.onVnodeMounted)||w||y)&&sr((()=>{h&&Ur(h,i,e),w&&v.enter(p),y&&gn(e,null,i,"mounted")}),o)},A=(e,t,n,r,l)=>{if(n&&m(e,n),r)for(let t=0;t<r.length;t++)m(e,r[t]);if(l){if(t===l.subTree){const t=l.vnode;A(e,t,t.scopeId,t.slotScopeIds,l.parent)}}},R=function(e,t,n,r,l,i,o,s){for(let a=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0;a<e.length;a++){const c=e[a]=s?jr(e[a]):Tr(e[a]);y(null,c,t,n,r,l,i,o,s)}},E=(e,t,n,r,o,s,a)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:p,dirs:h}=t;u|=16&e.patchFlag;const f=e.props||i,g=t.props||i;let m;n&&cr(n,!1),(m=g.onVnodeBeforeUpdate)&&Ur(m,n,t,e),h&&gn(t,e,n,"beforeUpdate"),n&&cr(n,!0);const v=o&&"foreignObject"!==t.type;if(p?L(e.dynamicChildren,p,c,n,r,v,s):a||D(e,t,c,null,n,r,v,s,!1),u>0){if(16&u)I(c,t,f,g,n,r,o);else if(2&u&&f.class!==g.class&&l(c,"class",null,g.class,o),4&u&&l(c,"style",f.style,g.style,o),8&u){const i=t.dynamicProps;for(let t=0;t<i.length;t++){const s=i[t],a=f[s],u=g[s];u===a&&"value"!==s||l(c,s,a,u,o,e.children,n,r,J)}}1&u&&e.children!==t.children&&d(c,t.children)}else a||null!=p||I(c,t,f,g,n,r,o);((m=g.onVnodeUpdated)||h)&&sr((()=>{m&&Ur(m,n,t,e),h&&gn(t,e,n,"updated")}),r)},L=(e,t,n,r,l,i,o)=>{for(let s=0;s<t.length;s++){const a=e[s],c=t[s],u=a.el&&(a.type===pr||!$r(a,c)||70&a.shapeFlag)?h(a.el):n;y(a,c,u,null,r,l,i,o,!0)}},I=(e,t,n,r,o,s,a)=>{if(n!==r){if(n!==i)for(const i in n)z(i)||i in r||l(e,i,n[i],null,a,t.children,o,s,J);for(const i in r){if(z(i))continue;const c=r[i],u=n[i];c!==u&&"value"!==i&&l(e,i,u,c,a,t.children,o,s,J)}"value"in r&&l(e,"value",n.value,r.value)}},j=(e,t,r,l,i,o,s,a,u)=>{const p=t.el=e?e.el:c(""),d=t.anchor=e?e.anchor:c("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:g}=t;g&&(a=a?a.concat(g):g),null==e?(n(p,r,l),n(d,r,l),R(t.children,r,d,i,o,s,a,u)):h>0&&64&h&&f&&e.dynamicChildren?(L(e.dynamicChildren,f,r,i,o,s,a),(null!=t.key||i&&t===i.subTree)&&ur(e,t,!0)):D(e,t,r,d,i,o,s,a,u)},U=(e,t,n,r,l,i,o,s,a)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?l.ctx.activate(t,n,r,o,a):M(t,n,r,l,i,o,a):P(e,t,a)},M=(e,t,n,r,l,o,s)=>{const a=e.component=function(e,t,n){const r=e.type,l=(t?t.appContext:e.appContext)||Mr,o={uid:Pr++,vnode:e,type:r,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,scope:new re(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Kn(r,l),emitsOptions:Yt(r,l),emit:null,emitted:null,propsDefaults:i,inheritAttrs:r.inheritAttrs,ctx:i,data:i,props:i,attrs:i,slots:i,refs:i,setupState:i,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};o.ctx={_:o},o.root=t?t.root:o,o.emit=Xt.bind(null,o),e.ce&&e.ce(o);return o}(e,r,l);if(yn(e)&&(a.ctx.renderer=ee),function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Kr=t;const{props:n,children:r}=e.vnode,l=qr(e);Wn(e,n,l,t),lr(e,r);const i=l?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=yt(new Proxy(e.ctx,Ln));const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?function(e){const t=t=>{e.exposed=t||{}};return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:(t,n)=>(ke(e,0,"$attrs"),t[n])}))}(e)},slots:e.slots,emit:e.emit,expose:t}}(e):null;Br(e),we();const l=It(r,e,0,[e.props,n]);if(be(),Wr(),$(l)){if(l.then(Wr,Wr),t)return l.then((n=>{Gr(e,n,t)})).catch((t=>{jt(t,e,0)}));e.asyncDep=l}else Gr(e,l,t)}else Qr(e,t)}(e,t):void 0;Kr=!1}(a),a.asyncDep){if(l&&l.registerDep(a,N),!e.el){const e=a.subTree=Er(hr);b(null,e,t,n)}}else N(a,e,t,n,l,o,s)},P=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:l,component:i}=e,{props:o,children:s,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!l&&!s||s&&s.$stable)||r!==o&&(r?!o||an(r,o,c):!!o);if(1024&a)return!0;if(16&a)return r?an(r,o,c):!!o;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(o[n]!==r[n]&&!en(c,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void V(r,t,n);r.next=t,function(e){const t=Mt.indexOf(e);t>Pt&&Mt.splice(t,1)}(r.update),r.update()}else t.el=e.el,r.vnode=t},N=(e,t,n,r,l,i,o)=>{const s=()=>{if(e.isMounted){let t,{next:n,bu:r,u:s,parent:a,vnode:c}=e,u=n;cr(e,!1),n?(n.el=c.el,V(e,n,o)):n=c,r&&F(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Ur(t,a,n,c),cr(e,!0);const p=ln(e),d=e.subTree;e.subTree=p,y(d,p,h(d.el),X(d),e,l,i),n.el=p.el,null===u&&function(e,t){let{vnode:n,parent:r}=e;for(;r&&r.subTree===n;)(n=r.vnode).el=t,r=r.parent}(e,p.el),s&&sr(s,l),(t=n.props&&n.props.onVnodeUpdated)&&sr((()=>Ur(t,a,n,c)),l)}else{let o;const{el:s,props:a}=t,{bm:c,m:u,parent:p}=e,d=vn(t);if(cr(e,!1),c&&F(c),!d&&(o=a&&a.onVnodeBeforeMount)&&Ur(o,p,t),cr(e,!0),s&&ne){const n=()=>{e.subTree=ln(e),ne(s,e.subTree,e,l,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const o=e.subTree=ln(e);y(null,o,n,r,e,l,i),t.el=o.el}if(u&&sr(u,l),!d&&(o=a&&a.onVnodeMounted)){const e=t;sr((()=>Ur(o,p,e)),l)}(256&t.shapeFlag||p&&vn(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&sr(e.a,l),e.isMounted=!0,t=n=r=null}},a=e.effect=new ge(s,(()=>Wt(c)),e.scope),c=e.update=()=>a.run();c.id=e.uid,cr(e,!0),c()},V=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:l,attrs:i,vnode:{patchFlag:o}}=e,s=vt(l),[a]=e.propsOptions;let c=!1;if(!(r||o>0)||16&o){let r;qn(e,t,l,i)&&(c=!0);for(const i in s)t&&(g(t,i)||(r=O(i))!==i&&g(t,r))||(a?!n||void 0===n[i]&&void 0===n[r]||(l[i]=Zn(a,s,i,void 0,e,!0)):delete l[i]);if(i!==s)for(const e in i)t&&g(t,e)||(delete i[e],c=!0)}else if(8&o){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(en(e.emitsOptions,o))continue;const u=t[o];if(a)if(g(i,o))u!==i[o]&&(i[o]=u,c=!0);else{const t=T(o);l[t]=Zn(a,s,t,u,e,!1)}else u!==i[o]&&(i[o]=u,c=!0)}}c&&_e(e,"set","$attrs")}(e,t.props,r,n),ir(e,t.children,n),we(),Zt(),be()},D=function(e,t,n,r,l,i,o,s){let a=arguments.length>8&&void 0!==arguments[8]&&arguments[8];const c=e&&e.children,u=e?e.shapeFlag:0,p=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void W(c,p,n,r,l,i,o,s,a);if(256&h)return void B(c,p,n,r,l,i,o,s,a)}8&f?(16&u&&J(c,l,i),p!==c&&d(n,p)):16&u?16&f?W(c,p,n,r,l,i,o,s,a):J(c,l,i,!0):(8&u&&d(n,""),16&f&&R(p,n,r,l,i,o,s,a))},B=(e,t,n,r,l,i,s,a,c)=>{t=t||o;const u=(e=e||o).length,p=t.length,d=Math.min(u,p);let h;for(h=0;h<d;h++){const r=t[h]=c?jr(t[h]):Tr(t[h]);y(e[h],r,n,null,l,i,s,a,c)}u>p?J(e,l,i,!0,!1,d):R(t,n,r,l,i,s,a,c,d)},W=(e,t,n,r,l,i,s,a,c)=>{let u=0;const p=t.length;let d=e.length-1,h=p-1;for(;u<=d&&u<=h;){const r=e[u],o=t[u]=c?jr(t[u]):Tr(t[u]);if(!$r(r,o))break;y(r,o,n,null,l,i,s,a,c),u++}for(;u<=d&&u<=h;){const r=e[d],o=t[h]=c?jr(t[h]):Tr(t[h]);if(!$r(r,o))break;y(r,o,n,null,l,i,s,a,c),d--,h--}if(u>d){if(u<=h){const e=h+1,o=e<p?t[e].el:r;for(;u<=h;)y(null,t[u]=c?jr(t[u]):Tr(t[u]),n,o,l,i,s,a,c),u++}}else if(u>h)for(;u<=d;)Z(e[u],l,i,!0),u++;else{const f=u,g=u,m=new Map;for(u=g;u<=h;u++){const e=t[u]=c?jr(t[u]):Tr(t[u]);null!=e.key&&m.set(e.key,u)}let v,w=0;const b=h-g+1;let k=!1,x=0;const _=new Array(b);for(u=0;u<b;u++)_[u]=0;for(u=f;u<=d;u++){const r=e[u];if(w>=b){Z(r,l,i,!0);continue}let o;if(null!=r.key)o=m.get(r.key);else for(v=g;v<=h;v++)if(0===_[v-g]&&$r(r,t[v])){o=v;break}void 0===o?Z(r,l,i,!0):(_[o-g]=u+1,o>=x?x=o:k=!0,y(r,t[o],n,null,l,i,s,a,c),w++)}const $=k?function(e){const t=e.slice(),n=[0];let r,l,i,o,s;const a=e.length;for(r=0;r<a;r++){const a=e[r];if(0!==a){if(l=n[n.length-1],e[l]<a){t[r]=l,n.push(r);continue}for(i=0,o=n.length-1;i<o;)s=i+o>>1,e[n[s]]<a?i=s+1:o=s;a<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,o=n[i-1];for(;i-- >0;)n[i]=o,o=t[o];return n}(_):o;for(v=$.length-1,u=b-1;u>=0;u--){const e=g+u,o=t[e],d=e+1<p?t[e+1].el:r;0===_[u]?y(null,o,n,d,l,i,s,a,c):k&&(v<0||u!==$[v]?q(o,n,d,2):v--)}}},q=function(e,t,r,l){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;const{el:o,type:s,transition:a,children:c,shapeFlag:u}=e;if(6&u)return void q(e.component.subTree,t,r,l);if(128&u)return void e.suspense.move(t,r,l);if(64&u)return void s.move(e,t,r,ee);if(s===pr){n(o,t,r);for(let e=0;e<c.length;e++)q(c[e],t,r,l);return void n(e.anchor,t,r)}if(s===fr)return void x(e,t,r);if(2!==l&&1&u&&a)if(0===l)a.beforeEnter(o),n(o,t,r),sr((()=>a.enter(o)),i);else{const{leave:e,delayLeave:l,afterLeave:i}=a,s=()=>n(o,t,r),c=()=>{e(o,(()=>{s(),i&&i()}))};l?l(o,s,c):c()}else n(o,t,r)},Z=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const{type:i,props:o,ref:s,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d}=e;if(null!=s&&or(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&d,f=!vn(e);let g;if(f&&(g=o&&o.onVnodeBeforeUnmount)&&Ur(g,t,e),6&u)Q(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);h&&gn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,l,ee,r):c&&(i!==pr||p>0&&64&p)?J(c,t,n,!1,!0):(i===pr&&384&p||!l&&16&u)&&J(a,t,n),r&&K(e)}(f&&(g=o&&o.onVnodeUnmounted)||h)&&sr((()=>{g&&Ur(g,t,e),h&&gn(e,null,t,"unmounted")}),n)},K=e=>{const{type:t,el:n,anchor:l,transition:i}=e;if(t===pr)return void G(n,l);if(t===fr)return void _(e);const o=()=>{r(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:r}=i,l=()=>t(n,o);r?r(e.el,o,l):l()}else o()},G=(e,t)=>{let n;for(;e!==t;)n=f(e),r(e),e=n;r(t)},Q=(e,t,n)=>{const{bum:r,scope:l,update:i,subTree:o,um:s}=e;r&&F(r),l.stop(),i&&(i.active=!1,Z(o,e,t,n)),s&&sr(s,t),sr((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},J=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];for(let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;i<e.length;i++)Z(e[i],t,n,r,l)},X=e=>6&e.shapeFlag?X(e.component.subTree):128&e.shapeFlag?e.suspense.next():f(e.anchor||e.el),Y=(e,t,n)=>{null==e?t._vnode&&Z(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),Zt(),Kt(),t._vnode=e},ee={p:y,um:Z,m:q,r:K,mt:M,mc:R,pc:D,pbc:L,n:X,o:e};let te,ne;t&&([te,ne]=t(ee));return{render:Y,hydrate:te,createApp:Dn(Y,te)}}(e)}function cr(e,t){let{effect:n,update:r}=e;n.allowRecurse=r.allowRecurse=t}function ur(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e.children,l=t.children;if(m(r)&&m(l))for(let e=0;e<r.length;e++){const t=r[e];let i=l[e];1&i.shapeFlag&&!i.dynamicChildren&&((i.patchFlag<=0||32===i.patchFlag)&&(i=l[e]=jr(l[e]),i.el=t.el),n||ur(t,i)),i.type===dr&&(i.el=t.el)}}const pr=Symbol.for("v-fgt"),dr=Symbol.for("v-txt"),hr=Symbol.for("v-cmt"),fr=Symbol.for("v-stc"),gr=[];let mr=null;function vr(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];gr.push(mr=e?null:[])}let yr=1;function wr(e){yr+=e}function br(e){return e.dynamicChildren=yr>0?mr||o:null,gr.pop(),mr=gr[gr.length-1]||null,yr>0&&mr&&mr.push(e),e}function kr(e,t,n,r,l,i){return br(Rr(e,t,n,r,l,i,!0))}function xr(e,t,n,r,l){return br(Er(e,t,n,r,l,!0))}function _r(e){return!!e&&!0===e.__v_isVNode}function $r(e,t){return e.type===t.type&&e.key===t.key}const Cr="__vInternal",Sr=e=>{let{key:t}=e;return null!=t?t:null},Ar=e=>{let{ref:t,ref_key:n,ref_for:r}=e;return"number"==typeof t&&(t=""+t),null!=t?k(t)||_t(t)||b(t)?{i:tn,r:t,k:n,f:!!r}:t:null};function Rr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e===pr?0:1,o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Sr(t),ref:t&&Ar(t),scopeId:nn,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:i,patchFlag:r,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:tn};return s?(Or(a,n),128&i&&e.normalize(a)):n&&(a.shapeFlag|=k(n)?8:16),yr>0&&!o&&mr&&(a.patchFlag>0||6&i)&&32!==a.patchFlag&&mr.push(a),a}const Er=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,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];e&&e!==Cn||(e=hr);if(_r(e)){const r=zr(e,t,!0);return n&&Or(r,n),yr>0&&!i&&mr&&(6&r.shapeFlag?mr[mr.indexOf(e)]=r:mr.push(r)),r.patchFlag|=-2,r}o=e,b(o)&&"__vccOpts"in o&&(e=e.__vccOpts);var o;if(t){t=function(e){return e?mt(e)||Cr in e?d({},e):e:null}(t);let{class:e,style:n}=t;e&&!k(e)&&(t.class=G(e)),_(n)&&(mt(n)&&!m(n)&&(n=d({},n)),t.style=B(n))}const s=k(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:_(e)?4:b(e)?2:0;return Rr(e,t,n,r,l,s,i,!0)};function zr(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{props:r,ref:l,patchFlag:i,children:o}=e,s=t?function(){const e={};for(let t=0;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];for(const t in n)if("class"===t)e.class!==n.class&&(e.class=G([e.class,n.class]));else if("style"===t)e.style=B([e.style,n.style]);else if(u(t)){const r=e[t],l=n[t];!l||r===l||m(r)&&r.includes(l)||(e[t]=r?[].concat(r,l):l)}else""!==t&&(e[t]=n[t])}return e}(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Sr(s),ref:t&&t.ref?n&&l?m(l)?l.concat(Ar(t)):[l,Ar(t)]:Ar(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==pr?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&zr(e.ssContent),ssFallback:e.ssFallback&&zr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Lr(){return Er(dr,null,arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}function Ir(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(vr(),xr(hr,null,e)):Er(hr,null,e)}function Tr(e){return null==e||"boolean"==typeof e?Er(hr):m(e)?Er(pr,null,e.slice()):"object"==typeof e?jr(e):Er(dr,null,String(e))}function jr(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:zr(e)}function Or(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(m(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),Or(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Cr in t?3===r&&tn&&(1===tn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=tn}}else b(t)?(t={default:t,_ctx:tn},n=32):(t=String(t),64&r?(n=16,t=[Lr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ur(e,t,n){Tt(e,t,7,[n,arguments.length>3&&void 0!==arguments[3]?arguments[3]:null])}const Mr=Nn();let Pr=0;let Fr=null;const Nr=()=>Fr||tn;let Vr,Dr,Hr="__VUE_INSTANCE_SETTERS__";(Dr=H()[Hr])||(Dr=H()[Hr]=[]),Dr.push((e=>Fr=e)),Vr=e=>{Dr.length>1?Dr.forEach((t=>t(e))):Dr[0](e)};const Br=e=>{Vr(e),e.scope.on()},Wr=()=>{Fr&&Fr.scope.off(),Vr(null)};function qr(e){return 4&e.vnode.shapeFlag}let Zr,Kr=!1;function Gr(e,t,n){b(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_(t)&&(e.setupState=zt(t)),Qr(e,n)}function Qr(e,t,n){const r=e.type;if(!e.render){if(!t&&Zr&&!r.render){const t=r.template||function(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:l,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,s=i.get(t);let a;return s?a=s:l.length||n||r?(a={},l.length&&l.forEach((e=>Tn(a,e,o,!0))),Tn(a,t,o)):a=t,_(t)&&i.set(t,a),a}(e).template;if(t){const{isCustomElement:n,compilerOptions:l}=e.appContext.config,{delimiters:i,compilerOptions:o}=r,s=d(d({isCustomElement:n,delimiters:i},l),o);r.render=Zr(t,s)}}e.render=r.render||s}}function Jr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(zt(yt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in En?En[n](e):void 0,has:(e,t)=>t in e||t in En}))}const Xr=(e,t)=>function(e,t){let n,r,l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i=b(e);return i?(n=e,r=s):(n=e.get,r=e.set),new Lt(n,r,i||!r,l)}(e,t,Kr);function Yr(e,t,n){const r=arguments.length;return 2===r?_(t)&&!m(t)?_r(t)?Er(e,null,[t]):Er(e,t):Er(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&_r(n)&&(n=[n]),Er(e,t,n))}const el=Symbol.for("v-scx"),tl=()=>Bn(el),nl="3.3.4",rl="undefined"!=typeof document?document:null,ll=rl&&rl.createElement("template"),il={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const l=t?rl.createElementNS("http://www.w3.org/2000/svg",e):rl.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&l.setAttribute("multiple",r.multiple),l},createText:e=>rl.createTextNode(e),createComment:e=>rl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>rl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,l,i){const o=n?n.previousSibling:t.lastChild;if(l&&(l===i||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),l!==i&&(l=l.nextSibling););else{ll.innerHTML=r?`<svg>${e}</svg>`:e;const l=ll.content;if(r){const e=l.firstChild;for(;e.firstChild;)l.appendChild(e.firstChild);l.removeChild(e)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};const ol=/\s*!important$/;function sl(e,t,n){if(m(n))n.forEach((n=>sl(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=cl[t];if(n)return n;let r=T(t);if("filter"!==r&&r in e)return cl[t]=r;r=U(r);for(let n=0;n<al.length;n++){const l=al[n]+r;if(l in e)return cl[t]=l}return t}(e,t);ol.test(n)?e.setProperty(O(r),n.replace(ol,""),"important"):e[r]=n}}const al=["Webkit","Moz","ms"],cl={};const ul="http://www.w3.org/1999/xlink";function pl(e,t,n,r){e.addEventListener(t,n,r)}function dl(e,t,n,r){let l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;const i=e._vei||(e._vei={}),o=i[t];if(r&&o)o.value=r;else{const[n,s]=function(e){let t;if(hl.test(e)){let n;for(t={};n=e.match(hl);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):O(e.slice(2));return[n,t]}(t);if(r){const o=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();Tt(function(e,t){if(m(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=ml(),n}(r,l);pl(e,n,o,s)}else o&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,o,s),i[t]=void 0)}}const hl=/(?:Once|Passive|Capture)$/;let fl=0;const gl=Promise.resolve(),ml=()=>fl||(gl.then((()=>fl=0)),fl=Date.now());const vl=/^on[a-z]/;const yl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return m(t)?e=>F(t,e):t};function wl(e){e.target.composing=!0}function bl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const kl={created(e,t,n){let{modifiers:{lazy:r,trim:l,number:i}}=t;e._assign=yl(n);const o=i||n.props&&"number"===n.props.type;pl(e,r?"change":"input",(t=>{if(t.target.composing)return;let n=e.value;l&&(n=n.trim()),o&&(n=V(n)),e._assign(n)})),l&&pl(e,"change",(()=>{e.value=e.value.trim()})),r||(pl(e,"compositionstart",wl),pl(e,"compositionend",bl),pl(e,"change",bl))},mounted(e,t){let{value:n}=t;e.value=null==n?"":n},beforeUpdate(e,t,n){let{value:r,modifiers:{lazy:l,trim:i,number:o}}=t;if(e._assign=yl(n),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(l)return;if(i&&e.value.trim()===r)return;if((o||"number"===e.type)&&V(e.value)===r)return}const s=null==r?"":r;e.value!==s&&(e.value=s)}},xl={deep:!0,created(e,t,n){e._assign=yl(n),pl(e,"change",(()=>{const t=e._modelValue,n=Al(e),r=e.checked,l=e._assign;if(m(t)){const e=Y(t,n),i=-1!==e;if(r&&!i)l(t.concat(n));else if(!r&&i){const n=[...t];n.splice(e,1),l(n)}}else if(y(t)){const e=new Set(t);r?e.add(n):e.delete(n),l(e)}else l(Rl(e,r))}))},mounted:_l,beforeUpdate(e,t,n){e._assign=yl(n),_l(e,t,n)}};function _l(e,t,n){let{value:r,oldValue:l}=t;e._modelValue=r,m(r)?e.checked=Y(r,n.props.value)>-1:y(r)?e.checked=r.has(n.props.value):r!==l&&(e.checked=X(r,Rl(e,!0)))}const $l={created(e,t,n){let{value:r}=t;e.checked=X(r,n.props.value),e._assign=yl(n),pl(e,"change",(()=>{e._assign(Al(e))}))},beforeUpdate(e,t,n){let{value:r,oldValue:l}=t;e._assign=yl(n),r!==l&&(e.checked=X(r,n.props.value))}},Cl={deep:!0,created(e,t,n){let{value:r,modifiers:{number:l}}=t;const i=y(r);pl(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>l?V(Al(e)):Al(e)));e._assign(e.multiple?i?new Set(t):t:t[0])})),e._assign=yl(n)},mounted(e,t){let{value:n}=t;Sl(e,n)},beforeUpdate(e,t,n){e._assign=yl(n)},updated(e,t){let{value:n}=t;Sl(e,n)}};function Sl(e,t){const n=e.multiple;if(!n||m(t)||y(t)){for(let r=0,l=e.options.length;r<l;r++){const l=e.options[r],i=Al(l);if(n)m(t)?l.selected=Y(t,i)>-1:l.selected=t.has(i);else if(X(Al(l),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Al(e){return"_value"in e?e._value:e.value}function Rl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const El={created(e,t,n){zl(e,t,n,null,"created")},mounted(e,t,n){zl(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){zl(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){zl(e,t,n,r,"updated")}};function zl(e,t,n,r,l){const i=function(e,t){switch(e){case"SELECT":return Cl;case"TEXTAREA":return kl;default:switch(t){case"checkbox":return xl;case"radio":return $l;default:return kl}}}(e.tagName,n.props&&n.props.type)[l];i&&i(e,t,n,r)}const Ll={beforeMount(e,t,n){let{value:r}=t,{transition:l}=n;e._vod="none"===e.style.display?"":e.style.display,l&&r?l.beforeEnter(e):Il(e,r)},mounted(e,t,n){let{value:r}=t,{transition:l}=n;l&&r&&l.enter(e)},updated(e,t,n){let{value:r,oldValue:l}=t,{transition:i}=n;!r!=!l&&(i?r?(i.beforeEnter(e),Il(e,!0),i.enter(e)):i.leave(e,(()=>{Il(e,!1)})):Il(e,r))},beforeUnmount(e,t){let{value:n}=t;Il(e,n)}};function Il(e,t){e.style.display=t?e._vod:"none"}const Tl=d({patchProp:function(e,t,n,r){let l=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,a=arguments.length>8?arguments[8]:void 0;"class"===t?function(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,l):"style"===t?function(e,t,n){const r=e.style,l=k(n);if(n&&!l){if(t&&!k(t))for(const e in t)null==n[e]&&sl(r,e,"");for(const e in n)sl(r,e,n[e])}else{const i=r.display;l?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}(e,n,r):u(t)?p(t)||dl(e,t,n,r,o):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&vl.test(t)&&b(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(vl.test(t)&&k(n))return!1;return t in e}(e,t,r,l))?function(e,t,n,r,l,i,o){if("innerHTML"===t||"textContent"===t)return r&&o(r,l,i),void(e[t]=null==n?"":n);const s=e.tagName;if("value"===t&&"PROGRESS"!==s&&!s.includes("-")){e._value=n;const r=null==n?"":n;return("OPTION"===s?e.getAttribute("value"):e.value)!==r&&(e.value=r),void(null==n&&e.removeAttribute(t))}let a=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=J(n):null==n&&"string"===r?(n="",a=!0):"number"===r&&(n=0,a=!0)}try{e[t]=n}catch(e){}a&&e.removeAttribute(t)}(e,t,r,i,o,s,a):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,n,r,l){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(ul,t.slice(6,t.length)):e.setAttributeNS(ul,t,n);else{const r=Q(t);null==n||r&&!J(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,l))}},il);let jl;const Ol=function(){const e=(jl||(jl=ar(Tl))).createApp(...arguments),{mount:t}=e;return e.mount=n=>{const r=function(e){if(k(e)){return document.querySelector(e)}return e}(n);if(!r)return;const l=e._component;b(l)||l.render||l.template||(l.template=r.innerHTML),r.innerHTML="";const i=t(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},e};const Ul={"Content-Type":"application/json"},Ml=(e,t="")=>{if("object"==typeof e&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},Pl=({serverURL:e,lang:t,paths:n,type:r,signal:l})=>fetch(`${e}/article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:l}).then((e=>e.json())),Fl=({serverURL:e,lang:t,path:n,type:r,action:l})=>fetch(`${e}/article?lang=${t}`,{method:"POST",headers:Ul,body:JSON.stringify({path:n,type:r,action:l})}).then((e=>e.json())),Nl=({serverURL:e,lang:t,token:n,objectId:r,comment:l})=>fetch(`${e}/comment/${r}?lang=${t}`,{method:"PUT",headers:{...Ul,Authorization:`Bearer ${n}`},body:JSON.stringify(l)}).then((e=>e.json())).then((e=>Ml(e,"Update comment"))),Vl=e=>{try{e=decodeURI(e)}catch(e){}return e},Dl=(e="")=>e.replace(/\/$/u,""),Hl=e=>/^(https?:)?\/\//.test(e),Bl=["nick","mail","link"],Wl=e=>e.filter((e=>Bl.includes(e))),ql=["//unpkg.com/@waline/emojis@1.1.0/weibo"],Zl=["//unpkg.com/@waline/emojis/tieba/tieba_agree.png","//unpkg.com/@waline/emojis/tieba/tieba_look_down.png","//unpkg.com/@waline/emojis/tieba/tieba_sunglasses.png","//unpkg.com/@waline/emojis/tieba/tieba_pick_nose.png","//unpkg.com/@waline/emojis/tieba/tieba_awkward.png","//unpkg.com/@waline/emojis/tieba/tieba_sleep.png"],Kl=e=>new Promise(((t,n)=>{if(e.size>128e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result?.toString()||""),r.onerror=n})),Gl=e=>!0===e?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',Ql=e=>{const t=async(t,n={})=>fetch(`https://api.giphy.com/v1/gifs/${t}?${new URLSearchParams({lang:e,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...n}).toString()}`).then((e=>e.json())).then((({data:e})=>e.map((e=>({title:e.title,src:e.images.downsized_medium.url})))));return{search:e=>t("search",{q:e,offset:"0"}),default:()=>t("trending",{}),more:(e,n=0)=>t("search",{q:e,offset:n.toString()})}},Jl=new RegExp(`(${/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source}|${/</.source})|((?:${/(?:^|\s)\/\/(.+?)$/gm.source})|(?:${/\/\*([\S\s]*?)\*\//gm.source}))`,"gmi"),Xl=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],Yl={},ei=e=>{let t=0;return e.replace(Jl,((e,n,r)=>{if(r)return`<span style="color: slategray">${r}</span>`;if("<"===n)return"&lt;";let l;Yl[n]?l=Yl[n]:(l=Xl[t],Yl[n]=l);const i=`<span style="color: #${l}">${n}</span>`;return t=++t%Xl.length,i}))},ti=["nick","nickError","mail","mailError","link","optional","placeholder","sofa","submit","like","cancelLike","reply","cancelReply","comment","refresh","more","preview","emoji","uploadImage","seconds","minutes","hours","days","now","uploading","login","logout","admin","sticky","word","wordHint","anonymous","level0","level1","level2","level3","level4","level5","gif","gifSearchPlaceholder","profile","approved","waiting","spam","unsticky","oldest","latest","hottest","reactionTitle"],ni=e=>Object.fromEntries(e.map(((e,t)=>[ti[t],e])));var ri=ni(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Like","Cancel like","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words","Please input comments between $0 and $1 words!\n Current word number: $2","Anonymous","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF","Profile","Approved","Waiting","Spam","Unsticky","Oldest","Latest","Hottest","What do you think?"]),li=ni(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),ii=ni(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Like","Cancel like","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras","Favor enviar comentário com $0 a $1 palavras!\n Número de palavras atuais: $2","Anônimo","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Pesquisar GIF","informação pessoal","Aprovado","Espera","Spam","Unsticky","Mais velho","Mais recentes","Mais quente","O que você acha?"]),oi=ni(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова","Пожалуйста, введите комментарии от $0 до $1 слов!\nНомер текущего слова: $2","Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),si=ni(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),ai=ni(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字","留言字數應在 $0 到 $1 字之間!\n目前字數:$2","匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const ci={zh:si,"zh-cn":si,"zh-CN":si,"zh-tw":ai,"zh-TW":ai,en:ri,"en-US":ri,"en-us":ri,jp:li,ja:li,"jp-jp":li,"jp-JP":li,"pt-br":ii,"pt-BR":ii,ru:oi,"ru-ru":oi,"ru-RU":oi},ui=e=>{const t=Dl(e);return Hl(t)?t:`https://${t}`},pi=e=>Array.isArray(e)?e:!!e&&[0,e],di=(e,t)=>"function"==typeof e?e:!1!==e&&t,hi="{--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}",fi=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},gi=(e,t,n)=>{if(!e)return"";const r="string"==typeof e?new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e):e,l=t.getTime()-r.getTime(),i=Math.floor(l/864e5);if(0===i){const e=l%864e5,t=Math.floor(e/36e5);if(0===t){const t=e%36e5,r=Math.floor(t/6e4);if(0===r){const e=t%6e4;return`${Math.round(e/1e3)} ${n.seconds}`}return`${r} ${n.minutes}`}return`${t} ${n.hours}`}return i<0?n.now:i<8?`${i} ${n.days}`:(e=>{const t=fi(e.getDate(),2),n=fi(e.getMonth()+1,2);return`${fi(e.getFullYear(),2)}-${n}-${t}`})(r)},mi=/^[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])?)*$/;function vi(e){return!!le()&&(function(e){ne&&ne.cleanups.push(e)}(e),!0)}function yi(e){return"function"==typeof e?e():Rt(e)}const wi="undefined"!=typeof window&&"undefined"!=typeof document,bi=Object.prototype.toString,ki=e=>"[object Object]"===bi.call(e),xi=()=>{};function _i(e,t){return function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return new Promise(((n,l)=>{Promise.resolve(e((()=>t.apply(this,r)),{fn:t,thisArg:this,args:r})).then(n).catch(l)}))}}const $i=e=>e();function Ci(e){return _i(function(e){let t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=xi;const i=e=>{clearTimeout(e),l(),l=xi};return o=>{const s=yi(e),a=yi(r.maxWait);return t&&i(t),s<=0||void 0!==a&&a<=0?(n&&(i(n),n=null),Promise.resolve(o())):new Promise(((e,c)=>{l=r.rejectOnCancel?c:e,a&&!n&&(n=setTimeout((()=>{t&&i(t),n=null,e(o())}),a)),t=setTimeout((()=>{n&&i(n),n=null,e(o())}),s)}))}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),e)}function Si(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{eventFilter:r,...l}=n,{eventFilter:i,pause:o,resume:s,isActive:a}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$i;const t=$t(!0);return{isActive:pt(t),pause:function(){t.value=!1},resume:function(){t.value=!0},eventFilter:function(){t.value&&e(...arguments)}}}(r),c=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{eventFilter:r=$i,...l}=n;return pn(e,_i(r,t),l)}(e,t,{...l,eventFilter:i});return{stop:c,pause:o,resume:s,isActive:a}}function Ai(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Nr()?bn(e):t?e():Bt(e)}function Ri(e){var t;const n=yi(e);return null!=(t=null==n?void 0:n.$el)?t:n}const Ei=wi?window:void 0,zi=wi?window.document:void 0;function Li(){let e,t,n,r;for(var l=arguments.length,i=new Array(l),o=0;o<l;o++)i[o]=arguments[o];if("string"==typeof i[0]||Array.isArray(i[0])?([t,n,r]=i,e=Ei):[e,t,n,r]=i,!e)return xi;Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);const s=[],a=()=>{s.forEach((e=>e())),s.length=0},c=pn((()=>[Ri(e),yi(r)]),(e=>{let[r,l]=e;if(a(),!r)return;const i=ki(l)?{...l}:l;s.push(...t.flatMap((e=>n.map((t=>((e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)))(r,e,t,i))))))}),{immediate:!0,flush:"post"}),u=()=>{c(),a()};return vi(u),u}const Ii="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Ti="__vueuse_ssr_handlers__",ji=Oi();function Oi(){return Ti in Ii||(Ii[Ti]=Ii[Ti]||{}),Ii[Ti]}const Ui={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()}},Mi="vueuse-storage";function Pi(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var l;const{flush:i="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:p=Ei,eventFilter:d,onError:h=(e=>{console.error(e)})}=r,f=(u?Ct:$t)(t);if(!n)try{n=function(e,t){return ji[e]||t}("getDefaultStorage",(()=>{var e;return null==(e=Ei)?void 0:e.localStorage}))()}catch(e){h(e)}if(!n)return f;const g=yi(t),m=function(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"object"==typeof e?"object":Number.isNaN(e)?"any":"number"}(g),v=null!=(l=r.serializer)?l:Ui[m],{pause:y,resume:w}=Si(f,(()=>function(t){try{if(null==t)n.removeItem(e);else{const r=v.write(t),l=n.getItem(e);l!==r&&(n.setItem(e,r),p&&p.dispatchEvent(new CustomEvent(Mi,{detail:{key:e,oldValue:l,newValue:r,storageArea:n}})))}}catch(e){h(e)}}(f.value)),{flush:i,deep:o,eventFilter:d});return p&&s&&(Li(p,"storage",b),Li(p,Mi,(function(e){b(e.detail)}))),b(),f;function b(t){if(!t||t.storageArea===n)if(t&&null==t.key)f.value=g;else if(!t||t.key===e){y();try{(null==t?void 0:t.newValue)!==v.write(f.value)&&(f.value=function(t){const r=t?t.newValue:n.getItem(e);if(null==r)return a&&null!==g&&n.setItem(e,v.write(g)),g;if(!t&&c){const e=v.read(r);return"function"==typeof c?c(e,g):"object"!==m||Array.isArray(e)?e:{...g,...e}}return"string"!=typeof r?r:v.read(r)}(t))}catch(e){h(e)}finally{t?Bt(w):w()}}}}function Fi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=$t(new Date),l=()=>r.value=new Date,i="requestAnimationFrame"===n?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{immediate:n=!0,window:r=Ei}=t,l=$t(!1);let i=0,o=null;function s(t){l.value&&r&&(e({delta:t-(i||t),timestamp:t}),i=t,o=r.requestAnimationFrame(s))}function a(){!l.value&&r&&(l.value=!0,o=r.requestAnimationFrame(s))}function c(){l.value=!1,null!=o&&r&&(r.cancelAnimationFrame(o),o=null)}return n&&a(),vi(c),{isActive:pt(l),pause:c,resume:a}}(l,{immediate:!0}):function(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:r=!0,immediateCallback:l=!1}=n;let i=null;const o=$t(!1);function s(){i&&(clearInterval(i),i=null)}function a(){o.value=!1,s()}function c(){const n=yi(t);n<=0||(o.value=!0,l&&e(),s(),i=setInterval(e,n))}r&&wi&&c(),(_t(t)||"function"==typeof t)&&vi(pn(t,(()=>{o.value&&wi&&c()})));return vi(a),{isActive:o,pause:a,resume:c}}(l,n,{immediate:!0});return t?{now:r,...i}:r}function Ni(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xi,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{immediate:r=!0,manual:l=!1,type:i="text/javascript",async:o=!0,crossOrigin:s,referrerPolicy:a,noModule:c,defer:u,document:p=zi,attrs:d={}}=n,h=$t(null);let f=null;const g=function(){return f||(f=(n=>new Promise(((r,l)=>{const f=e=>(h.value=e,r(e),e);if(!p)return void r(!1);let g=!1,m=p.querySelector(`script[src="${yi(e)}"]`);m?m.hasAttribute("data-loaded")&&f(m):(m=p.createElement("script"),m.type=i,m.async=o,m.src=yi(e),u&&(m.defer=u),s&&(m.crossOrigin=s),c&&(m.noModule=c),a&&(m.referrerPolicy=a),Object.entries(d).forEach((e=>{let[t,n]=e;return null==m?void 0:m.setAttribute(t,n)})),g=!0),m.addEventListener("error",(e=>l(e))),m.addEventListener("abort",(e=>l(e))),m.addEventListener("load",(()=>{m.setAttribute("data-loaded","true"),t(m),f(m)})),g&&(m=p.head.appendChild(m)),n||f(m)})))(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])),f},m=()=>{if(!p)return;f=null,h.value&&(h.value=null);const t=p.querySelector(`script[src="${yi(e)}"]`);t&&p.head.removeChild(t)};var v;return r&&!l&&Ai(g),l||(v=m,Nr()&&xn(v)),{scriptTag:h,load:g,unload:m}}let Vi=0;const Di=e=>{const t=Pi("WALINE_EMOJI",{}),n=Boolean(/@[0-9]+\.[0-9]+\.[0-9]+/.test(e));if(n){const n=t.value[e];if(n)return Promise.resolve(n)}return fetch(`${e}/info.json`).then((e=>e.json())).then((r=>{const l={folder:e,...r};return n&&(t.value[e]=l),l}))},Hi=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,Bi=e=>{"AbortError"!==e.name&&console.error(e.message)},Wi=e=>e.type.includes("image"),qi=e=>{const t=Array.from(e).find(Wi);return t?t.getAsFile():null};function Zi(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let Ki={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const Gi=/[&<>"']/,Qi=new RegExp(Gi.source,"g"),Ji=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Xi=new RegExp(Ji.source,"g"),Yi={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},eo=e=>Yi[e];function to(e,t){if(t){if(Gi.test(e))return e.replace(Qi,eo)}else if(Ji.test(e))return e.replace(Xi,eo);return e}const no=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function ro(e){return e.replace(no,((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 lo=/(^|[^\[])\^/g;function io(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(lo,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const oo=/[^\w:]/g,so=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ao(e,t,n){if(e){let e;try{e=decodeURIComponent(ro(n)).replace(oo,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!so.test(n)&&(n=function(e,t){co[" "+e]||(uo.test(e)?co[" "+e]=e+"/":co[" "+e]=mo(e,"/",!0));e=co[" "+e];const n=-1===e.indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(po,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(ho,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const co={},uo=/^[^:]+:\/*[^/]*$/,po=/^([^:]+:)[\s\S]*$/,ho=/^([^:]+:\/*[^/]*)[\s\S]*$/;const fo={exec:function(){}};function go(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let r=!1,l=t;for(;--l>=0&&"\\"===n[l];)r=!r;return r?"|":" |"})).split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function mo(e,t,n){const r=e.length;if(0===r)return"";let l=0;for(;l<r;){const i=e.charAt(r-l-1);if(i!==t||n){if(i===t||!n)break;l++}else l++}return e.slice(0,r-l)}function vo(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function yo(e,t,n,r){const l=t.href,i=t.title?to(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:l,title:i,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,e}return{type:"image",raw:n,href:l,title:i,text:to(o)}}class wo{constructor(e){this.options=e||Ki}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:mo(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):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=mo(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,""),n=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(e);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:r,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,l,i,o,s,a,c,u,p,d,h,f=t[1].trim();const g=f.length>1,m={type:"list",raw:"",ordered:g,start:g?+f.slice(0,-1):"",loose:!1,items:[]};f=g?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=g?f:"[*+-]");const v=new RegExp(`^( {0,3}${f})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(h=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),u=e.split("\n",1)[0],this.options.pedantic?(i=2,d=c.trimLeft()):(i=t[2].search(/[^ ]/),i=i>4?1:i,d=c.slice(i),i+=t[1].length),s=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),h=!0),!h){const t=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),r=new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),l=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),o=new RegExp(`^ {0,${Math.min(3,i-1)}}#`);for(;e&&(p=e.split("\n",1)[0],u=p,this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!l.test(u))&&!o.test(u)&&!t.test(u)&&!r.test(e);){if(u.search(/[^ ]/)>=i||!u.trim())d+="\n"+u.slice(i);else{if(s)break;if(c.search(/[^ ]/)>=4)break;if(l.test(c))break;if(o.test(c))break;if(r.test(c))break;d+="\n"+u}s||u.trim()||(s=!0),n+=p+"\n",e=e.substring(p.length+1),c=u.slice(i)}}m.loose||(a?m.loose=!0:/\n *\n *$/.test(n)&&(a=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(d),r&&(l="[ ] "!==r[0],d=d.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!r,checked:l,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(o=0;o<y;o++)if(this.lexer.state.top=!1,m.items[o].tokens=this.lexer.blockTokens(m.items[o].text,[]),!m.loose){const e=m.items[o].tokens.filter((e=>"space"===e.type)),t=e.length>0&&e.some((e=>/\n.*\n/.test(e.raw)));m.loose=t}if(m.loose)for(o=0;o<y;o++)m.items[o].loose=!0;return m}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){const n=this.options.sanitizer?this.options.sanitizer(t[0]):to(t[0]);e.type="paragraph",e.text=n,e.tokens=this.lexer.inline(n)}return e}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:go(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,r,l,i,o=e.align.length;for(n=0;n<o;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(o=e.rows.length,n=0;n<o;n++)e.rows[n]=go(e.rows[n],e.header.length).map((e=>({text:e})));for(o=e.header.length,r=0;r<o;r++)e.header[r].tokens=this.lexer.inline(e.header[r].text);for(o=e.rows.length,r=0;r<o;r++)for(i=e.rows[r],l=0;l<i.length;l++)i[l].tokens=this.lexer.inline(i[l].text);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:to(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):to(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=mo(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,l=0;for(;l<n;l++)if("\\"===e[l])l++;else if(e[l]===t[0])r++;else if(e[l]===t[1]&&(r--,r<0))return l;return-1}(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),yo(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return yo(n,e,n[0],this.lexer)}}emStrong(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;const l=r[1]||r[2]||"";if(!l||l&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let l,i,o=n,s=0;const a="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=a.exec(t));){if(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!l)continue;if(i=l.length,r[3]||r[4]){o+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){s+=i;continue}if(o-=i,o>0)continue;i=Math.min(i,i+o+s);const t=e.slice(0,n+r.index+(r[0].length-l.length)+i);if(Math.min(n,i)%2){const e=t.slice(1,-1);return{type:"em",raw:t,text:e,tokens:this.lexer.inlineTokens(e)}}const a=t.slice(2,-2);return{type:"strong",raw:t,text:a,tokens:this.lexer.inlineTokens(a)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=to(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,r;return"@"===n[2]?(e=to(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=to(n[1]),r=e),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=to(this.options.mangle?t(n[0]):n[0]),r="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=to(n[0]),r="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):to(n[0]):n[0]:to(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const bo={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:fo,lheading:/^((?:.|\n(?!\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?'|\([^()]*\))/};bo.def=io(bo.def).replace("label",bo._label).replace("title",bo._title).getRegex(),bo.bullet=/(?:[*+-]|\d{1,9}[.)])/,bo.listItemStart=io(/^( *)(bull) */).replace("bull",bo.bullet).getRegex(),bo.list=io(bo.list).replace(/bull/g,bo.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+bo.def.source+")").getRegex(),bo._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",bo._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,bo.html=io(bo.html,"i").replace("comment",bo._comment).replace("tag",bo._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),bo.paragraph=io(bo._paragraph).replace("hr",bo.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bo._tag).getRegex(),bo.blockquote=io(bo.blockquote).replace("paragraph",bo.paragraph).getRegex(),bo.normal={...bo},bo.gfm={...bo.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},bo.gfm.table=io(bo.gfm.table).replace("hr",bo.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bo._tag).getRegex(),bo.gfm.paragraph=io(bo._paragraph).replace("hr",bo.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",bo.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bo._tag).getRegex(),bo.pedantic={...bo.normal,html:io("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",bo._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:fo,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:io(bo.normal._paragraph).replace("hr",bo.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",bo.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const ko={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:fo,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:fo,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function xo(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function _o(e){let t,n,r="";const l=e.length;for(t=0;t<l;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}ko._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",ko.punctuation=io(ko.punctuation).replace(/punctuation/g,ko._punctuation).getRegex(),ko.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,ko.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,ko._comment=io(bo._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),ko.emStrong.lDelim=io(ko.emStrong.lDelim).replace(/punct/g,ko._punctuation).getRegex(),ko.emStrong.rDelimAst=io(ko.emStrong.rDelimAst,"g").replace(/punct/g,ko._punctuation).getRegex(),ko.emStrong.rDelimUnd=io(ko.emStrong.rDelimUnd,"g").replace(/punct/g,ko._punctuation).getRegex(),ko._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ko._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ko._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])?)+(?![-_])/,ko.autolink=io(ko.autolink).replace("scheme",ko._scheme).replace("email",ko._email).getRegex(),ko._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ko.tag=io(ko.tag).replace("comment",ko._comment).replace("attribute",ko._attribute).getRegex(),ko._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ko._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,ko._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ko.link=io(ko.link).replace("label",ko._label).replace("href",ko._href).replace("title",ko._title).getRegex(),ko.reflink=io(ko.reflink).replace("label",ko._label).replace("ref",bo._label).getRegex(),ko.nolink=io(ko.nolink).replace("ref",bo._label).getRegex(),ko.reflinkSearch=io(ko.reflinkSearch,"g").replace("reflink",ko.reflink).replace("nolink",ko.nolink).getRegex(),ko.normal={...ko},ko.pedantic={...ko.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:io(/^!?\[(label)\]\((.*?)\)/).replace("label",ko._label).getRegex(),reflink:io(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ko._label).getRegex()},ko.gfm={...ko.normal,escape:io(ko.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},ko.gfm.url=io(ko.gfm.url,"i").replace("email",ko.gfm._extended_email).getRegex(),ko.breaks={...ko.gfm,br:io(ko.br).replace("{2,}","*").getRegex(),text:io(ko.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};class $o{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Ki,this.options.tokenizer=this.options.tokenizer||new wo,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:bo.normal,inline:ko.normal};this.options.pedantic?(t.block=bo.pedantic,t.inline=ko.pedantic):this.options.gfm&&(t.block=bo.gfm,this.options.breaks?t.inline=ko.breaks:t.inline=ko.gfm),this.tokenizer.rules=t}static get rules(){return{block:bo,inline:ko}}static lex(e,t){return new $o(t).lex(e)}static lexInline(e,t){return new $o(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e){let t,n,r,l,i=arguments.length>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,i))&&(e=e.substring(t.raw.length),i.push(t),!0)))))if(t=this.tokenizer.space(e))e=e.substring(t.raw.length),1===t.raw.length&&i.length>0?i[i.length-1].raw+="\n":i.push(t);else if(t=this.tokenizer.code(e))e=e.substring(t.raw.length),n=i[i.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?i.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),i.push(t);else if(t=this.tokenizer.heading(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.hr(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.blockquote(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.list(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.html(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.def(e))e=e.substring(t.raw.length),n=i[i.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),i.push(t);else if(t=this.tokenizer.lheading(e))e=e.substring(t.raw.length),i.push(t);else{if(r=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let l;this.options.extensions.startBlock.forEach((function(e){l=e.call({lexer:this},n),"number"==typeof l&&l>=0&&(t=Math.min(t,l))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(t=this.tokenizer.paragraph(r)))n=i[i.length-1],l&&"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):i.push(t),l=r.length!==e.length,e=e.substring(t.raw.length);else if(t=this.tokenizer.text(e))e=e.substring(t.raw.length),n=i[i.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):i.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,i}inline(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e){let t,n,r,l,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(l=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,l.index)+"["+vo("a",l[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(l=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,l.index)+"["+vo("a",l[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(l=this.tokenizer.rules.inline.escapedEmSt.exec(a));)a=a.slice(0,l.index+l[0].length-2)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(i||(o=""),i=!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,a,o))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,_o))e=e.substring(t.raw.length),s.push(t);else if(this.state.inLink||!(t=this.tokenizer.url(e,_o))){if(r=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let l;this.options.extensions.startInline.forEach((function(e){l=e.call({lexer:this},n),"number"==typeof l&&l>=0&&(t=Math.min(t,l))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(t=this.tokenizer.inlineText(r,xo))e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(o=t.raw.slice(-1)),i=!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 Co{constructor(e){this.options=e||Ki}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+to(r)+'">'+(n?e:to(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:to(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>\n${e}</blockquote>\n`}html(e){return e}heading(e,t,n,r){if(this.options.headerIds){return`<h${t} id="${this.options.headerPrefix+r.slug(n)}">${e}</h${t}>\n`}return`<h${t}>${e}</h${t}>\n`}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return`<li>${e}</li>\n`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>\n`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr>\n${e}</tr>\n`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>\n`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){if(null===(e=ao(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+e+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=ao(this.options.sanitize,this.options.baseUrl,e)))return n;let r=`<img src="${e}" alt="${n}"`;return t&&(r+=` title="${t}"`),r+=this.options.xhtml?"/>":">",r}text(e){return e}}class So{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 Ao{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class Ro{constructor(e){this.options=e||Ki,this.options.renderer=this.options.renderer||new Co,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new So,this.slugger=new Ao}static parse(e,t){return new Ro(t).parse(e)}static parseInline(e,t){return new Ro(t).parseInline(e)}parse(e){let t,n,r,l,i,o,s,a,c,u,p,d,h,f,g,m,v,y,w,b=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],k="";const x=e.length;for(t=0;t<x;t++)if(u=e[t],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[u.type]&&(w=this.options.extensions.renderers[u.type].call({parser:this},u),!1!==w||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type)))k+=w||"";else switch(u.type){case"space":continue;case"hr":k+=this.renderer.hr();continue;case"heading":k+=this.renderer.heading(this.parseInline(u.tokens),u.depth,ro(this.parseInline(u.tokens,this.textRenderer)),this.slugger);continue;case"code":k+=this.renderer.code(u.text,u.lang,u.escaped);continue;case"table":for(a="",s="",l=u.header.length,n=0;n<l;n++)s+=this.renderer.tablecell(this.parseInline(u.header[n].tokens),{header:!0,align:u.align[n]});for(a+=this.renderer.tablerow(s),c="",l=u.rows.length,n=0;n<l;n++){for(o=u.rows[n],s="",i=o.length,r=0;r<i;r++)s+=this.renderer.tablecell(this.parseInline(o[r].tokens),{header:!1,align:u.align[r]});c+=this.renderer.tablerow(s)}k+=this.renderer.table(a,c);continue;case"blockquote":c=this.parse(u.tokens),k+=this.renderer.blockquote(c);continue;case"list":for(p=u.ordered,d=u.start,h=u.loose,l=u.items.length,c="",n=0;n<l;n++)g=u.items[n],m=g.checked,v=g.task,f="",g.task&&(y=this.renderer.checkbox(m),h?g.tokens.length>0&&"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),c+=this.renderer.listitem(f,v,m);k+=this.renderer.list(c,p,d);continue;case"html":k+=this.renderer.html(u.text);continue;case"paragraph":k+=this.renderer.paragraph(this.parseInline(u.tokens));continue;case"text":for(c=u.tokens?this.parseInline(u.tokens):u.text;t+1<x&&"text"===e[t+1].type;)u=e[++t],c+="\n"+(u.tokens?this.parseInline(u.tokens):u.text);k+=b?this.renderer.paragraph(c):c;continue;default:{const e='Token with "'+u.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return k}parseInline(e,t){t=t||this.renderer;let n,r,l,i="";const o=e.length;for(n=0;n<o;n++)if(r=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(l=this.options.extensions.renderers[r.type].call({parser:this},r),!1!==l||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))i+=l||"";else switch(r.type){case"escape":case"text":i+=t.text(r.text);break;case"html":i+=t.html(r.text);break;case"link":i+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":i+=t.image(r.href,r.title,r.text);break;case"strong":i+=t.strong(this.parseInline(r.tokens,t));break;case"em":i+=t.em(this.parseInline(r.tokens,t));break;case"codespan":i+=t.codespan(r.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(r.tokens,t));break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return i}}class Eo{constructor(e){this.options=e||Ki}static passThroughHooks=new Set(["preprocess","postprocess"]);preprocess(e){return e}postprocess(e){return e}}function zo(e,t){return(n,r,l)=>{"function"==typeof r&&(l=r,r=null);const i={...r},o=function(e,t,n){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+to(r.message+"",!0)+"</pre>";return t?Promise.resolve(e):n?void n(null,e):e}if(t)return Promise.reject(r);if(!n)throw r;n(r)}}((r={...Lo.defaults,...i}).silent,r.async,l);if(null==n)return o(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(r),r.hooks&&(r.hooks.options=r),l){const i=r.highlight;let s;try{r.hooks&&(n=r.hooks.preprocess(n)),s=e(n,r)}catch(e){return o(e)}const a=function(e){let n;if(!e)try{r.walkTokens&&Lo.walkTokens(s,r.walkTokens),n=t(s,r),r.hooks&&(n=r.hooks.postprocess(n))}catch(t){e=t}return r.highlight=i,e?o(e):l(null,n)};if(!i||i.length<3)return a();if(delete r.highlight,!s.length)return a();let c=0;return Lo.walkTokens(s,(function(e){"code"===e.type&&(c++,setTimeout((()=>{i(e.text,e.lang,(function(t,n){if(t)return a(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),c--,0===c&&a()}))}),0))})),void(0===c&&a())}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then((t=>e(t,r))).then((e=>r.walkTokens?Promise.all(Lo.walkTokens(e,r.walkTokens)).then((()=>e)):e)).then((e=>t(e,r))).then((e=>r.hooks?r.hooks.postprocess(e):e)).catch(o);try{r.hooks&&(n=r.hooks.preprocess(n));const l=e(n,r);r.walkTokens&&Lo.walkTokens(l,r.walkTokens);let i=t(l,r);return r.hooks&&(i=r.hooks.postprocess(i)),i}catch(e){return o(e)}}}function Lo(e,t,n){return zo($o.lex,Ro.parse)(e,t,n)}Lo.options=Lo.setOptions=function(e){var t;return Lo.defaults={...Lo.defaults,...e},t=Lo.defaults,Ki=t,Lo},Lo.getDefaults=Zi,Lo.defaults=Ki,Lo.use=function(){const e=Lo.defaults.extensions||{renderers:{},childTokens:{}};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach((t=>{const n={...t};if(n.async=Lo.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach((t=>{if(!t.name)throw new Error("extension name required");if(t.renderer){const n=e.renderers[t.name];e.renderers[t.name]=n?function(){for(var e=arguments.length,r=new Array(e),l=0;l<e;l++)r[l]=arguments[l];let i=t.renderer.apply(this,r);return!1===i&&(i=n.apply(this,r)),i}:t.renderer}if(t.tokenizer){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");e[t.level]?e[t.level].unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}t.childTokens&&(e.childTokens[t.name]=t.childTokens)})),n.extensions=e),t.renderer){const e=Lo.defaults.renderer||new Co;for(const n in t.renderer){const r=e[n];e[n]=function(){for(var l=arguments.length,i=new Array(l),o=0;o<l;o++)i[o]=arguments[o];let s=t.renderer[n].apply(e,i);return!1===s&&(s=r.apply(e,i)),s}}n.renderer=e}if(t.tokenizer){const e=Lo.defaults.tokenizer||new wo;for(const n in t.tokenizer){const r=e[n];e[n]=function(){for(var l=arguments.length,i=new Array(l),o=0;o<l;o++)i[o]=arguments[o];let s=t.tokenizer[n].apply(e,i);return!1===s&&(s=r.apply(e,i)),s}}n.tokenizer=e}if(t.hooks){const e=Lo.defaults.hooks||new Eo;for(const n in t.hooks){const r=e[n];Eo.passThroughHooks.has(n)?e[n]=l=>{if(Lo.defaults.async)return Promise.resolve(t.hooks[n].call(e,l)).then((t=>r.call(e,t)));const i=t.hooks[n].call(e,l);return r.call(e,i)}:e[n]=function(){for(var l=arguments.length,i=new Array(l),o=0;o<l;o++)i[o]=arguments[o];let s=t.hooks[n].apply(e,i);return!1===s&&(s=r.apply(e,i)),s}}n.hooks=e}if(t.walkTokens){const e=Lo.defaults.walkTokens;n.walkTokens=function(n){let r=[];return r.push(t.walkTokens.call(this,n)),e&&(r=r.concat(e.call(this,n))),r}}Lo.setOptions(n)}))},Lo.walkTokens=function(e,t){let n=[];for(const r of e)switch(n=n.concat(t.call(Lo,r)),r.type){case"table":for(const e of r.header)n=n.concat(Lo.walkTokens(e.tokens,t));for(const e of r.rows)for(const r of e)n=n.concat(Lo.walkTokens(r.tokens,t));break;case"list":n=n.concat(Lo.walkTokens(r.items,t));break;default:Lo.defaults.extensions&&Lo.defaults.extensions.childTokens&&Lo.defaults.extensions.childTokens[r.type]?Lo.defaults.extensions.childTokens[r.type].forEach((function(e){n=n.concat(Lo.walkTokens(r[e],t))})):r.tokens&&(n=n.concat(Lo.walkTokens(r.tokens,t)))}return n},Lo.parseInline=zo($o.lexInline,Ro.parseInline),Lo.Parser=Ro,Lo.parser=Ro.parse,Lo.Renderer=Co,Lo.TextRenderer=So,Lo.Lexer=$o,Lo.lexer=$o.lex,Lo.Tokenizer=wo,Lo.Slugger=Ao,Lo.Hooks=Eo,Lo.parse=Lo;const Io=/\$.*?\$/,To=/^\$(.*?)\$/,jo=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,Oo=(e="",t={})=>e.replace(/:(.+?):/g,((e,n)=>t[n]?`<img class="wl-emoji" src="${t[n]}" alt="${n}">`:e)),Uo=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{if(Lo.setOptions({highlight:n||void 0,breaks:!0,smartLists:!0,smartypants:!0}),r){const e=(e=>[{name:"blockMath",level:"block",tokenizer(t){const n=jo.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(Io);return-1!==t?t:e.length},tokenizer(t){const n=To.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}}])(r);Lo.use({extensions:e})}return Lo.parse(Oo(e,t))},Mo=e=>e.dataset.path||e.getAttribute("id"),Po=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r=navigator.language})=>{const l=new AbortController,i=document.querySelectorAll(n);return i.length&&(({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${e}/comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then((e=>e.json())).then((e=>Array.isArray(e)?e:[e])))({serverURL:ui(e),paths:Array.from(i).map((e=>Vl(e.dataset.path||e.getAttribute("id")||t))),lang:r,signal:l.signal}).then((e=>{i.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch(Bi),l.abort.bind(l)},Fo=({size:e})=>Yr("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[Yr("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"}),Yr("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"})]),No=()=>Yr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Yr("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"})),Vo=()=>Yr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Yr("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"})),Do=()=>Yr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Yr("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"}),Yr("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"})]),Ho=({active:e=!1})=>Yr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Yr("path",{d:"M850.654 323.804c-11.042-25.625-26.862-48.532-46.885-68.225-20.022-19.61-43.258-34.936-69.213-45.73-26.78-11.124-55.124-16.727-84.375-16.727-40.622 0-80.256 11.123-114.698 32.135A214.79 214.79 0 0 0 512 241.819a214.79 214.79 0 0 0-23.483-16.562c-34.442-21.012-74.076-32.135-114.698-32.135-29.25 0-57.595 5.603-84.375 16.727-25.872 10.711-49.19 26.12-69.213 45.73-20.105 19.693-35.843 42.6-46.885 68.225-11.453 26.615-17.303 54.877-17.303 83.963 0 27.439 5.603 56.03 16.727 85.117 9.31 24.307 22.659 49.52 39.715 74.981 27.027 40.293 64.188 82.316 110.33 124.915 76.465 70.615 152.189 119.394 155.402 121.371l19.528 12.525c8.652 5.52 19.776 5.52 28.427 0l19.529-12.525c3.213-2.06 78.854-50.756 155.401-121.371 46.143-42.6 83.304-84.622 110.33-124.915 17.057-25.46 30.487-50.674 39.716-74.981 11.124-29.087 16.727-57.678 16.727-85.117.082-29.086-5.768-57.348-17.221-83.963z"+(e?"":"M512 761.5S218.665 573.55 218.665 407.767c0-83.963 69.461-152.023 155.154-152.023 60.233 0 112.473 33.618 138.181 82.727 25.708-49.109 77.948-82.727 138.18-82.727 85.694 0 155.155 68.06 155.155 152.023C805.335 573.551 512 761.5 512 761.5z"),fill:e?"red":"currentColor"})]),Bo=()=>Yr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Yr("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"}),Yr("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"})]),Wo=()=>Yr("svg",{width:"16",height:"16",ariaHidden:"true"},Yr("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"})),qo=()=>Yr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Yr("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"})),Zo=()=>Yr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Yr("path",{d:"M813.039 318.772L480.53 651.278H360.718V531.463L693.227 198.961C697.904 194.284 704.027 192 710.157 192C716.302 192 722.436 194.284 727.114 198.961L813.039 284.88C817.72 289.561 820 295.684 820 301.825C820 307.95 817.72 314.093 813.039 318.772ZM710.172 261.888L420.624 551.431V591.376H460.561L750.109 301.825L710.172 261.888ZM490.517 291.845H240.906V771.09H720.156V521.479C720.156 504.947 733.559 491.529 750.109 491.529C766.653 491.529 780.063 504.947 780.063 521.479V791.059C780.063 813.118 762.18 831 740.125 831H220.937C198.882 831 181 813.118 181 791.059V271.872C181 249.817 198.882 231.935 220.937 231.935H490.517C507.06 231.935 520.47 245.352 520.47 261.888C520.47 278.424 507.06 291.845 490.517 291.845Z",fill:"currentColor"})),Ko=()=>Yr("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},Yr("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"})),Go=({size:e=100})=>Yr("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},Yr("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},Yr("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),Qo=()=>Yr("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[Yr("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"}),Yr("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"})]);let Jo=null;const Xo=()=>Jo||(Jo=Pi("WALINE_LIKE",[]));let Yo=null;const es=()=>Yo??(Yo=Pi("WALINE_REACTION",{}));var ts="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ns={},rs={},ls={},is=ts&&ts.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(l,i){function o(e){try{a(r.next(e))}catch(e){i(e)}}function s(e){try{a(r.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}a((r=r.apply(e,t||[])).next())}))},os=ts&&ts.__generator||function(e,t){var n,r,l,i,o={label:0,sent:function(){if(1&l[0])throw l[1];return l[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(l=2&i[0]?r.return:i[0]?r.throw||((l=r.return)&&l.call(r),0):r.next)&&!(l=l.call(r,i[1])).done)return l;switch(r=0,l&&(i=[2&i[0],l.value]),i[0]){case 0:case 1:l=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(l=o.trys,(l=l.length>0&&l[l.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!l||i[1]>l[0]&&i[1]<l[3])){o.label=i[1];break}if(6===i[0]&&o.label<l[1]){o.label=l[1],l=i;break}if(l&&o.label<l[2]){o.label=l[2],o.ops.push(i);break}l[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=l=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(ls,"__esModule",{value:!0}),ls.ReCaptchaInstance=void 0;var ss=function(){function e(e,t,n){this.siteKey=e,this.recaptchaID=t,this.recaptcha=n,this.styleContainer=null}return e.prototype.execute=function(e){return is(this,void 0,void 0,(function(){return os(this,(function(t){return[2,this.recaptcha.enterprise?this.recaptcha.enterprise.execute(this.recaptchaID,{action:e}):this.recaptcha.execute(this.recaptchaID,{action:e})]}))}))},e.prototype.getSiteKey=function(){return this.siteKey},e.prototype.hideBadge=function(){null===this.styleContainer&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},e.prototype.showBadge=function(){null!==this.styleContainer&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},e}();ls.ReCaptchaInstance=ss,Object.defineProperty(rs,"__esModule",{value:!0}),rs.getInstance=rs.load=void 0;var as,cs=ls;!function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"}(as||(as={}));var us=function(){function e(){}return e.load=function(t,n){if(void 0===n&&(n={}),"undefined"==typeof document)return Promise.reject(new Error("This is a library for the browser!"));if(e.getLoadingState()===as.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===as.LOADING)return t!==e.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise((function(t,n){e.successfulLoadingConsumers.push((function(e){return t(e)})),e.errorLoadingRunnable.push((function(e){return n(e)}))}));e.instanceSiteKey=t,e.setLoadingState(as.LOADING);var r=new e;return new Promise((function(l,i){r.loadScript(t,n.useRecaptchaNet||!1,n.useEnterprise||!1,n.renderParameters?n.renderParameters:{},n.customUrl).then((function(){e.setLoadingState(as.LOADED);var i=r.doExplicitRender(grecaptcha,t,n.explicitRenderParameters?n.explicitRenderParameters:{},n.useEnterprise||!1),o=new cs.ReCaptchaInstance(t,i,grecaptcha);e.successfulLoadingConsumers.forEach((function(e){return e(o)})),e.successfulLoadingConsumers=[],n.autoHideBadge&&o.hideBadge(),e.instance=o,l(o)})).catch((function(t){e.errorLoadingRunnable.forEach((function(e){return e(t)})),e.errorLoadingRunnable=[],i(t)}))}))},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return null===e.loadingState?as.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,n,r,l,i){var o=this;void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===l&&(l={}),void 0===i&&(i="");var s=document.createElement("script");s.setAttribute("recaptcha-v3-script","");var a="https://www.google.com/recaptcha/api.js";n&&(a=r?"https://recaptcha.net/recaptcha/enterprise.js":"https://recaptcha.net/recaptcha/api.js"),r&&(a="https://www.google.com/recaptcha/enterprise.js"),i&&(a=i),l.render&&(l.render=void 0);var c=this.buildQueryString(l);return s.src=a+"?render=explicit"+c,new Promise((function(t,n){s.addEventListener("load",o.waitForScriptToLoad((function(){t(s)}),r),!1),s.onerror=function(t){e.setLoadingState(as.NOT_LOADED),n(t)},document.head.appendChild(s)}))},e.prototype.buildQueryString=function(e){return Object.keys(e).length<1?"":"&"+Object.keys(e).filter((function(t){return!!e[t]})).map((function(t){return t+"="+e[t]})).join("&")},e.prototype.waitForScriptToLoad=function(t,n){var r=this;return function(){void 0===window.grecaptcha?setTimeout((function(){r.waitForScriptToLoad(t,n)}),e.SCRIPT_LOAD_DELAY):n?window.grecaptcha.enterprise.ready((function(){t()})):window.grecaptcha.ready((function(){t()}))}},e.prototype.doExplicitRender=function(e,t,n,r){var l={sitekey:t,badge:n.badge,size:n.size,tabindex:n.tabindex};return n.container?r?e.enterprise.render(n.container,l):e.render(n.container,l):r?e.enterprise.render(l):e.render(l)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();rs.load=us.load,rs.getInstance=us.getInstance,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=rs;Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=ls;Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(ns);const ps={};let ds=null;const hs=()=>ds??(ds=Pi("WALINE_USER",{})),fs={key:0,class:"wl-reaction"},gs=["textContent"],ms={class:"wl-reaction-list"},vs=["onClick"],ys={class:"wl-reaction-img"},ws=["src","alt"],bs=["textContent"],ks=["textContent"];var xs=mn({__name:"ArticleReaction",setup(e,{expose:t}){t();const n=es(),r=Bn("config"),l=$t(-1),i=$t([]),o=Xr((()=>r.value.locale)),s=Xr((()=>r.value.reaction.length>0)),a=Xr((()=>{const{reaction:e,path:t}=r.value;return e.map(((e,r)=>({icon:e,desc:o.value[`reaction${r}`],active:n.value[t]===r})))}));let c;return bn((()=>{pn((()=>[r.value.serverURL,r.value.path]),(()=>{(async()=>{if(s.value){const{serverURL:e,lang:t,path:n,reaction:l}=r.value,o=new AbortController;c=o.abort.bind(o);const s=await Pl({serverURL:e,lang:t,paths:[n],type:l.map(((e,t)=>`reaction${t}`)),signal:o.signal});if(Array.isArray(s)||"number"==typeof s)return;i.value=l.map(((e,t)=>s[`reaction${t}`]))}})()}),{immediate:!0})})),xn((()=>c?.())),(e,t)=>a.value.length?(vr(),kr("div",fs,[Rr("div",{class:"wl-reaction-title",textContent:ee(o.value.reactionTitle)},null,8,gs),Rr("ul",ms,[(vr(!0),kr(pr,null,An(a.value,(({active:e,icon:t,desc:o},s)=>(vr(),kr("li",{key:s,class:G(["wl-reaction-item",{active:e}]),onClick:e=>(async e=>{if(-1===l.value){const{serverURL:t,lang:o,path:s}=r.value,a=n.value[s];l.value=e,void 0!==a&&(await Fl({serverURL:t,lang:o,path:s,type:`reaction${a}`,action:"desc"}),i.value[a]=Math.max(i.value[a]-1,0)),a!==e&&(await Fl({serverURL:t,lang:o,path:s,type:`reaction${e}`}),i.value[e]=(i.value[e]||0)+1),a===e?delete n.value[s]:n.value[s]=e,l.value=-1}})(s)},[Rr("div",ys,[Rr("img",{src:t,alt:o},null,8,ws),l.value===s?(vr(),xr(Rt(Go),{key:0,class:"wl-reaction-loading"})):(vr(),kr("div",{key:1,class:"wl-reaction-votes",textContent:ee(i.value[s]||0)},null,8,bs))]),Rr("div",{class:"wl-reaction-text",textContent:ee(o)},null,8,ks)],10,vs)))),128))])])):Ir("v-if",!0)}}),_s=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n},$s=_s(xs,[["__file","ArticleReaction.vue"]]),Cs=new Map;function Ss(e){var t=Cs.get(e);t&&t.destroy()}function As(e){var t=Cs.get(e);t&&t.update()}var Rs=null;"undefined"==typeof window?((Rs=function(e){return e}).destroy=function(e){return e},Rs.update=function(e){return e}):((Rs=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&&!Cs.has(e)){var t,n=null,r=window.getComputedStyle(e),l=(t=e.value,function(){o({testForHeightReduction:""===t||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}),i=function(t){e.removeEventListener("autosize:destroy",i),e.removeEventListener("autosize:update",s),e.removeEventListener("input",l),window.removeEventListener("resize",s),Object.keys(t).forEach((function(n){return e.style[n]=t[n]})),Cs.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,textAlign:e.style.textAlign,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",i),e.addEventListener("autosize:update",s),e.addEventListener("input",l),window.addEventListener("resize",s),e.style.overflowX="hidden",e.style.wordWrap="break-word",Cs.set(e,{destroy:i,update:s}),s()}function o(t){var l,i,s=t.restoreTextAlign,a=void 0===s?null:s,c=t.testForHeightReduction,u=void 0===c||c,p=r.overflowY;if(0!==e.scrollHeight&&("vertical"===r.resize?e.style.resize="none":"both"===r.resize&&(e.style.resize="horizontal"),u&&(l=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach((function(e){var t=e[0],n=e[1];t.style.scrollBehavior="auto",t.scrollTop=n,t.style.scrollBehavior=null}))}}(e),e.style.height=""),i="content-box"===r.boxSizing?e.scrollHeight-(parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)):e.scrollHeight+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),"none"!==r.maxHeight&&i>parseFloat(r.maxHeight)?("hidden"===r.overflowY&&(e.style.overflow="scroll"),i=parseFloat(r.maxHeight)):"hidden"!==r.overflowY&&(e.style.overflow="hidden"),e.style.height=i+"px",a&&(e.style.textAlign=a),l&&l(),n!==i&&(e.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),n=i),p!==r.overflow&&!a)){var d=r.textAlign;"hidden"===r.overflow&&(e.style.textAlign="start"===d?"end":"start"),o({restoreTextAlign:d,testForHeightReduction:!0})}}function s(){o({testForHeightReduction:!0,restoreTextAlign:null})}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Ss),e},Rs.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],As),e});var Es=Rs;const zs=["data-index"],Ls=["src","title","onClick"];var Is=mn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e,{expose:t}){const n=e;t();let r=null;const l=$t(null),i=$t({}),o=$t([]),s=()=>{const e=Math.floor((l.value.getBoundingClientRect().width+n.gap)/(n.columnWidth+n.gap));return e>0?e:1},a=async e=>{if(e>=n.items.length)return;await Bt();const t=Array.from(l.value?.children||[]).reduce(((e,t)=>t.getBoundingClientRect().height<e.getBoundingClientRect().height?t:e));o.value[Number(t.dataset.index)].push(e),await a(e+1)},c=async(e=!1)=>{if(o.value.length===s()&&!e)return;var t;o.value=(t=s(),new Array(t).fill(null).map((()=>[])));const n=window.scrollY;await a(0),window.scrollTo({top:n})},u=e=>{i.value[e.target.src]=!0};return bn((()=>{c(!0),r=new ResizeObserver((()=>{c()})),r.observe(l.value),pn((()=>[n.items]),(()=>{i.value={},c(!0)})),pn((()=>[n.columnWidth,n.gap]),(()=>{c()}))})),kn((()=>r.unobserve(l.value))),(e,t)=>(vr(),kr("div",{ref_key:"wall",ref:l,class:"wl-gallery",style:B({gap:`${e.gap}px`})},[(vr(!0),kr(pr,null,An(o.value,((t,n)=>(vr(),kr("div",{key:n,class:"wl-gallery-column","data-index":n,style:B({gap:`${e.gap}px`})},[(vr(!0),kr(pr,null,An(t,(t=>(vr(),kr(pr,{key:t},[i.value[e.items[t].src]?Ir("v-if",!0):(vr(),xr(Rt(Go),{key:0,size:36,style:{margin:"20px auto"}})),Rr("img",{class:"wl-gallery-item",src:e.items[t].src,title:e.items[t].title,loading:"lazy",onLoad:u,onClick:n=>e.$emit("insert",`![](${e.items[t].src})`)},null,40,Ls)],64)))),128))],12,zs)))),128))],4))}}),Ts=_s(Is,[["__file","ImageWall.vue"]]);const js={class:"wl-comment"},Os={key:0,class:"wl-login-info"},Us={class:"wl-avatar"},Ms=["title"],Ps=["title"],Fs=["src"],Ns=["title","textContent"],Vs={class:"wl-panel"},Ds=["for","textContent"],Hs=["id","onUpdate:modelValue","name","type"],Bs=["placeholder"],Ws={class:"wl-preview"},qs=Rr("hr",null,null,-1),Zs=["innerHTML"],Ks={class:"wl-footer"},Gs={class:"wl-actions"},Qs={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},Js=["title"],Xs=["title"],Ys=["title"],ea=["title"],ta={class:"wl-info"},na=Rr("div",{class:"wl-captcha-container"},null,-1),ra={class:"wl-text-number"},la={key:0},ia=["textContent"],oa=["textContent"],sa=["disabled"],aa=["placeholder"],ca={key:1,class:"wl-loading"},ua={key:0,class:"wl-tab-wrapper"},pa=["title","onClick"],da=["src","alt"],ha={key:0,class:"wl-tabs"},fa=["onClick"],ga=["src","alt","title"],ma=["title"];var va=mn({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{expose:t,emit:n}){const r=e;t();const l=Bn("config"),i=Pi("WALINE_COMMENT_BOX_EDITOR",""),o=Pi("WALINE_USER_META",{nick:"",mail:"",link:""}),s=hs(),a=$t({}),c=$t(null),u=$t(null),p=$t(null),d=$t(null),h=$t(null),f=$t(null),g=$t(null),m=$t({tabs:[],map:{}}),v=$t(0),y=$t(!1),w=$t(!1),b=$t(!1),k=$t(""),x=$t(0),_=ut({loading:!0,list:[]}),$=$t(0),C=$t(!1),S=$t(""),A=$t(!1),R=$t(!1),E=Xr((()=>l.value.locale)),z=Xr((()=>Boolean(s.value?.token))),L=Xr((()=>!1!==l.value.imageUploader)),I=e=>{const t=c.value,n=t.selectionStart,r=t.selectionEnd||0,l=t.scrollTop;i.value=t.value.substring(0,n)+e+t.value.substring(r,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=l},T=e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&P()},j=e=>{const t=`![${l.value.locale.uploading} ${e.name}]()`;return I(t),Promise.resolve().then((()=>l.value.imageUploader(e))).then((n=>{i.value=i.value.replace(t,`\r\n![${e.name}](${n})`)})).catch((e=>{alert(e.message),i.value=i.value.replace(t,"")}))},O=e=>{if(e.dataTransfer?.items){const t=qi(e.dataTransfer.items);t&&L.value&&(j(t),e.preventDefault())}},U=e=>{if(e.clipboardData){const t=qi(e.clipboardData.items);t&&L.value&&j(t)}},M=()=>{const e=u.value;e.files&&L.value&&j(e.files[0]).then((()=>{e.value=""}))},P=async()=>{const{serverURL:e,lang:t,login:u,wordLimit:p,requiredMeta:d,recaptchaV3Key:h,turnstileKey:f}=l.value,g=await(async()=>{if(!navigator)return"";const{userAgentData:e}=navigator;let t=navigator.userAgent;if(!e||"Windows"!==e.platform)return t;const{platformVersion:n}=await e.getHighEntropyValues(["platformVersion"]);return n?(parseInt(n.split(".")[0])>=13&&(t=t.replace("Windows NT 10.0","Windows NT 11.0")),t):t})(),v={comment:S.value,nick:o.value.nick,mail:o.value.mail,link:o.value.link,url:l.value.path,ua:g};if(s.value?.token)v.nick=s.value.display_name,v.mail=s.value.email,v.link=s.value.url;else{if("force"===u)return;if(d.indexOf("nick")>-1&&!v.nick)return a.value.nick?.focus(),alert(E.value.nickError);if(d.indexOf("mail")>-1&&!v.mail||v.mail&&(y=v.mail,!mi.test(y)))return a.value.mail?.focus(),alert(E.value.mailError);v.nick||(v.nick=E.value.anonymous)}var y;if(v.comment){if(!C.value)return alert(E.value.wordHint.replace("$0",p[0].toString()).replace("$1",p[1].toString()).replace("$2",x.value.toString()));v.comment=Oo(v.comment,m.value.map),r.replyId&&r.rootId&&(v.pid=r.replyId,v.rid=r.rootId,v.at=r.replyUser),A.value=!0;try{h&&(v.recaptchaV3=await(e=>{const t=ps[e]??(ps[e]=ns.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:e=>t.then((t=>t.execute(e)))}})(h).execute("social")),f&&(v.turnstile=await(w=f,{execute:async e=>{const{load:t}=Ni("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await t();const n=window?.turnstile;return new Promise((t=>{n?.ready((()=>{n?.render(".wl-captcha-container",{sitekey:w,action:e,size:"compact",callback:t})}))}))}}).execute("social"));const l={serverURL:e,lang:t,token:s.value?.token,comment:v},o=await(r.edit?Nl({objectId:r.edit.objectId,...l}):(({serverURL:e,lang:t,token:n,comment:r})=>{const l={"Content-Type":"application/json"};return n&&(l.Authorization=`Bearer ${n}`),fetch(`${e}/comment?lang=${t}`,{method:"POST",headers:l,body:JSON.stringify(r)}).then((e=>e.json()))})(l));if(A.value=!1,o.errmsg)return alert(o.errmsg);n("submit",o.data),i.value="",k.value="",r.replyId&&n("cancelReply"),r.edit?.objectId&&n("cancelEdit")}catch(e){A.value=!1,alert(e.message)}var w}else c.value?.focus()},F=e=>{e.preventDefault();const{lang:t,serverURL:r}=l.value;(({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,l=window.open(`${t}/ui/login?lng=${encodeURIComponent(e)}`,"_blank",`width=450,height=450,left=${n},top=${r},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return l?.postMessage({type:"TOKEN",data:null},"*"),new Promise((e=>{const t=({data:n})=>{n&&"object"==typeof n&&"userInfo"===n.type&&n.data.token&&(l?.close(),window.removeEventListener("message",t),e(n.data))};window.addEventListener("message",t)}))})({serverURL:r,lang:t}).then((e=>{s.value=e,(e.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(e)),n("log")}))},N=()=>{s.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),n("log")},V=e=>{e.preventDefault();const{lang:t,serverURL:n}=l.value,r=(window.innerWidth-800)/2,i=(window.innerHeight-800)/2,o=new URLSearchParams({lng:t,token:s.value.token}),a=window.open(`${n}/ui/profile?${o.toString()}`,"_blank",`width=800,height=800,left=${r},top=${i},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);a?.postMessage({type:"TOKEN",data:s.value.token},"*")},D=e=>{p.value?.contains(e.target)||d.value?.contains(e.target)||(y.value=!1),h.value?.contains(e.target)||f.value?.contains(e.target)||(w.value=!1)},H=async e=>{const{scrollTop:t,clientHeight:n,scrollHeight:r}=e.target,i=(n+t)/r,o=l.value.search,s=g.value?.value||"";if(i<.9||_.loading||R.value)return;_.loading=!0;(o.more&&_.list.length?await o.more(s,_.list.length):await o.search(s)).length?_.list=[..._.list,...o.more&&_.list.length?await o.more(s,_.list.length):await o.search(s)]:R.value=!0,_.loading=!1,setTimeout((()=>{e.target.scrollTop=t}),50)},B=Ci((e=>{_.list=[],R.value=!1,H(e)}),300);pn([l,x],(([e,t])=>{const{wordLimit:n}=e;n?t<n[0]&&0!==n[0]?($.value=n[0],C.value=!1):t>n[1]?($.value=n[1],C.value=!1):($.value=n[1],C.value=!0):($.value=0,C.value=!0)}),{immediate:!0});const W=({data:e})=>{e&&"profile"===e.type&&(s.value={...s.value,...e.data},[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(s)))))};return bn((()=>{document.body.addEventListener("click",D),window.addEventListener("message",W),r.edit?.objectId&&(i.value=r.edit.orig),pn(w,(async e=>{if(!e)return;const t=l.value.search;g.value&&(g.value.value=""),_.loading=!0,_.list=t.default?await t.default():await t.search(""),_.loading=!1})),pn((()=>i.value),(e=>{const{highlighter:t,texRenderer:n}=l.value;S.value=e,k.value=Uo(e,{emojiMap:m.value.map,highlighter:t,texRenderer:n}),x.value=(e=>((e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu))(e)?.reduce(((e,t)=>e+(""===t.trim()?0:t.trim().split(/\s+/u).length)),0)||0)+((e=>e.match(/[\u4E00-\u9FD5]/gu))(e)?.length||0))(e),e?Es(c.value):Es.destroy(c.value)}),{immediate:!0}),pn((()=>l.value.emoji),(e=>{return(t=e,Promise.all(t.map((e=>"string"==typeof e?Di(Dl(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:r,icon:l,prefix:i,type:o,items:s}=e;t.tabs.push({name:n,icon:Hi(l,r,i,o),items:s.map((e=>{const n=`${i||""}${e}`;return t.map[n]=Hi(e,r,i,o),n}))})})),t}))).then((e=>{m.value=e}));var t}),{immediate:!0})})),xn((()=>{document.body.removeEventListener("click",D),window.removeEventListener("message",W)})),(e,t)=>(vr(),kr("div",js,["disable"!==Rt(l).login&&z.value&&!e.edit?.objectId?(vr(),kr("div",Os,[Rr("div",Us,[Rr("button",{type:"submit",class:"wl-logout-btn",title:E.value.logout,onClick:N},[Er(Rt(Fo),{size:14})],8,Ms),Rr("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:E.value.profile,onClick:V},[Rr("img",{src:Rt(s).avatar,alt:"avatar"},null,8,Fs)],8,Ps)]),Rr("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:E.value.profile,onClick:V,textContent:ee(Rt(s).display_name)},null,8,Ns)])):Ir("v-if",!0),Rr("div",Vs,["force"!==Rt(l).login&&Rt(l).meta.length&&!z.value?(vr(),kr("div",{key:0,class:G(["wl-header",`item${Rt(l).meta.length}`])},[(vr(!0),kr(pr,null,An(Rt(l).meta,(e=>(vr(),kr("div",{key:e,class:"wl-header-item"},[Rr("label",{for:`wl-${e}`,textContent:ee(E.value[e]+(Rt(l).requiredMeta.includes(e)||!Rt(l).requiredMeta.length?"":`(${E.value.optional})`))},null,8,Ds),fn(Rr("input",{id:`wl-${e}`,ref_for:!0,ref:t=>{t&&(a.value[e]=t)},"onUpdate:modelValue":t=>Rt(o)[e]=t,class:G(["wl-input",`wl-${e}`]),name:e,type:"mail"===e?"email":"text"},null,10,Hs),[[El,Rt(o)[e]]])])))),128))],2)):Ir("v-if",!0),fn(Rr("textarea",{id:"wl-edit",ref_key:"editorRef",ref:c,"onUpdate:modelValue":t[0]||(t[0]=e=>_t(i)?i.value=e:null),class:"wl-editor",placeholder:e.replyUser?`@${e.replyUser}`:E.value.placeholder,onKeydown:T,onDrop:O,onPaste:U},null,40,Bs),[[kl,Rt(i)]]),fn(Rr("div",Ws,[qs,Rr("h4",null,ee(E.value.preview)+":",1),Rr("div",{class:"wl-content",innerHTML:k.value},null,8,Zs)],512),[[Ll,b.value]]),Rr("div",Ks,[Rr("div",Gs,[Rr("a",Qs,[Er(Rt(Wo))]),fn(Rr("button",{ref_key:"emojiButtonRef",ref:p,type:"button",class:G(["wl-action",{active:y.value}]),title:E.value.emoji,onClick:t[1]||(t[1]=e=>y.value=!y.value)},[Er(Rt(Vo))],10,Js),[[Ll,m.value.tabs.length]]),Rt(l).search?(vr(),kr("button",{key:0,ref_key:"gifButtonRef",ref:h,type:"button",class:G(["wl-action",{active:w.value}]),title:E.value.gif,onClick:t[2]||(t[2]=e=>w.value=!w.value)},[Er(Rt(Qo))],10,Xs)):Ir("v-if",!0),Rr("input",{id:"wl-image-upload",ref_key:"imageUploadRef",ref:u,class:"upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:M},null,544),L.value?(vr(),kr("label",{key:1,for:"wl-image-upload",class:"wl-action",title:E.value.uploadImage},[Er(Rt(Do))],8,Ys)):Ir("v-if",!0),Rr("button",{type:"button",class:G(["wl-action",{active:b.value}]),title:E.value.preview,onClick:t[3]||(t[3]=e=>b.value=!b.value)},[Er(Rt(Bo))],10,ea)]),Rr("div",ta,[na,Rr("div",ra,[Lr(ee(x.value)+" ",1),Rt(l).wordLimit?(vr(),kr("span",la,[Lr("  /  "),Rr("span",{class:G({illegal:!C.value}),textContent:ee($.value)},null,10,ia)])):Ir("v-if",!0),Lr("  "+ee(E.value.word),1)]),"disable"===Rt(l).login||z.value?Ir("v-if",!0):(vr(),kr("button",{key:0,type:"button",class:"wl-btn",onClick:F,textContent:ee(E.value.login)},null,8,oa)),"force"!==Rt(l).login||z.value?(vr(),kr("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:A.value,onClick:P},[A.value?(vr(),xr(Rt(Go),{key:0,size:16})):(vr(),kr(pr,{key:1},[Lr(ee(E.value.submit),1)],64))],8,sa)):Ir("v-if",!0)]),Rr("div",{ref_key:"gifPopupRef",ref:f,class:G(["wl-gif-popup",{display:w.value}])},[Rr("input",{ref_key:"gifSearchInputRef",ref:g,type:"text",placeholder:E.value.gifSearchPlaceholder,onInput:t[4]||(t[4]=(...e)=>Rt(B)&&Rt(B)(...e))},null,40,aa),_.list.length?(vr(),xr(Ts,{key:0,items:_.list,"column-width":200,gap:6,onInsert:t[5]||(t[5]=e=>I(e)),onScroll:H},null,8,["items"])):Ir("v-if",!0),_.loading?(vr(),kr("div",ca,[Er(Rt(Go),{size:30})])):Ir("v-if",!0)],2),Rr("div",{ref_key:"emojiPopupRef",ref:d,class:G(["wl-emoji-popup",{display:y.value}])},[(vr(!0),kr(pr,null,An(m.value.tabs,((e,t)=>(vr(),kr(pr,{key:e.name},[t===v.value?(vr(),kr("div",ua,[(vr(!0),kr(pr,null,An(e.items,(e=>(vr(),kr("button",{key:e,type:"button",title:e,onClick:t=>I(`:${e}:`)},[y.value?(vr(),kr("img",{key:0,class:"wl-emoji",src:m.value.map[e],alt:e,loading:"lazy",referrerPolicy:"no-referrer"},null,8,da)):Ir("v-if",!0)],8,pa)))),128))])):Ir("v-if",!0)],64)))),128)),m.value.tabs.length>1?(vr(),kr("div",ha,[(vr(!0),kr(pr,null,An(m.value.tabs,((e,t)=>(vr(),kr("button",{key:e.name,type:"button",class:G(["wl-tab",{active:v.value===t}]),onClick:e=>v.value=t},[Rr("img",{class:"wl-emoji",src:e.icon,alt:e.name,title:e.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,ga)],10,fa)))),128))])):Ir("v-if",!0)],2)])]),e.replyId||e.edit?.objectId?(vr(),kr("button",{key:1,type:"button",class:"wl-close",title:E.value.cancelReply,onClick:t[6]||(t[6]=t=>e.$emit(e.replyId?"cancelReply":"cancelEdit"))},[Er(Rt(Fo),{size:24})],8,ma)):Ir("v-if",!0)]))}}),ya=_s(va,[["__file","CommentBox.vue"]]);const wa=["id"],ba={class:"wl-user","aria-hidden":"true"},ka=["src"],xa={class:"wl-card"},_a={class:"wl-head"},$a=["href"],Ca={key:1,class:"wl-nick"},Sa=["textContent"],Aa=["textContent"],Ra=["textContent"],Ea=["textContent"],za=["textContent"],La={class:"wl-comment-actions"},Ia=["title"],Ta=["textContent"],ja=["title"],Oa={class:"wl-meta","aria-hidden":"true"},Ua=["data-value","textContent"],Ma=["data-value","textContent"],Pa=["data-value","textContent"],Fa=["innerHTML"],Na={key:1,class:"wl-admin-actions"},Va={class:"wl-comment-status"},Da=["disabled","onClick","textContent"],Ha={key:3,class:"wl-quote"};var Ba=mn({__name:"CommentCard",props:{comment:{},edit:{default:null},rootId:{},reply:{default:null}},emits:["log","submit","delete","edit","like","status","sticky","reply"],setup(e){const t=e,n=["approved","waiting","spam"],r=Bn("config"),l=Xo(),i=Fi(),o=hs(),s=Xr((()=>r.value.locale)),a=Xr((()=>{const{link:e}=t.comment;return e?Hl(e)?e:`https://${e}`:""})),c=Xr((()=>l.value.includes(t.comment.objectId))),u=Xr((()=>gi(t.comment.insertedAt,i.value,s.value))),p=Xr((()=>"administrator"===o.value.type)),d=Xr((()=>t.comment.user_id&&o.value.objectId===t.comment.user_id)),h=Xr((()=>t.comment.objectId===t.reply?.objectId)),f=Xr((()=>t.comment.objectId===t.edit?.objectId));return(e,t)=>{const r=$n("CommentCard",!0);return vr(),kr("div",{id:e.comment.objectId,class:"wl-card-item"},[Rr("div",ba,[e.comment.avatar?(vr(),kr("img",{key:0,src:e.comment.avatar},null,8,ka)):Ir("v-if",!0),e.comment.type?(vr(),xr(Rt(Ko),{key:1})):Ir("v-if",!0)]),Rr("div",xa,[Rr("div",_a,[a.value?(vr(),kr("a",{key:0,class:"wl-nick",href:a.value,target:"_blank",rel:"nofollow noopener noreferrer"},ee(e.comment.nick),9,$a)):(vr(),kr("span",Ca,ee(e.comment.nick),1)),"administrator"===e.comment.type?(vr(),kr("span",{key:2,class:"wl-badge",textContent:ee(s.value.admin)},null,8,Sa)):Ir("v-if",!0),e.comment.label?(vr(),kr("span",{key:3,class:"wl-badge",textContent:ee(e.comment.label)},null,8,Aa)):Ir("v-if",!0),e.comment.sticky?(vr(),kr("span",{key:4,class:"wl-badge",textContent:ee(s.value.sticky)},null,8,Ra)):Ir("v-if",!0),void 0!==e.comment.level&&e.comment.level>=0?(vr(),kr("span",{key:5,class:G(`wl-badge level${e.comment.level}`),textContent:ee(s.value[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,Ea)):Ir("v-if",!0),Rr("span",{class:"wl-time",textContent:ee(u.value)},null,8,za),Rr("div",La,[p.value||d.value?(vr(),kr("button",{key:0,type:"button",class:"wl-edit",onClick:t[0]||(t[0]=()=>e.$emit("edit",e.comment))},[Er(Rt(Zo))])):Ir("v-if",!0),p.value||d.value?(vr(),kr("button",{key:1,type:"button",class:"wl-delete",onClick:t[1]||(t[1]=t=>e.$emit("delete",e.comment))},[Er(Rt(No))])):Ir("v-if",!0),Rr("button",{type:"button",class:"wl-like",title:c.value?s.value.cancelLike:s.value.like,onClick:t[2]||(t[2]=t=>e.$emit("like",e.comment))},[Er(Rt(Ho),{active:c.value},null,8,["active"]),"like"in e.comment?(vr(),kr("span",{key:0,textContent:ee(e.comment.like)},null,8,Ta)):Ir("v-if",!0)],8,Ia),Rr("button",{type:"button",class:G(["wl-reply",{active:h.value}]),title:h.value?s.value.cancelReply:s.value.reply,onClick:t[3]||(t[3]=t=>e.$emit("reply",h.value?null:e.comment))},[Er(Rt(qo))],10,ja)])]),Rr("div",Oa,[e.comment.addr?(vr(),kr("span",{key:0,class:"wl-addr","data-value":e.comment.addr,textContent:ee(e.comment.addr)},null,8,Ua)):Ir("v-if",!0),e.comment.browser?(vr(),kr("span",{key:1,class:"wl-browser","data-value":e.comment.browser,textContent:ee(e.comment.browser)},null,8,Ma)):Ir("v-if",!0),e.comment.os?(vr(),kr("span",{key:2,class:"wl-os","data-value":e.comment.os,textContent:ee(e.comment.os)},null,8,Pa)):Ir("v-if",!0)]),f.value?Ir("v-if",!0):(vr(),kr("div",{key:0,class:"wl-content",innerHTML:e.comment.comment},null,8,Fa)),p.value&&!f.value?(vr(),kr("div",Na,[Rr("span",Va,[(vr(),kr(pr,null,An(n,(t=>Rr("button",{key:t,type:"submit",class:G(`wl-btn wl-${t}`),disabled:e.comment.status===t,onClick:n=>e.$emit("status",{status:t,comment:e.comment}),textContent:ee(s.value[t])},null,10,Da))),64))]),p.value&&!e.comment.rid?(vr(),kr("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:t[4]||(t[4]=t=>e.$emit("sticky",e.comment))},ee(e.comment.sticky?s.value.unsticky:s.value.sticky),1)):Ir("v-if",!0)])):Ir("v-if",!0),h.value||f.value?(vr(),kr("div",{key:2,class:G({"wl-reply-wrapper":h.value,"wl-edit-wrapper":f.value})},[Er(ya,{edit:e.edit,"reply-id":e.reply?.objectId,"reply-user":e.comment.nick,"root-id":e.rootId,onLog:t[5]||(t[5]=t=>e.$emit("log")),onCancelReply:t[6]||(t[6]=t=>e.$emit("reply",null)),onCancelEdit:t[7]||(t[7]=t=>e.$emit("edit",null)),onSubmit:t[8]||(t[8]=t=>e.$emit("submit",t))},null,8,["edit","reply-id","reply-user","root-id"])],2)):Ir("v-if",!0),e.comment.children?(vr(),kr("div",Ha,[(vr(!0),kr(pr,null,An(e.comment.children,(n=>(vr(),xr(r,{key:n.objectId,comment:n,reply:e.reply,edit:e.edit,"root-id":e.rootId,onLog:t[9]||(t[9]=t=>e.$emit("log")),onDelete:t[10]||(t[10]=t=>e.$emit("delete",t)),onEdit:t[11]||(t[11]=t=>e.$emit("edit",t)),onLike:t[12]||(t[12]=t=>e.$emit("like",t)),onReply:t[13]||(t[13]=t=>e.$emit("reply",t)),onStatus:t[14]||(t[14]=t=>e.$emit("status",t)),onSticky:t[15]||(t[15]=t=>e.$emit("sticky",t)),onSubmit:t[16]||(t[16]=t=>e.$emit("submit",t))},null,8,["comment","reply","edit","root-id"])))),128))])):Ir("v-if",!0)])],8,wa)}}}),Wa=_s(Ba,[["__file","CommentCard.vue"]]);const qa={"data-waline":""},Za={class:"wl-meta-head"},Ka={class:"wl-count"},Ga=["textContent"],Qa={class:"wl-sort"},Ja=["onClick"],Xa={class:"wl-cards"},Ya={key:1,class:"wl-operation"},ec=["textContent"],tc={key:0,class:"wl-loading"},nc=["textContent"],rc={key:2,class:"wl-operation"},lc=["textContent"],ic={key:3,class:"wl-power"},oc=Rr("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1);var sc=mn({__name:"WalineComment",props:["serverURL","path","meta","requiredMeta","dark","commentSorting","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright","recaptchaV3Key","turnstileKey","reaction"],setup(e){const t=e,n={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},r=Object.keys(n),l=hs(),i=Xo(),o=$t("loading"),s=$t(0),a=$t(1),c=$t(0),u=Xr((()=>(({serverURL:e,path:t=location.pathname,lang:n=("undefined"==typeof navigator?"en-US":navigator.language),locale:r,emoji:l=ql,meta:i=["nick","mail","link"],requiredMeta:o=[],dark:s=!1,pageSize:a=10,wordLimit:c,imageUploader:u,highlighter:p,texRenderer:d,copyright:h=!0,login:f="enable",search:g,reaction:m,recaptchaV3Key:v="",turnstileKey:y="",commentSorting:w="latest",...b})=>({serverURL:ui(e),path:Vl(t),locale:{...ci[n]||ci["en-US"],..."object"==typeof r?r:{}},wordLimit:pi(c),meta:Wl(i),requiredMeta:Wl(o),imageUploader:di(u,Kl),highlighter:di(p,ei),texRenderer:di(d,Gl),lang:Object.keys(ci).includes(n)?n:"en-US",dark:s,emoji:"boolean"==typeof l?l?ql:[]:l,pageSize:a,login:f,copyright:h,search:!1!==g&&("object"==typeof g?g:Ql(n)),recaptchaV3Key:v,turnstileKey:y,reaction:Array.isArray(m)?m:!0===m?Zl:[],commentSorting:w,...b}))(t))),p=$t(u.value.commentSorting),d=$t([]),h=$t(null),f=$t(null),g=Xr((()=>{return"string"==typeof(e=u.value.dark)?"auto"===e?`@media(prefers-color-scheme:dark){body${hi}}`:`${e}${hi}`:!0===e?`:root${hi}`:"";var e})),m=Xr((()=>u.value.locale));let v;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=$t(!1),{document:r=zi,immediate:l=!0,manual:i=!1,id:o="vueuse_styletag_"+ ++Vi}=t,s=$t(e);let a=()=>{};const c=()=>{if(!r)return;const e=r.getElementById(o)||r.createElement("style");e.isConnected||(e.id=o,t.media&&(e.media=t.media),r.head.appendChild(e)),n.value||(a=pn(s,(t=>{e.textContent=t}),{immediate:!0}),n.value=!0)},u=()=>{r&&n.value&&(a(),r.head.removeChild(r.getElementById(o)),n.value=!1)};l&&!i&&Ai(c),i||vi(u),pt(n)}(g,{id:"waline-darkmode"});const y=e=>{const{serverURL:t,path:r,pageSize:i}=u.value,h=new AbortController;o.value="loading",v?.(),(({serverURL:e,lang:t,path:n,page:r,pageSize:l,sortBy:i,signal:o,token:s})=>{const a={};return s&&(a.Authorization=`Bearer ${s}`),fetch(`${e}/comment?path=${encodeURIComponent(n)}&pageSize=${l}&page=${r}&lang=${t}&sortBy=${i}`,{signal:o,headers:a}).then((e=>e.json())).then((e=>Ml(e,"Get comment data")))})({serverURL:t,lang:u.value.lang,path:r,pageSize:i,sortBy:n[p.value],page:e,signal:h.signal,token:l.value?.token}).then((t=>{o.value="success",s.value=t.count,d.value.push(...t.data),a.value=e,c.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),o.value="error")})),v=h.abort.bind(h)},w=()=>y(a.value+1),b=()=>{s.value=0,d.value=[],y(1)},k=e=>{h.value=e},x=e=>{f.value=e},_=e=>{if(f.value)f.value.comment=e.comment,f.value.orig=e.orig;else if(e.rid){const t=d.value.find((({objectId:t})=>t===e.rid));if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else d.value.unshift(e),s.value+=1},$=async({comment:e,status:t})=>{if(e.status===t)return;const{serverURL:n,lang:r}=u.value;await Nl({serverURL:n,lang:r,token:l.value?.token,objectId:e.objectId,comment:{status:t}}),e.status=t},C=async e=>{if(e.rid)return;const{serverURL:t,lang:n}=u.value;await Nl({serverURL:t,lang:n,token:l.value?.token,objectId:e.objectId,comment:{sticky:e.sticky?0:1}}),e.sticky=!e.sticky},S=async({objectId:e})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:t,lang:n}=u.value;await(({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${e}/comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then((e=>e.json())).then((e=>Ml(e,"Delete comment"))))({serverURL:t,lang:n,token:l.value?.token,objectId:e}),d.value.some(((t,n)=>t.objectId===e?(d.value=d.value.filter(((e,t)=>t!==n)),!0):t.children.some(((r,l)=>r.objectId===e&&(d.value[n].children=t.children.filter(((e,t)=>t!==l)),!0)))))},A=async e=>{const{serverURL:t,lang:n}=u.value,{objectId:r}=e,o=i.value.includes(r);await Nl({serverURL:t,lang:n,objectId:r,token:l.value?.token,comment:{like:!o}}),o?i.value=i.value.filter((e=>e!==r)):(i.value=[...i.value,r],i.value.length>50&&(i.value=i.value.slice(-50))),e.like=(e.like||0)+(o?-1:1)};return function(e,t){if(Fr){let n=Fr.provides;const r=Fr.parent&&Fr.parent.provides;r===n&&(n=Fr.provides=Object.create(r)),n[e]=t}}("config",u),bn((()=>{pn((()=>[t.serverURL,t.path]),(()=>b()),{immediate:!0})})),xn((()=>v?.())),(e,t)=>(vr(),kr("div",qa,[Er($s),h.value?Ir("v-if",!0):(vr(),xr(ya,{key:0,onLog:b,onSubmit:_})),Rr("div",Za,[Rr("div",Ka,[s.value?(vr(),kr("span",{key:0,class:"wl-num",textContent:ee(s.value)},null,8,Ga)):Ir("v-if",!0),Lr(" "+ee(m.value.comment),1)]),Rr("ul",Qa,[(vr(!0),kr(pr,null,An(Rt(r),(e=>(vr(),kr("li",{key:e,class:G([e===p.value?"active":""]),onClick:t=>(e=>{p.value!==e&&(p.value=e,b())})(e)},ee(m.value[e]),11,Ja)))),128))])]),Rr("div",Xa,[(vr(!0),kr(pr,null,An(d.value,(e=>(vr(),xr(Wa,{key:e.objectId,"root-id":e.objectId,comment:e,reply:h.value,edit:f.value,onLog:b,onReply:k,onEdit:x,onSubmit:_,onStatus:$,onDelete:S,onSticky:C,onLike:A},null,8,["root-id","comment","reply","edit"])))),128))]),"error"===o.value?(vr(),kr("div",Ya,[Rr("button",{type:"button",class:"wl-btn",onClick:b,textContent:ee(m.value.refresh)},null,8,ec)])):(vr(),kr(pr,{key:2},["loading"===o.value?(vr(),kr("div",tc,[Er(Rt(Go),{size:30})])):d.value.length?a.value<c.value?(vr(),kr("div",rc,[Rr("button",{type:"button",class:"wl-btn",onClick:w,textContent:ee(m.value.more)},null,8,lc)])):Ir("v-if",!0):(vr(),kr("div",{key:1,class:"wl-empty",textContent:ee(m.value.sofa)},null,8,nc))],64)),u.value.copyright?(vr(),kr("div",ic,[Lr(" Powered by "),oc,Lr(" v"+ee(Rt("2.15.7")),1)])):Ir("v-if",!0)]))}}),ac=_s(sc,[["__file","WalineComment.vue"]]);const cc=(e,t)=>{t.forEach(((t,n)=>{t.innerText=e[n].toString()}))},uc=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:l=navigator.language})=>{const i=new AbortController,o=Array.from(document.querySelectorAll(n)),s=e=>{const n=Mo(e);return null!==n&&t!==n},a=n=>(({serverURL:e,lang:t,paths:n,signal:r})=>Pl({serverURL:e,lang:t,paths:n,type:["time"],signal:r}).then((e=>Array.isArray(e)?e:[e])))({serverURL:ui(e),paths:n.map((e=>Mo(e)||t)),lang:l,signal:i.signal}).then((e=>cc(e,n))).catch(Bi);if(r){const n=o.filter((e=>!s(e))),r=o.filter(s);(c={serverURL:ui(e),path:t,lang:l},Fl({...c,type:"time",action:"inc"})).then((e=>cc(new Array(n.length).fill(e),n))),r.length&&a(r)}else a(o);var c;return i.abort.bind(i)},pc=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...l})=>{const i=e?(e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null)(e):null;if(e&&!i)throw new Error("Option 'el' do not match any domElement!");if(!l.serverURL)throw new Error("Option 'serverURL' is missing!");const o=ut({...l}),s=ut({comment:n,pageview:r,path:t}),a=i?Ol((()=>Yr(ac,{path:s.path,...o}))):null;a&&a.mount(i);const c=cn((()=>{s.comment&&Po({serverURL:o.serverURL,path:s.path,selector:"string"==typeof s.comment?s.comment:void 0})})),u=cn((()=>{s.pageview&&uc({serverURL:o.serverURL,path:s.path,selector:"string"==typeof s.pageview?s.pageview:void 0})}));return{el:i,update:({comment:e,pageview:t,path:n=window.location.pathname,...r}={})=>{Object.entries(r).forEach((([e,t])=>{o[e]=t})),s.path=n,void 0!==e&&(s.comment=e),void 0!==t&&(s.pageview=t)},destroy:()=>{a?.unmount(),c(),u()}}};n(" This is a legacy package compatible with Valine and Waline@v1, please switch to Waline@v2 using https://<CDN.LINK>/@waline/client/dist/waline.js instead!");const dc=document.createElement("link");return dc.rel="stylesheet",dc.href="//unpkg.com/@waline/client@v2/dist/waline.css",document.head.appendChild(dc),function(l){return pc((l=>{const{placeholder:i,langMode:o={},emojiCDN:s,emojiMaps:a,requiredFields:c=[],anonymous:u,previewMath:p,uploadImage:d,highlight:h,copyRight:f,visitor:g,pageview:m=(!0===g?".leancloud_visitors,.leancloud-visitors,.waline-visitor-count,.waline-pageview-count":g),locale:v=o,emoji:y,requiredMeta:w=c,highlighter:b=h,imageUploader:k=d,texRenderer:x=p,copyright:_=f,login:$=(!0===u?"disable":!1===u?"force":"enable"),...C}=l;return e.filter((e=>Object.keys(l).includes(e))).forEach((e=>n(`Option "${e}" is REMOVED and CAN NOT be polyfilled!`))),t.filter((([e])=>Object.keys(l).includes(e))).forEach((([e,t])=>n(`Deprecated option "${e}" is currently being polyfilled, Please switch to option "${t}" in v2!`))),i&&(v.placeholder=i),{locale:v,emoji:s&&"object"==typeof a?r(a,s):y,requiredMeta:w,imageUploader:k,highlighter:b,texRenderer:x,copyright:_,login:$,pageview:m,...C}})(l))}}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Waline=t()}(this,(function(){"use strict";const e=["region","appId","appKey","notify","verify","avatar","avatarForce","enableQQ","recordIP","serverURLs","avatarCDN","mathTagSupport"],t=[["emojiCDN","emoji"],["emojiMaps","emoji"],["requiredFields","requiredMeta"],["visitor","pageview"],["langMode","locale"],["placeholder","locale.placeholder"],["highlight","highlighter"],["uploadImage","imageUploader"],["previewMath","texRenderer"],["anonymous","login"],["copyRight","copyright"]],n=e=>console.warn(`%c ${e}`,"background:#ff0;color:red;font-size:36px;font-weight:bold;"),r=(e,t="")=>{const n={};for(const r in e)n[r]=/(?:https?:)?\/\//.test(e[r])?e[r]:`${t}${e[r]}`;return[{name:"Emoji",icon:Object.values(n).pop()||"",items:Object.keys(n)}]};function l(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const i={},o=[],s=()=>{},a=()=>!1,c=/^on[^a-z]/,u=e=>c.test(e),p=e=>e.startsWith("onUpdate:"),d=Object.assign,h=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},f=Object.prototype.hasOwnProperty,g=(e,t)=>f.call(e,t),m=Array.isArray,v=e=>"[object Map]"===S(e),y=e=>"[object Set]"===S(e),w=e=>"[object Date]"===S(e),b=e=>"function"==typeof e,k=e=>"string"==typeof e,x=e=>"symbol"==typeof e,_=e=>null!==e&&"object"==typeof e,$=e=>_(e)&&b(e.then)&&b(e.catch),C=Object.prototype.toString,S=e=>C.call(e),A=e=>S(e).slice(8,-1),R=e=>"[object Object]"===S(e),E=e=>k(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,z=l(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),L=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},I=/-(\w)/g,T=L((e=>e.replace(I,((e,t)=>t?t.toUpperCase():"")))),j=/\B([A-Z])/g,O=L((e=>e.replace(j,"-$1").toLowerCase())),U=L((e=>e.charAt(0).toUpperCase()+e.slice(1))),M=L((e=>e?`on${U(e)}`:"")),P=(e,t)=>!Object.is(e,t),F=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},N=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},V=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let D;const H=()=>D||(D="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function B(e){if(m(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],l=k(r)?K(r):B(r);if(l)for(const e in l)t[e]=l[e]}return t}return k(e)||_(e)?e:void 0}const W=/;(?![^(]*\))/g,q=/:([^]+)/,Z=/\/\*[^]*?\*\//g;function K(e){const t={};return e.replace(Z,"").split(W).forEach((e=>{if(e){const n=e.split(q);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function G(e){let t="";if(k(e))t=e;else if(m(e))for(let n=0;n<e.length;n++){const r=G(e[n]);r&&(t+=r+" ")}else if(_(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Q=l("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function J(e){return!!e||""===e}function X(e,t){if(e===t)return!0;let n=w(e),r=w(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=x(e),r=x(t),n||r)return e===t;if(n=m(e),r=m(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=X(e[r],t[r]);return n}(e,t);if(n=_(e),r=_(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),l=t.hasOwnProperty(n);if(r&&!l||!r&&l||!X(e[n],t[n]))return!1}}return String(e)===String(t)}function Y(e,t){return e.findIndex((e=>X(e,t)))}const ee=e=>k(e)?e:null==e?"":m(e)||_(e)&&(e.toString===C||!b(e.toString))?JSON.stringify(e,te,2):String(e),te=(e,t)=>t&&t.__v_isRef?te(e,t.value):v(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,t)=>{let[n,r]=t;return e[`${n} =>`]=r,e}),{})}:y(t)?{[`Set(${t.size})`]:[...t.values()]}:!_(t)||m(t)||R(t)?t:String(t);let ne;class re{constructor(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ne,!e&&ne&&(this.index=(ne.scopes||(ne.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=ne;try{return ne=this,e()}finally{ne=t}}}on(){ne=this}off(){ne=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function le(){return ne}const ie=e=>{const t=new Set(e);return t.w=0,t.n=0,t},oe=e=>(e.w&ue)>0,se=e=>(e.n&ue)>0,ae=new WeakMap;let ce=0,ue=1;const pe=30;let de;const he=Symbol(""),fe=Symbol("");class ge{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]:ne;t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=de,t=ve;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=de,de=this,ve=!0,ue=1<<++ce,ce<=pe?(e=>{let{deps:t}=e;if(t.length)for(let e=0;e<t.length;e++)t[e].w|=ue})(this):me(this),this.fn()}finally{ce<=pe&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const l=t[r];oe(l)&&!se(l)?l.delete(e):t[n++]=l,l.w&=~ue,l.n&=~ue}t.length=n}})(this),ue=1<<--ce,de=this.parent,ve=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){de===this?this.deferStop=!0:this.active&&(me(this),this.onStop&&this.onStop(),this.active=!1)}}function me(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let ve=!0;const ye=[];function we(){ye.push(ve),ve=!1}function be(){const e=ye.pop();ve=void 0===e||e}function ke(e,t,n){if(ve&&de){let t=ae.get(e);t||ae.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=ie()),xe(r)}}function xe(e,t){let n=!1;ce<=pe?se(e)||(e.n|=ue,n=!oe(e)):n=!e.has(de),n&&(e.add(de),de.deps.push(e))}function _e(e,t,n,r,l,i){const o=ae.get(e);if(!o)return;let s=[];if("clear"===t)s=[...o.values()];else if("length"===n&&m(e)){const e=Number(r);o.forEach(((t,n)=>{("length"===n||n>=e)&&s.push(t)}))}else switch(void 0!==n&&s.push(o.get(n)),t){case"add":m(e)?E(n)&&s.push(o.get("length")):(s.push(o.get(he)),v(e)&&s.push(o.get(fe)));break;case"delete":m(e)||(s.push(o.get(he)),v(e)&&s.push(o.get(fe)));break;case"set":v(e)&&s.push(o.get(he))}if(1===s.length)s[0]&&$e(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);$e(ie(e))}}function $e(e,t){const n=m(e)?e:[...e];for(const e of n)e.computed&&Ce(e);for(const e of n)e.computed||Ce(e)}function Ce(e,t){(e!==de||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Se=l("__proto__,__v_isRef,__isVue"),Ae=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(x)),Re=je(),Ee=je(!1,!0),ze=je(!0),Le=Ie();function Ie(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(){const e=vt(this);for(let t=0,n=this.length;t<n;t++)ke(e,0,t+"");for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];const i=e[t](...r);return-1===i||!1===i?e[t](...r.map(vt)):i}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(){we();for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const l=vt(this)[t].apply(this,n);return be(),l}})),e}function Te(e){const t=vt(this);return ke(t,0,e),t.hasOwnProperty(e)}function je(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r,l){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&l===(e?t?ct:at:t?st:ot).get(n))return n;const i=m(n);if(!e){if(i&&g(Le,r))return Reflect.get(Le,r,l);if("hasOwnProperty"===r)return Te}const o=Reflect.get(n,r,l);return(x(r)?Ae.has(r):Se(r))?o:(e||ke(n,0,r),t?o:_t(o)?i&&E(r)?o:o.value:_(o)?e?pt(o):ut(o):o)}}function Oe(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n,r,l){let i=t[n];if(ft(i)&&_t(i)&&!_t(r))return!1;if(!e&&(gt(r)||ft(r)||(i=vt(i),r=vt(r)),!m(t)&&_t(i)&&!_t(r)))return i.value=r,!0;const o=m(t)&&E(n)?Number(n)<t.length:g(t,n),s=Reflect.set(t,n,r,l);return t===vt(l)&&(o?P(r,i)&&_e(t,"set",n,r):_e(t,"add",n,r)),s}}const Ue={get:Re,set:Oe(),deleteProperty:function(e,t){const n=g(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&_e(e,"delete",t,void 0),r},has:function(e,t){const n=Reflect.has(e,t);return x(t)&&Ae.has(t)||ke(e,0,t),n},ownKeys:function(e){return ke(e,0,m(e)?"length":he),Reflect.ownKeys(e)}},Me={get:ze,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},Pe=d({},Ue,{get:Ee,set:Oe(!0)}),Fe=e=>e,Ne=e=>Reflect.getPrototypeOf(e);function Ve(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const l=vt(e=e.__v_raw),i=vt(t);n||(t!==i&&ke(l,0,t),ke(l,0,i));const{has:o}=Ne(l),s=r?Fe:n?bt:wt;return o.call(l,t)?s(e.get(t)):o.call(l,i)?s(e.get(i)):void(e!==l&&e.get(t))}function De(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.__v_raw,r=vt(n),l=vt(e);return t||(e!==l&&ke(r,0,e),ke(r,0,l)),e===l?n.has(e):n.has(e)||n.has(l)}function He(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e=e.__v_raw,!t&&ke(vt(e),0,he),Reflect.get(e,"size",e)}function Be(e){e=vt(e);const t=vt(this);return Ne(t).has.call(t,e)||(t.add(e),_e(t,"add",e,e)),this}function We(e,t){t=vt(t);const n=vt(this),{has:r,get:l}=Ne(n);let i=r.call(n,e);i||(e=vt(e),i=r.call(n,e));const o=l.call(n,e);return n.set(e,t),i?P(t,o)&&_e(n,"set",e,t):_e(n,"add",e,t),this}function qe(e){const t=vt(this),{has:n,get:r}=Ne(t);let l=n.call(t,e);l||(e=vt(e),l=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return l&&_e(t,"delete",e,void 0),i}function Ze(){const e=vt(this),t=0!==e.size,n=e.clear();return t&&_e(e,"clear",void 0,void 0),n}function Ke(e,t){return function(n,r){const l=this,i=l.__v_raw,o=vt(i),s=t?Fe:e?bt:wt;return!e&&ke(o,0,he),i.forEach(((e,t)=>n.call(r,s(e),s(t),l)))}}function Ge(e,t,n){return function(){const r=this.__v_raw,l=vt(r),i=v(l),o="entries"===e||e===Symbol.iterator&&i,s="keys"===e&&i,a=r[e](...arguments),c=n?Fe:t?bt:wt;return!t&&ke(l,0,s?fe:he),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:o?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function Qe(e){return function(){return"delete"!==e&&this}}function Je(){const e={get(e){return Ve(this,e)},get size(){return He(this)},has:De,add:Be,set:We,delete:qe,clear:Ze,forEach:Ke(!1,!1)},t={get(e){return Ve(this,e,!1,!0)},get size(){return He(this)},has:De,add:Be,set:We,delete:qe,clear:Ze,forEach:Ke(!1,!0)},n={get(e){return Ve(this,e,!0)},get size(){return He(this,!0)},has(e){return De.call(this,e,!0)},add:Qe("add"),set:Qe("set"),delete:Qe("delete"),clear:Qe("clear"),forEach:Ke(!0,!1)},r={get(e){return Ve(this,e,!0,!0)},get size(){return He(this,!0)},has(e){return De.call(this,e,!0)},add:Qe("add"),set:Qe("set"),delete:Qe("delete"),clear:Qe("clear"),forEach:Ke(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((l=>{e[l]=Ge(l,!1,!1),n[l]=Ge(l,!0,!1),t[l]=Ge(l,!1,!0),r[l]=Ge(l,!0,!0)})),[e,n,t,r]}const[Xe,Ye,et,tt]=Je();function nt(e,t){const n=t?e?tt:et:e?Ye:Xe;return(t,r,l)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(g(n,r)&&r in t?n:t,r,l)}const rt={get:nt(!1,!1)},lt={get:nt(!1,!0)},it={get:nt(!0,!1)},ot=new WeakMap,st=new WeakMap,at=new WeakMap,ct=new WeakMap;function ut(e){return ft(e)?e:dt(e,!1,Ue,rt,ot)}function pt(e){return dt(e,!0,Me,it,at)}function dt(e,t,n,r,l){if(!_(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=l.get(e);if(i)return i;const o=(s=e).__v_skip||!Object.isExtensible(s)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(A(s));var s;if(0===o)return e;const a=new Proxy(e,2===o?r:n);return l.set(e,a),a}function ht(e){return ft(e)?ht(e.__v_raw):!(!e||!e.__v_isReactive)}function ft(e){return!(!e||!e.__v_isReadonly)}function gt(e){return!(!e||!e.__v_isShallow)}function mt(e){return ht(e)||ft(e)}function vt(e){const t=e&&e.__v_raw;return t?vt(t):e}function yt(e){return N(e,"__v_skip",!0),e}const wt=e=>_(e)?ut(e):e,bt=e=>_(e)?pt(e):e;function kt(e){ve&&de&&xe((e=vt(e)).dep||(e.dep=ie()))}function xt(e,t){const n=(e=vt(e)).dep;n&&$e(n)}function _t(e){return!(!e||!0!==e.__v_isRef)}function $t(e){return St(e,!1)}function Ct(e){return St(e,!0)}function St(e,t){return _t(e)?e:new At(e,t)}class At{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:vt(e),this._value=t?e:wt(e)}get value(){return kt(this),this._value}set value(e){const t=this.__v_isShallow||gt(e)||ft(e);e=t?e:vt(e),P(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:wt(e),xt(this))}}function Rt(e){return _t(e)?e.value:e}const Et={get:(e,t,n)=>Rt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const l=e[t];return _t(l)&&!_t(n)?(l.value=n,!0):Reflect.set(e,t,n,r)}};function zt(e){return ht(e)?e:new Proxy(e,Et)}class Lt{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ge(e,(()=>{this._dirty||(this._dirty=!0,xt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=vt(this);return kt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function It(e,t,n,r){let l;try{l=r?e(...r):e()}catch(e){jt(e,t,n)}return l}function Tt(e,t,n,r){if(b(e)){const l=It(e,t,n,r);return l&&$(l)&&l.catch((e=>{jt(e,t,n)})),l}const l=[];for(let i=0;i<e.length;i++)l.push(Tt(e[i],t,n,r));return l}function jt(e,t,n){if(t){let r=t.parent;const l=t.proxy,i=n;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,l,i))return;r=r.parent}const o=t.appContext.config.errorHandler;if(o)return void It(o,null,10,[e,l,i])}!function(e,t,n){console.error(e)}(e)}let Ot=!1,Ut=!1;const Mt=[];let Pt=0;const Ft=[];let Nt=null,Vt=0;const Dt=Promise.resolve();let Ht=null;function Bt(e){const t=Ht||Dt;return e?t.then(this?e.bind(this):e):t}function Wt(e){Mt.length&&Mt.includes(e,Ot&&e.allowRecurse?Pt+1:Pt)||(null==e.id?Mt.push(e):Mt.splice(function(e){let t=Pt+1,n=Mt.length;for(;t<n;){const r=t+n>>>1;Gt(Mt[r])<e?t=r+1:n=r}return t}(e.id),0,e),qt())}function qt(){Ot||Ut||(Ut=!0,Ht=Dt.then(Jt))}function Zt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ot?Pt+1:0;for(;t<Mt.length;t++){const e=Mt[t];e&&e.pre&&(Mt.splice(t,1),t--,e())}}function Kt(e){if(Ft.length){const e=[...new Set(Ft)];if(Ft.length=0,Nt)return void Nt.push(...e);for(Nt=e,Nt.sort(((e,t)=>Gt(e)-Gt(t))),Vt=0;Vt<Nt.length;Vt++)Nt[Vt]();Nt=null,Vt=0}}const Gt=e=>null==e.id?1/0:e.id,Qt=(e,t)=>{const n=Gt(e)-Gt(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Jt(e){Ut=!1,Ot=!0,Mt.sort(Qt);try{for(Pt=0;Pt<Mt.length;Pt++){const e=Mt[Pt];e&&!1!==e.active&&It(e,null,14)}}finally{Pt=0,Mt.length=0,Kt(),Ot=!1,Ht=null,(Mt.length||Ft.length)&&Jt()}}function Xt(e,t){if(e.isUnmounted)return;const n=e.vnode.props||i;for(var r=arguments.length,l=new Array(r>2?r-2:0),o=2;o<r;o++)l[o-2]=arguments[o];let s=l;const a=t.startsWith("update:"),c=a&&t.slice(7);if(c&&c in n){const e=`${"modelValue"===c?"model":c}Modifiers`,{number:t,trim:r}=n[e]||i;r&&(s=l.map((e=>k(e)?e.trim():e))),t&&(s=l.map(V))}let u,p=n[u=M(t)]||n[u=M(T(t))];!p&&a&&(p=n[u=M(O(t))]),p&&Tt(p,e,6,s);const d=n[u+"Once"];if(d){if(e.emitted){if(e.emitted[u])return}else e.emitted={};e.emitted[u]=!0,Tt(d,e,6,s)}}function Yt(e,t){const n=t.emitsCache,r=n.get(e);if(void 0!==r)return r;const l=e.emits;let i={};return l?(m(l)?l.forEach((e=>i[e]=null)):d(i,l),_(e)&&n.set(e,i),i):(_(e)&&n.set(e,null),null)}function en(e,t){return!(!e||!u(t))&&(t=t.slice(2).replace(/Once$/,""),g(e,t[0].toLowerCase()+t.slice(1))||g(e,O(t))||g(e,t))}let tn=null,nn=null;function rn(e){const t=tn;return tn=e,nn=e&&e.type.__scopeId||null,t}function ln(e){const{type:t,vnode:n,proxy:r,withProxy:l,props:i,propsOptions:[o],slots:s,attrs:a,emit:c,render:u,renderCache:d,data:h,setupState:f,ctx:g,inheritAttrs:m}=e;let v,y;const w=rn(e);try{if(4&n.shapeFlag){const e=l||r;v=Tr(u.call(e,e,d,i,f,h,g)),y=a}else{const e=t;v=Tr(e.length>1?e(i,{attrs:a,slots:s,emit:c}):e(i,null)),y=t.props?a:on(a)}}catch(t){gr.length=0,jt(t,e,1),v=Er(hr)}let b=v;if(y&&!1!==m){const e=Object.keys(y),{shapeFlag:t}=b;e.length&&7&t&&(o&&e.some(p)&&(y=sn(y,o)),b=zr(b,y))}return n.dirs&&(b=zr(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),v=b,rn(w),v}const on=e=>{let t;for(const n in e)("class"===n||"style"===n||u(n))&&((t||(t={}))[n]=e[n]);return t},sn=(e,t)=>{const n={};for(const r in e)p(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function an(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let l=0;l<r.length;l++){const i=r[l];if(t[i]!==e[i]&&!en(n,i))return!0}return!1}function cn(e,t){return dn(e,null,t)}const un={};function pn(e,t,n){return dn(e,t,n)}function dn(e,t){let{immediate:n,deep:r,flush:l,onTrack:o,onTrigger:a}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i;var c;const u=le()===(null==(c=Fr)?void 0:c.scope)?Fr:null;let p,d,f=!1,g=!1;if(_t(e)?(p=()=>e.value,f=gt(e)):ht(e)?(p=()=>e,r=!0):m(e)?(g=!0,f=e.some((e=>ht(e)||gt(e))),p=()=>e.map((e=>_t(e)?e.value:ht(e)?hn(e):b(e)?It(e,u,2):void 0))):p=b(e)?t?()=>It(e,u,2):()=>{if(!u||!u.isUnmounted)return d&&d(),Tt(e,u,3,[y])}:s,t&&r){const e=p;p=()=>hn(e())}let v,y=e=>{d=_.onStop=()=>{It(e,u,4)}};if(Kr){if(y=s,t?n&&Tt(t,u,3,[p(),g?[]:void 0,y]):p(),"sync"!==l)return s;{const e=tl();v=e.__watcherHandles||(e.__watcherHandles=[])}}let w=g?new Array(e.length).fill(un):un;const k=()=>{if(_.active)if(t){const e=_.run();(r||f||(g?e.some(((e,t)=>P(e,w[t]))):P(e,w)))&&(d&&d(),Tt(t,u,3,[e,w===un?void 0:g&&w[0]===un?[]:w,y]),w=e)}else _.run()};let x;k.allowRecurse=!!t,"sync"===l?x=k:"post"===l?x=()=>sr(k,u&&u.suspense):(k.pre=!0,u&&(k.id=u.uid),x=()=>Wt(k));const _=new ge(p,x);t?n?k():w=_.run():"post"===l?sr(_.run.bind(_),u&&u.suspense):_.run();const $=()=>{_.stop(),u&&u.scope&&h(u.scope.effects,_)};return v&&v.push($),$}function hn(e,t){if(!_(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),_t(e))hn(e.value,t);else if(m(e))for(let n=0;n<e.length;n++)hn(e[n],t);else if(y(e)||v(e))e.forEach((e=>{hn(e,t)}));else if(R(e))for(const n in e)hn(e[n],t);return e}function fn(e,t){const n=tn;if(null===n)return e;const r=Jr(n)||n.proxy,l=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[n,o,s,a=i]=t[e];n&&(b(n)&&(n={mounted:n,updated:n}),n.deep&&hn(o),l.push({dir:n,instance:r,value:o,oldValue:void 0,arg:s,modifiers:a}))}return e}function gn(e,t,n,r){const l=e.dirs,i=t&&t.dirs;for(let o=0;o<l.length;o++){const s=l[o];i&&(s.oldValue=i[o].value);let a=s.dir[r];a&&(we(),Tt(a,n,8,[e.el,s,e,t]),be())}}function mn(e,t){return b(e)?(()=>d({name:e.name},t,{setup:e}))():e}const vn=e=>!!e.type.__asyncLoader,yn=e=>e.type.__isKeepAlive;const wn=e=>function(t){return(!Kr||"sp"===e)&&function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Fr,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n){const l=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=function(){if(n.isUnmounted)return;we(),Br(n);for(var r=arguments.length,l=new Array(r),i=0;i<r;i++)l[i]=arguments[i];const o=Tt(t,n,e,l);return Wr(),be(),o});return r?l.unshift(i):l.push(i),i}}(e,(function(){return t(...arguments)}),arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fr)},bn=wn("m"),kn=wn("bum"),xn=wn("um"),_n="components";function $n(e,t){return function(e,t){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=tn||Fr;if(r){const l=r.type;if(e===_n){const e=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return b(e)?e.displayName||e.name:e.name||t&&e.__name}(l,!1);if(e&&(e===t||e===T(t)||e===U(T(t))))return l}const i=Sn(r[e]||l[e],t)||Sn(r.appContext[e],t);return!i&&n?l:i}}(_n,e,!0,t)||e}const Cn=Symbol.for("v-ndc");function Sn(e,t){return e&&(e[t]||e[T(t)]||e[U(T(t))])}function An(e,t,n,r){let l;const i=n&&n[r];if(m(e)||k(e)){l=new Array(e.length);for(let n=0,r=e.length;n<r;n++)l[n]=t(e[n],n,void 0,i&&i[n])}else if("number"==typeof e){l=new Array(e);for(let n=0;n<e;n++)l[n]=t(n+1,n,void 0,i&&i[n])}else if(_(e))if(e[Symbol.iterator])l=Array.from(e,((e,n)=>t(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);l=new Array(n.length);for(let r=0,o=n.length;r<o;r++){const o=n[r];l[r]=t(e[o],o,r,i&&i[r])}}else l=[];return n&&(n[r]=l),l}const Rn=e=>e?qr(e)?Jr(e)||e.proxy:Rn(e.parent):null,En=d(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=>Rn(e.parent),$root:e=>Rn(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>Wt(e.update)),$nextTick:e=>e.n||(e.n=Bt.bind(e.proxy)),$watch:e=>s}),zn=(e,t)=>e!==i&&!e.__isScriptSetup&&g(e,t),Ln={get(e,t){let{_:n}=e;const{ctx:r,setupState:l,data:o,props:s,accessCache:a,type:c,appContext:u}=n;let p;if("$"!==t[0]){const e=a[t];if(void 0!==e)switch(e){case 1:return l[t];case 2:return o[t];case 4:return r[t];case 3:return s[t]}else{if(zn(l,t))return a[t]=1,l[t];if(o!==i&&g(o,t))return a[t]=2,o[t];if((p=n.propsOptions[0])&&g(p,t))return a[t]=3,s[t];if(r!==i&&g(r,t))return a[t]=4,r[t];a[t]=0}}const d=En[t];let h,f;return d?("$attrs"===t&&ke(n,0,t),d(n)):(h=c.__cssModules)&&(h=h[t])?h:r!==i&&g(r,t)?(a[t]=4,r[t]):(f=u.config.globalProperties,g(f,t)?f[t]:void 0)},set(e,t,n){let{_:r}=e;const{data:l,setupState:o,ctx:s}=r;return zn(o,t)?(o[t]=n,!0):l!==i&&g(l,t)?(l[t]=n,!0):!g(r.props,t)&&(("$"!==t[0]||!(t.slice(1)in r))&&(s[t]=n,!0))},has(e,t){let n,{_:{data:r,setupState:l,accessCache:o,ctx:s,appContext:a,propsOptions:c}}=e;return!!o[t]||r!==i&&g(r,t)||zn(l,t)||(n=c[0])&&g(n,t)||g(s,t)||g(En,t)||g(a.config.globalProperties,t)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:g(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function In(e){return m(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function Tn(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const{mixins:l,extends:i}=t;i&&Tn(e,i,n,!0),l&&l.forEach((t=>Tn(e,t,n,!0)));for(const l in t)if(r&&"expose"===l);else{const r=jn[l]||n&&n[l];e[l]=r?r(e[l],t[l]):t[l]}return e}const jn={data:On,props:Fn,emits:Fn,methods:Pn,computed:Pn,beforeCreate:Mn,created:Mn,beforeMount:Mn,mounted:Mn,beforeUpdate:Mn,updated:Mn,beforeDestroy:Mn,beforeUnmount:Mn,destroyed:Mn,unmounted:Mn,activated:Mn,deactivated:Mn,errorCaptured:Mn,serverPrefetch:Mn,components:Pn,directives:Pn,watch:function(e,t){if(!e)return t;if(!t)return e;const n=d(Object.create(null),e);for(const r in t)n[r]=Mn(e[r],t[r]);return n},provide:On,inject:function(e,t){return Pn(Un(e),Un(t))}};function On(e,t){return t?e?function(){return d(b(e)?e.call(this,this):e,b(t)?t.call(this,this):t)}:t:e}function Un(e){if(m(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Mn(e,t){return e?[...new Set([].concat(e,t))]:t}function Pn(e,t){return e?d(Object.create(null),e,t):t}function Fn(e,t){return e?m(e)&&m(t)?[...new Set([...e,...t])]:d(Object.create(null),In(e),In(null!=t?t:{})):t}function Nn(){return{app:null,config:{isNativeTag:a,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 Vn=0;function Dn(e,t){return function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;b(n)||(n=d({},n)),null==r||_(r)||(r=null);const l=Nn(),i=new Set;let o=!1;const s=l.app={_uid:Vn++,_component:n,_props:r,_container:null,_context:l,_instance:null,version:nl,get config(){return l.config},set config(e){},use(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return i.has(e)||(e&&b(e.install)?(i.add(e),e.install(s,...n)):b(e)&&(i.add(e),e(s,...n))),s},mixin:e=>s,component:(e,t)=>t?(l.components[e]=t,s):l.components[e],directive:(e,t)=>t?(l.directives[e]=t,s):l.directives[e],mount(i,a,c){if(!o){const u=Er(n,r);return u.appContext=l,a&&t?t(u,i):e(u,i,c),o=!0,s._container=i,i.__vue_app__=s,Jr(u.component)||u.component.proxy}},unmount(){o&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(l.provides[e]=t,s),runWithContext(e){Hn=s;try{return e()}finally{Hn=null}}};return s}}let Hn=null;function Bn(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=Fr||tn;if(r||Hn){const l=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Hn._context.provides;if(l&&e in l)return l[e];if(arguments.length>1)return n&&b(t)?t.call(r&&r.proxy):t}}function Wn(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const l={},i={};N(i,Cr,1),e.propsDefaults=Object.create(null),qn(e,t,l,i);for(const t in e.propsOptions[0])t in l||(l[t]=void 0);n?e.props=r?l:dt(l,!1,Pe,lt,st):e.type.props?e.props=l:e.props=i,e.attrs=i}function qn(e,t,n,r){const[l,o]=e.propsOptions;let s,a=!1;if(t)for(let i in t){if(z(i))continue;const c=t[i];let u;l&&g(l,u=T(i))?o&&o.includes(u)?(s||(s={}))[u]=c:n[u]=c:en(e.emitsOptions,i)||i in r&&c===r[i]||(r[i]=c,a=!0)}if(o){const t=vt(n),r=s||i;for(let i=0;i<o.length;i++){const s=o[i];n[s]=Zn(l,t,s,r[s],e,!g(r,s))}}return a}function Zn(e,t,n,r,l,i){const o=e[n];if(null!=o){const e=g(o,"default");if(e&&void 0===r){const e=o.default;if(o.type!==Function&&!o.skipFactory&&b(e)){const{propsDefaults:i}=l;n in i?r=i[n]:(Br(l),r=i[n]=e.call(null,t),Wr())}else r=e}o[0]&&(i&&!e?r=!1:!o[1]||""!==r&&r!==O(n)||(r=!0))}return r}function Kn(e,t){const n=t.propsCache,r=n.get(e);if(r)return r;const l=e.props,s={},a=[];if(!l)return _(e)&&n.set(e,o),o;if(m(l))for(let e=0;e<l.length;e++){const t=T(l[e]);Gn(t)&&(s[t]=i)}else if(l)for(const e in l){const t=T(e);if(Gn(t)){const n=l[e],r=s[t]=m(n)||b(n)?{type:n}:d({},n);if(r){const e=Xn(Boolean,r.type),n=Xn(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||g(r,"default"))&&a.push(t)}}}const c=[s,a];return _(e)&&n.set(e,c),c}function Gn(e){return"$"!==e[0]}function Qn(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function Jn(e,t){return Qn(e)===Qn(t)}function Xn(e,t){return m(t)?t.findIndex((t=>Jn(t,e))):b(t)&&Jn(t,e)?0:-1}const Yn=e=>"_"===e[0]||"$stable"===e,er=e=>m(e)?e.map(Tr):[Tr(e)],tr=(e,t,n)=>{if(t._n)return t;const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tn;if(!t)return e;if(e._n)return e;const n=function(){n._d&&wr(-1);const r=rn(t);let l;try{l=e(...arguments)}finally{rn(r),n._d&&wr(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}((function(){return er(t(...arguments))}),n);return r._c=!1,r},nr=(e,t,n)=>{const r=e._ctx;for(const n in e){if(Yn(n))continue;const l=e[n];if(b(l))t[n]=tr(0,l,r);else if(null!=l){const e=er(l);t[n]=()=>e}}},rr=(e,t)=>{const n=er(t);e.slots.default=()=>n},lr=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=vt(t),N(t,"_",n)):nr(t,e.slots={})}else e.slots={},t&&rr(e,t);N(e.slots,Cr,1)},ir=(e,t,n)=>{const{vnode:r,slots:l}=e;let o=!0,s=i;if(32&r.shapeFlag){const e=t._;e?n&&1===e?o=!1:(d(l,t),n||1!==e||delete l._):(o=!t.$stable,nr(t,l)),s=t}else t&&(rr(e,t),s={default:1});if(o)for(const e in l)Yn(e)||e in s||delete l[e]};function or(e,t,n,r){let l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(m(e))return void e.forEach(((e,i)=>or(e,t&&(m(t)?t[i]:t),n,r,l)));if(vn(r)&&!l)return;const o=4&r.shapeFlag?Jr(r.component)||r.component.proxy:r.el,s=l?null:o,{i:a,r:c}=e,u=t&&t.r,p=a.refs===i?a.refs={}:a.refs,d=a.setupState;if(null!=u&&u!==c&&(k(u)?(p[u]=null,g(d,u)&&(d[u]=null)):_t(u)&&(u.value=null)),b(c))It(c,a,12,[s,p]);else{const t=k(c),r=_t(c);if(t||r){const i=()=>{if(e.f){const n=t?g(d,c)?d[c]:p[c]:c.value;l?m(n)&&h(n,o):m(n)?n.includes(o)||n.push(o):t?(p[c]=[o],g(d,c)&&(d[c]=p[c])):(c.value=[o],e.k&&(p[e.k]=c.value))}else t?(p[c]=s,g(d,c)&&(d[c]=s)):r&&(c.value=s,e.k&&(p[e.k]=s))};s?(i.id=-1,sr(i,n)):i()}}}const sr=function(e,t){var n;t&&t.pendingBranch?m(e)?t.effects.push(...e):t.effects.push(e):(m(n=e)?Ft.push(...n):Nt&&Nt.includes(n,n.allowRecurse?Vt+1:Vt)||Ft.push(n),qt())};function ar(e){return function(e,t){H().__VUE__=!0;const{insert:n,remove:r,patchProp:l,createElement:a,createText:c,createComment:u,setText:p,setElementText:d,parentNode:h,nextSibling:f,setScopeId:m=s,insertStaticContent:v}=e,y=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,a=arguments.length>8&&void 0!==arguments[8]?arguments[8]:!!t.dynamicChildren;if(e===t)return;e&&!$r(e,t)&&(r=X(e),Z(e,l,i,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:p}=t;switch(c){case dr:w(e,t,n,r);break;case hr:b(e,t,n,r);break;case fr:null==e&&k(t,n,r,o);break;case pr:j(e,t,n,r,l,i,o,s,a);break;default:1&p?C(e,t,n,r,l,i,o,s,a):6&p?U(e,t,n,r,l,i,o,s,a):(64&p||128&p)&&c.process(e,t,n,r,l,i,o,s,a,ee)}null!=u&&l&&or(u,e&&e.ref,i,t||e,!t)},w=(e,t,r,l)=>{if(null==e)n(t.el=c(t.children),r,l);else{const n=t.el=e.el;t.children!==e.children&&p(n,t.children)}},b=(e,t,r,l)=>{null==e?n(t.el=u(t.children||""),r,l):t.el=e.el},k=(e,t,n,r)=>{[e.el,e.anchor]=v(e.children,t,n,r,e.el,e.anchor)},x=(e,t,r)=>{let l,{el:i,anchor:o}=e;for(;i&&i!==o;)l=f(i),n(i,t,r),i=l;n(o,t,r)},_=e=>{let t,{el:n,anchor:l}=e;for(;n&&n!==l;)t=f(n),r(n),n=t;r(l)},C=(e,t,n,r,l,i,o,s,a)=>{o=o||"svg"===t.type,null==e?S(t,n,r,l,i,o,s,a):E(e,t,l,i,o,s,a)},S=(e,t,r,i,o,s,c,u)=>{let p,h;const{type:f,props:g,shapeFlag:m,transition:v,dirs:y}=e;if(p=e.el=a(e.type,s,g&&g.is,g),8&m?d(p,e.children):16&m&&R(e.children,p,null,i,o,s&&"foreignObject"!==f,c,u),y&&gn(e,null,i,"created"),A(p,e,e.scopeId,c,i),g){for(const t in g)"value"===t||z(t)||l(p,t,null,g[t],s,e.children,i,o,J);"value"in g&&l(p,"value",null,g.value),(h=g.onVnodeBeforeMount)&&Ur(h,i,e)}y&&gn(e,null,i,"beforeMount");const w=(!o||o&&!o.pendingBranch)&&v&&!v.persisted;w&&v.beforeEnter(p),n(p,t,r),((h=g&&g.onVnodeMounted)||w||y)&&sr((()=>{h&&Ur(h,i,e),w&&v.enter(p),y&&gn(e,null,i,"mounted")}),o)},A=(e,t,n,r,l)=>{if(n&&m(e,n),r)for(let t=0;t<r.length;t++)m(e,r[t]);if(l){if(t===l.subTree){const t=l.vnode;A(e,t,t.scopeId,t.slotScopeIds,l.parent)}}},R=function(e,t,n,r,l,i,o,s){for(let a=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0;a<e.length;a++){const c=e[a]=s?jr(e[a]):Tr(e[a]);y(null,c,t,n,r,l,i,o,s)}},E=(e,t,n,r,o,s,a)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:p,dirs:h}=t;u|=16&e.patchFlag;const f=e.props||i,g=t.props||i;let m;n&&cr(n,!1),(m=g.onVnodeBeforeUpdate)&&Ur(m,n,t,e),h&&gn(t,e,n,"beforeUpdate"),n&&cr(n,!0);const v=o&&"foreignObject"!==t.type;if(p?L(e.dynamicChildren,p,c,n,r,v,s):a||D(e,t,c,null,n,r,v,s,!1),u>0){if(16&u)I(c,t,f,g,n,r,o);else if(2&u&&f.class!==g.class&&l(c,"class",null,g.class,o),4&u&&l(c,"style",f.style,g.style,o),8&u){const i=t.dynamicProps;for(let t=0;t<i.length;t++){const s=i[t],a=f[s],u=g[s];u===a&&"value"!==s||l(c,s,a,u,o,e.children,n,r,J)}}1&u&&e.children!==t.children&&d(c,t.children)}else a||null!=p||I(c,t,f,g,n,r,o);((m=g.onVnodeUpdated)||h)&&sr((()=>{m&&Ur(m,n,t,e),h&&gn(t,e,n,"updated")}),r)},L=(e,t,n,r,l,i,o)=>{for(let s=0;s<t.length;s++){const a=e[s],c=t[s],u=a.el&&(a.type===pr||!$r(a,c)||70&a.shapeFlag)?h(a.el):n;y(a,c,u,null,r,l,i,o,!0)}},I=(e,t,n,r,o,s,a)=>{if(n!==r){if(n!==i)for(const i in n)z(i)||i in r||l(e,i,n[i],null,a,t.children,o,s,J);for(const i in r){if(z(i))continue;const c=r[i],u=n[i];c!==u&&"value"!==i&&l(e,i,u,c,a,t.children,o,s,J)}"value"in r&&l(e,"value",n.value,r.value)}},j=(e,t,r,l,i,o,s,a,u)=>{const p=t.el=e?e.el:c(""),d=t.anchor=e?e.anchor:c("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:g}=t;g&&(a=a?a.concat(g):g),null==e?(n(p,r,l),n(d,r,l),R(t.children,r,d,i,o,s,a,u)):h>0&&64&h&&f&&e.dynamicChildren?(L(e.dynamicChildren,f,r,i,o,s,a),(null!=t.key||i&&t===i.subTree)&&ur(e,t,!0)):D(e,t,r,d,i,o,s,a,u)},U=(e,t,n,r,l,i,o,s,a)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?l.ctx.activate(t,n,r,o,a):M(t,n,r,l,i,o,a):P(e,t,a)},M=(e,t,n,r,l,o,s)=>{const a=e.component=function(e,t,n){const r=e.type,l=(t?t.appContext:e.appContext)||Mr,o={uid:Pr++,vnode:e,type:r,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,scope:new re(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Kn(r,l),emitsOptions:Yt(r,l),emit:null,emitted:null,propsDefaults:i,inheritAttrs:r.inheritAttrs,ctx:i,data:i,props:i,attrs:i,slots:i,refs:i,setupState:i,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};o.ctx={_:o},o.root=t?t.root:o,o.emit=Xt.bind(null,o),e.ce&&e.ce(o);return o}(e,r,l);if(yn(e)&&(a.ctx.renderer=ee),function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Kr=t;const{props:n,children:r}=e.vnode,l=qr(e);Wn(e,n,l,t),lr(e,r);const i=l?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=yt(new Proxy(e.ctx,Ln));const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?function(e){const t=t=>{e.exposed=t||{}};return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:(t,n)=>(ke(e,0,"$attrs"),t[n])}))}(e)},slots:e.slots,emit:e.emit,expose:t}}(e):null;Br(e),we();const l=It(r,e,0,[e.props,n]);if(be(),Wr(),$(l)){if(l.then(Wr,Wr),t)return l.then((n=>{Gr(e,n,t)})).catch((t=>{jt(t,e,0)}));e.asyncDep=l}else Gr(e,l,t)}else Qr(e,t)}(e,t):void 0;Kr=!1}(a),a.asyncDep){if(l&&l.registerDep(a,N),!e.el){const e=a.subTree=Er(hr);b(null,e,t,n)}}else N(a,e,t,n,l,o,s)},P=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:l,component:i}=e,{props:o,children:s,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!l&&!s||s&&s.$stable)||r!==o&&(r?!o||an(r,o,c):!!o);if(1024&a)return!0;if(16&a)return r?an(r,o,c):!!o;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(o[n]!==r[n]&&!en(c,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void V(r,t,n);r.next=t,function(e){const t=Mt.indexOf(e);t>Pt&&Mt.splice(t,1)}(r.update),r.update()}else t.el=e.el,r.vnode=t},N=(e,t,n,r,l,i,o)=>{const s=()=>{if(e.isMounted){let t,{next:n,bu:r,u:s,parent:a,vnode:c}=e,u=n;cr(e,!1),n?(n.el=c.el,V(e,n,o)):n=c,r&&F(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Ur(t,a,n,c),cr(e,!0);const p=ln(e),d=e.subTree;e.subTree=p,y(d,p,h(d.el),X(d),e,l,i),n.el=p.el,null===u&&function(e,t){let{vnode:n,parent:r}=e;for(;r&&r.subTree===n;)(n=r.vnode).el=t,r=r.parent}(e,p.el),s&&sr(s,l),(t=n.props&&n.props.onVnodeUpdated)&&sr((()=>Ur(t,a,n,c)),l)}else{let o;const{el:s,props:a}=t,{bm:c,m:u,parent:p}=e,d=vn(t);if(cr(e,!1),c&&F(c),!d&&(o=a&&a.onVnodeBeforeMount)&&Ur(o,p,t),cr(e,!0),s&&ne){const n=()=>{e.subTree=ln(e),ne(s,e.subTree,e,l,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const o=e.subTree=ln(e);y(null,o,n,r,e,l,i),t.el=o.el}if(u&&sr(u,l),!d&&(o=a&&a.onVnodeMounted)){const e=t;sr((()=>Ur(o,p,e)),l)}(256&t.shapeFlag||p&&vn(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&sr(e.a,l),e.isMounted=!0,t=n=r=null}},a=e.effect=new ge(s,(()=>Wt(c)),e.scope),c=e.update=()=>a.run();c.id=e.uid,cr(e,!0),c()},V=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:l,attrs:i,vnode:{patchFlag:o}}=e,s=vt(l),[a]=e.propsOptions;let c=!1;if(!(r||o>0)||16&o){let r;qn(e,t,l,i)&&(c=!0);for(const i in s)t&&(g(t,i)||(r=O(i))!==i&&g(t,r))||(a?!n||void 0===n[i]&&void 0===n[r]||(l[i]=Zn(a,s,i,void 0,e,!0)):delete l[i]);if(i!==s)for(const e in i)t&&g(t,e)||(delete i[e],c=!0)}else if(8&o){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(en(e.emitsOptions,o))continue;const u=t[o];if(a)if(g(i,o))u!==i[o]&&(i[o]=u,c=!0);else{const t=T(o);l[t]=Zn(a,s,t,u,e,!1)}else u!==i[o]&&(i[o]=u,c=!0)}}c&&_e(e,"set","$attrs")}(e,t.props,r,n),ir(e,t.children,n),we(),Zt(),be()},D=function(e,t,n,r,l,i,o,s){let a=arguments.length>8&&void 0!==arguments[8]&&arguments[8];const c=e&&e.children,u=e?e.shapeFlag:0,p=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void W(c,p,n,r,l,i,o,s,a);if(256&h)return void B(c,p,n,r,l,i,o,s,a)}8&f?(16&u&&J(c,l,i),p!==c&&d(n,p)):16&u?16&f?W(c,p,n,r,l,i,o,s,a):J(c,l,i,!0):(8&u&&d(n,""),16&f&&R(p,n,r,l,i,o,s,a))},B=(e,t,n,r,l,i,s,a,c)=>{t=t||o;const u=(e=e||o).length,p=t.length,d=Math.min(u,p);let h;for(h=0;h<d;h++){const r=t[h]=c?jr(t[h]):Tr(t[h]);y(e[h],r,n,null,l,i,s,a,c)}u>p?J(e,l,i,!0,!1,d):R(t,n,r,l,i,s,a,c,d)},W=(e,t,n,r,l,i,s,a,c)=>{let u=0;const p=t.length;let d=e.length-1,h=p-1;for(;u<=d&&u<=h;){const r=e[u],o=t[u]=c?jr(t[u]):Tr(t[u]);if(!$r(r,o))break;y(r,o,n,null,l,i,s,a,c),u++}for(;u<=d&&u<=h;){const r=e[d],o=t[h]=c?jr(t[h]):Tr(t[h]);if(!$r(r,o))break;y(r,o,n,null,l,i,s,a,c),d--,h--}if(u>d){if(u<=h){const e=h+1,o=e<p?t[e].el:r;for(;u<=h;)y(null,t[u]=c?jr(t[u]):Tr(t[u]),n,o,l,i,s,a,c),u++}}else if(u>h)for(;u<=d;)Z(e[u],l,i,!0),u++;else{const f=u,g=u,m=new Map;for(u=g;u<=h;u++){const e=t[u]=c?jr(t[u]):Tr(t[u]);null!=e.key&&m.set(e.key,u)}let v,w=0;const b=h-g+1;let k=!1,x=0;const _=new Array(b);for(u=0;u<b;u++)_[u]=0;for(u=f;u<=d;u++){const r=e[u];if(w>=b){Z(r,l,i,!0);continue}let o;if(null!=r.key)o=m.get(r.key);else for(v=g;v<=h;v++)if(0===_[v-g]&&$r(r,t[v])){o=v;break}void 0===o?Z(r,l,i,!0):(_[o-g]=u+1,o>=x?x=o:k=!0,y(r,t[o],n,null,l,i,s,a,c),w++)}const $=k?function(e){const t=e.slice(),n=[0];let r,l,i,o,s;const a=e.length;for(r=0;r<a;r++){const a=e[r];if(0!==a){if(l=n[n.length-1],e[l]<a){t[r]=l,n.push(r);continue}for(i=0,o=n.length-1;i<o;)s=i+o>>1,e[n[s]]<a?i=s+1:o=s;a<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,o=n[i-1];for(;i-- >0;)n[i]=o,o=t[o];return n}(_):o;for(v=$.length-1,u=b-1;u>=0;u--){const e=g+u,o=t[e],d=e+1<p?t[e+1].el:r;0===_[u]?y(null,o,n,d,l,i,s,a,c):k&&(v<0||u!==$[v]?q(o,n,d,2):v--)}}},q=function(e,t,r,l){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;const{el:o,type:s,transition:a,children:c,shapeFlag:u}=e;if(6&u)return void q(e.component.subTree,t,r,l);if(128&u)return void e.suspense.move(t,r,l);if(64&u)return void s.move(e,t,r,ee);if(s===pr){n(o,t,r);for(let e=0;e<c.length;e++)q(c[e],t,r,l);return void n(e.anchor,t,r)}if(s===fr)return void x(e,t,r);if(2!==l&&1&u&&a)if(0===l)a.beforeEnter(o),n(o,t,r),sr((()=>a.enter(o)),i);else{const{leave:e,delayLeave:l,afterLeave:i}=a,s=()=>n(o,t,r),c=()=>{e(o,(()=>{s(),i&&i()}))};l?l(o,s,c):c()}else n(o,t,r)},Z=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const{type:i,props:o,ref:s,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d}=e;if(null!=s&&or(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&d,f=!vn(e);let g;if(f&&(g=o&&o.onVnodeBeforeUnmount)&&Ur(g,t,e),6&u)Q(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);h&&gn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,l,ee,r):c&&(i!==pr||p>0&&64&p)?J(c,t,n,!1,!0):(i===pr&&384&p||!l&&16&u)&&J(a,t,n),r&&K(e)}(f&&(g=o&&o.onVnodeUnmounted)||h)&&sr((()=>{g&&Ur(g,t,e),h&&gn(e,null,t,"unmounted")}),n)},K=e=>{const{type:t,el:n,anchor:l,transition:i}=e;if(t===pr)return void G(n,l);if(t===fr)return void _(e);const o=()=>{r(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:r}=i,l=()=>t(n,o);r?r(e.el,o,l):l()}else o()},G=(e,t)=>{let n;for(;e!==t;)n=f(e),r(e),e=n;r(t)},Q=(e,t,n)=>{const{bum:r,scope:l,update:i,subTree:o,um:s}=e;r&&F(r),l.stop(),i&&(i.active=!1,Z(o,e,t,n)),s&&sr(s,t),sr((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},J=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];for(let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;i<e.length;i++)Z(e[i],t,n,r,l)},X=e=>6&e.shapeFlag?X(e.component.subTree):128&e.shapeFlag?e.suspense.next():f(e.anchor||e.el),Y=(e,t,n)=>{null==e?t._vnode&&Z(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),Zt(),Kt(),t._vnode=e},ee={p:y,um:Z,m:q,r:K,mt:M,mc:R,pc:D,pbc:L,n:X,o:e};let te,ne;t&&([te,ne]=t(ee));return{render:Y,hydrate:te,createApp:Dn(Y,te)}}(e)}function cr(e,t){let{effect:n,update:r}=e;n.allowRecurse=r.allowRecurse=t}function ur(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e.children,l=t.children;if(m(r)&&m(l))for(let e=0;e<r.length;e++){const t=r[e];let i=l[e];1&i.shapeFlag&&!i.dynamicChildren&&((i.patchFlag<=0||32===i.patchFlag)&&(i=l[e]=jr(l[e]),i.el=t.el),n||ur(t,i)),i.type===dr&&(i.el=t.el)}}const pr=Symbol.for("v-fgt"),dr=Symbol.for("v-txt"),hr=Symbol.for("v-cmt"),fr=Symbol.for("v-stc"),gr=[];let mr=null;function vr(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];gr.push(mr=e?null:[])}let yr=1;function wr(e){yr+=e}function br(e){return e.dynamicChildren=yr>0?mr||o:null,gr.pop(),mr=gr[gr.length-1]||null,yr>0&&mr&&mr.push(e),e}function kr(e,t,n,r,l,i){return br(Rr(e,t,n,r,l,i,!0))}function xr(e,t,n,r,l){return br(Er(e,t,n,r,l,!0))}function _r(e){return!!e&&!0===e.__v_isVNode}function $r(e,t){return e.type===t.type&&e.key===t.key}const Cr="__vInternal",Sr=e=>{let{key:t}=e;return null!=t?t:null},Ar=e=>{let{ref:t,ref_key:n,ref_for:r}=e;return"number"==typeof t&&(t=""+t),null!=t?k(t)||_t(t)||b(t)?{i:tn,r:t,k:n,f:!!r}:t:null};function Rr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e===pr?0:1,o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Sr(t),ref:t&&Ar(t),scopeId:nn,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:i,patchFlag:r,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:tn};return s?(Or(a,n),128&i&&e.normalize(a)):n&&(a.shapeFlag|=k(n)?8:16),yr>0&&!o&&mr&&(a.patchFlag>0||6&i)&&32!==a.patchFlag&&mr.push(a),a}const Er=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,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];e&&e!==Cn||(e=hr);if(_r(e)){const r=zr(e,t,!0);return n&&Or(r,n),yr>0&&!i&&mr&&(6&r.shapeFlag?mr[mr.indexOf(e)]=r:mr.push(r)),r.patchFlag|=-2,r}o=e,b(o)&&"__vccOpts"in o&&(e=e.__vccOpts);var o;if(t){t=function(e){return e?mt(e)||Cr in e?d({},e):e:null}(t);let{class:e,style:n}=t;e&&!k(e)&&(t.class=G(e)),_(n)&&(mt(n)&&!m(n)&&(n=d({},n)),t.style=B(n))}const s=k(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:_(e)?4:b(e)?2:0;return Rr(e,t,n,r,l,s,i,!0)};function zr(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{props:r,ref:l,patchFlag:i,children:o}=e,s=t?function(){const e={};for(let t=0;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];for(const t in n)if("class"===t)e.class!==n.class&&(e.class=G([e.class,n.class]));else if("style"===t)e.style=B([e.style,n.style]);else if(u(t)){const r=e[t],l=n[t];!l||r===l||m(r)&&r.includes(l)||(e[t]=r?[].concat(r,l):l)}else""!==t&&(e[t]=n[t])}return e}(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Sr(s),ref:t&&t.ref?n&&l?m(l)?l.concat(Ar(t)):[l,Ar(t)]:Ar(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==pr?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&zr(e.ssContent),ssFallback:e.ssFallback&&zr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Lr(){return Er(dr,null,arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}function Ir(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(vr(),xr(hr,null,e)):Er(hr,null,e)}function Tr(e){return null==e||"boolean"==typeof e?Er(hr):m(e)?Er(pr,null,e.slice()):"object"==typeof e?jr(e):Er(dr,null,String(e))}function jr(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:zr(e)}function Or(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(m(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),Or(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Cr in t?3===r&&tn&&(1===tn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=tn}}else b(t)?(t={default:t,_ctx:tn},n=32):(t=String(t),64&r?(n=16,t=[Lr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ur(e,t,n){Tt(e,t,7,[n,arguments.length>3&&void 0!==arguments[3]?arguments[3]:null])}const Mr=Nn();let Pr=0;let Fr=null;const Nr=()=>Fr||tn;let Vr,Dr,Hr="__VUE_INSTANCE_SETTERS__";(Dr=H()[Hr])||(Dr=H()[Hr]=[]),Dr.push((e=>Fr=e)),Vr=e=>{Dr.length>1?Dr.forEach((t=>t(e))):Dr[0](e)};const Br=e=>{Vr(e),e.scope.on()},Wr=()=>{Fr&&Fr.scope.off(),Vr(null)};function qr(e){return 4&e.vnode.shapeFlag}let Zr,Kr=!1;function Gr(e,t,n){b(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_(t)&&(e.setupState=zt(t)),Qr(e,n)}function Qr(e,t,n){const r=e.type;if(!e.render){if(!t&&Zr&&!r.render){const t=r.template||function(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:l,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,s=i.get(t);let a;return s?a=s:l.length||n||r?(a={},l.length&&l.forEach((e=>Tn(a,e,o,!0))),Tn(a,t,o)):a=t,_(t)&&i.set(t,a),a}(e).template;if(t){const{isCustomElement:n,compilerOptions:l}=e.appContext.config,{delimiters:i,compilerOptions:o}=r,s=d(d({isCustomElement:n,delimiters:i},l),o);r.render=Zr(t,s)}}e.render=r.render||s}}function Jr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(zt(yt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in En?En[n](e):void 0,has:(e,t)=>t in e||t in En}))}const Xr=(e,t)=>function(e,t){let n,r,l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i=b(e);return i?(n=e,r=s):(n=e.get,r=e.set),new Lt(n,r,i||!r,l)}(e,t,Kr);function Yr(e,t,n){const r=arguments.length;return 2===r?_(t)&&!m(t)?_r(t)?Er(e,null,[t]):Er(e,t):Er(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&_r(n)&&(n=[n]),Er(e,t,n))}const el=Symbol.for("v-scx"),tl=()=>Bn(el),nl="3.3.4",rl="undefined"!=typeof document?document:null,ll=rl&&rl.createElement("template"),il={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const l=t?rl.createElementNS("http://www.w3.org/2000/svg",e):rl.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&l.setAttribute("multiple",r.multiple),l},createText:e=>rl.createTextNode(e),createComment:e=>rl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>rl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,l,i){const o=n?n.previousSibling:t.lastChild;if(l&&(l===i||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),l!==i&&(l=l.nextSibling););else{ll.innerHTML=r?`<svg>${e}</svg>`:e;const l=ll.content;if(r){const e=l.firstChild;for(;e.firstChild;)l.appendChild(e.firstChild);l.removeChild(e)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};const ol=/\s*!important$/;function sl(e,t,n){if(m(n))n.forEach((n=>sl(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=cl[t];if(n)return n;let r=T(t);if("filter"!==r&&r in e)return cl[t]=r;r=U(r);for(let n=0;n<al.length;n++){const l=al[n]+r;if(l in e)return cl[t]=l}return t}(e,t);ol.test(n)?e.setProperty(O(r),n.replace(ol,""),"important"):e[r]=n}}const al=["Webkit","Moz","ms"],cl={};const ul="http://www.w3.org/1999/xlink";function pl(e,t,n,r){e.addEventListener(t,n,r)}function dl(e,t,n,r){let l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;const i=e._vei||(e._vei={}),o=i[t];if(r&&o)o.value=r;else{const[n,s]=function(e){let t;if(hl.test(e)){let n;for(t={};n=e.match(hl);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):O(e.slice(2));return[n,t]}(t);if(r){const o=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();Tt(function(e,t){if(m(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=ml(),n}(r,l);pl(e,n,o,s)}else o&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,o,s),i[t]=void 0)}}const hl=/(?:Once|Passive|Capture)$/;let fl=0;const gl=Promise.resolve(),ml=()=>fl||(gl.then((()=>fl=0)),fl=Date.now());const vl=/^on[a-z]/;const yl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return m(t)?e=>F(t,e):t};function wl(e){e.target.composing=!0}function bl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const kl={created(e,t,n){let{modifiers:{lazy:r,trim:l,number:i}}=t;e._assign=yl(n);const o=i||n.props&&"number"===n.props.type;pl(e,r?"change":"input",(t=>{if(t.target.composing)return;let n=e.value;l&&(n=n.trim()),o&&(n=V(n)),e._assign(n)})),l&&pl(e,"change",(()=>{e.value=e.value.trim()})),r||(pl(e,"compositionstart",wl),pl(e,"compositionend",bl),pl(e,"change",bl))},mounted(e,t){let{value:n}=t;e.value=null==n?"":n},beforeUpdate(e,t,n){let{value:r,modifiers:{lazy:l,trim:i,number:o}}=t;if(e._assign=yl(n),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(l)return;if(i&&e.value.trim()===r)return;if((o||"number"===e.type)&&V(e.value)===r)return}const s=null==r?"":r;e.value!==s&&(e.value=s)}},xl={deep:!0,created(e,t,n){e._assign=yl(n),pl(e,"change",(()=>{const t=e._modelValue,n=Al(e),r=e.checked,l=e._assign;if(m(t)){const e=Y(t,n),i=-1!==e;if(r&&!i)l(t.concat(n));else if(!r&&i){const n=[...t];n.splice(e,1),l(n)}}else if(y(t)){const e=new Set(t);r?e.add(n):e.delete(n),l(e)}else l(Rl(e,r))}))},mounted:_l,beforeUpdate(e,t,n){e._assign=yl(n),_l(e,t,n)}};function _l(e,t,n){let{value:r,oldValue:l}=t;e._modelValue=r,m(r)?e.checked=Y(r,n.props.value)>-1:y(r)?e.checked=r.has(n.props.value):r!==l&&(e.checked=X(r,Rl(e,!0)))}const $l={created(e,t,n){let{value:r}=t;e.checked=X(r,n.props.value),e._assign=yl(n),pl(e,"change",(()=>{e._assign(Al(e))}))},beforeUpdate(e,t,n){let{value:r,oldValue:l}=t;e._assign=yl(n),r!==l&&(e.checked=X(r,n.props.value))}},Cl={deep:!0,created(e,t,n){let{value:r,modifiers:{number:l}}=t;const i=y(r);pl(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>l?V(Al(e)):Al(e)));e._assign(e.multiple?i?new Set(t):t:t[0])})),e._assign=yl(n)},mounted(e,t){let{value:n}=t;Sl(e,n)},beforeUpdate(e,t,n){e._assign=yl(n)},updated(e,t){let{value:n}=t;Sl(e,n)}};function Sl(e,t){const n=e.multiple;if(!n||m(t)||y(t)){for(let r=0,l=e.options.length;r<l;r++){const l=e.options[r],i=Al(l);if(n)m(t)?l.selected=Y(t,i)>-1:l.selected=t.has(i);else if(X(Al(l),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Al(e){return"_value"in e?e._value:e.value}function Rl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const El={created(e,t,n){zl(e,t,n,null,"created")},mounted(e,t,n){zl(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){zl(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){zl(e,t,n,r,"updated")}};function zl(e,t,n,r,l){const i=function(e,t){switch(e){case"SELECT":return Cl;case"TEXTAREA":return kl;default:switch(t){case"checkbox":return xl;case"radio":return $l;default:return kl}}}(e.tagName,n.props&&n.props.type)[l];i&&i(e,t,n,r)}const Ll={beforeMount(e,t,n){let{value:r}=t,{transition:l}=n;e._vod="none"===e.style.display?"":e.style.display,l&&r?l.beforeEnter(e):Il(e,r)},mounted(e,t,n){let{value:r}=t,{transition:l}=n;l&&r&&l.enter(e)},updated(e,t,n){let{value:r,oldValue:l}=t,{transition:i}=n;!r!=!l&&(i?r?(i.beforeEnter(e),Il(e,!0),i.enter(e)):i.leave(e,(()=>{Il(e,!1)})):Il(e,r))},beforeUnmount(e,t){let{value:n}=t;Il(e,n)}};function Il(e,t){e.style.display=t?e._vod:"none"}const Tl=d({patchProp:function(e,t,n,r){let l=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,a=arguments.length>8?arguments[8]:void 0;"class"===t?function(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,l):"style"===t?function(e,t,n){const r=e.style,l=k(n);if(n&&!l){if(t&&!k(t))for(const e in t)null==n[e]&&sl(r,e,"");for(const e in n)sl(r,e,n[e])}else{const i=r.display;l?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}(e,n,r):u(t)?p(t)||dl(e,t,n,r,o):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&vl.test(t)&&b(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(vl.test(t)&&k(n))return!1;return t in e}(e,t,r,l))?function(e,t,n,r,l,i,o){if("innerHTML"===t||"textContent"===t)return r&&o(r,l,i),void(e[t]=null==n?"":n);const s=e.tagName;if("value"===t&&"PROGRESS"!==s&&!s.includes("-")){e._value=n;const r=null==n?"":n;return("OPTION"===s?e.getAttribute("value"):e.value)!==r&&(e.value=r),void(null==n&&e.removeAttribute(t))}let a=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=J(n):null==n&&"string"===r?(n="",a=!0):"number"===r&&(n=0,a=!0)}try{e[t]=n}catch(e){}a&&e.removeAttribute(t)}(e,t,r,i,o,s,a):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,n,r,l){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(ul,t.slice(6,t.length)):e.setAttributeNS(ul,t,n);else{const r=Q(t);null==n||r&&!J(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,l))}},il);let jl;const Ol=function(){const e=(jl||(jl=ar(Tl))).createApp(...arguments),{mount:t}=e;return e.mount=n=>{const r=function(e){if(k(e)){return document.querySelector(e)}return e}(n);if(!r)return;const l=e._component;b(l)||l.render||l.template||(l.template=r.innerHTML),r.innerHTML="";const i=t(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},e};const Ul={"Content-Type":"application/json"},Ml=(e,t="")=>{if("object"==typeof e&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},Pl=({serverURL:e,lang:t,paths:n,type:r,signal:l})=>fetch(`${e}/article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:l}).then((e=>e.json())),Fl=({serverURL:e,lang:t,path:n,type:r,action:l})=>fetch(`${e}/article?lang=${t}`,{method:"POST",headers:Ul,body:JSON.stringify({path:n,type:r,action:l})}).then((e=>e.json())),Nl=({serverURL:e,lang:t,token:n,objectId:r,comment:l})=>fetch(`${e}/comment/${r}?lang=${t}`,{method:"PUT",headers:{...Ul,Authorization:`Bearer ${n}`},body:JSON.stringify(l)}).then((e=>e.json())).then((e=>Ml(e,"Update comment"))),Vl=e=>{try{e=decodeURI(e)}catch(e){}return e},Dl=(e="")=>e.replace(/\/$/u,""),Hl=e=>/^(https?:)?\/\//.test(e),Bl=["nick","mail","link"],Wl=e=>e.filter((e=>Bl.includes(e))),ql=["//unpkg.com/@waline/emojis@1.1.0/weibo"],Zl=["//unpkg.com/@waline/emojis/tieba/tieba_agree.png","//unpkg.com/@waline/emojis/tieba/tieba_look_down.png","//unpkg.com/@waline/emojis/tieba/tieba_sunglasses.png","//unpkg.com/@waline/emojis/tieba/tieba_pick_nose.png","//unpkg.com/@waline/emojis/tieba/tieba_awkward.png","//unpkg.com/@waline/emojis/tieba/tieba_sleep.png"],Kl=e=>new Promise(((t,n)=>{if(e.size>128e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result?.toString()||""),r.onerror=n})),Gl=e=>!0===e?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',Ql=e=>{const t=async(t,n={})=>fetch(`https://api.giphy.com/v1/gifs/${t}?${new URLSearchParams({lang:e,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...n}).toString()}`).then((e=>e.json())).then((({data:e})=>e.map((e=>({title:e.title,src:e.images.downsized_medium.url})))));return{search:e=>t("search",{q:e,offset:"0"}),default:()=>t("trending",{}),more:(e,n=0)=>t("search",{q:e,offset:n.toString()})}},Jl=new RegExp(`(${/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source}|${/</.source})|((?:${/(?:^|\s)\/\/(.+?)$/gm.source})|(?:${/\/\*([\S\s]*?)\*\//gm.source}))`,"gmi"),Xl=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],Yl={},ei=e=>{let t=0;return e.replace(Jl,((e,n,r)=>{if(r)return`<span style="color: slategray">${r}</span>`;if("<"===n)return"&lt;";let l;Yl[n]?l=Yl[n]:(l=Xl[t],Yl[n]=l);const i=`<span style="color: #${l}">${n}</span>`;return t=++t%Xl.length,i}))},ti=["nick","nickError","mail","mailError","link","optional","placeholder","sofa","submit","like","cancelLike","reply","cancelReply","comment","refresh","more","preview","emoji","uploadImage","seconds","minutes","hours","days","now","uploading","login","logout","admin","sticky","word","wordHint","anonymous","level0","level1","level2","level3","level4","level5","gif","gifSearchPlaceholder","profile","approved","waiting","spam","unsticky","oldest","latest","hottest","reactionTitle"],ni=e=>Object.fromEntries(e.map(((e,t)=>[ti[t],e])));var ri=ni(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Like","Cancel like","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words","Please input comments between $0 and $1 words!\n Current word number: $2","Anonymous","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF","Profile","Approved","Waiting","Spam","Unsticky","Oldest","Latest","Hottest","What do you think?"]),li=ni(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),ii=ni(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Like","Cancel like","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras","Favor enviar comentário com $0 a $1 palavras!\n Número de palavras atuais: $2","Anônimo","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Pesquisar GIF","informação pessoal","Aprovado","Espera","Spam","Unsticky","Mais velho","Mais recentes","Mais quente","O que você acha?"]),oi=ni(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова","Пожалуйста, введите комментарии от $0 до $1 слов!\nНомер текущего слова: $2","Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),si=ni(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),ai=ni(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字","留言字數應在 $0 到 $1 字之間!\n目前字數:$2","匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const ci={zh:si,"zh-cn":si,"zh-CN":si,"zh-tw":ai,"zh-TW":ai,en:ri,"en-US":ri,"en-us":ri,jp:li,ja:li,"jp-jp":li,"jp-JP":li,"pt-br":ii,"pt-BR":ii,ru:oi,"ru-ru":oi,"ru-RU":oi},ui=e=>{const t=Dl(e);return Hl(t)?t:`https://${t}`},pi=e=>Array.isArray(e)?e:!!e&&[0,e],di=(e,t)=>"function"==typeof e?e:!1!==e&&t,hi="{--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}",fi=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},gi=(e,t,n)=>{if(!e)return"";const r="string"==typeof e?new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e):e,l=t.getTime()-r.getTime(),i=Math.floor(l/864e5);if(0===i){const e=l%864e5,t=Math.floor(e/36e5);if(0===t){const t=e%36e5,r=Math.floor(t/6e4);if(0===r){const e=t%6e4;return`${Math.round(e/1e3)} ${n.seconds}`}return`${r} ${n.minutes}`}return`${t} ${n.hours}`}return i<0?n.now:i<8?`${i} ${n.days}`:(e=>{const t=fi(e.getDate(),2),n=fi(e.getMonth()+1,2);return`${fi(e.getFullYear(),2)}-${n}-${t}`})(r)},mi=/^[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])?)*$/;function vi(e){return!!le()&&(function(e){ne&&ne.cleanups.push(e)}(e),!0)}function yi(e){return"function"==typeof e?e():Rt(e)}const wi="undefined"!=typeof window&&"undefined"!=typeof document,bi=Object.prototype.toString,ki=e=>"[object Object]"===bi.call(e),xi=()=>{};function _i(e,t){return function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return new Promise(((n,l)=>{Promise.resolve(e((()=>t.apply(this,r)),{fn:t,thisArg:this,args:r})).then(n).catch(l)}))}}const $i=e=>e();function Ci(e){return _i(function(e){let t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=xi;const i=e=>{clearTimeout(e),l(),l=xi};return o=>{const s=yi(e),a=yi(r.maxWait);return t&&i(t),s<=0||void 0!==a&&a<=0?(n&&(i(n),n=null),Promise.resolve(o())):new Promise(((e,c)=>{l=r.rejectOnCancel?c:e,a&&!n&&(n=setTimeout((()=>{t&&i(t),n=null,e(o())}),a)),t=setTimeout((()=>{n&&i(n),n=null,e(o())}),s)}))}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),e)}function Si(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{eventFilter:r,...l}=n,{eventFilter:i,pause:o,resume:s,isActive:a}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$i;const t=$t(!0);return{isActive:pt(t),pause:function(){t.value=!1},resume:function(){t.value=!0},eventFilter:function(){t.value&&e(...arguments)}}}(r),c=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{eventFilter:r=$i,...l}=n;return pn(e,_i(r,t),l)}(e,t,{...l,eventFilter:i});return{stop:c,pause:o,resume:s,isActive:a}}function Ai(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Nr()?bn(e):t?e():Bt(e)}function Ri(e){var t;const n=yi(e);return null!=(t=null==n?void 0:n.$el)?t:n}const Ei=wi?window:void 0,zi=wi?window.document:void 0;function Li(){let e,t,n,r;for(var l=arguments.length,i=new Array(l),o=0;o<l;o++)i[o]=arguments[o];if("string"==typeof i[0]||Array.isArray(i[0])?([t,n,r]=i,e=Ei):[e,t,n,r]=i,!e)return xi;Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);const s=[],a=()=>{s.forEach((e=>e())),s.length=0},c=pn((()=>[Ri(e),yi(r)]),(e=>{let[r,l]=e;if(a(),!r)return;const i=ki(l)?{...l}:l;s.push(...t.flatMap((e=>n.map((t=>((e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)))(r,e,t,i))))))}),{immediate:!0,flush:"post"}),u=()=>{c(),a()};return vi(u),u}const Ii="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Ti="__vueuse_ssr_handlers__",ji=Oi();function Oi(){return Ti in Ii||(Ii[Ti]=Ii[Ti]||{}),Ii[Ti]}const Ui={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()}},Mi="vueuse-storage";function Pi(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var l;const{flush:i="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:p=Ei,eventFilter:d,onError:h=(e=>{console.error(e)})}=r,f=(u?Ct:$t)(t);if(!n)try{n=function(e,t){return ji[e]||t}("getDefaultStorage",(()=>{var e;return null==(e=Ei)?void 0:e.localStorage}))()}catch(e){h(e)}if(!n)return f;const g=yi(t),m=function(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"object"==typeof e?"object":Number.isNaN(e)?"any":"number"}(g),v=null!=(l=r.serializer)?l:Ui[m],{pause:y,resume:w}=Si(f,(()=>function(t){try{if(null==t)n.removeItem(e);else{const r=v.write(t),l=n.getItem(e);l!==r&&(n.setItem(e,r),p&&p.dispatchEvent(new CustomEvent(Mi,{detail:{key:e,oldValue:l,newValue:r,storageArea:n}})))}}catch(e){h(e)}}(f.value)),{flush:i,deep:o,eventFilter:d});return p&&s&&(Li(p,"storage",b),Li(p,Mi,(function(e){b(e.detail)}))),b(),f;function b(t){if(!t||t.storageArea===n)if(t&&null==t.key)f.value=g;else if(!t||t.key===e){y();try{(null==t?void 0:t.newValue)!==v.write(f.value)&&(f.value=function(t){const r=t?t.newValue:n.getItem(e);if(null==r)return a&&null!==g&&n.setItem(e,v.write(g)),g;if(!t&&c){const e=v.read(r);return"function"==typeof c?c(e,g):"object"!==m||Array.isArray(e)?e:{...g,...e}}return"string"!=typeof r?r:v.read(r)}(t))}catch(e){h(e)}finally{t?Bt(w):w()}}}}function Fi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=$t(new Date),l=()=>r.value=new Date,i="requestAnimationFrame"===n?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{immediate:n=!0,window:r=Ei}=t,l=$t(!1);let i=0,o=null;function s(t){l.value&&r&&(e({delta:t-(i||t),timestamp:t}),i=t,o=r.requestAnimationFrame(s))}function a(){!l.value&&r&&(l.value=!0,o=r.requestAnimationFrame(s))}function c(){l.value=!1,null!=o&&r&&(r.cancelAnimationFrame(o),o=null)}return n&&a(),vi(c),{isActive:pt(l),pause:c,resume:a}}(l,{immediate:!0}):function(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:r=!0,immediateCallback:l=!1}=n;let i=null;const o=$t(!1);function s(){i&&(clearInterval(i),i=null)}function a(){o.value=!1,s()}function c(){const n=yi(t);n<=0||(o.value=!0,l&&e(),s(),i=setInterval(e,n))}r&&wi&&c(),(_t(t)||"function"==typeof t)&&vi(pn(t,(()=>{o.value&&wi&&c()})));return vi(a),{isActive:o,pause:a,resume:c}}(l,n,{immediate:!0});return t?{now:r,...i}:r}function Ni(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xi,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{immediate:r=!0,manual:l=!1,type:i="text/javascript",async:o=!0,crossOrigin:s,referrerPolicy:a,noModule:c,defer:u,document:p=zi,attrs:d={}}=n,h=$t(null);let f=null;const g=function(){return f||(f=(n=>new Promise(((r,l)=>{const f=e=>(h.value=e,r(e),e);if(!p)return void r(!1);let g=!1,m=p.querySelector(`script[src="${yi(e)}"]`);m?m.hasAttribute("data-loaded")&&f(m):(m=p.createElement("script"),m.type=i,m.async=o,m.src=yi(e),u&&(m.defer=u),s&&(m.crossOrigin=s),c&&(m.noModule=c),a&&(m.referrerPolicy=a),Object.entries(d).forEach((e=>{let[t,n]=e;return null==m?void 0:m.setAttribute(t,n)})),g=!0),m.addEventListener("error",(e=>l(e))),m.addEventListener("abort",(e=>l(e))),m.addEventListener("load",(()=>{m.setAttribute("data-loaded","true"),t(m),f(m)})),g&&(m=p.head.appendChild(m)),n||f(m)})))(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])),f},m=()=>{if(!p)return;f=null,h.value&&(h.value=null);const t=p.querySelector(`script[src="${yi(e)}"]`);t&&p.head.removeChild(t)};var v;return r&&!l&&Ai(g),l||(v=m,Nr()&&xn(v)),{scriptTag:h,load:g,unload:m}}let Vi=0;const Di=e=>{const t=Pi("WALINE_EMOJI",{}),n=Boolean(/@[0-9]+\.[0-9]+\.[0-9]+/.test(e));if(n){const n=t.value[e];if(n)return Promise.resolve(n)}return fetch(`${e}/info.json`).then((e=>e.json())).then((r=>{const l={folder:e,...r};return n&&(t.value[e]=l),l}))},Hi=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,Bi=e=>{"AbortError"!==e.name&&console.error(e.message)},Wi=e=>e.type.includes("image"),qi=e=>{const t=Array.from(e).find(Wi);return t?t.getAsFile():null};function Zi(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let Ki={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const Gi=/[&<>"']/,Qi=new RegExp(Gi.source,"g"),Ji=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Xi=new RegExp(Ji.source,"g"),Yi={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},eo=e=>Yi[e];function to(e,t){if(t){if(Gi.test(e))return e.replace(Qi,eo)}else if(Ji.test(e))return e.replace(Xi,eo);return e}const no=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function ro(e){return e.replace(no,((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 lo=/(^|[^\[])\^/g;function io(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(lo,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const oo=/[^\w:]/g,so=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ao(e,t,n){if(e){let e;try{e=decodeURIComponent(ro(n)).replace(oo,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!so.test(n)&&(n=function(e,t){co[" "+e]||(uo.test(e)?co[" "+e]=e+"/":co[" "+e]=mo(e,"/",!0));e=co[" "+e];const n=-1===e.indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(po,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(ho,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const co={},uo=/^[^:]+:\/*[^/]*$/,po=/^([^:]+:)[\s\S]*$/,ho=/^([^:]+:\/*[^/]*)[\s\S]*$/;const fo={exec:function(){}};function go(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let r=!1,l=t;for(;--l>=0&&"\\"===n[l];)r=!r;return r?"|":" |"})).split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function mo(e,t,n){const r=e.length;if(0===r)return"";let l=0;for(;l<r;){const i=e.charAt(r-l-1);if(i!==t||n){if(i===t||!n)break;l++}else l++}return e.slice(0,r-l)}function vo(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function yo(e,t,n,r){const l=t.href,i=t.title?to(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:l,title:i,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,e}return{type:"image",raw:n,href:l,title:i,text:to(o)}}class wo{constructor(e){this.options=e||Ki}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:mo(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):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=mo(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,""),n=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(e);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:r,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,l,i,o,s,a,c,u,p,d,h,f=t[1].trim();const g=f.length>1,m={type:"list",raw:"",ordered:g,start:g?+f.slice(0,-1):"",loose:!1,items:[]};f=g?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=g?f:"[*+-]");const v=new RegExp(`^( {0,3}${f})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(h=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),u=e.split("\n",1)[0],this.options.pedantic?(i=2,d=c.trimLeft()):(i=t[2].search(/[^ ]/),i=i>4?1:i,d=c.slice(i),i+=t[1].length),s=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),h=!0),!h){const t=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),r=new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),l=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),o=new RegExp(`^ {0,${Math.min(3,i-1)}}#`);for(;e&&(p=e.split("\n",1)[0],u=p,this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!l.test(u))&&!o.test(u)&&!t.test(u)&&!r.test(e);){if(u.search(/[^ ]/)>=i||!u.trim())d+="\n"+u.slice(i);else{if(s)break;if(c.search(/[^ ]/)>=4)break;if(l.test(c))break;if(o.test(c))break;if(r.test(c))break;d+="\n"+u}s||u.trim()||(s=!0),n+=p+"\n",e=e.substring(p.length+1),c=u.slice(i)}}m.loose||(a?m.loose=!0:/\n *\n *$/.test(n)&&(a=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(d),r&&(l="[ ] "!==r[0],d=d.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!r,checked:l,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(o=0;o<y;o++)if(this.lexer.state.top=!1,m.items[o].tokens=this.lexer.blockTokens(m.items[o].text,[]),!m.loose){const e=m.items[o].tokens.filter((e=>"space"===e.type)),t=e.length>0&&e.some((e=>/\n.*\n/.test(e.raw)));m.loose=t}if(m.loose)for(o=0;o<y;o++)m.items[o].loose=!0;return m}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){const n=this.options.sanitizer?this.options.sanitizer(t[0]):to(t[0]);e.type="paragraph",e.text=n,e.tokens=this.lexer.inline(n)}return e}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:go(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,r,l,i,o=e.align.length;for(n=0;n<o;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(o=e.rows.length,n=0;n<o;n++)e.rows[n]=go(e.rows[n],e.header.length).map((e=>({text:e})));for(o=e.header.length,r=0;r<o;r++)e.header[r].tokens=this.lexer.inline(e.header[r].text);for(o=e.rows.length,r=0;r<o;r++)for(i=e.rows[r],l=0;l<i.length;l++)i[l].tokens=this.lexer.inline(i[l].text);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:to(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):to(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=mo(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,l=0;for(;l<n;l++)if("\\"===e[l])l++;else if(e[l]===t[0])r++;else if(e[l]===t[1]&&(r--,r<0))return l;return-1}(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),yo(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return yo(n,e,n[0],this.lexer)}}emStrong(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;const l=r[1]||r[2]||"";if(!l||l&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let l,i,o=n,s=0;const a="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=a.exec(t));){if(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!l)continue;if(i=l.length,r[3]||r[4]){o+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){s+=i;continue}if(o-=i,o>0)continue;i=Math.min(i,i+o+s);const t=e.slice(0,n+r.index+(r[0].length-l.length)+i);if(Math.min(n,i)%2){const e=t.slice(1,-1);return{type:"em",raw:t,text:e,tokens:this.lexer.inlineTokens(e)}}const a=t.slice(2,-2);return{type:"strong",raw:t,text:a,tokens:this.lexer.inlineTokens(a)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=to(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,r;return"@"===n[2]?(e=to(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=to(n[1]),r=e),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=to(this.options.mangle?t(n[0]):n[0]),r="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=to(n[0]),r="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):to(n[0]):n[0]:to(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const bo={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:fo,lheading:/^((?:.|\n(?!\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?'|\([^()]*\))/};bo.def=io(bo.def).replace("label",bo._label).replace("title",bo._title).getRegex(),bo.bullet=/(?:[*+-]|\d{1,9}[.)])/,bo.listItemStart=io(/^( *)(bull) */).replace("bull",bo.bullet).getRegex(),bo.list=io(bo.list).replace(/bull/g,bo.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+bo.def.source+")").getRegex(),bo._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",bo._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,bo.html=io(bo.html,"i").replace("comment",bo._comment).replace("tag",bo._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),bo.paragraph=io(bo._paragraph).replace("hr",bo.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bo._tag).getRegex(),bo.blockquote=io(bo.blockquote).replace("paragraph",bo.paragraph).getRegex(),bo.normal={...bo},bo.gfm={...bo.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},bo.gfm.table=io(bo.gfm.table).replace("hr",bo.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bo._tag).getRegex(),bo.gfm.paragraph=io(bo._paragraph).replace("hr",bo.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",bo.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bo._tag).getRegex(),bo.pedantic={...bo.normal,html:io("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",bo._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:fo,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:io(bo.normal._paragraph).replace("hr",bo.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",bo.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const ko={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:fo,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:fo,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function xo(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function _o(e){let t,n,r="";const l=e.length;for(t=0;t<l;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}ko._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",ko.punctuation=io(ko.punctuation).replace(/punctuation/g,ko._punctuation).getRegex(),ko.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,ko.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,ko._comment=io(bo._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),ko.emStrong.lDelim=io(ko.emStrong.lDelim).replace(/punct/g,ko._punctuation).getRegex(),ko.emStrong.rDelimAst=io(ko.emStrong.rDelimAst,"g").replace(/punct/g,ko._punctuation).getRegex(),ko.emStrong.rDelimUnd=io(ko.emStrong.rDelimUnd,"g").replace(/punct/g,ko._punctuation).getRegex(),ko._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ko._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ko._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])?)+(?![-_])/,ko.autolink=io(ko.autolink).replace("scheme",ko._scheme).replace("email",ko._email).getRegex(),ko._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ko.tag=io(ko.tag).replace("comment",ko._comment).replace("attribute",ko._attribute).getRegex(),ko._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ko._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,ko._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ko.link=io(ko.link).replace("label",ko._label).replace("href",ko._href).replace("title",ko._title).getRegex(),ko.reflink=io(ko.reflink).replace("label",ko._label).replace("ref",bo._label).getRegex(),ko.nolink=io(ko.nolink).replace("ref",bo._label).getRegex(),ko.reflinkSearch=io(ko.reflinkSearch,"g").replace("reflink",ko.reflink).replace("nolink",ko.nolink).getRegex(),ko.normal={...ko},ko.pedantic={...ko.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:io(/^!?\[(label)\]\((.*?)\)/).replace("label",ko._label).getRegex(),reflink:io(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ko._label).getRegex()},ko.gfm={...ko.normal,escape:io(ko.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},ko.gfm.url=io(ko.gfm.url,"i").replace("email",ko.gfm._extended_email).getRegex(),ko.breaks={...ko.gfm,br:io(ko.br).replace("{2,}","*").getRegex(),text:io(ko.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};class $o{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Ki,this.options.tokenizer=this.options.tokenizer||new wo,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:bo.normal,inline:ko.normal};this.options.pedantic?(t.block=bo.pedantic,t.inline=ko.pedantic):this.options.gfm&&(t.block=bo.gfm,this.options.breaks?t.inline=ko.breaks:t.inline=ko.gfm),this.tokenizer.rules=t}static get rules(){return{block:bo,inline:ko}}static lex(e,t){return new $o(t).lex(e)}static lexInline(e,t){return new $o(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e){let t,n,r,l,i=arguments.length>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,i))&&(e=e.substring(t.raw.length),i.push(t),!0)))))if(t=this.tokenizer.space(e))e=e.substring(t.raw.length),1===t.raw.length&&i.length>0?i[i.length-1].raw+="\n":i.push(t);else if(t=this.tokenizer.code(e))e=e.substring(t.raw.length),n=i[i.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?i.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),i.push(t);else if(t=this.tokenizer.heading(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.hr(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.blockquote(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.list(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.html(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.def(e))e=e.substring(t.raw.length),n=i[i.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),i.push(t);else if(t=this.tokenizer.lheading(e))e=e.substring(t.raw.length),i.push(t);else{if(r=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let l;this.options.extensions.startBlock.forEach((function(e){l=e.call({lexer:this},n),"number"==typeof l&&l>=0&&(t=Math.min(t,l))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(t=this.tokenizer.paragraph(r)))n=i[i.length-1],l&&"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):i.push(t),l=r.length!==e.length,e=e.substring(t.raw.length);else if(t=this.tokenizer.text(e))e=e.substring(t.raw.length),n=i[i.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):i.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,i}inline(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e){let t,n,r,l,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(l=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,l.index)+"["+vo("a",l[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(l=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,l.index)+"["+vo("a",l[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(l=this.tokenizer.rules.inline.escapedEmSt.exec(a));)a=a.slice(0,l.index+l[0].length-2)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(i||(o=""),i=!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,a,o))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,_o))e=e.substring(t.raw.length),s.push(t);else if(this.state.inLink||!(t=this.tokenizer.url(e,_o))){if(r=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let l;this.options.extensions.startInline.forEach((function(e){l=e.call({lexer:this},n),"number"==typeof l&&l>=0&&(t=Math.min(t,l))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(t=this.tokenizer.inlineText(r,xo))e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(o=t.raw.slice(-1)),i=!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 Co{constructor(e){this.options=e||Ki}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+to(r)+'">'+(n?e:to(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:to(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>\n${e}</blockquote>\n`}html(e){return e}heading(e,t,n,r){if(this.options.headerIds){return`<h${t} id="${this.options.headerPrefix+r.slug(n)}">${e}</h${t}>\n`}return`<h${t}>${e}</h${t}>\n`}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return`<li>${e}</li>\n`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>\n`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr>\n${e}</tr>\n`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>\n`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){if(null===(e=ao(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+e+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=ao(this.options.sanitize,this.options.baseUrl,e)))return n;let r=`<img src="${e}" alt="${n}"`;return t&&(r+=` title="${t}"`),r+=this.options.xhtml?"/>":">",r}text(e){return e}}class So{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 Ao{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class Ro{constructor(e){this.options=e||Ki,this.options.renderer=this.options.renderer||new Co,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new So,this.slugger=new Ao}static parse(e,t){return new Ro(t).parse(e)}static parseInline(e,t){return new Ro(t).parseInline(e)}parse(e){let t,n,r,l,i,o,s,a,c,u,p,d,h,f,g,m,v,y,w,b=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],k="";const x=e.length;for(t=0;t<x;t++)if(u=e[t],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[u.type]&&(w=this.options.extensions.renderers[u.type].call({parser:this},u),!1!==w||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type)))k+=w||"";else switch(u.type){case"space":continue;case"hr":k+=this.renderer.hr();continue;case"heading":k+=this.renderer.heading(this.parseInline(u.tokens),u.depth,ro(this.parseInline(u.tokens,this.textRenderer)),this.slugger);continue;case"code":k+=this.renderer.code(u.text,u.lang,u.escaped);continue;case"table":for(a="",s="",l=u.header.length,n=0;n<l;n++)s+=this.renderer.tablecell(this.parseInline(u.header[n].tokens),{header:!0,align:u.align[n]});for(a+=this.renderer.tablerow(s),c="",l=u.rows.length,n=0;n<l;n++){for(o=u.rows[n],s="",i=o.length,r=0;r<i;r++)s+=this.renderer.tablecell(this.parseInline(o[r].tokens),{header:!1,align:u.align[r]});c+=this.renderer.tablerow(s)}k+=this.renderer.table(a,c);continue;case"blockquote":c=this.parse(u.tokens),k+=this.renderer.blockquote(c);continue;case"list":for(p=u.ordered,d=u.start,h=u.loose,l=u.items.length,c="",n=0;n<l;n++)g=u.items[n],m=g.checked,v=g.task,f="",g.task&&(y=this.renderer.checkbox(m),h?g.tokens.length>0&&"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),c+=this.renderer.listitem(f,v,m);k+=this.renderer.list(c,p,d);continue;case"html":k+=this.renderer.html(u.text);continue;case"paragraph":k+=this.renderer.paragraph(this.parseInline(u.tokens));continue;case"text":for(c=u.tokens?this.parseInline(u.tokens):u.text;t+1<x&&"text"===e[t+1].type;)u=e[++t],c+="\n"+(u.tokens?this.parseInline(u.tokens):u.text);k+=b?this.renderer.paragraph(c):c;continue;default:{const e='Token with "'+u.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return k}parseInline(e,t){t=t||this.renderer;let n,r,l,i="";const o=e.length;for(n=0;n<o;n++)if(r=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(l=this.options.extensions.renderers[r.type].call({parser:this},r),!1!==l||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))i+=l||"";else switch(r.type){case"escape":case"text":i+=t.text(r.text);break;case"html":i+=t.html(r.text);break;case"link":i+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":i+=t.image(r.href,r.title,r.text);break;case"strong":i+=t.strong(this.parseInline(r.tokens,t));break;case"em":i+=t.em(this.parseInline(r.tokens,t));break;case"codespan":i+=t.codespan(r.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(r.tokens,t));break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return i}}class Eo{constructor(e){this.options=e||Ki}static passThroughHooks=new Set(["preprocess","postprocess"]);preprocess(e){return e}postprocess(e){return e}}function zo(e,t){return(n,r,l)=>{"function"==typeof r&&(l=r,r=null);const i={...r},o=function(e,t,n){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+to(r.message+"",!0)+"</pre>";return t?Promise.resolve(e):n?void n(null,e):e}if(t)return Promise.reject(r);if(!n)throw r;n(r)}}((r={...Lo.defaults,...i}).silent,r.async,l);if(null==n)return o(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(r),r.hooks&&(r.hooks.options=r),l){const i=r.highlight;let s;try{r.hooks&&(n=r.hooks.preprocess(n)),s=e(n,r)}catch(e){return o(e)}const a=function(e){let n;if(!e)try{r.walkTokens&&Lo.walkTokens(s,r.walkTokens),n=t(s,r),r.hooks&&(n=r.hooks.postprocess(n))}catch(t){e=t}return r.highlight=i,e?o(e):l(null,n)};if(!i||i.length<3)return a();if(delete r.highlight,!s.length)return a();let c=0;return Lo.walkTokens(s,(function(e){"code"===e.type&&(c++,setTimeout((()=>{i(e.text,e.lang,(function(t,n){if(t)return a(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),c--,0===c&&a()}))}),0))})),void(0===c&&a())}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then((t=>e(t,r))).then((e=>r.walkTokens?Promise.all(Lo.walkTokens(e,r.walkTokens)).then((()=>e)):e)).then((e=>t(e,r))).then((e=>r.hooks?r.hooks.postprocess(e):e)).catch(o);try{r.hooks&&(n=r.hooks.preprocess(n));const l=e(n,r);r.walkTokens&&Lo.walkTokens(l,r.walkTokens);let i=t(l,r);return r.hooks&&(i=r.hooks.postprocess(i)),i}catch(e){return o(e)}}}function Lo(e,t,n){return zo($o.lex,Ro.parse)(e,t,n)}Lo.options=Lo.setOptions=function(e){var t;return Lo.defaults={...Lo.defaults,...e},t=Lo.defaults,Ki=t,Lo},Lo.getDefaults=Zi,Lo.defaults=Ki,Lo.use=function(){const e=Lo.defaults.extensions||{renderers:{},childTokens:{}};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach((t=>{const n={...t};if(n.async=Lo.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach((t=>{if(!t.name)throw new Error("extension name required");if(t.renderer){const n=e.renderers[t.name];e.renderers[t.name]=n?function(){for(var e=arguments.length,r=new Array(e),l=0;l<e;l++)r[l]=arguments[l];let i=t.renderer.apply(this,r);return!1===i&&(i=n.apply(this,r)),i}:t.renderer}if(t.tokenizer){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");e[t.level]?e[t.level].unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}t.childTokens&&(e.childTokens[t.name]=t.childTokens)})),n.extensions=e),t.renderer){const e=Lo.defaults.renderer||new Co;for(const n in t.renderer){const r=e[n];e[n]=function(){for(var l=arguments.length,i=new Array(l),o=0;o<l;o++)i[o]=arguments[o];let s=t.renderer[n].apply(e,i);return!1===s&&(s=r.apply(e,i)),s}}n.renderer=e}if(t.tokenizer){const e=Lo.defaults.tokenizer||new wo;for(const n in t.tokenizer){const r=e[n];e[n]=function(){for(var l=arguments.length,i=new Array(l),o=0;o<l;o++)i[o]=arguments[o];let s=t.tokenizer[n].apply(e,i);return!1===s&&(s=r.apply(e,i)),s}}n.tokenizer=e}if(t.hooks){const e=Lo.defaults.hooks||new Eo;for(const n in t.hooks){const r=e[n];Eo.passThroughHooks.has(n)?e[n]=l=>{if(Lo.defaults.async)return Promise.resolve(t.hooks[n].call(e,l)).then((t=>r.call(e,t)));const i=t.hooks[n].call(e,l);return r.call(e,i)}:e[n]=function(){for(var l=arguments.length,i=new Array(l),o=0;o<l;o++)i[o]=arguments[o];let s=t.hooks[n].apply(e,i);return!1===s&&(s=r.apply(e,i)),s}}n.hooks=e}if(t.walkTokens){const e=Lo.defaults.walkTokens;n.walkTokens=function(n){let r=[];return r.push(t.walkTokens.call(this,n)),e&&(r=r.concat(e.call(this,n))),r}}Lo.setOptions(n)}))},Lo.walkTokens=function(e,t){let n=[];for(const r of e)switch(n=n.concat(t.call(Lo,r)),r.type){case"table":for(const e of r.header)n=n.concat(Lo.walkTokens(e.tokens,t));for(const e of r.rows)for(const r of e)n=n.concat(Lo.walkTokens(r.tokens,t));break;case"list":n=n.concat(Lo.walkTokens(r.items,t));break;default:Lo.defaults.extensions&&Lo.defaults.extensions.childTokens&&Lo.defaults.extensions.childTokens[r.type]?Lo.defaults.extensions.childTokens[r.type].forEach((function(e){n=n.concat(Lo.walkTokens(r[e],t))})):r.tokens&&(n=n.concat(Lo.walkTokens(r.tokens,t)))}return n},Lo.parseInline=zo($o.lexInline,Ro.parseInline),Lo.Parser=Ro,Lo.parser=Ro.parse,Lo.Renderer=Co,Lo.TextRenderer=So,Lo.Lexer=$o,Lo.lexer=$o.lex,Lo.Tokenizer=wo,Lo.Slugger=Ao,Lo.Hooks=Eo,Lo.parse=Lo;const Io=/\$.*?\$/,To=/^\$(.*?)\$/,jo=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,Oo=(e="",t={})=>e.replace(/:(.+?):/g,((e,n)=>t[n]?`<img class="wl-emoji" src="${t[n]}" alt="${n}">`:e)),Uo=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{if(Lo.setOptions({highlight:n||void 0,breaks:!0,smartLists:!0,smartypants:!0}),r){const e=(e=>[{name:"blockMath",level:"block",tokenizer(t){const n=jo.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(Io);return-1!==t?t:e.length},tokenizer(t){const n=To.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}}])(r);Lo.use({extensions:e})}return Lo.parse(Oo(e,t))},Mo=e=>e.dataset.path||e.getAttribute("id"),Po=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r=navigator.language})=>{const l=new AbortController,i=document.querySelectorAll(n);return i.length&&(({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${e}/comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then((e=>e.json())).then((e=>Array.isArray(e)?e:[e])))({serverURL:ui(e),paths:Array.from(i).map((e=>Vl(e.dataset.path||e.getAttribute("id")||t))),lang:r,signal:l.signal}).then((e=>{i.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch(Bi),l.abort.bind(l)},Fo=({size:e})=>Yr("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[Yr("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"}),Yr("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"})]),No=()=>Yr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Yr("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"})),Vo=()=>Yr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Yr("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"})),Do=()=>Yr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Yr("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"}),Yr("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"})]),Ho=({active:e=!1})=>Yr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Yr("path",{d:"M850.654 323.804c-11.042-25.625-26.862-48.532-46.885-68.225-20.022-19.61-43.258-34.936-69.213-45.73-26.78-11.124-55.124-16.727-84.375-16.727-40.622 0-80.256 11.123-114.698 32.135A214.79 214.79 0 0 0 512 241.819a214.79 214.79 0 0 0-23.483-16.562c-34.442-21.012-74.076-32.135-114.698-32.135-29.25 0-57.595 5.603-84.375 16.727-25.872 10.711-49.19 26.12-69.213 45.73-20.105 19.693-35.843 42.6-46.885 68.225-11.453 26.615-17.303 54.877-17.303 83.963 0 27.439 5.603 56.03 16.727 85.117 9.31 24.307 22.659 49.52 39.715 74.981 27.027 40.293 64.188 82.316 110.33 124.915 76.465 70.615 152.189 119.394 155.402 121.371l19.528 12.525c8.652 5.52 19.776 5.52 28.427 0l19.529-12.525c3.213-2.06 78.854-50.756 155.401-121.371 46.143-42.6 83.304-84.622 110.33-124.915 17.057-25.46 30.487-50.674 39.716-74.981 11.124-29.087 16.727-57.678 16.727-85.117.082-29.086-5.768-57.348-17.221-83.963z"+(e?"":"M512 761.5S218.665 573.55 218.665 407.767c0-83.963 69.461-152.023 155.154-152.023 60.233 0 112.473 33.618 138.181 82.727 25.708-49.109 77.948-82.727 138.18-82.727 85.694 0 155.155 68.06 155.155 152.023C805.335 573.551 512 761.5 512 761.5z"),fill:e?"red":"currentColor"})]),Bo=()=>Yr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Yr("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"}),Yr("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"})]),Wo=()=>Yr("svg",{width:"16",height:"16",ariaHidden:"true"},Yr("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"})),qo=()=>Yr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Yr("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"})),Zo=()=>Yr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Yr("path",{d:"M813.039 318.772L480.53 651.278H360.718V531.463L693.227 198.961C697.904 194.284 704.027 192 710.157 192C716.302 192 722.436 194.284 727.114 198.961L813.039 284.88C817.72 289.561 820 295.684 820 301.825C820 307.95 817.72 314.093 813.039 318.772ZM710.172 261.888L420.624 551.431V591.376H460.561L750.109 301.825L710.172 261.888ZM490.517 291.845H240.906V771.09H720.156V521.479C720.156 504.947 733.559 491.529 750.109 491.529C766.653 491.529 780.063 504.947 780.063 521.479V791.059C780.063 813.118 762.18 831 740.125 831H220.937C198.882 831 181 813.118 181 791.059V271.872C181 249.817 198.882 231.935 220.937 231.935H490.517C507.06 231.935 520.47 245.352 520.47 261.888C520.47 278.424 507.06 291.845 490.517 291.845Z",fill:"currentColor"})),Ko=()=>Yr("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},Yr("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"})),Go=({size:e=100})=>Yr("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},Yr("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},Yr("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),Qo=()=>Yr("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[Yr("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"}),Yr("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"})]);let Jo=null;const Xo=()=>Jo||(Jo=Pi("WALINE_LIKE",[]));let Yo=null;const es=()=>Yo??(Yo=Pi("WALINE_REACTION",{}));var ts="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ns={},rs={},ls={},is=ts&&ts.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(l,i){function o(e){try{a(r.next(e))}catch(e){i(e)}}function s(e){try{a(r.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}a((r=r.apply(e,t||[])).next())}))},os=ts&&ts.__generator||function(e,t){var n,r,l,i,o={label:0,sent:function(){if(1&l[0])throw l[1];return l[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(l=2&i[0]?r.return:i[0]?r.throw||((l=r.return)&&l.call(r),0):r.next)&&!(l=l.call(r,i[1])).done)return l;switch(r=0,l&&(i=[2&i[0],l.value]),i[0]){case 0:case 1:l=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(l=o.trys,(l=l.length>0&&l[l.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!l||i[1]>l[0]&&i[1]<l[3])){o.label=i[1];break}if(6===i[0]&&o.label<l[1]){o.label=l[1],l=i;break}if(l&&o.label<l[2]){o.label=l[2],o.ops.push(i);break}l[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=l=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(ls,"__esModule",{value:!0}),ls.ReCaptchaInstance=void 0;var ss=function(){function e(e,t,n){this.siteKey=e,this.recaptchaID=t,this.recaptcha=n,this.styleContainer=null}return e.prototype.execute=function(e){return is(this,void 0,void 0,(function(){return os(this,(function(t){return[2,this.recaptcha.enterprise?this.recaptcha.enterprise.execute(this.recaptchaID,{action:e}):this.recaptcha.execute(this.recaptchaID,{action:e})]}))}))},e.prototype.getSiteKey=function(){return this.siteKey},e.prototype.hideBadge=function(){null===this.styleContainer&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},e.prototype.showBadge=function(){null!==this.styleContainer&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},e}();ls.ReCaptchaInstance=ss,Object.defineProperty(rs,"__esModule",{value:!0}),rs.getInstance=rs.load=void 0;var as,cs=ls;!function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"}(as||(as={}));var us=function(){function e(){}return e.load=function(t,n){if(void 0===n&&(n={}),"undefined"==typeof document)return Promise.reject(new Error("This is a library for the browser!"));if(e.getLoadingState()===as.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===as.LOADING)return t!==e.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise((function(t,n){e.successfulLoadingConsumers.push((function(e){return t(e)})),e.errorLoadingRunnable.push((function(e){return n(e)}))}));e.instanceSiteKey=t,e.setLoadingState(as.LOADING);var r=new e;return new Promise((function(l,i){r.loadScript(t,n.useRecaptchaNet||!1,n.useEnterprise||!1,n.renderParameters?n.renderParameters:{},n.customUrl).then((function(){e.setLoadingState(as.LOADED);var i=r.doExplicitRender(grecaptcha,t,n.explicitRenderParameters?n.explicitRenderParameters:{},n.useEnterprise||!1),o=new cs.ReCaptchaInstance(t,i,grecaptcha);e.successfulLoadingConsumers.forEach((function(e){return e(o)})),e.successfulLoadingConsumers=[],n.autoHideBadge&&o.hideBadge(),e.instance=o,l(o)})).catch((function(t){e.errorLoadingRunnable.forEach((function(e){return e(t)})),e.errorLoadingRunnable=[],i(t)}))}))},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return null===e.loadingState?as.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,n,r,l,i){var o=this;void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===l&&(l={}),void 0===i&&(i="");var s=document.createElement("script");s.setAttribute("recaptcha-v3-script","");var a="https://www.google.com/recaptcha/api.js";n&&(a=r?"https://recaptcha.net/recaptcha/enterprise.js":"https://recaptcha.net/recaptcha/api.js"),r&&(a="https://www.google.com/recaptcha/enterprise.js"),i&&(a=i),l.render&&(l.render=void 0);var c=this.buildQueryString(l);return s.src=a+"?render=explicit"+c,new Promise((function(t,n){s.addEventListener("load",o.waitForScriptToLoad((function(){t(s)}),r),!1),s.onerror=function(t){e.setLoadingState(as.NOT_LOADED),n(t)},document.head.appendChild(s)}))},e.prototype.buildQueryString=function(e){return Object.keys(e).length<1?"":"&"+Object.keys(e).filter((function(t){return!!e[t]})).map((function(t){return t+"="+e[t]})).join("&")},e.prototype.waitForScriptToLoad=function(t,n){var r=this;return function(){void 0===window.grecaptcha?setTimeout((function(){r.waitForScriptToLoad(t,n)}),e.SCRIPT_LOAD_DELAY):n?window.grecaptcha.enterprise.ready((function(){t()})):window.grecaptcha.ready((function(){t()}))}},e.prototype.doExplicitRender=function(e,t,n,r){var l={sitekey:t,badge:n.badge,size:n.size,tabindex:n.tabindex};return n.container?r?e.enterprise.render(n.container,l):e.render(n.container,l):r?e.enterprise.render(l):e.render(l)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();rs.load=us.load,rs.getInstance=us.getInstance,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=rs;Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=ls;Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(ns);const ps={};let ds=null;const hs=()=>ds??(ds=Pi("WALINE_USER",{})),fs={key:0,class:"wl-reaction"},gs=["textContent"],ms={class:"wl-reaction-list"},vs=["onClick"],ys={class:"wl-reaction-img"},ws=["src","alt"],bs=["textContent"],ks=["textContent"];var xs=mn({__name:"ArticleReaction",setup(e,{expose:t}){t();const n=es(),r=Bn("config"),l=$t(-1),i=$t([]),o=Xr((()=>r.value.locale)),s=Xr((()=>r.value.reaction.length>0)),a=Xr((()=>{const{reaction:e,path:t}=r.value;return e.map(((e,r)=>({icon:e,desc:o.value[`reaction${r}`],active:n.value[t]===r})))}));let c;return bn((()=>{pn((()=>[r.value.serverURL,r.value.path]),(()=>{(async()=>{if(s.value){const{serverURL:e,lang:t,path:n,reaction:l}=r.value,o=new AbortController;c=o.abort.bind(o);const s=await Pl({serverURL:e,lang:t,paths:[n],type:l.map(((e,t)=>`reaction${t}`)),signal:o.signal});if(Array.isArray(s)||"number"==typeof s)return;i.value=l.map(((e,t)=>s[`reaction${t}`]))}})()}),{immediate:!0})})),xn((()=>c?.())),(e,t)=>a.value.length?(vr(),kr("div",fs,[Rr("div",{class:"wl-reaction-title",textContent:ee(o.value.reactionTitle)},null,8,gs),Rr("ul",ms,[(vr(!0),kr(pr,null,An(a.value,(({active:e,icon:t,desc:o},s)=>(vr(),kr("li",{key:s,class:G(["wl-reaction-item",{active:e}]),onClick:e=>(async e=>{if(-1===l.value){const{serverURL:t,lang:o,path:s}=r.value,a=n.value[s];l.value=e,void 0!==a&&(await Fl({serverURL:t,lang:o,path:s,type:`reaction${a}`,action:"desc"}),i.value[a]=Math.max(i.value[a]-1,0)),a!==e&&(await Fl({serverURL:t,lang:o,path:s,type:`reaction${e}`}),i.value[e]=(i.value[e]||0)+1),a===e?delete n.value[s]:n.value[s]=e,l.value=-1}})(s)},[Rr("div",ys,[Rr("img",{src:t,alt:o},null,8,ws),l.value===s?(vr(),xr(Rt(Go),{key:0,class:"wl-reaction-loading"})):(vr(),kr("div",{key:1,class:"wl-reaction-votes",textContent:ee(i.value[s]||0)},null,8,bs))]),Rr("div",{class:"wl-reaction-text",textContent:ee(o)},null,8,ks)],10,vs)))),128))])])):Ir("v-if",!0)}}),_s=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n},$s=_s(xs,[["__file","ArticleReaction.vue"]]),Cs=new Map;function Ss(e){var t=Cs.get(e);t&&t.destroy()}function As(e){var t=Cs.get(e);t&&t.update()}var Rs=null;"undefined"==typeof window?((Rs=function(e){return e}).destroy=function(e){return e},Rs.update=function(e){return e}):((Rs=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&&!Cs.has(e)){var t,n=null,r=window.getComputedStyle(e),l=(t=e.value,function(){o({testForHeightReduction:""===t||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}),i=function(t){e.removeEventListener("autosize:destroy",i),e.removeEventListener("autosize:update",s),e.removeEventListener("input",l),window.removeEventListener("resize",s),Object.keys(t).forEach((function(n){return e.style[n]=t[n]})),Cs.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,textAlign:e.style.textAlign,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",i),e.addEventListener("autosize:update",s),e.addEventListener("input",l),window.addEventListener("resize",s),e.style.overflowX="hidden",e.style.wordWrap="break-word",Cs.set(e,{destroy:i,update:s}),s()}function o(t){var l,i,s=t.restoreTextAlign,a=void 0===s?null:s,c=t.testForHeightReduction,u=void 0===c||c,p=r.overflowY;if(0!==e.scrollHeight&&("vertical"===r.resize?e.style.resize="none":"both"===r.resize&&(e.style.resize="horizontal"),u&&(l=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach((function(e){var t=e[0],n=e[1];t.style.scrollBehavior="auto",t.scrollTop=n,t.style.scrollBehavior=null}))}}(e),e.style.height=""),i="content-box"===r.boxSizing?e.scrollHeight-(parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)):e.scrollHeight+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),"none"!==r.maxHeight&&i>parseFloat(r.maxHeight)?("hidden"===r.overflowY&&(e.style.overflow="scroll"),i=parseFloat(r.maxHeight)):"hidden"!==r.overflowY&&(e.style.overflow="hidden"),e.style.height=i+"px",a&&(e.style.textAlign=a),l&&l(),n!==i&&(e.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),n=i),p!==r.overflow&&!a)){var d=r.textAlign;"hidden"===r.overflow&&(e.style.textAlign="start"===d?"end":"start"),o({restoreTextAlign:d,testForHeightReduction:!0})}}function s(){o({testForHeightReduction:!0,restoreTextAlign:null})}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Ss),e},Rs.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],As),e});var Es=Rs;const zs=["data-index"],Ls=["src","title","onClick"];var Is=mn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e,{expose:t}){const n=e;t();let r=null;const l=$t(null),i=$t({}),o=$t([]),s=()=>{const e=Math.floor((l.value.getBoundingClientRect().width+n.gap)/(n.columnWidth+n.gap));return e>0?e:1},a=async e=>{if(e>=n.items.length)return;await Bt();const t=Array.from(l.value?.children||[]).reduce(((e,t)=>t.getBoundingClientRect().height<e.getBoundingClientRect().height?t:e));o.value[Number(t.dataset.index)].push(e),await a(e+1)},c=async(e=!1)=>{if(o.value.length===s()&&!e)return;var t;o.value=(t=s(),new Array(t).fill(null).map((()=>[])));const n=window.scrollY;await a(0),window.scrollTo({top:n})},u=e=>{i.value[e.target.src]=!0};return bn((()=>{c(!0),r=new ResizeObserver((()=>{c()})),r.observe(l.value),pn((()=>[n.items]),(()=>{i.value={},c(!0)})),pn((()=>[n.columnWidth,n.gap]),(()=>{c()}))})),kn((()=>r.unobserve(l.value))),(e,t)=>(vr(),kr("div",{ref_key:"wall",ref:l,class:"wl-gallery",style:B({gap:`${e.gap}px`})},[(vr(!0),kr(pr,null,An(o.value,((t,n)=>(vr(),kr("div",{key:n,class:"wl-gallery-column","data-index":n,style:B({gap:`${e.gap}px`})},[(vr(!0),kr(pr,null,An(t,(t=>(vr(),kr(pr,{key:t},[i.value[e.items[t].src]?Ir("v-if",!0):(vr(),xr(Rt(Go),{key:0,size:36,style:{margin:"20px auto"}})),Rr("img",{class:"wl-gallery-item",src:e.items[t].src,title:e.items[t].title,loading:"lazy",onLoad:u,onClick:n=>e.$emit("insert",`![](${e.items[t].src})`)},null,40,Ls)],64)))),128))],12,zs)))),128))],4))}}),Ts=_s(Is,[["__file","ImageWall.vue"]]);const js={class:"wl-comment"},Os={key:0,class:"wl-login-info"},Us={class:"wl-avatar"},Ms=["title"],Ps=["title"],Fs=["src"],Ns=["title","textContent"],Vs={class:"wl-panel"},Ds=["for","textContent"],Hs=["id","onUpdate:modelValue","name","type"],Bs=["placeholder"],Ws={class:"wl-preview"},qs=Rr("hr",null,null,-1),Zs=["innerHTML"],Ks={class:"wl-footer"},Gs={class:"wl-actions"},Qs={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},Js=["title"],Xs=["title"],Ys=["title"],ea=["title"],ta={class:"wl-info"},na=Rr("div",{class:"wl-captcha-container"},null,-1),ra={class:"wl-text-number"},la={key:0},ia=["textContent"],oa=["textContent"],sa=["disabled"],aa=["placeholder"],ca={key:1,class:"wl-loading"},ua={key:0,class:"wl-tab-wrapper"},pa=["title","onClick"],da=["src","alt"],ha={key:0,class:"wl-tabs"},fa=["onClick"],ga=["src","alt","title"],ma=["title"];var va=mn({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{expose:t,emit:n}){const r=e;t();const l=Bn("config"),i=Pi("WALINE_COMMENT_BOX_EDITOR",""),o=Pi("WALINE_USER_META",{nick:"",mail:"",link:""}),s=hs(),a=$t({}),c=$t(null),u=$t(null),p=$t(null),d=$t(null),h=$t(null),f=$t(null),g=$t(null),m=$t({tabs:[],map:{}}),v=$t(0),y=$t(!1),w=$t(!1),b=$t(!1),k=$t(""),x=$t(0),_=ut({loading:!0,list:[]}),$=$t(0),C=$t(!1),S=$t(""),A=$t(!1),R=$t(!1),E=Xr((()=>l.value.locale)),z=Xr((()=>Boolean(s.value?.token))),L=Xr((()=>!1!==l.value.imageUploader)),I=e=>{const t=c.value,n=t.selectionStart,r=t.selectionEnd||0,l=t.scrollTop;i.value=t.value.substring(0,n)+e+t.value.substring(r,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=l},T=e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&P()},j=e=>{const t=`![${l.value.locale.uploading} ${e.name}]()`;return I(t),A.value=!0,Promise.resolve().then((()=>l.value.imageUploader(e))).then((n=>{i.value=i.value.replace(t,`\r\n![${e.name}](${n})`)})).catch((e=>{alert(e.message),i.value=i.value.replace(t,"")})).then((()=>{A.value=!1}))},O=e=>{if(e.dataTransfer?.items){const t=qi(e.dataTransfer.items);t&&L.value&&(j(t),e.preventDefault())}},U=e=>{if(e.clipboardData){const t=qi(e.clipboardData.items);t&&L.value&&j(t)}},M=()=>{const e=u.value;e.files&&L.value&&j(e.files[0]).then((()=>{e.value=""}))},P=async()=>{const{serverURL:e,lang:t,login:u,wordLimit:p,requiredMeta:d,recaptchaV3Key:h,turnstileKey:f}=l.value,g=await(async()=>{if(!navigator)return"";const{userAgentData:e}=navigator;let t=navigator.userAgent;if(!e||"Windows"!==e.platform)return t;const{platformVersion:n}=await e.getHighEntropyValues(["platformVersion"]);return n?(parseInt(n.split(".")[0])>=13&&(t=t.replace("Windows NT 10.0","Windows NT 11.0")),t):t})(),v={comment:S.value,nick:o.value.nick,mail:o.value.mail,link:o.value.link,url:l.value.path,ua:g};if(s.value?.token)v.nick=s.value.display_name,v.mail=s.value.email,v.link=s.value.url;else{if("force"===u)return;if(d.indexOf("nick")>-1&&!v.nick)return a.value.nick?.focus(),alert(E.value.nickError);if(d.indexOf("mail")>-1&&!v.mail||v.mail&&(y=v.mail,!mi.test(y)))return a.value.mail?.focus(),alert(E.value.mailError);v.nick||(v.nick=E.value.anonymous)}var y;if(v.comment){if(!C.value)return alert(E.value.wordHint.replace("$0",p[0].toString()).replace("$1",p[1].toString()).replace("$2",x.value.toString()));v.comment=Oo(v.comment,m.value.map),r.replyId&&r.rootId&&(v.pid=r.replyId,v.rid=r.rootId,v.at=r.replyUser),A.value=!0;try{h&&(v.recaptchaV3=await(e=>{const t=ps[e]??(ps[e]=ns.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:e=>t.then((t=>t.execute(e)))}})(h).execute("social")),f&&(v.turnstile=await(w=f,{execute:async e=>{const{load:t}=Ni("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await t();const n=window?.turnstile;return new Promise((t=>{n?.ready((()=>{n?.render(".wl-captcha-container",{sitekey:w,action:e,size:"compact",callback:t})}))}))}}).execute("social"));const l={serverURL:e,lang:t,token:s.value?.token,comment:v},o=await(r.edit?Nl({objectId:r.edit.objectId,...l}):(({serverURL:e,lang:t,token:n,comment:r})=>{const l={"Content-Type":"application/json"};return n&&(l.Authorization=`Bearer ${n}`),fetch(`${e}/comment?lang=${t}`,{method:"POST",headers:l,body:JSON.stringify(r)}).then((e=>e.json()))})(l));if(A.value=!1,o.errmsg)return alert(o.errmsg);n("submit",o.data),i.value="",k.value="",r.replyId&&n("cancelReply"),r.edit?.objectId&&n("cancelEdit")}catch(e){A.value=!1,alert(e.message)}var w}else c.value?.focus()},F=e=>{e.preventDefault();const{lang:t,serverURL:r}=l.value;(({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,l=window.open(`${t}/ui/login?lng=${encodeURIComponent(e)}`,"_blank",`width=450,height=450,left=${n},top=${r},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return l?.postMessage({type:"TOKEN",data:null},"*"),new Promise((e=>{const t=({data:n})=>{n&&"object"==typeof n&&"userInfo"===n.type&&n.data.token&&(l?.close(),window.removeEventListener("message",t),e(n.data))};window.addEventListener("message",t)}))})({serverURL:r,lang:t}).then((e=>{s.value=e,(e.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(e)),n("log")}))},N=()=>{s.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),n("log")},V=e=>{e.preventDefault();const{lang:t,serverURL:n}=l.value,r=(window.innerWidth-800)/2,i=(window.innerHeight-800)/2,o=new URLSearchParams({lng:t,token:s.value.token}),a=window.open(`${n}/ui/profile?${o.toString()}`,"_blank",`width=800,height=800,left=${r},top=${i},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);a?.postMessage({type:"TOKEN",data:s.value.token},"*")},D=e=>{p.value?.contains(e.target)||d.value?.contains(e.target)||(y.value=!1),h.value?.contains(e.target)||f.value?.contains(e.target)||(w.value=!1)},H=async e=>{const{scrollTop:t,clientHeight:n,scrollHeight:r}=e.target,i=(n+t)/r,o=l.value.search,s=g.value?.value||"";if(i<.9||_.loading||R.value)return;_.loading=!0;(o.more&&_.list.length?await o.more(s,_.list.length):await o.search(s)).length?_.list=[..._.list,...o.more&&_.list.length?await o.more(s,_.list.length):await o.search(s)]:R.value=!0,_.loading=!1,setTimeout((()=>{e.target.scrollTop=t}),50)},B=Ci((e=>{_.list=[],R.value=!1,H(e)}),300);pn([l,x],(([e,t])=>{const{wordLimit:n}=e;n?t<n[0]&&0!==n[0]?($.value=n[0],C.value=!1):t>n[1]?($.value=n[1],C.value=!1):($.value=n[1],C.value=!0):($.value=0,C.value=!0)}),{immediate:!0});const W=({data:e})=>{e&&"profile"===e.type&&(s.value={...s.value,...e.data},[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(s)))))};return bn((()=>{document.body.addEventListener("click",D),window.addEventListener("message",W),r.edit?.objectId&&(i.value=r.edit.orig),pn(w,(async e=>{if(!e)return;const t=l.value.search;g.value&&(g.value.value=""),_.loading=!0,_.list=t.default?await t.default():await t.search(""),_.loading=!1})),pn((()=>i.value),(e=>{const{highlighter:t,texRenderer:n}=l.value;S.value=e,k.value=Uo(e,{emojiMap:m.value.map,highlighter:t,texRenderer:n}),x.value=(e=>((e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu))(e)?.reduce(((e,t)=>e+(""===t.trim()?0:t.trim().split(/\s+/u).length)),0)||0)+((e=>e.match(/[\u4E00-\u9FD5]/gu))(e)?.length||0))(e),e?Es(c.value):Es.destroy(c.value)}),{immediate:!0}),pn((()=>l.value.emoji),(e=>{return(t=e,Promise.all(t.map((e=>"string"==typeof e?Di(Dl(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:r,icon:l,prefix:i,type:o,items:s}=e;t.tabs.push({name:n,icon:Hi(l,r,i,o),items:s.map((e=>{const n=`${i||""}${e}`;return t.map[n]=Hi(e,r,i,o),n}))})})),t}))).then((e=>{m.value=e}));var t}),{immediate:!0})})),xn((()=>{document.body.removeEventListener("click",D),window.removeEventListener("message",W)})),(e,t)=>(vr(),kr("div",js,["disable"!==Rt(l).login&&z.value&&!e.edit?.objectId?(vr(),kr("div",Os,[Rr("div",Us,[Rr("button",{type:"submit",class:"wl-logout-btn",title:E.value.logout,onClick:N},[Er(Rt(Fo),{size:14})],8,Ms),Rr("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:E.value.profile,onClick:V},[Rr("img",{src:Rt(s).avatar,alt:"avatar"},null,8,Fs)],8,Ps)]),Rr("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:E.value.profile,onClick:V,textContent:ee(Rt(s).display_name)},null,8,Ns)])):Ir("v-if",!0),Rr("div",Vs,["force"!==Rt(l).login&&Rt(l).meta.length&&!z.value?(vr(),kr("div",{key:0,class:G(["wl-header",`item${Rt(l).meta.length}`])},[(vr(!0),kr(pr,null,An(Rt(l).meta,(e=>(vr(),kr("div",{key:e,class:"wl-header-item"},[Rr("label",{for:`wl-${e}`,textContent:ee(E.value[e]+(Rt(l).requiredMeta.includes(e)||!Rt(l).requiredMeta.length?"":`(${E.value.optional})`))},null,8,Ds),fn(Rr("input",{id:`wl-${e}`,ref_for:!0,ref:t=>{t&&(a.value[e]=t)},"onUpdate:modelValue":t=>Rt(o)[e]=t,class:G(["wl-input",`wl-${e}`]),name:e,type:"mail"===e?"email":"text"},null,10,Hs),[[El,Rt(o)[e]]])])))),128))],2)):Ir("v-if",!0),fn(Rr("textarea",{id:"wl-edit",ref_key:"editorRef",ref:c,"onUpdate:modelValue":t[0]||(t[0]=e=>_t(i)?i.value=e:null),class:"wl-editor",placeholder:e.replyUser?`@${e.replyUser}`:E.value.placeholder,onKeydown:T,onDrop:O,onPaste:U},null,40,Bs),[[kl,Rt(i)]]),fn(Rr("div",Ws,[qs,Rr("h4",null,ee(E.value.preview)+":",1),Rr("div",{class:"wl-content",innerHTML:k.value},null,8,Zs)],512),[[Ll,b.value]]),Rr("div",Ks,[Rr("div",Gs,[Rr("a",Qs,[Er(Rt(Wo))]),fn(Rr("button",{ref_key:"emojiButtonRef",ref:p,type:"button",class:G(["wl-action",{active:y.value}]),title:E.value.emoji,onClick:t[1]||(t[1]=e=>y.value=!y.value)},[Er(Rt(Vo))],10,Js),[[Ll,m.value.tabs.length]]),Rt(l).search?(vr(),kr("button",{key:0,ref_key:"gifButtonRef",ref:h,type:"button",class:G(["wl-action",{active:w.value}]),title:E.value.gif,onClick:t[2]||(t[2]=e=>w.value=!w.value)},[Er(Rt(Qo))],10,Xs)):Ir("v-if",!0),Rr("input",{id:"wl-image-upload",ref_key:"imageUploadRef",ref:u,class:"upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:M},null,544),L.value?(vr(),kr("label",{key:1,for:"wl-image-upload",class:"wl-action",title:E.value.uploadImage},[Er(Rt(Do))],8,Ys)):Ir("v-if",!0),Rr("button",{type:"button",class:G(["wl-action",{active:b.value}]),title:E.value.preview,onClick:t[3]||(t[3]=e=>b.value=!b.value)},[Er(Rt(Bo))],10,ea)]),Rr("div",ta,[na,Rr("div",ra,[Lr(ee(x.value)+" ",1),Rt(l).wordLimit?(vr(),kr("span",la,[Lr("  /  "),Rr("span",{class:G({illegal:!C.value}),textContent:ee($.value)},null,10,ia)])):Ir("v-if",!0),Lr("  "+ee(E.value.word),1)]),"disable"===Rt(l).login||z.value?Ir("v-if",!0):(vr(),kr("button",{key:0,type:"button",class:"wl-btn",onClick:F,textContent:ee(E.value.login)},null,8,oa)),"force"!==Rt(l).login||z.value?(vr(),kr("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:A.value,onClick:P},[A.value?(vr(),xr(Rt(Go),{key:0,size:16})):(vr(),kr(pr,{key:1},[Lr(ee(E.value.submit),1)],64))],8,sa)):Ir("v-if",!0)]),Rr("div",{ref_key:"gifPopupRef",ref:f,class:G(["wl-gif-popup",{display:w.value}])},[Rr("input",{ref_key:"gifSearchInputRef",ref:g,type:"text",placeholder:E.value.gifSearchPlaceholder,onInput:t[4]||(t[4]=(...e)=>Rt(B)&&Rt(B)(...e))},null,40,aa),_.list.length?(vr(),xr(Ts,{key:0,items:_.list,"column-width":200,gap:6,onInsert:t[5]||(t[5]=e=>I(e)),onScroll:H},null,8,["items"])):Ir("v-if",!0),_.loading?(vr(),kr("div",ca,[Er(Rt(Go),{size:30})])):Ir("v-if",!0)],2),Rr("div",{ref_key:"emojiPopupRef",ref:d,class:G(["wl-emoji-popup",{display:y.value}])},[(vr(!0),kr(pr,null,An(m.value.tabs,((e,t)=>(vr(),kr(pr,{key:e.name},[t===v.value?(vr(),kr("div",ua,[(vr(!0),kr(pr,null,An(e.items,(e=>(vr(),kr("button",{key:e,type:"button",title:e,onClick:t=>I(`:${e}:`)},[y.value?(vr(),kr("img",{key:0,class:"wl-emoji",src:m.value.map[e],alt:e,loading:"lazy",referrerPolicy:"no-referrer"},null,8,da)):Ir("v-if",!0)],8,pa)))),128))])):Ir("v-if",!0)],64)))),128)),m.value.tabs.length>1?(vr(),kr("div",ha,[(vr(!0),kr(pr,null,An(m.value.tabs,((e,t)=>(vr(),kr("button",{key:e.name,type:"button",class:G(["wl-tab",{active:v.value===t}]),onClick:e=>v.value=t},[Rr("img",{class:"wl-emoji",src:e.icon,alt:e.name,title:e.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,ga)],10,fa)))),128))])):Ir("v-if",!0)],2)])]),e.replyId||e.edit?.objectId?(vr(),kr("button",{key:1,type:"button",class:"wl-close",title:E.value.cancelReply,onClick:t[6]||(t[6]=t=>e.$emit(e.replyId?"cancelReply":"cancelEdit"))},[Er(Rt(Fo),{size:24})],8,ma)):Ir("v-if",!0)]))}}),ya=_s(va,[["__file","CommentBox.vue"]]);const wa=["id"],ba={class:"wl-user","aria-hidden":"true"},ka=["src"],xa={class:"wl-card"},_a={class:"wl-head"},$a=["href"],Ca={key:1,class:"wl-nick"},Sa=["textContent"],Aa=["textContent"],Ra=["textContent"],Ea=["textContent"],za=["textContent"],La={class:"wl-comment-actions"},Ia=["title"],Ta=["textContent"],ja=["title"],Oa={class:"wl-meta","aria-hidden":"true"},Ua=["data-value","textContent"],Ma=["data-value","textContent"],Pa=["data-value","textContent"],Fa=["innerHTML"],Na={key:1,class:"wl-admin-actions"},Va={class:"wl-comment-status"},Da=["disabled","onClick","textContent"],Ha={key:3,class:"wl-quote"};var Ba=mn({__name:"CommentCard",props:{comment:{},edit:{default:null},rootId:{},reply:{default:null}},emits:["log","submit","delete","edit","like","status","sticky","reply"],setup(e){const t=e,n=["approved","waiting","spam"],r=Bn("config"),l=Xo(),i=Fi(),o=hs(),s=Xr((()=>r.value.locale)),a=Xr((()=>{const{link:e}=t.comment;return e?Hl(e)?e:`https://${e}`:""})),c=Xr((()=>l.value.includes(t.comment.objectId))),u=Xr((()=>gi(t.comment.insertedAt,i.value,s.value))),p=Xr((()=>"administrator"===o.value.type)),d=Xr((()=>t.comment.user_id&&o.value.objectId===t.comment.user_id)),h=Xr((()=>t.comment.objectId===t.reply?.objectId)),f=Xr((()=>t.comment.objectId===t.edit?.objectId));return(e,t)=>{const r=$n("CommentCard",!0);return vr(),kr("div",{id:e.comment.objectId,class:"wl-card-item"},[Rr("div",ba,[e.comment.avatar?(vr(),kr("img",{key:0,src:e.comment.avatar},null,8,ka)):Ir("v-if",!0),e.comment.type?(vr(),xr(Rt(Ko),{key:1})):Ir("v-if",!0)]),Rr("div",xa,[Rr("div",_a,[a.value?(vr(),kr("a",{key:0,class:"wl-nick",href:a.value,target:"_blank",rel:"nofollow noopener noreferrer"},ee(e.comment.nick),9,$a)):(vr(),kr("span",Ca,ee(e.comment.nick),1)),"administrator"===e.comment.type?(vr(),kr("span",{key:2,class:"wl-badge",textContent:ee(s.value.admin)},null,8,Sa)):Ir("v-if",!0),e.comment.label?(vr(),kr("span",{key:3,class:"wl-badge",textContent:ee(e.comment.label)},null,8,Aa)):Ir("v-if",!0),e.comment.sticky?(vr(),kr("span",{key:4,class:"wl-badge",textContent:ee(s.value.sticky)},null,8,Ra)):Ir("v-if",!0),void 0!==e.comment.level&&e.comment.level>=0?(vr(),kr("span",{key:5,class:G(`wl-badge level${e.comment.level}`),textContent:ee(s.value[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,Ea)):Ir("v-if",!0),Rr("span",{class:"wl-time",textContent:ee(u.value)},null,8,za),Rr("div",La,[p.value||d.value?(vr(),kr("button",{key:0,type:"button",class:"wl-edit",onClick:t[0]||(t[0]=()=>e.$emit("edit",e.comment))},[Er(Rt(Zo))])):Ir("v-if",!0),p.value||d.value?(vr(),kr("button",{key:1,type:"button",class:"wl-delete",onClick:t[1]||(t[1]=t=>e.$emit("delete",e.comment))},[Er(Rt(No))])):Ir("v-if",!0),Rr("button",{type:"button",class:"wl-like",title:c.value?s.value.cancelLike:s.value.like,onClick:t[2]||(t[2]=t=>e.$emit("like",e.comment))},[Er(Rt(Ho),{active:c.value},null,8,["active"]),"like"in e.comment?(vr(),kr("span",{key:0,textContent:ee(e.comment.like)},null,8,Ta)):Ir("v-if",!0)],8,Ia),Rr("button",{type:"button",class:G(["wl-reply",{active:h.value}]),title:h.value?s.value.cancelReply:s.value.reply,onClick:t[3]||(t[3]=t=>e.$emit("reply",h.value?null:e.comment))},[Er(Rt(qo))],10,ja)])]),Rr("div",Oa,[e.comment.addr?(vr(),kr("span",{key:0,class:"wl-addr","data-value":e.comment.addr,textContent:ee(e.comment.addr)},null,8,Ua)):Ir("v-if",!0),e.comment.browser?(vr(),kr("span",{key:1,class:"wl-browser","data-value":e.comment.browser,textContent:ee(e.comment.browser)},null,8,Ma)):Ir("v-if",!0),e.comment.os?(vr(),kr("span",{key:2,class:"wl-os","data-value":e.comment.os,textContent:ee(e.comment.os)},null,8,Pa)):Ir("v-if",!0)]),f.value?Ir("v-if",!0):(vr(),kr("div",{key:0,class:"wl-content",innerHTML:e.comment.comment},null,8,Fa)),p.value&&!f.value?(vr(),kr("div",Na,[Rr("span",Va,[(vr(),kr(pr,null,An(n,(t=>Rr("button",{key:t,type:"submit",class:G(`wl-btn wl-${t}`),disabled:e.comment.status===t,onClick:n=>e.$emit("status",{status:t,comment:e.comment}),textContent:ee(s.value[t])},null,10,Da))),64))]),p.value&&!e.comment.rid?(vr(),kr("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:t[4]||(t[4]=t=>e.$emit("sticky",e.comment))},ee(e.comment.sticky?s.value.unsticky:s.value.sticky),1)):Ir("v-if",!0)])):Ir("v-if",!0),h.value||f.value?(vr(),kr("div",{key:2,class:G({"wl-reply-wrapper":h.value,"wl-edit-wrapper":f.value})},[Er(ya,{edit:e.edit,"reply-id":e.reply?.objectId,"reply-user":e.comment.nick,"root-id":e.rootId,onLog:t[5]||(t[5]=t=>e.$emit("log")),onCancelReply:t[6]||(t[6]=t=>e.$emit("reply",null)),onCancelEdit:t[7]||(t[7]=t=>e.$emit("edit",null)),onSubmit:t[8]||(t[8]=t=>e.$emit("submit",t))},null,8,["edit","reply-id","reply-user","root-id"])],2)):Ir("v-if",!0),e.comment.children?(vr(),kr("div",Ha,[(vr(!0),kr(pr,null,An(e.comment.children,(n=>(vr(),xr(r,{key:n.objectId,comment:n,reply:e.reply,edit:e.edit,"root-id":e.rootId,onLog:t[9]||(t[9]=t=>e.$emit("log")),onDelete:t[10]||(t[10]=t=>e.$emit("delete",t)),onEdit:t[11]||(t[11]=t=>e.$emit("edit",t)),onLike:t[12]||(t[12]=t=>e.$emit("like",t)),onReply:t[13]||(t[13]=t=>e.$emit("reply",t)),onStatus:t[14]||(t[14]=t=>e.$emit("status",t)),onSticky:t[15]||(t[15]=t=>e.$emit("sticky",t)),onSubmit:t[16]||(t[16]=t=>e.$emit("submit",t))},null,8,["comment","reply","edit","root-id"])))),128))])):Ir("v-if",!0)])],8,wa)}}}),Wa=_s(Ba,[["__file","CommentCard.vue"]]);const qa={"data-waline":""},Za={class:"wl-meta-head"},Ka={class:"wl-count"},Ga=["textContent"],Qa={class:"wl-sort"},Ja=["onClick"],Xa={class:"wl-cards"},Ya={key:1,class:"wl-operation"},ec=["textContent"],tc={key:0,class:"wl-loading"},nc=["textContent"],rc={key:2,class:"wl-operation"},lc=["textContent"],ic={key:3,class:"wl-power"},oc=Rr("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1);var sc=mn({__name:"WalineComment",props:["serverURL","path","meta","requiredMeta","dark","commentSorting","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright","recaptchaV3Key","turnstileKey","reaction"],setup(e){const t=e,n={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},r=Object.keys(n),l=hs(),i=Xo(),o=$t("loading"),s=$t(0),a=$t(1),c=$t(0),u=Xr((()=>(({serverURL:e,path:t=location.pathname,lang:n=("undefined"==typeof navigator?"en-US":navigator.language),locale:r,emoji:l=ql,meta:i=["nick","mail","link"],requiredMeta:o=[],dark:s=!1,pageSize:a=10,wordLimit:c,imageUploader:u,highlighter:p,texRenderer:d,copyright:h=!0,login:f="enable",search:g,reaction:m,recaptchaV3Key:v="",turnstileKey:y="",commentSorting:w="latest",...b})=>({serverURL:ui(e),path:Vl(t),locale:{...ci[n]||ci["en-US"],..."object"==typeof r?r:{}},wordLimit:pi(c),meta:Wl(i),requiredMeta:Wl(o),imageUploader:di(u,Kl),highlighter:di(p,ei),texRenderer:di(d,Gl),lang:Object.keys(ci).includes(n)?n:"en-US",dark:s,emoji:"boolean"==typeof l?l?ql:[]:l,pageSize:a,login:f,copyright:h,search:!1!==g&&("object"==typeof g?g:Ql(n)),recaptchaV3Key:v,turnstileKey:y,reaction:Array.isArray(m)?m:!0===m?Zl:[],commentSorting:w,...b}))(t))),p=$t(u.value.commentSorting),d=$t([]),h=$t(null),f=$t(null),g=Xr((()=>{return"string"==typeof(e=u.value.dark)?"auto"===e?`@media(prefers-color-scheme:dark){body${hi}}`:`${e}${hi}`:!0===e?`:root${hi}`:"";var e})),m=Xr((()=>u.value.locale));let v;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=$t(!1),{document:r=zi,immediate:l=!0,manual:i=!1,id:o="vueuse_styletag_"+ ++Vi}=t,s=$t(e);let a=()=>{};const c=()=>{if(!r)return;const e=r.getElementById(o)||r.createElement("style");e.isConnected||(e.id=o,t.media&&(e.media=t.media),r.head.appendChild(e)),n.value||(a=pn(s,(t=>{e.textContent=t}),{immediate:!0}),n.value=!0)},u=()=>{r&&n.value&&(a(),r.head.removeChild(r.getElementById(o)),n.value=!1)};l&&!i&&Ai(c),i||vi(u),pt(n)}(g,{id:"waline-darkmode"});const y=e=>{const{serverURL:t,path:r,pageSize:i}=u.value,h=new AbortController;o.value="loading",v?.(),(({serverURL:e,lang:t,path:n,page:r,pageSize:l,sortBy:i,signal:o,token:s})=>{const a={};return s&&(a.Authorization=`Bearer ${s}`),fetch(`${e}/comment?path=${encodeURIComponent(n)}&pageSize=${l}&page=${r}&lang=${t}&sortBy=${i}`,{signal:o,headers:a}).then((e=>e.json())).then((e=>Ml(e,"Get comment data")))})({serverURL:t,lang:u.value.lang,path:r,pageSize:i,sortBy:n[p.value],page:e,signal:h.signal,token:l.value?.token}).then((t=>{o.value="success",s.value=t.count,d.value.push(...t.data),a.value=e,c.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),o.value="error")})),v=h.abort.bind(h)},w=()=>y(a.value+1),b=()=>{s.value=0,d.value=[],y(1)},k=e=>{h.value=e},x=e=>{f.value=e},_=e=>{if(f.value)f.value.comment=e.comment,f.value.orig=e.orig;else if(e.rid){const t=d.value.find((({objectId:t})=>t===e.rid));if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else d.value.unshift(e),s.value+=1},$=async({comment:e,status:t})=>{if(e.status===t)return;const{serverURL:n,lang:r}=u.value;await Nl({serverURL:n,lang:r,token:l.value?.token,objectId:e.objectId,comment:{status:t}}),e.status=t},C=async e=>{if(e.rid)return;const{serverURL:t,lang:n}=u.value;await Nl({serverURL:t,lang:n,token:l.value?.token,objectId:e.objectId,comment:{sticky:e.sticky?0:1}}),e.sticky=!e.sticky},S=async({objectId:e})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:t,lang:n}=u.value;await(({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${e}/comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then((e=>e.json())).then((e=>Ml(e,"Delete comment"))))({serverURL:t,lang:n,token:l.value?.token,objectId:e}),d.value.some(((t,n)=>t.objectId===e?(d.value=d.value.filter(((e,t)=>t!==n)),!0):t.children.some(((r,l)=>r.objectId===e&&(d.value[n].children=t.children.filter(((e,t)=>t!==l)),!0)))))},A=async e=>{const{serverURL:t,lang:n}=u.value,{objectId:r}=e,o=i.value.includes(r);await Nl({serverURL:t,lang:n,objectId:r,token:l.value?.token,comment:{like:!o}}),o?i.value=i.value.filter((e=>e!==r)):(i.value=[...i.value,r],i.value.length>50&&(i.value=i.value.slice(-50))),e.like=(e.like||0)+(o?-1:1)};return function(e,t){if(Fr){let n=Fr.provides;const r=Fr.parent&&Fr.parent.provides;r===n&&(n=Fr.provides=Object.create(r)),n[e]=t}}("config",u),bn((()=>{pn((()=>[t.serverURL,t.path]),(()=>b()),{immediate:!0})})),xn((()=>v?.())),(e,t)=>(vr(),kr("div",qa,[Er($s),h.value?Ir("v-if",!0):(vr(),xr(ya,{key:0,onLog:b,onSubmit:_})),Rr("div",Za,[Rr("div",Ka,[s.value?(vr(),kr("span",{key:0,class:"wl-num",textContent:ee(s.value)},null,8,Ga)):Ir("v-if",!0),Lr(" "+ee(m.value.comment),1)]),Rr("ul",Qa,[(vr(!0),kr(pr,null,An(Rt(r),(e=>(vr(),kr("li",{key:e,class:G([e===p.value?"active":""]),onClick:t=>(e=>{p.value!==e&&(p.value=e,b())})(e)},ee(m.value[e]),11,Ja)))),128))])]),Rr("div",Xa,[(vr(!0),kr(pr,null,An(d.value,(e=>(vr(),xr(Wa,{key:e.objectId,"root-id":e.objectId,comment:e,reply:h.value,edit:f.value,onLog:b,onReply:k,onEdit:x,onSubmit:_,onStatus:$,onDelete:S,onSticky:C,onLike:A},null,8,["root-id","comment","reply","edit"])))),128))]),"error"===o.value?(vr(),kr("div",Ya,[Rr("button",{type:"button",class:"wl-btn",onClick:b,textContent:ee(m.value.refresh)},null,8,ec)])):(vr(),kr(pr,{key:2},["loading"===o.value?(vr(),kr("div",tc,[Er(Rt(Go),{size:30})])):d.value.length?a.value<c.value?(vr(),kr("div",rc,[Rr("button",{type:"button",class:"wl-btn",onClick:w,textContent:ee(m.value.more)},null,8,lc)])):Ir("v-if",!0):(vr(),kr("div",{key:1,class:"wl-empty",textContent:ee(m.value.sofa)},null,8,nc))],64)),u.value.copyright?(vr(),kr("div",ic,[Lr(" Powered by "),oc,Lr(" v"+ee(Rt("2.15.8")),1)])):Ir("v-if",!0)]))}}),ac=_s(sc,[["__file","WalineComment.vue"]]);const cc=(e,t)=>{t.forEach(((t,n)=>{t.innerText=e[n].toString()}))},uc=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:l=navigator.language})=>{const i=new AbortController,o=Array.from(document.querySelectorAll(n)),s=e=>{const n=Mo(e);return null!==n&&t!==n},a=n=>(({serverURL:e,lang:t,paths:n,signal:r})=>Pl({serverURL:e,lang:t,paths:n,type:["time"],signal:r}).then((e=>Array.isArray(e)?e:[e])))({serverURL:ui(e),paths:n.map((e=>Mo(e)||t)),lang:l,signal:i.signal}).then((e=>cc(e,n))).catch(Bi);if(r){const n=o.filter((e=>!s(e))),r=o.filter(s);(c={serverURL:ui(e),path:t,lang:l},Fl({...c,type:"time",action:"inc"})).then((e=>cc(new Array(n.length).fill(e),n))),r.length&&a(r)}else a(o);var c;return i.abort.bind(i)},pc=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...l})=>{const i=e?(e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null)(e):null;if(e&&!i)throw new Error("Option 'el' do not match any domElement!");if(!l.serverURL)throw new Error("Option 'serverURL' is missing!");const o=ut({...l}),s=ut({comment:n,pageview:r,path:t}),a=i?Ol((()=>Yr(ac,{path:s.path,...o}))):null;a&&a.mount(i);const c=cn((()=>{s.comment&&Po({serverURL:o.serverURL,path:s.path,selector:"string"==typeof s.comment?s.comment:void 0})})),u=cn((()=>{s.pageview&&uc({serverURL:o.serverURL,path:s.path,selector:"string"==typeof s.pageview?s.pageview:void 0})}));return{el:i,update:({comment:e,pageview:t,path:n=window.location.pathname,...r}={})=>{Object.entries(r).forEach((([e,t])=>{o[e]=t})),s.path=n,void 0!==e&&(s.comment=e),void 0!==t&&(s.pageview=t)},destroy:()=>{a?.unmount(),c(),u()}}};n(" This is a legacy package compatible with Valine and Waline@v1, please switch to Waline@v2 using https://<CDN.LINK>/@waline/client/dist/waline.js instead!");const dc=document.createElement("link");return dc.rel="stylesheet",dc.href="//unpkg.com/@waline/client@v2/dist/waline.css",document.head.appendChild(dc),function(l){return pc((l=>{const{placeholder:i,langMode:o={},emojiCDN:s,emojiMaps:a,requiredFields:c=[],anonymous:u,previewMath:p,uploadImage:d,highlight:h,copyRight:f,visitor:g,pageview:m=(!0===g?".leancloud_visitors,.leancloud-visitors,.waline-visitor-count,.waline-pageview-count":g),locale:v=o,emoji:y,requiredMeta:w=c,highlighter:b=h,imageUploader:k=d,texRenderer:x=p,copyright:_=f,login:$=(!0===u?"disable":!1===u?"force":"enable"),...C}=l;return e.filter((e=>Object.keys(l).includes(e))).forEach((e=>n(`Option "${e}" is REMOVED and CAN NOT be polyfilled!`))),t.filter((([e])=>Object.keys(l).includes(e))).forEach((([e,t])=>n(`Deprecated option "${e}" is currently being polyfilled, Please switch to option "${t}" in v2!`))),i&&(v.placeholder=i),{locale:v,emoji:s&&"object"==typeof a?r(a,s):y,requiredMeta:w,imageUploader:k,highlighter:b,texRenderer:x,copyright:_,login:$,pageview:m,...C}})(l))}}));
2
2
  //# sourceMappingURL=legacy.umd.js.map