@roudanio/awesome-comment 0.10.9 → 0.10.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/dist/awesome-comment.iife.js +68 -0
- package/dist/awesome-comment.js +11297 -931
- package/dist/awesome-comment.umd.js +68 -0
- package/package.json +1 -1
- package/dist/vendor-auth0-DkqbqvnH.js +0 -1464
- package/dist/vendor-i18n-B4UB934p.js +0 -984
- package/dist/vendor-lodash-CKuyBgAy.js +0 -714
- package/dist/vendor-lucide-Cl8oS5sQ.js +0 -96
- package/dist/vendor-marked-B6IoMkOX.js +0 -1105
- package/dist/vendor-misc-CwXjvmXA.js +0 -1916
- package/dist/vendor-pinia-Dzo8X_0B.js +0 -210
- package/dist/vendor-vue-BTtW1k2s.js +0 -4012
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
(function(ln,oe){typeof exports=="object"&&typeof module<"u"?module.exports=oe():typeof define=="function"&&define.amd?define(oe):(ln=typeof globalThis<"u"?globalThis:ln||self,ln.AwesomeComment=oe())})(this,(function(){"use strict";function ln(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const oe={},On=[],pt=()=>{},Zo=()=>!1,Wr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Js=e=>e.startsWith("onUpdate:"),Ne=Object.assign,qs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Yf=Object.prototype.hasOwnProperty,le=(e,t)=>Yf.call(e,t),B=Array.isArray,An=e=>Hr(e)==="[object Map]",Xo=e=>Hr(e)==="[object Set]",G=e=>typeof e=="function",xe=e=>typeof e=="string",Vt=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",Yo=e=>(ge(e)||G(e))&&G(e.then)&&G(e.catch),Jo=Object.prototype.toString,Hr=e=>Jo.call(e),Jf=e=>Hr(e).slice(8,-1),qo=e=>Hr(e)==="[object Object]",zr=e=>xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,qn=ln(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Vr=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},qf=/-\w/g,Qe=Vr(e=>e.replace(qf,t=>t.slice(1).toUpperCase())),Qf=/\B([A-Z])/g,Bt=Vr(e=>e.replace(Qf,"-$1").toLowerCase()),Br=Vr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Qs=Vr(e=>e?`on${Br(e)}`:""),Gt=(e,t)=>!Object.is(e,t),Gr=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Qo=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ei=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ea;const Zr=()=>ea||(ea=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Xr(e){if(B(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=xe(r)?rd(r):Xr(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(xe(e)||ge(e))return e}const ed=/;(?![^(]*\))/g,td=/:([^]+)/,nd=/\/\*[^]*?\*\//g;function rd(e){const t={};return e.replace(nd,"").split(ed).forEach(n=>{if(n){const r=n.split(td);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Pn(e){let t="";if(xe(e))t=e;else if(B(e))for(let n=0;n<e.length;n++){const r=Pn(e[n]);r&&(t+=r+" ")}else if(ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const sd=ln("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function ta(e){return!!e||e===""}const na=e=>!!(e&&e.__v_isRef===!0),_e=e=>xe(e)?e:e==null?"":B(e)||ge(e)&&(e.toString===Jo||!G(e.toString))?na(e)?_e(e.value):JSON.stringify(e,ra,2):String(e),ra=(e,t)=>na(t)?ra(e,t.value):An(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[ti(r,i)+" =>"]=s,n),{})}:Xo(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ti(n))}:Vt(t)?ti(t):ge(t)&&!B(t)&&!qo(t)?String(t):t,ti=(e,t="")=>{var n;return Vt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let De;class sa{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=De,!t&&De&&(this.index=(De.scopes||(De.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=De;try{return De=this,t()}finally{De=n}}}on(){++this._on===1&&(this.prevScope=De,De=this)}off(){this._on>0&&--this._on===0&&(De=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function ni(e){return new sa(e)}function ia(){return De}function id(e,t=!1){De&&De.cleanups.push(e)}let pe;const ri=new WeakSet;class oa{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,De&&De.active&&De.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ri.has(this)&&(ri.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||la(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ha(this),ca(this);const t=pe,n=it;pe=this,it=!0;try{return this.fn()}finally{ua(this),pe=t,it=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)ai(t);this.deps=this.depsTail=void 0,ha(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ri.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){oi(this)&&this.run()}get dirty(){return oi(this)}}let aa=0,Qn,er;function la(e,t=!1){if(e.flags|=8,t){e.next=er,er=e;return}e.next=Qn,Qn=e}function si(){aa++}function ii(){if(--aa>0)return;if(er){let t=er;for(er=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Qn;){let t=Qn;for(Qn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function ca(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ua(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),ai(r),od(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function oi(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(fa(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function fa(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===tr)||(e.globalVersion=tr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!oi(e))))return;e.flags|=2;const t=e.dep,n=pe,r=it;pe=e,it=!0;try{ca(e);const s=e.fn(e._value);(t.version===0||Gt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{pe=n,it=r,ua(e),e.flags&=-3}}function ai(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)ai(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function od(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let it=!0;const da=[];function mt(){da.push(it),it=!1}function gt(){const e=da.pop();it=e===void 0?!0:e}function ha(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=pe;pe=void 0;try{t()}finally{pe=n}}}let tr=0;class ad{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class li{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!pe||!it||pe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==pe)n=this.activeLink=new ad(pe,this),pe.deps?(n.prevDep=pe.depsTail,pe.depsTail.nextDep=n,pe.depsTail=n):pe.deps=pe.depsTail=n,pa(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=pe.depsTail,n.nextDep=void 0,pe.depsTail.nextDep=n,pe.depsTail=n,pe.deps===n&&(pe.deps=r)}return n}trigger(t){this.version++,tr++,this.notify(t)}notify(t){si();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ii()}}}function pa(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)pa(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Yr=new WeakMap,cn=Symbol(""),ci=Symbol(""),nr=Symbol("");function je(e,t,n){if(it&&pe){let r=Yr.get(e);r||Yr.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new li),s.map=r,s.key=n),s.track()}}function Pt(e,t,n,r,s,i){const o=Yr.get(e);if(!o){tr++;return}const a=l=>{l&&l.trigger()};if(si(),t==="clear")o.forEach(a);else{const l=B(e),u=l&&zr(n);if(l&&n==="length"){const c=Number(r);o.forEach((f,d)=>{(d==="length"||d===nr||!Vt(d)&&d>=c)&&a(f)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(nr)),t){case"add":l?u&&a(o.get("length")):(a(o.get(cn)),An(e)&&a(o.get(ci)));break;case"delete":l||(a(o.get(cn)),An(e)&&a(o.get(ci)));break;case"set":An(e)&&a(o.get(cn));break}}ii()}function ld(e,t){const n=Yr.get(e);return n&&n.get(t)}function Ln(e){const t=re(e);return t===e?t:(je(t,"iterate",nr),Ve(e)?t:t.map(ot))}function Jr(e){return je(e=re(e),"iterate",nr),e}function Zt(e,t){return $t(e)?Rt(e)?Rn(ot(t)):Rn(t):ot(t)}const cd={__proto__:null,[Symbol.iterator](){return ui(this,Symbol.iterator,e=>Zt(this,e))},concat(...e){return Ln(this).concat(...e.map(t=>B(t)?Ln(t):t))},entries(){return ui(this,"entries",e=>(e[1]=Zt(this,e[1]),e))},every(e,t){return Lt(this,"every",e,t,void 0,arguments)},filter(e,t){return Lt(this,"filter",e,t,n=>n.map(r=>Zt(this,r)),arguments)},find(e,t){return Lt(this,"find",e,t,n=>Zt(this,n),arguments)},findIndex(e,t){return Lt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Lt(this,"findLast",e,t,n=>Zt(this,n),arguments)},findLastIndex(e,t){return Lt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Lt(this,"forEach",e,t,void 0,arguments)},includes(...e){return fi(this,"includes",e)},indexOf(...e){return fi(this,"indexOf",e)},join(e){return Ln(this).join(e)},lastIndexOf(...e){return fi(this,"lastIndexOf",e)},map(e,t){return Lt(this,"map",e,t,void 0,arguments)},pop(){return rr(this,"pop")},push(...e){return rr(this,"push",e)},reduce(e,...t){return ma(this,"reduce",e,t)},reduceRight(e,...t){return ma(this,"reduceRight",e,t)},shift(){return rr(this,"shift")},some(e,t){return Lt(this,"some",e,t,void 0,arguments)},splice(...e){return rr(this,"splice",e)},toReversed(){return Ln(this).toReversed()},toSorted(e){return Ln(this).toSorted(e)},toSpliced(...e){return Ln(this).toSpliced(...e)},unshift(...e){return rr(this,"unshift",e)},values(){return ui(this,"values",e=>Zt(this,e))}};function ui(e,t,n){const r=Jr(e),s=r[t]();return r!==e&&!Ve(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const ud=Array.prototype;function Lt(e,t,n,r,s,i){const o=Jr(e),a=o!==e&&!Ve(e),l=o[t];if(l!==ud[t]){const f=l.apply(e,i);return a?ot(f):f}let u=n;o!==e&&(a?u=function(f,d){return n.call(this,Zt(e,f),d,e)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,e)}));const c=l.call(o,u,r);return a&&s?s(c):c}function ma(e,t,n,r){const s=Jr(e);let i=n;return s!==e&&(Ve(e)?n.length>3&&(i=function(o,a,l){return n.call(this,o,a,l,e)}):i=function(o,a,l){return n.call(this,o,Zt(e,a),l,e)}),s[t](i,...r)}function fi(e,t,n){const r=re(e);je(r,"iterate",nr);const s=r[t](...n);return(s===-1||s===!1)&&rs(n[0])?(n[0]=re(n[0]),r[t](...n)):s}function rr(e,t,n=[]){mt(),si();const r=re(e)[t].apply(e,n);return ii(),gt(),r}const fd=ln("__proto__,__v_isRef,__isVue"),ga=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Vt));function dd(e){Vt(e)||(e=String(e));const t=re(this);return je(t,"has",e),t.hasOwnProperty(e)}class _a{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?xa:ka:i?va:wa).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=B(t);if(!s){let l;if(o&&(l=cd[n]))return l;if(n==="hasOwnProperty")return dd}const a=Reflect.get(t,n,we(t)?t:r);if((Vt(n)?ga.has(n):fd(n))||(s||je(t,"get",n),i))return a;if(we(a)){const l=o&&zr(n)?a:a.value;return s&&ge(l)?hi(l):l}return ge(a)?s?hi(a):ts(a):a}}class ba extends _a{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];const o=B(t)&&zr(n);if(!this._isShallow){const u=$t(i);if(!Ve(r)&&!$t(r)&&(i=re(i),r=re(r)),!o&&we(i)&&!we(r))return u||(i.value=r),!0}const a=o?Number(n)<t.length:le(t,n),l=Reflect.set(t,n,r,we(t)?t:s);return t===re(s)&&(a?Gt(r,i)&&Pt(t,"set",n,r):Pt(t,"add",n,r)),l}deleteProperty(t,n){const r=le(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&Pt(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!Vt(n)||!ga.has(n))&&je(t,"has",n),r}ownKeys(t){return je(t,"iterate",B(t)?"length":cn),Reflect.ownKeys(t)}}class ya extends _a{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const hd=new ba,pd=new ya,md=new ba(!0),gd=new ya(!0),di=e=>e,qr=e=>Reflect.getPrototypeOf(e);function _d(e,t,n){return function(...r){const s=this.__v_raw,i=re(s),o=An(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=s[e](...r),c=n?di:t?Rn:ot;return!t&&je(i,"iterate",l?ci:cn),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:a?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function Qr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function bd(e,t){const n={get(s){const i=this.__v_raw,o=re(i),a=re(s);e||(Gt(s,a)&&je(o,"get",s),je(o,"get",a));const{has:l}=qr(o),u=t?di:e?Rn:ot;if(l.call(o,s))return u(i.get(s));if(l.call(o,a))return u(i.get(a));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!e&&je(re(s),"iterate",cn),s.size},has(s){const i=this.__v_raw,o=re(i),a=re(s);return e||(Gt(s,a)&&je(o,"has",s),je(o,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){const o=this,a=o.__v_raw,l=re(a),u=t?di:e?Rn:ot;return!e&&je(l,"iterate",cn),a.forEach((c,f)=>s.call(i,u(c),u(f),o))}};return Ne(n,e?{add:Qr("add"),set:Qr("set"),delete:Qr("delete"),clear:Qr("clear")}:{add(s){!t&&!Ve(s)&&!$t(s)&&(s=re(s));const i=re(this);return qr(i).has.call(i,s)||(i.add(s),Pt(i,"add",s,s)),this},set(s,i){!t&&!Ve(i)&&!$t(i)&&(i=re(i));const o=re(this),{has:a,get:l}=qr(o);let u=a.call(o,s);u||(s=re(s),u=a.call(o,s));const c=l.call(o,s);return o.set(s,i),u?Gt(i,c)&&Pt(o,"set",s,i):Pt(o,"add",s,i),this},delete(s){const i=re(this),{has:o,get:a}=qr(i);let l=o.call(i,s);l||(s=re(s),l=o.call(i,s)),a&&a.call(i,s);const u=i.delete(s);return l&&Pt(i,"delete",s,void 0),u},clear(){const s=re(this),i=s.size!==0,o=s.clear();return i&&Pt(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=_d(s,e,t)}),n}function es(e,t){const n=bd(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(le(n,s)&&s in r?n:r,s,i)}const yd={get:es(!1,!1)},wd={get:es(!1,!0)},vd={get:es(!0,!1)},kd={get:es(!0,!0)},wa=new WeakMap,va=new WeakMap,ka=new WeakMap,xa=new WeakMap;function xd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Sd(e){return e.__v_skip||!Object.isExtensible(e)?0:xd(Jf(e))}function ts(e){return $t(e)?e:ns(e,!1,hd,yd,wa)}function Td(e){return ns(e,!1,md,wd,va)}function hi(e){return ns(e,!0,pd,vd,ka)}function Rk(e){return ns(e,!0,gd,kd,xa)}function ns(e,t,n,r,s){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=Sd(e);if(i===0)return e;const o=s.get(e);if(o)return o;const a=new Proxy(e,i===2?r:n);return s.set(e,a),a}function Rt(e){return $t(e)?Rt(e.__v_raw):!!(e&&e.__v_isReactive)}function $t(e){return!!(e&&e.__v_isReadonly)}function Ve(e){return!!(e&&e.__v_isShallow)}function rs(e){return e?!!e.__v_raw:!1}function re(e){const t=e&&e.__v_raw;return t?re(t):e}function pi(e){return!le(e,"__v_skip")&&Object.isExtensible(e)&&Qo(e,"__v_skip",!0),e}const ot=e=>ge(e)?ts(e):e,Rn=e=>ge(e)?hi(e):e;function we(e){return e?e.__v_isRef===!0:!1}function q(e){return Sa(e,!1)}function Ed(e){return Sa(e,!0)}function Sa(e,t){return we(e)?e:new Id(e,t)}class Id{constructor(t,n){this.dep=new li,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:re(t),this._value=n?t:ot(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Ve(t)||$t(t);t=r?t:re(t),Gt(t,n)&&(this._rawValue=t,this._value=r?t:ot(t),this.dep.trigger())}}function W(e){return we(e)?e.value:e}const Cd={get:(e,t,n)=>t==="__v_raw"?e:W(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return we(s)&&!we(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Ta(e){return Rt(e)?e:new Proxy(e,Cd)}function Od(e){const t=B(e)?new Array(e.length):{};for(const n in e)t[n]=Pd(e,n);return t}class Ad{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=re(t);let s=!0,i=t;if(!B(t)||!zr(String(n)))do s=!rs(i)||Ve(i);while(s&&(i=i.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=W(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&we(this._raw[this._key])){const n=this._object[this._key];if(we(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return ld(this._raw,this._key)}}function Pd(e,t,n){return new Ad(e,t,n)}class Ld{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new li(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=tr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&pe!==this)return la(this,!0),!0}get value(){const t=this.dep.track();return fa(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Rd(e,t,n=!1){let r,s;return G(e)?r=e:(r=e.get,s=e.set),new Ld(r,s,n)}const ss={},is=new WeakMap;let un;function $d(e,t=!1,n=un){if(n){let r=is.get(n);r||is.set(n,r=[]),r.push(e)}}function Nd(e,t,n=oe){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=n,u=g=>s?g:Ve(g)||s===!1||s===0?Nt(g,1):Nt(g);let c,f,d,h,y=!1,w=!1;if(we(e)?(f=()=>e.value,y=Ve(e)):Rt(e)?(f=()=>u(e),y=!0):B(e)?(w=!0,y=e.some(g=>Rt(g)||Ve(g)),f=()=>e.map(g=>{if(we(g))return g.value;if(Rt(g))return u(g);if(G(g))return l?l(g,2):g()})):G(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){mt();try{d()}finally{gt()}}const g=un;un=c;try{return l?l(e,3,[h]):e(h)}finally{un=g}}:f=pt,t&&s){const g=f,A=s===!0?1/0:s;f=()=>Nt(g(),A)}const E=ia(),_=()=>{c.stop(),E&&E.active&&qs(E.effects,c)};if(i&&t){const g=t;t=(...A)=>{g(...A),_()}}let v=w?new Array(e.length).fill(ss):ss;const T=g=>{if(!(!(c.flags&1)||!c.dirty&&!g))if(t){const A=c.run();if(s||y||(w?A.some((D,P)=>Gt(D,v[P])):Gt(A,v))){d&&d();const D=un;un=c;try{const P=[A,v===ss?void 0:w&&v[0]===ss?[]:v,h];v=A,l?l(t,3,P):t(...P)}finally{un=D}}}else c.run()};return a&&a(T),c=new oa(f),c.scheduler=o?()=>o(T,!1):T,h=g=>$d(g,!1,c),d=c.onStop=()=>{const g=is.get(c);if(g){if(l)l(g,4);else for(const A of g)A();is.delete(c)}},t?r?T(!0):v=c.run():o?o(T.bind(null,!0),!0):c.run(),_.pause=c.pause.bind(c),_.resume=c.resume.bind(c),_.stop=_,_}function Nt(e,t=1/0,n){if(t<=0||!ge(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,we(e))Nt(e.value,t,n);else if(B(e))for(let r=0;r<e.length;r++)Nt(e[r],t,n);else if(Xo(e)||An(e))e.forEach(r=>{Nt(r,t,n)});else if(qo(e)){for(const r in e)Nt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Nt(e[r],t,n)}return e}const sr=[];let mi=!1;function $k(e,...t){if(mi)return;mi=!0,mt();const n=sr.length?sr[sr.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=Dd();if(r)$n(r,n,11,[e+t.map(i=>{var o,a;return(a=(o=i.toString)==null?void 0:o.call(i))!=null?a:JSON.stringify(i)}).join(""),n&&n.proxy,s.map(({vnode:i})=>`at <${yl(n,i.type)}>`).join(`
|
|
2
|
+
`),s]);else{const i=[`[Vue warn]: ${e}`,...t];s.length&&i.push(`
|
|
3
|
+
`,...jd(s)),console.warn(...i)}gt(),mi=!1}function Dd(){let e=sr[sr.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function jd(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
|
|
4
|
+
`],...Md(n))}),t}function Md({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,s=` at <${yl(e.component,e.type,r)}`,i=">"+n;return e.props?[s,...Fd(e.props),i]:[s+i]}function Fd(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...Ea(r,e[r]))}),n.length>3&&t.push(" ..."),t}function Ea(e,t,n){return xe(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:we(t)?(t=Ea(e,re(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):G(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=re(t),n?t:[`${e}=`,t])}function $n(e,t,n,r){try{return r?e(...r):e()}catch(s){os(s,t,n)}}function _t(e,t,n,r){if(G(e)){const s=$n(e,t,n,r);return s&&Yo(s)&&s.catch(i=>{os(i,t,n)}),s}if(B(e)){const s=[];for(let i=0;i<e.length;i++)s.push(_t(e[i],t,n,r));return s}}function os(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||oe;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}a=a.parent}if(i){mt(),$n(i,null,10,[e,l,u]),gt();return}}Ud(e,n,s,r,o)}function Ud(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Ke=[];let bt=-1;const Nn=[];let Xt=null,Dn=0;const Ia=Promise.resolve();let as=null;function ir(e){const t=as||Ia;return e?t.then(this?e.bind(this):e):t}function Kd(e){let t=bt+1,n=Ke.length;for(;t<n;){const r=t+n>>>1,s=Ke[r],i=or(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function gi(e){if(!(e.flags&1)){const t=or(e),n=Ke[Ke.length-1];!n||!(e.flags&2)&&t>=or(n)?Ke.push(e):Ke.splice(Kd(t),0,e),e.flags|=1,Ca()}}function Ca(){as||(as=Ia.then(Pa))}function Wd(e){B(e)?Nn.push(...e):Xt&&e.id===-1?Xt.splice(Dn+1,0,e):e.flags&1||(Nn.push(e),e.flags|=1),Ca()}function Oa(e,t,n=bt+1){for(;n<Ke.length;n++){const r=Ke[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Ke.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Aa(e){if(Nn.length){const t=[...new Set(Nn)].sort((n,r)=>or(n)-or(r));if(Nn.length=0,Xt){Xt.push(...t);return}for(Xt=t,Dn=0;Dn<Xt.length;Dn++){const n=Xt[Dn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Xt=null,Dn=0}}const or=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Pa(e){try{for(bt=0;bt<Ke.length;bt++){const t=Ke[bt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),$n(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;bt<Ke.length;bt++){const t=Ke[bt];t&&(t.flags&=-2)}bt=-1,Ke.length=0,Aa(),as=null,(Ke.length||Nn.length)&&Pa()}}let Be=null,La=null;function ls(e){const t=Be;return Be=e,La=e&&e.type.__scopeId||null,t}function Hd(e,t=Be,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&hs(-1);const i=ls(t);let o;try{o=e(...s)}finally{ls(i),r._d&&hs(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function zd(e,t){if(Be===null)return e;const n=_s(Be),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,a,l=oe]=t[s];i&&(G(i)&&(i={mounted:i,updated:i}),i.deep&&Nt(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function fn(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const a=s[o];i&&(a.oldValue=i[o].value);let l=a.dir[r];l&&(mt(),_t(l,n,8,[e.el,a,e,t]),gt())}}function Vd(e,t){if(Me){let n=Me.provides;const r=Me.parent&&Me.parent.provides;r===n&&(n=Me.provides=Object.create(r)),n[e]=t}}function Ee(e,t,n=!1){const r=Oi();if(r||dn){let s=dn?dn._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&G(t)?t.call(r&&r.proxy):t}}function Bd(){return!!(Oi()||dn)}const Gd=Symbol.for("v-scx"),Zd=()=>Ee(Gd);function Ge(e,t,n){return Ra(e,t,n)}function Ra(e,t,n=oe){const{immediate:r,deep:s,flush:i,once:o}=n,a=Ne({},n),l=t&&r||!t&&i!=="post";let u;if(gr){if(i==="sync"){const h=Zd();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=pt,h.resume=pt,h.pause=pt,h}}const c=Me;a.call=(h,y,w)=>_t(h,c,y,w);let f=!1;i==="post"?a.scheduler=h=>{Ze(h,c&&c.suspense)}:i!=="sync"&&(f=!0,a.scheduler=(h,y)=>{y?h():gi(h)}),a.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=Nd(e,t,a);return gr&&(u?u.push(d):l&&d()),d}function Xd(e,t,n){const r=this.proxy,s=xe(e)?e.includes(".")?$a(r,e):()=>r[e]:e.bind(r,r);let i;G(t)?i=t:(i=t.handler,n=t);const o=mr(this),a=Ra(s,i.bind(r),n);return o(),a}function $a(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const Yd=Symbol("_vte"),Jd=e=>e.__isTeleport,qd=Symbol("_leaveCb");function _i(e,t){e.shapeFlag&6&&e.component?(e.transition=t,_i(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function yt(e,t){return G(e)?Ne({name:e.name},t,{setup:e}):e}function Na(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const cs=new WeakMap;function ar(e,t,n,r,s=!1){if(B(e)){e.forEach((y,w)=>ar(y,t&&(B(t)?t[w]:t),n,r,s));return}if(lr(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&ar(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?_s(r.component):r.el,o=s?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===oe?a.refs={}:a.refs,f=a.setupState,d=re(f),h=f===oe?Zo:y=>le(d,y);if(u!=null&&u!==l){if(Da(t),xe(u))c[u]=null,h(u)&&(f[u]=null);else if(we(u)){u.value=null;const y=t;y.k&&(c[y.k]=null)}}if(G(l))$n(l,a,12,[o,c]);else{const y=xe(l),w=we(l);if(y||w){const E=()=>{if(e.f){const _=y?h(l)?f[l]:c[l]:l.value;if(s)B(_)&&qs(_,i);else if(B(_))_.includes(i)||_.push(i);else if(y)c[l]=[i],h(l)&&(f[l]=c[l]);else{const v=[i];l.value=v,e.k&&(c[e.k]=v)}}else y?(c[l]=o,h(l)&&(f[l]=o)):w&&(l.value=o,e.k&&(c[e.k]=o))};if(o){const _=()=>{E(),cs.delete(e)};_.id=-1,cs.set(e,_),Ze(_,n)}else Da(e),E()}}}function Da(e){const t=cs.get(e);t&&(t.flags|=8,cs.delete(e))}Zr().requestIdleCallback,Zr().cancelIdleCallback;const lr=e=>!!e.type.__asyncLoader,ja=e=>e.type.__isKeepAlive;function Qd(e,t){Ma(e,"a",t)}function eh(e,t){Ma(e,"da",t)}function Ma(e,t,n=Me){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(us(t,r,n),n){let s=n.parent;for(;s&&s.parent;)ja(s.parent.vnode)&&th(r,t,n,s),s=s.parent}}function th(e,t,n,r){const s=us(t,e,r,!0);bi(()=>{qs(r[t],s)},n)}function us(e,t,n=Me,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{mt();const a=mr(n),l=_t(t,n,e,o);return a(),gt(),l});return r?s.unshift(i):s.push(i),i}}const Dt=e=>(t,n=Me)=>{(!gr||e==="sp")&&us(e,(...r)=>t(...r),n)},nh=Dt("bm"),jn=Dt("m"),rh=Dt("bu"),sh=Dt("u"),Fa=Dt("bum"),bi=Dt("um"),ih=Dt("sp"),oh=Dt("rtg"),ah=Dt("rtc");function lh(e,t=Me){us("ec",e,t)}const ch="components";function uh(e,t){return dh(ch,e,!0,t)||e}const fh=Symbol.for("v-ndc");function dh(e,t,n=!0,r=!1){const s=Be||Me;if(s){const i=s.type;{const a=bl(i,!1);if(a&&(a===t||a===Qe(t)||a===Br(Qe(t))))return i}const o=Ua(s[e]||i[e],t)||Ua(s.appContext[e],t);return!o&&r?i:o}}function Ua(e,t){return e&&(e[t]||e[Qe(t)]||e[Br(Qe(t))])}function Ka(e,t,n,r){let s;const i=n,o=B(e);if(o||xe(e)){const a=o&&Rt(e);let l=!1,u=!1;a&&(l=!Ve(e),u=$t(e),e=Jr(e)),s=new Array(e.length);for(let c=0,f=e.length;c<f;c++)s[c]=t(l?u?Rn(ot(e[c])):ot(e[c]):e[c],c,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,i)}else if(ge(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,i));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];s[l]=t(e[c],c,l,i)}}else s=[];return s}const yi=e=>e?ml(e)?_s(e):yi(e.parent):null,cr=Ne(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>yi(e.parent),$root:e=>yi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Va(e),$forceUpdate:e=>e.f||(e.f=()=>{gi(e.update)}),$nextTick:e=>e.n||(e.n=ir.bind(e.proxy)),$watch:e=>Xd.bind(e)}),wi=(e,t)=>e!==oe&&!e.__isScriptSetup&&le(e,t),hh={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:l}=e;if(t[0]!=="$"){const d=o[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(wi(r,t))return o[t]=1,r[t];if(s!==oe&&le(s,t))return o[t]=2,s[t];if(le(i,t))return o[t]=3,i[t];if(n!==oe&&le(n,t))return o[t]=4,n[t];vi&&(o[t]=0)}}const u=cr[t];let c,f;if(u)return t==="$attrs"&&je(e.attrs,"get",""),u(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(n!==oe&&le(n,t))return o[t]=4,n[t];if(f=l.config.globalProperties,le(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return wi(s,t)?(s[t]=n,!0):r!==oe&&le(r,t)?(r[t]=n,!0):le(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:i,type:o}},a){let l;return!!(n[a]||e!==oe&&a[0]!=="$"&&le(e,a)||wi(t,a)||le(i,a)||le(r,a)||le(cr,a)||le(s.config.globalProperties,a)||(l=o.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:le(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Wa(e){return B(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let vi=!0;function ph(e){const t=Va(e),n=e.proxy,r=e.ctx;vi=!1,t.beforeCreate&&Ha(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:y,activated:w,deactivated:E,beforeDestroy:_,beforeUnmount:v,destroyed:T,unmounted:g,render:A,renderTracked:D,renderTriggered:P,errorCaptured:M,serverPrefetch:U,expose:J,inheritAttrs:te,components:Z,directives:Le,filters:Je}=t;if(u&&mh(u,r,null),o)for(const V in o){const ne=o[V];G(ne)&&(r[V]=ne.bind(n))}if(s){const V=s.call(n,n);ge(V)&&(e.data=ts(V))}if(vi=!0,i)for(const V in i){const ne=i[V],ue=G(ne)?ne.bind(n,n):G(ne.get)?ne.get.bind(n,n):pt,nt=!G(ne)&&G(ne.set)?ne.set.bind(n):pt,$e=et({get:ue,set:nt});Object.defineProperty(r,V,{enumerable:!0,configurable:!0,get:()=>$e.value,set:Ue=>$e.value=Ue})}if(a)for(const V in a)za(a[V],r,n,V);if(l){const V=G(l)?l.call(n):l;Reflect.ownKeys(V).forEach(ne=>{Vd(ne,V[ne])})}c&&Ha(c,e,"c");function X(V,ne){B(ne)?ne.forEach(ue=>V(ue.bind(n))):ne&&V(ne.bind(n))}if(X(nh,f),X(jn,d),X(rh,h),X(sh,y),X(Qd,w),X(eh,E),X(lh,M),X(ah,D),X(oh,P),X(Fa,v),X(bi,g),X(ih,U),B(J))if(J.length){const V=e.exposed||(e.exposed={});J.forEach(ne=>{Object.defineProperty(V,ne,{get:()=>n[ne],set:ue=>n[ne]=ue,enumerable:!0})})}else e.exposed||(e.exposed={});A&&e.render===pt&&(e.render=A),te!=null&&(e.inheritAttrs=te),Z&&(e.components=Z),Le&&(e.directives=Le),U&&Na(e)}function mh(e,t,n=pt){B(e)&&(e=ki(e));for(const r in e){const s=e[r];let i;ge(s)?"default"in s?i=Ee(s.from||r,s.default,!0):i=Ee(s.from||r):i=Ee(s),we(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function Ha(e,t,n){_t(B(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function za(e,t,n,r){let s=r.includes(".")?$a(n,r):()=>n[r];if(xe(e)){const i=t[e];G(i)&&Ge(s,i)}else if(G(e))Ge(s,e.bind(n));else if(ge(e))if(B(e))e.forEach(i=>za(i,t,n,r));else{const i=G(e.handler)?e.handler.bind(n):t[e.handler];G(i)&&Ge(s,i,e)}}function Va(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(u=>fs(l,u,o,!0)),fs(l,t,o)),ge(t)&&i.set(t,l),l}function fs(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&fs(e,i,n,!0),s&&s.forEach(o=>fs(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=gh[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const gh={data:Ba,props:Ga,emits:Ga,methods:ur,computed:ur,beforeCreate:We,created:We,beforeMount:We,mounted:We,beforeUpdate:We,updated:We,beforeDestroy:We,beforeUnmount:We,destroyed:We,unmounted:We,activated:We,deactivated:We,errorCaptured:We,serverPrefetch:We,components:ur,directives:ur,watch:bh,provide:Ba,inject:_h};function Ba(e,t){return t?e?function(){return Ne(G(e)?e.call(this,this):e,G(t)?t.call(this,this):t)}:t:e}function _h(e,t){return ur(ki(e),ki(t))}function ki(e){if(B(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function We(e,t){return e?[...new Set([].concat(e,t))]:t}function ur(e,t){return e?Ne(Object.create(null),e,t):t}function Ga(e,t){return e?B(e)&&B(t)?[...new Set([...e,...t])]:Ne(Object.create(null),Wa(e),Wa(t??{})):t}function bh(e,t){if(!e)return t;if(!t)return e;const n=Ne(Object.create(null),e);for(const r in t)n[r]=We(e[r],t[r]);return n}function Za(){return{app:null,config:{isNativeTag:Zo,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 yh=0;function wh(e,t){return function(r,s=null){G(r)||(r=Ne({},r)),s!=null&&!ge(s)&&(s=null);const i=Za(),o=new WeakSet,a=[];let l=!1;const u=i.app={_uid:yh++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:Qh,get config(){return i.config},set config(c){},use(c,...f){return o.has(c)||(c&&G(c.install)?(o.add(c),c.install(u,...f)):G(c)&&(o.add(c),c(u,...f))),u},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),u},component(c,f){return f?(i.components[c]=f,u):i.components[c]},directive(c,f){return f?(i.directives[c]=f,u):i.directives[c]},mount(c,f,d){if(!l){const h=u._ceVNode||Se(r,s);return h.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),e(h,c,d),l=!0,u._container=c,c.__vue_app__=u,_s(h.component)}},onUnmount(c){a.push(c)},unmount(){l&&(_t(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return i.provides[c]=f,u},runWithContext(c){const f=dn;dn=u;try{return c()}finally{dn=f}}};return u}}let dn=null;const vh=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Qe(t)}Modifiers`]||e[`${Bt(t)}Modifiers`];function kh(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||oe;let s=n;const i=t.startsWith("update:"),o=i&&vh(r,t.slice(7));o&&(o.trim&&(s=n.map(c=>xe(c)?c.trim():c)),o.number&&(s=n.map(ei)));let a,l=r[a=Qs(t)]||r[a=Qs(Qe(t))];!l&&i&&(l=r[a=Qs(Bt(t))]),l&&_t(l,e,6,s);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,_t(u,e,6,s)}}const xh=new WeakMap;function Xa(e,t,n=!1){const r=n?xh:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!G(e)){const l=u=>{const c=Xa(u,t,!0);c&&(a=!0,Ne(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(ge(e)&&r.set(e,null),null):(B(i)?i.forEach(l=>o[l]=null):Ne(o,i),ge(e)&&r.set(e,o),o)}function ds(e,t){return!e||!Wr(t)?!1:(t=t.slice(2).replace(/Once$/,""),le(e,t[0].toLowerCase()+t.slice(1))||le(e,Bt(t))||le(e,t))}function Nk(){}function Ya(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:l,render:u,renderCache:c,props:f,data:d,setupState:h,ctx:y,inheritAttrs:w}=e,E=ls(e);let _,v;try{if(n.shapeFlag&4){const g=s||r,A=g;_=wt(u.call(A,g,c,f,h,d,y)),v=a}else{const g=t;_=wt(g.length>1?g(f,{attrs:a,slots:o,emit:l}):g(f,null)),v=t.props?a:Sh(a)}}catch(g){dr.length=0,os(g,e,1),_=Se(Yt)}let T=_;if(v&&w!==!1){const g=Object.keys(v),{shapeFlag:A}=T;g.length&&A&7&&(i&&g.some(Js)&&(v=Th(v,i)),T=Mn(T,v,!1,!0))}return n.dirs&&(T=Mn(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(n.dirs):n.dirs),n.transition&&_i(T,n.transition),_=T,ls(E),_}const Sh=e=>{let t;for(const n in e)(n==="class"||n==="style"||Wr(n))&&((t||(t={}))[n]=e[n]);return t},Th=(e,t)=>{const n={};for(const r in e)(!Js(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Eh(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Ja(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(o[d]!==r[d]&&!ds(u,d))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?Ja(r,o,u):!0:!!o;return!1}function Ja(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(t[i]!==e[i]&&!ds(n,i))return!0}return!1}function Ih({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const qa={},Qa=()=>Object.create(qa),el=e=>Object.getPrototypeOf(e)===qa;function Ch(e,t,n,r=!1){const s={},i=Qa();e.propsDefaults=Object.create(null),tl(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:Td(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Oh(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=re(s),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(ds(e.emitsOptions,d))continue;const h=t[d];if(l)if(le(i,d))h!==i[d]&&(i[d]=h,u=!0);else{const y=Qe(d);s[y]=xi(l,a,y,h,e,!1)}else h!==i[d]&&(i[d]=h,u=!0)}}}else{tl(e,t,s,i)&&(u=!0);let c;for(const f in a)(!t||!le(t,f)&&((c=Bt(f))===f||!le(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(s[f]=xi(l,a,f,void 0,e,!0)):delete s[f]);if(i!==a)for(const f in i)(!t||!le(t,f))&&(delete i[f],u=!0)}u&&Pt(e.attrs,"set","")}function tl(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(qn(l))continue;const u=t[l];let c;s&&le(s,c=Qe(l))?!i||!i.includes(c)?n[c]=u:(a||(a={}))[c]=u:ds(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(i){const l=re(n),u=a||oe;for(let c=0;c<i.length;c++){const f=i[c];n[f]=xi(s,l,f,u[f],e,!le(u,f))}}return o}function xi(e,t,n,r,s,i){const o=e[n];if(o!=null){const a=le(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&G(l)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const c=mr(s);r=u[n]=l.call(null,t),c()}}else r=l;s.ce&&s.ce._setProp(n,r)}o[0]&&(i&&!a?r=!1:o[1]&&(r===""||r===Bt(n))&&(r=!0))}return r}const Ah=new WeakMap;function nl(e,t,n=!1){const r=n?Ah:t.propsCache,s=r.get(e);if(s)return s;const i=e.props,o={},a=[];let l=!1;if(!G(e)){const c=f=>{l=!0;const[d,h]=nl(f,t,!0);Ne(o,d),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return ge(e)&&r.set(e,On),On;if(B(i))for(let c=0;c<i.length;c++){const f=Qe(i[c]);rl(f)&&(o[f]=oe)}else if(i)for(const c in i){const f=Qe(c);if(rl(f)){const d=i[c],h=o[f]=B(d)||G(d)?{type:d}:Ne({},d),y=h.type;let w=!1,E=!0;if(B(y))for(let _=0;_<y.length;++_){const v=y[_],T=G(v)&&v.name;if(T==="Boolean"){w=!0;break}else T==="String"&&(E=!1)}else w=G(y)&&y.name==="Boolean";h[0]=w,h[1]=E,(w||le(h,"default"))&&a.push(f)}}const u=[o,a];return ge(e)&&r.set(e,u),u}function rl(e){return e[0]!=="$"&&!qn(e)}const Si=e=>e==="_"||e==="_ctx"||e==="$stable",Ti=e=>B(e)?e.map(wt):[wt(e)],Ph=(e,t,n)=>{if(t._n)return t;const r=Hd((...s)=>Ti(t(...s)),n);return r._c=!1,r},sl=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Si(s))continue;const i=e[s];if(G(i))t[s]=Ph(s,i,r);else if(i!=null){const o=Ti(i);t[s]=()=>o}}},il=(e,t)=>{const n=Ti(t);e.slots.default=()=>n},ol=(e,t,n)=>{for(const r in t)(n||!Si(r))&&(e[r]=t[r])},Lh=(e,t,n)=>{const r=e.slots=Qa();if(e.vnode.shapeFlag&32){const s=t._;s?(ol(r,t,n),n&&Qo(r,"_",s,!0)):sl(t,r)}else t&&il(e,t)},Rh=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=oe;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:ol(s,t,n):(i=!t.$stable,sl(t,s)),o=t}else t&&(il(e,t),o={default:1});if(i)for(const a in s)!Si(a)&&o[a]==null&&delete s[a]},Ze=Mh;function $h(e){return Nh(e)}function Nh(e,t){const n=Zr();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=pt,insertStaticContent:y}=e,w=(b,k,O,$=null,R=null,N=null,p=void 0,m=null,x=!!k.dynamicChildren)=>{if(b===k)return;b&&!pr(b,k)&&($=ft(b),Ue(b,R,N,!0),b=null),k.patchFlag===-2&&(x=!1,k.dynamicChildren=null);const{type:I,ref:j,shapeFlag:L}=k;switch(I){case fr:E(b,k,O,$);break;case Yt:_(b,k,O,$);break;case Ii:b==null&&v(k,O,$,p);break;case Ie:Z(b,k,O,$,R,N,p,m,x);break;default:L&1?A(b,k,O,$,R,N,p,m,x):L&6?Le(b,k,O,$,R,N,p,m,x):(L&64||L&128)&&I.process(b,k,O,$,R,N,p,m,x,Ot)}j!=null&&R?ar(j,b&&b.ref,N,k||b,!k):j==null&&b&&b.ref!=null&&ar(b.ref,null,N,b,!0)},E=(b,k,O,$)=>{if(b==null)r(k.el=a(k.children),O,$);else{const R=k.el=b.el;k.children!==b.children&&u(R,k.children)}},_=(b,k,O,$)=>{b==null?r(k.el=l(k.children||""),O,$):k.el=b.el},v=(b,k,O,$)=>{[b.el,b.anchor]=y(b.children,k,O,$,b.el,b.anchor)},T=({el:b,anchor:k},O,$)=>{let R;for(;b&&b!==k;)R=d(b),r(b,O,$),b=R;r(k,O,$)},g=({el:b,anchor:k})=>{let O;for(;b&&b!==k;)O=d(b),s(b),b=O;s(k)},A=(b,k,O,$,R,N,p,m,x)=>{if(k.type==="svg"?p="svg":k.type==="math"&&(p="mathml"),b==null)D(k,O,$,R,N,p,m,x);else{const I=b.el&&b.el._isVueCE?b.el:null;try{I&&I._beginPatch(),U(b,k,R,N,p,m,x)}finally{I&&I._endPatch()}}},D=(b,k,O,$,R,N,p,m)=>{let x,I;const{props:j,shapeFlag:L,transition:S,dirs:C}=b;if(x=b.el=o(b.type,N,j&&j.is,j),L&8?c(x,b.children):L&16&&M(b.children,x,null,$,R,Ei(b,N),p,m),C&&fn(b,null,$,"created"),P(x,b,b.scopeId,p,$),j){for(const z in j)z!=="value"&&!qn(z)&&i(x,z,null,j[z],N,$);"value"in j&&i(x,"value",null,j.value,N),(I=j.onVnodeBeforeMount)&&vt(I,$,b)}C&&fn(b,null,$,"beforeMount");const K=Dh(R,S);K&&S.beforeEnter(x),r(x,k,O),((I=j&&j.onVnodeMounted)||K||C)&&Ze(()=>{I&&vt(I,$,b),K&&S.enter(x),C&&fn(b,null,$,"mounted")},R)},P=(b,k,O,$,R)=>{if(O&&h(b,O),$)for(let N=0;N<$.length;N++)h(b,$[N]);if(R){let N=R.subTree;if(k===N||fl(N.type)&&(N.ssContent===k||N.ssFallback===k)){const p=R.vnode;P(b,p,p.scopeId,p.slotScopeIds,R.parent)}}},M=(b,k,O,$,R,N,p,m,x=0)=>{for(let I=x;I<b.length;I++){const j=b[I]=m?qt(b[I]):wt(b[I]);w(null,j,k,O,$,R,N,p,m)}},U=(b,k,O,$,R,N,p)=>{const m=k.el=b.el;let{patchFlag:x,dynamicChildren:I,dirs:j}=k;x|=b.patchFlag&16;const L=b.props||oe,S=k.props||oe;let C;if(O&&hn(O,!1),(C=S.onVnodeBeforeUpdate)&&vt(C,O,k,b),j&&fn(k,b,O,"beforeUpdate"),O&&hn(O,!0),(L.innerHTML&&S.innerHTML==null||L.textContent&&S.textContent==null)&&c(m,""),I?J(b.dynamicChildren,I,m,O,$,Ei(k,R),N):p||ne(b,k,m,null,O,$,Ei(k,R),N,!1),x>0){if(x&16)te(m,L,S,O,R);else if(x&2&&L.class!==S.class&&i(m,"class",null,S.class,R),x&4&&i(m,"style",L.style,S.style,R),x&8){const K=k.dynamicProps;for(let z=0;z<K.length;z++){const ee=K[z],Re=L[ee],Te=S[ee];(Te!==Re||ee==="value")&&i(m,ee,Re,Te,R,O)}}x&1&&b.children!==k.children&&c(m,k.children)}else!p&&I==null&&te(m,L,S,O,R);((C=S.onVnodeUpdated)||j)&&Ze(()=>{C&&vt(C,O,k,b),j&&fn(k,b,O,"updated")},$)},J=(b,k,O,$,R,N,p)=>{for(let m=0;m<k.length;m++){const x=b[m],I=k[m],j=x.el&&(x.type===Ie||!pr(x,I)||x.shapeFlag&198)?f(x.el):O;w(x,I,j,null,$,R,N,p,!0)}},te=(b,k,O,$,R)=>{if(k!==O){if(k!==oe)for(const N in k)!qn(N)&&!(N in O)&&i(b,N,k[N],null,R,$);for(const N in O){if(qn(N))continue;const p=O[N],m=k[N];p!==m&&N!=="value"&&i(b,N,m,p,R,$)}"value"in O&&i(b,"value",k.value,O.value,R)}},Z=(b,k,O,$,R,N,p,m,x)=>{const I=k.el=b?b.el:a(""),j=k.anchor=b?b.anchor:a("");let{patchFlag:L,dynamicChildren:S,slotScopeIds:C}=k;C&&(m=m?m.concat(C):C),b==null?(r(I,O,$),r(j,O,$),M(k.children||[],O,j,R,N,p,m,x)):L>0&&L&64&&S&&b.dynamicChildren&&b.dynamicChildren.length===S.length?(J(b.dynamicChildren,S,O,R,N,p,m),(k.key!=null||R&&k===R.subTree)&&al(b,k,!0)):ne(b,k,O,j,R,N,p,m,x)},Le=(b,k,O,$,R,N,p,m,x)=>{k.slotScopeIds=m,b==null?k.shapeFlag&512?R.ctx.activate(k,O,$,p,x):Je(k,O,$,R,N,p,x):ve(b,k,x)},Je=(b,k,O,$,R,N,p)=>{const m=b.component=Vh(b,$,R);if(ja(b)&&(m.ctx.renderer=Ot),Bh(m,!1,p),m.asyncDep){if(R&&R.registerDep(m,X,p),!b.el){const x=m.subTree=Se(Yt);_(null,x,k,O),b.placeholder=x.el}}else X(m,b,k,O,R,N,p)},ve=(b,k,O)=>{const $=k.component=b.component;if(Eh(b,k,O))if($.asyncDep&&!$.asyncResolved){V($,k,O);return}else $.next=k,$.update();else k.el=b.el,$.vnode=k},X=(b,k,O,$,R,N,p)=>{const m=()=>{if(b.isMounted){let{next:L,bu:S,u:C,parent:K,vnode:z}=b;{const ht=ll(b);if(ht){L&&(L.el=z.el,V(b,L,p)),ht.asyncDep.then(()=>{b.isUnmounted||m()});return}}let ee=L,Re;hn(b,!1),L?(L.el=z.el,V(b,L,p)):L=z,S&&Gr(S),(Re=L.props&&L.props.onVnodeBeforeUpdate)&&vt(Re,K,L,z),hn(b,!0);const Te=Ya(b),st=b.subTree;b.subTree=Te,w(st,Te,f(st.el),ft(st),b,R,N),L.el=Te.el,ee===null&&Ih(b,Te.el),C&&Ze(C,R),(Re=L.props&&L.props.onVnodeUpdated)&&Ze(()=>vt(Re,K,L,z),R)}else{let L;const{el:S,props:C}=k,{bm:K,m:z,parent:ee,root:Re,type:Te}=b,st=lr(k);hn(b,!1),K&&Gr(K),!st&&(L=C&&C.onVnodeBeforeMount)&&vt(L,ee,k),hn(b,!0);{Re.ce&&Re.ce._def.shadowRoot!==!1&&Re.ce._injectChildStyle(Te);const ht=b.subTree=Ya(b);w(null,ht,O,$,b,R,N),k.el=ht.el}if(z&&Ze(z,R),!st&&(L=C&&C.onVnodeMounted)){const ht=k;Ze(()=>vt(L,ee,ht),R)}(k.shapeFlag&256||ee&&lr(ee.vnode)&&ee.vnode.shapeFlag&256)&&b.a&&Ze(b.a,R),b.isMounted=!0,k=O=$=null}};b.scope.on();const x=b.effect=new oa(m);b.scope.off();const I=b.update=x.run.bind(x),j=b.job=x.runIfDirty.bind(x);j.i=b,j.id=b.uid,x.scheduler=()=>gi(j),hn(b,!0),I()},V=(b,k,O)=>{k.component=b;const $=b.vnode.props;b.vnode=k,b.next=null,Oh(b,k.props,$,O),Rh(b,k.children,O),mt(),Oa(b),gt()},ne=(b,k,O,$,R,N,p,m,x=!1)=>{const I=b&&b.children,j=b?b.shapeFlag:0,L=k.children,{patchFlag:S,shapeFlag:C}=k;if(S>0){if(S&128){nt(I,L,O,$,R,N,p,m,x);return}else if(S&256){ue(I,L,O,$,R,N,p,m,x);return}}C&8?(j&16&&rt(I,R,N),L!==I&&c(O,L)):j&16?C&16?nt(I,L,O,$,R,N,p,m,x):rt(I,R,N,!0):(j&8&&c(O,""),C&16&&M(L,O,$,R,N,p,m,x))},ue=(b,k,O,$,R,N,p,m,x)=>{b=b||On,k=k||On;const I=b.length,j=k.length,L=Math.min(I,j);let S;for(S=0;S<L;S++){const C=k[S]=x?qt(k[S]):wt(k[S]);w(b[S],C,O,null,R,N,p,m,x)}I>j?rt(b,R,N,!0,!1,L):M(k,O,$,R,N,p,m,x,L)},nt=(b,k,O,$,R,N,p,m,x)=>{let I=0;const j=k.length;let L=b.length-1,S=j-1;for(;I<=L&&I<=S;){const C=b[I],K=k[I]=x?qt(k[I]):wt(k[I]);if(pr(C,K))w(C,K,O,null,R,N,p,m,x);else break;I++}for(;I<=L&&I<=S;){const C=b[L],K=k[S]=x?qt(k[S]):wt(k[S]);if(pr(C,K))w(C,K,O,null,R,N,p,m,x);else break;L--,S--}if(I>L){if(I<=S){const C=S+1,K=C<j?k[C].el:$;for(;I<=S;)w(null,k[I]=x?qt(k[I]):wt(k[I]),O,K,R,N,p,m,x),I++}}else if(I>S)for(;I<=L;)Ue(b[I],R,N,!0),I++;else{const C=I,K=I,z=new Map;for(I=K;I<=S;I++){const qe=k[I]=x?qt(k[I]):wt(k[I]);qe.key!=null&&z.set(qe.key,I)}let ee,Re=0;const Te=S-K+1;let st=!1,ht=0;const Kr=new Array(Te);for(I=0;I<Te;I++)Kr[I]=0;for(I=C;I<=L;I++){const qe=b[I];if(Re>=Te){Ue(qe,R,N,!0);continue}let At;if(qe.key!=null)At=z.get(qe.key);else for(ee=K;ee<=S;ee++)if(Kr[ee-K]===0&&pr(qe,k[ee])){At=ee;break}At===void 0?Ue(qe,R,N,!0):(Kr[At-K]=I+1,At>=ht?ht=At:st=!0,w(qe,k[At],O,null,R,N,p,m,x),Re++)}const Mf=st?jh(Kr):On;for(ee=Mf.length-1,I=Te-1;I>=0;I--){const qe=K+I,At=k[qe],Ff=k[qe+1],Uf=qe+1<j?Ff.el||ul(Ff):$;Kr[I]===0?w(null,At,O,Uf,R,N,p,m,x):st&&(ee<0||I!==Mf[ee]?$e(At,O,Uf,2):ee--)}}},$e=(b,k,O,$,R=null)=>{const{el:N,type:p,transition:m,children:x,shapeFlag:I}=b;if(I&6){$e(b.component.subTree,k,O,$);return}if(I&128){b.suspense.move(k,O,$);return}if(I&64){p.move(b,k,O,Ot);return}if(p===Ie){r(N,k,O);for(let L=0;L<x.length;L++)$e(x[L],k,O,$);r(b.anchor,k,O);return}if(p===Ii){T(b,k,O);return}if($!==2&&I&1&&m)if($===0)m.beforeEnter(N),r(N,k,O),Ze(()=>m.enter(N),R);else{const{leave:L,delayLeave:S,afterLeave:C}=m,K=()=>{b.ctx.isUnmounted?s(N):r(N,k,O)},z=()=>{N._isLeaving&&N[qd](!0),L(N,()=>{K(),C&&C()})};S?S(N,K,z):z()}else r(N,k,O)},Ue=(b,k,O,$=!1,R=!1)=>{const{type:N,props:p,ref:m,children:x,dynamicChildren:I,shapeFlag:j,patchFlag:L,dirs:S,cacheIndex:C}=b;if(L===-2&&(R=!1),m!=null&&(mt(),ar(m,null,O,b,!0),gt()),C!=null&&(k.renderCache[C]=void 0),j&256){k.ctx.deactivate(b);return}const K=j&1&&S,z=!lr(b);let ee;if(z&&(ee=p&&p.onVnodeBeforeUnmount)&&vt(ee,k,b),j&6)an(b.component,O,$);else{if(j&128){b.suspense.unmount(O,$);return}K&&fn(b,null,k,"beforeUnmount"),j&64?b.type.remove(b,k,O,Ot,$):I&&!I.hasOnce&&(N!==Ie||L>0&&L&64)?rt(I,k,O,!1,!0):(N===Ie&&L&384||!R&&j&16)&&rt(x,k,O),$&&sn(b)}(z&&(ee=p&&p.onVnodeUnmounted)||K)&&Ze(()=>{ee&&vt(ee,k,b),K&&fn(b,null,k,"unmounted")},O)},sn=b=>{const{type:k,el:O,anchor:$,transition:R}=b;if(k===Ie){on(O,$);return}if(k===Ii){g(b);return}const N=()=>{s(O),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(b.shapeFlag&1&&R&&!R.persisted){const{leave:p,delayLeave:m}=R,x=()=>p(O,N);m?m(b.el,N,x):x()}else N()},on=(b,k)=>{let O;for(;b!==k;)O=d(b),s(b),b=O;s(k)},an=(b,k,O)=>{const{bum:$,scope:R,job:N,subTree:p,um:m,m:x,a:I}=b;cl(x),cl(I),$&&Gr($),R.stop(),N&&(N.flags|=8,Ue(p,b,k,O)),m&&Ze(m,k),Ze(()=>{b.isUnmounted=!0},k)},rt=(b,k,O,$=!1,R=!1,N=0)=>{for(let p=N;p<b.length;p++)Ue(b[p],k,O,$,R)},ft=b=>{if(b.shapeFlag&6)return ft(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const k=d(b.anchor||b.el),O=k&&k[Yd];return O?d(O):k};let dt=!1;const Jn=(b,k,O)=>{let $;b==null?k._vnode&&(Ue(k._vnode,null,null,!0),$=k._vnode.component):w(k._vnode||null,b,k,null,null,null,O),k._vnode=b,dt||(dt=!0,Oa($),Aa(),dt=!1)},Ot={p:w,um:Ue,m:$e,r:sn,mt:Je,mc:M,pc:ne,pbc:J,n:ft,o:e};return{render:Jn,hydrate:void 0,createApp:wh(Jn)}}function Ei({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function hn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Dh(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function al(e,t,n=!1){const r=e.children,s=t.children;if(B(r)&&B(s))for(let i=0;i<r.length;i++){const o=r[i];let a=s[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[i]=qt(s[i]),a.el=o.el),!n&&a.patchFlag!==-2&&al(o,a)),a.type===fr&&(a.patchFlag!==-1?a.el=o.el:a.__elIndex=i+(e.type===Ie?1:0)),a.type===Yt&&!a.el&&(a.el=o.el)}}function jh(e){const t=e.slice(),n=[0];let r,s,i,o,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(s=n[n.length-1],e[s]<u){t[r]=s,n.push(r);continue}for(i=0,o=n.length-1;i<o;)a=i+o>>1,e[n[a]]<u?i=a+1:o=a;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function ll(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ll(t)}function cl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ul(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ul(t.subTree):null}const fl=e=>e.__isSuspense;function Mh(e,t){t&&t.pendingBranch?B(e)?t.effects.push(...e):t.effects.push(e):Wd(e)}const Ie=Symbol.for("v-fgt"),fr=Symbol.for("v-txt"),Yt=Symbol.for("v-cmt"),Ii=Symbol.for("v-stc"),dr=[];let Xe=null;function H(e=!1){dr.push(Xe=e?null:[])}function Fh(){dr.pop(),Xe=dr[dr.length-1]||null}let hr=1;function hs(e,t=!1){hr+=e,e<0&&Xe&&t&&(Xe.hasOnce=!0)}function dl(e){return e.dynamicChildren=hr>0?Xe||On:null,Fh(),hr>0&&Xe&&Xe.push(e),e}function Y(e,t,n,r,s,i){return dl(fe(e,t,n,r,s,i,!0))}function Jt(e,t,n,r,s){return dl(Se(e,t,n,r,s,!0))}function ps(e){return e?e.__v_isVNode===!0:!1}function pr(e,t){return e.type===t.type&&e.key===t.key}const hl=({key:e})=>e??null,ms=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?xe(e)||we(e)||G(e)?{i:Be,r:e,k:t,f:!!n}:e:null);function fe(e,t=null,n=null,r=0,s=null,i=e===Ie?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&hl(t),ref:t&&ms(t),scopeId:La,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Be};return a?(Ci(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=xe(n)?8:16),hr>0&&!o&&Xe&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Xe.push(l),l}const Se=Uh;function Uh(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===fh)&&(e=Yt),ps(e)){const a=Mn(e,t,!0);return n&&Ci(a,n),hr>0&&!i&&Xe&&(a.shapeFlag&6?Xe[Xe.indexOf(e)]=a:Xe.push(a)),a.patchFlag=-2,a}if(qh(e)&&(e=e.__vccOpts),t){t=Kh(t);let{class:a,style:l}=t;a&&!xe(a)&&(t.class=Pn(a)),ge(l)&&(rs(l)&&!B(l)&&(l=Ne({},l)),t.style=Xr(l))}const o=xe(e)?1:fl(e)?128:Jd(e)?64:ge(e)?4:G(e)?2:0;return fe(e,t,n,r,s,o,i,!0)}function Kh(e){return e?rs(e)||el(e)?Ne({},e):e:null}function Mn(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:l}=e,u=t?Wh(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&hl(u),ref:t&&t.ref?n&&i?B(i)?i.concat(ms(t)):[i,ms(t)]:ms(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ie?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Mn(e.ssContent),ssFallback:e.ssFallback&&Mn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&_i(c,l.clone(c)),c}function pn(e=" ",t=0){return Se(fr,null,e,t)}function Oe(e="",t=!1){return t?(H(),Jt(Yt,null,e)):Se(Yt,null,e)}function wt(e){return e==null||typeof e=="boolean"?Se(Yt):B(e)?Se(Ie,null,e.slice()):ps(e)?qt(e):Se(fr,null,String(e))}function qt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Mn(e)}function Ci(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(B(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Ci(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!el(t)?t._ctx=Be:s===3&&Be&&(Be.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else G(t)?(t={default:t,_ctx:Be},n=32):(t=String(t),r&64?(n=16,t=[pn(t)]):n=8);e.children=t,e.shapeFlag|=n}function Wh(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Pn([t.class,r.class]));else if(s==="style")t.style=Xr([t.style,r.style]);else if(Wr(s)){const i=t[s],o=r[s];o&&i!==o&&!(B(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=r[s])}return t}function vt(e,t,n,r=null){_t(e,t,7,[n,r])}const Hh=Za();let zh=0;function Vh(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Hh,i={uid:zh++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new sa(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:nl(r,s),emitsOptions:Xa(r,s),emit:null,emitted:null,propsDefaults:oe,inheritAttrs:r.inheritAttrs,ctx:oe,data:oe,props:oe,attrs:oe,slots:oe,refs:oe,setupState:oe,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=kh.bind(null,i),e.ce&&e.ce(i),i}let Me=null;const Oi=()=>Me||Be;let gs,Ai;{const e=Zr(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};gs=t("__VUE_INSTANCE_SETTERS__",n=>Me=n),Ai=t("__VUE_SSR_SETTERS__",n=>gr=n)}const mr=e=>{const t=Me;return gs(e),e.scope.on(),()=>{e.scope.off(),gs(t)}},pl=()=>{Me&&Me.scope.off(),gs(null)};function ml(e){return e.vnode.shapeFlag&4}let gr=!1;function Bh(e,t=!1,n=!1){t&&Ai(t);const{props:r,children:s}=e.vnode,i=ml(e);Ch(e,r,i,t),Lh(e,s,n||t);const o=i?Gh(e,t):void 0;return t&&Ai(!1),o}function Gh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,hh);const{setup:r}=n;if(r){mt();const s=e.setupContext=r.length>1?Xh(e):null,i=mr(e),o=$n(r,e,0,[e.props,s]),a=Yo(o);if(gt(),i(),(a||e.sp)&&!lr(e)&&Na(e),a){if(o.then(pl,pl),t)return o.then(l=>{gl(e,l)}).catch(l=>{os(l,e,0)});e.asyncDep=o}else gl(e,o)}else _l(e)}function gl(e,t,n){G(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=Ta(t)),_l(e)}function _l(e,t,n){const r=e.type;e.render||(e.render=r.render||pt);{const s=mr(e);mt();try{ph(e)}finally{gt(),s()}}}const Zh={get(e,t){return je(e,"get",""),e[t]}};function Xh(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Zh),slots:e.slots,emit:e.emit,expose:t}}function _s(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ta(pi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in cr)return cr[n](e)},has(t,n){return n in t||n in cr}})):e.proxy}const Yh=/(?:^|[-_])\w/g,Jh=e=>e.replace(Yh,t=>t.toUpperCase()).replace(/[-_]/g,"");function bl(e,t=!0){return G(e)?e.displayName||e.name:e.name||t&&e.__name}function yl(e,t,n=!1){let r=bl(t);if(!r&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(r=s[1])}if(!r&&e){const s=i=>{for(const o in i)if(i[o]===t)return o};r=s(e.components)||e.parent&&s(e.parent.type.components)||s(e.appContext.components)}return r?Jh(r):n?"App":"Anonymous"}function qh(e){return G(e)&&"__vccOpts"in e}const et=(e,t)=>Rd(e,t,gr);function _r(e,t,n){try{hs(-1);const r=arguments.length;return r===2?ge(t)&&!B(t)?ps(t)?Se(e,null,[t]):Se(e,t):Se(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ps(n)&&(n=[n]),Se(e,t,n))}finally{hs(1)}}const Qh="3.5.26";let Pi;const wl=typeof window<"u"&&window.trustedTypes;if(wl)try{Pi=wl.createPolicy("vue",{createHTML:e=>e})}catch{}const vl=Pi?e=>Pi.createHTML(e):e=>e,ep="http://www.w3.org/2000/svg",tp="http://www.w3.org/1998/Math/MathML",jt=typeof document<"u"?document:null,kl=jt&&jt.createElement("template"),np={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 s=t==="svg"?jt.createElementNS(ep,e):t==="mathml"?jt.createElementNS(tp,e):n?jt.createElement(e,{is:n}):jt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>jt.createTextNode(e),createComment:e=>jt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>jt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{kl.innerHTML=vl(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=kl.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},rp=Symbol("_vtc");function sp(e,t,n){const r=e[rp];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const xl=Symbol("_vod"),ip=Symbol("_vsh"),op=Symbol(""),ap=/(?:^|;)\s*display\s*:/;function lp(e,t,n){const r=e.style,s=xe(n);let i=!1;if(n&&!s){if(t)if(xe(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&bs(r,a,"")}else for(const o in t)n[o]==null&&bs(r,o,"");for(const o in n)o==="display"&&(i=!0),bs(r,o,n[o])}else if(s){if(t!==n){const o=r[op];o&&(n+=";"+o),r.cssText=n,i=ap.test(n)}}else t&&e.removeAttribute("style");xl in e&&(e[xl]=i?r.display:"",e[ip]&&(r.display="none"))}const Sl=/\s*!important$/;function bs(e,t,n){if(B(n))n.forEach(r=>bs(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=cp(e,t);Sl.test(n)?e.setProperty(Bt(r),n.replace(Sl,""),"important"):e[r]=n}}const Tl=["Webkit","Moz","ms"],Li={};function cp(e,t){const n=Li[t];if(n)return n;let r=Qe(t);if(r!=="filter"&&r in e)return Li[t]=r;r=Br(r);for(let s=0;s<Tl.length;s++){const i=Tl[s]+r;if(i in e)return Li[t]=i}return t}const El="http://www.w3.org/1999/xlink";function Il(e,t,n,r,s,i=sd(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(El,t.slice(6,t.length)):e.setAttributeNS(El,t,n):n==null||i&&!ta(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Vt(n)?String(n):n)}function Cl(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?vl(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=ta(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(s||t)}function Fn(e,t,n,r){e.addEventListener(t,n,r)}function up(e,t,n,r){e.removeEventListener(t,n,r)}const Ol=Symbol("_vei");function fp(e,t,n,r,s=null){const i=e[Ol]||(e[Ol]={}),o=i[t];if(r&&o)o.value=r;else{const[a,l]=dp(t);if(r){const u=i[t]=mp(r,s);Fn(e,a,u,l)}else o&&(up(e,a,o,l),i[t]=void 0)}}const Al=/(?:Once|Passive|Capture)$/;function dp(e){let t;if(Al.test(e)){t={};let r;for(;r=e.match(Al);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Bt(e.slice(2)),t]}let Ri=0;const hp=Promise.resolve(),pp=()=>Ri||(hp.then(()=>Ri=0),Ri=Date.now());function mp(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;_t(gp(r,n.value),t,5,[r])};return n.value=e,n.attached=pp(),n}function gp(e,t){if(B(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Pl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,_p=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?sp(e,r,o):t==="style"?lp(e,n,r):Wr(t)?Js(t)||fp(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):bp(e,t,r,o))?(Cl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Il(e,t,r,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!xe(r))?Cl(e,Qe(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Il(e,t,r,o))};function bp(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Pl(t)&&G(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Pl(t)&&xe(n)?!1:t in e}const Ll=e=>{const t=e.props["onUpdate:modelValue"]||!1;return B(t)?n=>Gr(t,n):t};function yp(e){e.target.composing=!0}function Rl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const $i=Symbol("_assign");function $l(e,t,n){return t&&(e=e.trim()),n&&(e=ei(e)),e}const wp={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[$i]=Ll(s);const i=r||s.props&&s.props.type==="number";Fn(e,t?"change":"input",o=>{o.target.composing||e[$i]($l(e.value,n,i))}),(n||i)&&Fn(e,"change",()=>{e.value=$l(e.value,n,i)}),t||(Fn(e,"compositionstart",yp),Fn(e,"compositionend",Rl),Fn(e,"change",Rl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(e[$i]=Ll(o),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?ei(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===l)||(e.value=l))}},vp=["ctrl","shift","alt","meta"],kp={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>vp.some(n=>e[`${n}Key`]&&!t.includes(n))},Ni=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((s,...i)=>{for(let o=0;o<t.length;o++){const a=kp[t[o]];if(a&&a(s,t))return}return e(s,...i)}))},xp={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Nl=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(s=>{if(!("key"in s))return;const i=Bt(s.key);if(t.some(o=>o===i||xp[o]===i))return e(s)}))},Sp=Ne({patchProp:_p},np);let Dl;function Tp(){return Dl||(Dl=$h(Sp))}const Ep=((...e)=>{const t=Tp().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Cp(r);if(!s)return;const i=t._component;!G(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,Ip(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t});function Ip(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Cp(e){return xe(e)?document.querySelector(e):e}let jl;const ys=e=>jl=e,Ml=Symbol();function Di(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var br;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(br||(br={}));function Op(){const e=ni(!0),t=e.run(()=>q({}));let n=[],r=[];const s=pi({install(i){ys(s),s._a=i,i.provide(Ml,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return this._a?n.push(i):r.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Fl=()=>{};function Ul(e,t,n,r=Fl){e.add(t);const s=()=>{e.delete(t)&&r()};return!n&&ia()&&id(s),s}function Un(e,...t){e.forEach(n=>{n(...t)})}const Ap=e=>e(),Kl=Symbol(),ji=Symbol();function Mi(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];Di(s)&&Di(r)&&e.hasOwnProperty(n)&&!we(r)&&!Rt(r)?e[n]=Mi(s,r):e[n]=r}return e}const Pp=Symbol();function Lp(e){return!Di(e)||!Object.prototype.hasOwnProperty.call(e,Pp)}const{assign:Qt}=Object;function Rp(e){return!!(we(e)&&e.effect)}function $p(e,t,n,r){const{state:s,actions:i,getters:o}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=s?s():{});const c=Od(n.state.value[e]);return Qt(c,i,Object.keys(o||{}).reduce((f,d)=>(f[d]=pi(et(()=>{ys(n);const h=n._s.get(e);return o[d].call(h,h)})),f),{}))}return l=Wl(e,u,t,n,r,!0),l}function Wl(e,t,n={},r,s,i){let o;const a=Qt({actions:{}},n),l={deep:!0};let u,c,f=new Set,d=new Set,h;const y=r.state.value[e];!i&&!y&&(r.state.value[e]={}),q({});let w;function E(M){let U;u=c=!1,typeof M=="function"?(M(r.state.value[e]),U={type:br.patchFunction,storeId:e,events:h}):(Mi(r.state.value[e],M),U={type:br.patchObject,payload:M,storeId:e,events:h});const J=w=Symbol();ir().then(()=>{w===J&&(u=!0)}),c=!0,Un(f,U,r.state.value[e])}const _=i?function(){const{state:U}=n,J=U?U():{};this.$patch(te=>{Qt(te,J)})}:Fl;function v(){o.stop(),f.clear(),d.clear(),r._s.delete(e)}const T=(M,U="")=>{if(Kl in M)return M[ji]=U,M;const J=function(){ys(r);const te=Array.from(arguments),Z=new Set,Le=new Set;function Je(V){Z.add(V)}function ve(V){Le.add(V)}Un(d,{args:te,name:J[ji],store:A,after:Je,onError:ve});let X;try{X=M.apply(this&&this.$id===e?this:A,te)}catch(V){throw Un(Le,V),V}return X instanceof Promise?X.then(V=>(Un(Z,V),V)).catch(V=>(Un(Le,V),Promise.reject(V))):(Un(Z,X),X)};return J[Kl]=!0,J[ji]=U,J},g={_p:r,$id:e,$onAction:Ul.bind(null,d),$patch:E,$reset:_,$subscribe(M,U={}){const J=Ul(f,M,U.detached,()=>te()),te=o.run(()=>Ge(()=>r.state.value[e],Z=>{(U.flush==="sync"?c:u)&&M({storeId:e,type:br.direct,events:h},Z)},Qt({},l,U)));return J},$dispose:v},A=ts(g);r._s.set(e,A);const P=(r._a&&r._a.runWithContext||Ap)(()=>r._e.run(()=>(o=ni()).run(()=>t({action:T}))));for(const M in P){const U=P[M];if(we(U)&&!Rp(U)||Rt(U))i||(y&&Lp(U)&&(we(U)?U.value=y[M]:Mi(U,y[M])),r.state.value[e][M]=U);else if(typeof U=="function"){const J=T(U,M);P[M]=J,a.actions[M]=U}}return Qt(A,P),Qt(re(A),P),Object.defineProperty(A,"$state",{get:()=>r.state.value[e],set:M=>{E(U=>{Qt(U,M)})}}),r._p.forEach(M=>{Qt(A,o.run(()=>M({store:A,app:r._a,pinia:r,options:a})))}),y&&i&&n.hydrate&&n.hydrate(A.$state,y),u=!0,c=!0,A}function Hl(e,t,n){let r;const s=typeof t=="function";r=s?n:t;function i(o,a){const l=Bd();return o=o||(l?Ee(Ml,null):null),o&&ys(o),o=jl,o._s.has(e)||(s?Wl(e,t,r,o):$p(e,r,o)),o._s.get(e)}return i.$id=e,i}const zl=Symbol("$auth0");function kt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]])}return n}typeof SuppressedError=="function"&&SuppressedError;var mn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ui(e,t){return e(t={exports:{}},t.exports),t.exports}var gn=Ui((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=(function(){function r(){var s=this;this.locked=new Map,this.addToLocked=function(i,o){var a=s.locked.get(i);a===void 0?o===void 0?s.locked.set(i,[]):s.locked.set(i,[o]):o!==void 0&&(a.unshift(o),s.locked.set(i,a))},this.isLocked=function(i){return s.locked.has(i)},this.lock=function(i){return new Promise((function(o,a){s.isLocked(i)?s.addToLocked(i,o):(s.addToLocked(i),o())}))},this.unlock=function(i){var o=s.locked.get(i);if(o!==void 0&&o.length!==0){var a=o.pop();s.locked.set(i,o),a!==void 0&&setTimeout(a,0)}else s.locked.delete(i)}}return r.getInstance=function(){return r.instance===void 0&&(r.instance=new r),r.instance},r})();t.default=function(){return n.getInstance()}}));Fi(gn);var Np=Fi(Ui((function(e,t){var n=mn&&mn.__awaiter||function(c,f,d,h){return new(d||(d=Promise))((function(y,w){function E(T){try{v(h.next(T))}catch(g){w(g)}}function _(T){try{v(h.throw(T))}catch(g){w(g)}}function v(T){T.done?y(T.value):new d((function(g){g(T.value)})).then(E,_)}v((h=h.apply(c,f||[])).next())}))},r=mn&&mn.__generator||function(c,f){var d,h,y,w,E={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return w={next:_(0),throw:_(1),return:_(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function _(v){return function(T){return(function(g){if(d)throw new TypeError("Generator is already executing.");for(;E;)try{if(d=1,h&&(y=2&g[0]?h.return:g[0]?h.throw||((y=h.return)&&y.call(h),0):h.next)&&!(y=y.call(h,g[1])).done)return y;switch(h=0,y&&(g=[2&g[0],y.value]),g[0]){case 0:case 1:y=g;break;case 4:return E.label++,{value:g[1],done:!1};case 5:E.label++,h=g[1],g=[0];continue;case 7:g=E.ops.pop(),E.trys.pop();continue;default:if(!((y=(y=E.trys).length>0&&y[y.length-1])||g[0]!==6&&g[0]!==2)){E=0;continue}if(g[0]===3&&(!y||g[1]>y[0]&&g[1]<y[3])){E.label=g[1];break}if(g[0]===6&&E.label<y[1]){E.label=y[1],y=g;break}if(y&&E.label<y[2]){E.label=y[2],E.ops.push(g);break}y[2]&&E.ops.pop(),E.trys.pop();continue}g=f.call(c,E)}catch(A){g=[6,A],h=0}finally{d=y=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}})([v,T])}}},s=mn;Object.defineProperty(t,"__esModule",{value:!0});var i="browser-tabs-lock-key",o={key:function(c){return n(s,void 0,void 0,(function(){return r(this,(function(f){throw new Error("Unsupported")}))}))},getItem:function(c){return n(s,void 0,void 0,(function(){return r(this,(function(f){throw new Error("Unsupported")}))}))},clear:function(){return n(s,void 0,void 0,(function(){return r(this,(function(c){return[2,window.localStorage.clear()]}))}))},removeItem:function(c){return n(s,void 0,void 0,(function(){return r(this,(function(f){throw new Error("Unsupported")}))}))},setItem:function(c,f){return n(s,void 0,void 0,(function(){return r(this,(function(d){throw new Error("Unsupported")}))}))},keySync:function(c){return window.localStorage.key(c)},getItemSync:function(c){return window.localStorage.getItem(c)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(c){return window.localStorage.removeItem(c)},setItemSync:function(c,f){return window.localStorage.setItem(c,f)}};function a(c){return new Promise((function(f){return setTimeout(f,c)}))}function l(c){for(var f="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",d="",h=0;h<c;h++)d+=f[Math.floor(Math.random()*f.length)];return d}var u=(function(){function c(f){this.acquiredIatSet=new Set,this.storageHandler=void 0,this.id=Date.now().toString()+l(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),this.storageHandler=f,c.waiters===void 0&&(c.waiters=[])}return c.prototype.acquireLock=function(f,d){return d===void 0&&(d=5e3),n(this,void 0,void 0,(function(){var h,y,w,E,_,v,T;return r(this,(function(g){switch(g.label){case 0:h=Date.now()+l(4),y=Date.now()+d,w=i+"-"+f,E=this.storageHandler===void 0?o:this.storageHandler,g.label=1;case 1:return Date.now()<y?[4,a(30)]:[3,8];case 2:return g.sent(),E.getItemSync(w)!==null?[3,5]:(_=this.id+"-"+f+"-"+h,[4,a(Math.floor(25*Math.random()))]);case 3:return g.sent(),E.setItemSync(w,JSON.stringify({id:this.id,iat:h,timeoutKey:_,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];case 4:return g.sent(),(v=E.getItemSync(w))!==null&&(T=JSON.parse(v)).id===this.id&&T.iat===h?(this.acquiredIatSet.add(h),this.refreshLockWhileAcquired(w,h),[2,!0]):[3,7];case 5:return c.lockCorrector(this.storageHandler===void 0?o:this.storageHandler),[4,this.waitForSomethingToChange(y)];case 6:g.sent(),g.label=7;case 7:return h=Date.now()+l(4),[3,1];case 8:return[2,!1]}}))}))},c.prototype.refreshLockWhileAcquired=function(f,d){return n(this,void 0,void 0,(function(){var h=this;return r(this,(function(y){return setTimeout((function(){return n(h,void 0,void 0,(function(){var w,E,_;return r(this,(function(v){switch(v.label){case 0:return[4,gn.default().lock(d)];case 1:return v.sent(),this.acquiredIatSet.has(d)?(w=this.storageHandler===void 0?o:this.storageHandler,(E=w.getItemSync(f))===null?(gn.default().unlock(d),[2]):((_=JSON.parse(E)).timeRefreshed=Date.now(),w.setItemSync(f,JSON.stringify(_)),gn.default().unlock(d),this.refreshLockWhileAcquired(f,d),[2])):(gn.default().unlock(d),[2])}}))}))}),1e3),[2]}))}))},c.prototype.waitForSomethingToChange=function(f){return n(this,void 0,void 0,(function(){return r(this,(function(d){switch(d.label){case 0:return[4,new Promise((function(h){var y=!1,w=Date.now(),E=!1;function _(){if(E||(window.removeEventListener("storage",_),c.removeFromWaiting(_),clearTimeout(v),E=!0),!y){y=!0;var T=50-(Date.now()-w);T>0?setTimeout(h,T):h(null)}}window.addEventListener("storage",_),c.addToWaiting(_);var v=setTimeout(_,Math.max(0,f-Date.now()))}))];case 1:return d.sent(),[2]}}))}))},c.addToWaiting=function(f){this.removeFromWaiting(f),c.waiters!==void 0&&c.waiters.push(f)},c.removeFromWaiting=function(f){c.waiters!==void 0&&(c.waiters=c.waiters.filter((function(d){return d!==f})))},c.notifyWaiters=function(){c.waiters!==void 0&&c.waiters.slice().forEach((function(f){return f()}))},c.prototype.releaseLock=function(f){return n(this,void 0,void 0,(function(){return r(this,(function(d){switch(d.label){case 0:return[4,this.releaseLock__private__(f)];case 1:return[2,d.sent()]}}))}))},c.prototype.releaseLock__private__=function(f){return n(this,void 0,void 0,(function(){var d,h,y,w;return r(this,(function(E){switch(E.label){case 0:return d=this.storageHandler===void 0?o:this.storageHandler,h=i+"-"+f,(y=d.getItemSync(h))===null?[2]:(w=JSON.parse(y)).id!==this.id?[3,2]:[4,gn.default().lock(w.iat)];case 1:E.sent(),this.acquiredIatSet.delete(w.iat),d.removeItemSync(h),gn.default().unlock(w.iat),c.notifyWaiters(),E.label=2;case 2:return[2]}}))}))},c.lockCorrector=function(f){for(var d=Date.now()-5e3,h=f,y=[],w=0;;){var E=h.keySync(w);if(E===null)break;y.push(E),w++}for(var _=!1,v=0;v<y.length;v++){var T=y[v];if(T.includes(i)){var g=h.getItemSync(T);if(g!==null){var A=JSON.parse(g);(A.timeRefreshed===void 0&&A.timeAcquired<d||A.timeRefreshed!==void 0&&A.timeRefreshed<d)&&(h.removeItemSync(T),_=!0)}}}_&&c.notifyWaiters()},c.waiters=void 0,c})();t.default=u})));const Dp={timeoutInSeconds:60},Vl={name:"auth0-spa-js",version:"2.10.0"},Bl=()=>Date.now();let Ae=class zo extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,zo.prototype)}static fromPayload({error:t,error_description:n}){return new zo(t,n)}},jp=class Kf extends Ae{constructor(t,n,r,s=null){super(t,n),this.state=r,this.appState=s,Object.setPrototypeOf(this,Kf.prototype)}};class Ki extends Ae{constructor(t,n,r,s,i=null){super(t,n),this.connection=r,this.state=s,this.appState=i,Object.setPrototypeOf(this,Ki.prototype)}}class yr extends Ae{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,yr.prototype)}}let Mp=class Wf extends yr{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,Wf.prototype)}},Fp=class Hf extends Ae{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,Hf.prototype)}},Up=class zf extends Ae{constructor(){super("popup_open","Unable to open a popup for loginWithPopup - window.open returned `null`"),Object.setPrototypeOf(this,zf.prototype)}},Kp=class Vf extends Ae{constructor(t,n,r){super(t,n),this.mfa_token=r,Object.setPrototypeOf(this,Vf.prototype)}},Gl=class Bf extends Ae{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${ws(t,["default"])}', scope: '${ws(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,Bf.prototype)}},Wp=class Gf extends Ae{constructor(t,n){super("missing_scopes",`Missing requested scopes after refresh (audience: '${ws(t,["default"])}', missing scope: '${ws(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,Gf.prototype)}},Zl=class Zf extends Ae{constructor(t){super("use_dpop_nonce","Server rejected DPoP proof: wrong nonce"),this.newDpopNonce=t,Object.setPrototypeOf(this,Zf.prototype)}};function ws(e,t=[]){return e&&!t.includes(e)?e:""}const vs=()=>window.crypto,wr=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(vs().getRandomValues(new Uint8Array(43))).forEach((n=>t+=e[n%e.length])),t},Wi=e=>btoa(e),Hp=[{key:"name",type:["string"]},{key:"version",type:["string","number"]},{key:"env",type:["object"]}],zp=e=>Object.keys(e).reduce(((t,n)=>{const r=Hp.find((s=>s.key===n));return r&&r.type.includes(typeof e[n])&&(t[n]=e[n]),t}),{}),Hi=e=>{var{clientId:t}=e,n=kt(e,["clientId"]);return new URLSearchParams((r=>Object.keys(r).filter((s=>r[s]!==void 0)).reduce(((s,i)=>Object.assign(Object.assign({},s),{[i]:r[i]})),{}))(Object.assign({client_id:t},n))).toString()},Xl=async e=>await vs().subtle.digest({name:"SHA-256"},new TextEncoder().encode(e)),Yl=e=>(t=>decodeURIComponent(atob(t).split("").map((n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2))).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),Jl=e=>{const t=new Uint8Array(e);return(n=>{const r={"+":"-","/":"_","=":""};return n.replace(/[+/=]/g,(s=>r[s]))})(window.btoa(String.fromCharCode(...Array.from(t))))},Vp=new TextEncoder,Bp=new TextDecoder;function vr(e){return typeof e=="string"?Vp.encode(e):Bp.decode(e)}function ql(e){if(typeof e.modulusLength!="number"||e.modulusLength<2048)throw new Gp(`${e.name} modulusLength must be at least 2048 bits`)}let zi;Uint8Array.prototype.toBase64?zi=e=>(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),e.toBase64({alphabet:"base64url",omitPadding:!0})):zi=t=>{t instanceof ArrayBuffer&&(t=new Uint8Array(t));const n=[];for(let r=0;r<t.byteLength;r+=32768)n.push(String.fromCharCode.apply(null,t.subarray(r,r+32768)));return btoa(n.join("")).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")};function kr(e){return zi(e)}let Kn=class extends Error{constructor(t){var n;super(t??"operation not supported"),this.name=this.constructor.name,(n=Error.captureStackTrace)===null||n===void 0||n.call(Error,this,this.constructor)}},Gp=class extends Error{constructor(t){var n;super(t),this.name=this.constructor.name,(n=Error.captureStackTrace)===null||n===void 0||n.call(Error,this,this.constructor)}};function Zp(e){switch(e.algorithm.name){case"RSA-PSS":return(function(t){if(t.algorithm.hash.name==="SHA-256")return"PS256";throw new Kn("unsupported RsaHashedKeyAlgorithm hash name")})(e);case"RSASSA-PKCS1-v1_5":return(function(t){if(t.algorithm.hash.name==="SHA-256")return"RS256";throw new Kn("unsupported RsaHashedKeyAlgorithm hash name")})(e);case"ECDSA":return(function(t){if(t.algorithm.namedCurve==="P-256")return"ES256";throw new Kn("unsupported EcKeyAlgorithm namedCurve")})(e);case"Ed25519":return"Ed25519";default:throw new Kn("unsupported CryptoKey algorithm name")}}function Ql(e){return e instanceof CryptoKey}function ec(e){return Ql(e)&&e.type==="public"}async function Xp(e,t,n,r,s,i){const o=e?.privateKey,a=e?.publicKey;if(!Ql(l=o)||l.type!=="private")throw new TypeError('"keypair.privateKey" must be a private CryptoKey');var l;if(!ec(a))throw new TypeError('"keypair.publicKey" must be a public CryptoKey');if(a.extractable!==!0)throw new TypeError('"keypair.publicKey.extractable" must be true');if(typeof t!="string")throw new TypeError('"htu" must be a string');if(typeof n!="string")throw new TypeError('"htm" must be a string');if(r!==void 0&&typeof r!="string")throw new TypeError('"nonce" must be a string or undefined');if(s!==void 0&&typeof s!="string")throw new TypeError('"accessToken" must be a string or undefined');return(async function(u,c,f){if(f.usages.includes("sign")===!1)throw new TypeError('private CryptoKey instances used for signing assertions must include "sign" in their "usages"');const d=`${kr(vr(JSON.stringify(u)))}.${kr(vr(JSON.stringify(c)))}`;return`${d}.${kr(await crypto.subtle.sign((function(h){switch(h.algorithm.name){case"ECDSA":return{name:h.algorithm.name,hash:"SHA-256"};case"RSA-PSS":return ql(h.algorithm),{name:h.algorithm.name,saltLength:32};case"RSASSA-PKCS1-v1_5":return ql(h.algorithm),{name:h.algorithm.name};case"Ed25519":return{name:h.algorithm.name}}throw new Kn})(f),f,vr(d)))}`})({alg:Zp(o),typ:"dpop+jwt",jwk:await tc(a)},Object.assign(Object.assign({},i),{iat:Math.floor(Date.now()/1e3),jti:crypto.randomUUID(),htm:n,nonce:r,htu:t,ath:s?kr(await crypto.subtle.digest("SHA-256",vr(s))):void 0}),o)}async function tc(e){const{kty:t,e:n,n:r,x:s,y:i,crv:o}=await crypto.subtle.exportKey("jwk",e);return{kty:t,crv:o,e:n,n:r,x:s,y:i}}const Yp=["authorization_code","refresh_token","urn:ietf:params:oauth:grant-type:token-exchange"],Jp=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json(),headers:(r=n.headers,[...r].reduce(((s,[i,o])=>(s[i]=o,s)),{}))};var r},qp=async(e,t,n,r,s,i,o=1e4,a)=>s?(async(l,u,c,f,d,h,y,w)=>{return E={auth:{audience:u,scope:c},timeout:d,fetchUrl:l,fetchOptions:f,useFormData:y,useMrrt:w},_=h,new Promise((function(v,T){const g=new MessageChannel;g.port1.onmessage=function(A){A.data.error?T(new Error(A.data.error)):v(A.data),g.port1.close()},_.postMessage(E,[g.port2])}));var E,_})(e,t,n,r,o,s,i,a):(async(l,u,c)=>{const f=new AbortController;let d;return u.signal=f.signal,Promise.race([Jp(l,u),new Promise(((h,y)=>{d=setTimeout((()=>{f.abort(),y(new Error("Timeout when executing 'fetch'"))}),c)}))]).finally((()=>{clearTimeout(d)}))})(e,r,o);async function nc(e,t,n,r,s,i,o,a,l,u){if(l){const T=await l.generateProof({url:e,method:s.method||"GET",nonce:await l.getNonce()});s.headers=Object.assign(Object.assign({},s.headers),{dpop:T})}let c,f=null;for(let T=0;T<3;T++)try{c=await qp(e,n,r,s,i,o,t,a),f=null;break}catch(g){f=g}if(f)throw f;const d=c.json,{error:h,error_description:y}=d,w=kt(d,["error","error_description"]),{headers:E,ok:_}=c;let v;if(l&&(v=E["dpop-nonce"],v&&await l.setNonce(v)),!_){const T=y||`HTTP error. Unable to fetch ${e}`;if(h==="mfa_required")throw new Kp(h,T,w.mfa_token);if(h==="missing_refresh_token")throw new Gl(n,r);if(h==="use_dpop_nonce"){if(!l||!v||u)throw new Zl(v);return nc(e,t,n,r,s,i,o,a,l,!0)}throw new Ae(h||"request_error",T)}return w}async function Qp(e,t){var{baseUrl:n,timeout:r,audience:s,scope:i,auth0Client:o,useFormData:a,useMrrt:l,dpop:u}=e,c=kt(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData","useMrrt","dpop"]);const f=c.grant_type==="urn:ietf:params:oauth:grant-type:token-exchange",d=c.grant_type==="refresh_token"&&l,h=Object.assign(Object.assign(Object.assign(Object.assign({},c),f&&s&&{audience:s}),f&&i&&{scope:i}),d&&{audience:s,scope:i}),y=a?Hi(h):JSON.stringify(h),w=(E=c.grant_type,Yp.includes(E));var E;return await nc(`${n}/oauth/token`,r,s||"default",i,{method:"POST",body:y,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(zp(o||Vl)))}},t,a,l,w?u:void 0)}const ks=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t},xs=(e,t,n)=>{let r;return n&&(r=e[n]),r||(r=e.default),ks(r,t)};let Mt=class Vo{constructor(t,n="@@auth0spajs@@",r){this.prefix=n,this.suffix=r,this.clientId=t.clientId,this.scope=t.scope,this.audience=t.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(t){const[n,r,s,i]=t.split("::");return new Vo({clientId:r,scope:i,audience:s},n)}static fromCacheEntry(t){const{scope:n,audience:r,client_id:s}=t;return new Vo({scope:n,audience:r,clientId:s})}},em=class{set(t,n){localStorage.setItem(t,JSON.stringify(n))}get(t){const n=window.localStorage.getItem(t);if(n)try{return JSON.parse(n)}catch{return}}remove(t){localStorage.removeItem(t)}allKeys(){return Object.keys(window.localStorage).filter((t=>t.startsWith("@@auth0spajs@@")))}},rc=class{constructor(){this.enclosedCache=(function(){let t={};return{set(n,r){t[n]=r},get(n){const r=t[n];if(r)return r},remove(n){delete t[n]},allKeys:()=>Object.keys(t)}})()}},tm=class{constructor(t,n,r){this.cache=t,this.keyManifest=n,this.nowProvider=r||Bl}async setIdToken(t,n,r){var s;const i=this.getIdTokenCacheKey(t);await this.cache.set(i,{id_token:n,decodedToken:r}),await((s=this.keyManifest)===null||s===void 0?void 0:s.add(i))}async getIdToken(t){const n=await this.cache.get(this.getIdTokenCacheKey(t.clientId));if(!n&&t.scope&&t.audience){const r=await this.get(t);return!r||!r.id_token||!r.decodedToken?void 0:{id_token:r.id_token,decodedToken:r.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(t,n=0,r=!1,s){var i;let o=await this.cache.get(t.toKey());if(!o){const u=await this.getCacheKeys();if(!u)return;const c=this.matchExistingCacheKey(t,u);if(c&&(o=await this.cache.get(c)),!c&&r&&s!=="cache-only")return this.getEntryWithRefreshToken(t,u)}if(!o)return;const a=await this.nowProvider(),l=Math.floor(a/1e3);return o.expiresAt-n<l?o.body.refresh_token?this.modifiedCachedEntry(o,t):(await this.cache.remove(t.toKey()),void await((i=this.keyManifest)===null||i===void 0?void 0:i.remove(t.toKey()))):o.body}async modifiedCachedEntry(t,n){return t.body={refresh_token:t.body.refresh_token,audience:t.body.audience,scope:t.body.scope},await this.cache.set(n.toKey(),t),{refresh_token:t.body.refresh_token,audience:t.body.audience,scope:t.body.scope}}async set(t){var n;const r=new Mt({clientId:t.client_id,scope:t.scope,audience:t.audience}),s=await this.wrapCacheEntry(t);await this.cache.set(r.toKey(),s),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(r.toKey()))}async remove(t,n,r){const s=new Mt({clientId:t,scope:r,audience:n});await this.cache.remove(s.toKey())}async clear(t){var n;const r=await this.getCacheKeys();r&&(await r.filter((s=>!t||s.includes(t))).reduce((async(s,i)=>{await s,await this.cache.remove(i)}),Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(t){const n=await this.nowProvider();return{body:t,expiresAt:Math.floor(n/1e3)+t.expires_in}}async getCacheKeys(){var t;return this.keyManifest?(t=await this.keyManifest.get())===null||t===void 0?void 0:t.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(t){return new Mt({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter((r=>{var s;const i=Mt.fromKey(r),o=new Set(i.scope&&i.scope.split(" ")),a=((s=t.scope)===null||s===void 0?void 0:s.split(" "))||[],l=i.scope&&a.reduce(((u,c)=>u&&o.has(c)),!0);return i.prefix==="@@auth0spajs@@"&&i.clientId===t.clientId&&i.audience===t.audience&&l}))[0]}async getEntryWithRefreshToken(t,n){var r;for(const s of n){const i=Mt.fromKey(s);if(i.prefix==="@@auth0spajs@@"&&i.clientId===t.clientId){const o=await this.cache.get(s);if(!((r=o?.body)===null||r===void 0)&&r.refresh_token)return this.modifiedCachedEntry(o,t)}}}async updateEntry(t,n){var r;const s=await this.getCacheKeys();if(s)for(const i of s){const o=await this.cache.get(i);if(((r=o?.body)===null||r===void 0?void 0:r.refresh_token)===t){const a=Object.assign(Object.assign({},o.body),{refresh_token:n});await this.set(a)}}}},nm=class{constructor(t,n,r){this.storage=t,this.clientId=n,this.cookieDomain=r,this.storageKey=`a0.spajs.txs.${this.clientId}`}create(t){this.storage.save(this.storageKey,t,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}};const xr=e=>typeof e=="number",rm=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"];var _n=Ui((function(e,t){var n=mn&&mn.__assign||function(){return n=Object.assign||function(l){for(var u,c=1,f=arguments.length;c<f;c++)for(var d in u=arguments[c])Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d]);return l},n.apply(this,arguments)};function r(l,u){if(!u)return"";var c="; "+l;return u===!0?c:c+"="+u}function s(l,u,c){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(u).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+(function(f){if(typeof f.expires=="number"){var d=new Date;d.setMilliseconds(d.getMilliseconds()+864e5*f.expires),f.expires=d}return r("Expires",f.expires?f.expires.toUTCString():"")+r("Domain",f.domain)+r("Path",f.path)+r("Secure",f.secure)+r("SameSite",f.sameSite)})(c)}function i(l){for(var u={},c=l?l.split("; "):[],f=/(%[\dA-F]{2})+/gi,d=0;d<c.length;d++){var h=c[d].split("="),y=h.slice(1).join("=");y.charAt(0)==='"'&&(y=y.slice(1,-1));try{u[h[0].replace(f,decodeURIComponent)]=y.replace(f,decodeURIComponent)}catch{}}return u}function o(){return i(document.cookie)}function a(l,u,c){document.cookie=s(l,u,n({path:"/"},c))}t.__esModule=!0,t.encode=s,t.parse=i,t.getAll=o,t.get=function(l){return o()[l]},t.set=a,t.remove=function(l,u){a(l,"",n(n({},u),{expires:-1}))}}));Fi(_n),_n.encode,_n.parse,_n.getAll;var sm=_n.get,sc=_n.set,ic=_n.remove;const Wn={get(e){const t=sm(e);if(t!==void 0)return JSON.parse(t)},save(e,t,n){let r={};window.location.protocol==="https:"&&(r={secure:!0,sameSite:"none"}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),sc(e,JSON.stringify(t),r)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),ic(e,n)}},im={get:e=>Wn.get(e)||Wn.get(`_legacy_${e}`),save(e,t,n){let r={};window.location.protocol==="https:"&&(r={secure:!0}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),sc(`_legacy_${e}`,JSON.stringify(t),r),Wn.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),ic(e,n),Wn.remove(e,t),Wn.remove(`_legacy_${e}`,t)}},om={get(e){if(typeof sessionStorage>"u")return;const t=sessionStorage.getItem(e);return t!=null?JSON.parse(t):void 0},save(e,t){sessionStorage.setItem(e,JSON.stringify(t))},remove(e){sessionStorage.removeItem(e)}};var bn;(function(e){e.Code="code",e.ConnectCode="connect_code"})(bn||(bn={}));var Vi,am=(function(e){return Vi=Vi||(function(t,n,r){var s=(function(l,u){var c=atob(l);return c})(t),i=s.indexOf(`
|
|
5
|
+
`,10)+1,o=s.substring(i)+"",a=new Blob([o],{type:"application/javascript"});return URL.createObjectURL(a)})("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YSx1c2VNcnJ0OmZ9LHBvcnRzOltwXX0pPT57bGV0IGgsdSxsPXt9O2NvbnN0e2F1ZGllbmNlOmQsc2NvcGU6eX09cnx8e307dHJ5e2NvbnN0IHI9YT8oZT0+e2NvbnN0IHQ9bmV3IFVSTFNlYXJjaFBhcmFtcyhlKSxyPXt9O3JldHVybiB0LmZvckVhY2goKChlLHQpPT57clt0XT1lfSkpLHJ9KShjLmJvZHkpOkpTT04ucGFyc2UoYy5ib2R5KTtpZighci5yZWZyZXNoX3Rva2VuJiYicmVmcmVzaF90b2tlbiI9PT1yLmdyYW50X3R5cGUpe2lmKHU9KChlLHQpPT5vW24oZSx0KV0pKGQseSksIXUmJmYpe2NvbnN0IGU9by5sYXRlc3RfcmVmcmVzaF90b2tlbix0PSgoZSx0KT0+e2NvbnN0IHI9T2JqZWN0LmtleXMobykuZmluZCgocj0+e2lmKCJsYXRlc3RfcmVmcmVzaF90b2tlbiIhPT1yKXtjb25zdCBzPSgoZSx0KT0+dC5zdGFydHNXaXRoKGAke2V9fGApKSh0LHIpLG89ci5zcGxpdCgifCIpWzFdLnNwbGl0KCIgIiksbj1lLnNwbGl0KCIgIikuZXZlcnkoKGU9Pm8uaW5jbHVkZXMoZSkpKTtyZXR1cm4gcyYmbn19KSk7cmV0dXJuISFyfSkoeSxkKTtlJiYhdCYmKHU9ZSl9aWYoIXUpdGhyb3cgbmV3IHQoZCx5KTtjLmJvZHk9YT9zKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjp1fSkpOkpTT04uc3RyaW5naWZ5KE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjp1fSkpfWxldCBqLGs7ImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGo9bmV3IEFib3J0Q29udHJvbGxlcixjLnNpZ25hbD1qLnNpZ25hbCk7dHJ5e2s9YXdhaXQgUHJvbWlzZS5yYWNlKFsoXz1lLG5ldyBQcm9taXNlKChlPT5zZXRUaW1lb3V0KGUsXykpKSksZmV0Y2goaSxPYmplY3QuYXNzaWduKHt9LGMpKV0pfWNhdGNoKGUpe3JldHVybiB2b2lkIHAucG9zdE1lc3NhZ2Uoe2Vycm9yOmUubWVzc2FnZX0pfWlmKCFrKXJldHVybiBqJiZqLmFib3J0KCksdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjoiVGltZW91dCB3aGVuIGV4ZWN1dGluZyAnZmV0Y2gnIn0pO2c9ay5oZWFkZXJzLGw9Wy4uLmddLnJlZHVjZSgoKGUsW3Qscl0pPT4oZVt0XT1yLGUpKSx7fSksaD1hd2FpdCBrLmpzb24oKSxoLnJlZnJlc2hfdG9rZW4/KGYmJihvLmxhdGVzdF9yZWZyZXNoX3Rva2VuPWgucmVmcmVzaF90b2tlbixPPXUsYj1oLnJlZnJlc2hfdG9rZW4sT2JqZWN0LmVudHJpZXMobykuZm9yRWFjaCgoKFtlLHRdKT0+e3Q9PT1PJiYob1tlXT1iKX0pKSksKChlLHQscik9PntvW24odCxyKV09ZX0pKGgucmVmcmVzaF90b2tlbixkLHkpLGRlbGV0ZSBoLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KShkLHkpLHAucG9zdE1lc3NhZ2Uoe29rOmsub2ssanNvbjpoLGhlYWRlcnM6bH0pfWNhdGNoKGUpe3AucG9zdE1lc3NhZ2Uoe29rOiExLGpzb246e2Vycm9yOmUuZXJyb3IsZXJyb3JfZGVzY3JpcHRpb246ZS5tZXNzYWdlfSxoZWFkZXJzOmx9KX12YXIgTyxiLGcsX30pKX0oKTsKCg=="),new Worker(Vi,e)});const Bi={};let lm=class{constructor(t,n){this.cache=t,this.clientId=n,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(t){var n;const r=new Set(((n=await this.cache.get(this.manifestKey))===null||n===void 0?void 0:n.keys)||[]);r.add(t),await this.cache.set(this.manifestKey,{keys:[...r]})}async remove(t){const n=await this.cache.get(this.manifestKey);if(n){const r=new Set(n.keys);return r.delete(t),r.size>0?await this.cache.set(this.manifestKey,{keys:[...r]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(t){return`@@auth0spajs@@::${t}`}};const cm={memory:()=>new rc().enclosedCache,localstorage:()=>new em},oc=e=>cm[e],ac=e=>{const{openUrl:t,onRedirect:n}=e,r=kt(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},r),{openUrl:t===!1||t?t:n})},lc=(e,t)=>{const n=t?.split(" ")||[];return(e?.split(" ")||[]).every((r=>n.includes(r)))},yn={NONCE:"nonce",KEYPAIR:"keypair"};let um=class{constructor(t){this.clientId=t}getVersion(){return 1}createDbHandle(){const t=window.indexedDB.open("auth0-spa-js",this.getVersion());return new Promise(((n,r)=>{t.onupgradeneeded=()=>Object.values(yn).forEach((s=>t.result.createObjectStore(s))),t.onerror=()=>r(t.error),t.onsuccess=()=>n(t.result)}))}async getDbHandle(){return this.dbHandle||(this.dbHandle=await this.createDbHandle()),this.dbHandle}async executeDbRequest(t,n,r){const s=r((await this.getDbHandle()).transaction(t,n).objectStore(t));return new Promise(((i,o)=>{s.onsuccess=()=>i(s.result),s.onerror=()=>o(s.error)}))}buildKey(t){const n=t?`_${t}`:"auth0";return`${this.clientId}::${n}`}setNonce(t,n){return this.save(yn.NONCE,this.buildKey(n),t)}setKeyPair(t){return this.save(yn.KEYPAIR,this.buildKey(),t)}async save(t,n,r){await this.executeDbRequest(t,"readwrite",(s=>s.put(r,n)))}findNonce(t){return this.find(yn.NONCE,this.buildKey(t))}findKeyPair(){return this.find(yn.KEYPAIR,this.buildKey())}find(t,n){return this.executeDbRequest(t,"readonly",(r=>r.get(n)))}async deleteBy(t,n){const r=await this.executeDbRequest(t,"readonly",(s=>s.getAllKeys()));r?.filter(n).map((s=>this.executeDbRequest(t,"readwrite",(i=>i.delete(s)))))}deleteByClientId(t,n){return this.deleteBy(t,(r=>typeof r=="string"&&r.startsWith(`${n}::`)))}clearNonces(){return this.deleteByClientId(yn.NONCE,this.clientId)}clearKeyPairs(){return this.deleteByClientId(yn.KEYPAIR,this.clientId)}},fm=class{constructor(t){this.storage=new um(t)}getNonce(t){return this.storage.findNonce(t)}setNonce(t,n){return this.storage.setNonce(t,n)}async getOrGenerateKeyPair(){let t=await this.storage.findKeyPair();return t||(t=await(async function(n,r){var s;let i;return i={name:"ECDSA",namedCurve:"P-256"},crypto.subtle.generateKey(i,(s=r?.extractable)!==null&&s!==void 0&&s,["sign","verify"])})(0,{extractable:!1}),await this.storage.setKeyPair(t)),t}async generateProof(t){const n=await this.getOrGenerateKeyPair();return(function({keyPair:r,url:s,method:i,nonce:o,accessToken:a}){const l=(function(u){const c=new URL(u);return c.search="",c.hash="",c.href})(s);return Xp(r,l,i,o,a)})(Object.assign({keyPair:n},t))}async calculateThumbprint(){return(function(t){return(async function(n){if(!ec(n))throw new TypeError('"publicKey" must be a public CryptoKey');if(n.extractable!==!0)throw new TypeError('"publicKey.extractable" must be true');const r=await tc(n);let s;switch(r.kty){case"EC":s={crv:r.crv,kty:r.kty,x:r.x,y:r.y};break;case"OKP":s={crv:r.crv,kty:r.kty,x:r.x};break;case"RSA":s={e:r.e,kty:r.kty,n:r.n};break;default:throw new Kn("unsupported JWK kty")}return kr(await crypto.subtle.digest({name:"SHA-256"},vr(JSON.stringify(s))))})(t.publicKey)})(await this.getOrGenerateKeyPair())}async clear(){await Promise.all([this.storage.clearNonces(),this.storage.clearKeyPairs()])}};var Hn;(function(e){e.Bearer="Bearer",e.DPoP="DPoP"})(Hn||(Hn={}));let dm=class{constructor(t,n){this.hooks=n,this.config=Object.assign(Object.assign({},t),{fetch:t.fetch||(typeof window>"u"?fetch:window.fetch.bind(window))})}isAbsoluteUrl(t){return/^(https?:)?\/\//i.test(t)}buildUrl(t,n){if(n){if(this.isAbsoluteUrl(n))return n;if(t)return`${t.replace(/\/?\/$/,"")}/${n.replace(/^\/+/,"")}`}throw new TypeError("`url` must be absolute or `baseUrl` non-empty.")}getAccessToken(t){return this.config.getAccessToken?this.config.getAccessToken(t):this.hooks.getAccessToken(t)}extractUrl(t){return typeof t=="string"?t:t instanceof URL?t.href:t.url}buildBaseRequest(t,n){if(!this.config.baseUrl)return new Request(t,n);const r=this.buildUrl(this.config.baseUrl,this.extractUrl(t)),s=t instanceof Request?new Request(r,t):r;return new Request(s,n)}setAuthorizationHeader(t,n,r=Hn.Bearer){t.headers.set("authorization",`${r} ${n}`)}async setDpopProofHeader(t,n){if(!this.config.dpopNonceId)return;const r=await this.hooks.getDpopNonce(),s=await this.hooks.generateDpopProof({accessToken:n,method:t.method,nonce:r,url:t.url});t.headers.set("dpop",s)}async prepareRequest(t,n){const r=await this.getAccessToken(n);let s,i;typeof r=="string"?(s=this.config.dpopNonceId?Hn.DPoP:Hn.Bearer,i=r):(s=r.token_type,i=r.access_token),this.setAuthorizationHeader(t,i,s),s===Hn.DPoP&&await this.setDpopProofHeader(t,i)}getHeader(t,n){return Array.isArray(t)?new Headers(t).get(n)||"":typeof t.get=="function"?t.get(n)||"":t[n]||""}hasUseDpopNonceError(t){if(t.status!==401)return!1;const n=this.getHeader(t.headers,"www-authenticate");return n.includes("invalid_dpop_nonce")||n.includes("use_dpop_nonce")}async handleResponse(t,n){const r=this.getHeader(t.headers,"dpop-nonce");if(r&&await this.hooks.setDpopNonce(r),!this.hasUseDpopNonceError(t))return t;if(!r||!n.onUseDpopNonceError)throw new Zl(r);return n.onUseDpopNonceError()}async internalFetchWithAuth(t,n,r,s){const i=this.buildBaseRequest(t,n);await this.prepareRequest(i,s);const o=await this.config.fetch(i);return this.handleResponse(o,r)}fetchWithAuth(t,n,r){const s={onUseDpopNonceError:()=>this.internalFetchWithAuth(t,n,Object.assign(Object.assign({},s),{onUseDpopNonceError:void 0}),r)};return this.internalFetchWithAuth(t,n,s,r)}},hm=class{constructor(t,n){this.myAccountFetcher=t,this.apiBase=n}async connectAccount(t){const n=await this.myAccountFetcher.fetchWithAuth(`${this.apiBase}v1/connected-accounts/connect`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});return this._handleResponse(n)}async completeAccount(t){const n=await this.myAccountFetcher.fetchWithAuth(`${this.apiBase}v1/connected-accounts/complete`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});return this._handleResponse(n)}async _handleResponse(t){let n;try{n=await t.text(),n=JSON.parse(n)}catch(r){throw new cc({type:"invalid_json",status:t.status,title:"Invalid JSON response",detail:n||String(r)})}if(t.ok)return n;throw new cc(n)}},cc=class Xf extends Error{constructor({type:t,status:n,title:r,detail:s,validation_errors:i}){super(s),this.name="MyAccountApiError",this.type=t,this.status=n,this.title=r,this.detail=s,this.validation_errors=i,Object.setPrototypeOf(this,Xf.prototype)}};const Gi=new Np;let pm=class{constructor(t){let n,r;if(this.userCache=new rc().enclosedCache,this.activeLockKeys=new Set,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{const l=Array.from(this.activeLockKeys);for(const u of l)await Gi.releaseLock(u);this.activeLockKeys.clear(),window.removeEventListener("pagehide",this._releaseLockOnPageHide)},this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),t),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),t.authorizationParams)}),typeof window<"u"&&(()=>{if(!vs())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(vs().subtle===void 0)throw new Error(`
|
|
6
|
+
auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/main/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.
|
|
7
|
+
`)})(),t.cache&&t.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),t.cache)r=t.cache;else{if(n=t.cacheLocation||"memory",!oc(n))throw new Error(`Invalid cache location "${n}"`);r=oc(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?Wn:im,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(l=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const s=t.useCookiesForTransactions?this.cookieStorage:om;var i;this.scope=((l,u,...c)=>{if(typeof l!="object")return{default:ks(u,l,...c)};let f={default:ks(u,...c)};return Object.keys(l).forEach((d=>{const h=l[d];f[d]=ks(u,h,...c)})),f})(this.options.authorizationParams.scope,"openid",this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new nm(s,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||Bl,this.cacheManager=new tm(r,r.allKeys?void 0:new lm(r,this.options.clientId),this.nowProvider),this.dpop=this.options.useDpop?new fm(this.options.clientId):void 0,this.domainUrl=(i=this.options.domain,/^https?:\/\//.test(i)?i:`https://${i}`),this.tokenIssuer=((l,u)=>l?l.startsWith("https://")?l:`https://${l}/`:`${u}/`)(this.options.issuer,this.domainUrl);const o=`${this.domainUrl}/me/`,a=this.createFetcher(Object.assign(Object.assign({},this.options.useDpop&&{dpopNonceId:"__auth0_my_account_api__"}),{getAccessToken:()=>this.getTokenSilently({authorizationParams:{scope:"create:me:connected_accounts",audience:o},detailedResponse:!0})}));this.myAccountApi=new hm(a,o),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new am)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||Vl)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Hi(t)}`)}async _verifyIdToken(t,n,r){const s=await this.nowProvider();return(o=>{if(!o.id_token)throw new Error("ID token is required but missing");const a=(f=>{const d=f.split("."),[h,y,w]=d;if(d.length!==3||!h||!y||!w)throw new Error("ID token could not be decoded");const E=JSON.parse(Yl(y)),_={__raw:f},v={};return Object.keys(E).forEach((T=>{_[T]=E[T],rm.includes(T)||(v[T]=E[T])})),{encoded:{header:h,payload:y,signature:w},header:JSON.parse(Yl(h)),claims:_,user:v}})(o.id_token);if(!a.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(a.claims.iss!==o.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${o.iss}", found "${a.claims.iss}"`);if(!a.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(a.header.alg!=="RS256")throw new Error(`Signature algorithm of "${a.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!a.claims.aud||typeof a.claims.aud!="string"&&!Array.isArray(a.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(a.claims.aud)){if(!a.claims.aud.includes(o.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${o.aud}" but was not one of "${a.claims.aud.join(", ")}"`);if(a.claims.aud.length>1){if(!a.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(a.claims.azp!==o.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${o.aud}", found "${a.claims.azp}"`)}}else if(a.claims.aud!==o.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${o.aud}" but found "${a.claims.aud}"`);if(o.nonce){if(!a.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(a.claims.nonce!==o.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${o.nonce}", found "${a.claims.nonce}"`)}if(o.max_age&&!xr(a.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(a.claims.exp==null||!xr(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!xr(a.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const l=o.leeway||60,u=new Date(o.now||Date.now()),c=new Date(0);if(c.setUTCSeconds(a.claims.exp+l),u>c)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${u}) is after expiration time (${c})`);if(a.claims.nbf!=null&&xr(a.claims.nbf)){const f=new Date(0);if(f.setUTCSeconds(a.claims.nbf-l),u<f)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${u}) is before ${f}`)}if(a.claims.auth_time!=null&&xr(a.claims.auth_time)){const f=new Date(0);if(f.setUTCSeconds(parseInt(a.claims.auth_time)+o.max_age+l),u>f)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${u}) is after last auth at ${f}`)}if(o.organization){const f=o.organization.trim();if(f.startsWith("org_")){const d=f;if(!a.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(d!==a.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${d}", found "${a.claims.org_id}"`)}else{const d=f.toLowerCase();if(!a.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(d!==a.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${d}", found "${a.claims.org_name}"`)}}return a})({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organization:r,leeway:this.options.leeway,max_age:(i=this.options.authorizationParams.max_age,typeof i!="string"?i:parseInt(i,10)||void 0),now:s});var i}_processOrgHint(t){t?this.cookieStorage.save(this.orgHintCookieName,t,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(t,n,r){var s;const i=Wi(wr()),o=Wi(wr()),a=wr(),l=await Xl(a),u=Jl(l),c=await((s=this.dpop)===null||s===void 0?void 0:s.calculateThumbprint()),f=((h,y,w,E,_,v,T,g,A)=>Object.assign(Object.assign(Object.assign({client_id:h.clientId},h.authorizationParams),w),{scope:xs(y,w.scope,w.audience),response_type:"code",response_mode:g||"query",state:E,nonce:_,redirect_uri:T||h.authorizationParams.redirect_uri,code_challenge:v,code_challenge_method:"S256",dpop_jkt:A}))(this.options,this.scope,t,i,o,u,t.redirect_uri||this.options.authorizationParams.redirect_uri||r,n?.response_mode,c),d=this._authorizeUrl(f);return{nonce:o,code_verifier:a,scope:f.scope,audience:f.audience||"default",redirect_uri:f.redirect_uri,state:i,url:d}}async loginWithPopup(t,n){var r;if(t=t||{},!(n=n||{}).popup&&(n.popup=(a=>{const l=window.screenX+(window.innerWidth-400)/2,u=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup",`left=${l},top=${u},width=400,height=600,resizable,scrollbars=yes,status=1`)})(),!n.popup))throw new Up;const s=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=s.url;const i=await(a=>new Promise(((l,u)=>{let c;const f=setInterval((()=>{a.popup&&a.popup.closed&&(clearInterval(f),clearTimeout(d),window.removeEventListener("message",c,!1),u(new Fp(a.popup)))}),1e3),d=setTimeout((()=>{clearInterval(f),u(new Mp(a.popup)),window.removeEventListener("message",c,!1)}),1e3*(a.timeoutInSeconds||60));c=function(h){if(h.data&&h.data.type==="authorization_response"){if(clearTimeout(d),clearInterval(f),window.removeEventListener("message",c,!1),a.popup.close(),h.data.response.error)return u(Ae.fromPayload(h.data.response));l(h.data.response)}},window.addEventListener("message",c)})))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(s.state!==i.state)throw new Ae("state_mismatch","Invalid state");const o=((r=t.authorizationParams)===null||r===void 0?void 0:r.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:s.audience,scope:s.scope,code_verifier:s.code_verifier,grant_type:"authorization_code",code:i.code,redirect_uri:s.redirect_uri},{nonceIn:s.nonce,organization:o})}async getUser(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.user}async getIdTokenClaims(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.claims}async loginWithRedirect(t={}){var n;const r=ac(t),{openUrl:s,fragment:i,appState:o}=r,a=kt(r,["openUrl","fragment","appState"]),l=((n=a.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,u=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:c}=u,f=kt(u,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},f),{appState:o,response_type:bn.Code}),l&&{organization:l}));const d=i?`${c}#${i}`:c;s?await s(d):window.location.assign(d)}async handleRedirectCallback(t=window.location.href){const n=t.split("?").slice(1);if(n.length===0)throw new Error("There are no query params available for parsing.");const r=this.transactionManager.get();if(!r)throw new Ae("missing_transaction","Invalid state");this.transactionManager.remove();const s=(i=>{i.indexOf("#")>-1&&(i=i.substring(0,i.indexOf("#")));const o=new URLSearchParams(i);return{state:o.get("state"),code:o.get("code")||void 0,connect_code:o.get("connect_code")||void 0,error:o.get("error")||void 0,error_description:o.get("error_description")||void 0}})(n.join(""));return r.response_type===bn.ConnectCode?this._handleConnectAccountRedirectCallback(s,r):this._handleLoginRedirectCallback(s,r)}async _handleLoginRedirectCallback(t,n){const{code:r,state:s,error:i,error_description:o}=t;if(i)throw new jp(i,o||i,s,n.appState);if(!n.code_verifier||n.state&&n.state!==s)throw new Ae("state_mismatch","Invalid state");const a=n.organization,l=n.nonce,u=n.redirect_uri;return await this._requestToken(Object.assign({audience:n.audience,scope:n.scope,code_verifier:n.code_verifier,grant_type:"authorization_code",code:r},u?{redirect_uri:u}:{}),{nonceIn:l,organization:a}),{appState:n.appState,response_type:bn.Code}}async _handleConnectAccountRedirectCallback(t,n){const{connect_code:r,state:s,error:i,error_description:o}=t;if(i)throw new Ki(i,o||i,n.connection,s,n.appState);if(!r)throw new Ae("missing_connect_code","Missing connect code");if(!(n.code_verifier&&n.state&&n.auth_session&&n.redirect_uri&&n.state===s))throw new Ae("state_mismatch","Invalid state");const a=await this.myAccountApi.completeAccount({auth_session:n.auth_session,connect_code:r,redirect_uri:n.redirect_uri,code_verifier:n.code_verifier});return Object.assign(Object.assign({},a),{appState:n.appState,response_type:bn.ConnectCode})}async checkSession(t){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(t)}catch{}}async getTokenSilently(t={}){var n,r;const s=Object.assign(Object.assign({cacheMode:"on"},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:xs(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope,((r=t.authorizationParams)===null||r===void 0?void 0:r.audience)||this.options.authorizationParams.audience)})}),i=await((o,a)=>{let l=Bi[a];return l||(l=o().finally((()=>{delete Bi[a],l=null})),Bi[a]=l),l})((()=>this._getTokenSilently(s)),`${this.options.clientId}::${s.authorizationParams.audience}::${s.authorizationParams.scope}`);return t.detailedResponse?i:i?.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,r=kt(t,["cacheMode"]);if(n!=="off"){const i=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId,cacheMode:n});if(i)return i}if(n==="cache-only")return;const s=`auth0.lock.getTokenSilently.${this.options.clientId}.${r.authorizationParams.audience||"default"}`;if(!await(async(i,o=3)=>{for(let a=0;a<o;a++)if(await i())return!0;return!1})((()=>Gi.acquireLock(s,5e3)),10))throw new yr;this.activeLockKeys.add(s),this.activeLockKeys.size===1&&window.addEventListener("pagehide",this._releaseLockOnPageHide);try{if(n!=="off"){const f=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(f)return f}const i=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(r):await this._getTokenFromIFrame(r),{id_token:o,token_type:a,access_token:l,oauthTokenScope:u,expires_in:c}=i;return Object.assign(Object.assign({id_token:o,token_type:a,access_token:l},u?{scope:u}:null),{expires_in:c})}finally{await Gi.releaseLock(s),this.activeLockKeys.delete(s),this.activeLockKeys.size===0&&window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}async getTokenWithPopup(t={},n={}){var r,s;const i=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:xs(this.scope,(r=t.authorizationParams)===null||r===void 0?void 0:r.scope,((s=t.authorizationParams)===null||s===void 0?void 0:s.audience)||this.options.authorizationParams.audience)})});return n=Object.assign(Object.assign({},Dp),n),await this.loginWithPopup(i,n),(await this.cacheManager.get(new Mt({scope:i.authorizationParams.scope,audience:i.authorizationParams.audience||"default",clientId:this.options.clientId}),void 0,this.options.useMrrt)).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(t){t.clientId!==null?t.clientId=t.clientId||this.options.clientId:delete t.clientId;const n=t.logoutParams||{},{federated:r}=n,s=kt(n,["federated"]),i=r?"&federated":"";return this._url(`/v2/logout?${Hi(Object.assign({clientId:t.clientId},s))}`)+i}async logout(t={}){var n;const r=ac(t),{openUrl:s}=r,i=kt(r,["openUrl"]);t.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(t.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@"),await((n=this.dpop)===null||n===void 0?void 0:n.clear());const o=this._buildLogoutUrl(i);s?await s(o):s!==!1&&window.location.assign(o)}async _getTokenFromIFrame(t){const n=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),r=this.cookieStorage.get(this.orgHintCookieName);r&&!n.organization&&(n.organization=r);const{url:s,state:i,nonce:o,code_verifier:a,redirect_uri:l,scope:u,audience:c}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new Ae("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const f=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds;let d;try{d=new URL(this.domainUrl).origin}catch{d=this.domainUrl}const h=await((w,E,_=60)=>new Promise(((v,T)=>{const g=window.document.createElement("iframe");g.setAttribute("width","0"),g.setAttribute("height","0"),g.style.display="none";const A=()=>{window.document.body.contains(g)&&(window.document.body.removeChild(g),window.removeEventListener("message",D,!1))};let D;const P=setTimeout((()=>{T(new yr),A()}),1e3*_);D=function(M){if(M.origin!=E||!M.data||M.data.type!=="authorization_response")return;const U=M.source;U&&U.close(),M.data.response.error?T(Ae.fromPayload(M.data.response)):v(M.data.response),clearTimeout(P),window.removeEventListener("message",D,!1),setTimeout(A,2e3)},window.addEventListener("message",D,!1),window.document.body.appendChild(g),g.setAttribute("src",w)})))(s,d,f);if(i!==h.state)throw new Ae("state_mismatch","Invalid state");const y=await this._requestToken(Object.assign(Object.assign({},t.authorizationParams),{code_verifier:a,code:h.code,grant_type:"authorization_code",redirect_uri:l,timeout:t.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:o,organization:n.organization});return Object.assign(Object.assign({},y),{scope:u,oauthTokenScope:y.scope,audience:c})}catch(f){throw f.error==="login_required"&&this.logout({openUrl:!1}),f}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new Mt({scope:t.authorizationParams.scope,audience:t.authorizationParams.audience||"default",clientId:this.options.clientId}),void 0,this.options.useMrrt);if(!(n&&n.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw new Gl(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const r=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,s=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null,i=((c,f,d,h)=>{var y;if(c&&d&&h){if(f.audience!==d)return f.scope;const w=h.split(" "),E=((y=f.scope)===null||y===void 0?void 0:y.split(" "))||[],_=E.every((v=>w.includes(v)));return w.length>=E.length&&_?h:f.scope}return f.scope})(this.options.useMrrt,t.authorizationParams,n?.audience,n?.scope);try{const c=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:r}),s&&{timeout:s}),{scopesToRequest:i});if(c.refresh_token&&this.options.useMrrt&&n?.refresh_token&&await this.cacheManager.updateEntry(n.refresh_token,c.refresh_token),this.options.useMrrt&&(o=n?.audience,a=n?.scope,l=t.authorizationParams.audience,u=t.authorizationParams.scope,!(o===l&&lc(u,a)||lc(i,c.scope)))){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);await this.cacheManager.remove(this.options.clientId,t.authorizationParams.audience,t.authorizationParams.scope);const f=((d,h)=>{const y=d?.split(" ")||[],w=h?.split(" ")||[];return y.filter((E=>w.indexOf(E)==-1)).join(",")})(i,c.scope);throw new Wp(t.authorizationParams.audience||"default",f)}return Object.assign(Object.assign({},c),{scope:t.authorizationParams.scope,oauthTokenScope:c.scope,audience:t.authorizationParams.audience||"default"})}catch(c){if((c.message.indexOf("Missing Refresh Token")>-1||c.message&&c.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw c}var o,a,l,u}async _saveEntryInCache(t){const{id_token:n,decodedToken:r}=t,s=kt(t,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:r}),await this.cacheManager.setIdToken(this.options.clientId,t.id_token,t.decodedToken),await this.cacheManager.set(s)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=this.scope[t],r=await this.cacheManager.getIdToken(new Mt({clientId:this.options.clientId,audience:t,scope:n})),s=this.userCache.get("@@user@@");return r&&r.id_token===s?.id_token?s:(this.userCache.set("@@user@@",r),r)}async _getEntryFromCache({scope:t,audience:n,clientId:r,cacheMode:s}){const i=await this.cacheManager.get(new Mt({scope:t,audience:n,clientId:r}),60,this.options.useMrrt,s);if(i&&i.access_token){const{token_type:o,access_token:a,oauthTokenScope:l,expires_in:u}=i,c=await this._getIdTokenFromCache();return c&&Object.assign(Object.assign({id_token:c.id_token,token_type:o||"Bearer",access_token:a},l?{scope:l}:null),{expires_in:u})}}async _requestToken(t,n){const{nonceIn:r,organization:s,scopesToRequest:i}=n||{},o=await Qp(Object.assign(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs,useMrrt:this.options.useMrrt,dpop:this.dpop},t),{scope:i||t.scope}),this.worker),a=await this._verifyIdToken(o.id_token,r,s);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},o),{decodedToken:a,scope:t.scope,audience:t.audience||"default"}),o.scope?{oauthTokenScope:o.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(s||a.claims.org_id),Object.assign(Object.assign({},o),{decodedToken:a})}async exchangeToken(t){return this._requestToken({grant_type:"urn:ietf:params:oauth:grant-type:token-exchange",subject_token:t.subject_token,subject_token_type:t.subject_token_type,scope:xs(this.scope,t.scope,t.audience||this.options.authorizationParams.audience),audience:t.audience||this.options.authorizationParams.audience})}_assertDpop(t){if(!t)throw new Error("`useDpop` option must be enabled before using DPoP.")}getDpopNonce(t){return this._assertDpop(this.dpop),this.dpop.getNonce(t)}setDpopNonce(t,n){return this._assertDpop(this.dpop),this.dpop.setNonce(t,n)}generateDpopProof(t){return this._assertDpop(this.dpop),this.dpop.generateProof(t)}createFetcher(t={}){return new dm(t,{isDpopEnabled:()=>!!this.options.useDpop,getAccessToken:n=>{var r;return this.getTokenSilently({authorizationParams:{scope:(r=n?.scope)===null||r===void 0?void 0:r.join(" "),audience:n?.audience},detailedResponse:!0})},getDpopNonce:()=>this.getDpopNonce(t.dpopNonceId),setDpopNonce:n=>this.setDpopNonce(n,t.dpopNonceId),generateDpopProof:n=>this.generateDpopProof(n)})}async connectAccountWithRedirect(t){const{openUrl:n,appState:r,connection:s,scopes:i,authorization_params:o,redirectUri:a=this.options.authorizationParams.redirect_uri||window.location.origin}=t;if(!s)throw new Error("connection is required");const l=Wi(wr()),u=wr(),c=await Xl(u),f=Jl(c),{connect_uri:d,connect_params:h,auth_session:y}=await this.myAccountApi.connectAccount({connection:s,scopes:i,redirect_uri:a,state:l,code_challenge:f,code_challenge_method:"S256",authorization_params:o});this.transactionManager.create({state:l,code_verifier:u,auth_session:y,redirect_uri:a,appState:r,connection:s,response_type:bn.ConnectCode});const w=new URL(d);w.searchParams.set("ticket",h.ticket),n?await n(w.toString()):window.location.assign(w)}};function Sr(e){e?.redirect_uri&&(console.warn("Using `redirect_uri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `redirectUri` will be no longer supported in a future version"),e.authorizationParams=e.authorizationParams||{},e.authorizationParams.redirect_uri=e.redirect_uri,delete e.redirect_uri)}const at=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},mm={isLoading:q(!1),isAuthenticated:q(!1),user:q(void 0),idTokenClaims:q(void 0),error:q(null),loginWithPopup:at,loginWithRedirect:at,getAccessTokenSilently:at,getAccessTokenWithPopup:at,logout:at,checkSession:at,handleRedirectCallback:at,getDpopNonce:at,setDpopNonce:at,generateDpopProof:at,createFetcher:at},gm=q(mm);class _m{constructor(t,n){var r,s;this.clientOptions=t,this.pluginOptions=n,this.isLoading=q(!0),this.isAuthenticated=q(!1),this.user=q({}),this.idTokenClaims=q(),this.error=q(null),r=this,s=["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf(r)).filter((i=>!s.includes(i))).forEach((i=>r[i]=r[i].bind(r)))}install(t){this._client=new pm(Object.assign(Object.assign({},this.clientOptions),{auth0Client:{name:"auth0-vue",version:"2.3.1"}})),this.__checkSession(t.config.globalProperties.$router),t.config.globalProperties.$auth0=this,t.provide(zl,this),gm.value=this}async loginWithRedirect(t){return Sr(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return Sr(t),this.__proxy((()=>this._client.loginWithPopup(t,n)))}async logout(t){return t?.openUrl||t?.openUrl===!1?this.__proxy((()=>this._client.logout(t))):this._client.logout(t)}async getAccessTokenSilently(t={}){return Sr(t),this.__proxy((()=>this._client.getTokenSilently(t)))}async getAccessTokenWithPopup(t,n){return Sr(t),this.__proxy((()=>this._client.getTokenWithPopup(t,n)))}async checkSession(t){return this.__proxy((()=>this._client.checkSession(t)))}async handleRedirectCallback(t){return this.__proxy((()=>this._client.handleRedirectCallback(t)))}async getDpopNonce(t){return this.__proxy((()=>this._client.getDpopNonce(t)))}async setDpopNonce(t,n){return this.__proxy((()=>this._client.setDpopNonce(t,n)))}async generateDpopProof(t){return this.__proxy((()=>this._client.generateDpopProof(t)))}createFetcher(t){return this._client.createFetcher(t)}async __checkSession(t){var n,r,s;const i=window.location.search;try{if((i.includes("code=")||i.includes("error="))&&i.includes("state=")&&!(!((n=this.pluginOptions)===null||n===void 0)&&n.skipRedirectCallback)){const o=await this.handleRedirectCallback(),a=o?.appState,l=(r=a?.target)!==null&&r!==void 0?r:"/";return window.history.replaceState({},"","/"),t&&t.push(l),o}await this.checkSession()}catch{window.history.replaceState({},"","/"),t&&t.push(((s=this.pluginOptions)===null||s===void 0?void 0:s.errorPath)||"/")}}async __refreshState(){this.isAuthenticated.value=await this._client.isAuthenticated(),this.user.value=await this._client.getUser(),this.idTokenClaims.value=await this._client.getIdTokenClaims(),this.isLoading.value=!1}async __proxy(t,n=!0){let r;try{r=await t(),this.error.value=null}catch(s){throw this.error.value=s,s}finally{n&&await this.__refreshState()}return r}}function uc(e,t){return Sr(e),new _m(e,t)}function bm(){return Ee(zl)}function ym(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Ss=typeof window<"u",en=(e,t=!1)=>t?Symbol.for(e):Symbol(e),wm=(e,t,n)=>vm({l:e,k:t,s:n}),vm=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ce=e=>typeof e=="number"&&isFinite(e),km=e=>Zi(e)==="[object Date]",zn=e=>Zi(e)==="[object RegExp]",Ts=e=>Q(e)&&Object.keys(e).length===0,Pe=Object.assign,xm=Object.create,he=(e=null)=>xm(e);let fc;const wn=()=>fc||(fc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:he());function dc(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function hc(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Sm(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,s,i)=>`${s}="${hc(i)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,s,i)=>`${s}='${hc(i)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript:")}),e}const Tm=Object.prototype.hasOwnProperty;function lt(e,t){return Tm.call(e,t)}const ke=Array.isArray,be=e=>typeof e=="function",F=e=>typeof e=="string",se=e=>typeof e=="boolean",ae=e=>e!==null&&typeof e=="object",Em=e=>ae(e)&&be(e.then)&&be(e.catch),pc=Object.prototype.toString,Zi=e=>pc.call(e),Q=e=>Zi(e)==="[object Object]",Im=e=>e==null?"":ke(e)||Q(e)&&e.toString===pc?JSON.stringify(e,null,2):String(e);function Xi(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}const Es=e=>!ae(e)||ke(e);function Is(e,t){if(Es(e)||Es(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:s}=n.pop();Object.keys(r).forEach(i=>{i!=="__proto__"&&(ae(r[i])&&!ae(s[i])&&(s[i]=Array.isArray(r[i])?[]:he()),Es(s[i])||Es(r[i])?s[i]=r[i]:n.push({src:r[i],des:s[i]}))})}}function Cm(e,t,n){return{line:e,column:t,offset:n}}function Yi(e,t,n){return{start:e,end:t}}const ce={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},Om=17;function Cs(e,t,n={}){const{domain:r,messages:s,args:i}=n,o=e,a=new SyntaxError(String(o));return a.code=e,t&&(a.location=t),a.domain=r,a}function Am(e){throw e}const xt=" ",Pm="\r",Fe=`
|
|
8
|
+
`,Lm="\u2028",Rm="\u2029";function $m(e){const t=e;let n=0,r=1,s=1,i=0;const o=P=>t[P]===Pm&&t[P+1]===Fe,a=P=>t[P]===Fe,l=P=>t[P]===Rm,u=P=>t[P]===Lm,c=P=>o(P)||a(P)||l(P)||u(P),f=()=>n,d=()=>r,h=()=>s,y=()=>i,w=P=>o(P)||l(P)||u(P)?Fe:t[P],E=()=>w(n),_=()=>w(n+i);function v(){return i=0,c(n)&&(r++,s=0),o(n)&&n++,n++,s++,t[n]}function T(){return o(n+i)&&i++,i++,t[n+i]}function g(){n=0,r=1,s=1,i=0}function A(P=0){i=P}function D(){const P=n+i;for(;P!==n;)v();i=0}return{index:f,line:d,column:h,peekOffset:y,charAt:w,currentChar:E,currentPeek:_,next:v,peek:T,reset:g,resetPeek:A,skipToPeek:D}}const Ft=void 0,Nm=".",mc="'",Dm="tokenizer";function jm(e,t={}){const n=t.location!==!1,r=$m(e),s=()=>r.index(),i=()=>Cm(r.line(),r.column(),r.index()),o=i(),a=s(),l={currentType:13,offset:a,startLoc:o,endLoc:o,lastType:13,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function f(p,m,x,...I){const j=u();if(m.column+=x,m.offset+=x,c){const L=n?Yi(j.startLoc,m):null,S=Cs(p,L,{domain:Dm,args:I});c(S)}}function d(p,m,x){p.endLoc=i(),p.currentType=m;const I={type:m};return n&&(I.loc=Yi(p.startLoc,p.endLoc)),x!=null&&(I.value=x),I}const h=p=>d(p,13);function y(p,m){return p.currentChar()===m?(p.next(),m):(f(ce.EXPECTED_TOKEN,i(),0,m),"")}function w(p){let m="";for(;p.currentPeek()===xt||p.currentPeek()===Fe;)m+=p.currentPeek(),p.peek();return m}function E(p){const m=w(p);return p.skipToPeek(),m}function _(p){if(p===Ft)return!1;const m=p.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m===95}function v(p){if(p===Ft)return!1;const m=p.charCodeAt(0);return m>=48&&m<=57}function T(p,m){const{currentType:x}=m;if(x!==2)return!1;w(p);const I=_(p.currentPeek());return p.resetPeek(),I}function g(p,m){const{currentType:x}=m;if(x!==2)return!1;w(p);const I=p.currentPeek()==="-"?p.peek():p.currentPeek(),j=v(I);return p.resetPeek(),j}function A(p,m){const{currentType:x}=m;if(x!==2)return!1;w(p);const I=p.currentPeek()===mc;return p.resetPeek(),I}function D(p,m){const{currentType:x}=m;if(x!==7)return!1;w(p);const I=p.currentPeek()===".";return p.resetPeek(),I}function P(p,m){const{currentType:x}=m;if(x!==8)return!1;w(p);const I=_(p.currentPeek());return p.resetPeek(),I}function M(p,m){const{currentType:x}=m;if(!(x===7||x===11))return!1;w(p);const I=p.currentPeek()===":";return p.resetPeek(),I}function U(p,m){const{currentType:x}=m;if(x!==9)return!1;const I=()=>{const L=p.currentPeek();return L==="{"?_(p.peek()):L==="@"||L==="|"||L===":"||L==="."||L===xt||!L?!1:L===Fe?(p.peek(),I()):te(p,!1)},j=I();return p.resetPeek(),j}function J(p){w(p);const m=p.currentPeek()==="|";return p.resetPeek(),m}function te(p,m=!0){const x=(j=!1,L="")=>{const S=p.currentPeek();return S==="{"||S==="@"||!S?j:S==="|"?!(L===xt||L===Fe):S===xt?(p.peek(),x(!0,xt)):S===Fe?(p.peek(),x(!0,Fe)):!0},I=x();return m&&p.resetPeek(),I}function Z(p,m){const x=p.currentChar();return x===Ft?Ft:m(x)?(p.next(),x):null}function Le(p){const m=p.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36}function Je(p){return Z(p,Le)}function ve(p){const m=p.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36||m===45}function X(p){return Z(p,ve)}function V(p){const m=p.charCodeAt(0);return m>=48&&m<=57}function ne(p){return Z(p,V)}function ue(p){const m=p.charCodeAt(0);return m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102}function nt(p){return Z(p,ue)}function $e(p){let m="",x="";for(;m=ne(p);)x+=m;return x}function Ue(p){let m="";for(;;){const x=p.currentChar();if(x==="{"||x==="}"||x==="@"||x==="|"||!x)break;if(x===xt||x===Fe)if(te(p))m+=x,p.next();else{if(J(p))break;m+=x,p.next()}else m+=x,p.next()}return m}function sn(p){E(p);let m="",x="";for(;m=X(p);)x+=m;const I=p.currentChar();if(I&&I!=="}"&&I!==Ft&&I!==xt&&I!==Fe&&I!==" "){const j=Ot(p);return f(ce.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,x+j),x+j}return p.currentChar()===Ft&&f(ce.UNTERMINATED_CLOSING_BRACE,i(),0),x}function on(p){E(p);let m="";return p.currentChar()==="-"?(p.next(),m+=`-${$e(p)}`):m+=$e(p),p.currentChar()===Ft&&f(ce.UNTERMINATED_CLOSING_BRACE,i(),0),m}function an(p){return p!==mc&&p!==Fe}function rt(p){E(p),y(p,"'");let m="",x="";for(;m=Z(p,an);)m==="\\"?x+=ft(p):x+=m;const I=p.currentChar();return I===Fe||I===Ft?(f(ce.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),I===Fe&&(p.next(),y(p,"'")),x):(y(p,"'"),x)}function ft(p){const m=p.currentChar();switch(m){case"\\":case"'":return p.next(),`\\${m}`;case"u":return dt(p,m,4);case"U":return dt(p,m,6);default:return f(ce.UNKNOWN_ESCAPE_SEQUENCE,i(),0,m),""}}function dt(p,m,x){y(p,m);let I="";for(let j=0;j<x;j++){const L=nt(p);if(!L){f(ce.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${m}${I}${p.currentChar()}`);break}I+=L}return`\\${m}${I}`}function Jn(p){return p!=="{"&&p!=="}"&&p!==xt&&p!==Fe}function Ot(p){E(p);let m="",x="";for(;m=Z(p,Jn);)x+=m;return x}function Ys(p){let m="",x="";for(;m=Je(p);)x+=m;return x}function b(p){const m=x=>{const I=p.currentChar();return I==="{"||I==="@"||I==="|"||I==="("||I===")"||!I||I===xt?x:(x+=I,p.next(),m(x))};return m("")}function k(p){E(p);const m=y(p,"|");return E(p),m}function O(p,m){let x=null;switch(p.currentChar()){case"{":return m.braceNest>=1&&f(ce.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),p.next(),x=d(m,2,"{"),E(p),m.braceNest++,x;case"}":return m.braceNest>0&&m.currentType===2&&f(ce.EMPTY_PLACEHOLDER,i(),0),p.next(),x=d(m,3,"}"),m.braceNest--,m.braceNest>0&&E(p),m.inLinked&&m.braceNest===0&&(m.inLinked=!1),x;case"@":return m.braceNest>0&&f(ce.UNTERMINATED_CLOSING_BRACE,i(),0),x=$(p,m)||h(m),m.braceNest=0,x;default:{let j=!0,L=!0,S=!0;if(J(p))return m.braceNest>0&&f(ce.UNTERMINATED_CLOSING_BRACE,i(),0),x=d(m,1,k(p)),m.braceNest=0,m.inLinked=!1,x;if(m.braceNest>0&&(m.currentType===4||m.currentType===5||m.currentType===6))return f(ce.UNTERMINATED_CLOSING_BRACE,i(),0),m.braceNest=0,R(p,m);if(j=T(p,m))return x=d(m,4,sn(p)),E(p),x;if(L=g(p,m))return x=d(m,5,on(p)),E(p),x;if(S=A(p,m))return x=d(m,6,rt(p)),E(p),x;if(!j&&!L&&!S)return x=d(m,12,Ot(p)),f(ce.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,x.value),E(p),x;break}}return x}function $(p,m){const{currentType:x}=m;let I=null;const j=p.currentChar();switch((x===7||x===8||x===11||x===9)&&(j===Fe||j===xt)&&f(ce.INVALID_LINKED_FORMAT,i(),0),j){case"@":return p.next(),I=d(m,7,"@"),m.inLinked=!0,I;case".":return E(p),p.next(),d(m,8,".");case":":return E(p),p.next(),d(m,9,":");default:return J(p)?(I=d(m,1,k(p)),m.braceNest=0,m.inLinked=!1,I):D(p,m)||M(p,m)?(E(p),$(p,m)):P(p,m)?(E(p),d(m,11,Ys(p))):U(p,m)?(E(p),j==="{"?O(p,m)||I:d(m,10,b(p))):(x===7&&f(ce.INVALID_LINKED_FORMAT,i(),0),m.braceNest=0,m.inLinked=!1,R(p,m))}}function R(p,m){let x={type:13};if(m.braceNest>0)return O(p,m)||h(m);if(m.inLinked)return $(p,m)||h(m);switch(p.currentChar()){case"{":return O(p,m)||h(m);case"}":return f(ce.UNBALANCED_CLOSING_BRACE,i(),0),p.next(),d(m,3,"}");case"@":return $(p,m)||h(m);default:{if(J(p))return x=d(m,1,k(p)),m.braceNest=0,m.inLinked=!1,x;if(te(p))return d(m,0,Ue(p));break}}return x}function N(){const{currentType:p,offset:m,startLoc:x,endLoc:I}=l;return l.lastType=p,l.lastOffset=m,l.lastStartLoc=x,l.lastEndLoc=I,l.offset=s(),l.startLoc=i(),r.currentChar()===Ft?d(l,13):R(r,l)}return{nextToken:N,currentOffset:s,currentPosition:i,context:u}}const Mm="parser",Fm=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Um(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function Km(e={}){const t=e.location!==!1,{onError:n}=e;function r(_,v,T,g,...A){const D=_.currentPosition();if(D.offset+=g,D.column+=g,n){const P=t?Yi(T,D):null,M=Cs(v,P,{domain:Mm,args:A});n(M)}}function s(_,v,T){const g={type:_};return t&&(g.start=v,g.end=v,g.loc={start:T,end:T}),g}function i(_,v,T,g){t&&(_.end=v,_.loc&&(_.loc.end=T))}function o(_,v){const T=_.context(),g=s(3,T.offset,T.startLoc);return g.value=v,i(g,_.currentOffset(),_.currentPosition()),g}function a(_,v){const T=_.context(),{lastOffset:g,lastStartLoc:A}=T,D=s(5,g,A);return D.index=parseInt(v,10),_.nextToken(),i(D,_.currentOffset(),_.currentPosition()),D}function l(_,v){const T=_.context(),{lastOffset:g,lastStartLoc:A}=T,D=s(4,g,A);return D.key=v,_.nextToken(),i(D,_.currentOffset(),_.currentPosition()),D}function u(_,v){const T=_.context(),{lastOffset:g,lastStartLoc:A}=T,D=s(9,g,A);return D.value=v.replace(Fm,Um),_.nextToken(),i(D,_.currentOffset(),_.currentPosition()),D}function c(_){const v=_.nextToken(),T=_.context(),{lastOffset:g,lastStartLoc:A}=T,D=s(8,g,A);return v.type!==11?(r(_,ce.UNEXPECTED_EMPTY_LINKED_MODIFIER,T.lastStartLoc,0),D.value="",i(D,g,A),{nextConsumeToken:v,node:D}):(v.value==null&&r(_,ce.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,St(v)),D.value=v.value||"",i(D,_.currentOffset(),_.currentPosition()),{node:D})}function f(_,v){const T=_.context(),g=s(7,T.offset,T.startLoc);return g.value=v,i(g,_.currentOffset(),_.currentPosition()),g}function d(_){const v=_.context(),T=s(6,v.offset,v.startLoc);let g=_.nextToken();if(g.type===8){const A=c(_);T.modifier=A.node,g=A.nextConsumeToken||_.nextToken()}switch(g.type!==9&&r(_,ce.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,St(g)),g=_.nextToken(),g.type===2&&(g=_.nextToken()),g.type){case 10:g.value==null&&r(_,ce.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,St(g)),T.key=f(_,g.value||"");break;case 4:g.value==null&&r(_,ce.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,St(g)),T.key=l(_,g.value||"");break;case 5:g.value==null&&r(_,ce.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,St(g)),T.key=a(_,g.value||"");break;case 6:g.value==null&&r(_,ce.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,St(g)),T.key=u(_,g.value||"");break;default:{r(_,ce.UNEXPECTED_EMPTY_LINKED_KEY,v.lastStartLoc,0);const A=_.context(),D=s(7,A.offset,A.startLoc);return D.value="",i(D,A.offset,A.startLoc),T.key=D,i(T,A.offset,A.startLoc),{nextConsumeToken:g,node:T}}}return i(T,_.currentOffset(),_.currentPosition()),{node:T}}function h(_){const v=_.context(),T=v.currentType===1?_.currentOffset():v.offset,g=v.currentType===1?v.endLoc:v.startLoc,A=s(2,T,g);A.items=[];let D=null;do{const U=D||_.nextToken();switch(D=null,U.type){case 0:U.value==null&&r(_,ce.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,St(U)),A.items.push(o(_,U.value||""));break;case 5:U.value==null&&r(_,ce.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,St(U)),A.items.push(a(_,U.value||""));break;case 4:U.value==null&&r(_,ce.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,St(U)),A.items.push(l(_,U.value||""));break;case 6:U.value==null&&r(_,ce.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,St(U)),A.items.push(u(_,U.value||""));break;case 7:{const J=d(_);A.items.push(J.node),D=J.nextConsumeToken||null;break}}}while(v.currentType!==13&&v.currentType!==1);const P=v.currentType===1?v.lastOffset:_.currentOffset(),M=v.currentType===1?v.lastEndLoc:_.currentPosition();return i(A,P,M),A}function y(_,v,T,g){const A=_.context();let D=g.items.length===0;const P=s(1,v,T);P.cases=[],P.cases.push(g);do{const M=h(_);D||(D=M.items.length===0),P.cases.push(M)}while(A.currentType!==13);return D&&r(_,ce.MUST_HAVE_MESSAGES_IN_PLURAL,T,0),i(P,_.currentOffset(),_.currentPosition()),P}function w(_){const v=_.context(),{offset:T,startLoc:g}=v,A=h(_);return v.currentType===13?A:y(_,T,g,A)}function E(_){const v=jm(_,Pe({},e)),T=v.context(),g=s(0,T.offset,T.startLoc);return t&&g.loc&&(g.loc.source=_),g.body=w(v),e.onCacheKey&&(g.cacheKey=e.onCacheKey(_)),T.currentType!==13&&r(v,ce.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,_[T.offset]||""),i(g,v.currentOffset(),v.currentPosition()),g}return{parse:E}}function St(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Wm(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function gc(e,t){for(let n=0;n<e.length;n++)Ji(e[n],t)}function Ji(e,t){switch(e.type){case 1:gc(e.cases,t),t.helper("plural");break;case 2:gc(e.items,t);break;case 6:{Ji(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Hm(e,t={}){const n=Wm(e);n.helper("normalize"),e.body&&Ji(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function zm(e){const t=e.body;return t.type===2?_c(t):t.cases.forEach(n=>_c(n)),e}function _c(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Xi(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}function Vn(e){switch(e.t=e.type,e.type){case 0:{const t=e;Vn(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Vn(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Vn(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Vn(t.key),t.k=t.key,delete t.key,t.modifier&&(Vn(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function Vm(e,t){const{filename:n,breakLineCode:r,needIndent:s}=t,i=t.location!==!1,o={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:s,indentLevel:0};i&&e.loc&&(o.source=e.loc.source);const a=()=>o;function l(w,E){o.code+=w}function u(w,E=!0){const _=E?r:"";l(s?_+" ".repeat(w):_)}function c(w=!0){const E=++o.indentLevel;w&&u(E)}function f(w=!0){const E=--o.indentLevel;w&&u(E)}function d(){u(o.indentLevel)}return{context:a,push:l,indent:c,deindent:f,newline:d,helper:w=>`_${w}`,needIndent:()=>o.needIndent}}function Bm(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Bn(e,t.key),t.modifier?(e.push(", "),Bn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Gm(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const s=t.items.length;for(let i=0;i<s&&(Bn(e,t.items[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}function Zm(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const s=t.cases.length;for(let i=0;i<s&&(Bn(e,t.cases[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}}function Xm(e,t){t.body?Bn(e,t.body):e.push("null")}function Bn(e,t){const{helper:n}=e;switch(t.type){case 0:Xm(e,t);break;case 1:Zm(e,t);break;case 2:Gm(e,t);break;case 6:Bm(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const Ym=(e,t={})=>{const n=F(t.mode)?t.mode:"normal",r=F(t.filename)?t.filename:"message.intl";t.sourceMap;const s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
9
|
+
`,i=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],a=Vm(e,{filename:r,breakLineCode:s,needIndent:i});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(i),o.length>0&&(a.push(`const { ${Xi(o.map(c=>`${c}: _${c}`),", ")} } = ctx`),a.newline()),a.push("return "),Bn(a,e),a.deindent(i),a.push("}"),delete e.helpers;const{code:l,map:u}=a.context();return{ast:e,code:l,map:u?u.toJSON():void 0}};function Jm(e,t={}){const n=Pe({},t),r=!!n.jit,s=!!n.minify,i=n.optimize==null?!0:n.optimize,a=Km(n).parse(e);return r?(i&&zm(a),s&&Vn(a),{ast:a,code:""}):(Hm(a,n),Ym(a,n))}function qm(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(wn().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(wn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Tt(e){return ae(e)&&qi(e)===0&&(lt(e,"b")||lt(e,"body"))}const bc=["b","body"];function Qm(e){return tn(e,bc)}const yc=["c","cases"];function eg(e){return tn(e,yc,[])}const wc=["s","static"];function tg(e){return tn(e,wc)}const vc=["i","items"];function ng(e){return tn(e,vc,[])}const kc=["t","type"];function qi(e){return tn(e,kc)}const xc=["v","value"];function Os(e,t){const n=tn(e,xc);if(n!=null)return n;throw Tr(t)}const Sc=["m","modifier"];function rg(e){return tn(e,Sc)}const Tc=["k","key"];function sg(e){const t=tn(e,Tc);if(t)return t;throw Tr(6)}function tn(e,t,n){for(let r=0;r<t.length;r++){const s=t[r];if(lt(e,s)&&e[s]!=null)return e[s]}return n}const Ec=[...bc,...yc,...wc,...vc,...Tc,...Sc,...xc,...kc];function Tr(e){return new Error(`unhandled node type: ${e}`)}function Qi(e){return n=>ig(n,e)}function ig(e,t){const n=Qm(t);if(n==null)throw Tr(0);if(qi(n)===1){const i=eg(n);return e.plural(i.reduce((o,a)=>[...o,Ic(e,a)],[]))}else return Ic(e,n)}function Ic(e,t){const n=tg(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=ng(t).reduce((s,i)=>[...s,eo(e,i)],[]);return e.normalize(r)}}function eo(e,t){const n=qi(t);switch(n){case 3:return Os(t,n);case 9:return Os(t,n);case 4:{const r=t;if(lt(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(lt(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Tr(n)}case 5:{const r=t;if(lt(r,"i")&&Ce(r.i))return e.interpolate(e.list(r.i));if(lt(r,"index")&&Ce(r.index))return e.interpolate(e.list(r.index));throw Tr(n)}case 6:{const r=t,s=rg(r),i=sg(r);return e.linked(eo(e,i),s?eo(e,s):void 0,e.type)}case 7:return Os(t,n);case 8:return Os(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const og=e=>e;let As=he();function ag(e,t={}){let n=!1;const r=t.onError||Am;return t.onError=s=>{n=!0,r(s)},{...Jm(e,t),detectError:n}}function lg(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&F(e)){se(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||og)(e),s=As[r];if(s)return s;const{ast:i,detectError:o}=ag(e,{...t,location:!1,jit:!0}),a=Qi(i);return o?a:As[r]=a}else{const n=e.cacheKey;if(n){const r=As[n];return r||(As[n]=Qi(e))}else return Qi(e)}}let Er=null;function cg(e){Er=e}function ug(e,t,n){Er&&Er.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const fg=dg("function:translate");function dg(e){return t=>Er&&Er.emit(e,t)}const Ut={INVALID_ARGUMENT:Om,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},hg=24;function Kt(e){return Cs(e,null,void 0)}function to(e,t){return t.locale!=null?Cc(t.locale):Cc(e.locale)}let no;function Cc(e){if(F(e))return e;if(be(e)){if(e.resolvedOnce&&no!=null)return no;if(e.constructor.name==="Function"){const t=e();if(Em(t))throw Kt(Ut.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return no=t}else throw Kt(Ut.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Kt(Ut.NOT_SUPPORT_LOCALE_TYPE)}function pg(e,t,n){return[...new Set([n,...ke(t)?t:ae(t)?Object.keys(t):F(t)?[t]:[n]])]}function Oc(e,t,n){const r=F(n)?n:Ir,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let i=s.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;ke(o);)o=Ac(i,o,t);const a=ke(t)||!Q(t)?t:t.default?t.default:null;o=F(a)?[a]:a,ke(o)&&Ac(i,o,!1),s.__localeChainCache.set(r,i)}return i}function Ac(e,t,n){let r=!0;for(let s=0;s<t.length&&se(r);s++){const i=t[s];F(i)&&(r=mg(e,t[s],n))}return r}function mg(e,t,n){let r;const s=t.split("-");do{const i=s.join("-");r=gg(e,i,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function gg(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(ke(n)||Q(n))&&n[s]&&(r=n[s])}return r}const nn=[];nn[0]={w:[0],i:[3,0],"[":[4],o:[7]},nn[1]={w:[1],".":[2],"[":[4],o:[7]},nn[2]={w:[2],i:[3,0],0:[3,0]},nn[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},nn[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},nn[5]={"'":[4,0],o:8,l:[5,0]},nn[6]={'"':[4,0],o:8,l:[6,0]};const _g=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function bg(e){return _g.test(e)}function yg(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function wg(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function vg(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:bg(t)?yg(t):"*"+t}function kg(e){const t=[];let n=-1,r=0,s=0,i,o,a,l,u,c,f;const d=[];d[0]=()=>{o===void 0?o=a:o+=a},d[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},d[2]=()=>{d[0](),s++},d[3]=()=>{if(s>0)s--,r=4,d[0]();else{if(s=0,o===void 0||(o=vg(o),o===!1))return!1;d[1]()}};function h(){const y=e[n+1];if(r===5&&y==="'"||r===6&&y==='"')return n++,a="\\"+y,d[0](),!0}for(;r!==null;)if(n++,i=e[n],!(i==="\\"&&h())){if(l=wg(i),f=nn[r],u=f[l]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=d[u[1]],c&&(a=i,c()===!1))))return;if(r===7)return t}}const Pc=new Map;function xg(e,t){return ae(e)?e[t]:null}function Sg(e,t){if(!ae(e))return null;let n=Pc.get(t);if(n||(n=kg(t),n&&Pc.set(t,n)),!n)return null;const r=n.length;let s=e,i=0;for(;i<r;){const o=n[i];if(Ec.includes(o)&&Tt(s))return null;const a=s[o];if(a===void 0||be(s))return null;s=a,i++}return s}const Tg="11.2.8",Ps=-1,Ir="en-US",Lc="",Rc=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Eg(){return{upper:(e,t)=>t==="text"&&F(e)?e.toUpperCase():t==="vnode"&&ae(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&F(e)?e.toLowerCase():t==="vnode"&&ae(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&F(e)?Rc(e):t==="vnode"&&ae(e)&&"__v_isVNode"in e?Rc(e.children):e}}let $c;function Ig(e){$c=e}let Nc;function Cg(e){Nc=e}let Dc;function Og(e){Dc=e}let jc=null;const Ag=e=>{jc=e},Pg=()=>jc;let Mc=null;const Fc=e=>{Mc=e},Lg=()=>Mc;let Uc=0;function Rg(e={}){const t=be(e.onWarn)?e.onWarn:ym,n=F(e.version)?e.version:Tg,r=F(e.locale)||be(e.locale)?e.locale:Ir,s=be(r)?Ir:r,i=ke(e.fallbackLocale)||Q(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,o=Q(e.messages)?e.messages:ro(s),a=Q(e.datetimeFormats)?e.datetimeFormats:ro(s),l=Q(e.numberFormats)?e.numberFormats:ro(s),u=Pe(he(),e.modifiers,Eg()),c=e.pluralRules||he(),f=be(e.missing)?e.missing:null,d=se(e.missingWarn)||zn(e.missingWarn)?e.missingWarn:!0,h=se(e.fallbackWarn)||zn(e.fallbackWarn)?e.fallbackWarn:!0,y=!!e.fallbackFormat,w=!!e.unresolving,E=be(e.postTranslation)?e.postTranslation:null,_=Q(e.processor)?e.processor:null,v=se(e.warnHtmlMessage)?e.warnHtmlMessage:!0,T=!!e.escapeParameter,g=be(e.messageCompiler)?e.messageCompiler:$c,A=be(e.messageResolver)?e.messageResolver:Nc||xg,D=be(e.localeFallbacker)?e.localeFallbacker:Dc||pg,P=ae(e.fallbackContext)?e.fallbackContext:void 0,M=e,U=ae(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,J=ae(M.__numberFormatters)?M.__numberFormatters:new Map,te=ae(M.__meta)?M.__meta:{};Uc++;const Z={version:n,cid:Uc,locale:r,fallbackLocale:i,messages:o,modifiers:u,pluralRules:c,missing:f,missingWarn:d,fallbackWarn:h,fallbackFormat:y,unresolving:w,postTranslation:E,processor:_,warnHtmlMessage:v,escapeParameter:T,messageCompiler:g,messageResolver:A,localeFallbacker:D,fallbackContext:P,onWarn:t,__meta:te};return Z.datetimeFormats=a,Z.numberFormats=l,Z.__datetimeFormatters=U,Z.__numberFormatters=J,__INTLIFY_PROD_DEVTOOLS__&&ug(Z,n,te),Z}const ro=e=>({[e]:he()});function so(e,t,n,r,s){const{missing:i,onWarn:o}=e;if(i!==null){const a=i(e,n,t,s);return F(a)?a:t}else return t}function Cr(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function $g(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Ng(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if($g(e,t[r]))return!0;return!1}function Kc(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__datetimeFormatters:a}=e,[l,u,c,f]=io(...t),d=se(c.missingWarn)?c.missingWarn:e.missingWarn;se(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const h=!!c.part,y=to(e,c),w=o(e,s,y);if(!F(l)||l==="")return new Intl.DateTimeFormat(y,f).format(u);let E={},_,v=null;const T="datetime format";for(let D=0;D<w.length&&(_=w[D],E=n[_]||{},v=E[l],!Q(v));D++)so(e,l,_,d,T);if(!Q(v)||!F(_))return r?Ps:l;let g=`${_}__${l}`;Ts(f)||(g=`${g}__${JSON.stringify(f)}`);let A=a.get(g);return A||(A=new Intl.DateTimeFormat(_,Pe({},v,f)),a.set(g,A)),h?A.formatToParts(u):A.format(u)}const Wc=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function io(...e){const[t,n,r,s]=e,i=he();let o=he(),a;if(F(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Kt(Ut.INVALID_ISO_DATE_ARGUMENT);const u=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();a=new Date(u);try{a.toISOString()}catch{throw Kt(Ut.INVALID_ISO_DATE_ARGUMENT)}}else if(km(t)){if(isNaN(t.getTime()))throw Kt(Ut.INVALID_DATE_ARGUMENT);a=t}else if(Ce(t))a=t;else throw Kt(Ut.INVALID_ARGUMENT);return F(n)?i.key=n:Q(n)&&Object.keys(n).forEach(l=>{Wc.includes(l)?o[l]=n[l]:i[l]=n[l]}),F(r)?i.locale=r:Q(r)&&(o=r),Q(s)&&(o=s),[i.key||"",a,i,o]}function Hc(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function zc(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__numberFormatters:a}=e,[l,u,c,f]=oo(...t),d=se(c.missingWarn)?c.missingWarn:e.missingWarn;se(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const h=!!c.part,y=to(e,c),w=o(e,s,y);if(!F(l)||l==="")return new Intl.NumberFormat(y,f).format(u);let E={},_,v=null;const T="number format";for(let D=0;D<w.length&&(_=w[D],E=n[_]||{},v=E[l],!Q(v));D++)so(e,l,_,d,T);if(!Q(v)||!F(_))return r?Ps:l;let g=`${_}__${l}`;Ts(f)||(g=`${g}__${JSON.stringify(f)}`);let A=a.get(g);return A||(A=new Intl.NumberFormat(_,Pe({},v,f)),a.set(g,A)),h?A.formatToParts(u):A.format(u)}const Vc=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function oo(...e){const[t,n,r,s]=e,i=he();let o=he();if(!Ce(t))throw Kt(Ut.INVALID_ARGUMENT);const a=t;return F(n)?i.key=n:Q(n)&&Object.keys(n).forEach(l=>{Vc.includes(l)?o[l]=n[l]:i[l]=n[l]}),F(r)?i.locale=r:Q(r)&&(o=r),Q(s)&&(o=s),[i.key||"",a,i,o]}function Bc(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}const Dg=e=>e,jg=e=>"",Mg="text",Fg=e=>e.length===0?"":Xi(e),Ug=Im;function Gc(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Kg(e){const t=Ce(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ce(e.named.count)||Ce(e.named.n))?Ce(e.named.count)?e.named.count:Ce(e.named.n)?e.named.n:t:t}function Wg(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Hg(e={}){const t=e.locale,n=Kg(e),r=ae(e.pluralRules)&&F(t)&&be(e.pluralRules[t])?e.pluralRules[t]:Gc,s=ae(e.pluralRules)&&F(t)&&be(e.pluralRules[t])?Gc:void 0,i=_=>_[r(n,_.length,s)],o=e.list||[],a=_=>o[_],l=e.named||he();Ce(e.pluralIndex)&&Wg(n,l);const u=_=>l[_];function c(_,v){const T=be(e.messages)?e.messages(_,!!v):ae(e.messages)?e.messages[_]:!1;return T||(e.parent?e.parent.message(_):jg)}const f=_=>e.modifiers?e.modifiers[_]:Dg,d=Q(e.processor)&&be(e.processor.normalize)?e.processor.normalize:Fg,h=Q(e.processor)&&be(e.processor.interpolate)?e.processor.interpolate:Ug,y=Q(e.processor)&&F(e.processor.type)?e.processor.type:Mg,E={list:a,named:u,plural:i,linked:(_,...v)=>{const[T,g]=v;let A="text",D="";v.length===1?ae(T)?(D=T.modifier||D,A=T.type||A):F(T)&&(D=T||D):v.length===2&&(F(T)&&(D=T||D),F(g)&&(A=g||A));const P=c(_,!0)(E),M=A==="vnode"&&ke(P)&&D?P[0]:P;return D?f(D)(M,A):M},message:c,type:y,interpolate:h,normalize:d,values:Pe(he(),o,l)};return E}const Zc=()=>"",tt=e=>be(e);function Xc(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:i,fallbackLocale:o,messages:a}=e,[l,u]=ao(...t),c=se(u.missingWarn)?u.missingWarn:e.missingWarn,f=se(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=se(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,y=F(u.default)||se(u.default)?se(u.default)?i?l:()=>l:u.default:n?i?l:()=>l:null,w=n||y!=null&&(F(y)||be(y)),E=to(e,u);d&&zg(u);let[_,v,T]=h?[l,E,a[E]||he()]:Yc(e,l,E,o,f,c),g=_,A=l;if(!h&&!(F(g)||Tt(g)||tt(g))&&w&&(g=y,A=g),!h&&(!(F(g)||Tt(g)||tt(g))||!F(v)))return s?Ps:l;let D=!1;const P=()=>{D=!0},M=tt(g)?g:Jc(e,l,v,g,A,P);if(D)return g;const U=Gg(e,v,T,u),J=Hg(U),te=Vg(e,M,J);let Z=r?r(te,l):te;if(d&&F(Z)&&(Z=Sm(Z)),__INTLIFY_PROD_DEVTOOLS__){const Le={timestamp:Date.now(),key:F(l)?l:tt(g)?g.key:"",locale:v||(tt(g)?g.locale:""),format:F(g)?g:tt(g)?g.source:"",message:Z};Le.meta=Pe({},e.__meta,Pg()||{}),fg(Le)}return Z}function zg(e){ke(e.list)?e.list=e.list.map(t=>F(t)?dc(t):t):ae(e.named)&&Object.keys(e.named).forEach(t=>{F(e.named[t])&&(e.named[t]=dc(e.named[t]))})}function Yc(e,t,n,r,s,i){const{messages:o,onWarn:a,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let f=he(),d,h=null;const y="translate";for(let w=0;w<c.length&&(d=c[w],f=o[d]||he(),(h=l(f,t))===null&&(h=f[t]),!(F(h)||Tt(h)||tt(h)));w++)if(!Ng(d,c)){const E=so(e,t,d,i,y);E!==t&&(h=E)}return[h,d,f]}function Jc(e,t,n,r,s,i){const{messageCompiler:o,warnHtmlMessage:a}=e;if(tt(r)){const u=r;return u.locale=u.locale||n,u.key=u.key||t,u}if(o==null){const u=(()=>r);return u.locale=n,u.key=t,u}const l=o(r,Bg(e,n,s,r,a,i));return l.locale=n,l.key=t,l.source=r,l}function Vg(e,t,n){return t(n)}function ao(...e){const[t,n,r]=e,s=he();if(!F(t)&&!Ce(t)&&!tt(t)&&!Tt(t))throw Kt(Ut.INVALID_ARGUMENT);const i=Ce(t)?String(t):(tt(t),t);return Ce(n)?s.plural=n:F(n)?s.default=n:Q(n)&&!Ts(n)?s.named=n:ke(n)&&(s.list=n),Ce(r)?s.plural=r:F(r)?s.default=r:Q(r)&&Pe(s,r),[i,s]}function Bg(e,t,n,r,s,i){return{locale:t,key:n,warnHtmlMessage:s,onError:o=>{throw i&&i(o),o},onCacheKey:o=>wm(t,n,o)}}function Gg(e,t,n,r){const{modifiers:s,pluralRules:i,messageResolver:o,fallbackLocale:a,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,d={locale:t,modifiers:s,pluralRules:i,messages:(h,y)=>{let w=o(n,h);if(w==null&&(c||y)){const[,,E]=Yc(c||e,h,t,a,l,u);w=o(E,h)}if(F(w)||Tt(w)){let E=!1;const v=Jc(e,h,t,w,h,()=>{E=!0});return E?Zc:v}else return tt(w)?w:Zc}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Ce(r.plural)&&(d.pluralIndex=r.plural),d}qm();const Zg="11.2.8";function Xg(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(wn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(wn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(wn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(wn().__INTLIFY_PROD_DEVTOOLS__=!1)}const ze={UNEXPECTED_RETURN_TYPE:hg,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function Ye(e,...t){return Cs(e,null,void 0)}const lo=en("__translateVNode"),co=en("__datetimeParts"),uo=en("__numberParts"),qc=en("__setPluralRules"),Qc=en("__injectWithOption"),fo=en("__dispose");function Or(e){if(!ae(e)||Tt(e))return e;for(const t in e)if(lt(e,t))if(!t.includes("."))ae(e[t])&&Or(e[t]);else{const n=t.split("."),r=n.length-1;let s=e,i=!1;for(let o=0;o<r;o++){if(n[o]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in s||(s[n[o]]=he()),!ae(s[n[o]])){i=!0;break}s=s[n[o]]}if(i||(Tt(s)?Ec.includes(n[r])||delete e[t]:(s[n[r]]=e[t],delete e[t])),!Tt(s)){const o=s[n[r]];ae(o)&&Or(o)}}return e}function ho(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:i}=t,o=Q(n)?n:ke(r)?he():{[e]:he()};if(ke(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:u}=a;l?(o[l]=o[l]||he(),Is(u,o[l])):Is(u,o)}else F(a)&&Is(JSON.parse(a),o)}),s==null&&i)for(const a in o)lt(o,a)&&Or(o[a]);return o}function eu(e){return e.type}function tu(e,t,n){let r=ae(t.messages)?t.messages:he();"__i18nGlobal"in n&&(r=ho(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(ae(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(ae(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function nu(e){return Se(fr,null,e,0)}function Ar(){return Oi()}const ru="__INTLIFY_META__",su=()=>[],Yg=()=>!1;let iu=0;function ou(e){return((t,n,r,s)=>e(n,r,Ar()||void 0,s))}const Jg=()=>{const e=Ar();let t=null;return e&&(t=eu(e)[ru])?{[ru]:t}:null};function po(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,s=e.flatJson,i=Ss?q:Ed;let o=se(e.inheritLocale)?e.inheritLocale:!0;const a=i(t&&o?t.locale.value:F(e.locale)?e.locale:Ir),l=i(t&&o?t.fallbackLocale.value:F(e.fallbackLocale)||ke(e.fallbackLocale)||Q(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),u=i(ho(a.value,e)),c=i(Q(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),f=i(Q(e.numberFormats)?e.numberFormats:{[a.value]:{}});let d=t?t.missingWarn:se(e.missingWarn)||zn(e.missingWarn)?e.missingWarn:!0,h=t?t.fallbackWarn:se(e.fallbackWarn)||zn(e.fallbackWarn)?e.fallbackWarn:!0,y=t?t.fallbackRoot:se(e.fallbackRoot)?e.fallbackRoot:!0,w=!!e.fallbackFormat,E=be(e.missing)?e.missing:null,_=be(e.missing)?ou(e.missing):null,v=be(e.postTranslation)?e.postTranslation:null,T=t?t.warnHtmlMessage:se(e.warnHtmlMessage)?e.warnHtmlMessage:!0,g=!!e.escapeParameter;const A=t?t.modifiers:Q(e.modifiers)?e.modifiers:{};let D=e.pluralRules||t&&t.pluralRules,P;P=(()=>{r&&Fc(null);const S={version:Zg,locale:a.value,fallbackLocale:l.value,messages:u.value,modifiers:A,pluralRules:D,missing:_===null?void 0:_,missingWarn:d,fallbackWarn:h,fallbackFormat:w,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:T,escapeParameter:g,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};S.datetimeFormats=c.value,S.numberFormats=f.value,S.__datetimeFormatters=Q(P)?P.__datetimeFormatters:void 0,S.__numberFormatters=Q(P)?P.__numberFormatters:void 0;const C=Rg(S);return r&&Fc(C),C})(),Cr(P,a.value,l.value);function U(){return[a.value,l.value,u.value,c.value,f.value]}const J=et({get:()=>a.value,set:S=>{P.locale=S,a.value=S}}),te=et({get:()=>l.value,set:S=>{P.fallbackLocale=S,l.value=S,Cr(P,a.value,S)}}),Z=et(()=>u.value),Le=et(()=>c.value),Je=et(()=>f.value);function ve(){return be(v)?v:null}function X(S){v=S,P.postTranslation=S}function V(){return E}function ne(S){S!==null&&(_=ou(S)),E=S,P.missing=_}const ue=(S,C,K,z,ee,Re)=>{U();let Te;try{__INTLIFY_PROD_DEVTOOLS__,r||(P.fallbackContext=t?Lg():void 0),Te=S(P)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(P.fallbackContext=void 0)}if(K!=="translate exists"&&Ce(Te)&&Te===Ps||K==="translate exists"&&!Te){const[st,ht]=C();return t&&y?z(t):ee(st)}else{if(Re(Te))return Te;throw Ye(ze.UNEXPECTED_RETURN_TYPE)}};function nt(...S){return ue(C=>Reflect.apply(Xc,null,[C,...S]),()=>ao(...S),"translate",C=>Reflect.apply(C.t,C,[...S]),C=>C,C=>F(C))}function $e(...S){const[C,K,z]=S;if(z&&!ae(z))throw Ye(ze.INVALID_ARGUMENT);return nt(C,K,Pe({resolvedMessage:!0},z||{}))}function Ue(...S){return ue(C=>Reflect.apply(Kc,null,[C,...S]),()=>io(...S),"datetime format",C=>Reflect.apply(C.d,C,[...S]),()=>Lc,C=>F(C)||ke(C))}function sn(...S){return ue(C=>Reflect.apply(zc,null,[C,...S]),()=>oo(...S),"number format",C=>Reflect.apply(C.n,C,[...S]),()=>Lc,C=>F(C)||ke(C))}function on(S){return S.map(C=>F(C)||Ce(C)||se(C)?nu(String(C)):C)}const rt={normalize:on,interpolate:S=>S,type:"vnode"};function ft(...S){return ue(C=>{let K;const z=C;try{z.processor=rt,K=Reflect.apply(Xc,null,[z,...S])}finally{z.processor=null}return K},()=>ao(...S),"translate",C=>C[lo](...S),C=>[nu(C)],C=>ke(C))}function dt(...S){return ue(C=>Reflect.apply(zc,null,[C,...S]),()=>oo(...S),"number format",C=>C[uo](...S),su,C=>F(C)||ke(C))}function Jn(...S){return ue(C=>Reflect.apply(Kc,null,[C,...S]),()=>io(...S),"datetime format",C=>C[co](...S),su,C=>F(C)||ke(C))}function Ot(S){D=S,P.pluralRules=D}function Ys(S,C){return ue(()=>{if(!S)return!1;const K=F(C)?C:a.value,z=O(K),ee=P.messageResolver(z,S);return Tt(ee)||tt(ee)||F(ee)},()=>[S],"translate exists",K=>Reflect.apply(K.te,K,[S,C]),Yg,K=>se(K))}function b(S){let C=null;const K=Oc(P,l.value,a.value);for(let z=0;z<K.length;z++){const ee=u.value[K[z]]||{},Re=P.messageResolver(ee,S);if(Re!=null){C=Re;break}}return C}function k(S){const C=b(S);return C??(t?t.tm(S)||{}:{})}function O(S){return u.value[S]||{}}function $(S,C){if(s){const K={[S]:C};for(const z in K)lt(K,z)&&Or(K[z]);C=K[S]}u.value[S]=C,P.messages=u.value}function R(S,C){u.value[S]=u.value[S]||{};const K={[S]:C};if(s)for(const z in K)lt(K,z)&&Or(K[z]);C=K[S],Is(C,u.value[S]),P.messages=u.value}function N(S){return c.value[S]||{}}function p(S,C){c.value[S]=C,P.datetimeFormats=c.value,Hc(P,S,C)}function m(S,C){c.value[S]=Pe(c.value[S]||{},C),P.datetimeFormats=c.value,Hc(P,S,C)}function x(S){return f.value[S]||{}}function I(S,C){f.value[S]=C,P.numberFormats=f.value,Bc(P,S,C)}function j(S,C){f.value[S]=Pe(f.value[S]||{},C),P.numberFormats=f.value,Bc(P,S,C)}iu++,t&&Ss&&(Ge(t.locale,S=>{o&&(a.value=S,P.locale=S,Cr(P,a.value,l.value))}),Ge(t.fallbackLocale,S=>{o&&(l.value=S,P.fallbackLocale=S,Cr(P,a.value,l.value))}));const L={id:iu,locale:J,fallbackLocale:te,get inheritLocale(){return o},set inheritLocale(S){o=S,S&&t&&(a.value=t.locale.value,l.value=t.fallbackLocale.value,Cr(P,a.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:Z,get modifiers(){return A},get pluralRules(){return D||{}},get isGlobal(){return r},get missingWarn(){return d},set missingWarn(S){d=S,P.missingWarn=d},get fallbackWarn(){return h},set fallbackWarn(S){h=S,P.fallbackWarn=h},get fallbackRoot(){return y},set fallbackRoot(S){y=S},get fallbackFormat(){return w},set fallbackFormat(S){w=S,P.fallbackFormat=w},get warnHtmlMessage(){return T},set warnHtmlMessage(S){T=S,P.warnHtmlMessage=S},get escapeParameter(){return g},set escapeParameter(S){g=S,P.escapeParameter=S},t:nt,getLocaleMessage:O,setLocaleMessage:$,mergeLocaleMessage:R,getPostTranslationHandler:ve,setPostTranslationHandler:X,getMissingHandler:V,setMissingHandler:ne,[qc]:Ot};return L.datetimeFormats=Le,L.numberFormats=Je,L.rt=$e,L.te=Ys,L.tm=k,L.d=Ue,L.n=sn,L.getDateTimeFormat=N,L.setDateTimeFormat=p,L.mergeDateTimeFormat=m,L.getNumberFormat=x,L.setNumberFormat=I,L.mergeNumberFormat=j,L[Qc]=n,L[lo]=ft,L[co]=Jn,L[uo]=dt,L}function qg(e){const t=F(e.locale)?e.locale:Ir,n=F(e.fallbackLocale)||ke(e.fallbackLocale)||Q(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=be(e.missing)?e.missing:void 0,s=se(e.silentTranslationWarn)||zn(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=se(e.silentFallbackWarn)||zn(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=se(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=Q(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=be(e.postTranslation)?e.postTranslation:void 0,f=F(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,h=se(e.sync)?e.sync:!0;let y=e.messages;if(Q(e.sharedMessages)){const A=e.sharedMessages;y=Object.keys(A).reduce((P,M)=>{const U=P[M]||(P[M]={});return Pe(U,A[M]),P},y||{})}const{__i18n:w,__root:E,__injectWithOption:_}=e,v=e.datetimeFormats,T=e.numberFormats,g=e.flatJson;return{locale:t,fallbackLocale:n,messages:y,flatJson:g,datetimeFormats:v,numberFormats:T,missing:r,missingWarn:s,fallbackWarn:i,fallbackRoot:o,fallbackFormat:a,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:h,__i18n:w,__root:E,__injectWithOption:_}}function mo(e={}){const t=po(qg(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(s){t.locale.value=s},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(s){t.fallbackLocale.value=s},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(s){t.setMissingHandler(s)},get silentTranslationWarn(){return se(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(s){t.missingWarn=se(s)?!s:s},get silentFallbackWarn(){return se(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(s){t.fallbackWarn=se(s)?!s:s},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(s){t.fallbackFormat=s},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(s){t.setPostTranslationHandler(s)},get sync(){return t.inheritLocale},set sync(s){t.inheritLocale=s},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){t.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(s){t.escapeParameter=s},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...s){return Reflect.apply(t.t,t,[...s])},rt(...s){return Reflect.apply(t.rt,t,[...s])},te(s,i){return t.te(s,i)},tm(s){return t.tm(s)},getLocaleMessage(s){return t.getLocaleMessage(s)},setLocaleMessage(s,i){t.setLocaleMessage(s,i)},mergeLocaleMessage(s,i){t.mergeLocaleMessage(s,i)},d(...s){return Reflect.apply(t.d,t,[...s])},getDateTimeFormat(s){return t.getDateTimeFormat(s)},setDateTimeFormat(s,i){t.setDateTimeFormat(s,i)},mergeDateTimeFormat(s,i){t.mergeDateTimeFormat(s,i)},n(...s){return Reflect.apply(t.n,t,[...s])},getNumberFormat(s){return t.getNumberFormat(s)},setNumberFormat(s,i){t.setNumberFormat(s,i)},mergeNumberFormat(s,i){t.mergeNumberFormat(s,i)}};return r.__extender=n,r}function Qg(e,t,n){return{beforeCreate(){const r=Ar();if(!r)throw Ye(ze.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const i=s.i18n;if(s.__i18n&&(i.__i18n=s.__i18n),i.__root=t,this===this.$root)this.$i18n=au(e,i);else{i.__injectWithOption=!0,i.__extender=n.__vueI18nExtend,this.$i18n=mo(i);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=au(e,s);else{this.$i18n=mo({__i18n:s.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=e;s.__i18nGlobal&&tu(t,s,s),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$te=(i,o)=>this.$i18n.te(i,o),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=Ar();if(!r)throw Ye(ze.UNEXPECTED_ERROR);const s=this.$i18n;delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),n.__deleteInstance(r),delete this.$i18n}}}function au(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[qc](t.pluralizationRules||e.pluralizationRules);const n=ho(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const go={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function e_({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===Ie?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},he())}function lu(){return Ie}const cu=yt({name:"i18n-t",props:Pe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ce(e)||!isNaN(e)}},go),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||Et({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(f=>f[0]!=="_"),o=he();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=F(e.plural)?+e.plural:e.plural);const a=e_(t,i),l=s[lo](e.keypath,a,o),u=Pe(he(),r),c=F(e.tag)||ae(e.tag)?e.tag:lu();return _r(c,u,l)}}});function t_(e){return ke(e)&&!F(e[0])}function uu(e,t,n,r){const{slots:s,attrs:i}=t;return()=>{const o={part:!0};let a=he();e.locale&&(o.locale=e.locale),F(e.format)?o.key=e.format:ae(e.format)&&(F(e.format.key)&&(o.key=e.format.key),a=Object.keys(e.format).reduce((d,h)=>n.includes(h)?Pe(he(),d,{[h]:e.format[h]}):d,he()));const l=r(e.value,o,a);let u=[o.key];ke(l)?u=l.map((d,h)=>{const y=s[d.type],w=y?y({[d.type]:d.value,index:h,parts:l}):[d.value];return t_(w)&&(w[0].key=`${d.type}-${h}`),w}):F(l)&&(u=[l]);const c=Pe(he(),i),f=F(e.tag)||ae(e.tag)?e.tag:lu();return _r(f,c,u)}}const fu=yt({name:"i18n-n",props:Pe({value:{type:Number,required:!0},format:{type:[String,Object]}},go),setup(e,t){const n=e.i18n||Et({useScope:e.scope,__useComponent:!0});return uu(e,t,Vc,(...r)=>n[uo](...r))}});function n_(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function r_(e){const t=o=>{const{instance:a,value:l}=o;if(!a||!a.$)throw Ye(ze.UNEXPECTED_ERROR);const u=n_(e,a.$),c=du(l);return[Reflect.apply(u.t,u,[...hu(c)]),u]};return{created:(o,a)=>{const[l,u]=t(a);Ss&&e.global===u&&(o.__i18nWatcher=Ge(u.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{Ss&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:a})=>{if(o.__composer){const l=o.__composer,u=du(a);o.textContent=Reflect.apply(l.t,l,[...hu(u)])}},getSSRProps:o=>{const[a]=t(o);return{textContent:a}}}}function du(e){if(F(e))return{path:e};if(Q(e)){if(!("path"in e))throw Ye(ze.REQUIRED_VALUE,"path");return e}else throw Ye(ze.INVALID_VALUE)}function hu(e){const{path:t,locale:n,args:r,choice:s,plural:i}=e,o={},a=r||{};return F(n)&&(o.locale=n),Ce(s)&&(o.plural=s),Ce(i)&&(o.plural=i),[t,a,o]}function s_(e,t,...n){const r=Q(n[0])?n[0]:{};(!se(r.globalInstall)||r.globalInstall)&&([cu.name,"I18nT"].forEach(i=>e.component(i,cu)),[fu.name,"I18nN"].forEach(i=>e.component(i,fu)),[mu.name,"I18nD"].forEach(i=>e.component(i,mu))),e.directive("t",r_(t))}const i_=en("global-vue-i18n");function o_(e={}){const t=__VUE_I18N_LEGACY_API__&&se(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=se(e.globalInjection)?e.globalInjection:!0,r=new Map,[s,i]=a_(e,t),o=en("");function a(f){return r.get(f)||null}function l(f,d){r.set(f,d)}function u(f){r.delete(f)}const c={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...d){if(f.__VUE_I18N_SYMBOL__=o,f.provide(f.__VUE_I18N_SYMBOL__,c),Q(d[0])){const w=d[0];c.__composerExtend=w.__composerExtend,c.__vueI18nExtend=w.__vueI18nExtend}let h=null;!t&&n&&(h=m_(f,c.global)),__VUE_I18N_FULL_INSTALL__&&s_(f,c,...d),__VUE_I18N_LEGACY_API__&&t&&f.mixin(Qg(i,i.__composer,c));const y=f.unmount;f.unmount=()=>{h&&h(),c.dispose(),y()}},get global(){return i},dispose(){s.stop()},__instances:r,__getInstance:a,__setInstance:l,__deleteInstance:u};return c}function Et(e={}){const t=Ar();if(t==null)throw Ye(ze.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ye(ze.NOT_INSTALLED);const n=l_(t),r=u_(n),s=eu(t),i=c_(e,s);if(i==="global")return tu(r,e,s),r;if(i==="parent"){let l=f_(n,t,e.__useComponent);return l==null&&(l=r),l}const o=n;let a=o.__getInstance(t);if(a==null){const l=Pe({},e);"__i18n"in s&&(l.__i18n=s.__i18n),r&&(l.__root=r),a=po(l),o.__composerExtend&&(a[fo]=o.__composerExtend(a)),h_(o,t,a),o.__setInstance(t,a)}return a}function a_(e,t){const n=ni(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>mo(e)):n.run(()=>po(e));if(r==null)throw Ye(ze.UNEXPECTED_ERROR);return[n,r]}function l_(e){const t=Ee(e.isCE?i_:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ye(e.isCE?ze.NOT_INSTALLED_WITH_PROVIDE:ze.UNEXPECTED_ERROR);return t}function c_(e,t){return Ts(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function u_(e){return e.mode==="composition"?e.global:e.global.__composer}function f_(e,t,n=!1){let r=null;const s=t.root;let i=d_(t,n);for(;i!=null;){const o=e;if(e.mode==="composition")r=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const a=o.__getInstance(i);a!=null&&(r=a.__composer,n&&r&&!r[Qc]&&(r=null))}if(r!=null||s===i)break;i=i.parent}return r}function d_(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function h_(e,t,n){jn(()=>{},t),bi(()=>{const r=n;e.__deleteInstance(t);const s=r[fo];s&&(s(),delete r[fo])},t)}const p_=["locale","fallbackLocale","availableLocales"],pu=["t","rt","d","n","tm","te"];function m_(e,t){const n=Object.create(null);return p_.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i)throw Ye(ze.UNEXPECTED_ERROR);const o=we(i.value)?{get(){return i.value.value},set(a){i.value.value=a}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,s,o)}),e.config.globalProperties.$i18n=n,pu.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i||!i.value)throw Ye(ze.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,i)}),()=>{delete e.config.globalProperties.$i18n,pu.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}const mu=yt({name:"i18n-d",props:Pe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},go),setup(e,t){const n=e.i18n||Et({useScope:e.scope,__useComponent:!0});return uu(e,t,Wc,(...r)=>n[co](...r))}});if(Xg(),Ig(lg),Cg(Sg),Og(Oc),__INTLIFY_PROD_DEVTOOLS__){const e=wn();e.__INTLIFY__=!0,cg(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function gu(e,t){for(var n=-1,r=e==null?0:e.length,s=Array(r);++n<r;)s[n]=t(e[n],n,e);return s}function g_(){this.__data__=[],this.size=0}function _u(e,t){return e===t||e!==e&&t!==t}function Ls(e,t){for(var n=e.length;n--;)if(_u(e[n][0],t))return n;return-1}var __=Array.prototype,b_=__.splice;function y_(e){var t=this.__data__,n=Ls(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():b_.call(t,n,1),--this.size,!0}function w_(e){var t=this.__data__,n=Ls(t,e);return n<0?void 0:t[n][1]}function v_(e){return Ls(this.__data__,e)>-1}function k_(e,t){var n=this.__data__,r=Ls(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Wt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Wt.prototype.clear=g_,Wt.prototype.delete=y_,Wt.prototype.get=w_,Wt.prototype.has=v_,Wt.prototype.set=k_;function x_(){this.__data__=new Wt,this.size=0}function S_(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function T_(e){return this.__data__.get(e)}function E_(e){return this.__data__.has(e)}var bu=typeof global=="object"&&global&&global.Object===Object&&global,I_=typeof self=="object"&&self&&self.Object===Object&&self,It=bu||I_||Function("return this")(),Ct=It.Symbol,yu=Object.prototype,C_=yu.hasOwnProperty,O_=yu.toString,Pr=Ct?Ct.toStringTag:void 0;function A_(e){var t=C_.call(e,Pr),n=e[Pr];try{e[Pr]=void 0;var r=!0}catch{}var s=O_.call(e);return r&&(t?e[Pr]=n:delete e[Pr]),s}var P_=Object.prototype,L_=P_.toString;function R_(e){return L_.call(e)}var $_="[object Null]",N_="[object Undefined]",wu=Ct?Ct.toStringTag:void 0;function vn(e){return e==null?e===void 0?N_:$_:wu&&wu in Object(e)?A_(e):R_(e)}function Rs(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var D_="[object AsyncFunction]",j_="[object Function]",M_="[object GeneratorFunction]",F_="[object Proxy]";function vu(e){if(!Rs(e))return!1;var t=vn(e);return t==j_||t==M_||t==D_||t==F_}var _o=It["__core-js_shared__"],ku=(function(){var e=/[^.]+$/.exec(_o&&_o.keys&&_o.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function U_(e){return!!ku&&ku in e}var K_=Function.prototype,W_=K_.toString;function kn(e){if(e!=null){try{return W_.call(e)}catch{}try{return e+""}catch{}}return""}var H_=/[\\^$.*+?()[\]{}|]/g,z_=/^\[object .+?Constructor\]$/,V_=Function.prototype,B_=Object.prototype,G_=V_.toString,Z_=B_.hasOwnProperty,X_=RegExp("^"+G_.call(Z_).replace(H_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Y_(e){if(!Rs(e)||U_(e))return!1;var t=vu(e)?X_:z_;return t.test(kn(e))}function J_(e,t){return e?.[t]}function xn(e,t){var n=J_(e,t);return Y_(n)?n:void 0}var Lr=xn(It,"Map"),Rr=xn(Object,"create");function q_(){this.__data__=Rr?Rr(null):{},this.size=0}function Q_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var eb="__lodash_hash_undefined__",tb=Object.prototype,nb=tb.hasOwnProperty;function rb(e){var t=this.__data__;if(Rr){var n=t[e];return n===eb?void 0:n}return nb.call(t,e)?t[e]:void 0}var sb=Object.prototype,ib=sb.hasOwnProperty;function ob(e){var t=this.__data__;return Rr?t[e]!==void 0:ib.call(t,e)}var ab="__lodash_hash_undefined__";function lb(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Rr&&t===void 0?ab:t,this}function Sn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Sn.prototype.clear=q_,Sn.prototype.delete=Q_,Sn.prototype.get=rb,Sn.prototype.has=ob,Sn.prototype.set=lb;function cb(){this.size=0,this.__data__={hash:new Sn,map:new(Lr||Wt),string:new Sn}}function ub(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function $s(e,t){var n=e.__data__;return ub(t)?n[typeof t=="string"?"string":"hash"]:n.map}function fb(e){var t=$s(this,e).delete(e);return this.size-=t?1:0,t}function db(e){return $s(this,e).get(e)}function hb(e){return $s(this,e).has(e)}function pb(e,t){var n=$s(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function rn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}rn.prototype.clear=cb,rn.prototype.delete=fb,rn.prototype.get=db,rn.prototype.has=hb,rn.prototype.set=pb;var mb=200;function gb(e,t){var n=this.__data__;if(n instanceof Wt){var r=n.__data__;if(!Lr||r.length<mb-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new rn(r)}return n.set(e,t),this.size=n.size,this}function Gn(e){var t=this.__data__=new Wt(e);this.size=t.size}Gn.prototype.clear=x_,Gn.prototype.delete=S_,Gn.prototype.get=T_,Gn.prototype.has=E_,Gn.prototype.set=gb;function _b(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Ns=(function(){try{var e=xn(Object,"defineProperty");return e({},"",{}),e}catch{}})();function xu(e,t,n){t=="__proto__"&&Ns?Ns(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var bb=Object.prototype,yb=bb.hasOwnProperty;function Su(e,t,n){var r=e[t];(!(yb.call(e,t)&&_u(r,n))||n===void 0&&!(t in e))&&xu(e,t,n)}function wb(e,t,n,r){var s=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var a=t[i],l=void 0;l===void 0&&(l=e[a]),s?xu(n,a,l):Su(n,a,l)}return n}function vb(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Tn(e){return e!=null&&typeof e=="object"}var kb="[object Arguments]";function Tu(e){return Tn(e)&&vn(e)==kb}var Eu=Object.prototype,xb=Eu.hasOwnProperty,Sb=Eu.propertyIsEnumerable,Iu=Tu((function(){return arguments})())?Tu:function(e){return Tn(e)&&xb.call(e,"callee")&&!Sb.call(e,"callee")},En=Array.isArray;function Tb(){return!1}var Cu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ou=Cu&&typeof module=="object"&&module&&!module.nodeType&&module,Eb=Ou&&Ou.exports===Cu,Au=Eb?It.Buffer:void 0,Ib=Au?Au.isBuffer:void 0,Pu=Ib||Tb,Cb=9007199254740991,Ob=/^(?:0|[1-9]\d*)$/;function Ab(e,t){var n=typeof e;return t=t??Cb,!!t&&(n=="number"||n!="symbol"&&Ob.test(e))&&e>-1&&e%1==0&&e<t}var Pb=9007199254740991;function Lu(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Pb}var Lb="[object Arguments]",Rb="[object Array]",$b="[object Boolean]",Nb="[object Date]",Db="[object Error]",jb="[object Function]",Mb="[object Map]",Fb="[object Number]",Ub="[object Object]",Kb="[object RegExp]",Wb="[object Set]",Hb="[object String]",zb="[object WeakMap]",Vb="[object ArrayBuffer]",Bb="[object DataView]",Gb="[object Float32Array]",Zb="[object Float64Array]",Xb="[object Int8Array]",Yb="[object Int16Array]",Jb="[object Int32Array]",qb="[object Uint8Array]",Qb="[object Uint8ClampedArray]",ey="[object Uint16Array]",ty="[object Uint32Array]",ye={};ye[Gb]=ye[Zb]=ye[Xb]=ye[Yb]=ye[Jb]=ye[qb]=ye[Qb]=ye[ey]=ye[ty]=!0,ye[Lb]=ye[Rb]=ye[Vb]=ye[$b]=ye[Bb]=ye[Nb]=ye[Db]=ye[jb]=ye[Mb]=ye[Fb]=ye[Ub]=ye[Kb]=ye[Wb]=ye[Hb]=ye[zb]=!1;function ny(e){return Tn(e)&&Lu(e.length)&&!!ye[vn(e)]}function bo(e){return function(t){return e(t)}}var Ru=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$r=Ru&&typeof module=="object"&&module&&!module.nodeType&&module,ry=$r&&$r.exports===Ru,yo=ry&&bu.process,Zn=(function(){try{var e=$r&&$r.require&&$r.require("util").types;return e||yo&&yo.binding&&yo.binding("util")}catch{}})(),$u=Zn&&Zn.isTypedArray,sy=$u?bo($u):ny;function iy(e,t){var n=En(e),r=!n&&Iu(e),s=!n&&!r&&Pu(e),i=!n&&!r&&!s&&sy(e),o=n||r||s||i,a=o?vb(e.length,String):[],l=a.length;for(var u in e)o&&(u=="length"||s&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Ab(u,l))||a.push(u);return a}var oy=Object.prototype;function ay(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||oy;return e===n}function ly(e,t){return function(n){return e(t(n))}}function cy(e){return e!=null&&Lu(e.length)&&!vu(e)}function uy(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var fy=Object.prototype,dy=fy.hasOwnProperty;function hy(e){if(!Rs(e))return uy(e);var t=ay(e),n=[];for(var r in e)r=="constructor"&&(t||!dy.call(e,r))||n.push(r);return n}function py(e){return cy(e)?iy(e):hy(e)}var Nu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Du=Nu&&typeof module=="object"&&module&&!module.nodeType&&module,my=Du&&Du.exports===Nu,ju=my?It.Buffer:void 0;ju&&ju.allocUnsafe;function gy(e,t){return e.slice()}function _y(e,t){for(var n=-1,r=e==null?0:e.length,s=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[s++]=o)}return i}function Mu(){return[]}var by=Object.prototype,yy=by.propertyIsEnumerable,Fu=Object.getOwnPropertySymbols,wy=Fu?function(e){return e==null?[]:(e=Object(e),_y(Fu(e),function(t){return yy.call(e,t)}))}:Mu;function wo(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}var Uu=ly(Object.getPrototypeOf,Object),vy=Object.getOwnPropertySymbols,ky=vy?function(e){for(var t=[];e;)wo(t,wy(e)),e=Uu(e);return t}:Mu;function xy(e,t,n){var r=t(e);return En(e)?r:wo(r,n(e))}function Ku(e){return xy(e,py,ky)}var vo=xn(It,"DataView"),ko=xn(It,"Promise"),xo=xn(It,"Set"),So=xn(It,"WeakMap"),Wu="[object Map]",Sy="[object Object]",Hu="[object Promise]",zu="[object Set]",Vu="[object WeakMap]",Bu="[object DataView]",Ty=kn(vo),Ey=kn(Lr),Iy=kn(ko),Cy=kn(xo),Oy=kn(So),Ht=vn;(vo&&Ht(new vo(new ArrayBuffer(1)))!=Bu||Lr&&Ht(new Lr)!=Wu||ko&&Ht(ko.resolve())!=Hu||xo&&Ht(new xo)!=zu||So&&Ht(new So)!=Vu)&&(Ht=function(e){var t=vn(e),n=t==Sy?e.constructor:void 0,r=n?kn(n):"";if(r)switch(r){case Ty:return Bu;case Ey:return Wu;case Iy:return Hu;case Cy:return zu;case Oy:return Vu}return t});var Ay=Object.prototype,Py=Ay.hasOwnProperty;function Ly(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Py.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Gu=It.Uint8Array;function To(e){var t=new e.constructor(e.byteLength);return new Gu(t).set(new Gu(e)),t}function Ry(e,t){var n=To(e.buffer);return new e.constructor(n,e.byteOffset,e.byteLength)}var $y=/\w*$/;function Ny(e){var t=new e.constructor(e.source,$y.exec(e));return t.lastIndex=e.lastIndex,t}var Zu=Ct?Ct.prototype:void 0,Xu=Zu?Zu.valueOf:void 0;function Dy(e){return Xu?Object(Xu.call(e)):{}}function jy(e,t){var n=To(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}var My="[object Boolean]",Fy="[object Date]",Uy="[object Map]",Ky="[object Number]",Wy="[object RegExp]",Hy="[object Set]",zy="[object String]",Vy="[object Symbol]",By="[object ArrayBuffer]",Gy="[object DataView]",Zy="[object Float32Array]",Xy="[object Float64Array]",Yy="[object Int8Array]",Jy="[object Int16Array]",qy="[object Int32Array]",Qy="[object Uint8Array]",ew="[object Uint8ClampedArray]",tw="[object Uint16Array]",nw="[object Uint32Array]";function rw(e,t,n){var r=e.constructor;switch(t){case By:return To(e);case My:case Fy:return new r(+e);case Gy:return Ry(e);case Zy:case Xy:case Yy:case Jy:case qy:case Qy:case ew:case tw:case nw:return jy(e);case Uy:return new r;case Ky:case zy:return new r(e);case Wy:return Ny(e);case Hy:return new r;case Vy:return Dy(e)}}var sw="[object Map]";function iw(e){return Tn(e)&&Ht(e)==sw}var Yu=Zn&&Zn.isMap,ow=Yu?bo(Yu):iw,aw="[object Set]";function lw(e){return Tn(e)&&Ht(e)==aw}var Ju=Zn&&Zn.isSet,cw=Ju?bo(Ju):lw,qu="[object Arguments]",uw="[object Array]",fw="[object Boolean]",dw="[object Date]",hw="[object Error]",Qu="[object Function]",pw="[object GeneratorFunction]",mw="[object Map]",gw="[object Number]",ef="[object Object]",_w="[object RegExp]",bw="[object Set]",yw="[object String]",ww="[object Symbol]",vw="[object WeakMap]",kw="[object ArrayBuffer]",xw="[object DataView]",Sw="[object Float32Array]",Tw="[object Float64Array]",Ew="[object Int8Array]",Iw="[object Int16Array]",Cw="[object Int32Array]",Ow="[object Uint8Array]",Aw="[object Uint8ClampedArray]",Pw="[object Uint16Array]",Lw="[object Uint32Array]",me={};me[qu]=me[uw]=me[kw]=me[xw]=me[fw]=me[dw]=me[Sw]=me[Tw]=me[Ew]=me[Iw]=me[Cw]=me[mw]=me[gw]=me[ef]=me[_w]=me[bw]=me[yw]=me[ww]=me[Ow]=me[Aw]=me[Pw]=me[Lw]=!0,me[hw]=me[Qu]=me[vw]=!1;function Ds(e,t,n,r,s,i){var o;if(n&&(o=s?n(e,r,s,i):n(e)),o!==void 0)return o;if(!Rs(e))return e;var a=En(e);if(a)o=Ly(e);else{var l=Ht(e),u=l==Qu||l==pw;if(Pu(e))return gy(e);if(l==ef||l==qu||u&&!s)o={};else{if(!me[l])return s?e:{};o=rw(e,l)}}i||(i=new Gn);var c=i.get(e);if(c)return c;i.set(e,o),cw(e)?e.forEach(function(h){o.add(Ds(h,t,n,h,e,i))}):ow(e)&&e.forEach(function(h,y){o.set(y,Ds(h,t,n,y,e,i))});var f=Ku,d=a?void 0:f(e);return _b(d||e,function(h,y){d&&(y=h,h=e[y]),Su(o,y,Ds(h,t,n,y,e,i))}),o}var Rw="[object Symbol]";function Eo(e){return typeof e=="symbol"||Tn(e)&&vn(e)==Rw}var $w=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nw=/^\w*$/;function Dw(e,t){if(En(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Eo(e)?!0:Nw.test(e)||!$w.test(e)||t!=null&&e in Object(t)}var jw="Expected a function";function Io(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(jw);var n=function(){var r=arguments,s=t?t.apply(this,r):r[0],i=n.cache;if(i.has(s))return i.get(s);var o=e.apply(this,r);return n.cache=i.set(s,o)||i,o};return n.cache=new(Io.Cache||rn),n}Io.Cache=rn;var Mw=500;function Fw(e){var t=Io(e,function(r){return n.size===Mw&&n.clear(),r}),n=t.cache;return t}var Uw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Kw=/\\(\\)?/g,Ww=Fw(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Uw,function(n,r,s,i){t.push(s?i.replace(Kw,"$1"):r||n)}),t}),tf=Ct?Ct.prototype:void 0,nf=tf?tf.toString:void 0;function rf(e){if(typeof e=="string")return e;if(En(e))return gu(e,rf)+"";if(Eo(e))return nf?nf.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Hw(e){return e==null?"":rf(e)}function Co(e,t){return En(e)?e:Dw(e,t)?[e]:Ww(Hw(e))}function zw(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function sf(e){if(typeof e=="string"||Eo(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Vw(e,t){t=Co(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[sf(t[n++])];return n&&n==r?e:void 0}function Bw(e,t,n){var r=-1,s=e.length;t<0&&(t=-t>s?0:s+t),n=n>s?s:n,n<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(s);++r<s;)i[r]=e[r+t];return i}function Gw(e,t){return t.length<2?e:Vw(e,Bw(t,0,-1))}var Zw=Object.prototype,Xw=Zw.hasOwnProperty;function Yw(e,t){t=Co(t,e);var n=-1,r=t.length;if(!r)return!0;for(var s=e==null||typeof e!="object"&&typeof e!="function";++n<r;){var i=t[n];if(typeof i=="string"){if(i==="__proto__"&&!Xw.call(e,"__proto__"))return!1;if(i==="constructor"&&n+1<r&&typeof t[n+1]=="string"&&t[n+1]==="prototype"){if(s&&n===0)continue;return!1}}}var o=Gw(e,t);return o==null||delete o[sf(zw(t))]}var Jw="[object Object]",qw=Function.prototype,Qw=Object.prototype,of=qw.toString,ev=Qw.hasOwnProperty,tv=of.call(Object);function nv(e){if(!Tn(e)||vn(e)!=Jw)return!1;var t=Uu(e);if(t===null)return!0;var n=ev.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&of.call(n)==tv}function rv(e){return nv(e)?void 0:e}var af=Ct?Ct.isConcatSpreadable:void 0;function sv(e){return En(e)||Iu(e)||!!(af&&e&&e[af])}function iv(e,t,n,r,s){var i=-1,o=e.length;for(n||(n=sv),s||(s=[]);++i<o;){var a=e[i];n(a)?wo(s,a):s[s.length]=a}return s}function ov(e){var t=e==null?0:e.length;return t?iv(e):[]}function av(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var lf=Math.max;function lv(e,t,n){return t=lf(t===void 0?e.length-1:t,0),function(){for(var r=arguments,s=-1,i=lf(r.length-t,0),o=Array(i);++s<i;)o[s]=r[t+s];s=-1;for(var a=Array(t+1);++s<t;)a[s]=r[s];return a[t]=n(o),av(e,this,a)}}function cv(e){return function(){return e}}function uv(e){return e}var fv=Ns?function(e,t){return Ns(e,"toString",{configurable:!0,enumerable:!1,value:cv(t),writable:!0})}:uv,dv=800,hv=16,pv=Date.now;function mv(e){var t=0,n=0;return function(){var r=pv(),s=hv-(r-n);if(n=r,s>0){if(++t>=dv)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var gv=mv(fv);function _v(e){return gv(lv(e,void 0,ov),e+"")}var bv=1,yv=2,wv=4,vv=_v(function(e,t){var n={};if(e==null)return n;var r=!1;t=gu(t,function(i){return i=Co(i,e),r||(r=i.length>1),i}),wb(e,Ku(e),n),r&&(n=Ds(n,bv|yv|wv,rv));for(var s=t.length;s--;)Yw(n,t[s]);return n});const cf={de:{admin:"Admin",anonymous:"Anonym",approve_hint:"Wir werden Ihren Kommentar innerhalb von 24 Stunden beantworten, ohne Ihre E-Mail zu spammen. Schauen Sie bitte bald wieder vorbei. :)",discussion:"Diskussion",edit:"Bearbeiten",load_more:"Mehr laden",login:"Anmelden",logout:"Abmelden",placeholder:"Schreiben Sie ein Kommentar...",post_comment:"Kommentar absenden",post_reply:"Antwort absenden",reply:"Antwort",reply_to:"Antwort auf",save_editing:"Speichern",ui_texts:["Seien Sie der Erste, der die Diskussion beginnt!","Beteiligen Sie sich an der Konversation (#)","Laden...","Kommentare laden"],your_comment:"Dein Kommentar"},en:{admin:"Admin",anonymous:"Anonymous",approve_hint:"We’ll reply to your comment within 24 hours without spamming your email, so please check back soon :)",discussion:"Discussion",edit:"Edit",load_more:"Load More",login:"LOGIN",login_or_verify:"Please log in or complete the verification to post.",logout:"Logout",placeholder:"Write a comment...",post_comment:"POST COMMENT",post_reply:"POST REPLY",reply:"Reply",reply_to:"reply to",save_editing:"Save",ui_texts:["Be the first to start the discussion!","Join the Conversation (#)","Loading...","Load Comments"],your_comment:"Your comment"},es:{admin:"Administrador",anonymous:"Anónimo",approve_hint:"los comentarios son normalmente aprobados dentro de 24 horas",discussion:"Discusión",edit:"Editar",load_more:"Cargar Más",login:"INICIAR SESIÓN",logout:"Cerrar Sesión",placeholder:"Escribe un comentario...",post_comment:"PUBLICAR COMENTARIO",post_reply:"PUBLICAR RESPUESTA",reply:"Responder",reply_to:"Responder a",save_editing:"Guardar",ui_texts:["¡Sé el primero en iniciar la discusión!","Únete a la Conversación (#)","Cargando...","Cargar Comentarios"],your_comment:"Tu comentario"},fr:{admin:"Admin",anonymous:"Anonyme",approve_hint:"Nous répondrons à votre commentaire dans les 24 heures sans vous spammer par e-mail, alors revenez bientôt :)",discussion:"Discussion",edit:"Modifier",load_more:"Charger plus",login:"CONNEXION",logout:"Déconnexion",placeholder:"Écrivez un commentaire...",post_comment:"POSTER UN COMMENTAIRE",post_reply:"POSTER UNE RÉPONSE",reply:"Répondre",reply_to:"répondre à",save_editing:"Enregistrer",ui_texts:["Soyez le premier à lancer la discussion !","Rejoignez la conversation (#)","Chargement...","Charger les commentaires"],your_comment:"Votre commentaire"},id:{admin:"Admin",anonymous:"Anonim",approve_hint:"komentar biasanya disetujui dalam waktu 24 jam",discussion:"Diskusi",edit:"Edit",load_more:"Muat Lebih Banyak",login:"MASUK",logout:"Keluar",placeholder:"Tulis komentar...",post_comment:"KIRIM KOMENTAR",post_reply:"KIRIM BALASAN",reply:"Balas",reply_to:"balas ke",save_editing:"Simpan",your_comment:"Komentar Anda"},it:{admin:"Amministratore",anonymous:"Anonimo",approve_hint:"i commenti vengono normalmente approvati entro 24 ore",discussion:"Discussione",edit:"Modifica",load_more:"Carica Altri",login:"ACCEDI",logout:"Esci",placeholder:"Scrivi un commento...",post_comment:"INVIA COMMENTO",post_reply:"INVIA RISPOSTA",reply:"Risposta",reply_to:"rispondi a",save_editing:"Salva",your_comment:"Il tuo commento"},ja:{admin:"管理者",anonymous:"匿名",approve_hint:"コメントは通常24時間以内に承認されます",discussion:"ディスカッション",edit:"編集",load_more:"もっと読み込む",login:"ログイン",logout:"ログアウト",placeholder:"コメントを書く...",post_comment:"コメントを投稿",post_reply:"返信を投稿",reply:"返信",reply_to:"返信先",save_editing:"保存",your_comment:"あなたのコメント"},ko:{admin:"관리자",anonymous:"익명",approve_hint:"댓글은 보통 24시간 내에 승인됩니다",discussion:"토론",edit:"편집",load_more:"더 보기",login:"로그인",logout:"로그아웃",placeholder:"댓글을 입력하세요...",post_comment:"댓글 게시",post_reply:"답글 게시",reply:"답장",reply_to:"답장 대상",save_editing:"저장",your_comment:"당신의 댓글"},pt:{admin:"Administrador",anonymous:"Anônimo",approve_hint:"os comentários são normalmente aprovados dentro de 24 horas",discussion:"Discussão",edit:"Editar",load_more:"Carregar Mais",login:"ENTRAR",logout:"Sair",placeholder:"Escreva um comentário...",post_comment:"PUBLICAR COMENTÁRIO",post_reply:"PUBLICAR RESPOSTA",reply:"Responder",reply_to:"responder a",save_editing:"Salvar",your_comment:"Seu comentário"},th:{admin:"แอดมิน",anonymous:"นิรนาม",approve_hint:"โดยปกติความคิดเห็นจะได้รับการอนุมัติภายใน 24 ชั่วโมง",discussion:"การอภิปราย",edit:"แก้ไข",load_more:"โหลดเพิ่ม",login:"ลงชื่อเข้าใช้",logout:"ลงชื่อออก",placeholder:"เขียนความคิดเห็น...",post_comment:"โพสต์ความคิดเห็น",post_reply:"โพสต์การตอบกลับ",reply:"ตอบกลับ",reply_to:"ตอบกลับถึง",save_editing:"บันทึก",ui_texts:["เป็นคนแรกที่เริ่มการอภิปราย","เข้าร่วมการสนทนา (#)","กำลังโหลด...","โหลดความคิดเห็น"],your_comment:"ความคิดเห็นของคุณ"},zh:{admin:"管理員",anonymous:"匿名",approve_hint:"評論通常在24小時內獲得批準,並且每壹條評論都會獲得回復",discussion:"討論",edit:"修改",load_more:"加載更多",login:"登錄",login_or_verify:"請登錄或完成驗證碼後再發表評論。",logout:"登出",placeholder:"寫評論...",post_comment:"發表評論",post_reply:"發表回複",reply:"回複",reply_to:"回複給",save_editing:"保存",your_comment:"您的評論"},cn:{admin:"管理员",anonymous:"匿名",approve_hint:"评论通常在24小时内公开(我们也会回复您)",discussion:"讨论",edit:"编辑",load_more:"加载更多",login:"登录",login_or_verify:"请登录或完成验证码后再发表评论。",logout:"登出",placeholder:"写评论...",post_comment:"发表评论",post_reply:"发表回复",reply:"回复",reply_to:"回复给",save_editing:"保存",your_comment:"您的评论"}};function kv(){return!!navigator.userAgent.match(/Macintosh/)}function xv(e,t){return(kv()?e.metaKey:e.ctrlKey)&&e.key===t}const Sv={maxConsecutivePunctuation:5,maxConsecutiveSpaces:3,maxConsecutiveNewlines:3,minLength:5,maxLength:5e3,minWords:1,allowedPunctuation:[],blockPatterns:[]};function Tv(e,t={}){const n={...Sv,...t},r=[];if(!e||typeof e!="string")return{valid:!1,errors:["Content is required"]};const s=e.trim();s.length<n.minLength&&r.push(`Content must be at least ${n.minLength} characters`),s.length>n.maxLength&&r.push(`Content must not exceed ${n.maxLength} characters`);const i=Ev(s,n.maxConsecutivePunctuation);i.valid||r.push(...i.errors),/^\w{35,}$/.test(s)&&r.push("Content contains too many consecutive letters");const o=Iv(s,n.maxConsecutiveSpaces);o.valid||r.push(...o.errors);const a=Cv(s,n.maxConsecutiveNewlines);a.valid||r.push(...a.errors);const l=Ov(s,n.minWords);if(l.valid||r.push(...l.errors),n.blockPatterns.length>0){const u=Av(s,n.blockPatterns);u.valid||r.push(...u.errors)}return{valid:r.length===0,errors:r}}function Ev(e,t){const n=[],r=["!","?",".",",",";",":","!","?","。",",",";",":","…","~","~"];for(const o of r){const a=new RegExp(`\\${o}{${t+1},}`,"g"),l=e.match(a);l&&n.push(`Too many consecutive "${o}" (max ${t}). Found: ${l[0]}`)}const s=new RegExp(`[${r.join("")}]{${t+1},}`,"g"),i=e.match(s);return i&&n.push(`Too many consecutive punctuation marks (max ${t}). Found: ${i[0]}`),{valid:n.length===0,errors:n}}function Iv(e,t){const n=new RegExp(` {${t+1},}`,"g");return e.match(n)?{valid:!1,errors:[`Too many consecutive spaces (max ${t})`]}:{valid:!0,errors:[]}}function Cv(e,t){const n=new RegExp(`
|
|
10
|
+
{${t+1},}`,"g");return e.match(n)?{valid:!1,errors:[`Too many consecutive line breaks (max ${t})`]}:{valid:!0,errors:[]}}function Ov(e,t){const n=e.replace(/[^\p{L}\p{N}\s]/gu," ").trim(),r=n.match(/[\u4e00-\u9fa5]/g);if(r&&r.length>n.length*.3){if(n.replace(/\s+/g,"").length<t)return{valid:!1,errors:[`Content must contain at least ${t} characters`]}}else if(n.split(/\s+/).filter(o=>o.length>0).length<t)return{valid:!1,errors:[`Content must contain at least ${t} words`]};return{valid:!0,errors:[]}}function Av(e,t){const n=[];for(const r of t)r.test(e)&&n.push(`Content contains blocked pattern: ${r.source}`);return{valid:n.length===0,errors:n}}var js=(e=>(e[e.Pending=0]="Pending",e[e.Approved=1]="Approved",e[e.Rejected=2]="Rejected",e[e.UnReplied=255]="UnReplied",e[e["Replied to Admin"]=256]="Replied to Admin",e))(js||{});const Pv=/@([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;var uf={exports:{}},ff;function Lv(){return ff||(ff=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function s(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function i(l,u,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var h=new s(c,f||l,d),y=n?n+u:u;return l._events[y]?l._events[y].fn?l._events[y]=[l._events[y],h]:l._events[y].push(h):(l._events[y]=h,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new r:delete l._events[u]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var l=[],u,c;if(this._eventsCount===0)return l;for(c in u=this._events)t.call(u,c)&&l.push(n?c.slice(1):c);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(u)):l},a.prototype.listeners=function(l){var u=n?n+l:l,c=this._events[u];if(!c)return[];if(c.fn)return[c.fn];for(var f=0,d=c.length,h=new Array(d);f<d;f++)h[f]=c[f].fn;return h},a.prototype.listenerCount=function(l){var u=n?n+l:l,c=this._events[u];return c?c.fn?1:c.length:0},a.prototype.emit=function(l,u,c,f,d,h){var y=n?n+l:l;if(!this._events[y])return!1;var w=this._events[y],E=arguments.length,_,v;if(w.fn){switch(w.once&&this.removeListener(l,w.fn,void 0,!0),E){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,u),!0;case 3:return w.fn.call(w.context,u,c),!0;case 4:return w.fn.call(w.context,u,c,f),!0;case 5:return w.fn.call(w.context,u,c,f,d),!0;case 6:return w.fn.call(w.context,u,c,f,d,h),!0}for(v=1,_=new Array(E-1);v<E;v++)_[v-1]=arguments[v];w.fn.apply(w.context,_)}else{var T=w.length,g;for(v=0;v<T;v++)switch(w[v].once&&this.removeListener(l,w[v].fn,void 0,!0),E){case 1:w[v].fn.call(w[v].context);break;case 2:w[v].fn.call(w[v].context,u);break;case 3:w[v].fn.call(w[v].context,u,c);break;case 4:w[v].fn.call(w[v].context,u,c,f);break;default:if(!_)for(g=1,_=new Array(E-1);g<E;g++)_[g-1]=arguments[g];w[v].fn.apply(w[v].context,_)}}return!0},a.prototype.on=function(l,u,c){return i(this,l,u,c,!1)},a.prototype.once=function(l,u,c){return i(this,l,u,c,!0)},a.prototype.removeListener=function(l,u,c,f){var d=n?n+l:l;if(!this._events[d])return this;if(!u)return o(this,d),this;var h=this._events[d];if(h.fn)h.fn===u&&(!f||h.once)&&(!c||h.context===c)&&o(this,d);else{for(var y=0,w=[],E=h.length;y<E;y++)(h[y].fn!==u||f&&!h[y].once||c&&h[y].context!==c)&&w.push(h[y]);w.length?this._events[d]=w.length===1?w[0]:w:o(this,d)}return this},a.prototype.removeAllListeners=function(l){var u;return l?(u=n?n+l:l,this._events[u]&&o(this,u)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a})(uf)),uf.exports}Lv();let Rv=class extends Error{};Rv.prototype.name="InvalidTokenError";var $v=typeof global=="object"&&global&&global.Object===Object&&global,Nv=typeof self=="object"&&self&&self.Object===Object&&self,Dv=$v||Nv||Function("return this")(),Ms=Dv.Symbol;Ms&&Ms.toStringTag,Ms&&Ms.toStringTag;var Fs=(e=>(e.INIT="init",e.VERIFYING="verifying",e.VERIFIED="verified",e.REFRESH="refresh",e.ERROR="error",e))(Fs||{});const Us=Hl("auth",()=>{const e=Ee("awesomeAuth"),t=!e&&bm(),n=q(!1),r=q(!1),s=q(),i=!!e,o=et(()=>e?e.root:"");async function a(){return e?e.accessToken:t?await t.getAccessTokenSilently():""}function l(){e?e.doSignIn():t&&t.loginWithPopup()}function u(f){e?e.doSignOut():t&&t.logout(f)}async function c(f,d){e&&await e.renderButton(f,d)}return e?(e.on(Fs.INIT,f=>{r.value=f,f&&(n.value=!1)}),e.on(Fs.VERIFYING,f=>{r.value=f}),e.on(Fs.VERIFIED,f=>{n.value=f,s.value=f?e.user:void 0}),r.value=e.isVerifying,n.value=e.isVerified,s.value=e.user):t&&(Ge(t.isLoading,f=>{r.value=f},{immediate:!0}),Ge(t.isAuthenticated,f=>{n.value=f},{immediate:!0}),Ge(t.user,f=>{s.value=f},{immediate:!0})),{isAuthenticated:n,isAwesomeAuth:i,isLoading:r,authEndpoint:o,user:s,getAccessToken:a,renderGoogleButton:c,login:l,logout:u}});function Ks(e){return e<10?`0${e}`:`${e}`}function df(e){return e=`${e.substring(0,10)}T${e.substring(11,19)}Z`,new Date(e)}function hf(e){const t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return`${t}-${Ks(n)}-${Ks(r)}`}function pf(e){e instanceof Date||(e=df(e));const t=new Date,n=hf(e);if(hf(t)===n){const r=e.getHours(),s=e.getMinutes();return`${Ks(r)}:${Ks(s)}`}return n}function Oo(e=""){return e.trim().replace(/\/+$/,"").replace(/\/api$/i,"")}function mf(e,t){const n=Oo(e),r=t.startsWith("/")?t:`/${t}`;return`${n}${r}`}function jv(e){const{id:t,created_at:n,parent_id:r,ancestor_id:s,post_id:i,user_id:o,is_shadow_banned:a,...l}=e,u=n||l.createdAt||"",c=r??e.parentId,f=s??e.ancestorId,d=a??e.isShadowBanned,h=i||e.postId||"";return{...l,id:Number(t),user_id:o,userId:o,parentId:Number(c),post_id:h,postId:h,ancestorId:Number(f),status:Number(e.status),createdAt:df(u),isShadowBanned:d}}const Ao="awesome-comment-comments",gf=localStorage.getItem(Ao),Xn=gf?JSON.parse(gf):{};function _f(e,t,n){const r={},s=[];e.forEach(o=>{Mv(Number(o.id),n);const a=jv(o);if(a.isShadowBanned&&a.userId!==t)return;const l=o.ancestor_id??o.ancestorId;!l||Number(l)===0?r[o.id]=a:s.push(a)});const i=Xn[n];i&&(i.createdAt=new Date(i.createdAt),!i.ancestorId||Number(i.ancestorId)===0?r[i.id]=i:s.push(i)),s.forEach(o=>{if(o.ancestorId in r){const a=r[o.ancestorId];a.children=[o,...a.children||[]]}});for(const o in r){const a=r[o];a.children&&(a.children=a.children.sort((l,u)=>l.id-u.id))}return r}function Mv(e,t){Xn[t]?.id===e&&(delete Xn[t],localStorage.setItem(Ao,JSON.stringify(Xn)))}const Yn=Hl("store",()=>{const e=Ee("postId"),t=Ee("siteId"),n=Ee("comments"),r=Ee("total"),s=q(!!n?.length),i=q(0),o=q(""),a=q([]),l=q(r||0),u=Ee("ApiBaseUrl",""),c=q(!1),f=q(!1),d=Us();async function h(E=!1){if(c.value)return;o.value="",c.value=!0;let _;if(E&&n?.length)_=_f(n,d.user?.sub,e);else{const v=new URLSearchParams;v.append("postId",e),t&&v.append("siteId",t),v.append("start",i.value.toString());const T=await fetch(mf(u,`/api/comments?${v}`));if(!T.ok){o.value="Load comments failed. "+T.statusText,s.value=!0,c.value=!1;return}const g=await T.json();if(g.code!==0){o.value="Load comments failed. "+g.message,s.value=!0,c.value=!1;return}_=_f(g.data||[],d.user?.sub,e),l.value=g.meta?.total||g.data?.length||0}f.value=Object.keys(_).length>20,f.value&&delete _[Object.keys(_)[0]],Object.assign(a.value,_),s.value=!0,c.value=!1}function y(E,_,v,T=js.Pending,g,A){const{sub:D="",name:P="",picture:M="",email:U="",nickname:J=""}=v,te={id:E,post_id:e,postId:e,content:_,createdAt:new Date,user:{avatar:M,email:U,name:J||P},user_id:D,userId:D,status:T,isNew:!0};if(g||A){te.ancestorId=g,te.parentId=A;const Z=a.value[g];if(Z.children||(Z.children=[]),g===A)Z.children.unshift(te);else{const Le=Z.children.findIndex(Je=>Number(Je.id)===A);Z.children.splice(Le+1,0,te)}}else te.ancestorId=0,te.parentId=0,a.value={[E]:te,...a.value};l.value++,T!==js.Approved&&(Xn[e]=te,localStorage.setItem(Ao,JSON.stringify(Xn)))}function w(E,_){let v=a.value[E];if(!v){for(const T of Object.values(a.value))if(T.children&&(v=T.children.find(g=>Number(g.id)===E),v))break}v&&Object.assign(v,_)}return{isLoaded:s,message:o,postId:e,comments:a,total:l,start:i,hasMore:f,loadingMore:c,loadComments:h,addComment:y,updateComment:w}}),Fv={class:"ac-form-control bg-base-200 rounded-lg"},Uv={class:"sr-only",for:"ac-comment"},Kv=["placeholder"],Wv={class:"p-2 rounded-b-lg bg-base-300 flex items-center relative"},Hv={key:1,class:"ac-alert ac-alert-error ms-4 me-auto py-1"},zv=["disabled"],Vv={key:0,class:"ac-loading ac-loading-spinner"},Ws=yt({...{name:"CommentForm"},props:{noVersion:{type:Boolean},currentId:{},parentId:{},ancestorId:{},content:{},status:{}},emits:["close","update"],setup(e,{emit:t}){const n=e,r=t,s=Us(),i=Yn(),{t:o}=Et(),a=Ee("ApiBaseUrl"),l=Ee("Auth0Domain"),u=Ee("siteId"),c=Ee("TurnstileSiteKey"),f=Ee("AutoFocus"),d="0.10.10",h=q(),y=q(),w=q(!1),E=q(n.content||""),_=q(""),v=q(!1),T=q(""),g=q(""),A=et(()=>!s.isAuthenticated);let D=null;function P(){if(typeof window>"u")return Promise.reject(new Error("Turnstile 仅支持浏览器环境"));if(window.turnstile)return Promise.resolve();if(D)return D;const ve="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit";return D=new Promise((X,V)=>{const ne=document.querySelector(`script[src="${ve}"]`),ue=ne||document.createElement("script");function nt(){X()}function $e(){V(new Error("Failed to load Turnstile script"))}ue.addEventListener("load",nt,{once:!0}),ue.addEventListener("error",$e,{once:!0}),ne||(ue.src=ve,ue.async=!0,ue.defer=!0,document.head.appendChild(ue))}),D.catch(()=>{D=null}),D}async function M(){if(!(!c||!y.value)){if(await P(),!window.turnstile){_.value="Turnstile initialization failed";return}if(g.value){window.turnstile.reset(g.value);return}g.value=window.turnstile.render(y.value,{sitekey:c,size:"compact",callback:ve=>{T.value=ve,_.value=""},"expired-callback":()=>{T.value=""},"error-callback":()=>{T.value="",_.value="Turnstile validation failed, please try again."}})}}function U(){if(!g.value||!window.turnstile){T.value="";return}try{window.turnstile.remove(g.value)}catch{window.turnstile.reset(g.value)}g.value="",T.value=""}function J(){return s.user?s.user:{sub:"anonymous",name:"anonymous",nickname:"anonymous",picture:"",email:""}}async function te(ve){if(!s.isAuthenticated){if(!c)return Z();if(v.value=!0,!T.value){await ir(),await M();return}}if(ve.target.matches(":invalid"))return;const X=E.value.trim();if(!X)return;if(!Tv(X).valid){_.value="We encourage meaningful contributions to foster a positive community. Thank you for your understanding!";return}w.value=!0,_.value="";let V=a+"/api/comment",ne="POST";n.currentId&&(V+="/"+n.currentId,ne="PATCH");try{const ue=s.isAuthenticated?await s.getAccessToken():"",$e={"Content-Type":"application/json","Auth-Endpoint":s.authEndpoint};ue&&($e.Authorization=`Bearer ${ue}`);const Ue=A.value?{referrer:document.referrer||"",language:navigator.language||"",languages:navigator.languages||[],timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"",platform:navigator.platform||""}:null,sn=A.value?{custom:window.custom_comment_data??null,anonymous:Ue}:window.custom_comment_data,on=await fetch(V,{method:ne,headers:$e,body:JSON.stringify({comment:X,postId:i.postId,siteId:u,domain:l,ancestorId:n.ancestorId?Number(n.ancestorId):void 0,parentId:n.parentId?Number(n.parentId):void 0,status:n.status,window:`${window.innerWidth}x${window.innerHeight} / ${screen.width,screen.height}`,customData:sn,extraData:`${window.BM_LEVEL}:${window.BM_VALUE}`,turnstileToken:A.value?T.value:void 0})}),an=await on.json();if(!on.ok||an.message){_.value="Failed to post comment: "+(an.message||"Unknown"),w.value=!1;return}const{id:rt,status:ft}=an.data,dt=J();n.ancestorId||n.parentId?i.addComment(rt,X,dt,ft,n.ancestorId,n.parentId):n.currentId?r("update",X):i.addComment(rt,X,dt,ft),E.value="",r("close"),A.value&&(U(),v.value=!1)}catch(ue){_.value=ue.message||String(ue)}w.value=!1}function Z(){s.login()}function Le(ve){xv(ve,"Enter")&&te(ve)}function Je(){r("close")}return jn(()=>{(f||n.currentId)&&h.value?.focus()}),Ge(()=>v.value,async ve=>{!ve||s.isAuthenticated||(await ir(),await M())}),Ge(()=>s.isAuthenticated,ve=>{ve&&(v.value=!1,U())}),(ve,X)=>(H(),Y("form",{class:"mb-6",onSubmit:Ni(te,["prevent"])},[fe("div",Fv,[fe("label",Uv,_e(W(o)("your_comment")),1),zd(fe("textarea",{id:"ac-comment",ref_key:"textarea",ref:h,"onUpdate:modelValue":X[0]||(X[0]=V=>E.value=V),placeholder:W(o)("placeholder"),class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",required:"",rows:"3",onKeydown:[X[1]||(X[1]=Ni(()=>{},["stop"])),Nl(Le,["enter"]),Nl(Je,["esc"])],onKeyup:X[2]||(X[2]=Ni(()=>{},["stop"]))},null,40,Kv),[[wp,E.value]]),fe("div",Wv,[e.noVersion?Oe("",!0):(H(),Y("div",{key:0,class:Pn(["text-xs text-neutral-400/40",{"me-auto":!_.value}])}," v"+_e(W(d)),3)),_.value?(H(),Y("div",Hv,_e(_.value),1)):Oe("",!0),v.value&&!W(s).isAuthenticated?(H(),Y(Ie,{key:2},[W(s).isAwesomeAuth?Oe("",!0):(H(),Y("button",{key:0,class:"ac-btn ac-btn-secondary ac-btn-xs mx-4",type:"button",onClick:Z},_e(W(o)("login")),1)),W(c)?(H(),Y("div",{key:1,ref_key:"turnstileContainer",ref:y,class:"absolute right-2 top-10"},null,512)):Oe("",!0)],64)):Oe("",!0),fe("button",{disabled:w.value||v.value&&!W(s).isAuthenticated&&!T.value,class:"ac-btn ac-btn-primary ac-btn-sm"},[w.value?(H(),Y("span",Vv)):Oe("",!0),e.currentId?(H(),Y(Ie,{key:1},[pn(_e(W(o)("save_editing")),1)],64)):e.parentId?(H(),Y(Ie,{key:2},[pn(_e(W(o)("post_reply")),1)],64)):(H(),Y(Ie,{key:3},[pn(_e(W(o)("post_comment")),1)],64))],8,zv)])])],32))}});const bf=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Bv=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Gv=e=>{const t=Bv(e);return t.charAt(0).toUpperCase()+t.slice(1)},Zv=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),yf=e=>e==="";var Nr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};const Xv=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":r,strokeWidth:s,"stroke-width":i,size:o=Nr.width,color:a=Nr.stroke,...l},{slots:u})=>_r("svg",{...Nr,...l,width:o,height:o,stroke:a,"stroke-width":yf(n)||yf(r)||n===!0||r===!0?Number(s||i||Nr["stroke-width"])*24/Number(o):s||i||Nr["stroke-width"],class:Zv("lucide",l.class,...e?[`lucide-${bf(Gv(e))}-icon`,`lucide-${bf(e)}`]:["lucide-icon"])},[...t.map(c=>_r(...c)),...u.default?[u.default()]:[]]);const Hs=(e,t)=>(n,{slots:r,attrs:s})=>_r(Xv,{...s,...n,iconNode:t,name:e},r);const Yv=Hs("badge-check",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);const Jv=Hs("reply",[["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4",key:"5vmcpk"}],["path",{d:"m9 17-5-5 5-5",key:"nvlc11"}]]);const qv=Hs("thumbs-down",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);const Qv=Hs("thumbs-up",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]),e0={class:"flex items-center gap-2"},t0=["aria-label","title","disabled"],n0={key:0,class:"ac-loading ac-loading-spinner"},r0={class:"text-sm text-gray-500 dark:text-gray-400"},s0=["aria-label","title","disabled"],i0={key:0,class:"ac-loading ac-loading-spinner"},o0=["aria-label","title"],Po="awesome-comment-likes",a0=yt({__name:"comment-actions",props:{comment:{}},emits:["reply"],setup(e,{emit:t}){const n=e,r=t,s=Yn(),{t:i}=Et(),o=Ee("ApiBaseUrl"),a=Ee("siteId"),l=q(0);async function u(c=!0){if(l.value)return;const f=localStorage.getItem(Po);if(f){const y=JSON.parse(f),w=Date.now(),E=y[n.comment.id];if(y[n.comment.id]=w,localStorage.setItem(Po,JSON.stringify(y)),E&&w-E<6e4){s.updateComment(n.comment.id,{like:Math.max((n.comment.like||0)+(c?1:-1),0)});return}}else localStorage.setItem(Po,JSON.stringify({[n.comment.id]:Date.now()}));l.value=c?1:-1;const h=await(await fetch(`${o}/api/like/${n.comment.id}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({like:c,postId:n.comment.postId||s.postId,siteId:a})})).json();s.updateComment(n.comment.id,{like:h.data?.like||0}),l.value=0}return(c,f)=>(H(),Y("div",e0,[fe("button",{"aria-label":W(i)("like"),title:W(i)("like"),class:"ac-btn ac-btn-sm ac-btn-circle border-0 shadow-none",disabled:l.value!==0,type:"button",onClick:f[0]||(f[0]=d=>u())},[l.value>0?(H(),Y("span",n0)):(H(),Jt(W(Qv),{key:1,size:16}))],8,t0),fe("span",r0,_e(e.comment.like||0),1),fe("button",{"aria-label":W(i)("dislike"),title:W(i)("dislike"),class:"ac-btn ac-btn-sm ac-btn-circle border-0 shadow-none",disabled:l.value!==0,type:"button",onClick:f[1]||(f[1]=d=>u(!1))},[l.value<0?(H(),Y("span",i0)):(H(),Jt(W(qv),{key:1,size:16}))],8,s0),fe("button",{"aria-label":W(i)("reply"),title:W(i)("reply"),class:"ac-btn ac-btn-sm ac-btn-circle border-0 shadow-none -me-1.5",type:"button",onClick:f[2]||(f[2]=d=>r("reply"))},[Se(W(Jv),{size:16})],8,o0)]))}});function Lo(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var In=Lo();function wf(e){In=e}var Dr={exec:()=>null};function ie(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(s,i)=>{let o=typeof i=="string"?i:i.source;return o=o.replace(He.caret,"$1"),n=n.replace(s,o),r},getRegex:()=>new RegExp(n,t)};return r}var l0=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),He={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},c0=/^(?:[ \t]*(?:\n|$))+/,u0=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,f0=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,jr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,d0=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ro=/(?:[*+-]|\d{1,9}[.)])/,vf=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,kf=ie(vf).replace(/bull/g,Ro).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),h0=ie(vf).replace(/bull/g,Ro).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),$o=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,p0=/^[^\n]+/,No=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,m0=ie(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",No).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),g0=ie(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ro).getRegex(),zs="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Do=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,_0=ie("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Do).replace("tag",zs).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),xf=ie($o).replace("hr",jr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",zs).getRegex(),b0=ie(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",xf).getRegex(),jo={blockquote:b0,code:u0,def:m0,fences:f0,heading:d0,hr:jr,html:_0,lheading:kf,list:g0,newline:c0,paragraph:xf,table:Dr,text:p0},Sf=ie("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",jr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",zs).getRegex(),y0={...jo,lheading:h0,table:Sf,paragraph:ie($o).replace("hr",jr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Sf).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",zs).getRegex()},w0={...jo,html:ie(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Do).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:Dr,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ie($o).replace("hr",jr).replace("heading",` *#{1,6} *[^
|
|
11
|
+
]`).replace("lheading",kf).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},v0=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,k0=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Tf=/^( {2,}|\\)\n(?!\s*$)/,x0=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Vs=/[\p{P}\p{S}]/u,Mo=/[\s\p{P}\p{S}]/u,Ef=/[^\s\p{P}\p{S}]/u,S0=ie(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Mo).getRegex(),If=/(?!~)[\p{P}\p{S}]/u,T0=/(?!~)[\s\p{P}\p{S}]/u,E0=/(?:[^\s\p{P}\p{S}]|~)/u,I0=ie(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",l0?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Cf=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,C0=ie(Cf,"u").replace(/punct/g,Vs).getRegex(),O0=ie(Cf,"u").replace(/punct/g,If).getRegex(),Of="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",A0=ie(Of,"gu").replace(/notPunctSpace/g,Ef).replace(/punctSpace/g,Mo).replace(/punct/g,Vs).getRegex(),P0=ie(Of,"gu").replace(/notPunctSpace/g,E0).replace(/punctSpace/g,T0).replace(/punct/g,If).getRegex(),L0=ie("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ef).replace(/punctSpace/g,Mo).replace(/punct/g,Vs).getRegex(),R0=ie(/\\(punct)/,"gu").replace(/punct/g,Vs).getRegex(),$0=ie(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),N0=ie(Do).replace("(?:-->|$)","-->").getRegex(),D0=ie("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",N0).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Bs=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,j0=ie(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Bs).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Af=ie(/^!?\[(label)\]\[(ref)\]/).replace("label",Bs).replace("ref",No).getRegex(),Pf=ie(/^!?\[(ref)\](?:\[\])?/).replace("ref",No).getRegex(),M0=ie("reflink|nolink(?!\\()","g").replace("reflink",Af).replace("nolink",Pf).getRegex(),Lf=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Fo={_backpedal:Dr,anyPunctuation:R0,autolink:$0,blockSkip:I0,br:Tf,code:k0,del:Dr,emStrongLDelim:C0,emStrongRDelimAst:A0,emStrongRDelimUnd:L0,escape:v0,link:j0,nolink:Pf,punctuation:S0,reflink:Af,reflinkSearch:M0,tag:D0,text:x0,url:Dr},F0={...Fo,link:ie(/^!?\[(label)\]\((.*?)\)/).replace("label",Bs).getRegex(),reflink:ie(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Bs).getRegex()},Uo={...Fo,emStrongRDelimAst:P0,emStrongLDelim:O0,url:ie(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Lf).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ie(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Lf).getRegex()},U0={...Uo,br:ie(Tf).replace("{2,}","*").getRegex(),text:ie(Uo.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Gs={normal:jo,gfm:y0,pedantic:w0},Mr={normal:Fo,gfm:Uo,breaks:U0,pedantic:F0},K0={"&":"&","<":"<",">":">",'"':""","'":"'"},Rf=e=>K0[e];function zt(e,t){if(t){if(He.escapeTest.test(e))return e.replace(He.escapeReplace,Rf)}else if(He.escapeTestNoEncode.test(e))return e.replace(He.escapeReplaceNoEncode,Rf);return e}function $f(e){try{e=encodeURI(e).replace(He.percentDecode,"%")}catch{return null}return e}function Nf(e,t){let n=e.replace(He.findPipe,(i,o,a)=>{let l=!1,u=o;for(;--u>=0&&a[u]==="\\";)l=!l;return l?"|":" |"}),r=n.split(He.splitPipe),s=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(He.slashPipe,"|");return r}function Fr(e,t,n){let r=e.length;if(r===0)return"";let s=0;for(;s<r&&e.charAt(r-s-1)===t;)s++;return e.slice(0,r-s)}function W0(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Df(e,t,n,r,s){let i=t.href,o=t.title||null,a=e[1].replace(s.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:o,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,l}function H0(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let s=r[1];return t.split(`
|
|
12
|
+
`).map(i=>{let o=i.match(n.other.beginningSpace);if(o===null)return i;let[a]=o;return a.length>=s.length?i.slice(s.length):i}).join(`
|
|
13
|
+
`)}var Zs=class{options;rules;lexer;constructor(e){this.options=e||In}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Fr(n,`
|
|
14
|
+
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=H0(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=Fr(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Fr(t[0],`
|
|
15
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=Fr(t[0],`
|
|
16
|
+
`).split(`
|
|
17
|
+
`),r="",s="",i=[];for(;n.length>0;){let o=!1,a=[],l;for(l=0;l<n.length;l++)if(this.rules.other.blockquoteStart.test(n[l]))a.push(n[l]),o=!0;else if(!o)a.push(n[l]);else break;n=n.slice(l);let u=a.join(`
|
|
18
|
+
`),c=u.replace(this.rules.other.blockquoteSetextReplace,`
|
|
19
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
20
|
+
${u}`:u,s=s?`${s}
|
|
21
|
+
${c}`:c;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=f,n.length===0)break;let d=i.at(-1);if(d?.type==="code")break;if(d?.type==="blockquote"){let h=d,y=h.raw+`
|
|
22
|
+
`+n.join(`
|
|
23
|
+
`),w=this.blockquote(y);i[i.length-1]=w,r=r.substring(0,r.length-h.raw.length)+w.raw,s=s.substring(0,s.length-h.text.length)+w.text;break}else if(d?.type==="list"){let h=d,y=h.raw+`
|
|
24
|
+
`+n.join(`
|
|
25
|
+
`),w=this.list(y);i[i.length-1]=w,r=r.substring(0,r.length-d.raw.length)+w.raw,s=s.substring(0,s.length-h.raw.length)+w.raw,n=y.substring(i.at(-1).raw.length).split(`
|
|
26
|
+
`);continue}}return{type:"blockquote",raw:r,tokens:i,text:s}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,s={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let i=this.rules.other.listItemRegex(n),o=!1;for(;e;){let l=!1,u="",c="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;u=t[0],e=e.substring(u.length);let f=t[2].split(`
|
|
27
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,w=>" ".repeat(3*w.length)),d=e.split(`
|
|
28
|
+
`,1)[0],h=!f.trim(),y=0;if(this.options.pedantic?(y=2,c=f.trimStart()):h?y=t[1].length+1:(y=t[2].search(this.rules.other.nonSpaceChar),y=y>4?1:y,c=f.slice(y),y+=t[1].length),h&&this.rules.other.blankLine.test(d)&&(u+=d+`
|
|
29
|
+
`,e=e.substring(d.length+1),l=!0),!l){let w=this.rules.other.nextBulletRegex(y),E=this.rules.other.hrRegex(y),_=this.rules.other.fencesBeginRegex(y),v=this.rules.other.headingBeginRegex(y),T=this.rules.other.htmlBeginRegex(y);for(;e;){let g=e.split(`
|
|
30
|
+
`,1)[0],A;if(d=g,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),A=d):A=d.replace(this.rules.other.tabCharGlobal," "),_.test(d)||v.test(d)||T.test(d)||w.test(d)||E.test(d))break;if(A.search(this.rules.other.nonSpaceChar)>=y||!d.trim())c+=`
|
|
31
|
+
`+A.slice(y);else{if(h||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||_.test(f)||v.test(f)||E.test(f))break;c+=`
|
|
32
|
+
`+d}!h&&!d.trim()&&(h=!0),u+=g+`
|
|
33
|
+
`,e=e.substring(g.length+1),f=A.slice(y)}}s.loose||(o?s.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(o=!0)),s.items.push({type:"list_item",raw:u,task:!!this.options.gfm&&this.rules.other.listIsTask.test(c),loose:!1,text:c,tokens:[]}),s.raw+=u}let a=s.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let l of s.items){if(this.lexer.state.top=!1,l.tokens=this.lexer.blockTokens(l.text,[]),l.task){if(l.text=l.text.replace(this.rules.other.listReplaceTask,""),l.tokens[0]?.type==="text"||l.tokens[0]?.type==="paragraph"){l.tokens[0].raw=l.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),l.tokens[0].text=l.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let c=this.lexer.inlineQueue.length-1;c>=0;c--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[c].src)){this.lexer.inlineQueue[c].src=this.lexer.inlineQueue[c].src.replace(this.rules.other.listReplaceTask,"");break}}let u=this.rules.other.listTaskCheckbox.exec(l.raw);if(u){let c={type:"checkbox",raw:u[0]+" ",checked:u[0]!=="[ ]"};l.checked=c.checked,s.loose?l.tokens[0]&&["paragraph","text"].includes(l.tokens[0].type)&&"tokens"in l.tokens[0]&&l.tokens[0].tokens?(l.tokens[0].raw=c.raw+l.tokens[0].raw,l.tokens[0].text=c.raw+l.tokens[0].text,l.tokens[0].tokens.unshift(c)):l.tokens.unshift({type:"paragraph",raw:c.raw,text:c.raw,tokens:[c]}):l.tokens.unshift(c)}}if(!s.loose){let u=l.tokens.filter(f=>f.type==="space"),c=u.length>0&&u.some(f=>this.rules.other.anyLine.test(f.raw));s.loose=c}}if(s.loose)for(let l of s.items){l.loose=!0;for(let u of l.tokens)u.type==="text"&&(u.type="paragraph")}return s}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:s}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Nf(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
34
|
+
`):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let o of r)this.rules.other.tableAlignRight.test(o)?i.align.push("right"):this.rules.other.tableAlignCenter.test(o)?i.align.push("center"):this.rules.other.tableAlignLeft.test(o)?i.align.push("left"):i.align.push(null);for(let o=0;o<n.length;o++)i.header.push({text:n[o],tokens:this.lexer.inline(n[o]),header:!0,align:i.align[o]});for(let o of s)i.rows.push(Nf(o,i.header.length).map((a,l)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:i.align[l]})));return i}}lheading(e){let 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){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
|
|
35
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let i=Fr(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{let i=W0(t[2],"()");if(i===-2)return;if(i>-1){let o=(t[0].indexOf("!")===0?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,o).trim(),t[3]=""}}let r=t[2],s="";if(this.options.pedantic){let i=this.rules.other.pedanticHrefTitle.exec(r);i&&(r=i[1],s=i[3])}else s=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),Df(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=t[r.toLowerCase()];if(!s){let i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return Df(n,s,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let s=[...r[0]].length-1,i,o,a=s,l=0,u=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+s);(r=u.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(o=[...i].length,r[3]||r[4]){a+=o;continue}else if((r[5]||r[6])&&s%3&&!((s+o)%3)){l+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a+l);let c=[...r[0]][0].length,f=e.slice(0,s+r.index+c+o);if(Math.min(s,o)%2){let h=f.slice(1,-1);return{type:"em",raw:f,text:h,tokens:this.lexer.inlineTokens(h)}}let d=f.slice(2,-2);return{type:"strong",raw:f,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),s=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&s&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let 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){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,r;if(t[2]==="@")n=t[0],r="mailto:"+n;else{let s;do s=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(s!==t[0]);n=t[0],t[1]==="www."?r="http://"+t[0]:r=t[0]}return{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},ct=class Bo{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||In,this.options.tokenizer=this.options.tokenizer||new Zs,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:He,block:Gs.normal,inline:Mr.normal};this.options.pedantic?(n.block=Gs.pedantic,n.inline=Mr.pedantic):this.options.gfm&&(n.block=Gs.gfm,this.options.breaks?n.inline=Mr.breaks:n.inline=Mr.gfm),this.tokenizer.rules=n}static get rules(){return{block:Gs,inline:Mr}}static lex(t,n){return new Bo(n).lex(t)}static lexInline(t,n){return new Bo(n).inlineTokens(t)}lex(t){t=t.replace(He.carriageReturn,`
|
|
36
|
+
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){for(this.options.pedantic&&(t=t.replace(He.tabCharGlobal," ").replace(He.spaceLine,""));t;){let s;if(this.options.extensions?.block?.some(o=>(s=o.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))continue;if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length);let o=n.at(-1);s.raw.length===1&&o!==void 0?o.raw+=`
|
|
37
|
+
`:n.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length);let o=n.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=(o.raw.endsWith(`
|
|
38
|
+
`)?"":`
|
|
39
|
+
`)+s.raw,o.text+=`
|
|
40
|
+
`+s.text,this.inlineQueue.at(-1).src=o.text):n.push(s);continue}if(s=this.tokenizer.fences(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.heading(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.hr(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.blockquote(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.list(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.html(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.def(t)){t=t.substring(s.raw.length);let o=n.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=(o.raw.endsWith(`
|
|
41
|
+
`)?"":`
|
|
42
|
+
`)+s.raw,o.text+=`
|
|
43
|
+
`+s.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title},n.push(s));continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),n.push(s);continue}let i=t;if(this.options.extensions?.startBlock){let o=1/0,a=t.slice(1),l;this.options.extensions.startBlock.forEach(u=>{l=u.call({lexer:this},a),typeof l=="number"&&l>=0&&(o=Math.min(o,l))}),o<1/0&&o>=0&&(i=t.substring(0,o+1))}if(this.state.top&&(s=this.tokenizer.paragraph(i))){let o=n.at(-1);r&&o?.type==="paragraph"?(o.raw+=(o.raw.endsWith(`
|
|
44
|
+
`)?"":`
|
|
45
|
+
`)+s.raw,o.text+=`
|
|
46
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):n.push(s),r=i.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length);let o=n.at(-1);o?.type==="text"?(o.raw+=(o.raw.endsWith(`
|
|
47
|
+
`)?"":`
|
|
48
|
+
`)+s.raw,o.text+=`
|
|
49
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):n.push(s);continue}if(t){let o="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r=t,s=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)l.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,s.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)i=s[2]?s[2].length:0,r=r.slice(0,s.index+i)+"["+"a".repeat(s[0].length-i-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let o=!1,a="";for(;t;){o||(a=""),o=!1;let l;if(this.options.extensions?.inline?.some(c=>(l=c.call({lexer:this},t,n))?(t=t.substring(l.raw.length),n.push(l),!0):!1))continue;if(l=this.tokenizer.escape(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.tag(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.link(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(l.raw.length);let c=n.at(-1);l.type==="text"&&c?.type==="text"?(c.raw+=l.raw,c.text+=l.text):n.push(l);continue}if(l=this.tokenizer.emStrong(t,r,a)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.codespan(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.br(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.del(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.autolink(t)){t=t.substring(l.raw.length),n.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(t))){t=t.substring(l.raw.length),n.push(l);continue}let u=t;if(this.options.extensions?.startInline){let c=1/0,f=t.slice(1),d;this.options.extensions.startInline.forEach(h=>{d=h.call({lexer:this},f),typeof d=="number"&&d>=0&&(c=Math.min(c,d))}),c<1/0&&c>=0&&(u=t.substring(0,c+1))}if(l=this.tokenizer.inlineText(u)){t=t.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(a=l.raw.slice(-1)),o=!0;let c=n.at(-1);c?.type==="text"?(c.raw+=l.raw,c.text+=l.text):n.push(l);continue}if(t){let c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return n}},Xs=class{options;parser;constructor(e){this.options=e||In}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(He.notSpaceStart)?.[0],s=e.replace(He.endingNewline,"")+`
|
|
50
|
+
`;return r?'<pre><code class="language-'+zt(r)+'">'+(n?s:zt(s,!0))+`</code></pre>
|
|
51
|
+
`:"<pre><code>"+(n?s:zt(s,!0))+`</code></pre>
|
|
52
|
+
`}blockquote({tokens:e}){return`<blockquote>
|
|
53
|
+
${this.parser.parse(e)}</blockquote>
|
|
54
|
+
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
55
|
+
`}hr(e){return`<hr>
|
|
56
|
+
`}list(e){let t=e.ordered,n=e.start,r="";for(let o=0;o<e.items.length;o++){let a=e.items[o];r+=this.listitem(a)}let s=t?"ol":"ul",i=t&&n!==1?' start="'+n+'"':"";return"<"+s+i+`>
|
|
57
|
+
`+r+"</"+s+`>
|
|
58
|
+
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
59
|
+
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
60
|
+
`}table(e){let t="",n="";for(let s=0;s<e.header.length;s++)n+=this.tablecell(e.header[s]);t+=this.tablerow({text:n});let r="";for(let s=0;s<e.rows.length;s++){let i=e.rows[s];n="";for(let o=0;o<i.length;o++)n+=this.tablecell(i[o]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
61
|
+
<thead>
|
|
62
|
+
`+t+`</thead>
|
|
63
|
+
`+r+`</table>
|
|
64
|
+
`}tablerow({text:e}){return`<tr>
|
|
65
|
+
${e}</tr>
|
|
66
|
+
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
67
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${zt(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),s=$f(e);if(s===null)return r;e=s;let i='<a href="'+e+'"';return t&&(i+=' title="'+zt(t)+'"'),i+=">"+r+"</a>",i}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let s=$f(e);if(s===null)return zt(n);e=s;let i=`<img src="${e}" alt="${n}"`;return t&&(i+=` title="${zt(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:zt(e.text)}},Ko=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},ut=class Go{options;renderer;textRenderer;constructor(t){this.options=t||In,this.options.renderer=this.options.renderer||new Xs,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ko}static parse(t,n){return new Go(n).parse(t)}static parseInline(t,n){return new Go(n).parseInline(t)}parse(t){let n="";for(let r=0;r<t.length;r++){let s=t[r];if(this.options.extensions?.renderers?.[s.type]){let o=s,a=this.options.extensions.renderers[o.type].call({parser:this},o);if(a!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(o.type)){n+=a||"";continue}}let i=s;switch(i.type){case"space":{n+=this.renderer.space(i);break}case"hr":{n+=this.renderer.hr(i);break}case"heading":{n+=this.renderer.heading(i);break}case"code":{n+=this.renderer.code(i);break}case"table":{n+=this.renderer.table(i);break}case"blockquote":{n+=this.renderer.blockquote(i);break}case"list":{n+=this.renderer.list(i);break}case"checkbox":{n+=this.renderer.checkbox(i);break}case"html":{n+=this.renderer.html(i);break}case"def":{n+=this.renderer.def(i);break}case"paragraph":{n+=this.renderer.paragraph(i);break}case"text":{n+=this.renderer.text(i);break}default:{let o='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return n}parseInline(t,n=this.renderer){let r="";for(let s=0;s<t.length;s++){let i=t[s];if(this.options.extensions?.renderers?.[i.type]){let a=this.options.extensions.renderers[i.type].call({parser:this},i);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=a||"";continue}}let o=i;switch(o.type){case"escape":{r+=n.text(o);break}case"html":{r+=n.html(o);break}case"link":{r+=n.link(o);break}case"image":{r+=n.image(o);break}case"checkbox":{r+=n.checkbox(o);break}case"strong":{r+=n.strong(o);break}case"em":{r+=n.em(o);break}case"codespan":{r+=n.codespan(o);break}case"br":{r+=n.br(o);break}case"del":{r+=n.del(o);break}case"text":{r+=n.text(o);break}default:{let a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}},Ur=class{options;block;constructor(e){this.options=e||In}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?ct.lex:ct.lexInline}provideParser(){return this.block?ut.parse:ut.parseInline}},z0=class{defaults=Lo();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ut;Renderer=Xs;TextRenderer=Ko;Lexer=ct;Tokenizer=Zs;Hooks=Ur;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{let s=r;for(let i of s.header)n=n.concat(this.walkTokens(i.tokens,t));for(let i of s.rows)for(let o of i)n=n.concat(this.walkTokens(o.tokens,t));break}case"list":{let s=r;n=n.concat(this.walkTokens(s.items,t));break}default:{let s=r;this.defaults.extensions?.childTokens?.[s.type]?this.defaults.extensions.childTokens[s.type].forEach(i=>{let o=s[i].flat(1/0);n=n.concat(this.walkTokens(o,t))}):s.tokens&&(n=n.concat(this.walkTokens(s.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let i=t.renderers[s.name];i?t.renderers[s.name]=function(...o){let a=s.renderer.apply(this,o);return a===!1&&(a=i.apply(this,o)),a}:t.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=t[s.level];i?i.unshift(s.tokenizer):t[s.level]=[s.tokenizer],s.start&&(s.level==="block"?t.startBlock?t.startBlock.push(s.start):t.startBlock=[s.start]:s.level==="inline"&&(t.startInline?t.startInline.push(s.start):t.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(t.childTokens[s.name]=s.childTokens)}),r.extensions=t),n.renderer){let s=this.defaults.renderer||new Xs(this.defaults);for(let i in n.renderer){if(!(i in s))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let o=i,a=n.renderer[o],l=s[o];s[o]=(...u)=>{let c=a.apply(s,u);return c===!1&&(c=l.apply(s,u)),c||""}}r.renderer=s}if(n.tokenizer){let s=this.defaults.tokenizer||new Zs(this.defaults);for(let i in n.tokenizer){if(!(i in s))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let o=i,a=n.tokenizer[o],l=s[o];s[o]=(...u)=>{let c=a.apply(s,u);return c===!1&&(c=l.apply(s,u)),c}}r.tokenizer=s}if(n.hooks){let s=this.defaults.hooks||new Ur;for(let i in n.hooks){if(!(i in s))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let o=i,a=n.hooks[o],l=s[o];Ur.passThroughHooks.has(i)?s[o]=u=>{if(this.defaults.async&&Ur.passThroughHooksRespectAsync.has(i))return(async()=>{let f=await a.call(s,u);return l.call(s,f)})();let c=a.call(s,u);return l.call(s,c)}:s[o]=(...u)=>{if(this.defaults.async)return(async()=>{let f=await a.apply(s,u);return f===!1&&(f=await l.apply(s,u)),f})();let c=a.apply(s,u);return c===!1&&(c=l.apply(s,u)),c}}r.hooks=s}if(n.walkTokens){let s=this.defaults.walkTokens,i=n.walkTokens;r.walkTokens=function(o){let a=[];return a.push(i.call(this,o)),s&&(a=a.concat(s.call(this,o))),a}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ct.lex(e,t??this.defaults)}parser(e,t){return ut.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},s={...this.defaults,...r},i=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&r.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=e),s.async)return(async()=>{let o=s.hooks?await s.hooks.preprocess(t):t,a=await(s.hooks?await s.hooks.provideLexer():e?ct.lex:ct.lexInline)(o,s),l=s.hooks?await s.hooks.processAllTokens(a):a;s.walkTokens&&await Promise.all(this.walkTokens(l,s.walkTokens));let u=await(s.hooks?await s.hooks.provideParser():e?ut.parse:ut.parseInline)(l,s);return s.hooks?await s.hooks.postprocess(u):u})().catch(i);try{s.hooks&&(t=s.hooks.preprocess(t));let o=(s.hooks?s.hooks.provideLexer():e?ct.lex:ct.lexInline)(t,s);s.hooks&&(o=s.hooks.processAllTokens(o)),s.walkTokens&&this.walkTokens(o,s.walkTokens);let a=(s.hooks?s.hooks.provideParser():e?ut.parse:ut.parseInline)(o,s);return s.hooks&&(a=s.hooks.postprocess(a)),a}catch(o){return i(o)}}}onError(e,t){return n=>{if(n.message+=`
|
|
68
|
+
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+zt(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},Cn=new z0;function de(e,t){return Cn.parse(e,t)}de.options=de.setOptions=function(e){return Cn.setOptions(e),de.defaults=Cn.defaults,wf(de.defaults),de},de.getDefaults=Lo,de.defaults=In,de.use=function(...e){return Cn.use(...e),de.defaults=Cn.defaults,wf(de.defaults),de},de.walkTokens=function(e,t){return Cn.walkTokens(e,t)},de.parseInline=Cn.parseInline,de.Parser=ut,de.parser=ut.parse,de.Renderer=Xs,de.TextRenderer=Ko,de.Lexer=ct,de.lexer=ct.lex,de.Tokenizer=Zs,de.Hooks=Ur,de.parse=de,de.options,de.setOptions,de.use,de.walkTokens,de.parseInline,ut.parse,ct.lex;const V0=["href"],B0=["innerHTML"],G0={key:1,class:"text-gray-500 break-words overflow-x-auto whitespace-pre-line pb-3 mb-0 dark:text-gray-400"},Z0=["href"],X0=yt({__name:"comment-content",props:{ancestorId:{},comment:{}},setup(e){const t=e,{t:n}=Et(),r=Yn();function s(o){return de(o).replace(/<a/g,'<a target="_blank"')}function i(o){if(t.ancestorId){const l=r.comments[t.ancestorId]?.children?.find(u=>Number(u.id)===Number(o));return l?.isAdmin?n("admin"):l?.user?.name||l?.user?.email||""}return""}return(o,a)=>e.comment.isAdmin?(H(),Y(Ie,{key:0},[e.comment.parentId&&e.comment.parentId!==e.comment.ancestorId?(H(),Y("a",{key:0,href:`#awcm-${e.comment.parentId}`,class:"inline-block px-2 py-1 rounded-lg mt-2 bg-base-300 text-gray-500 dark:bg-neutral-400/20 dark:text-gray-400",target:"_self"},"@"+_e(i(e.comment.parentId)),9,V0)):Oe("",!0),fe("article",{class:"text-gray-500 break-words overflow-x-auto dark:text-gray-400",innerHTML:s(e.comment.content)},null,8,B0)],64)):(H(),Y("p",G0,[e.comment.parentId&&e.comment.parentId!==e.comment.ancestorId?(H(),Y("a",{key:0,href:`#awcm-${e.comment.parentId}`,class:"inline-block px-2 py-1 rounded-lg me-1 bg-base-300 text-gray-500 dark:bg-neutral-400/20 dark:text-gray-400",target:"_self"},"@"+_e(i(e.comment.parentId)),9,Z0)):Oe("",!0),pn(_e(e.comment.content),1)]))}});function Y0(e){let t=0;for(let r=0;r<e.length;r++)t=e.charCodeAt(r)+((t<<5)-t);let n="#";for(let r=0;r<3;r++){const s=t>>r*8&255;n+=("00"+s.toString(16)).slice(-2)}return n}const J0={class:"flex items-center gap-2 text-sm text-base-content dark:text-white"},q0={class:"ac-avatar"},Q0={key:0,class:"w-6 h-6"},ek=["alt","src"],tk={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},nk=["data-tip"],rk=["href"],sk=["datetime","title"],ik=yt({__name:"comment-header",props:{comment:{},isEditing:{type:Boolean},isEditable:{type:Boolean}},emits:["edit"],setup(e,{emit:t}){const n=e,r=t,{t:s}=Et(),i=et(()=>{if(n.comment.isAdmin)return s("admin");let a=n.comment.user?.name||s("anonymous");return a=a.replace(Pv,""),a});function o(a){return`${location.origin}${location.pathname}#awcm-${a}`}return(a,l)=>(H(),Y("div",J0,[fe("div",q0,[e.comment.user?.avatar?(H(),Y("div",Q0,[fe("img",{alt:i.value,src:e.comment.user?.avatar,class:"rounded-full max-w-full max-h-full"},null,8,ek)])):(H(),Y("div",{key:1,style:Xr({"background-color":W(Y0)(i.value)}),class:"avatar-char rounded-full w-6 h-6 text-center"},[fe("span",tk,_e(i.value.substring(0,1)),1)],4))]),pn(" "+_e(i.value)+" ",1),e.comment.isAdmin?(H(),Y("div",{key:0,"data-tip":W(s)("admin"),class:"ac-tooltip text-success"},[Se(W(Yv),{class:"block",size:18})],8,nk)):Oe("",!0),fe("a",{href:o(e.comment.id),class:"no-underline hover:underline hover:decoration-green-middle"},[fe("time",{datetime:e.comment.createdAt.toISOString(),title:W(pf)(e.comment.createdAt),class:"text-xs text-gray-600 dark:text-gray-400"},_e(W(pf)(e.comment.createdAt)),9,sk)],8,rk),e.isEditable?(H(),Y("button",{key:1,class:"ac-btn ac-btn-link ac-btn-xs hover:no-underline",type:"button",onClick:l[0]||(l[0]=u=>r("edit"))},_e(W(s)("edit")),1)):Oe("",!0)]))}}),ok=["id"],ak={class:"flex justify-between items-center font-sans"},lk={key:0,class:"italic mt-4 text-emerald-600 mb-0 text-sm dark:text-emerald-300"},ck=yt({...{name:"CommentItem"},props:{comment:{},isFirst:{type:Boolean},isFirstLevel:{type:Boolean},isLast:{type:Boolean},ancestorId:{}},setup(e){const t=e,{t:n}=Et(),r=Yn(),s=Us();let i;const o=q(Date.now()),a=q(!1),l=q(!1),u=et(()=>t.comment.userId===s.user?.sub&&o.value-t.comment.createdAt.getTime()<36e5);return jn(()=>{u.value&&(i=setInterval(()=>{o.value=Date.now(),u.value||clearInterval(i)},1e3))}),Fa(()=>{clearInterval(i)}),(c,f)=>{const d=uh("comment-item",!0);return H(),Y("div",{id:"awcm-"+e.comment.id,class:Pn([[{"animated flash":e.comment.isNew},e.isFirstLevel?"mb-4":e.isFirst?"-mt-4":"mt-1"],"comment-item target:outline target:outline-green-500 target:outline-2 dark:target:outline-1"]),onAnimationend:f[6]||(f[6]=h=>W(r).updateComment(e.comment.id,{isNew:!1}))},[fe("div",{class:Pn(["pt-2 px-4 text-base bg-base-200 dark:bg-gray-900",[{"rounded-lg":e.isFirstLevel,"rounded-b-lg":e.isLast,"rounded-t-lg shadow-outline-md":e.isFirst},e.comment.children?.length?"pb-6":"pb-3"]])},[fe("header",ak,[Se(ik,{comment:e.comment,"is-editable":u.value,"is-editing":a.value,onEdit:f[0]||(f[0]=h=>a.value=!a.value)},null,8,["comment","is-editable","is-editing"]),Se(a0,{comment:e.comment,onReply:f[1]||(f[1]=h=>l.value=!l.value)},null,8,["comment"])]),Se(X0,{"ancestor-id":e.ancestorId,comment:e.comment},null,8,["ancestor-id","comment"]),e.comment.status===W(js).Pending?(H(),Y("p",lk,_e(W(n)("approve_hint")),1)):Oe("",!0)],2),a.value?(H(),Jt(Ws,{key:0,content:e.comment.content,"current-id":e.comment.id,status:e.comment.status,class:"mt-3","no-version":"",onClose:f[2]||(f[2]=h=>a.value=!1),onUpdate:f[3]||(f[3]=h=>W(r).updateComment(e.comment.id,{content:h}))},null,8,["content","current-id","status"])):Oe("",!0),l.value&&e.isFirstLevel?(H(),Jt(Ws,{key:1,"ancestor-id":e.ancestorId,"parent-id":Number(e.comment.id),class:"mt-2 ms-7","no-version":"",onClose:f[4]||(f[4]=h=>l.value=!1)},null,8,["ancestor-id","parent-id"])):Oe("",!0),e.comment.children?.length?(H(!0),Y(Ie,{key:2},Ka(e.comment.children,(h,y)=>(H(),Jt(d,{key:h.id,"ancestor-id":e.ancestorId,comment:h,"is-first":y===0,"is-first-level":!1,"is-last":y===e.comment.children.length-1,class:"ms-7"},null,8,["ancestor-id","comment","is-first","is-last"]))),128)):Oe("",!0),l.value&&!e.isFirstLevel?(H(),Jt(Ws,{key:3,"ancestor-id":e.ancestorId,"parent-id":e.comment.id,class:"mt-2 ms-7","no-version":"",onClose:f[5]||(f[5]=h=>l.value=!1)},null,8,["ancestor-id","parent-id"])):Oe("",!0)],42,ok)}}}),uk={key:0,class:"comments-wrapper"},fk=["disabled"],dk={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},hk={key:1,class:"py-8 text-center"},pk=yt({...{name:"CommentSections"},setup(e){const{t}=Et(),n=Yn();function r(){n.start+=20,n.loadComments()}return jn(()=>{n.isLoaded||n.loadComments()}),(s,i)=>W(n).isLoaded?(H(),Y("div",uk,[(H(!0),Y(Ie,null,Ka(Object.values(W(n).comments).reverse(),o=>(H(),Jt(ck,{key:o.id,"ancestor-id":o.id,comment:o,"parent-id":o.parentId,"is-first-level":""},null,8,["ancestor-id","comment","parent-id"]))),128)),W(n).hasMore?(H(),Y("button",{key:0,disabled:W(n).loadingMore,class:"ac-btn h-11 min-h-fit ac-btn-block text-white border-0 bg-green-middle hover:bg-green-middle/75 hover:text-white",type:"button",onClick:r},[W(n).loadingMore?(H(),Y("span",dk)):Oe("",!0),pn(" "+_e(W(t)("load_more")),1)],8,fk)):Oe("",!0)])):(H(),Y("div",hk,[...i[0]||(i[0]=[fe("span",{class:"ac-loading ac-loading-spinner text-base-content"},null,-1)])]))}}),mk={class:"awesome-comment"},gk={key:0,class:"ac-alert ac-alert-error mb-4"},_k={class:"flex justify-between items-center py-2"},bk={class:"text-lg font-bold text-base-content my-0"},yk={key:0,class:"ac-loading ac-loading-spinner"},wk={key:1,class:"ac-dropdown ac-dropdown-end"},vk={key:0,class:"ac-avatar flex",tabindex:"0"},kk={class:"block w-6 h-6 rounded-full"},xk=["alt","src"],Sk={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},Tk={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},Ek={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},Ik={class:"text-base-content"},Ck=["disabled"],Ok=["disabled"],Ak=yt({__name:"App",setup(e){const t=Yn(),{t:n}=Et(),r=Us(),s=q(),i=et(()=>{const u=t.hasMore?t.total+"+":t.total;if(t.total===0)return"0";const c=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:t.total});return document.body.dispatchEvent(c),u});function o(){r.login()}function a(){r.logout({openUrl:!1})}async function l(){if(!r.isAwesomeAuth||r.isAuthenticated)return;await ir();const u=s.value;if(!u)return;u.innerHTML="";const c=window.matchMedia?.("(prefers-color-scheme: dark)").matches;await r.renderGoogleButton(u,{theme:c?"filled_black":"outline",size:"medium",text:"signin_with",shape:"pill"})}return jn(()=>{l()}),Ge(()=>r.isAuthenticated,u=>{u||l()}),(u,c)=>(H(),Y("div",mk,[W(t).message?(H(),Y("div",gk,[fe("p",null,_e(W(t).message),1)])):Oe("",!0),fe("header",_k,[fe("h2",bk,_e(W(n)("discussion"))+" ("+_e(i.value)+") ",1),W(r).isLoading?(H(),Y("span",yk)):W(r).isAuthenticated&&W(r).user?(H(),Y("div",wk,[W(r).user.picture?(H(),Y("label",vk,[fe("span",kk,[fe("img",{alt:W(r).user.name||W(r).user.email,src:W(r).user.picture,class:"w-full h-full block"},null,8,xk)])])):(H(),Y("label",Sk,_e(W(r).user.email),1)),fe("ul",Tk,[W(r).user.picture?(H(),Y("li",Ek,[fe("span",Ik,_e(W(r).user.email),1)])):Oe("",!0),fe("li",null,[fe("button",{disabled:W(r).isLoading,class:"border-0 bg-base-100",type:"button",onClick:a},_e(W(n)("logout")),9,Ck)])])])):(H(),Y(Ie,{key:2},[W(r).isAwesomeAuth?(H(),Y("div",{key:0,ref_key:"googleButton",ref:s,class:"g-id-signin"},null,512)):(H(),Y("button",{key:1,disabled:W(r).isLoading,class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",onClick:o},_e(W(n)("login")),9,Ok))],64))]),Se(Ws),Se(pk)]))}}),jf=[];let Wo=0,Ho=null;function Pk({domain:e,clientId:t,locale:n=navigator.language}){const r=Ep(Ak),s=Op(),i=Ho||e&&t&&uc({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),o=o_({legacy:!1,locale:n,fallbackLocale:"en",messages:{...vv(cf,"cn"),"zh-CN":cf.cn}});return i&&r.use(i),r.use(s),r.use(o),r}return{postId:"",apiUrl:"",domain:"",clientId:"",locale:"",awesomeAuth:void 0,turnstileSiteKey:"",init(e,{postId:t,apiUrl:n,domain:r,clientId:s,awesomeAuth:i,turnstileSiteKey:o,locale:a=navigator.language,siteId:l,autoFocus:u}={}){t??=this.postId,n??=this.apiUrl,r??=this.domain||"",s??=this.clientId,i??=this.awesomeAuth,o??=this.turnstileSiteKey,l??=this.siteId,n=Oo(n);const c=Pk({domain:r,clientId:s,locale:a});c.provide("ApiBaseUrl",n),c.provide("postId",t),c.provide("Auth0Domain",r),c.provide("comments",jf),c.provide("total",Wo),c.provide("awesomeAuth",i),c.provide("TurnstileSiteKey",o),c.provide("siteId",l),c.provide("AutoFocus",u||!1),c.mount(e)},async preload({postId:e,apiUrl:t,domain:n,clientId:r,awesomeAuth:s,turnstileSiteKey:i,siteId:o}){if(this.postId=e||"",this.apiUrl=Oo(t),this.domain=n||"",this.clientId=r||"",this.turnstileSiteKey=i||"",this.siteId=o||"",n&&r&&(Ho=uc({domain:n,clientId:r,authorizationParams:{redirect_uri:window.location.origin}})),!Ho&&!s)throw new Error("You need at least 1 Auth provider.");this.awesomeAuth=s;const a=new URLSearchParams;a.set("postId",e),o&&a.set("siteId",o);const l=await fetch(mf(this.apiUrl,`/api/comments?${a.toString()}`));l.ok||console.log("[Awesome comment] Failed to preload comments.");const u=await l.json();if(u.data){jf.push(...u.data),Wo=u.meta?.total||u.data.length;const c=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:Wo});document.body.dispatchEvent(c)}}}}));
|