@roudanio/awesome-comment 0.7.13 → 0.7.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/awesome-comment.iife.js +56 -55
- package/dist/awesome-comment.js +4736 -4688
- package/dist/awesome-comment.umd.js +57 -56
- package/dist/style.css +1 -1
- package/package.json +9 -10
|
@@ -1,80 +1,81 @@
|
|
|
1
1
|
var AwesomeComment=function(){"use strict";/**
|
|
2
|
-
* @vue/shared v3.4.
|
|
2
|
+
* @vue/shared v3.4.26
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
|
-
|
|
6
|
-
* @vue/reactivity v3.4.
|
|
5
|
+
**//*! #__NO_SIDE_EFFECTS__ */function tr(e,t){const n=new Set(e.split(","));return s=>n.has(s)}const he={},un=[],Xe=()=>{},uc=()=>!1,qn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),nr=e=>e.startsWith("onUpdate:"),Ee=Object.assign,sr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},fc=Object.prototype.hasOwnProperty,te=(e,t)=>fc.call(e,t),z=Array.isArray,fn=e=>Qn(e)==="[object Map]",Li=e=>Qn(e)==="[object Set]",X=e=>typeof e=="function",ye=e=>typeof e=="string",jt=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",Oi=e=>(ge(e)||X(e))&&X(e.then)&&X(e.catch),Si=Object.prototype.toString,Qn=e=>Si.call(e),dc=e=>Qn(e).slice(8,-1),xi=e=>Qn(e)==="[object Object]",rr=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,On=tr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),es=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},hc=/-(\w)/g,st=es(e=>e.replace(hc,(t,n)=>n?n.toUpperCase():"")),mc=/\B([A-Z])/g,Wt=es(e=>e.replace(mc,"-$1").toLowerCase()),ts=es(e=>e.charAt(0).toUpperCase()+e.slice(1)),ir=es(e=>e?`on${ts(e)}`:""),It=(e,t)=>!Object.is(e,t),ns=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ci=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},or=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ni;const Pi=()=>Ni||(Ni=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ss(e){if(z(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],i=ye(s)?bc(s):ss(s);if(i)for(const r in i)t[r]=i[r]}return t}else if(ye(e)||ge(e))return e}const pc=/;(?![^(]*\))/g,gc=/:([^]+)/,_c=/\/\*[^]*?\*\//g;function bc(e){const t={};return e.replace(_c,"").split(pc).forEach(n=>{if(n){const s=n.split(gc);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function rs(e){let t="";if(ye(e))t=e;else if(z(e))for(let n=0;n<e.length;n++){const s=rs(e[n]);s&&(t+=s+" ")}else if(ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const yc=tr("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Ai(e){return!!e||e===""}const _e=e=>ye(e)?e:e==null?"":z(e)||ge(e)&&(e.toString===Si||!X(e.toString))?JSON.stringify(e,Ri,2):String(e),Ri=(e,t)=>t&&t.__v_isRef?Ri(e,t.value):fn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],r)=>(n[ar(s,r)+" =>"]=i,n),{})}:Li(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ar(n))}:jt(t)?ar(t):ge(t)&&!z(t)&&!xi(t)?String(t):t,ar=(e,t="")=>{var n;return jt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
|
+
* @vue/reactivity v3.4.26
|
|
7
7
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
8
|
* @license MIT
|
|
9
|
-
**/let ze;class Mo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ze,!t&&ze&&(this.index=(ze.scopes||(ze.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=ze;try{return ze=this,t()}finally{ze=n}}}on(){ze=this}off(){ze=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function ir(e){return new Mo(e)}function hc(e,t=ze){t&&t.active&&t.effects.push(e)}function Fo(){return ze}function mc(e){ze&&ze.cleanups.push(e)}let Ht;class ar{constructor(t,n,s,o){this.fn=t,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,hc(this,o)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Ot();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(pc(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),St()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Lt,n=Ht;try{return Lt=!0,Ht=this,this._runnings++,Do(this),this.fn()}finally{$o(this),this._runnings--,Ht=n,Lt=t}}stop(){var t;this.active&&(Do(this),$o(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function pc(e){return e.value}function Do(e){e._trackId++,e._depsLength=0}function $o(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Uo(e.deps[t],e);e.deps.length=e._depsLength}}function Uo(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Lt=!0,lr=0;const jo=[];function Ot(){jo.push(Lt),Lt=!1}function St(){const e=jo.pop();Lt=e===void 0?!0:e}function cr(){lr++}function ur(){for(lr--;!lr&&fr.length;)fr.shift()()}function Wo(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&Uo(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const fr=[];function Ho(e,t,n){cr();for(const s of e.keys()){let o;s._dirtyLevel<t&&(o??(o=e.get(s)===s._trackId))&&(s._shouldSchedule||(s._shouldSchedule=s._dirtyLevel===0),s._dirtyLevel=t),s._shouldSchedule&&(o??(o=e.get(s)===s._trackId))&&(s.trigger(),(!s._runnings||s.allowRecurse)&&s._dirtyLevel!==2&&(s._shouldSchedule=!1,s.scheduler&&fr.push(s.scheduler)))}ur()}const Vo=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},os=new WeakMap,Vt=Symbol(""),dr=Symbol("");function je(e,t,n){if(Lt&&Ht){let s=os.get(e);s||os.set(e,s=new Map);let o=s.get(n);o||s.set(n,o=Vo(()=>s.delete(n))),Wo(Ht,o)}}function _t(e,t,n,s,o,r){const i=os.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&z(e)){const l=Number(s);i.forEach((h,f)=>{(f==="length"||!un(f)&&f>=l)&&a.push(h)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":z(e)?nr(n)&&a.push(i.get("length")):(a.push(i.get(Vt)),cn(e)&&a.push(i.get(dr)));break;case"delete":z(e)||(a.push(i.get(Vt)),cn(e)&&a.push(i.get(dr)));break;case"set":cn(e)&&a.push(i.get(Vt));break}cr();for(const l of a)l&&Ho(l,4);ur()}function gc(e,t){var n;return(n=os.get(e))==null?void 0:n.get(t)}const _c=Qs("__proto__,__v_isRef,__isVue"),Ko=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(un)),zo=bc();function bc(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=Q(this);for(let r=0,i=this.length;r<i;r++)je(s,"get",r+"");const o=s[t](...n);return o===-1||o===!1?s[t](...n.map(Q)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Ot(),cr();const s=Q(this)[t].apply(this,n);return ur(),St(),s}}),e}function yc(e){const t=Q(this);return je(t,"has",e),t.hasOwnProperty(e)}class Go{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(o?r?Pc:ei:r?Qo:qo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=z(t);if(!o){if(i&&ee(zo,n))return Reflect.get(zo,n,s);if(n==="hasOwnProperty")return yc}const a=Reflect.get(t,n,s);return(un(n)?Ko.has(n):_c(n))||(o||je(t,"get",n),r)?a:_e(a)?i&&nr(n)?a:a.value:pe(a)?o?ti(a):ds(a):a}}class Yo extends Go{constructor(t=!1){super(!1,t)}set(t,n,s,o){let r=t[n];if(!this._isShallow){const l=fn(r);if(!hs(s)&&!fn(s)&&(r=Q(r),s=Q(s)),!z(t)&&_e(r)&&!_e(s))return l?!1:(r.value=s,!0)}const i=z(t)&&nr(n)?Number(n)<t.length:ee(t,n),a=Reflect.set(t,n,s,o);return t===Q(o)&&(i?Tt(s,r)&&_t(t,"set",n,s):_t(t,"add",n,s)),a}deleteProperty(t,n){const s=ee(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&_t(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!un(n)||!Ko.has(n))&&je(t,"has",n),s}ownKeys(t){return je(t,"iterate",z(t)?"length":Vt),Reflect.ownKeys(t)}}class kc extends Go{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const wc=new Yo,vc=new kc,Ec=new Yo(!0),hr=e=>e,is=e=>Reflect.getPrototypeOf(e);function as(e,t,n=!1,s=!1){e=e.__v_raw;const o=Q(e),r=Q(t);n||(Tt(t,r)&&je(o,"get",t),je(o,"get",r));const{has:i}=is(o),a=s?hr:n?gr:Sn;if(i.call(o,t))return a(e.get(t));if(i.call(o,r))return a(e.get(r));e!==o&&e.get(t)}function ls(e,t=!1){const n=this.__v_raw,s=Q(n),o=Q(e);return t||(Tt(e,o)&&je(s,"has",e),je(s,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function cs(e,t=!1){return e=e.__v_raw,!t&&je(Q(e),"iterate",Vt),Reflect.get(e,"size",e)}function Bo(e){e=Q(e);const t=Q(this);return is(t).has.call(t,e)||(t.add(e),_t(t,"add",e,e)),this}function Xo(e,t){t=Q(t);const n=Q(this),{has:s,get:o}=is(n);let r=s.call(n,e);r||(e=Q(e),r=s.call(n,e));const i=o.call(n,e);return n.set(e,t),r?Tt(t,i)&&_t(n,"set",e,t):_t(n,"add",e,t),this}function Zo(e){const t=Q(this),{has:n,get:s}=is(t);let o=n.call(t,e);o||(e=Q(e),o=n.call(t,e)),s&&s.call(t,e);const r=t.delete(e);return o&&_t(t,"delete",e,void 0),r}function Jo(){const e=Q(this),t=e.size!==0,n=e.clear();return t&&_t(e,"clear",void 0,void 0),n}function us(e,t){return function(s,o){const r=this,i=r.__v_raw,a=Q(i),l=t?hr:e?gr:Sn;return!e&&je(a,"iterate",Vt),i.forEach((h,f)=>s.call(o,l(h),l(f),r))}}function fs(e,t,n){return function(...s){const o=this.__v_raw,r=Q(o),i=cn(r),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,h=o[e](...s),f=n?hr:t?gr:Sn;return!t&&je(r,"iterate",l?dr:Vt),{next(){const{value:m,done:d}=h.next();return d?{value:m,done:d}:{value:a?[f(m[0]),f(m[1])]:f(m),done:d}},[Symbol.iterator](){return this}}}}function xt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ic(){const e={get(r){return as(this,r)},get size(){return cs(this)},has:ls,add:Bo,set:Xo,delete:Zo,clear:Jo,forEach:us(!1,!1)},t={get(r){return as(this,r,!1,!0)},get size(){return cs(this)},has:ls,add:Bo,set:Xo,delete:Zo,clear:Jo,forEach:us(!1,!0)},n={get(r){return as(this,r,!0)},get size(){return cs(this,!0)},has(r){return ls.call(this,r,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:us(!0,!1)},s={get(r){return as(this,r,!0,!0)},get size(){return cs(this,!0)},has(r){return ls.call(this,r,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:us(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=fs(r,!1,!1),n[r]=fs(r,!0,!1),t[r]=fs(r,!1,!0),s[r]=fs(r,!0,!0)}),[e,n,t,s]}const[Tc,Lc,Oc,Sc]=Ic();function mr(e,t){const n=t?e?Sc:Oc:e?Lc:Tc;return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(ee(n,o)&&o in s?n:s,o,r)}const xc={get:mr(!1,!1)},Cc={get:mr(!1,!0)},Nc={get:mr(!0,!1)},qo=new WeakMap,Qo=new WeakMap,ei=new WeakMap,Pc=new WeakMap;function Ac(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Rc(e){return e.__v_skip||!Object.isExtensible(e)?0:Ac(oc(e))}function ds(e){return fn(e)?e:pr(e,!1,wc,xc,qo)}function Mc(e){return pr(e,!1,Ec,Cc,Qo)}function ti(e){return pr(e,!0,vc,Nc,ei)}function pr(e,t,n,s,o){if(!pe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=o.get(e);if(r)return r;const i=Rc(e);if(i===0)return e;const a=new Proxy(e,i===2?s:n);return o.set(e,a),a}function Ct(e){return fn(e)?Ct(e.__v_raw):!!(e&&e.__v_isReactive)}function fn(e){return!!(e&&e.__v_isReadonly)}function hs(e){return!!(e&&e.__v_isShallow)}function ni(e){return Ct(e)||fn(e)}function Q(e){const t=e&&e.__v_raw;return t?Q(t):e}function ms(e){return Object.isExtensible(e)&&ns(e,"__v_skip",!0),e}const Sn=e=>pe(e)?ds(e):e,gr=e=>pe(e)?ti(e):e;class si{constructor(t,n,s,o){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ar(()=>t(this._value),()=>ps(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=s}get value(){const t=Q(this);return(!t._cacheable||t.effect.dirty)&&Tt(t._value,t._value=t.effect.run())&&ps(t,4),ri(t),t.effect._dirtyLevel>=2&&ps(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Fc(e,t,n=!1){let s,o;const r=B(e);return r?(s=e,o=Ze):(s=e.get,o=e.set),new si(s,o,r||!o,n)}function ri(e){var t;Lt&&Ht&&(e=Q(e),Wo(Ht,(t=e.dep)!=null?t:e.dep=Vo(()=>e.dep=void 0,e instanceof si?e:void 0)))}function ps(e,t=4,n){e=Q(e);const s=e.dep;s&&Ho(s,t)}function _e(e){return!!(e&&e.__v_isRef===!0)}function te(e){return ii(e,!1)}function oi(e){return ii(e,!0)}function ii(e,t){return _e(e)?e:new Dc(e,t)}class Dc{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Q(t),this._value=n?t:Sn(t)}get value(){return ri(this),this._value}set value(t){const n=this.__v_isShallow||hs(t)||fn(t);t=n?t:Q(t),Tt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Sn(t),ps(this,4))}}function X(e){return _e(e)?e.value:e}const $c={get:(e,t,n)=>X(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return _e(o)&&!_e(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function ai(e){return Ct(e)?e:new Proxy(e,$c)}function Uc(e){const t=z(e)?new Array(e.length):{};for(const n in e)t[n]=Wc(e,n);return t}class jc{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return gc(Q(this._object),this._key)}}function Wc(e,t,n){const s=e[t];return _e(s)?s:new jc(e,t,n)}/**
|
|
10
|
-
* @vue/runtime-core v3.4.
|
|
9
|
+
**/let Ve;class Mi{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ve,!t&&Ve&&(this.index=(Ve.scopes||(Ve.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ve;try{return Ve=this,t()}finally{Ve=n}}}on(){Ve=this}off(){Ve=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function lr(e){return new Mi(e)}function kc(e,t=Ve){t&&t.active&&t.effects.push(e)}function Di(){return Ve}function wc(e){Ve&&Ve.cleanups.push(e)}let Ht;class cr{constructor(t,n,s,i){this.fn=t,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,kc(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,mt();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(vc(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),pt()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Tt,n=Ht;try{return Tt=!0,Ht=this,this._runnings++,Fi(this),this.fn()}finally{$i(this),this._runnings--,Ht=n,Tt=t}}stop(){this.active&&(Fi(this),$i(this),this.onStop&&this.onStop(),this.active=!1)}}function vc(e){return e.value}function Fi(e){e._trackId++,e._depsLength=0}function $i(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Ui(e.deps[t],e);e.deps.length=e._depsLength}}function Ui(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Tt=!0,ur=0;const ji=[];function mt(){ji.push(Tt),Tt=!1}function pt(){const e=ji.pop();Tt=e===void 0?!0:e}function fr(){ur++}function dr(){for(ur--;!ur&&hr.length;)hr.shift()()}function Wi(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&Ui(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const hr=[];function Hi(e,t,n){fr();for(const s of e.keys()){let i;s._dirtyLevel<t&&(i??(i=e.get(s)===s._trackId))&&(s._shouldSchedule||(s._shouldSchedule=s._dirtyLevel===0),s._dirtyLevel=t),s._shouldSchedule&&(i??(i=e.get(s)===s._trackId))&&(s.trigger(),(!s._runnings||s.allowRecurse)&&s._dirtyLevel!==2&&(s._shouldSchedule=!1,s.scheduler&&hr.push(s.scheduler)))}dr()}const Vi=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},is=new WeakMap,Vt=Symbol(""),mr=Symbol("");function Ue(e,t,n){if(Tt&&Ht){let s=is.get(e);s||is.set(e,s=new Map);let i=s.get(n);i||s.set(n,i=Vi(()=>s.delete(n))),Wi(Ht,i)}}function gt(e,t,n,s,i,r){const o=is.get(e);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(n==="length"&&z(e)){const l=Number(s);o.forEach((f,c)=>{(c==="length"||!jt(c)&&c>=l)&&a.push(f)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":z(e)?rr(n)&&a.push(o.get("length")):(a.push(o.get(Vt)),fn(e)&&a.push(o.get(mr)));break;case"delete":z(e)||(a.push(o.get(Vt)),fn(e)&&a.push(o.get(mr)));break;case"set":fn(e)&&a.push(o.get(Vt));break}fr();for(const l of a)l&&Hi(l,4);dr()}function Ec(e,t){const n=is.get(e);return n&&n.get(t)}const Ic=tr("__proto__,__v_isRef,__isVue"),Ki=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(jt)),zi=Tc();function Tc(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=ee(this);for(let r=0,o=this.length;r<o;r++)Ue(s,"get",r+"");const i=s[t](...n);return i===-1||i===!1?s[t](...n.map(ee)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){mt(),fr();const s=ee(this)[t].apply(this,n);return dr(),pt(),s}}),e}function Lc(e){jt(e)||(e=String(e));const t=ee(this);return Ue(t,"has",e),t.hasOwnProperty(e)}class Yi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const i=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(i?r?no:to:r?eo:Qi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=z(t);if(!i){if(o&&te(zi,n))return Reflect.get(zi,n,s);if(n==="hasOwnProperty")return Lc}const a=Reflect.get(t,n,s);return(jt(n)?Ki.has(n):Ic(n))||(i||Ue(t,"get",n),r)?a:be(a)?o&&rr(n)?a:a.value:ge(a)?i?so(a):hs(a):a}}class Gi extends Yi{constructor(t=!1){super(!1,t)}set(t,n,s,i){let r=t[n];if(!this._isShallow){const l=Sn(r);if(!ps(s)&&!Sn(s)&&(r=ee(r),s=ee(s)),!z(t)&&be(r)&&!be(s))return l?!1:(r.value=s,!0)}const o=z(t)&&rr(n)?Number(n)<t.length:te(t,n),a=Reflect.set(t,n,s,i);return t===ee(i)&&(o?It(s,r)&>(t,"set",n,s):gt(t,"add",n,s)),a}deleteProperty(t,n){const s=te(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&s&>(t,"delete",n,void 0),i}has(t,n){const s=Reflect.has(t,n);return(!jt(n)||!Ki.has(n))&&Ue(t,"has",n),s}ownKeys(t){return Ue(t,"iterate",z(t)?"length":Vt),Reflect.ownKeys(t)}}class Bi extends Yi{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Oc=new Gi,Sc=new Bi,xc=new Gi(!0),Cc=new Bi(!0),pr=e=>e,os=e=>Reflect.getPrototypeOf(e);function as(e,t,n=!1,s=!1){e=e.__v_raw;const i=ee(e),r=ee(t);n||(It(t,r)&&Ue(i,"get",t),Ue(i,"get",r));const{has:o}=os(i),a=s?pr:n?_r:xn;if(o.call(i,t))return a(e.get(t));if(o.call(i,r))return a(e.get(r));e!==i&&e.get(t)}function ls(e,t=!1){const n=this.__v_raw,s=ee(n),i=ee(e);return t||(It(e,i)&&Ue(s,"has",e),Ue(s,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function cs(e,t=!1){return e=e.__v_raw,!t&&Ue(ee(e),"iterate",Vt),Reflect.get(e,"size",e)}function Xi(e){e=ee(e);const t=ee(this);return os(t).has.call(t,e)||(t.add(e),gt(t,"add",e,e)),this}function Zi(e,t){t=ee(t);const n=ee(this),{has:s,get:i}=os(n);let r=s.call(n,e);r||(e=ee(e),r=s.call(n,e));const o=i.call(n,e);return n.set(e,t),r?It(t,o)&>(n,"set",e,t):gt(n,"add",e,t),this}function Ji(e){const t=ee(this),{has:n,get:s}=os(t);let i=n.call(t,e);i||(e=ee(e),i=n.call(t,e)),s&&s.call(t,e);const r=t.delete(e);return i&>(t,"delete",e,void 0),r}function qi(){const e=ee(this),t=e.size!==0,n=e.clear();return t&>(e,"clear",void 0,void 0),n}function us(e,t){return function(s,i){const r=this,o=r.__v_raw,a=ee(o),l=t?pr:e?_r:xn;return!e&&Ue(a,"iterate",Vt),o.forEach((f,c)=>s.call(i,l(f),l(c),r))}}function fs(e,t,n){return function(...s){const i=this.__v_raw,r=ee(i),o=fn(r),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,f=i[e](...s),c=n?pr:t?_r:xn;return!t&&Ue(r,"iterate",l?mr:Vt),{next(){const{value:d,done:u}=f.next();return u?{value:d,done:u}:{value:a?[c(d[0]),c(d[1])]:c(d),done:u}},[Symbol.iterator](){return this}}}}function Lt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Nc(){const e={get(r){return as(this,r)},get size(){return cs(this)},has:ls,add:Xi,set:Zi,delete:Ji,clear:qi,forEach:us(!1,!1)},t={get(r){return as(this,r,!1,!0)},get size(){return cs(this)},has:ls,add:Xi,set:Zi,delete:Ji,clear:qi,forEach:us(!1,!0)},n={get(r){return as(this,r,!0)},get size(){return cs(this,!0)},has(r){return ls.call(this,r,!0)},add:Lt("add"),set:Lt("set"),delete:Lt("delete"),clear:Lt("clear"),forEach:us(!0,!1)},s={get(r){return as(this,r,!0,!0)},get size(){return cs(this,!0)},has(r){return ls.call(this,r,!0)},add:Lt("add"),set:Lt("set"),delete:Lt("delete"),clear:Lt("clear"),forEach:us(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=fs(r,!1,!1),n[r]=fs(r,!0,!1),t[r]=fs(r,!1,!0),s[r]=fs(r,!0,!0)}),[e,n,t,s]}const[Pc,Ac,Rc,Mc]=Nc();function ds(e,t){const n=t?e?Mc:Rc:e?Ac:Pc;return(s,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?s:Reflect.get(te(n,i)&&i in s?n:s,i,r)}const Dc={get:ds(!1,!1)},Fc={get:ds(!1,!0)},$c={get:ds(!0,!1)},Uc={get:ds(!0,!0)},Qi=new WeakMap,eo=new WeakMap,to=new WeakMap,no=new WeakMap;function jc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wc(e){return e.__v_skip||!Object.isExtensible(e)?0:jc(dc(e))}function hs(e){return Sn(e)?e:ms(e,!1,Oc,Dc,Qi)}function Hc(e){return ms(e,!1,xc,Fc,eo)}function so(e){return ms(e,!0,Sc,$c,to)}function Bp(e){return ms(e,!0,Cc,Uc,no)}function ms(e,t,n,s,i){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const o=Wc(e);if(o===0)return e;const a=new Proxy(e,o===2?s:n);return i.set(e,a),a}function Kt(e){return Sn(e)?Kt(e.__v_raw):!!(e&&e.__v_isReactive)}function Sn(e){return!!(e&&e.__v_isReadonly)}function ps(e){return!!(e&&e.__v_isShallow)}function ro(e){return e?!!e.__v_raw:!1}function ee(e){const t=e&&e.__v_raw;return t?ee(t):e}function gr(e){return Object.isExtensible(e)&&Ci(e,"__v_skip",!0),e}const xn=e=>ge(e)?hs(e):e,_r=e=>ge(e)?so(e):e;class io{constructor(t,n,s,i){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new cr(()=>t(this._value),()=>gs(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=s}get value(){const t=ee(this);return(!t._cacheable||t.effect.dirty)&&It(t._value,t._value=t.effect.run())&&gs(t,4),oo(t),t.effect._dirtyLevel>=2&&gs(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Vc(e,t,n=!1){let s,i;const r=X(e);return r?(s=e,i=Xe):(s=e.get,i=e.set),new io(s,i,r||!i,n)}function oo(e){var t;Tt&&Ht&&(e=ee(e),Wi(Ht,(t=e.dep)!=null?t:e.dep=Vi(()=>e.dep=void 0,e instanceof io?e:void 0)))}function gs(e,t=4,n){e=ee(e);const s=e.dep;s&&Hi(s,t)}function be(e){return!!(e&&e.__v_isRef===!0)}function se(e){return lo(e,!1)}function ao(e){return lo(e,!0)}function lo(e,t){return be(e)?e:new Kc(e,t)}class Kc{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ee(t),this._value=n?t:xn(t)}get value(){return oo(this),this._value}set value(t){const n=this.__v_isShallow||ps(t)||Sn(t);t=n?t:ee(t),It(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:xn(t),gs(this,4))}}function Z(e){return be(e)?e.value:e}const zc={get:(e,t,n)=>Z(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return be(i)&&!be(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function co(e){return Kt(e)?e:new Proxy(e,zc)}function Yc(e){const t=z(e)?new Array(e.length):{};for(const n in e)t[n]=Bc(e,n);return t}class Gc{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Ec(ee(this._object),this._key)}}function Bc(e,t,n){const s=e[t];return be(s)?s:new Gc(e,t,n)}/**
|
|
10
|
+
* @vue/runtime-core v3.4.26
|
|
11
11
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
12
|
* @license MIT
|
|
13
|
-
**/const
|
|
14
|
-
`),
|
|
15
|
-
`,...
|
|
16
|
-
`],...Kc(n))}),t}function Kc({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,o=` at <${Qi(e.component,e.type,s)}`,r=">"+n;return e.props?[o,...zc(e.props),r]:[o+r]}function zc(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...li(s,e[s]))}),n.length>3&&t.push(" ..."),t}function li(e,t,n){return ye(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:_e(t)?(t=li(e,Q(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):B(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Q(t),n?t:[`${e}=`,t])}function bt(e,t,n,s){try{return s?e(...s):e()}catch(o){gs(o,t,n)}}function Qe(e,t,n,s){if(B(e)){const r=bt(e,t,n,s);return r&&So(r)&&r.catch(i=>{gs(i,t,n)}),r}const o=[];for(let r=0;r<e.length;r++)o.push(Qe(e[r],t,n,s));return o}function gs(e,t,n,s=!0){const o=t?t.vnode:null;if(t){let r=t.parent;const i=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const h=r.ec;if(h){for(let f=0;f<h.length;f++)if(h[f](e,i,a)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){bt(l,null,10,[e,i,a]);return}}Gc(e,n,o,s)}function Gc(e,t,n,s=!0){console.error(e)}let Cn=!1,_r=!1;const xe=[];let ot=0;const dn=[];let Nt=null,Kt=0;const ci=Promise.resolve();let br=null;function ui(e){const t=br||ci;return e?t.then(this?e.bind(this):e):t}function Yc(e){let t=ot+1,n=xe.length;for(;t<n;){const s=t+n>>>1,o=xe[s],r=Nn(o);r<e||r===e&&o.pre?t=s+1:n=s}return t}function yr(e){(!xe.length||!xe.includes(e,Cn&&e.allowRecurse?ot+1:ot))&&(e.id==null?xe.push(e):xe.splice(Yc(e.id),0,e),fi())}function fi(){!Cn&&!_r&&(_r=!0,br=ci.then(mi))}function Bc(e){const t=xe.indexOf(e);t>ot&&xe.splice(t,1)}function Xc(e){z(e)?dn.push(...e):(!Nt||!Nt.includes(e,e.allowRecurse?Kt+1:Kt))&&dn.push(e),fi()}function di(e,t,n=Cn?ot+1:0){for(;n<xe.length;n++){const s=xe[n];if(s&&s.pre){if(e&&s.id!==e.uid)continue;xe.splice(n,1),n--,s()}}}function hi(e){if(dn.length){const t=[...new Set(dn)].sort((n,s)=>Nn(n)-Nn(s));if(dn.length=0,Nt){Nt.push(...t);return}for(Nt=t,Kt=0;Kt<Nt.length;Kt++)Nt[Kt]();Nt=null,Kt=0}}const Nn=e=>e.id==null?1/0:e.id,Zc=(e,t)=>{const n=Nn(e)-Nn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function mi(e){_r=!1,Cn=!0,xe.sort(Zc);try{for(ot=0;ot<xe.length;ot++){const t=xe[ot];t&&t.active!==!1&&bt(t,null,14)}}finally{ot=0,xe.length=0,hi(),Cn=!1,br=null,(xe.length||dn.length)&&mi()}}function Jc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||he;let o=n;const r=t.startsWith("update:"),i=r&&t.slice(7);if(i&&i in s){const f=`${i==="modelValue"?"model":i}Modifiers`,{number:m,trim:d}=s[f]||he;d&&(o=n.map(g=>ye(g)?g.trim():g)),m&&(o=n.map(rr))}let a,l=s[a=sr(t)]||s[a=sr(rt(t))];!l&&r&&(l=s[a=sr(Wt(t))]),l&&Qe(l,e,6,o);const h=s[a+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Qe(h,e,6,o)}}function pi(e,t,n=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},a=!1;if(!B(e)){const l=h=>{const f=pi(h,t,!0);f&&(a=!0,Le(i,f))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!a?(pe(e)&&s.set(e,null),null):(z(r)?r.forEach(l=>i[l]=null):Le(i,r),pe(e)&&s.set(e,i),i)}function _s(e,t){return!e||!Jn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ee(e,t[0].toLowerCase()+t.slice(1))||ee(e,Wt(t))||ee(e,t))}let Ce=null,gi=null;function bs(e){const t=Ce;return Ce=e,gi=e&&e.type.__scopeId||null,t}function qc(e,t=Ce,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Ki(-1);const r=bs(t);let i;try{i=e(...o)}finally{bs(r),s._d&&Ki(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function $p(){}function kr(e){const{type:t,vnode:n,proxy:s,withProxy:o,props:r,propsOptions:[i],slots:a,attrs:l,emit:h,render:f,renderCache:m,data:d,setupState:g,ctx:w,inheritAttrs:E}=e;let I,_;const k=bs(e);try{if(n.shapeFlag&4){const b=o||s,S=b;I=it(f.call(S,b,m,r,g,d,w)),_=l}else{const b=t;I=it(b.length>1?b(r,{attrs:l,slots:a,emit:h}):b(r,null)),_=t.props?l:Qc(l)}}catch(b){Mn.length=0,gs(b,e,1),I=Ne(Zt)}let y=I;if(_&&E!==!1){const b=Object.keys(_),{shapeFlag:S}=y;b.length&&S&7&&(i&&b.some(er)&&(_=eu(_,i)),y=pn(y,_))}return n.dirs&&(y=pn(y),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),I=y,bs(k),I}const Qc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Jn(n))&&((t||(t={}))[n]=e[n]);return t},eu=(e,t)=>{const n={};for(const s in e)(!er(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function tu(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:a,patchFlag:l}=t,h=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?_i(s,i,h):!!i;if(l&8){const f=t.dynamicProps;for(let m=0;m<f.length;m++){const d=f[m];if(i[d]!==s[d]&&!_s(h,d))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:s===i?!1:s?i?_i(s,i,h):!0:!!i;return!1}function _i(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const r=s[o];if(t[r]!==e[r]&&!_s(n,r))return!0}return!1}function nu({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const bi="components";function su(e,t){return ou(bi,e,!0,t)||e}const ru=Symbol.for("v-ndc");function ou(e,t,n=!0,s=!1){const o=Ce||Ie;if(o){const r=o.type;if(e===bi){const a=qi(r,!1);if(a&&(a===t||a===rt(t)||a===es(rt(t))))return r}const i=yi(o[e]||r[e],t)||yi(o.appContext[e],t);return!i&&s?r:i}}function yi(e,t){return e&&(e[t]||e[rt(t)]||e[es(rt(t))])}const iu=e=>e.__isSuspense;function au(e,t){t&&t.pendingBranch?z(e)?t.effects.push(...e):t.effects.push(e):Xc(e)}const lu=Symbol.for("v-scx"),cu=()=>Ge(lu),ys={};function zt(e,t,n){return ki(e,t,n)}function ki(e,t,{immediate:n,deep:s,flush:o,once:r,onTrack:i,onTrigger:a}=he){if(t&&r){const x=t;t=(...D)=>{x(...D),S()}}const l=Ie,h=x=>s===!0?x:Gt(x,s===!1?1:void 0);let f,m=!1,d=!1;if(_e(e)?(f=()=>e.value,m=hs(e)):Ct(e)?(f=()=>h(e),m=!0):z(e)?(d=!0,m=e.some(x=>Ct(x)||hs(x)),f=()=>e.map(x=>{if(_e(x))return x.value;if(Ct(x))return h(x);if(B(x))return bt(x,l,2)})):B(e)?t?f=()=>bt(e,l,2):f=()=>(g&&g(),Qe(e,l,3,[w])):f=Ze,t&&s){const x=f;f=()=>Gt(x())}let g,w=x=>{g=y.onStop=()=>{bt(x,l,4),g=y.onStop=void 0}},E;if(Os)if(w=Ze,t?n&&Qe(t,l,3,[f(),d?[]:void 0,w]):f(),o==="sync"){const x=cu();E=x.__watcherHandles||(x.__watcherHandles=[])}else return Ze;let I=d?new Array(e.length).fill(ys):ys;const _=()=>{if(!(!y.active||!y.dirty))if(t){const x=y.run();(s||m||(d?x.some((D,M)=>Tt(D,I[M])):Tt(x,I)))&&(g&&g(),Qe(t,l,3,[x,I===ys?void 0:d&&I[0]===ys?[]:I,w]),I=x)}else y.run()};_.allowRecurse=!!t;let k;o==="sync"?k=_:o==="post"?k=()=>We(_,l&&l.suspense):(_.pre=!0,l&&(_.id=l.uid),k=()=>yr(_));const y=new ar(f,Ze,k),b=Fo(),S=()=>{y.stop(),b&&tr(b.effects,y)};return t?n?_():I=y.run():o==="post"?We(y.run.bind(y),l&&l.suspense):y.run(),E&&E.push(S),S}function uu(e,t,n){const s=this.proxy,o=ye(e)?e.includes(".")?wi(s,e):()=>s[e]:e.bind(s,s);let r;B(t)?r=t:(r=t.handler,n=t);const i=Un(this),a=ki(o,r.bind(s),n);return i(),a}function wi(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}function Gt(e,t,n=0,s){if(!pe(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),_e(e))Gt(e.value,t,n,s);else if(z(e))for(let o=0;o<e.length;o++)Gt(e[o],t,n,s);else if(Oo(e)||cn(e))e.forEach(o=>{Gt(o,t,n,s)});else if(Co(e))for(const o in e)Gt(e[o],t,n,s);return e}function fu(e,t){if(Ce===null)return e;const n=Ss(Ce)||Ce.proxy,s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,i,a,l=he]=t[o];r&&(B(r)&&(r={mounted:r,updated:r}),r.deep&&Gt(i),s.push({dir:r,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function Yt(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const a=o[i];r&&(a.oldValue=r[i].value);let l=a.dir[s];l&&(Ot(),Qe(l,n,8,[e.el,a,e,t]),St())}}/*! #__NO_SIDE_EFFECTS__ */function Bt(e,t){return B(e)?Le({name:e.name},t,{setup:e}):e}const ks=e=>!!e.type.__asyncLoader,vi=e=>e.type.__isKeepAlive;function du(e,t){Ei(e,"a",t)}function hu(e,t){Ei(e,"da",t)}function Ei(e,t,n=Ie){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(ws(t,s,n),n){let o=n.parent;for(;o&&o.parent;)vi(o.parent.vnode)&&mu(s,t,n,o),o=o.parent}}function mu(e,t,n,s){const o=ws(t,e,s,!0);wr(()=>{tr(s[t],o)},n)}function ws(e,t,n=Ie,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Ot();const a=Un(n),l=Qe(t,n,e,i);return a(),St(),l});return s?o.unshift(r):o.push(r),r}}const yt=e=>(t,n=Ie)=>(!Os||e==="sp")&&ws(e,(...s)=>t(...s),n),Ii=yt("bm"),vs=yt("m"),pu=yt("bu"),gu=yt("u"),Ti=yt("bum"),wr=yt("um"),_u=yt("sp"),bu=yt("rtg"),yu=yt("rtc");function ku(e,t=Ie){ws("ec",e,t)}function Li(e,t,n,s){let o;const r=n&&n[s];if(z(e)||ye(e)){o=new Array(e.length);for(let i=0,a=e.length;i<a;i++)o[i]=t(e[i],i,void 0,r&&r[i])}else if(typeof e=="number"){o=new Array(e);for(let i=0;i<e;i++)o[i]=t(i+1,i,void 0,r&&r[i])}else if(pe(e))if(e[Symbol.iterator])o=Array.from(e,(i,a)=>t(i,a,void 0,r&&r[a]));else{const i=Object.keys(e);o=new Array(i.length);for(let a=0,l=i.length;a<l;a++){const h=i[a];o[a]=t(e[h],h,a,r&&r[a])}}else o=[];return n&&(n[s]=o),o}const vr=e=>e?Bi(e)?Ss(e)||e.proxy:vr(e.parent):null,Pn=Le(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=>vr(e.parent),$root:e=>vr(e.root),$emit:e=>e.emit,$options:e=>Tr(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,yr(e.update)}),$nextTick:e=>e.n||(e.n=ui.bind(e.proxy)),$watch:e=>uu.bind(e)}),Er=(e,t)=>e!==he&&!e.__isScriptSetup&&ee(e,t),wu={get({_:e},t){const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:a,appContext:l}=e;let h;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(Er(s,t))return i[t]=1,s[t];if(o!==he&&ee(o,t))return i[t]=2,o[t];if((h=e.propsOptions[0])&&ee(h,t))return i[t]=3,r[t];if(n!==he&&ee(n,t))return i[t]=4,n[t];Ir&&(i[t]=0)}}const f=Pn[t];let m,d;if(f)return t==="$attrs"&&je(e,"get",t),f(e);if((m=a.__cssModules)&&(m=m[t]))return m;if(n!==he&&ee(n,t))return i[t]=4,n[t];if(d=l.config.globalProperties,ee(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return Er(o,t)?(o[t]=n,!0):s!==he&&ee(s,t)?(s[t]=n,!0):ee(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:r}},i){let a;return!!n[i]||e!==he&&ee(e,i)||Er(t,i)||(a=r[0])&&ee(a,i)||ee(s,i)||ee(Pn,i)||ee(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ee(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Oi(e){return z(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ir=!0;function vu(e){const t=Tr(e),n=e.proxy,s=e.ctx;Ir=!1,t.beforeCreate&&Si(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:a,provide:l,inject:h,created:f,beforeMount:m,mounted:d,beforeUpdate:g,updated:w,activated:E,deactivated:I,beforeDestroy:_,beforeUnmount:k,destroyed:y,unmounted:b,render:S,renderTracked:x,renderTriggered:D,errorCaptured:M,serverPrefetch:N,expose:K,inheritAttrs:re,components:ie,directives:be,filters:qe}=t;if(h&&Eu(h,s,null),i)for(const ae in i){const se=i[ae];B(se)&&(s[ae]=se.bind(n))}if(o){const ae=o.call(n,n);pe(ae)&&(e.data=ds(ae))}if(Ir=!0,r)for(const ae in r){const se=r[ae],Ke=B(se)?se.bind(n,n):B(se.get)?se.get.bind(n,n):Ze,mt=!B(se)&&B(se.set)?se.set.bind(n):Ze,ve=Fe({get:Ke,set:mt});Object.defineProperty(s,ae,{enumerable:!0,configurable:!0,get:()=>ve.value,set:Se=>ve.value=Se})}if(a)for(const ae in a)xi(a[ae],s,n,ae);if(l){const ae=B(l)?l.call(n):l;Reflect.ownKeys(ae).forEach(se=>{xu(se,ae[se])})}f&&Si(f,e,"c");function Z(ae,se){z(se)?se.forEach(Ke=>ae(Ke.bind(n))):se&&ae(se.bind(n))}if(Z(Ii,m),Z(vs,d),Z(pu,g),Z(gu,w),Z(du,E),Z(hu,I),Z(ku,M),Z(yu,x),Z(bu,D),Z(Ti,k),Z(wr,b),Z(_u,N),z(K))if(K.length){const ae=e.exposed||(e.exposed={});K.forEach(se=>{Object.defineProperty(ae,se,{get:()=>n[se],set:Ke=>n[se]=Ke})})}else e.exposed||(e.exposed={});S&&e.render===Ze&&(e.render=S),re!=null&&(e.inheritAttrs=re),ie&&(e.components=ie),be&&(e.directives=be)}function Eu(e,t,n=Ze){z(e)&&(e=Lr(e));for(const s in e){const o=e[s];let r;pe(o)?"default"in o?r=Ge(o.from||s,o.default,!0):r=Ge(o.from||s):r=Ge(o),_e(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[s]=r}}function Si(e,t,n){Qe(z(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function xi(e,t,n,s){const o=s.includes(".")?wi(n,s):()=>n[s];if(ye(e)){const r=t[e];B(r)&&zt(o,r)}else if(B(e))zt(o,e.bind(n));else if(pe(e))if(z(e))e.forEach(r=>xi(r,t,n,s));else{const r=B(e.handler)?e.handler.bind(n):t[e.handler];B(r)&&zt(o,r,e)}}function Tr(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,a=r.get(t);let l;return a?l=a:!o.length&&!n&&!s?l=t:(l={},o.length&&o.forEach(h=>Es(l,h,i,!0)),Es(l,t,i)),pe(t)&&r.set(t,l),l}function Es(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&Es(e,r,n,!0),o&&o.forEach(i=>Es(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const a=Iu[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Iu={data:Ci,props:Ni,emits:Ni,methods:An,computed:An,beforeCreate:Me,created:Me,beforeMount:Me,mounted:Me,beforeUpdate:Me,updated:Me,beforeDestroy:Me,beforeUnmount:Me,destroyed:Me,unmounted:Me,activated:Me,deactivated:Me,errorCaptured:Me,serverPrefetch:Me,components:An,directives:An,watch:Lu,provide:Ci,inject:Tu};function Ci(e,t){return t?e?function(){return Le(B(e)?e.call(this,this):e,B(t)?t.call(this,this):t)}:t:e}function Tu(e,t){return An(Lr(e),Lr(t))}function Lr(e){if(z(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Me(e,t){return e?[...new Set([].concat(e,t))]:t}function An(e,t){return e?Le(Object.create(null),e,t):t}function Ni(e,t){return e?z(e)&&z(t)?[...new Set([...e,...t])]:Le(Object.create(null),Oi(e),Oi(t??{})):t}function Lu(e,t){if(!e)return t;if(!t)return e;const n=Le(Object.create(null),e);for(const s in t)n[s]=Me(e[s],t[s]);return n}function Pi(){return{app:null,config:{isNativeTag:sc,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 Ou=0;function Su(e,t){return function(s,o=null){B(s)||(s=Le({},s)),o!=null&&!pe(o)&&(o=null);const r=Pi(),i=new WeakSet;let a=!1;const l=r.app={_uid:Ou++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:tf,get config(){return r.config},set config(h){},use(h,...f){return i.has(h)||(h&&B(h.install)?(i.add(h),h.install(l,...f)):B(h)&&(i.add(h),h(l,...f))),l},mixin(h){return r.mixins.includes(h)||r.mixins.push(h),l},component(h,f){return f?(r.components[h]=f,l):r.components[h]},directive(h,f){return f?(r.directives[h]=f,l):r.directives[h]},mount(h,f,m){if(!a){const d=Ne(s,o);return d.appContext=r,m===!0?m="svg":m===!1&&(m=void 0),f&&t?t(d,h):e(d,h,m),a=!0,l._container=h,h.__vue_app__=l,Ss(d.component)||d.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(h,f){return r.provides[h]=f,l},runWithContext(h){const f=hn;hn=l;try{return h()}finally{hn=f}}};return l}}let hn=null;function xu(e,t){if(Ie){let n=Ie.provides;const s=Ie.parent&&Ie.parent.provides;s===n&&(n=Ie.provides=Object.create(s)),n[e]=t}}function Ge(e,t,n=!1){const s=Ie||Ce;if(s||hn){const o=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:hn._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&B(t)?t.call(s&&s.proxy):t}}function Cu(){return!!(Ie||Ce||hn)}function Nu(e,t,n,s=!1){const o={},r={};ns(r,Is,1),e.propsDefaults=Object.create(null),Ai(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=s?o:Mc(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function Pu(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,a=Q(o),[l]=e.propsOptions;let h=!1;if((s||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let m=0;m<f.length;m++){let d=f[m];if(_s(e.emitsOptions,d))continue;const g=t[d];if(l)if(ee(r,d))g!==r[d]&&(r[d]=g,h=!0);else{const w=rt(d);o[w]=Or(l,a,w,g,e,!1)}else g!==r[d]&&(r[d]=g,h=!0)}}}else{Ai(e,t,o,r)&&(h=!0);let f;for(const m in a)(!t||!ee(t,m)&&((f=Wt(m))===m||!ee(t,f)))&&(l?n&&(n[m]!==void 0||n[f]!==void 0)&&(o[m]=Or(l,a,m,void 0,e,!0)):delete o[m]);if(r!==a)for(const m in r)(!t||!ee(t,m))&&(delete r[m],h=!0)}h&&_t(e,"set","$attrs")}function Ai(e,t,n,s){const[o,r]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(On(l))continue;const h=t[l];let f;o&&ee(o,f=rt(l))?!r||!r.includes(f)?n[f]=h:(a||(a={}))[f]=h:_s(e.emitsOptions,l)||(!(l in s)||h!==s[l])&&(s[l]=h,i=!0)}if(r){const l=Q(n),h=a||he;for(let f=0;f<r.length;f++){const m=r[f];n[m]=Or(o,l,m,h[m],e,!ee(h,m))}}return i}function Or(e,t,n,s,o,r){const i=e[n];if(i!=null){const a=ee(i,"default");if(a&&s===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&B(l)){const{propsDefaults:h}=o;if(n in h)s=h[n];else{const f=Un(o);s=h[n]=l.call(null,t),f()}}else s=l}i[0]&&(r&&!a?s=!1:i[1]&&(s===""||s===Wt(n))&&(s=!0))}return s}function Ri(e,t,n=!1){const s=t.propsCache,o=s.get(e);if(o)return o;const r=e.props,i={},a=[];let l=!1;if(!B(e)){const f=m=>{l=!0;const[d,g]=Ri(m,t,!0);Le(i,d),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!r&&!l)return pe(e)&&s.set(e,ln),ln;if(z(r))for(let f=0;f<r.length;f++){const m=rt(r[f]);Mi(m)&&(i[m]=he)}else if(r)for(const f in r){const m=rt(f);if(Mi(m)){const d=r[f],g=i[m]=z(d)||B(d)?{type:d}:Le({},d);if(g){const w=$i(Boolean,g.type),E=$i(String,g.type);g[0]=w>-1,g[1]=E<0||w<E,(w>-1||ee(g,"default"))&&a.push(m)}}}const h=[i,a];return pe(e)&&s.set(e,h),h}function Mi(e){return e[0]!=="$"&&!On(e)}function Fi(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Di(e,t){return Fi(e)===Fi(t)}function $i(e,t){return z(t)?t.findIndex(n=>Di(n,e)):B(t)&&Di(t,e)?0:-1}const Ui=e=>e[0]==="_"||e==="$stable",Sr=e=>z(e)?e.map(it):[it(e)],Au=(e,t,n)=>{if(t._n)return t;const s=qc((...o)=>Sr(t(...o)),n);return s._c=!1,s},ji=(e,t,n)=>{const s=e._ctx;for(const o in e){if(Ui(o))continue;const r=e[o];if(B(r))t[o]=Au(o,r,s);else if(r!=null){const i=Sr(r);t[o]=()=>i}}},Wi=(e,t)=>{const n=Sr(t);e.slots.default=()=>n},Ru=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Q(t),ns(t,"_",n)):ji(t,e.slots={})}else e.slots={},t&&Wi(e,t);ns(e.slots,Is,1)},Mu=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=he;if(s.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:(Le(o,t),!n&&a===1&&delete o._):(r=!t.$stable,ji(t,o)),i=t}else t&&(Wi(e,t),i={default:1});if(r)for(const a in o)!Ui(a)&&i[a]==null&&delete o[a]};function xr(e,t,n,s,o=!1){if(z(e)){e.forEach((d,g)=>xr(d,t&&(z(t)?t[g]:t),n,s,o));return}if(ks(s)&&!o)return;const r=s.shapeFlag&4?Ss(s.component)||s.component.proxy:s.el,i=o?null:r,{i:a,r:l}=e,h=t&&t.r,f=a.refs===he?a.refs={}:a.refs,m=a.setupState;if(h!=null&&h!==l&&(ye(h)?(f[h]=null,ee(m,h)&&(m[h]=null)):_e(h)&&(h.value=null)),B(l))bt(l,a,12,[i,f]);else{const d=ye(l),g=_e(l);if(d||g){const w=()=>{if(e.f){const E=d?ee(m,l)?m[l]:f[l]:l.value;o?z(E)&&tr(E,r):z(E)?E.includes(r)||E.push(r):d?(f[l]=[r],ee(m,l)&&(m[l]=f[l])):(l.value=[r],e.k&&(f[e.k]=l.value))}else d?(f[l]=i,ee(m,l)&&(m[l]=i)):g&&(l.value=i,e.k&&(f[e.k]=i))};i?(w.id=-1,We(w,n)):w()}}}const We=au;function Fu(e){return Du(e)}function Du(e,t){const n=Po();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:a,createComment:l,setText:h,setElementText:f,parentNode:m,nextSibling:d,setScopeId:g=Ze,insertStaticContent:w}=e,E=(u,c,p,v=null,L=null,C=null,R=void 0,A=null,F=!!c.dynamicChildren)=>{if(u===c)return;u&&!Dn(u,c)&&(v=Et(u),Se(u,L,C,!0),u=null),c.patchFlag===-2&&(F=!1,c.dynamicChildren=null);const{type:P,ref:j,shapeFlag:H}=c;switch(P){case Rn:I(u,c,p,v);break;case Zt:_(u,c,p,v);break;case Nr:u==null&&k(c,p,v,R);break;case Ee:ie(u,c,p,v,L,C,R,A,F);break;default:H&1?S(u,c,p,v,L,C,R,A,F):H&6?be(u,c,p,v,L,C,R,A,F):(H&64||H&128)&&P.process(u,c,p,v,L,C,R,A,F,Ue)}j!=null&&L&&xr(j,u&&u.ref,C,c||u,!c)},I=(u,c,p,v)=>{if(u==null)s(c.el=a(c.children),p,v);else{const L=c.el=u.el;c.children!==u.children&&h(L,c.children)}},_=(u,c,p,v)=>{u==null?s(c.el=l(c.children||""),p,v):c.el=u.el},k=(u,c,p,v)=>{[u.el,u.anchor]=w(u.children,c,p,v,u.el,u.anchor)},y=({el:u,anchor:c},p,v)=>{let L;for(;u&&u!==c;)L=d(u),s(u,p,v),u=L;s(c,p,v)},b=({el:u,anchor:c})=>{let p;for(;u&&u!==c;)p=d(u),o(u),u=p;o(c)},S=(u,c,p,v,L,C,R,A,F)=>{c.type==="svg"?R="svg":c.type==="math"&&(R="mathml"),u==null?x(c,p,v,L,C,R,A,F):N(u,c,L,C,R,A,F)},x=(u,c,p,v,L,C,R,A)=>{let F,P;const{props:j,shapeFlag:H,transition:U,dirs:T}=u;if(F=u.el=i(u.type,C,j&&j.is,j),H&8?f(F,u.children):H&16&&M(u.children,F,null,v,L,Cr(u,C),R,A),T&&Yt(u,null,v,"created"),D(F,u,u.scopeId,R,v),j){for(const W in j)W!=="value"&&!On(W)&&r(F,W,null,j[W],C,u.children,v,L,$e);"value"in j&&r(F,"value",null,j.value,C),(P=j.onVnodeBeforeMount)&&at(P,v,u)}T&&Yt(u,null,v,"beforeMount");const O=$u(L,U);O&&U.beforeEnter(F),s(F,c,p),((P=j&&j.onVnodeMounted)||O||T)&&We(()=>{P&&at(P,v,u),O&&U.enter(F),T&&Yt(u,null,v,"mounted")},L)},D=(u,c,p,v,L)=>{if(p&&g(u,p),v)for(let C=0;C<v.length;C++)g(u,v[C]);if(L){let C=L.subTree;if(c===C){const R=L.vnode;D(u,R,R.scopeId,R.slotScopeIds,L.parent)}}},M=(u,c,p,v,L,C,R,A,F=0)=>{for(let P=F;P<u.length;P++){const j=u[P]=A?Pt(u[P]):it(u[P]);E(null,j,c,p,v,L,C,R,A)}},N=(u,c,p,v,L,C,R)=>{const A=c.el=u.el;let{patchFlag:F,dynamicChildren:P,dirs:j}=c;F|=u.patchFlag&16;const H=u.props||he,U=c.props||he;let T;if(p&&Xt(p,!1),(T=U.onVnodeBeforeUpdate)&&at(T,p,c,u),j&&Yt(c,u,p,"beforeUpdate"),p&&Xt(p,!0),P?K(u.dynamicChildren,P,A,p,v,Cr(c,L),C):R||se(u,c,A,null,p,v,Cr(c,L),C,!1),F>0){if(F&16)re(A,c,H,U,p,v,L);else if(F&2&&H.class!==U.class&&r(A,"class",null,U.class,L),F&4&&r(A,"style",H.style,U.style,L),F&8){const O=c.dynamicProps;for(let W=0;W<O.length;W++){const G=O[W],fe=H[G],Re=U[G];(Re!==fe||G==="value")&&r(A,G,fe,Re,L,u.children,p,v,$e)}}F&1&&u.children!==c.children&&f(A,c.children)}else!R&&P==null&&re(A,c,H,U,p,v,L);((T=U.onVnodeUpdated)||j)&&We(()=>{T&&at(T,p,c,u),j&&Yt(c,u,p,"updated")},v)},K=(u,c,p,v,L,C,R)=>{for(let A=0;A<c.length;A++){const F=u[A],P=c[A],j=F.el&&(F.type===Ee||!Dn(F,P)||F.shapeFlag&70)?m(F.el):p;E(F,P,j,null,v,L,C,R,!0)}},re=(u,c,p,v,L,C,R)=>{if(p!==v){if(p!==he)for(const A in p)!On(A)&&!(A in v)&&r(u,A,p[A],null,R,c.children,L,C,$e);for(const A in v){if(On(A))continue;const F=v[A],P=p[A];F!==P&&A!=="value"&&r(u,A,P,F,R,c.children,L,C,$e)}"value"in v&&r(u,"value",p.value,v.value,R)}},ie=(u,c,p,v,L,C,R,A,F)=>{const P=c.el=u?u.el:a(""),j=c.anchor=u?u.anchor:a("");let{patchFlag:H,dynamicChildren:U,slotScopeIds:T}=c;T&&(A=A?A.concat(T):T),u==null?(s(P,p,v),s(j,p,v),M(c.children||[],p,j,L,C,R,A,F)):H>0&&H&64&&U&&u.dynamicChildren?(K(u.dynamicChildren,U,p,L,C,R,A),(c.key!=null||L&&c===L.subTree)&&Hi(u,c,!0)):se(u,c,p,j,L,C,R,A,F)},be=(u,c,p,v,L,C,R,A,F)=>{c.slotScopeIds=A,u==null?c.shapeFlag&512?L.ctx.activate(c,p,v,R,F):qe(c,p,v,L,C,R,F):Ve(u,c,F)},qe=(u,c,p,v,L,C,R)=>{const A=u.component=Yu(u,v,L);if(vi(u)&&(A.ctx.renderer=Ue),Bu(A),A.asyncDep){if(L&&L.registerDep(A,Z),!u.el){const F=A.subTree=Ne(Zt);_(null,F,c,p)}}else Z(A,u,c,p,L,C,R)},Ve=(u,c,p)=>{const v=c.component=u.component;if(tu(u,c,p))if(v.asyncDep&&!v.asyncResolved){ae(v,c,p);return}else v.next=c,Bc(v.update),v.effect.dirty=!0,v.update();else c.el=u.el,v.vnode=c},Z=(u,c,p,v,L,C,R)=>{const A=()=>{if(u.isMounted){let{next:j,bu:H,u:U,parent:T,vnode:O}=u;{const Be=Vi(u);if(Be){j&&(j.el=O.el,ae(u,j,R)),Be.asyncDep.then(()=>{u.isUnmounted||A()});return}}let W=j,G;Xt(u,!1),j?(j.el=O.el,ae(u,j,R)):j=O,H&&ts(H),(G=j.props&&j.props.onVnodeBeforeUpdate)&&at(G,T,j,O),Xt(u,!0);const fe=kr(u),Re=u.subTree;u.subTree=fe,E(Re,fe,m(Re.el),Et(Re),u,L,C),j.el=fe.el,W===null&&nu(u,fe.el),U&&We(U,L),(G=j.props&&j.props.onVnodeUpdated)&&We(()=>at(G,T,j,O),L)}else{let j;const{el:H,props:U}=c,{bm:T,m:O,parent:W}=u,G=ks(c);if(Xt(u,!1),T&&ts(T),!G&&(j=U&&U.onVnodeBeforeMount)&&at(j,W,c),Xt(u,!0),H&&It){const fe=()=>{u.subTree=kr(u),It(H,u.subTree,u,L,null)};G?c.type.__asyncLoader().then(()=>!u.isUnmounted&&fe()):fe()}else{const fe=u.subTree=kr(u);E(null,fe,p,v,u,L,C),c.el=fe.el}if(O&&We(O,L),!G&&(j=U&&U.onVnodeMounted)){const fe=c;We(()=>at(j,W,fe),L)}(c.shapeFlag&256||W&&ks(W.vnode)&&W.vnode.shapeFlag&256)&&u.a&&We(u.a,L),u.isMounted=!0,c=p=v=null}},F=u.effect=new ar(A,Ze,()=>yr(P),u.scope),P=u.update=()=>{F.dirty&&F.run()};P.id=u.uid,Xt(u,!0),P()},ae=(u,c,p)=>{c.component=u;const v=u.vnode.props;u.vnode=c,u.next=null,Pu(u,c.props,v,p),Mu(u,c.children,p),Ot(),di(u),St()},se=(u,c,p,v,L,C,R,A,F=!1)=>{const P=u&&u.children,j=u?u.shapeFlag:0,H=c.children,{patchFlag:U,shapeFlag:T}=c;if(U>0){if(U&128){mt(P,H,p,v,L,C,R,A,F);return}else if(U&256){Ke(P,H,p,v,L,C,R,A,F);return}}T&8?(j&16&&$e(P,L,C),H!==P&&f(p,H)):j&16?T&16?mt(P,H,p,v,L,C,R,A,F):$e(P,L,C,!0):(j&8&&f(p,""),T&16&&M(H,p,v,L,C,R,A,F))},Ke=(u,c,p,v,L,C,R,A,F)=>{u=u||ln,c=c||ln;const P=u.length,j=c.length,H=Math.min(P,j);let U;for(U=0;U<H;U++){const T=c[U]=F?Pt(c[U]):it(c[U]);E(u[U],T,p,null,L,C,R,A,F)}P>j?$e(u,L,C,!0,!1,H):M(c,p,v,L,C,R,A,F,H)},mt=(u,c,p,v,L,C,R,A,F)=>{let P=0;const j=c.length;let H=u.length-1,U=j-1;for(;P<=H&&P<=U;){const T=u[P],O=c[P]=F?Pt(c[P]):it(c[P]);if(Dn(T,O))E(T,O,p,null,L,C,R,A,F);else break;P++}for(;P<=H&&P<=U;){const T=u[H],O=c[U]=F?Pt(c[U]):it(c[U]);if(Dn(T,O))E(T,O,p,null,L,C,R,A,F);else break;H--,U--}if(P>H){if(P<=U){const T=U+1,O=T<j?c[T].el:v;for(;P<=U;)E(null,c[P]=F?Pt(c[P]):it(c[P]),p,O,L,C,R,A,F),P++}}else if(P>U)for(;P<=H;)Se(u[P],L,C,!0),P++;else{const T=P,O=P,W=new Map;for(P=O;P<=U;P++){const Xe=c[P]=F?Pt(c[P]):it(c[P]);Xe.key!=null&&W.set(Xe.key,P)}let G,fe=0;const Re=U-O+1;let Be=!1,qs=0;const Ln=new Array(Re);for(P=0;P<Re;P++)Ln[P]=0;for(P=T;P<=H;P++){const Xe=u[P];if(fe>=Re){Se(Xe,L,C,!0);continue}let gt;if(Xe.key!=null)gt=W.get(Xe.key);else for(G=O;G<=U;G++)if(Ln[G-O]===0&&Dn(Xe,c[G])){gt=G;break}gt===void 0?Se(Xe,L,C,!0):(Ln[gt-O]=P+1,gt>=qs?qs=gt:Be=!0,E(Xe,c[gt],p,null,L,C,R,A,F),fe++)}const tc=Be?Uu(Ln):ln;for(G=tc.length-1,P=Re-1;P>=0;P--){const Xe=O+P,gt=c[Xe],nc=Xe+1<j?c[Xe+1].el:v;Ln[P]===0?E(null,gt,p,nc,L,C,R,A,F):Be&&(G<0||P!==tc[G]?ve(gt,p,nc,2):G--)}}},ve=(u,c,p,v,L=null)=>{const{el:C,type:R,transition:A,children:F,shapeFlag:P}=u;if(P&6){ve(u.component.subTree,c,p,v);return}if(P&128){u.suspense.move(c,p,v);return}if(P&64){R.move(u,c,p,Ue);return}if(R===Ee){s(C,c,p);for(let H=0;H<F.length;H++)ve(F[H],c,p,v);s(u.anchor,c,p);return}if(R===Nr){y(u,c,p);return}if(v!==2&&P&1&&A)if(v===0)A.beforeEnter(C),s(C,c,p),We(()=>A.enter(C),L);else{const{leave:H,delayLeave:U,afterLeave:T}=A,O=()=>s(C,c,p),W=()=>{H(C,()=>{O(),T&&T()})};U?U(C,O,W):W()}else s(C,c,p)},Se=(u,c,p,v=!1,L=!1)=>{const{type:C,props:R,ref:A,children:F,dynamicChildren:P,shapeFlag:j,patchFlag:H,dirs:U}=u;if(A!=null&&xr(A,null,p,u,!0),j&256){c.ctx.deactivate(u);return}const T=j&1&&U,O=!ks(u);let W;if(O&&(W=R&&R.onVnodeBeforeUnmount)&&at(W,c,u),j&6)an(u.component,p,v);else{if(j&128){u.suspense.unmount(p,v);return}T&&Yt(u,null,c,"beforeUnmount"),j&64?u.type.remove(u,c,p,L,Ue,v):P&&(C!==Ee||H>0&&H&64)?$e(P,c,p,!1,!0):(C===Ee&&H&384||!L&&j&16)&&$e(F,c,p),v&&Ut(u)}(O&&(W=R&&R.onVnodeUnmounted)||T)&&We(()=>{W&&at(W,c,u),T&&Yt(u,null,c,"unmounted")},p)},Ut=u=>{const{type:c,el:p,anchor:v,transition:L}=u;if(c===Ee){jt(p,v);return}if(c===Nr){b(u);return}const C=()=>{o(p),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(u.shapeFlag&1&&L&&!L.persisted){const{leave:R,delayLeave:A}=L,F=()=>R(p,C);A?A(u.el,C,F):F()}else C()},jt=(u,c)=>{let p;for(;u!==c;)p=d(u),o(u),u=p;o(c)},an=(u,c,p)=>{const{bum:v,scope:L,update:C,subTree:R,um:A}=u;v&&ts(v),L.stop(),C&&(C.active=!1,Se(R,u,c,p)),A&&We(A,c),We(()=>{u.isUnmounted=!0},c),c&&c.pendingBranch&&!c.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===c.pendingId&&(c.deps--,c.deps===0&&c.resolve())},$e=(u,c,p,v=!1,L=!1,C=0)=>{for(let R=C;R<u.length;R++)Se(u[R],c,p,v,L)},Et=u=>u.shapeFlag&6?Et(u.component.subTree):u.shapeFlag&128?u.suspense.next():d(u.anchor||u.el);let nt=!1;const pt=(u,c,p)=>{u==null?c._vnode&&Se(c._vnode,null,null,!0):E(c._vnode||null,u,c,null,null,null,p),nt||(nt=!0,di(),hi(),nt=!1),c._vnode=u},Ue={p:E,um:Se,m:ve,r:Ut,mt:qe,mc:M,pc:se,pbc:K,n:Et,o:e};let st,It;return t&&([st,It]=t(Ue)),{render:pt,hydrate:st,createApp:Su(pt,st)}}function Cr({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 Xt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function $u(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Hi(e,t,n=!1){const s=e.children,o=t.children;if(z(s)&&z(o))for(let r=0;r<s.length;r++){const i=s[r];let a=o[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[r]=Pt(o[r]),a.el=i.el),n||Hi(i,a)),a.type===Rn&&(a.el=i.el)}}function Uu(e){const t=e.slice(),n=[0];let s,o,r,i,a;const l=e.length;for(s=0;s<l;s++){const h=e[s];if(h!==0){if(o=n[n.length-1],e[o]<h){t[s]=o,n.push(s);continue}for(r=0,i=n.length-1;r<i;)a=r+i>>1,e[n[a]]<h?r=a+1:i=a;h<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}function Vi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Vi(t)}const ju=e=>e.__isTeleport,Ee=Symbol.for("v-fgt"),Rn=Symbol.for("v-txt"),Zt=Symbol.for("v-cmt"),Nr=Symbol.for("v-stc"),Mn=[];let et=null;function J(e=!1){Mn.push(et=e?null:[])}function Wu(){Mn.pop(),et=Mn[Mn.length-1]||null}let Fn=1;function Ki(e){Fn+=e}function zi(e){return e.dynamicChildren=Fn>0?et||ln:null,Wu(),Fn>0&&et&&et.push(e),e}function ne(e,t,n,s,o,r){return zi(le(e,t,n,s,o,r,!0))}function mn(e,t,n,s,o){return zi(Ne(e,t,n,s,o,!0))}function Pr(e){return e?e.__v_isVNode===!0:!1}function Dn(e,t){return e.type===t.type&&e.key===t.key}const Is="__vInternal",Gi=({key:e})=>e??null,Ts=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||_e(e)||B(e)?{i:Ce,r:e,k:t,f:!!n}:e:null);function le(e,t=null,n=null,s=0,o=null,r=e===Ee?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Gi(t),ref:t&&Ts(t),scopeId:gi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ce};return a?(Ar(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=ye(n)?8:16),Fn>0&&!i&&et&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&et.push(l),l}const Ne=Hu;function Hu(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===ru)&&(e=Zt),Pr(e)){const a=pn(e,t,!0);return n&&Ar(a,n),Fn>0&&!r&&et&&(a.shapeFlag&6?et[et.indexOf(e)]=a:et.push(a)),a.patchFlag|=-2,a}if(ef(e)&&(e=e.__vccOpts),t){t=Vu(t);let{class:a,style:l}=t;a&&!ye(a)&&(t.class=rs(a)),pe(l)&&(ni(l)&&!z(l)&&(l=Le({},l)),t.style=ss(l))}const i=ye(e)?1:iu(e)?128:ju(e)?64:pe(e)?4:B(e)?2:0;return le(e,t,n,s,o,i,r,!0)}function Vu(e){return e?ni(e)||Is in e?Le({},e):e:null}function pn(e,t,n=!1){const{props:s,ref:o,patchFlag:r,children:i}=e,a=t?Ku(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Gi(a),ref:t&&t.ref?n&&o?z(o)?o.concat(Ts(t)):[o,Ts(t)]:Ts(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ee?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pn(e.ssContent),ssFallback:e.ssFallback&&pn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Jt(e=" ",t=0){return Ne(Rn,null,e,t)}function Pe(e="",t=!1){return t?(J(),mn(Zt,null,e)):Ne(Zt,null,e)}function it(e){return e==null||typeof e=="boolean"?Ne(Zt):z(e)?Ne(Ee,null,e.slice()):typeof e=="object"?Pt(e):Ne(Rn,null,String(e))}function Pt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pn(e)}function Ar(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(z(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),Ar(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Is in t)?t._ctx=Ce:o===3&&Ce&&(Ce.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else B(t)?(t={default:t,_ctx:Ce},n=32):(t=String(t),s&64?(n=16,t=[Jt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ku(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=rs([t.class,s.class]));else if(o==="style")t.style=ss([t.style,s.style]);else if(Jn(o)){const r=t[o],i=s[o];i&&r!==i&&!(z(r)&&r.includes(i))&&(t[o]=r?[].concat(r,i):i)}else o!==""&&(t[o]=s[o])}return t}function at(e,t,n,s=null){Qe(e,t,7,[n,s])}const zu=Pi();let Gu=0;function Yu(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||zu,r={uid:Gu++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new Mo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ri(s,o),emitsOptions:pi(s,o),emit:null,emitted:null,propsDefaults:he,inheritAttrs:s.inheritAttrs,ctx:he,data:he,props:he,attrs:he,slots:he,refs:he,setupState:he,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=Jc.bind(null,r),e.ce&&e.ce(r),r}let Ie=null;const $n=()=>Ie||Ce;let Ls,Rr;{const e=Po(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),r=>{o.length>1?o.forEach(i=>i(r)):o[0](r)}};Ls=t("__VUE_INSTANCE_SETTERS__",n=>Ie=n),Rr=t("__VUE_SSR_SETTERS__",n=>Os=n)}const Un=e=>{const t=Ie;return Ls(e),e.scope.on(),()=>{e.scope.off(),Ls(t)}},Yi=()=>{Ie&&Ie.scope.off(),Ls(null)};function Bi(e){return e.vnode.shapeFlag&4}let Os=!1;function Bu(e,t=!1){t&&Rr(t);const{props:n,children:s}=e.vnode,o=Bi(e);Nu(e,n,o,t),Ru(e,s);const r=o?Xu(e,t):void 0;return t&&Rr(!1),r}function Xu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ms(new Proxy(e.ctx,wu));const{setup:s}=n;if(s){const o=e.setupContext=s.length>1?Ju(e):null,r=Un(e);Ot();const i=bt(s,e,0,[e.props,o]);if(St(),r(),So(i)){if(i.then(Yi,Yi),t)return i.then(a=>{Xi(e,a,t)}).catch(a=>{gs(a,e,0)});e.asyncDep=i}else Xi(e,i,t)}else Ji(e,t)}function Xi(e,t,n){B(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=ai(t)),Ji(e,n)}let Zi;function Ji(e,t,n){const s=e.type;if(!e.render){if(!t&&Zi&&!s.render){const o=s.template||Tr(e).template;if(o){const{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,h=Le(Le({isCustomElement:r,delimiters:a},i),l);s.render=Zi(o,h)}}e.render=s.render||Ze}{const o=Un(e);Ot();try{vu(e)}finally{St(),o()}}}function Zu(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return je(e,"get","$attrs"),t[n]}}))}function Ju(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Zu(e)},slots:e.slots,emit:e.emit,expose:t}}function Ss(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ai(ms(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Pn)return Pn[n](e)},has(t,n){return n in t||n in Pn}}))}const qu=/(?:^|[-_])(\w)/g,Qu=e=>e.replace(qu,t=>t.toUpperCase()).replace(/[-_]/g,"");function qi(e,t=!0){return B(e)?e.displayName||e.name:e.name||t&&e.__name}function Qi(e,t,n=!1){let s=qi(t);if(!s&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(s=o[1])}if(!s&&e&&e.parent){const o=r=>{for(const i in r)if(r[i]===t)return i};s=o(e.components||e.parent.type.components)||o(e.appContext.components)}return s?Qu(s):n?"App":"Anonymous"}function ef(e){return B(e)&&"__vccOpts"in e}const Fe=(e,t)=>Fc(e,t,Os);function ea(e,t,n){const s=arguments.length;return s===2?pe(t)&&!z(t)?Pr(t)?Ne(e,null,[t]):Ne(e,t):Ne(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Pr(n)&&(n=[n]),Ne(e,t,n))}const tf="3.4.21";/**
|
|
17
|
-
* @vue/runtime-dom v3.4.
|
|
13
|
+
**/const Cn=[];function Xp(e,...t){mt();const n=Cn.length?Cn[Cn.length-1].component:null,s=n&&n.appContext.config.warnHandler,i=Xc();if(s)_t(s,n,11,[e+t.map(r=>{var o,a;return(a=(o=r.toString)==null?void 0:o.call(r))!=null?a:JSON.stringify(r)}).join(""),n&&n.proxy,i.map(({vnode:r})=>`at <${ra(n,r.type)}>`).join(`
|
|
14
|
+
`),i]);else{const r=[`[Vue warn]: ${e}`,...t];i.length&&r.push(`
|
|
15
|
+
`,...Zc(i)),console.warn(...r)}pt()}function Xc(){let e=Cn[Cn.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 s=e.component&&e.component.parent;e=s&&s.vnode}return t}function Zc(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[`
|
|
16
|
+
`],...Jc(n))}),t}function Jc({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,i=` at <${ra(e.component,e.type,s)}`,r=">"+n;return e.props?[i,...qc(e.props),r]:[i+r]}function qc(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...uo(s,e[s]))}),n.length>3&&t.push(" ..."),t}function uo(e,t,n){return ye(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:be(t)?(t=uo(e,ee(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):X(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ee(t),n?t:[`${e}=`,t])}function _t(e,t,n,s){try{return s?e(...s):e()}catch(i){_s(i,t,n)}}function qe(e,t,n,s){if(X(e)){const i=_t(e,t,n,s);return i&&Oi(i)&&i.catch(r=>{_s(r,t,n)}),i}if(z(e)){const i=[];for(let r=0;r<e.length;r++)i.push(qe(e[r],t,n,s));return i}}function _s(e,t,n,s=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const o=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const f=r.ec;if(f){for(let c=0;c<f.length;c++)if(f[c](e,o,a)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){mt(),_t(l,null,10,[e,o,a]),pt();return}}Qc(e,n,i,s)}function Qc(e,t,n,s=!0){console.error(e)}let Nn=!1,br=!1;const xe=[];let rt=0;const dn=[];let Ot=null,zt=0;const fo=Promise.resolve();let yr=null;function ho(e){const t=yr||fo;return e?t.then(this?e.bind(this):e):t}function eu(e){let t=rt+1,n=xe.length;for(;t<n;){const s=t+n>>>1,i=xe[s],r=Pn(i);r<e||r===e&&i.pre?t=s+1:n=s}return t}function kr(e){(!xe.length||!xe.includes(e,Nn&&e.allowRecurse?rt+1:rt))&&(e.id==null?xe.push(e):xe.splice(eu(e.id),0,e),mo())}function mo(){!Nn&&!br&&(br=!0,yr=fo.then(_o))}function tu(e){const t=xe.indexOf(e);t>rt&&xe.splice(t,1)}function nu(e){z(e)?dn.push(...e):(!Ot||!Ot.includes(e,e.allowRecurse?zt+1:zt))&&dn.push(e),mo()}function po(e,t,n=Nn?rt+1:0){for(;n<xe.length;n++){const s=xe[n];if(s&&s.pre){if(e&&s.id!==e.uid)continue;xe.splice(n,1),n--,s()}}}function go(e){if(dn.length){const t=[...new Set(dn)].sort((n,s)=>Pn(n)-Pn(s));if(dn.length=0,Ot){Ot.push(...t);return}for(Ot=t,zt=0;zt<Ot.length;zt++)Ot[zt]();Ot=null,zt=0}}const Pn=e=>e.id==null?1/0:e.id,su=(e,t)=>{const n=Pn(e)-Pn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function _o(e){br=!1,Nn=!0,xe.sort(su);try{for(rt=0;rt<xe.length;rt++){const t=xe[rt];t&&t.active!==!1&&_t(t,null,14)}}finally{rt=0,xe.length=0,go(),Nn=!1,yr=null,(xe.length||dn.length)&&_o()}}function ru(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||he;let i=n;const r=t.startsWith("update:"),o=r&&t.slice(7);if(o&&o in s){const c=`${o==="modelValue"?"model":o}Modifiers`,{number:d,trim:u}=s[c]||he;u&&(i=n.map(g=>ye(g)?g.trim():g)),d&&(i=n.map(or))}let a,l=s[a=ir(t)]||s[a=ir(st(t))];!l&&r&&(l=s[a=ir(Wt(t))]),l&&qe(l,e,6,i);const f=s[a+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,qe(f,e,6,i)}}function bo(e,t,n=!1){const s=t.emitsCache,i=s.get(e);if(i!==void 0)return i;const r=e.emits;let o={},a=!1;if(!X(e)){const l=f=>{const c=bo(f,t,!0);c&&(a=!0,Ee(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!a?(ge(e)&&s.set(e,null),null):(z(r)?r.forEach(l=>o[l]=null):Ee(o,r),ge(e)&&s.set(e,o),o)}function bs(e,t){return!e||!qn(t)?!1:(t=t.slice(2).replace(/Once$/,""),te(e,t[0].toLowerCase()+t.slice(1))||te(e,Wt(t))||te(e,t))}let Ce=null,yo=null;function ys(e){const t=Ce;return Ce=e,yo=e&&e.type.__scopeId||null,t}function iu(e,t=Ce,n){if(!t||e._n)return e;const s=(...i)=>{s._d&&Xo(-1);const r=ys(t);let o;try{o=e(...i)}finally{ys(r),s._d&&Xo(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function Zp(){}function wr(e){const{type:t,vnode:n,proxy:s,withProxy:i,propsOptions:[r],slots:o,attrs:a,emit:l,render:f,renderCache:c,props:d,data:u,setupState:g,ctx:w,inheritAttrs:E}=e,I=ys(e);let S,N;try{if(n.shapeFlag&4){const y=i||s,O=y;S=it(f.call(O,y,c,d,g,u,w)),N=a}else{const y=t;S=it(y.length>1?y(d,{attrs:a,slots:o,emit:l}):y(d,null)),N=t.props?a:ou(a)}}catch(y){Dn.length=0,_s(y,e,1),S=Ne(Jt)}let b=S;if(N&&E!==!1){const y=Object.keys(N),{shapeFlag:O}=b;y.length&&O&7&&(r&&y.some(nr)&&(N=au(N,r)),b=pn(b,N,!1,!0))}return n.dirs&&(b=pn(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),S=b,ys(I),S}const ou=e=>{let t;for(const n in e)(n==="class"||n==="style"||qn(n))&&((t||(t={}))[n]=e[n]);return t},au=(e,t)=>{const n={};for(const s in e)(!nr(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function lu(e,t,n){const{props:s,children:i,component:r}=e,{props:o,children:a,patchFlag:l}=t,f=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?ko(s,o,f):!!o;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const u=c[d];if(o[u]!==s[u]&&!bs(f,u))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:s===o?!1:s?o?ko(s,o,f):!0:!!o;return!1}function ko(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let i=0;i<s.length;i++){const r=s[i];if(t[r]!==e[r]&&!bs(n,r))return!0}return!1}function cu({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const uu="components";function fu(e,t){return hu(uu,e,!0,t)||e}const du=Symbol.for("v-ndc");function hu(e,t,n=!0,s=!1){const i=Ce||Te;if(i){const r=i.type;{const a=sa(r,!1);if(a&&(a===t||a===st(t)||a===ts(st(t))))return r}const o=wo(i[e]||r[e],t)||wo(i.appContext[e],t);return!o&&s?r:o}}function wo(e,t){return e&&(e[t]||e[st(t)]||e[ts(st(t))])}const mu=e=>e.__isSuspense;function pu(e,t){t&&t.pendingBranch?z(e)?t.effects.push(...e):t.effects.push(e):nu(e)}const gu=Symbol.for("v-scx"),_u=()=>Ke(gu),ks={};function Yt(e,t,n){return vo(e,t,n)}function vo(e,t,{immediate:n,deep:s,flush:i,once:r,onTrack:o,onTrigger:a}=he){if(t&&r){const L=t;t=(...D)=>{L(...D),O()}}const l=Te,f=L=>s===!0?L:Gt(L,s===!1?1:void 0);let c,d=!1,u=!1;if(be(e)?(c=()=>e.value,d=ps(e)):Kt(e)?(c=()=>f(e),d=!0):z(e)?(u=!0,d=e.some(L=>Kt(L)||ps(L)),c=()=>e.map(L=>{if(be(L))return L.value;if(Kt(L))return f(L);if(X(L))return _t(L,l,2)})):X(e)?t?c=()=>_t(e,l,2):c=()=>(g&&g(),qe(e,l,3,[w])):c=Xe,t&&s){const L=c;c=()=>Gt(L())}let g,w=L=>{g=b.onStop=()=>{_t(L,l,4),g=b.onStop=void 0}},E;if(Os)if(w=Xe,t?n&&qe(t,l,3,[c(),u?[]:void 0,w]):c(),i==="sync"){const L=_u();E=L.__watcherHandles||(L.__watcherHandles=[])}else return Xe;let I=u?new Array(e.length).fill(ks):ks;const S=()=>{if(!(!b.active||!b.dirty))if(t){const L=b.run();(s||d||(u?L.some((D,P)=>It(D,I[P])):It(L,I)))&&(g&&g(),qe(t,l,3,[L,I===ks?void 0:u&&I[0]===ks?[]:I,w]),I=L)}else b.run()};S.allowRecurse=!!t;let N;i==="sync"?N=S:i==="post"?N=()=>je(S,l&&l.suspense):(S.pre=!0,l&&(S.id=l.uid),N=()=>kr(S));const b=new cr(c,Xe,N),y=Di(),O=()=>{b.stop(),y&&sr(y.effects,b)};return t?n?S():I=b.run():i==="post"?je(b.run.bind(b),l&&l.suspense):b.run(),E&&E.push(O),O}function bu(e,t,n){const s=this.proxy,i=ye(e)?e.includes(".")?Eo(s,e):()=>s[e]:e.bind(s,s);let r;X(t)?r=t:(r=t.handler,n=t);const o=jn(this),a=vo(i,r.bind(s),n);return o(),a}function Eo(e,t){const n=t.split(".");return()=>{let s=e;for(let i=0;i<n.length&&s;i++)s=s[n[i]];return s}}function Gt(e,t=1/0,n){if(t<=0||!ge(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,be(e))Gt(e.value,t,n);else if(z(e))for(let s=0;s<e.length;s++)Gt(e[s],t,n);else if(Li(e)||fn(e))e.forEach(s=>{Gt(s,t,n)});else if(xi(e))for(const s in e)Gt(e[s],t,n);return e}function yu(e,t){if(Ce===null)return e;const n=Ss(Ce)||Ce.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,o,a,l=he]=t[i];r&&(X(r)&&(r={mounted:r,updated:r}),r.deep&&Gt(o),s.push({dir:r,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function Bt(e,t,n,s){const i=e.dirs,r=t&&t.dirs;for(let o=0;o<i.length;o++){const a=i[o];r&&(a.oldValue=r[o].value);let l=a.dir[s];l&&(mt(),qe(l,n,8,[e.el,a,e,t]),pt())}}/*! #__NO_SIDE_EFFECTS__ */function Xt(e,t){return X(e)?Ee({name:e.name},t,{setup:e}):e}const ws=e=>!!e.type.__asyncLoader,Io=e=>e.type.__isKeepAlive;function ku(e,t){To(e,"a",t)}function wu(e,t){To(e,"da",t)}function To(e,t,n=Te){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(vs(t,s,n),n){let i=n.parent;for(;i&&i.parent;)Io(i.parent.vnode)&&vu(s,t,n,i),i=i.parent}}function vu(e,t,n,s){const i=vs(t,e,s,!0);vr(()=>{sr(s[t],i)},n)}function vs(e,t,n=Te,s=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;mt();const a=jn(n),l=qe(t,n,e,o);return a(),pt(),l});return s?i.unshift(r):i.push(r),r}}const bt=e=>(t,n=Te)=>(!Os||e==="sp")&&vs(e,(...s)=>t(...s),n),Lo=bt("bm"),Es=bt("m"),Eu=bt("bu"),Iu=bt("u"),Oo=bt("bum"),vr=bt("um"),Tu=bt("sp"),Lu=bt("rtg"),Ou=bt("rtc");function Su(e,t=Te){vs("ec",e,t)}function So(e,t,n,s){let i;const r=n;if(z(e)||ye(e)){i=new Array(e.length);for(let o=0,a=e.length;o<a;o++)i[o]=t(e[o],o,void 0,r)}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,r)}else if(ge(e))if(e[Symbol.iterator])i=Array.from(e,(o,a)=>t(o,a,void 0,r));else{const o=Object.keys(e);i=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const f=o[a];i[a]=t(e[f],f,a,r)}}else i=[];return i}const Er=e=>e?Qo(e)?Ss(e)||e.proxy:Er(e.parent):null,An=Ee(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=>Er(e.parent),$root:e=>Er(e.root),$emit:e=>e.emit,$options:e=>Lr(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,kr(e.update)}),$nextTick:e=>e.n||(e.n=ho.bind(e.proxy)),$watch:e=>bu.bind(e)}),Ir=(e,t)=>e!==he&&!e.__isScriptSetup&&te(e,t),xu={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:i,props:r,accessCache:o,type:a,appContext:l}=e;let f;if(t[0]!=="$"){const g=o[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(Ir(s,t))return o[t]=1,s[t];if(i!==he&&te(i,t))return o[t]=2,i[t];if((f=e.propsOptions[0])&&te(f,t))return o[t]=3,r[t];if(n!==he&&te(n,t))return o[t]=4,n[t];Tr&&(o[t]=0)}}const c=An[t];let d,u;if(c)return t==="$attrs"&&Ue(e.attrs,"get",""),c(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==he&&te(n,t))return o[t]=4,n[t];if(u=l.config.globalProperties,te(u,t))return u[t]},set({_:e},t,n){const{data:s,setupState:i,ctx:r}=e;return Ir(i,t)?(i[t]=n,!0):s!==he&&te(s,t)?(s[t]=n,!0):te(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:i,propsOptions:r}},o){let a;return!!n[o]||e!==he&&te(e,o)||Ir(t,o)||(a=r[0])&&te(a,o)||te(s,o)||te(An,o)||te(i.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:te(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function xo(e){return z(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Tr=!0;function Cu(e){const t=Lr(e),n=e.proxy,s=e.ctx;Tr=!1,t.beforeCreate&&Co(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:o,watch:a,provide:l,inject:f,created:c,beforeMount:d,mounted:u,beforeUpdate:g,updated:w,activated:E,deactivated:I,beforeDestroy:S,beforeUnmount:N,destroyed:b,unmounted:y,render:O,renderTracked:L,renderTriggered:D,errorCaptured:P,serverPrefetch:A,expose:V,inheritAttrs:ne,components:Y,directives:pe,filters:nt}=t;if(f&&Nu(f,s,null),o)for(const ce in o){const ie=o[ce];X(ie)&&(s[ce]=ie.bind(n))}if(i){const ce=i.call(n,n);ge(ce)&&(e.data=hs(ce))}if(Tr=!0,r)for(const ce in r){const ie=r[ce],Ye=X(ie)?ie.bind(n,n):X(ie.get)?ie.get.bind(n,n):Xe,dt=!X(ie)&&X(ie.set)?ie.set.bind(n):Xe,ve=De({get:Ye,set:dt});Object.defineProperty(s,ce,{enumerable:!0,configurable:!0,get:()=>ve.value,set:Oe=>ve.value=Oe})}if(a)for(const ce in a)No(a[ce],s,n,ce);if(l){const ce=X(l)?l.call(n):l;Reflect.ownKeys(ce).forEach(ie=>{Fu(ie,ce[ie])})}c&&Co(c,e,"c");function J(ce,ie){z(ie)?ie.forEach(Ye=>ce(Ye.bind(n))):ie&&ce(ie.bind(n))}if(J(Lo,d),J(Es,u),J(Eu,g),J(Iu,w),J(ku,E),J(wu,I),J(Su,P),J(Ou,L),J(Lu,D),J(Oo,N),J(vr,y),J(Tu,A),z(V))if(V.length){const ce=e.exposed||(e.exposed={});V.forEach(ie=>{Object.defineProperty(ce,ie,{get:()=>n[ie],set:Ye=>n[ie]=Ye})})}else e.exposed||(e.exposed={});O&&e.render===Xe&&(e.render=O),ne!=null&&(e.inheritAttrs=ne),Y&&(e.components=Y),pe&&(e.directives=pe)}function Nu(e,t,n=Xe){z(e)&&(e=Or(e));for(const s in e){const i=e[s];let r;ge(i)?"default"in i?r=Ke(i.from||s,i.default,!0):r=Ke(i.from||s):r=Ke(i),be(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[s]=r}}function Co(e,t,n){qe(z(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function No(e,t,n,s){const i=s.includes(".")?Eo(n,s):()=>n[s];if(ye(e)){const r=t[e];X(r)&&Yt(i,r)}else if(X(e))Yt(i,e.bind(n));else if(ge(e))if(z(e))e.forEach(r=>No(r,t,n,s));else{const r=X(e.handler)?e.handler.bind(n):t[e.handler];X(r)&&Yt(i,r,e)}}function Lr(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=e.appContext,a=r.get(t);let l;return a?l=a:!i.length&&!n&&!s?l=t:(l={},i.length&&i.forEach(f=>Is(l,f,o,!0)),Is(l,t,o)),ge(t)&&r.set(t,l),l}function Is(e,t,n,s=!1){const{mixins:i,extends:r}=t;r&&Is(e,r,n,!0),i&&i.forEach(o=>Is(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const a=Pu[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Pu={data:Po,props:Ao,emits:Ao,methods:Rn,computed:Rn,beforeCreate:Me,created:Me,beforeMount:Me,mounted:Me,beforeUpdate:Me,updated:Me,beforeDestroy:Me,beforeUnmount:Me,destroyed:Me,unmounted:Me,activated:Me,deactivated:Me,errorCaptured:Me,serverPrefetch:Me,components:Rn,directives:Rn,watch:Ru,provide:Po,inject:Au};function Po(e,t){return t?e?function(){return Ee(X(e)?e.call(this,this):e,X(t)?t.call(this,this):t)}:t:e}function Au(e,t){return Rn(Or(e),Or(t))}function Or(e){if(z(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Me(e,t){return e?[...new Set([].concat(e,t))]:t}function Rn(e,t){return e?Ee(Object.create(null),e,t):t}function Ao(e,t){return e?z(e)&&z(t)?[...new Set([...e,...t])]:Ee(Object.create(null),xo(e),xo(t??{})):t}function Ru(e,t){if(!e)return t;if(!t)return e;const n=Ee(Object.create(null),e);for(const s in t)n[s]=Me(e[s],t[s]);return n}function Ro(){return{app:null,config:{isNativeTag:uc,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 Mu=0;function Du(e,t){return function(s,i=null){X(s)||(s=Ee({},s)),i!=null&&!ge(i)&&(i=null);const r=Ro(),o=new WeakSet;let a=!1;const l=r.app={_uid:Mu++,_component:s,_props:i,_container:null,_context:r,_instance:null,version:uf,get config(){return r.config},set config(f){},use(f,...c){return o.has(f)||(f&&X(f.install)?(o.add(f),f.install(l,...c)):X(f)&&(o.add(f),f(l,...c))),l},mixin(f){return r.mixins.includes(f)||r.mixins.push(f),l},component(f,c){return c?(r.components[f]=c,l):r.components[f]},directive(f,c){return c?(r.directives[f]=c,l):r.directives[f]},mount(f,c,d){if(!a){const u=Ne(s,i);return u.appContext=r,d===!0?d="svg":d===!1&&(d=void 0),c&&t?t(u,f):e(u,f,d),a=!0,l._container=f,f.__vue_app__=l,Ss(u.component)||u.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(f,c){return r.provides[f]=c,l},runWithContext(f){const c=hn;hn=l;try{return f()}finally{hn=c}}};return l}}let hn=null;function Fu(e,t){if(Te){let n=Te.provides;const s=Te.parent&&Te.parent.provides;s===n&&(n=Te.provides=Object.create(s)),n[e]=t}}function Ke(e,t,n=!1){const s=Te||Ce;if(s||hn){const i=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:hn._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&X(t)?t.call(s&&s.proxy):t}}function $u(){return!!(Te||Ce||hn)}const Mo={},Do=()=>Object.create(Mo),Fo=e=>Object.getPrototypeOf(e)===Mo;function Uu(e,t,n,s=!1){const i={},r=Do();e.propsDefaults=Object.create(null),$o(e,t,i,r);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=s?i:Hc(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function ju(e,t,n,s){const{props:i,attrs:r,vnode:{patchFlag:o}}=e,a=ee(i),[l]=e.propsOptions;let f=!1;if((s||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let u=c[d];if(bs(e.emitsOptions,u))continue;const g=t[u];if(l)if(te(r,u))g!==r[u]&&(r[u]=g,f=!0);else{const w=st(u);i[w]=Sr(l,a,w,g,e,!1)}else g!==r[u]&&(r[u]=g,f=!0)}}}else{$o(e,t,i,r)&&(f=!0);let c;for(const d in a)(!t||!te(t,d)&&((c=Wt(d))===d||!te(t,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(i[d]=Sr(l,a,d,void 0,e,!0)):delete i[d]);if(r!==a)for(const d in r)(!t||!te(t,d))&&(delete r[d],f=!0)}f&>(e.attrs,"set","")}function $o(e,t,n,s){const[i,r]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(On(l))continue;const f=t[l];let c;i&&te(i,c=st(l))?!r||!r.includes(c)?n[c]=f:(a||(a={}))[c]=f:bs(e.emitsOptions,l)||(!(l in s)||f!==s[l])&&(s[l]=f,o=!0)}if(r){const l=ee(n),f=a||he;for(let c=0;c<r.length;c++){const d=r[c];n[d]=Sr(i,l,d,f[d],e,!te(f,d))}}return o}function Sr(e,t,n,s,i,r){const o=e[n];if(o!=null){const a=te(o,"default");if(a&&s===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&X(l)){const{propsDefaults:f}=i;if(n in f)s=f[n];else{const c=jn(i);s=f[n]=l.call(null,t),c()}}else s=l}o[0]&&(r&&!a?s=!1:o[1]&&(s===""||s===Wt(n))&&(s=!0))}return s}function Uo(e,t,n=!1){const s=t.propsCache,i=s.get(e);if(i)return i;const r=e.props,o={},a=[];let l=!1;if(!X(e)){const c=d=>{l=!0;const[u,g]=Uo(d,t,!0);Ee(o,u),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!r&&!l)return ge(e)&&s.set(e,un),un;if(z(r))for(let c=0;c<r.length;c++){const d=st(r[c]);jo(d)&&(o[d]=he)}else if(r)for(const c in r){const d=st(c);if(jo(d)){const u=r[c],g=o[d]=z(u)||X(u)?{type:u}:Ee({},u);if(g){const w=Vo(Boolean,g.type),E=Vo(String,g.type);g[0]=w>-1,g[1]=E<0||w<E,(w>-1||te(g,"default"))&&a.push(d)}}}const f=[o,a];return ge(e)&&s.set(e,f),f}function jo(e){return e[0]!=="$"&&!On(e)}function Wo(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Ho(e,t){return Wo(e)===Wo(t)}function Vo(e,t){return z(t)?t.findIndex(n=>Ho(n,e)):X(t)&&Ho(t,e)?0:-1}const Ko=e=>e[0]==="_"||e==="$stable",xr=e=>z(e)?e.map(it):[it(e)],Wu=(e,t,n)=>{if(t._n)return t;const s=iu((...i)=>xr(t(...i)),n);return s._c=!1,s},zo=(e,t,n)=>{const s=e._ctx;for(const i in e){if(Ko(i))continue;const r=e[i];if(X(r))t[i]=Wu(i,r,s);else if(r!=null){const o=xr(r);t[i]=()=>o}}},Yo=(e,t)=>{const n=xr(t);e.slots.default=()=>n},Hu=(e,t)=>{const n=e.slots=Do();if(e.vnode.shapeFlag&32){const s=t._;s?(Ee(n,t),Ci(n,"_",s,!0)):zo(t,n)}else t&&Yo(e,t)},Vu=(e,t,n)=>{const{vnode:s,slots:i}=e;let r=!0,o=he;if(s.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:(Ee(i,t),!n&&a===1&&delete i._):(r=!t.$stable,zo(t,i)),o=t}else t&&(Yo(e,t),o={default:1});if(r)for(const a in i)!Ko(a)&&o[a]==null&&delete i[a]};function Cr(e,t,n,s,i=!1){if(z(e)){e.forEach((u,g)=>Cr(u,t&&(z(t)?t[g]:t),n,s,i));return}if(ws(s)&&!i)return;const r=s.shapeFlag&4?Ss(s.component)||s.component.proxy:s.el,o=i?null:r,{i:a,r:l}=e,f=t&&t.r,c=a.refs===he?a.refs={}:a.refs,d=a.setupState;if(f!=null&&f!==l&&(ye(f)?(c[f]=null,te(d,f)&&(d[f]=null)):be(f)&&(f.value=null)),X(l))_t(l,a,12,[o,c]);else{const u=ye(l),g=be(l);if(u||g){const w=()=>{if(e.f){const E=u?te(d,l)?d[l]:c[l]:l.value;i?z(E)&&sr(E,r):z(E)?E.includes(r)||E.push(r):u?(c[l]=[r],te(d,l)&&(d[l]=c[l])):(l.value=[r],e.k&&(c[e.k]=l.value))}else u?(c[l]=o,te(d,l)&&(d[l]=o)):g&&(l.value=o,e.k&&(c[e.k]=o))};o?(w.id=-1,je(w,n)):w()}}}const je=pu;function Ku(e){return zu(e)}function zu(e,t){const n=Pi();n.__VUE__=!0;const{insert:s,remove:i,patchProp:r,createElement:o,createText:a,createComment:l,setText:f,setElementText:c,parentNode:d,nextSibling:u,setScopeId:g=Xe,insertStaticContent:w}=e,E=(_,p,T,R=null,M=null,$=null,U=void 0,h=null,m=!!p.dynamicChildren)=>{if(_===p)return;_&&!$n(_,p)&&(R=vt(_),Oe(_,M,$,!0),_=null),p.patchFlag===-2&&(m=!1,p.dynamicChildren=null);const{type:k,ref:C,shapeFlag:j}=p;switch(k){case Mn:I(_,p,T,R);break;case Jt:S(_,p,T,R);break;case Pr:_==null&&N(p,T,R,U);break;case Ie:Y(_,p,T,R,M,$,U,h,m);break;default:j&1?O(_,p,T,R,M,$,U,h,m):j&6?pe(_,p,T,R,M,$,U,h,m):(j&64||j&128)&&k.process(_,p,T,R,M,$,U,h,m,Je)}C!=null&&M&&Cr(C,_&&_.ref,$,p||_,!p)},I=(_,p,T,R)=>{if(_==null)s(p.el=a(p.children),T,R);else{const M=p.el=_.el;p.children!==_.children&&f(M,p.children)}},S=(_,p,T,R)=>{_==null?s(p.el=l(p.children||""),T,R):p.el=_.el},N=(_,p,T,R)=>{[_.el,_.anchor]=w(_.children,p,T,R,_.el,_.anchor)},b=({el:_,anchor:p},T,R)=>{let M;for(;_&&_!==p;)M=u(_),s(_,T,R),_=M;s(p,T,R)},y=({el:_,anchor:p})=>{let T;for(;_&&_!==p;)T=u(_),i(_),_=T;i(p)},O=(_,p,T,R,M,$,U,h,m)=>{p.type==="svg"?U="svg":p.type==="math"&&(U="mathml"),_==null?L(p,T,R,M,$,U,h,m):A(_,p,M,$,U,h,m)},L=(_,p,T,R,M,$,U,h)=>{let m,k;const{props:C,shapeFlag:j,transition:F,dirs:v}=_;if(m=_.el=o(_.type,$,C&&C.is,C),j&8?c(m,_.children):j&16&&P(_.children,m,null,R,M,Nr(_,$),U,h),v&&Bt(_,null,R,"created"),D(m,_,_.scopeId,U,R),C){for(const H in C)H!=="value"&&!On(H)&&r(m,H,null,C[H],$,_.children,R,M,$e);"value"in C&&r(m,"value",null,C.value,$),(k=C.onVnodeBeforeMount)&&ot(k,R,_)}v&&Bt(_,null,R,"beforeMount");const x=Yu(M,F);x&&F.beforeEnter(m),s(m,p,T),((k=C&&C.onVnodeMounted)||x||v)&&je(()=>{k&&ot(k,R,_),x&&F.enter(m),v&&Bt(_,null,R,"mounted")},M)},D=(_,p,T,R,M)=>{if(T&&g(_,T),R)for(let $=0;$<R.length;$++)g(_,R[$]);if(M){let $=M.subTree;if(p===$){const U=M.vnode;D(_,U,U.scopeId,U.slotScopeIds,M.parent)}}},P=(_,p,T,R,M,$,U,h,m=0)=>{for(let k=m;k<_.length;k++){const C=_[k]=h?St(_[k]):it(_[k]);E(null,C,p,T,R,M,$,U,h)}},A=(_,p,T,R,M,$,U)=>{const h=p.el=_.el;let{patchFlag:m,dynamicChildren:k,dirs:C}=p;m|=_.patchFlag&16;const j=_.props||he,F=p.props||he;let v;if(T&&Zt(T,!1),(v=F.onVnodeBeforeUpdate)&&ot(v,T,p,_),C&&Bt(p,_,T,"beforeUpdate"),T&&Zt(T,!0),k?V(_.dynamicChildren,k,h,T,R,Nr(p,M),$):U||ie(_,p,h,null,T,R,Nr(p,M),$,!1),m>0){if(m&16)ne(h,p,j,F,T,R,M);else if(m&2&&j.class!==F.class&&r(h,"class",null,F.class,M),m&4&&r(h,"style",j.style,F.style,M),m&8){const x=p.dynamicProps;for(let H=0;H<x.length;H++){const G=x[H],fe=j[G],Re=F[G];(Re!==fe||G==="value")&&r(h,G,fe,Re,M,_.children,T,R,$e)}}m&1&&_.children!==p.children&&c(h,p.children)}else!U&&k==null&&ne(h,p,j,F,T,R,M);((v=F.onVnodeUpdated)||C)&&je(()=>{v&&ot(v,T,p,_),C&&Bt(p,_,T,"updated")},R)},V=(_,p,T,R,M,$,U)=>{for(let h=0;h<p.length;h++){const m=_[h],k=p[h],C=m.el&&(m.type===Ie||!$n(m,k)||m.shapeFlag&70)?d(m.el):T;E(m,k,C,null,R,M,$,U,!0)}},ne=(_,p,T,R,M,$,U)=>{if(T!==R){if(T!==he)for(const h in T)!On(h)&&!(h in R)&&r(_,h,T[h],null,U,p.children,M,$,$e);for(const h in R){if(On(h))continue;const m=R[h],k=T[h];m!==k&&h!=="value"&&r(_,h,k,m,U,p.children,M,$,$e)}"value"in R&&r(_,"value",T.value,R.value,U)}},Y=(_,p,T,R,M,$,U,h,m)=>{const k=p.el=_?_.el:a(""),C=p.anchor=_?_.anchor:a("");let{patchFlag:j,dynamicChildren:F,slotScopeIds:v}=p;v&&(h=h?h.concat(v):v),_==null?(s(k,T,R),s(C,T,R),P(p.children||[],T,C,M,$,U,h,m)):j>0&&j&64&&F&&_.dynamicChildren?(V(_.dynamicChildren,F,T,M,$,U,h),(p.key!=null||M&&p===M.subTree)&&Go(_,p,!0)):ie(_,p,T,C,M,$,U,h,m)},pe=(_,p,T,R,M,$,U,h,m)=>{p.slotScopeIds=h,_==null?p.shapeFlag&512?M.ctx.activate(p,T,R,U,m):nt(p,T,R,M,$,U,m):He(_,p,m)},nt=(_,p,T,R,M,$,U)=>{const h=_.component=tf(_,R,M);if(Io(_)&&(h.ctx.renderer=Je),nf(h),h.asyncDep){if(M&&M.registerDep(h,J),!_.el){const m=h.subTree=Ne(Jt);S(null,m,p,T)}}else J(h,_,p,T,M,$,U)},He=(_,p,T)=>{const R=p.component=_.component;if(lu(_,p,T))if(R.asyncDep&&!R.asyncResolved){ce(R,p,T);return}else R.next=p,tu(R.update),R.effect.dirty=!0,R.update();else p.el=_.el,R.vnode=p},J=(_,p,T,R,M,$,U)=>{const h=()=>{if(_.isMounted){let{next:C,bu:j,u:F,parent:v,vnode:x}=_;{const Ge=Bo(_);if(Ge){C&&(C.el=x.el,ce(_,C,U)),Ge.asyncDep.then(()=>{_.isUnmounted||h()});return}}let H=C,G;Zt(_,!1),C?(C.el=x.el,ce(_,C,U)):C=x,j&&ns(j),(G=C.props&&C.props.onVnodeBeforeUpdate)&&ot(G,v,C,x),Zt(_,!0);const fe=wr(_),Re=_.subTree;_.subTree=fe,E(Re,fe,d(Re.el),vt(Re),_,M,$),C.el=fe.el,H===null&&cu(_,fe.el),F&&je(F,M),(G=C.props&&C.props.onVnodeUpdated)&&je(()=>ot(G,v,C,x),M)}else{let C;const{el:j,props:F}=p,{bm:v,m:x,parent:H}=_,G=ws(p);if(Zt(_,!1),v&&ns(v),!G&&(C=F&&F.onVnodeBeforeMount)&&ot(C,H,p),Zt(_,!0),j&&Ut){const fe=()=>{_.subTree=wr(_),Ut(j,_.subTree,_,M,null)};G?p.type.__asyncLoader().then(()=>!_.isUnmounted&&fe()):fe()}else{const fe=_.subTree=wr(_);E(null,fe,T,R,_,M,$),p.el=fe.el}if(x&&je(x,M),!G&&(C=F&&F.onVnodeMounted)){const fe=p;je(()=>ot(C,H,fe),M)}(p.shapeFlag&256||H&&ws(H.vnode)&&H.vnode.shapeFlag&256)&&_.a&&je(_.a,M),_.isMounted=!0,p=T=R=null}},m=_.effect=new cr(h,Xe,()=>kr(k),_.scope),k=_.update=()=>{m.dirty&&m.run()};k.id=_.uid,Zt(_,!0),k()},ce=(_,p,T)=>{p.component=_;const R=_.vnode.props;_.vnode=p,_.next=null,ju(_,p.props,R,T),Vu(_,p.children,T),mt(),po(_),pt()},ie=(_,p,T,R,M,$,U,h,m=!1)=>{const k=_&&_.children,C=_?_.shapeFlag:0,j=p.children,{patchFlag:F,shapeFlag:v}=p;if(F>0){if(F&128){dt(k,j,T,R,M,$,U,h,m);return}else if(F&256){Ye(k,j,T,R,M,$,U,h,m);return}}v&8?(C&16&&$e(k,M,$),j!==k&&c(T,j)):C&16?v&16?dt(k,j,T,R,M,$,U,h,m):$e(k,M,$,!0):(C&8&&c(T,""),v&16&&P(j,T,R,M,$,U,h,m))},Ye=(_,p,T,R,M,$,U,h,m)=>{_=_||un,p=p||un;const k=_.length,C=p.length,j=Math.min(k,C);let F;for(F=0;F<j;F++){const v=p[F]=m?St(p[F]):it(p[F]);E(_[F],v,T,null,M,$,U,h,m)}k>C?$e(_,M,$,!0,!1,j):P(p,T,R,M,$,U,h,m,j)},dt=(_,p,T,R,M,$,U,h,m)=>{let k=0;const C=p.length;let j=_.length-1,F=C-1;for(;k<=j&&k<=F;){const v=_[k],x=p[k]=m?St(p[k]):it(p[k]);if($n(v,x))E(v,x,T,null,M,$,U,h,m);else break;k++}for(;k<=j&&k<=F;){const v=_[j],x=p[F]=m?St(p[F]):it(p[F]);if($n(v,x))E(v,x,T,null,M,$,U,h,m);else break;j--,F--}if(k>j){if(k<=F){const v=F+1,x=v<C?p[v].el:R;for(;k<=F;)E(null,p[k]=m?St(p[k]):it(p[k]),T,x,M,$,U,h,m),k++}}else if(k>F)for(;k<=j;)Oe(_[k],M,$,!0),k++;else{const v=k,x=k,H=new Map;for(k=x;k<=F;k++){const Be=p[k]=m?St(p[k]):it(p[k]);Be.key!=null&&H.set(Be.key,k)}let G,fe=0;const Re=F-x+1;let Ge=!1,er=0;const Ln=new Array(Re);for(k=0;k<Re;k++)Ln[k]=0;for(k=v;k<=j;k++){const Be=_[k];if(fe>=Re){Oe(Be,M,$,!0);continue}let ht;if(Be.key!=null)ht=H.get(Be.key);else for(G=x;G<=F;G++)if(Ln[G-x]===0&&$n(Be,p[G])){ht=G;break}ht===void 0?Oe(Be,M,$,!0):(Ln[ht-x]=k+1,ht>=er?er=ht:Ge=!0,E(Be,p[ht],T,null,M,$,U,h,m),fe++)}const lc=Ge?Gu(Ln):un;for(G=lc.length-1,k=Re-1;k>=0;k--){const Be=x+k,ht=p[Be],cc=Be+1<C?p[Be+1].el:R;Ln[k]===0?E(null,ht,T,cc,M,$,U,h,m):Ge&&(G<0||k!==lc[G]?ve(ht,T,cc,2):G--)}}},ve=(_,p,T,R,M=null)=>{const{el:$,type:U,transition:h,children:m,shapeFlag:k}=_;if(k&6){ve(_.component.subTree,p,T,R);return}if(k&128){_.suspense.move(p,T,R);return}if(k&64){U.move(_,p,T,Je);return}if(U===Ie){s($,p,T);for(let j=0;j<m.length;j++)ve(m[j],p,T,R);s(_.anchor,p,T);return}if(U===Pr){b(_,p,T);return}if(R!==2&&k&1&&h)if(R===0)h.beforeEnter($),s($,p,T),je(()=>h.enter($),M);else{const{leave:j,delayLeave:F,afterLeave:v}=h,x=()=>s($,p,T),H=()=>{j($,()=>{x(),v&&v()})};F?F($,x,H):H()}else s($,p,T)},Oe=(_,p,T,R=!1,M=!1)=>{const{type:$,props:U,ref:h,children:m,dynamicChildren:k,shapeFlag:C,patchFlag:j,dirs:F}=_;if(h!=null&&Cr(h,null,T,_,!0),C&256){p.ctx.deactivate(_);return}const v=C&1&&F,x=!ws(_);let H;if(x&&(H=U&&U.onVnodeBeforeUnmount)&&ot(H,p,_),C&6)cn(_.component,T,R);else{if(C&128){_.suspense.unmount(T,R);return}v&&Bt(_,null,p,"beforeUnmount"),C&64?_.type.remove(_,p,T,M,Je,R):k&&($!==Ie||j>0&&j&64)?$e(k,p,T,!1,!0):($===Ie&&j&384||!M&&C&16)&&$e(m,p,T),R&&Mt(_)}(x&&(H=U&&U.onVnodeUnmounted)||v)&&je(()=>{H&&ot(H,p,_),v&&Bt(_,null,p,"unmounted")},T)},Mt=_=>{const{type:p,el:T,anchor:R,transition:M}=_;if(p===Ie){Dt(T,R);return}if(p===Pr){y(_);return}const $=()=>{i(T),M&&!M.persisted&&M.afterLeave&&M.afterLeave()};if(_.shapeFlag&1&&M&&!M.persisted){const{leave:U,delayLeave:h}=M,m=()=>U(T,$);h?h(_.el,$,m):m()}else $()},Dt=(_,p)=>{let T;for(;_!==p;)T=u(_),i(_),_=T;i(p)},cn=(_,p,T)=>{const{bum:R,scope:M,update:$,subTree:U,um:h}=_;R&&ns(R),M.stop(),$&&($.active=!1,Oe(U,_,p,T)),h&&je(h,p),je(()=>{_.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&_.asyncDep&&!_.asyncResolved&&_.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},$e=(_,p,T,R=!1,M=!1,$=0)=>{for(let U=$;U<_.length;U++)Oe(_[U],p,T,R,M)},vt=_=>_.shapeFlag&6?vt(_.component.subTree):_.shapeFlag&128?_.suspense.next():u(_.anchor||_.el);let Et=!1;const Ft=(_,p,T)=>{_==null?p._vnode&&Oe(p._vnode,null,null,!0):E(p._vnode||null,_,p,null,null,null,T),Et||(Et=!0,po(),go(),Et=!1),p._vnode=_},Je={p:E,um:Oe,m:ve,r:Mt,mt:nt,mc:P,pc:ie,pbc:V,n:vt,o:e};let $t,Ut;return{render:Ft,hydrate:$t,createApp:Du(Ft,$t)}}function Nr({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 Zt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Yu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Go(e,t,n=!1){const s=e.children,i=t.children;if(z(s)&&z(i))for(let r=0;r<s.length;r++){const o=s[r];let a=i[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[r]=St(i[r]),a.el=o.el),n||Go(o,a)),a.type===Mn&&(a.el=o.el)}}function Gu(e){const t=e.slice(),n=[0];let s,i,r,o,a;const l=e.length;for(s=0;s<l;s++){const f=e[s];if(f!==0){if(i=n[n.length-1],e[i]<f){t[s]=i,n.push(s);continue}for(r=0,o=n.length-1;r<o;)a=r+o>>1,e[n[a]]<f?r=a+1:o=a;f<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,o=n[r-1];r-- >0;)n[r]=o,o=t[o];return n}function Bo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Bo(t)}const Bu=e=>e.__isTeleport,Ie=Symbol.for("v-fgt"),Mn=Symbol.for("v-txt"),Jt=Symbol.for("v-cmt"),Pr=Symbol.for("v-stc"),Dn=[];let Qe=null;function q(e=!1){Dn.push(Qe=e?null:[])}function Xu(){Dn.pop(),Qe=Dn[Dn.length-1]||null}let Fn=1;function Xo(e){Fn+=e}function Zo(e){return e.dynamicChildren=Fn>0?Qe||un:null,Xu(),Fn>0&&Qe&&Qe.push(e),e}function re(e,t,n,s,i,r){return Zo(ae(e,t,n,s,i,r,!0))}function mn(e,t,n,s,i){return Zo(Ne(e,t,n,s,i,!0))}function Ar(e){return e?e.__v_isVNode===!0:!1}function $n(e,t){return e.type===t.type&&e.key===t.key}const Jo=({key:e})=>e??null,Ts=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||be(e)||X(e)?{i:Ce,r:e,k:t,f:!!n}:e:null);function ae(e,t=null,n=null,s=0,i=null,r=e===Ie?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Jo(t),ref:t&&Ts(t),scopeId:yo,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ce};return a?(Rr(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=ye(n)?8:16),Fn>0&&!o&&Qe&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&Qe.push(l),l}const Ne=Zu;function Zu(e,t=null,n=null,s=0,i=null,r=!1){if((!e||e===du)&&(e=Jt),Ar(e)){const a=pn(e,t,!0);return n&&Rr(a,n),Fn>0&&!r&&Qe&&(a.shapeFlag&6?Qe[Qe.indexOf(e)]=a:Qe.push(a)),a.patchFlag|=-2,a}if(cf(e)&&(e=e.__vccOpts),t){t=Ju(t);let{class:a,style:l}=t;a&&!ye(a)&&(t.class=rs(a)),ge(l)&&(ro(l)&&!z(l)&&(l=Ee({},l)),t.style=ss(l))}const o=ye(e)?1:mu(e)?128:Bu(e)?64:ge(e)?4:X(e)?2:0;return ae(e,t,n,s,i,o,r,!0)}function Ju(e){return e?ro(e)||Fo(e)?Ee({},e):e:null}function pn(e,t,n=!1,s=!1){const{props:i,ref:r,patchFlag:o,children:a,transition:l}=e,f=t?qu(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&Jo(f),ref:t&&t.ref?n&&r?z(r)?r.concat(Ts(t)):[r,Ts(t)]:Ts(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,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&&pn(e.ssContent),ssFallback:e.ssFallback&&pn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&(c.transition=l.clone(c)),c}function qt(e=" ",t=0){return Ne(Mn,null,e,t)}function Pe(e="",t=!1){return t?(q(),mn(Jt,null,e)):Ne(Jt,null,e)}function it(e){return e==null||typeof e=="boolean"?Ne(Jt):z(e)?Ne(Ie,null,e.slice()):typeof e=="object"?St(e):Ne(Mn,null,String(e))}function St(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pn(e)}function Rr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(z(t))n=16;else if(typeof t=="object")if(s&65){const i=t.default;i&&(i._c&&(i._d=!1),Rr(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Fo(t)?t._ctx=Ce:i===3&&Ce&&(Ce.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else X(t)?(t={default:t,_ctx:Ce},n=32):(t=String(t),s&64?(n=16,t=[qt(t)]):n=8);e.children=t,e.shapeFlag|=n}function qu(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const i in s)if(i==="class")t.class!==s.class&&(t.class=rs([t.class,s.class]));else if(i==="style")t.style=ss([t.style,s.style]);else if(qn(i)){const r=t[i],o=s[i];o&&r!==o&&!(z(r)&&r.includes(o))&&(t[i]=r?[].concat(r,o):o)}else i!==""&&(t[i]=s[i])}return t}function ot(e,t,n,s=null){qe(e,t,7,[n,s])}const Qu=Ro();let ef=0;function tf(e,t,n){const s=e.type,i=(t?t.appContext:e.appContext)||Qu,r={uid:ef++,vnode:e,type:s,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Mi(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Uo(s,i),emitsOptions:bo(s,i),emit:null,emitted:null,propsDefaults:he,inheritAttrs:s.inheritAttrs,ctx:he,data:he,props:he,attrs:he,slots:he,refs:he,setupState:he,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=ru.bind(null,r),e.ce&&e.ce(r),r}let Te=null;const Un=()=>Te||Ce;let Ls,Mr;{const e=Pi(),t=(n,s)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(s),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};Ls=t("__VUE_INSTANCE_SETTERS__",n=>Te=n),Mr=t("__VUE_SSR_SETTERS__",n=>Os=n)}const jn=e=>{const t=Te;return Ls(e),e.scope.on(),()=>{e.scope.off(),Ls(t)}},qo=()=>{Te&&Te.scope.off(),Ls(null)};function Qo(e){return e.vnode.shapeFlag&4}let Os=!1;function nf(e,t=!1){t&&Mr(t);const{props:n,children:s}=e.vnode,i=Qo(e);Uu(e,n,i,t),Hu(e,s);const r=i?sf(e,t):void 0;return t&&Mr(!1),r}function sf(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,xu);const{setup:s}=n;if(s){const i=e.setupContext=s.length>1?of(e):null,r=jn(e);mt();const o=_t(s,e,0,[e.props,i]);if(pt(),r(),Oi(o)){if(o.then(qo,qo),t)return o.then(a=>{ea(e,a,t)}).catch(a=>{_s(a,e,0)});e.asyncDep=o}else ea(e,o,t)}else na(e,t)}function ea(e,t,n){X(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=co(t)),na(e,n)}let ta;function na(e,t,n){const s=e.type;if(!e.render){if(!t&&ta&&!s.render){const i=s.template||Lr(e).template;if(i){const{isCustomElement:r,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,f=Ee(Ee({isCustomElement:r,delimiters:a},o),l);s.render=ta(i,f)}}e.render=s.render||Xe}{const i=jn(e);mt();try{Cu(e)}finally{pt(),i()}}}const rf={get(e,t){return Ue(e,"get",""),e[t]}};function of(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,rf),slots:e.slots,emit:e.emit,expose:t}}function Ss(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(co(gr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in An)return An[n](e)},has(t,n){return n in t||n in An}}))}const af=/(?:^|[-_])(\w)/g,lf=e=>e.replace(af,t=>t.toUpperCase()).replace(/[-_]/g,"");function sa(e,t=!0){return X(e)?e.displayName||e.name:e.name||t&&e.__name}function ra(e,t,n=!1){let s=sa(t);if(!s&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(s=i[1])}if(!s&&e&&e.parent){const i=r=>{for(const o in r)if(r[o]===t)return o};s=i(e.components||e.parent.type.components)||i(e.appContext.components)}return s?lf(s):n?"App":"Anonymous"}function cf(e){return X(e)&&"__vccOpts"in e}const De=(e,t)=>Vc(e,t,Os);function ia(e,t,n){const s=arguments.length;return s===2?ge(t)&&!z(t)?Ar(t)?Ne(e,null,[t]):Ne(e,t):Ne(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Ar(n)&&(n=[n]),Ne(e,t,n))}const uf="3.4.26";/**
|
|
17
|
+
* @vue/runtime-dom v3.4.26
|
|
18
18
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
19
19
|
* @license MIT
|
|
20
|
-
**/const
|
|
20
|
+
**/const ff="http://www.w3.org/2000/svg",df="http://www.w3.org/1998/Math/MathML",xt=typeof document<"u"?document:null,oa=xt&&xt.createElement("template"),hf={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const i=t==="svg"?xt.createElementNS(ff,e):t==="mathml"?xt.createElementNS(df,e):xt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:e=>xt.createTextNode(e),createComment:e=>xt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,i,r){const o=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{oa.innerHTML=s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e;const a=oa.content;if(s==="svg"||s==="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]}},mf=Symbol("_vtc");function pf(e,t,n){const s=e[mf];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const aa=Symbol("_vod"),gf=Symbol("_vsh"),_f=Symbol(""),bf=/(^|;)\s*display\s*:/;function yf(e,t,n){const s=e.style,i=ye(n);let r=!1;if(n&&!i){if(t)if(ye(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&xs(s,a,"")}else for(const o in t)n[o]==null&&xs(s,o,"");for(const o in n)o==="display"&&(r=!0),xs(s,o,n[o])}else if(i){if(t!==n){const o=s[_f];o&&(n+=";"+o),s.cssText=n,r=bf.test(n)}}else t&&e.removeAttribute("style");aa in e&&(e[aa]=r?s.display:"",e[gf]&&(s.display="none"))}const la=/\s*!important$/;function xs(e,t,n){if(z(n))n.forEach(s=>xs(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=kf(e,t);la.test(n)?e.setProperty(Wt(s),n.replace(la,""),"important"):e[s]=n}}const ca=["Webkit","Moz","ms"],Dr={};function kf(e,t){const n=Dr[t];if(n)return n;let s=st(t);if(s!=="filter"&&s in e)return Dr[t]=s;s=ts(s);for(let i=0;i<ca.length;i++){const r=ca[i]+s;if(r in e)return Dr[t]=r}return t}const ua="http://www.w3.org/1999/xlink";function wf(e,t,n,s,i){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(ua,t.slice(6,t.length)):e.setAttributeNS(ua,t,n);else{const r=yc(t);n==null||r&&!Ai(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function vf(e,t,n,s,i,r,o){if(t==="innerHTML"||t==="textContent"){s&&o(s,i,r),e[t]=n??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const f=a==="OPTION"?e.getAttribute("value")||"":e.value,c=n??"";(f!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const f=typeof e[t];f==="boolean"?n=Ai(n):n==null&&f==="string"?(n="",l=!0):f==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function gn(e,t,n,s){e.addEventListener(t,n,s)}function Ef(e,t,n,s){e.removeEventListener(t,n,s)}const fa=Symbol("_vei");function If(e,t,n,s,i=null){const r=e[fa]||(e[fa]={}),o=r[t];if(s&&o)o.value=s;else{const[a,l]=Tf(t);if(s){const f=r[t]=Sf(s,i);gn(e,a,f,l)}else o&&(Ef(e,a,o,l),r[t]=void 0)}}const da=/(?:Once|Passive|Capture)$/;function Tf(e){let t;if(da.test(e)){t={};let s;for(;s=e.match(da);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Wt(e.slice(2)),t]}let Fr=0;const Lf=Promise.resolve(),Of=()=>Fr||(Lf.then(()=>Fr=0),Fr=Date.now());function Sf(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;qe(xf(s,n.value),t,5,[s])};return n.value=e,n.attached=Of(),n}function xf(e,t){if(z(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>i=>!i._stopped&&s&&s(i))}else return t}const ha=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Cf=(e,t,n,s,i,r,o,a,l)=>{const f=i==="svg";t==="class"?pf(e,s,f):t==="style"?yf(e,n,s):qn(t)?nr(t)||If(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Nf(e,t,s,f))?vf(e,t,s,r,o,a,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),wf(e,t,s,f))};function Nf(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&ha(t)&&X(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return ha(t)&&ye(n)?!1:t in e}const ma=e=>{const t=e.props["onUpdate:modelValue"]||!1;return z(t)?n=>ns(t,n):t};function Pf(e){e.target.composing=!0}function pa(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const $r=Symbol("_assign"),Af={created(e,{modifiers:{lazy:t,trim:n,number:s}},i){e[$r]=ma(i);const r=s||i.props&&i.props.type==="number";gn(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),r&&(a=or(a)),e[$r](a)}),n&&gn(e,"change",()=>{e.value=e.value.trim()}),t||(gn(e,"compositionstart",Pf),gn(e,"compositionend",pa),gn(e,"change",pa))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:i}},r){if(e[$r]=ma(r),e.composing)return;const o=(i||e.type==="number")&&!/^0\d/.test(e.value)?or(e.value):e.value,a=t??"";o!==a&&(document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===a)||(e.value=a))}},Rf=["ctrl","shift","alt","meta"],Mf={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)=>Rf.some(n=>e[`${n}Key`]&&!t.includes(n))},Df=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(i,...r)=>{for(let o=0;o<t.length;o++){const a=Mf[t[o]];if(a&&a(i,t))return}return e(i,...r)})},Ff={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ga=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=i=>{if(!("key"in i))return;const r=Wt(i.key);if(t.some(o=>o===r||Ff[o]===r))return e(i)})},$f=Ee({patchProp:Cf},hf);let _a;function Uf(){return _a||(_a=Ku($f))}const jf=(...e)=>{const t=Uf().createApp(...e),{mount:n}=t;return t.mount=s=>{const i=Hf(s);if(!i)return;const r=t._component;!X(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.innerHTML="";const o=n(i,!1,Wf(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function Wf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Hf(e){return ye(e)?document.querySelector(e):e}var Vf=!1;/*!
|
|
21
21
|
* pinia v2.1.7
|
|
22
22
|
* (c) 2023 Eduardo San Martin Morote
|
|
23
23
|
* @license MIT
|
|
24
|
-
*/let ha;const Cs=e=>ha=e,ma=Symbol();function $r(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var jn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(jn||(jn={}));function Ff(){const e=ir(!0),t=e.run(()=>te({}));let n=[],s=[];const o=ms({install(r){Cs(o),o._a=r,r.provide(ma,o),r.config.globalProperties.$pinia=o,s.forEach(i=>n.push(i)),s=[]},use(r){return!this._a&&!Mf?s.push(r):n.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const pa=()=>{};function ga(e,t,n,s=pa){e.push(t);const o=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),s())};return!n&&Fo()&&mc(o),o}function _n(e,...t){e.slice().forEach(n=>{n(...t)})}const Df=e=>e();function Ur(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,s)=>e.set(s,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],o=e[n];$r(o)&&$r(s)&&e.hasOwnProperty(n)&&!_e(s)&&!Ct(s)?e[n]=Ur(o,s):e[n]=s}return e}const $f=Symbol();function Uf(e){return!$r(e)||!e.hasOwnProperty($f)}const{assign:Rt}=Object;function jf(e){return!!(_e(e)&&e.effect)}function Wf(e,t,n,s){const{state:o,actions:r,getters:i}=t,a=n.state.value[e];let l;function h(){a||(n.state.value[e]=o?o():{});const f=Uc(n.state.value[e]);return Rt(f,r,Object.keys(i||{}).reduce((m,d)=>(m[d]=ms(Fe(()=>{Cs(n);const g=n._s.get(e);return i[d].call(g,g)})),m),{}))}return l=_a(e,h,t,n,s,!0),l}function _a(e,t,n={},s,o,r){let i;const a=Rt({actions:{}},n),l={deep:!0};let h,f,m=[],d=[],g;const w=s.state.value[e];!r&&!w&&(s.state.value[e]={}),te({});let E;function I(M){let N;h=f=!1,typeof M=="function"?(M(s.state.value[e]),N={type:jn.patchFunction,storeId:e,events:g}):(Ur(s.state.value[e],M),N={type:jn.patchObject,payload:M,storeId:e,events:g});const K=E=Symbol();ui().then(()=>{E===K&&(h=!0)}),f=!0,_n(m,N,s.state.value[e])}const _=r?function(){const{state:N}=n,K=N?N():{};this.$patch(re=>{Rt(re,K)})}:pa;function k(){i.stop(),m=[],d=[],s._s.delete(e)}function y(M,N){return function(){Cs(s);const K=Array.from(arguments),re=[],ie=[];function be(Z){re.push(Z)}function qe(Z){ie.push(Z)}_n(d,{args:K,name:M,store:S,after:be,onError:qe});let Ve;try{Ve=N.apply(this&&this.$id===e?this:S,K)}catch(Z){throw _n(ie,Z),Z}return Ve instanceof Promise?Ve.then(Z=>(_n(re,Z),Z)).catch(Z=>(_n(ie,Z),Promise.reject(Z))):(_n(re,Ve),Ve)}}const b={_p:s,$id:e,$onAction:ga.bind(null,d),$patch:I,$reset:_,$subscribe(M,N={}){const K=ga(m,M,N.detached,()=>re()),re=i.run(()=>zt(()=>s.state.value[e],ie=>{(N.flush==="sync"?f:h)&&M({storeId:e,type:jn.direct,events:g},ie)},Rt({},l,N)));return K},$dispose:k},S=ds(b);s._s.set(e,S);const D=(s._a&&s._a.runWithContext||Df)(()=>s._e.run(()=>(i=ir()).run(t)));for(const M in D){const N=D[M];if(_e(N)&&!jf(N)||Ct(N))r||(w&&Uf(N)&&(_e(N)?N.value=w[M]:Ur(N,w[M])),s.state.value[e][M]=N);else if(typeof N=="function"){const K=y(M,N);D[M]=K,a.actions[M]=N}}return Rt(S,D),Rt(Q(S),D),Object.defineProperty(S,"$state",{get:()=>s.state.value[e],set:M=>{I(N=>{Rt(N,M)})}}),s._p.forEach(M=>{Rt(S,i.run(()=>M({store:S,app:s._a,pinia:s,options:a})))}),w&&r&&n.hydrate&&n.hydrate(S.$state,w),h=!0,f=!0,S}function Hf(e,t,n){let s,o;const r=typeof t=="function";typeof e=="string"?(s=e,o=r?n:t):(o=e,s=e.id);function i(a,l){const h=Cu();return a=a||(h?Ge(ma,null):null),a&&Cs(a),a=ha,a._s.has(s)||(r?_a(s,t,o,a):Wf(s,o,a)),a._s.get(s)}return i.$id=s,i}const ba=Symbol("$auth0");function lt(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(s=Object.getOwnPropertySymbols(e);o<s.length;o++)t.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(e,s[o])&&(n[s[o]]=e[s[o]])}return n}typeof SuppressedError=="function"&&SuppressedError;var qt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wr(e,t){return e(t={exports:{}},t.exports),t.exports}var Qt=Wr(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function s(){var o=this;this.locked=new Map,this.addToLocked=function(r,i){var a=o.locked.get(r);a===void 0?i===void 0?o.locked.set(r,[]):o.locked.set(r,[i]):i!==void 0&&(a.unshift(i),o.locked.set(r,a))},this.isLocked=function(r){return o.locked.has(r)},this.lock=function(r){return new Promise(function(i,a){o.isLocked(r)?o.addToLocked(r,i):(o.addToLocked(r),i())})},this.unlock=function(r){var i=o.locked.get(r);if(i!==void 0&&i.length!==0){var a=i.pop();o.locked.set(r,i),a!==void 0&&setTimeout(a,0)}else o.locked.delete(r)}}return s.getInstance=function(){return s.instance===void 0&&(s.instance=new s),s.instance},s}();t.default=function(){return n.getInstance()}});jr(Qt);var Vf=jr(Wr(function(e,t){var n=qt&&qt.__awaiter||function(f,m,d,g){return new(d||(d=Promise))(function(w,E){function I(y){try{k(g.next(y))}catch(b){E(b)}}function _(y){try{k(g.throw(y))}catch(b){E(b)}}function k(y){y.done?w(y.value):new d(function(b){b(y.value)}).then(I,_)}k((g=g.apply(f,m||[])).next())})},s=qt&&qt.__generator||function(f,m){var d,g,w,E,I={label:0,sent:function(){if(1&w[0])throw w[1];return w[1]},trys:[],ops:[]};return E={next:_(0),throw:_(1),return:_(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function _(k){return function(y){return function(b){if(d)throw new TypeError("Generator is already executing.");for(;I;)try{if(d=1,g&&(w=2&b[0]?g.return:b[0]?g.throw||((w=g.return)&&w.call(g),0):g.next)&&!(w=w.call(g,b[1])).done)return w;switch(g=0,w&&(b=[2&b[0],w.value]),b[0]){case 0:case 1:w=b;break;case 4:return I.label++,{value:b[1],done:!1};case 5:I.label++,g=b[1],b=[0];continue;case 7:b=I.ops.pop(),I.trys.pop();continue;default:if(!((w=(w=I.trys).length>0&&w[w.length-1])||b[0]!==6&&b[0]!==2)){I=0;continue}if(b[0]===3&&(!w||b[1]>w[0]&&b[1]<w[3])){I.label=b[1];break}if(b[0]===6&&I.label<w[1]){I.label=w[1],w=b;break}if(w&&I.label<w[2]){I.label=w[2],I.ops.push(b);break}w[2]&&I.ops.pop(),I.trys.pop();continue}b=m.call(f,I)}catch(S){b=[6,S],g=0}finally{d=w=0}if(5&b[0])throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}([k,y])}}},o=qt;Object.defineProperty(t,"__esModule",{value:!0});var r="browser-tabs-lock-key",i={key:function(f){return n(o,void 0,void 0,function(){return s(this,function(m){throw new Error("Unsupported")})})},getItem:function(f){return n(o,void 0,void 0,function(){return s(this,function(m){throw new Error("Unsupported")})})},clear:function(){return n(o,void 0,void 0,function(){return s(this,function(f){return[2,window.localStorage.clear()]})})},removeItem:function(f){return n(o,void 0,void 0,function(){return s(this,function(m){throw new Error("Unsupported")})})},setItem:function(f,m){return n(o,void 0,void 0,function(){return s(this,function(d){throw new Error("Unsupported")})})},keySync:function(f){return window.localStorage.key(f)},getItemSync:function(f){return window.localStorage.getItem(f)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(f){return window.localStorage.removeItem(f)},setItemSync:function(f,m){return window.localStorage.setItem(f,m)}};function a(f){return new Promise(function(m){return setTimeout(m,f)})}function l(f){for(var m="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",d="",g=0;g<f;g++)d+=m[Math.floor(Math.random()*m.length)];return d}var h=function(){function f(m){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=m,f.waiters===void 0&&(f.waiters=[])}return f.prototype.acquireLock=function(m,d){return d===void 0&&(d=5e3),n(this,void 0,void 0,function(){var g,w,E,I,_,k,y;return s(this,function(b){switch(b.label){case 0:g=Date.now()+l(4),w=Date.now()+d,E=r+"-"+m,I=this.storageHandler===void 0?i:this.storageHandler,b.label=1;case 1:return Date.now()<w?[4,a(30)]:[3,8];case 2:return b.sent(),I.getItemSync(E)!==null?[3,5]:(_=this.id+"-"+m+"-"+g,[4,a(Math.floor(25*Math.random()))]);case 3:return b.sent(),I.setItemSync(E,JSON.stringify({id:this.id,iat:g,timeoutKey:_,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];case 4:return b.sent(),(k=I.getItemSync(E))!==null&&(y=JSON.parse(k)).id===this.id&&y.iat===g?(this.acquiredIatSet.add(g),this.refreshLockWhileAcquired(E,g),[2,!0]):[3,7];case 5:return f.lockCorrector(this.storageHandler===void 0?i:this.storageHandler),[4,this.waitForSomethingToChange(w)];case 6:b.sent(),b.label=7;case 7:return g=Date.now()+l(4),[3,1];case 8:return[2,!1]}})})},f.prototype.refreshLockWhileAcquired=function(m,d){return n(this,void 0,void 0,function(){var g=this;return s(this,function(w){return setTimeout(function(){return n(g,void 0,void 0,function(){var E,I,_;return s(this,function(k){switch(k.label){case 0:return[4,Qt.default().lock(d)];case 1:return k.sent(),this.acquiredIatSet.has(d)?(E=this.storageHandler===void 0?i:this.storageHandler,(I=E.getItemSync(m))===null?(Qt.default().unlock(d),[2]):((_=JSON.parse(I)).timeRefreshed=Date.now(),E.setItemSync(m,JSON.stringify(_)),Qt.default().unlock(d),this.refreshLockWhileAcquired(m,d),[2])):(Qt.default().unlock(d),[2])}})})},1e3),[2]})})},f.prototype.waitForSomethingToChange=function(m){return n(this,void 0,void 0,function(){return s(this,function(d){switch(d.label){case 0:return[4,new Promise(function(g){var w=!1,E=Date.now(),I=!1;function _(){if(I||(window.removeEventListener("storage",_),f.removeFromWaiting(_),clearTimeout(k),I=!0),!w){w=!0;var y=50-(Date.now()-E);y>0?setTimeout(g,y):g(null)}}window.addEventListener("storage",_),f.addToWaiting(_);var k=setTimeout(_,Math.max(0,m-Date.now()))})];case 1:return d.sent(),[2]}})})},f.addToWaiting=function(m){this.removeFromWaiting(m),f.waiters!==void 0&&f.waiters.push(m)},f.removeFromWaiting=function(m){f.waiters!==void 0&&(f.waiters=f.waiters.filter(function(d){return d!==m}))},f.notifyWaiters=function(){f.waiters!==void 0&&f.waiters.slice().forEach(function(m){return m()})},f.prototype.releaseLock=function(m){return n(this,void 0,void 0,function(){return s(this,function(d){switch(d.label){case 0:return[4,this.releaseLock__private__(m)];case 1:return[2,d.sent()]}})})},f.prototype.releaseLock__private__=function(m){return n(this,void 0,void 0,function(){var d,g,w,E;return s(this,function(I){switch(I.label){case 0:return d=this.storageHandler===void 0?i:this.storageHandler,g=r+"-"+m,(w=d.getItemSync(g))===null?[2]:(E=JSON.parse(w)).id!==this.id?[3,2]:[4,Qt.default().lock(E.iat)];case 1:I.sent(),this.acquiredIatSet.delete(E.iat),d.removeItemSync(g),Qt.default().unlock(E.iat),f.notifyWaiters(),I.label=2;case 2:return[2]}})})},f.lockCorrector=function(m){for(var d=Date.now()-5e3,g=m,w=[],E=0;;){var I=g.keySync(E);if(I===null)break;w.push(I),E++}for(var _=!1,k=0;k<w.length;k++){var y=w[k];if(y.includes(r)){var b=g.getItemSync(y);if(b!==null){var S=JSON.parse(b);(S.timeRefreshed===void 0&&S.timeAcquired<d||S.timeRefreshed!==void 0&&S.timeRefreshed<d)&&(g.removeItemSync(y),_=!0)}}}_&&f.notifyWaiters()},f.waiters=void 0,f}();t.default=h}));const Kf={timeoutInSeconds:60},ya={name:"auth0-spa-js",version:"2.1.3"},ka=()=>Date.now();class Ae extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,Ae.prototype)}static fromPayload({error:t,error_description:n}){return new Ae(t,n)}}class Hr extends Ae{constructor(t,n,s,o=null){super(t,n),this.state=s,this.appState=o,Object.setPrototypeOf(this,Hr.prototype)}}class Wn extends Ae{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,Wn.prototype)}}class Vr extends Wn{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,Vr.prototype)}}class Kr extends Ae{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,Kr.prototype)}}class zr extends Ae{constructor(t,n,s){super(t,n),this.mfa_token=s,Object.setPrototypeOf(this,zr.prototype)}}class Ns extends Ae{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${wa(t,["default"])}', scope: '${wa(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,Ns.prototype)}}function wa(e,t=[]){return e&&!t.includes(e)?e:""}const Ps=()=>window.crypto,Gr=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(Ps().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},va=e=>btoa(e),Yr=e=>{var{clientId:t}=e,n=lt(e,["clientId"]);return new URLSearchParams((s=>Object.keys(s).filter(o=>s[o]!==void 0).reduce((o,r)=>Object.assign(Object.assign({},o),{[r]:s[r]}),{}))(Object.assign({client_id:t},n))).toString()},Ea=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),zf=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},Gf=async(e,t,n,s,o,r,i=1e4)=>o?(async(a,l,h,f,m,d,g)=>{return w={auth:{audience:l,scope:h},timeout:m,fetchUrl:a,fetchOptions:f,useFormData:g},E=d,new Promise(function(I,_){const k=new MessageChannel;k.port1.onmessage=function(y){y.data.error?_(new Error(y.data.error)):I(y.data),k.port1.close()},E.postMessage(w,[k.port2])});var w,E})(e,t,n,s,i,o,r):(async(a,l,h)=>{const f=new AbortController;let m;return l.signal=f.signal,Promise.race([zf(a,l),new Promise((d,g)=>{m=setTimeout(()=>{f.abort(),g(new Error("Timeout when executing 'fetch'"))},h)})]).finally(()=>{clearTimeout(m)})})(e,s,i);async function Yf(e,t){var{baseUrl:n,timeout:s,audience:o,scope:r,auth0Client:i,useFormData:a}=e,l=lt(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const h=a?Yr(l):JSON.stringify(l);return await async function(f,m,d,g,w,E,I){let _,k=null;for(let M=0;M<3;M++)try{_=await Gf(f,d,g,w,E,I,m),k=null;break}catch(N){k=N}if(k)throw k;const y=_.json,{error:b,error_description:S}=y,x=lt(y,["error","error_description"]),{ok:D}=_;if(!D){const M=S||`HTTP error. Unable to fetch ${f}`;throw b==="mfa_required"?new zr(b,M,x.mfa_token):b==="missing_refresh_token"?new Ns(d,g):new Ae(b||"request_error",M)}return x}(`${n}/oauth/token`,s,o||"default",r,{method:"POST",body:h,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(i||ya))}},t,a)}const As=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class ct{constructor(t,n="@@auth0spajs@@",s){this.prefix=n,this.suffix=s,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,s,o,r]=t.split("::");return new ct({clientId:s,scope:r,audience:o},n)}static fromCacheEntry(t){const{scope:n,audience:s,client_id:o}=t;return new ct({scope:n,audience:s,clientId:o})}}class Bf{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@@"))}}class Ia{constructor(){this.enclosedCache=function(){let t={};return{set(n,s){t[n]=s},get(n){const s=t[n];if(s)return s},remove(n){delete t[n]},allKeys:()=>Object.keys(t)}}()}}class Xf{constructor(t,n,s){this.cache=t,this.keyManifest=n,this.nowProvider=s||ka}async setIdToken(t,n,s){var o;const r=this.getIdTokenCacheKey(t);await this.cache.set(r,{id_token:n,decodedToken:s}),await((o=this.keyManifest)===null||o===void 0?void 0:o.add(r))}async getIdToken(t){const n=await this.cache.get(this.getIdTokenCacheKey(t.clientId));if(!n&&t.scope&&t.audience){const s=await this.get(t);return!s||!s.id_token||!s.decodedToken?void 0:{id_token:s.id_token,decodedToken:s.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(t,n=0){var s;let o=await this.cache.get(t.toKey());if(!o){const a=await this.getCacheKeys();if(!a)return;const l=this.matchExistingCacheKey(t,a);l&&(o=await this.cache.get(l))}if(!o)return;const r=await this.nowProvider(),i=Math.floor(r/1e3);return o.expiresAt-n<i?o.body.refresh_token?(o.body={refresh_token:o.body.refresh_token},await this.cache.set(t.toKey(),o),o.body):(await this.cache.remove(t.toKey()),void await((s=this.keyManifest)===null||s===void 0?void 0:s.remove(t.toKey()))):o.body}async set(t){var n;const s=new ct({clientId:t.client_id,scope:t.scope,audience:t.audience}),o=await this.wrapCacheEntry(t);await this.cache.set(s.toKey(),o),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(s.toKey()))}async clear(t){var n;const s=await this.getCacheKeys();s&&(await s.filter(o=>!t||o.includes(t)).reduce(async(o,r)=>{await o,await this.cache.remove(r)},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 ct({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(s=>{var o;const r=ct.fromKey(s),i=new Set(r.scope&&r.scope.split(" ")),a=((o=t.scope)===null||o===void 0?void 0:o.split(" "))||[],l=r.scope&&a.reduce((h,f)=>h&&i.has(f),!0);return r.prefix==="@@auth0spajs@@"&&r.clientId===t.clientId&&r.audience===t.audience&&l})[0]}}class Zf{constructor(t,n,s){this.storage=t,this.clientId=n,this.cookieDomain=s,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 Hn=e=>typeof e=="number",Jf=["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 en=Wr(function(e,t){var n=qt&&qt.__assign||function(){return n=Object.assign||function(l){for(var h,f=1,m=arguments.length;f<m;f++)for(var d in h=arguments[f])Object.prototype.hasOwnProperty.call(h,d)&&(l[d]=h[d]);return l},n.apply(this,arguments)};function s(l,h){if(!h)return"";var f="; "+l;return h===!0?f:f+"="+h}function o(l,h,f){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(h).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(m){if(typeof m.expires=="number"){var d=new Date;d.setMilliseconds(d.getMilliseconds()+864e5*m.expires),m.expires=d}return s("Expires",m.expires?m.expires.toUTCString():"")+s("Domain",m.domain)+s("Path",m.path)+s("Secure",m.secure)+s("SameSite",m.sameSite)}(f)}function r(l){for(var h={},f=l?l.split("; "):[],m=/(%[\dA-F]{2})+/gi,d=0;d<f.length;d++){var g=f[d].split("="),w=g.slice(1).join("=");w.charAt(0)==='"'&&(w=w.slice(1,-1));try{h[g[0].replace(m,decodeURIComponent)]=w.replace(m,decodeURIComponent)}catch{}}return h}function i(){return r(document.cookie)}function a(l,h,f){document.cookie=o(l,h,n({path:"/"},f))}t.__esModule=!0,t.encode=o,t.parse=r,t.getAll=i,t.get=function(l){return i()[l]},t.set=a,t.remove=function(l,h){a(l,"",n(n({},h),{expires:-1}))}});jr(en),en.encode,en.parse,en.getAll;var qf=en.get,Ta=en.set,La=en.remove;const bn={get(e){const t=qf(e);if(t!==void 0)return JSON.parse(t)},save(e,t,n){let s={};window.location.protocol==="https:"&&(s={secure:!0,sameSite:"none"}),n?.daysUntilExpire&&(s.expires=n.daysUntilExpire),n?.cookieDomain&&(s.domain=n.cookieDomain),Ta(e,JSON.stringify(t),s)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),La(e,n)}},Qf={get:e=>bn.get(e)||bn.get(`_legacy_${e}`),save(e,t,n){let s={};window.location.protocol==="https:"&&(s={secure:!0}),n?.daysUntilExpire&&(s.expires=n.daysUntilExpire),n?.cookieDomain&&(s.domain=n.cookieDomain),Ta(`_legacy_${e}`,JSON.stringify(t),s),bn.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),La(e,n),bn.remove(e,t),bn.remove(`_legacy_${e}`,t)}},ed={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 Br,td=function(e){return Br=Br||function(t,n,s){var o=n===void 0?null:n,r=function(h,f){var m=atob(h);if(f){for(var d=new Uint8Array(m.length),g=0,w=m.length;g<w;++g)d[g]=m.charCodeAt(g);return String.fromCharCode.apply(null,new Uint16Array(d.buffer))}return m}(t,s!==void 0&&s),i=r.indexOf(`
|
|
25
|
-
`,10)+1,
|
|
24
|
+
*/let ba;const Cs=e=>ba=e,ya=Symbol();function Ur(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Wn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Wn||(Wn={}));function Kf(){const e=lr(!0),t=e.run(()=>se({}));let n=[],s=[];const i=gr({install(r){Cs(i),i._a=r,r.provide(ya,i),r.config.globalProperties.$pinia=i,s.forEach(o=>n.push(o)),s=[]},use(r){return!this._a&&!Vf?s.push(r):n.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const ka=()=>{};function wa(e,t,n,s=ka){e.push(t);const i=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),s())};return!n&&Di()&&wc(i),i}function _n(e,...t){e.slice().forEach(n=>{n(...t)})}const zf=e=>e();function jr(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,s)=>e.set(s,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],i=e[n];Ur(i)&&Ur(s)&&e.hasOwnProperty(n)&&!be(s)&&!Kt(s)?e[n]=jr(i,s):e[n]=s}return e}const Yf=Symbol();function Gf(e){return!Ur(e)||!e.hasOwnProperty(Yf)}const{assign:Ct}=Object;function Bf(e){return!!(be(e)&&e.effect)}function Xf(e,t,n,s){const{state:i,actions:r,getters:o}=t,a=n.state.value[e];let l;function f(){a||(n.state.value[e]=i?i():{});const c=Yc(n.state.value[e]);return Ct(c,r,Object.keys(o||{}).reduce((d,u)=>(d[u]=gr(De(()=>{Cs(n);const g=n._s.get(e);return o[u].call(g,g)})),d),{}))}return l=va(e,f,t,n,s,!0),l}function va(e,t,n={},s,i,r){let o;const a=Ct({actions:{}},n),l={deep:!0};let f,c,d=[],u=[],g;const w=s.state.value[e];!r&&!w&&(s.state.value[e]={}),se({});let E;function I(P){let A;f=c=!1,typeof P=="function"?(P(s.state.value[e]),A={type:Wn.patchFunction,storeId:e,events:g}):(jr(s.state.value[e],P),A={type:Wn.patchObject,payload:P,storeId:e,events:g});const V=E=Symbol();ho().then(()=>{E===V&&(f=!0)}),c=!0,_n(d,A,s.state.value[e])}const S=r?function(){const{state:A}=n,V=A?A():{};this.$patch(ne=>{Ct(ne,V)})}:ka;function N(){o.stop(),d=[],u=[],s._s.delete(e)}function b(P,A){return function(){Cs(s);const V=Array.from(arguments),ne=[],Y=[];function pe(J){ne.push(J)}function nt(J){Y.push(J)}_n(u,{args:V,name:P,store:O,after:pe,onError:nt});let He;try{He=A.apply(this&&this.$id===e?this:O,V)}catch(J){throw _n(Y,J),J}return He instanceof Promise?He.then(J=>(_n(ne,J),J)).catch(J=>(_n(Y,J),Promise.reject(J))):(_n(ne,He),He)}}const y={_p:s,$id:e,$onAction:wa.bind(null,u),$patch:I,$reset:S,$subscribe(P,A={}){const V=wa(d,P,A.detached,()=>ne()),ne=o.run(()=>Yt(()=>s.state.value[e],Y=>{(A.flush==="sync"?c:f)&&P({storeId:e,type:Wn.direct,events:g},Y)},Ct({},l,A)));return V},$dispose:N},O=hs(y);s._s.set(e,O);const D=(s._a&&s._a.runWithContext||zf)(()=>s._e.run(()=>(o=lr()).run(t)));for(const P in D){const A=D[P];if(be(A)&&!Bf(A)||Kt(A))r||(w&&Gf(A)&&(be(A)?A.value=w[P]:jr(A,w[P])),s.state.value[e][P]=A);else if(typeof A=="function"){const V=b(P,A);D[P]=V,a.actions[P]=A}}return Ct(O,D),Ct(ee(O),D),Object.defineProperty(O,"$state",{get:()=>s.state.value[e],set:P=>{I(A=>{Ct(A,P)})}}),s._p.forEach(P=>{Ct(O,o.run(()=>P({store:O,app:s._a,pinia:s,options:a})))}),w&&r&&n.hydrate&&n.hydrate(O.$state,w),f=!0,c=!0,O}function Zf(e,t,n){let s,i;const r=typeof t=="function";s=e,i=r?n:t;function o(a,l){const f=$u();return a=a||(f?Ke(ya,null):null),a&&Cs(a),a=ba,a._s.has(s)||(r?va(s,t,i,a):Xf(s,i,a)),a._s.get(s)}return o.$id=s,o}const Ea=Symbol("$auth0");function at(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n}typeof SuppressedError=="function"&&SuppressedError;var Qt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Hr(e,t){return e(t={exports:{}},t.exports),t.exports}var en=Hr(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function s(){var i=this;this.locked=new Map,this.addToLocked=function(r,o){var a=i.locked.get(r);a===void 0?o===void 0?i.locked.set(r,[]):i.locked.set(r,[o]):o!==void 0&&(a.unshift(o),i.locked.set(r,a))},this.isLocked=function(r){return i.locked.has(r)},this.lock=function(r){return new Promise(function(o,a){i.isLocked(r)?i.addToLocked(r,o):(i.addToLocked(r),o())})},this.unlock=function(r){var o=i.locked.get(r);if(o!==void 0&&o.length!==0){var a=o.pop();i.locked.set(r,o),a!==void 0&&setTimeout(a,0)}else i.locked.delete(r)}}return s.getInstance=function(){return s.instance===void 0&&(s.instance=new s),s.instance},s}();t.default=function(){return n.getInstance()}});Wr(en);var Jf=Wr(Hr(function(e,t){var n=Qt&&Qt.__awaiter||function(c,d,u,g){return new(u||(u=Promise))(function(w,E){function I(b){try{N(g.next(b))}catch(y){E(y)}}function S(b){try{N(g.throw(b))}catch(y){E(y)}}function N(b){b.done?w(b.value):new u(function(y){y(b.value)}).then(I,S)}N((g=g.apply(c,d||[])).next())})},s=Qt&&Qt.__generator||function(c,d){var u,g,w,E,I={label:0,sent:function(){if(1&w[0])throw w[1];return w[1]},trys:[],ops:[]};return E={next:S(0),throw:S(1),return:S(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function S(N){return function(b){return function(y){if(u)throw new TypeError("Generator is already executing.");for(;I;)try{if(u=1,g&&(w=2&y[0]?g.return:y[0]?g.throw||((w=g.return)&&w.call(g),0):g.next)&&!(w=w.call(g,y[1])).done)return w;switch(g=0,w&&(y=[2&y[0],w.value]),y[0]){case 0:case 1:w=y;break;case 4:return I.label++,{value:y[1],done:!1};case 5:I.label++,g=y[1],y=[0];continue;case 7:y=I.ops.pop(),I.trys.pop();continue;default:if(!((w=(w=I.trys).length>0&&w[w.length-1])||y[0]!==6&&y[0]!==2)){I=0;continue}if(y[0]===3&&(!w||y[1]>w[0]&&y[1]<w[3])){I.label=y[1];break}if(y[0]===6&&I.label<w[1]){I.label=w[1],w=y;break}if(w&&I.label<w[2]){I.label=w[2],I.ops.push(y);break}w[2]&&I.ops.pop(),I.trys.pop();continue}y=d.call(c,I)}catch(O){y=[6,O],g=0}finally{u=w=0}if(5&y[0])throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}([N,b])}}},i=Qt;Object.defineProperty(t,"__esModule",{value:!0});var r="browser-tabs-lock-key",o={key:function(c){return n(i,void 0,void 0,function(){return s(this,function(d){throw new Error("Unsupported")})})},getItem:function(c){return n(i,void 0,void 0,function(){return s(this,function(d){throw new Error("Unsupported")})})},clear:function(){return n(i,void 0,void 0,function(){return s(this,function(c){return[2,window.localStorage.clear()]})})},removeItem:function(c){return n(i,void 0,void 0,function(){return s(this,function(d){throw new Error("Unsupported")})})},setItem:function(c,d){return n(i,void 0,void 0,function(){return s(this,function(u){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,d){return window.localStorage.setItem(c,d)}};function a(c){return new Promise(function(d){return setTimeout(d,c)})}function l(c){for(var d="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",u="",g=0;g<c;g++)u+=d[Math.floor(Math.random()*d.length)];return u}var f=function(){function c(d){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=d,c.waiters===void 0&&(c.waiters=[])}return c.prototype.acquireLock=function(d,u){return u===void 0&&(u=5e3),n(this,void 0,void 0,function(){var g,w,E,I,S,N,b;return s(this,function(y){switch(y.label){case 0:g=Date.now()+l(4),w=Date.now()+u,E=r+"-"+d,I=this.storageHandler===void 0?o:this.storageHandler,y.label=1;case 1:return Date.now()<w?[4,a(30)]:[3,8];case 2:return y.sent(),I.getItemSync(E)!==null?[3,5]:(S=this.id+"-"+d+"-"+g,[4,a(Math.floor(25*Math.random()))]);case 3:return y.sent(),I.setItemSync(E,JSON.stringify({id:this.id,iat:g,timeoutKey:S,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];case 4:return y.sent(),(N=I.getItemSync(E))!==null&&(b=JSON.parse(N)).id===this.id&&b.iat===g?(this.acquiredIatSet.add(g),this.refreshLockWhileAcquired(E,g),[2,!0]):[3,7];case 5:return c.lockCorrector(this.storageHandler===void 0?o:this.storageHandler),[4,this.waitForSomethingToChange(w)];case 6:y.sent(),y.label=7;case 7:return g=Date.now()+l(4),[3,1];case 8:return[2,!1]}})})},c.prototype.refreshLockWhileAcquired=function(d,u){return n(this,void 0,void 0,function(){var g=this;return s(this,function(w){return setTimeout(function(){return n(g,void 0,void 0,function(){var E,I,S;return s(this,function(N){switch(N.label){case 0:return[4,en.default().lock(u)];case 1:return N.sent(),this.acquiredIatSet.has(u)?(E=this.storageHandler===void 0?o:this.storageHandler,(I=E.getItemSync(d))===null?(en.default().unlock(u),[2]):((S=JSON.parse(I)).timeRefreshed=Date.now(),E.setItemSync(d,JSON.stringify(S)),en.default().unlock(u),this.refreshLockWhileAcquired(d,u),[2])):(en.default().unlock(u),[2])}})})},1e3),[2]})})},c.prototype.waitForSomethingToChange=function(d){return n(this,void 0,void 0,function(){return s(this,function(u){switch(u.label){case 0:return[4,new Promise(function(g){var w=!1,E=Date.now(),I=!1;function S(){if(I||(window.removeEventListener("storage",S),c.removeFromWaiting(S),clearTimeout(N),I=!0),!w){w=!0;var b=50-(Date.now()-E);b>0?setTimeout(g,b):g(null)}}window.addEventListener("storage",S),c.addToWaiting(S);var N=setTimeout(S,Math.max(0,d-Date.now()))})];case 1:return u.sent(),[2]}})})},c.addToWaiting=function(d){this.removeFromWaiting(d),c.waiters!==void 0&&c.waiters.push(d)},c.removeFromWaiting=function(d){c.waiters!==void 0&&(c.waiters=c.waiters.filter(function(u){return u!==d}))},c.notifyWaiters=function(){c.waiters!==void 0&&c.waiters.slice().forEach(function(d){return d()})},c.prototype.releaseLock=function(d){return n(this,void 0,void 0,function(){return s(this,function(u){switch(u.label){case 0:return[4,this.releaseLock__private__(d)];case 1:return[2,u.sent()]}})})},c.prototype.releaseLock__private__=function(d){return n(this,void 0,void 0,function(){var u,g,w,E;return s(this,function(I){switch(I.label){case 0:return u=this.storageHandler===void 0?o:this.storageHandler,g=r+"-"+d,(w=u.getItemSync(g))===null?[2]:(E=JSON.parse(w)).id!==this.id?[3,2]:[4,en.default().lock(E.iat)];case 1:I.sent(),this.acquiredIatSet.delete(E.iat),u.removeItemSync(g),en.default().unlock(E.iat),c.notifyWaiters(),I.label=2;case 2:return[2]}})})},c.lockCorrector=function(d){for(var u=Date.now()-5e3,g=d,w=[],E=0;;){var I=g.keySync(E);if(I===null)break;w.push(I),E++}for(var S=!1,N=0;N<w.length;N++){var b=w[N];if(b.includes(r)){var y=g.getItemSync(b);if(y!==null){var O=JSON.parse(y);(O.timeRefreshed===void 0&&O.timeAcquired<u||O.timeRefreshed!==void 0&&O.timeRefreshed<u)&&(g.removeItemSync(b),S=!0)}}}S&&c.notifyWaiters()},c.waiters=void 0,c}();t.default=f}));const qf={timeoutInSeconds:60},Ia={name:"auth0-spa-js",version:"2.1.3"},Ta=()=>Date.now();class Ae extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,Ae.prototype)}static fromPayload({error:t,error_description:n}){return new Ae(t,n)}}class Vr extends Ae{constructor(t,n,s,i=null){super(t,n),this.state=s,this.appState=i,Object.setPrototypeOf(this,Vr.prototype)}}class Hn extends Ae{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,Hn.prototype)}}class Kr extends Hn{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,Kr.prototype)}}class zr extends Ae{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,zr.prototype)}}class Yr extends Ae{constructor(t,n,s){super(t,n),this.mfa_token=s,Object.setPrototypeOf(this,Yr.prototype)}}class Ns extends Ae{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${La(t,["default"])}', scope: '${La(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,Ns.prototype)}}function La(e,t=[]){return e&&!t.includes(e)?e:""}const Ps=()=>window.crypto,Gr=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(Ps().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},Oa=e=>btoa(e),Br=e=>{var{clientId:t}=e,n=at(e,["clientId"]);return new URLSearchParams((s=>Object.keys(s).filter(i=>s[i]!==void 0).reduce((i,r)=>Object.assign(Object.assign({},i),{[r]:s[r]}),{}))(Object.assign({client_id:t},n))).toString()},Sa=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),Qf=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},ed=async(e,t,n,s,i,r,o=1e4)=>i?(async(a,l,f,c,d,u,g)=>{return w={auth:{audience:l,scope:f},timeout:d,fetchUrl:a,fetchOptions:c,useFormData:g},E=u,new Promise(function(I,S){const N=new MessageChannel;N.port1.onmessage=function(b){b.data.error?S(new Error(b.data.error)):I(b.data),N.port1.close()},E.postMessage(w,[N.port2])});var w,E})(e,t,n,s,o,i,r):(async(a,l,f)=>{const c=new AbortController;let d;return l.signal=c.signal,Promise.race([Qf(a,l),new Promise((u,g)=>{d=setTimeout(()=>{c.abort(),g(new Error("Timeout when executing 'fetch'"))},f)})]).finally(()=>{clearTimeout(d)})})(e,s,o);async function td(e,t){var{baseUrl:n,timeout:s,audience:i,scope:r,auth0Client:o,useFormData:a}=e,l=at(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const f=a?Br(l):JSON.stringify(l);return await async function(c,d,u,g,w,E,I){let S,N=null;for(let P=0;P<3;P++)try{S=await ed(c,u,g,w,E,I,d),N=null;break}catch(A){N=A}if(N)throw N;const b=S.json,{error:y,error_description:O}=b,L=at(b,["error","error_description"]),{ok:D}=S;if(!D){const P=O||`HTTP error. Unable to fetch ${c}`;throw y==="mfa_required"?new Yr(y,P,L.mfa_token):y==="missing_refresh_token"?new Ns(u,g):new Ae(y||"request_error",P)}return L}(`${n}/oauth/token`,s,i||"default",r,{method:"POST",body:f,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(o||Ia))}},t,a)}const As=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class lt{constructor(t,n="@@auth0spajs@@",s){this.prefix=n,this.suffix=s,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,s,i,r]=t.split("::");return new lt({clientId:s,scope:r,audience:i},n)}static fromCacheEntry(t){const{scope:n,audience:s,client_id:i}=t;return new lt({scope:n,audience:s,clientId:i})}}class nd{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@@"))}}class xa{constructor(){this.enclosedCache=function(){let t={};return{set(n,s){t[n]=s},get(n){const s=t[n];if(s)return s},remove(n){delete t[n]},allKeys:()=>Object.keys(t)}}()}}class sd{constructor(t,n,s){this.cache=t,this.keyManifest=n,this.nowProvider=s||Ta}async setIdToken(t,n,s){var i;const r=this.getIdTokenCacheKey(t);await this.cache.set(r,{id_token:n,decodedToken:s}),await((i=this.keyManifest)===null||i===void 0?void 0:i.add(r))}async getIdToken(t){const n=await this.cache.get(this.getIdTokenCacheKey(t.clientId));if(!n&&t.scope&&t.audience){const s=await this.get(t);return!s||!s.id_token||!s.decodedToken?void 0:{id_token:s.id_token,decodedToken:s.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(t,n=0){var s;let i=await this.cache.get(t.toKey());if(!i){const a=await this.getCacheKeys();if(!a)return;const l=this.matchExistingCacheKey(t,a);l&&(i=await this.cache.get(l))}if(!i)return;const r=await this.nowProvider(),o=Math.floor(r/1e3);return i.expiresAt-n<o?i.body.refresh_token?(i.body={refresh_token:i.body.refresh_token},await this.cache.set(t.toKey(),i),i.body):(await this.cache.remove(t.toKey()),void await((s=this.keyManifest)===null||s===void 0?void 0:s.remove(t.toKey()))):i.body}async set(t){var n;const s=new lt({clientId:t.client_id,scope:t.scope,audience:t.audience}),i=await this.wrapCacheEntry(t);await this.cache.set(s.toKey(),i),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(s.toKey()))}async clear(t){var n;const s=await this.getCacheKeys();s&&(await s.filter(i=>!t||i.includes(t)).reduce(async(i,r)=>{await i,await this.cache.remove(r)},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 lt({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(s=>{var i;const r=lt.fromKey(s),o=new Set(r.scope&&r.scope.split(" ")),a=((i=t.scope)===null||i===void 0?void 0:i.split(" "))||[],l=r.scope&&a.reduce((f,c)=>f&&o.has(c),!0);return r.prefix==="@@auth0spajs@@"&&r.clientId===t.clientId&&r.audience===t.audience&&l})[0]}}class rd{constructor(t,n,s){this.storage=t,this.clientId=n,this.cookieDomain=s,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 Vn=e=>typeof e=="number",id=["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 tn=Hr(function(e,t){var n=Qt&&Qt.__assign||function(){return n=Object.assign||function(l){for(var f,c=1,d=arguments.length;c<d;c++)for(var u in f=arguments[c])Object.prototype.hasOwnProperty.call(f,u)&&(l[u]=f[u]);return l},n.apply(this,arguments)};function s(l,f){if(!f)return"";var c="; "+l;return f===!0?c:c+"="+f}function i(l,f,c){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(f).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(d){if(typeof d.expires=="number"){var u=new Date;u.setMilliseconds(u.getMilliseconds()+864e5*d.expires),d.expires=u}return s("Expires",d.expires?d.expires.toUTCString():"")+s("Domain",d.domain)+s("Path",d.path)+s("Secure",d.secure)+s("SameSite",d.sameSite)}(c)}function r(l){for(var f={},c=l?l.split("; "):[],d=/(%[\dA-F]{2})+/gi,u=0;u<c.length;u++){var g=c[u].split("="),w=g.slice(1).join("=");w.charAt(0)==='"'&&(w=w.slice(1,-1));try{f[g[0].replace(d,decodeURIComponent)]=w.replace(d,decodeURIComponent)}catch{}}return f}function o(){return r(document.cookie)}function a(l,f,c){document.cookie=i(l,f,n({path:"/"},c))}t.__esModule=!0,t.encode=i,t.parse=r,t.getAll=o,t.get=function(l){return o()[l]},t.set=a,t.remove=function(l,f){a(l,"",n(n({},f),{expires:-1}))}});Wr(tn),tn.encode,tn.parse,tn.getAll;var od=tn.get,Ca=tn.set,Na=tn.remove;const bn={get(e){const t=od(e);if(t!==void 0)return JSON.parse(t)},save(e,t,n){let s={};window.location.protocol==="https:"&&(s={secure:!0,sameSite:"none"}),n?.daysUntilExpire&&(s.expires=n.daysUntilExpire),n?.cookieDomain&&(s.domain=n.cookieDomain),Ca(e,JSON.stringify(t),s)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Na(e,n)}},ad={get:e=>bn.get(e)||bn.get(`_legacy_${e}`),save(e,t,n){let s={};window.location.protocol==="https:"&&(s={secure:!0}),n?.daysUntilExpire&&(s.expires=n.daysUntilExpire),n?.cookieDomain&&(s.domain=n.cookieDomain),Ca(`_legacy_${e}`,JSON.stringify(t),s),bn.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Na(e,n),bn.remove(e,t),bn.remove(`_legacy_${e}`,t)}},ld={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 Xr,cd=function(e){return Xr=Xr||function(t,n,s){var i=function(l,f){var c=atob(l);return c}(t),r=i.indexOf(`
|
|
25
|
+
`,10)+1,o=i.substring(r)+"",a=new Blob([o],{type:"application/javascript"});return URL.createObjectURL(a)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YX0scG9ydHM6W3BdfSk9PntsZXQgZjtjb25zdHthdWRpZW5jZTp1LHNjb3BlOmx9PXJ8fHt9O3RyeXtjb25zdCByPWE/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKCgoZSx0KT0+e3JbdF09ZX0pKSxyfSkoYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7aWYoIXIucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09ci5ncmFudF90eXBlKXtjb25zdCBlPSgoZSx0KT0+b1tuKGUsdCldKSh1LGwpO2lmKCFlKXRocm93IG5ldyB0KHUsbCk7Yy5ib2R5PWE/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKX1sZXQgaCxnOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihoPW5ldyBBYm9ydENvbnRyb2xsZXIsYy5zaWduYWw9aC5zaWduYWwpO3RyeXtnPWF3YWl0IFByb21pc2UucmFjZShbKGQ9ZSxuZXcgUHJvbWlzZSgoZT0+c2V0VGltZW91dChlLGQpKSkpLGZldGNoKGksT2JqZWN0LmFzc2lnbih7fSxjKSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZylyZXR1cm4gaCYmaC5hYm9ydCgpLHZvaWQgcC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo="),new Worker(Xr,e)};const Zr={};class ud{constructor(t,n){this.cache=t,this.clientId=n,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(t){var n;const s=new Set(((n=await this.cache.get(this.manifestKey))===null||n===void 0?void 0:n.keys)||[]);s.add(t),await this.cache.set(this.manifestKey,{keys:[...s]})}async remove(t){const n=await this.cache.get(this.manifestKey);if(n){const s=new Set(n.keys);return s.delete(t),s.size>0?await this.cache.set(this.manifestKey,{keys:[...s]}):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 fd={memory:()=>new xa().enclosedCache,localstorage:()=>new nd},Pa=e=>fd[e],Aa=e=>{const{openUrl:t,onRedirect:n}=e,s=at(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},s),{openUrl:t===!1||t?t:n})},Jr=new Jf;class dd{constructor(t){let n,s;if(this.userCache=new xa().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await Jr.releaseLock("auth0.lock.getTokenSilently"),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(!Ps())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(Ps().subtle===void 0)throw new Error(`
|
|
26
26
|
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.
|
|
27
|
-
`)})(),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)s=t.cache;else{if(n=t.cacheLocation||"memory",!Oa(n))throw new Error(`Invalid cache location "${n}"`);s=Oa(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?bn:Qf,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(i=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const o=t.useCookiesForTransactions?this.cookieStorage:ed;var r;this.scope=As("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new Zf(o,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||ka,this.cacheManager=new Xf(s,s.allKeys?void 0:new nd(s,this.options.clientId),this.nowProvider),this.domainUrl=(r=this.options.domain,/^https?:\/\//.test(r)?r:`https://${r}`),this.tokenIssuer=((i,a)=>i?i.startsWith("https://")?i:`https://${i}/`:`${a}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new td)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||ya)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Yr(t)}`)}async _verifyIdToken(t,n,s){const o=await this.nowProvider();return(i=>{if(!i.id_token)throw new Error("ID token is required but missing");const a=(m=>{const d=m.split("."),[g,w,E]=d;if(d.length!==3||!g||!w||!E)throw new Error("ID token could not be decoded");const I=JSON.parse(Ea(w)),_={__raw:m},k={};return Object.keys(I).forEach(y=>{_[y]=I[y],Jf.includes(y)||(k[y]=I[y])}),{encoded:{header:g,payload:w,signature:E},header:JSON.parse(Ea(g)),claims:_,user:k}})(i.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!==i.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${i.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(i.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${i.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!==i.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${i.aud}", found "${a.claims.azp}"`)}}else if(a.claims.aud!==i.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${i.aud}" but found "${a.claims.aud}"`);if(i.nonce){if(!a.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(a.claims.nonce!==i.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${i.nonce}", found "${a.claims.nonce}"`)}if(i.max_age&&!Hn(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||!Hn(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!Hn(a.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const l=i.leeway||60,h=new Date(i.now||Date.now()),f=new Date(0);if(f.setUTCSeconds(a.claims.exp+l),h>f)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${h}) is after expiration time (${f})`);if(a.claims.nbf!=null&&Hn(a.claims.nbf)){const m=new Date(0);if(m.setUTCSeconds(a.claims.nbf-l),h<m)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${h}) is before ${m}`)}if(a.claims.auth_time!=null&&Hn(a.claims.auth_time)){const m=new Date(0);if(m.setUTCSeconds(parseInt(a.claims.auth_time)+i.max_age+l),h>m)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 (${h}) is after last auth at ${m}`)}if(i.organization){const m=i.organization.trim();if(m.startsWith("org_")){const d=m;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=m.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:s,leeway:this.options.leeway,max_age:(r=this.options.authorizationParams.max_age,typeof r!="string"?r:parseInt(r,10)||void 0),now:o});var r}_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,s){const o=va(Gr()),r=va(Gr()),i=Gr(),a=(f=>{const m=new Uint8Array(f);return(d=>{const g={"+":"-","/":"_","=":""};return d.replace(/[+/=]/g,w=>g[w])})(window.btoa(String.fromCharCode(...Array.from(m))))})(await(async f=>await Ps().subtle.digest({name:"SHA-256"},new TextEncoder().encode(f)))(i)),l=((f,m,d,g,w,E,I,_)=>Object.assign(Object.assign(Object.assign({client_id:f.clientId},f.authorizationParams),d),{scope:As(m,d.scope),response_type:"code",response_mode:_||"query",state:g,nonce:w,redirect_uri:I||f.authorizationParams.redirect_uri,code_challenge:E,code_challenge_method:"S256"}))(this.options,this.scope,t,o,r,a,t.redirect_uri||this.options.authorizationParams.redirect_uri||s,n?.response_mode),h=this._authorizeUrl(l);return{nonce:r,code_verifier:i,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:o,url:h}}async loginWithPopup(t,n){var s;if(t=t||{},!(n=n||{}).popup&&(n.popup=(a=>{const l=window.screenX+(window.innerWidth-400)/2,h=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup",`left=${l},top=${h},width=400,height=600,resizable,scrollbars=yes,status=1`)})(),!n.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const o=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=o.url;const r=await(a=>new Promise((l,h)=>{let f;const m=setInterval(()=>{a.popup&&a.popup.closed&&(clearInterval(m),clearTimeout(d),window.removeEventListener("message",f,!1),h(new Kr(a.popup)))},1e3),d=setTimeout(()=>{clearInterval(m),h(new Vr(a.popup)),window.removeEventListener("message",f,!1)},1e3*(a.timeoutInSeconds||60));f=function(g){if(g.data&&g.data.type==="authorization_response"){if(clearTimeout(d),clearInterval(m),window.removeEventListener("message",f,!1),a.popup.close(),g.data.response.error)return h(Ae.fromPayload(g.data.response));l(g.data.response)}},window.addEventListener("message",f)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(o.state!==r.state)throw new Ae("state_mismatch","Invalid state");const i=((s=t.authorizationParams)===null||s===void 0?void 0:s.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:o.audience,scope:o.scope,code_verifier:o.code_verifier,grant_type:"authorization_code",code:r.code,redirect_uri:o.redirect_uri},{nonceIn:o.nonce,organization:i})}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 s=Sa(t),{openUrl:o,fragment:r,appState:i}=s,a=lt(s,["openUrl","fragment","appState"]),l=((n=a.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,h=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:f}=h,m=lt(h,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},m),{appState:i}),l&&{organization:l}));const d=r?`${f}#${r}`:f;o?await o(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{state:s,code:o,error:r,error_description:i}=(m=>{m.indexOf("#")>-1&&(m=m.substring(0,m.indexOf("#")));const d=new URLSearchParams(m);return{state:d.get("state"),code:d.get("code")||void 0,error:d.get("error")||void 0,error_description:d.get("error_description")||void 0}})(n.join("")),a=this.transactionManager.get();if(!a)throw new Ae("missing_transaction","Invalid state");if(this.transactionManager.remove(),r)throw new Hr(r,i||r,s,a.appState);if(!a.code_verifier||a.state&&a.state!==s)throw new Ae("state_mismatch","Invalid state");const l=a.organization,h=a.nonce,f=a.redirect_uri;return await this._requestToken(Object.assign({audience:a.audience,scope:a.scope,code_verifier:a.code_verifier,grant_type:"authorization_code",code:o},f?{redirect_uri:f}:{}),{nonceIn:h,organization:l}),{appState:a.appState}}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;const s=Object.assign(Object.assign({cacheMode:"on"},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:As(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),o=await((r,i)=>{let a=Xr[i];return a||(a=r().finally(()=>{delete Xr[i],a=null}),Xr[i]=a),a})(()=>this._getTokenSilently(s),`${this.options.clientId}::${s.authorizationParams.audience}::${s.authorizationParams.scope}`);return t.detailedResponse?o:o?.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,s=lt(t,["cacheMode"]);if(n!=="off"){const o=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(o)return o}if(n!=="cache-only"){if(!await(async(o,r=3)=>{for(let i=0;i<r;i++)if(await o())return!0;return!1})(()=>Zr.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new Wn;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const h=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(h)return h}const o=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(s):await this._getTokenFromIFrame(s),{id_token:r,access_token:i,oauthTokenScope:a,expires_in:l}=o;return Object.assign(Object.assign({id_token:r,access_token:i},a?{scope:a}:null),{expires_in:l})}finally{await Zr.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(t={},n={}){var s;const o=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:As(this.scope,(s=t.authorizationParams)===null||s===void 0?void 0:s.scope)})});return n=Object.assign(Object.assign({},Kf),n),await this.loginWithPopup(o,n),(await this.cacheManager.get(new ct({scope:o.authorizationParams.scope,audience:o.authorizationParams.audience||"default",clientId:this.options.clientId}))).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:s}=n,o=lt(n,["federated"]),r=s?"&federated":"";return this._url(`/v2/logout?${Yr(Object.assign({clientId:t.clientId},o))}`)+r}async logout(t={}){const n=Sa(t),{openUrl:s}=n,o=lt(n,["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@@");const r=this._buildLogoutUrl(o);s?await s(r):s!==!1&&window.location.assign(r)}async _getTokenFromIFrame(t){const n=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),s=this.cookieStorage.get(this.orgHintCookieName);s&&!n.organization&&(n.organization=s);const{url:o,state:r,nonce:i,code_verifier:a,redirect_uri:l,scope:h,audience:f}=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 m=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,d=await((w,E,I=60)=>new Promise((_,k)=>{const y=window.document.createElement("iframe");y.setAttribute("width","0"),y.setAttribute("height","0"),y.style.display="none";const b=()=>{window.document.body.contains(y)&&(window.document.body.removeChild(y),window.removeEventListener("message",S,!1))};let S;const x=setTimeout(()=>{k(new Wn),b()},1e3*I);S=function(D){if(D.origin!=E||!D.data||D.data.type!=="authorization_response")return;const M=D.source;M&&M.close(),D.data.response.error?k(Ae.fromPayload(D.data.response)):_(D.data.response),clearTimeout(x),window.removeEventListener("message",S,!1),setTimeout(b,2e3)},window.addEventListener("message",S,!1),window.document.body.appendChild(y),y.setAttribute("src",w)}))(o,this.domainUrl,m);if(r!==d.state)throw new Ae("state_mismatch","Invalid state");const g=await this._requestToken(Object.assign(Object.assign({},t.authorizationParams),{code_verifier:a,code:d.code,grant_type:"authorization_code",redirect_uri:l,timeout:t.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:i,organization:n.organization});return Object.assign(Object.assign({},g),{scope:h,oauthTokenScope:g.scope,audience:f})}catch(m){throw m.error==="login_required"&&this.logout({openUrl:!1}),m}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new ct({scope:t.authorizationParams.scope,audience:t.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(n&&n.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw new Ns(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const s=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,o=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null;try{const r=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:s}),o&&{timeout:o}));return Object.assign(Object.assign({},r),{scope:t.authorizationParams.scope,oauthTokenScope:r.scope,audience:t.authorizationParams.audience||"default"})}catch(r){if((r.message.indexOf("Missing Refresh Token")>-1||r.message&&r.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw r}}async _saveEntryInCache(t){const{id_token:n,decodedToken:s}=t,o=lt(t,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:s}),await this.cacheManager.setIdToken(this.options.clientId,t.id_token,t.decodedToken),await this.cacheManager.set(o)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new ct({clientId:this.options.clientId,audience:t,scope:this.scope})),s=this.userCache.get("@@user@@");return n&&n.id_token===s?.id_token?s:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:t,audience:n,clientId:s}){const o=await this.cacheManager.get(new ct({scope:t,audience:n,clientId:s}),60);if(o&&o.access_token){const{access_token:r,oauthTokenScope:i,expires_in:a}=o,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:r},i?{scope:i}:null),{expires_in:a})}}async _requestToken(t,n){const{nonceIn:s,organization:o}=n||{},r=await Yf(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},t),this.worker),i=await this._verifyIdToken(r.id_token,s,o);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},r),{decodedToken:i,scope:t.scope,audience:t.audience||"default"}),r.scope?{oauthTokenScope:r.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(o||i.claims.org_id),Object.assign(Object.assign({},r),{decodedToken:i})}}function Vn(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 tn=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},od={isLoading:te(!1),isAuthenticated:te(!1),user:te(void 0),idTokenClaims:te(void 0),error:te(null),loginWithPopup:tn,loginWithRedirect:tn,getAccessTokenSilently:tn,getAccessTokenWithPopup:tn,logout:tn,checkSession:tn,handleRedirectCallback:tn},id=te(od);class ad{constructor(t,n){var s,o;this.clientOptions=t,this.pluginOptions=n,this.isLoading=te(!0),this.isAuthenticated=te(!1),this.user=te({}),this.idTokenClaims=te(),this.error=te(null),s=this,o=["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf(s)).filter(r=>!o.includes(r)).forEach(r=>s[r]=s[r].bind(s))}install(t){this._client=new rd(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(ba,this),id.value=this}async loginWithRedirect(t){return Vn(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return Vn(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 Vn(t),this.__proxy(()=>this._client.getTokenSilently(t))}async getAccessTokenWithPopup(t,n){return Vn(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 __checkSession(t){var n,s,o;const r=window.location.search;try{if((r.includes("code=")||r.includes("error="))&&r.includes("state=")&&!(!((n=this.pluginOptions)===null||n===void 0)&&n.skipRedirectCallback)){const i=await this.handleRedirectCallback(),a=i?.appState,l=(s=a?.target)!==null&&s!==void 0?s:"/";return window.history.replaceState({},"","/"),t&&t.push(l),i}await this.checkSession()}catch{window.history.replaceState({},"","/"),t&&t.push(((o=this.pluginOptions)===null||o===void 0?void 0:o.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 s;try{s=await t(),this.error.value=null}catch(o){throw this.error.value=o,o}finally{n&&await this.__refreshState()}return s}}function xa(e,t){return Vn(e),new ad(e,t)}function Jr(){return Ge(ba)}/*!
|
|
28
|
-
* shared v9.
|
|
27
|
+
`)})(),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)s=t.cache;else{if(n=t.cacheLocation||"memory",!Pa(n))throw new Error(`Invalid cache location "${n}"`);s=Pa(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?bn:ad,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(o=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const i=t.useCookiesForTransactions?this.cookieStorage:ld;var r;this.scope=As("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new rd(i,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||Ta,this.cacheManager=new sd(s,s.allKeys?void 0:new ud(s,this.options.clientId),this.nowProvider),this.domainUrl=(r=this.options.domain,/^https?:\/\//.test(r)?r:`https://${r}`),this.tokenIssuer=((o,a)=>o?o.startsWith("https://")?o:`https://${o}/`:`${a}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new cd)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||Ia)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Br(t)}`)}async _verifyIdToken(t,n,s){const i=await this.nowProvider();return(o=>{if(!o.id_token)throw new Error("ID token is required but missing");const a=(d=>{const u=d.split("."),[g,w,E]=u;if(u.length!==3||!g||!w||!E)throw new Error("ID token could not be decoded");const I=JSON.parse(Sa(w)),S={__raw:d},N={};return Object.keys(I).forEach(b=>{S[b]=I[b],id.includes(b)||(N[b]=I[b])}),{encoded:{header:g,payload:w,signature:E},header:JSON.parse(Sa(g)),claims:S,user:N}})(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&&!Vn(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||!Vn(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!Vn(a.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const l=o.leeway||60,f=new Date(o.now||Date.now()),c=new Date(0);if(c.setUTCSeconds(a.claims.exp+l),f>c)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${f}) is after expiration time (${c})`);if(a.claims.nbf!=null&&Vn(a.claims.nbf)){const d=new Date(0);if(d.setUTCSeconds(a.claims.nbf-l),f<d)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${f}) is before ${d}`)}if(a.claims.auth_time!=null&&Vn(a.claims.auth_time)){const d=new Date(0);if(d.setUTCSeconds(parseInt(a.claims.auth_time)+o.max_age+l),f>d)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 (${f}) is after last auth at ${d}`)}if(o.organization){const d=o.organization.trim();if(d.startsWith("org_")){const u=d;if(!a.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(u!==a.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${u}", found "${a.claims.org_id}"`)}else{const u=d.toLowerCase();if(!a.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(u!==a.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${u}", found "${a.claims.org_name}"`)}}return a})({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organization:s,leeway:this.options.leeway,max_age:(r=this.options.authorizationParams.max_age,typeof r!="string"?r:parseInt(r,10)||void 0),now:i});var r}_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,s){const i=Oa(Gr()),r=Oa(Gr()),o=Gr(),a=(c=>{const d=new Uint8Array(c);return(u=>{const g={"+":"-","/":"_","=":""};return u.replace(/[+/=]/g,w=>g[w])})(window.btoa(String.fromCharCode(...Array.from(d))))})(await(async c=>await Ps().subtle.digest({name:"SHA-256"},new TextEncoder().encode(c)))(o)),l=((c,d,u,g,w,E,I,S)=>Object.assign(Object.assign(Object.assign({client_id:c.clientId},c.authorizationParams),u),{scope:As(d,u.scope),response_type:"code",response_mode:S||"query",state:g,nonce:w,redirect_uri:I||c.authorizationParams.redirect_uri,code_challenge:E,code_challenge_method:"S256"}))(this.options,this.scope,t,i,r,a,t.redirect_uri||this.options.authorizationParams.redirect_uri||s,n?.response_mode),f=this._authorizeUrl(l);return{nonce:r,code_verifier:o,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:i,url:f}}async loginWithPopup(t,n){var s;if(t=t||{},!(n=n||{}).popup&&(n.popup=(a=>{const l=window.screenX+(window.innerWidth-400)/2,f=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup",`left=${l},top=${f},width=400,height=600,resizable,scrollbars=yes,status=1`)})(),!n.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const i=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=i.url;const r=await(a=>new Promise((l,f)=>{let c;const d=setInterval(()=>{a.popup&&a.popup.closed&&(clearInterval(d),clearTimeout(u),window.removeEventListener("message",c,!1),f(new zr(a.popup)))},1e3),u=setTimeout(()=>{clearInterval(d),f(new Kr(a.popup)),window.removeEventListener("message",c,!1)},1e3*(a.timeoutInSeconds||60));c=function(g){if(g.data&&g.data.type==="authorization_response"){if(clearTimeout(u),clearInterval(d),window.removeEventListener("message",c,!1),a.popup.close(),g.data.response.error)return f(Ae.fromPayload(g.data.response));l(g.data.response)}},window.addEventListener("message",c)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(i.state!==r.state)throw new Ae("state_mismatch","Invalid state");const o=((s=t.authorizationParams)===null||s===void 0?void 0:s.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:i.audience,scope:i.scope,code_verifier:i.code_verifier,grant_type:"authorization_code",code:r.code,redirect_uri:i.redirect_uri},{nonceIn:i.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 s=Aa(t),{openUrl:i,fragment:r,appState:o}=s,a=at(s,["openUrl","fragment","appState"]),l=((n=a.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,f=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:c}=f,d=at(f,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},d),{appState:o}),l&&{organization:l}));const u=r?`${c}#${r}`:c;i?await i(u):window.location.assign(u)}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{state:s,code:i,error:r,error_description:o}=(d=>{d.indexOf("#")>-1&&(d=d.substring(0,d.indexOf("#")));const u=new URLSearchParams(d);return{state:u.get("state"),code:u.get("code")||void 0,error:u.get("error")||void 0,error_description:u.get("error_description")||void 0}})(n.join("")),a=this.transactionManager.get();if(!a)throw new Ae("missing_transaction","Invalid state");if(this.transactionManager.remove(),r)throw new Vr(r,o||r,s,a.appState);if(!a.code_verifier||a.state&&a.state!==s)throw new Ae("state_mismatch","Invalid state");const l=a.organization,f=a.nonce,c=a.redirect_uri;return await this._requestToken(Object.assign({audience:a.audience,scope:a.scope,code_verifier:a.code_verifier,grant_type:"authorization_code",code:i},c?{redirect_uri:c}:{}),{nonceIn:f,organization:l}),{appState:a.appState}}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;const s=Object.assign(Object.assign({cacheMode:"on"},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:As(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),i=await((r,o)=>{let a=Zr[o];return a||(a=r().finally(()=>{delete Zr[o],a=null}),Zr[o]=a),a})(()=>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,s=at(t,["cacheMode"]);if(n!=="off"){const i=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(i)return i}if(n!=="cache-only"){if(!await(async(i,r=3)=>{for(let o=0;o<r;o++)if(await i())return!0;return!1})(()=>Jr.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new Hn;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const f=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(f)return f}const i=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(s):await this._getTokenFromIFrame(s),{id_token:r,access_token:o,oauthTokenScope:a,expires_in:l}=i;return Object.assign(Object.assign({id_token:r,access_token:o},a?{scope:a}:null),{expires_in:l})}finally{await Jr.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(t={},n={}){var s;const i=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:As(this.scope,(s=t.authorizationParams)===null||s===void 0?void 0:s.scope)})});return n=Object.assign(Object.assign({},qf),n),await this.loginWithPopup(i,n),(await this.cacheManager.get(new lt({scope:i.authorizationParams.scope,audience:i.authorizationParams.audience||"default",clientId:this.options.clientId}))).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:s}=n,i=at(n,["federated"]),r=s?"&federated":"";return this._url(`/v2/logout?${Br(Object.assign({clientId:t.clientId},i))}`)+r}async logout(t={}){const n=Aa(t),{openUrl:s}=n,i=at(n,["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@@");const r=this._buildLogoutUrl(i);s?await s(r):s!==!1&&window.location.assign(r)}async _getTokenFromIFrame(t){const n=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),s=this.cookieStorage.get(this.orgHintCookieName);s&&!n.organization&&(n.organization=s);const{url:i,state:r,nonce:o,code_verifier:a,redirect_uri:l,scope:f,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 d=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,u=await((w,E,I=60)=>new Promise((S,N)=>{const b=window.document.createElement("iframe");b.setAttribute("width","0"),b.setAttribute("height","0"),b.style.display="none";const y=()=>{window.document.body.contains(b)&&(window.document.body.removeChild(b),window.removeEventListener("message",O,!1))};let O;const L=setTimeout(()=>{N(new Hn),y()},1e3*I);O=function(D){if(D.origin!=E||!D.data||D.data.type!=="authorization_response")return;const P=D.source;P&&P.close(),D.data.response.error?N(Ae.fromPayload(D.data.response)):S(D.data.response),clearTimeout(L),window.removeEventListener("message",O,!1),setTimeout(y,2e3)},window.addEventListener("message",O,!1),window.document.body.appendChild(b),b.setAttribute("src",w)}))(i,this.domainUrl,d);if(r!==u.state)throw new Ae("state_mismatch","Invalid state");const g=await this._requestToken(Object.assign(Object.assign({},t.authorizationParams),{code_verifier:a,code:u.code,grant_type:"authorization_code",redirect_uri:l,timeout:t.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:o,organization:n.organization});return Object.assign(Object.assign({},g),{scope:f,oauthTokenScope:g.scope,audience:c})}catch(d){throw d.error==="login_required"&&this.logout({openUrl:!1}),d}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new lt({scope:t.authorizationParams.scope,audience:t.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(n&&n.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw new Ns(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const s=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,i=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null;try{const r=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:s}),i&&{timeout:i}));return Object.assign(Object.assign({},r),{scope:t.authorizationParams.scope,oauthTokenScope:r.scope,audience:t.authorizationParams.audience||"default"})}catch(r){if((r.message.indexOf("Missing Refresh Token")>-1||r.message&&r.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw r}}async _saveEntryInCache(t){const{id_token:n,decodedToken:s}=t,i=at(t,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:s}),await this.cacheManager.setIdToken(this.options.clientId,t.id_token,t.decodedToken),await this.cacheManager.set(i)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new lt({clientId:this.options.clientId,audience:t,scope:this.scope})),s=this.userCache.get("@@user@@");return n&&n.id_token===s?.id_token?s:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:t,audience:n,clientId:s}){const i=await this.cacheManager.get(new lt({scope:t,audience:n,clientId:s}),60);if(i&&i.access_token){const{access_token:r,oauthTokenScope:o,expires_in:a}=i,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:r},o?{scope:o}:null),{expires_in:a})}}async _requestToken(t,n){const{nonceIn:s,organization:i}=n||{},r=await td(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},t),this.worker),o=await this._verifyIdToken(r.id_token,s,i);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},r),{decodedToken:o,scope:t.scope,audience:t.audience||"default"}),r.scope?{oauthTokenScope:r.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(i||o.claims.org_id),Object.assign(Object.assign({},r),{decodedToken:o})}}function Kn(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 nn=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},hd={isLoading:se(!1),isAuthenticated:se(!1),user:se(void 0),idTokenClaims:se(void 0),error:se(null),loginWithPopup:nn,loginWithRedirect:nn,getAccessTokenSilently:nn,getAccessTokenWithPopup:nn,logout:nn,checkSession:nn,handleRedirectCallback:nn},md=se(hd);class pd{constructor(t,n){var s,i;this.clientOptions=t,this.pluginOptions=n,this.isLoading=se(!0),this.isAuthenticated=se(!1),this.user=se({}),this.idTokenClaims=se(),this.error=se(null),s=this,i=["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf(s)).filter(r=>!i.includes(r)).forEach(r=>s[r]=s[r].bind(s))}install(t){this._client=new dd(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(Ea,this),md.value=this}async loginWithRedirect(t){return Kn(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return Kn(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 Kn(t),this.__proxy(()=>this._client.getTokenSilently(t))}async getAccessTokenWithPopup(t,n){return Kn(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 __checkSession(t){var n,s,i;const r=window.location.search;try{if((r.includes("code=")||r.includes("error="))&&r.includes("state=")&&!(!((n=this.pluginOptions)===null||n===void 0)&&n.skipRedirectCallback)){const o=await this.handleRedirectCallback(),a=o?.appState,l=(s=a?.target)!==null&&s!==void 0?s:"/";return window.history.replaceState({},"","/"),t&&t.push(l),o}await this.checkSession()}catch{window.history.replaceState({},"","/"),t&&t.push(((i=this.pluginOptions)===null||i===void 0?void 0:i.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 s;try{s=await t(),this.error.value=null}catch(i){throw this.error.value=i,i}finally{n&&await this.__refreshState()}return s}}function Ra(e,t){return Kn(e),new pd(e,t)}function qr(){return Ke(Ea)}/*!
|
|
28
|
+
* shared v9.13.1
|
|
29
29
|
* (c) 2024 kazuya kawaguchi
|
|
30
30
|
* Released under the MIT License.
|
|
31
|
-
*/const Rs=typeof window<"u",
|
|
32
|
-
* message-compiler v9.
|
|
31
|
+
*/const Rs=typeof window<"u",Nt=(e,t=!1)=>t?Symbol.for(e):Symbol(e),gd=(e,t,n)=>_d({l:e,k:t,s:n}),_d=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ke=e=>typeof e=="number"&&isFinite(e),bd=e=>$a(e)==="[object Date]",Pt=e=>$a(e)==="[object RegExp]",Ms=e=>B(e)&&Object.keys(e).length===0,Se=Object.assign;let Ma;const yt=()=>Ma||(Ma=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Da(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const yd=Object.prototype.hasOwnProperty;function Ds(e,t){return yd.call(e,t)}const me=Array.isArray,de=e=>typeof e=="function",W=e=>typeof e=="string",Q=e=>typeof e=="boolean",oe=e=>e!==null&&typeof e=="object",kd=e=>oe(e)&&de(e.then)&&de(e.catch),Fa=Object.prototype.toString,$a=e=>Fa.call(e),B=e=>{if(!oe(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},wd=e=>e==null?"":me(e)||B(e)&&e.toString===Fa?JSON.stringify(e,null,2):String(e);function vd(e,t=""){return e.reduce((n,s,i)=>i===0?n+s:n+t+s,"")}function Fs(e){let t=e;return()=>++t}function Ed(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const $s=e=>!oe(e)||me(e);function Us(e,t){if($s(e)||$s(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:i}=n.pop();Object.keys(s).forEach(r=>{$s(s[r])||$s(i[r])?i[r]=s[r]:n.push({src:s[r],des:i[r]})})}}/*!
|
|
32
|
+
* message-compiler v9.13.1
|
|
33
33
|
* (c) 2024 kazuya kawaguchi
|
|
34
34
|
* Released under the MIT License.
|
|
35
|
-
*/function
|
|
36
|
-
`,Ed="\u2028",Id="\u2029";function Td(e){const t=e;let n=0,s=1,o=1,r=0;const i=D=>t[D]===vd&&t[D+1]===De,a=D=>t[D]===De,l=D=>t[D]===Id,h=D=>t[D]===Ed,f=D=>i(D)||a(D)||l(D)||h(D),m=()=>n,d=()=>s,g=()=>o,w=()=>r,E=D=>i(D)||l(D)||h(D)?De:t[D],I=()=>E(n),_=()=>E(n+r);function k(){return r=0,f(n)&&(s++,o=0),i(n)&&n++,n++,o++,t[n]}function y(){return i(n+r)&&r++,r++,t[n+r]}function b(){n=0,s=1,o=1,r=0}function S(D=0){r=D}function x(){const D=n+r;for(;D!==n;)k();r=0}return{index:m,line:d,column:g,peekOffset:w,charAt:E,currentChar:I,currentPeek:_,next:k,peek:y,reset:b,resetPeek:S,skipToPeek:x}}const Dt=void 0,Ld=".",Da="'",Od="tokenizer";function Sd(e,t={}){const n=t.location!==!1,s=Td(e),o=()=>s.index(),r=()=>gd(s.line(),s.column(),s.index()),i=r(),a=o(),l={currentType:14,offset:a,startLoc:i,endLoc:i,lastType:14,lastOffset:a,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},h=()=>l,{onError:f}=t;function m(u,c,p,...v){const L=h();if(c.column+=p,c.offset+=p,f){const C=n?Qr(L.startLoc,c):null,R=yn(u,C,{domain:Od,args:v});f(R)}}function d(u,c,p){u.endLoc=r(),u.currentType=c;const v={type:c};return n&&(v.loc=Qr(u.startLoc,u.endLoc)),p!=null&&(v.value=p),v}const g=u=>d(u,14);function w(u,c){return u.currentChar()===c?(u.next(),c):(m(V.EXPECTED_TOKEN,r(),0,c),"")}function E(u){let c="";for(;u.currentPeek()===wt||u.currentPeek()===De;)c+=u.currentPeek(),u.peek();return c}function I(u){const c=E(u);return u.skipToPeek(),c}function _(u){if(u===Dt)return!1;const c=u.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c===95}function k(u){if(u===Dt)return!1;const c=u.charCodeAt(0);return c>=48&&c<=57}function y(u,c){const{currentType:p}=c;if(p!==2)return!1;E(u);const v=_(u.currentPeek());return u.resetPeek(),v}function b(u,c){const{currentType:p}=c;if(p!==2)return!1;E(u);const v=u.currentPeek()==="-"?u.peek():u.currentPeek(),L=k(v);return u.resetPeek(),L}function S(u,c){const{currentType:p}=c;if(p!==2)return!1;E(u);const v=u.currentPeek()===Da;return u.resetPeek(),v}function x(u,c){const{currentType:p}=c;if(p!==8)return!1;E(u);const v=u.currentPeek()===".";return u.resetPeek(),v}function D(u,c){const{currentType:p}=c;if(p!==9)return!1;E(u);const v=_(u.currentPeek());return u.resetPeek(),v}function M(u,c){const{currentType:p}=c;if(!(p===8||p===12))return!1;E(u);const v=u.currentPeek()===":";return u.resetPeek(),v}function N(u,c){const{currentType:p}=c;if(p!==10)return!1;const v=()=>{const C=u.currentPeek();return C==="{"?_(u.peek()):C==="@"||C==="%"||C==="|"||C===":"||C==="."||C===wt||!C?!1:C===De?(u.peek(),v()):_(C)},L=v();return u.resetPeek(),L}function K(u){E(u);const c=u.currentPeek()==="|";return u.resetPeek(),c}function re(u){const c=E(u),p=u.currentPeek()==="%"&&u.peek()==="{";return u.resetPeek(),{isModulo:p,hasSpace:c.length>0}}function ie(u,c=!0){const p=(L=!1,C="",R=!1)=>{const A=u.currentPeek();return A==="{"?C==="%"?!1:L:A==="@"||!A?C==="%"?!0:L:A==="%"?(u.peek(),p(L,"%",!0)):A==="|"?C==="%"||R?!0:!(C===wt||C===De):A===wt?(u.peek(),p(!0,wt,R)):A===De?(u.peek(),p(!0,De,R)):!0},v=p();return c&&u.resetPeek(),v}function be(u,c){const p=u.currentChar();return p===Dt?Dt:c(p)?(u.next(),p):null}function qe(u){return be(u,p=>{const v=p.charCodeAt(0);return v>=97&&v<=122||v>=65&&v<=90||v>=48&&v<=57||v===95||v===36})}function Ve(u){return be(u,p=>{const v=p.charCodeAt(0);return v>=48&&v<=57})}function Z(u){return be(u,p=>{const v=p.charCodeAt(0);return v>=48&&v<=57||v>=65&&v<=70||v>=97&&v<=102})}function ae(u){let c="",p="";for(;c=Ve(u);)p+=c;return p}function se(u){I(u);const c=u.currentChar();return c!=="%"&&m(V.EXPECTED_TOKEN,r(),0,c),u.next(),"%"}function Ke(u){let c="";for(;;){const p=u.currentChar();if(p==="{"||p==="}"||p==="@"||p==="|"||!p)break;if(p==="%")if(ie(u))c+=p,u.next();else break;else if(p===wt||p===De)if(ie(u))c+=p,u.next();else{if(K(u))break;c+=p,u.next()}else c+=p,u.next()}return c}function mt(u){I(u);let c="",p="";for(;c=qe(u);)p+=c;return u.currentChar()===Dt&&m(V.UNTERMINATED_CLOSING_BRACE,r(),0),p}function ve(u){I(u);let c="";return u.currentChar()==="-"?(u.next(),c+=`-${ae(u)}`):c+=ae(u),u.currentChar()===Dt&&m(V.UNTERMINATED_CLOSING_BRACE,r(),0),c}function Se(u){I(u),w(u,"'");let c="",p="";const v=C=>C!==Da&&C!==De;for(;c=be(u,v);)c==="\\"?p+=Ut(u):p+=c;const L=u.currentChar();return L===De||L===Dt?(m(V.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),L===De&&(u.next(),w(u,"'")),p):(w(u,"'"),p)}function Ut(u){const c=u.currentChar();switch(c){case"\\":case"'":return u.next(),`\\${c}`;case"u":return jt(u,c,4);case"U":return jt(u,c,6);default:return m(V.UNKNOWN_ESCAPE_SEQUENCE,r(),0,c),""}}function jt(u,c,p){w(u,c);let v="";for(let L=0;L<p;L++){const C=Z(u);if(!C){m(V.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${c}${v}${u.currentChar()}`);break}v+=C}return`\\${c}${v}`}function an(u){I(u);let c="",p="";const v=L=>L!=="{"&&L!=="}"&&L!==wt&&L!==De;for(;c=be(u,v);)p+=c;return p}function $e(u){let c="",p="";for(;c=qe(u);)p+=c;return p}function Et(u){const c=(p=!1,v)=>{const L=u.currentChar();return L==="{"||L==="%"||L==="@"||L==="|"||L==="("||L===")"||!L||L===wt?v:L===De||L===Ld?(v+=L,u.next(),c(p,v)):(v+=L,u.next(),c(!0,v))};return c(!1,"")}function nt(u){I(u);const c=w(u,"|");return I(u),c}function pt(u,c){let p=null;switch(u.currentChar()){case"{":return c.braceNest>=1&&m(V.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),u.next(),p=d(c,2,"{"),I(u),c.braceNest++,p;case"}":return c.braceNest>0&&c.currentType===2&&m(V.EMPTY_PLACEHOLDER,r(),0),u.next(),p=d(c,3,"}"),c.braceNest--,c.braceNest>0&&I(u),c.inLinked&&c.braceNest===0&&(c.inLinked=!1),p;case"@":return c.braceNest>0&&m(V.UNTERMINATED_CLOSING_BRACE,r(),0),p=Ue(u,c)||g(c),c.braceNest=0,p;default:{let L=!0,C=!0,R=!0;if(K(u))return c.braceNest>0&&m(V.UNTERMINATED_CLOSING_BRACE,r(),0),p=d(c,1,nt(u)),c.braceNest=0,c.inLinked=!1,p;if(c.braceNest>0&&(c.currentType===5||c.currentType===6||c.currentType===7))return m(V.UNTERMINATED_CLOSING_BRACE,r(),0),c.braceNest=0,st(u,c);if(L=y(u,c))return p=d(c,5,mt(u)),I(u),p;if(C=b(u,c))return p=d(c,6,ve(u)),I(u),p;if(R=S(u,c))return p=d(c,7,Se(u)),I(u),p;if(!L&&!C&&!R)return p=d(c,13,an(u)),m(V.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,p.value),I(u),p;break}}return p}function Ue(u,c){const{currentType:p}=c;let v=null;const L=u.currentChar();switch((p===8||p===9||p===12||p===10)&&(L===De||L===wt)&&m(V.INVALID_LINKED_FORMAT,r(),0),L){case"@":return u.next(),v=d(c,8,"@"),c.inLinked=!0,v;case".":return I(u),u.next(),d(c,9,".");case":":return I(u),u.next(),d(c,10,":");default:return K(u)?(v=d(c,1,nt(u)),c.braceNest=0,c.inLinked=!1,v):x(u,c)||M(u,c)?(I(u),Ue(u,c)):D(u,c)?(I(u),d(c,12,$e(u))):N(u,c)?(I(u),L==="{"?pt(u,c)||v:d(c,11,Et(u))):(p===8&&m(V.INVALID_LINKED_FORMAT,r(),0),c.braceNest=0,c.inLinked=!1,st(u,c))}}function st(u,c){let p={type:14};if(c.braceNest>0)return pt(u,c)||g(c);if(c.inLinked)return Ue(u,c)||g(c);switch(u.currentChar()){case"{":return pt(u,c)||g(c);case"}":return m(V.UNBALANCED_CLOSING_BRACE,r(),0),u.next(),d(c,3,"}");case"@":return Ue(u,c)||g(c);default:{if(K(u))return p=d(c,1,nt(u)),c.braceNest=0,c.inLinked=!1,p;const{isModulo:L,hasSpace:C}=re(u);if(L)return C?d(c,0,Ke(u)):d(c,4,se(u));if(ie(u))return d(c,0,Ke(u));break}}return p}function It(){const{currentType:u,offset:c,startLoc:p,endLoc:v}=l;return l.lastType=u,l.lastOffset=c,l.lastStartLoc=p,l.lastEndLoc=v,l.offset=o(),l.startLoc=r(),s.currentChar()===Dt?d(l,14):st(s,l)}return{nextToken:It,currentOffset:o,currentPosition:r,context:h}}const xd="parser",Cd=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Nd(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function Pd(e={}){const t=e.location!==!1,{onError:n}=e;function s(_,k,y,b,...S){const x=_.currentPosition();if(x.offset+=b,x.column+=b,n){const D=t?Qr(y,x):null,M=yn(k,D,{domain:xd,args:S});n(M)}}function o(_,k,y){const b={type:_};return t&&(b.start=k,b.end=k,b.loc={start:y,end:y}),b}function r(_,k,y,b){b&&(_.type=b),t&&(_.end=k,_.loc&&(_.loc.end=y))}function i(_,k){const y=_.context(),b=o(3,y.offset,y.startLoc);return b.value=k,r(b,_.currentOffset(),_.currentPosition()),b}function a(_,k){const y=_.context(),{lastOffset:b,lastStartLoc:S}=y,x=o(5,b,S);return x.index=parseInt(k,10),_.nextToken(),r(x,_.currentOffset(),_.currentPosition()),x}function l(_,k){const y=_.context(),{lastOffset:b,lastStartLoc:S}=y,x=o(4,b,S);return x.key=k,_.nextToken(),r(x,_.currentOffset(),_.currentPosition()),x}function h(_,k){const y=_.context(),{lastOffset:b,lastStartLoc:S}=y,x=o(9,b,S);return x.value=k.replace(Cd,Nd),_.nextToken(),r(x,_.currentOffset(),_.currentPosition()),x}function f(_){const k=_.nextToken(),y=_.context(),{lastOffset:b,lastStartLoc:S}=y,x=o(8,b,S);return k.type!==12?(s(_,V.UNEXPECTED_EMPTY_LINKED_MODIFIER,y.lastStartLoc,0),x.value="",r(x,b,S),{nextConsumeToken:k,node:x}):(k.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,ut(k)),x.value=k.value||"",r(x,_.currentOffset(),_.currentPosition()),{node:x})}function m(_,k){const y=_.context(),b=o(7,y.offset,y.startLoc);return b.value=k,r(b,_.currentOffset(),_.currentPosition()),b}function d(_){const k=_.context(),y=o(6,k.offset,k.startLoc);let b=_.nextToken();if(b.type===9){const S=f(_);y.modifier=S.node,b=S.nextConsumeToken||_.nextToken()}switch(b.type!==10&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),b=_.nextToken(),b.type===2&&(b=_.nextToken()),b.type){case 11:b.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),y.key=m(_,b.value||"");break;case 5:b.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),y.key=l(_,b.value||"");break;case 6:b.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),y.key=a(_,b.value||"");break;case 7:b.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),y.key=h(_,b.value||"");break;default:{s(_,V.UNEXPECTED_EMPTY_LINKED_KEY,k.lastStartLoc,0);const S=_.context(),x=o(7,S.offset,S.startLoc);return x.value="",r(x,S.offset,S.startLoc),y.key=x,r(y,S.offset,S.startLoc),{nextConsumeToken:b,node:y}}}return r(y,_.currentOffset(),_.currentPosition()),{node:y}}function g(_){const k=_.context(),y=k.currentType===1?_.currentOffset():k.offset,b=k.currentType===1?k.endLoc:k.startLoc,S=o(2,y,b);S.items=[];let x=null;do{const N=x||_.nextToken();switch(x=null,N.type){case 0:N.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(N)),S.items.push(i(_,N.value||""));break;case 6:N.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(N)),S.items.push(a(_,N.value||""));break;case 5:N.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(N)),S.items.push(l(_,N.value||""));break;case 7:N.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(N)),S.items.push(h(_,N.value||""));break;case 8:{const K=d(_);S.items.push(K.node),x=K.nextConsumeToken||null;break}}}while(k.currentType!==14&&k.currentType!==1);const D=k.currentType===1?k.lastOffset:_.currentOffset(),M=k.currentType===1?k.lastEndLoc:_.currentPosition();return r(S,D,M),S}function w(_,k,y,b){const S=_.context();let x=b.items.length===0;const D=o(1,k,y);D.cases=[],D.cases.push(b);do{const M=g(_);x||(x=M.items.length===0),D.cases.push(M)}while(S.currentType!==14);return x&&s(_,V.MUST_HAVE_MESSAGES_IN_PLURAL,y,0),r(D,_.currentOffset(),_.currentPosition()),D}function E(_){const k=_.context(),{offset:y,startLoc:b}=k,S=g(_);return k.currentType===14?S:w(_,y,b,S)}function I(_){const k=Sd(_,Ra({},e)),y=k.context(),b=o(0,y.offset,y.startLoc);return t&&b.loc&&(b.loc.source=_),b.body=E(k),e.onCacheKey&&(b.cacheKey=e.onCacheKey(_)),y.currentType!==14&&s(k,V.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,_[y.offset]||""),r(b,k.currentOffset(),k.currentPosition()),b}return{parse:I}}function ut(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Ad(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function $a(e,t){for(let n=0;n<e.length;n++)eo(e[n],t)}function eo(e,t){switch(e.type){case 1:$a(e.cases,t),t.helper("plural");break;case 2:$a(e.items,t);break;case 6:{eo(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 Rd(e,t={}){const n=Ad(e);n.helper("normalize"),e.body&&eo(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function Md(e){const t=e.body;return t.type===2?Ua(t):t.cases.forEach(n=>Ua(n)),e}function Ua(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 s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=Fa(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}const Fd="minifier";function kn(e){switch(e.t=e.type,e.type){case 0:{const t=e;kn(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let s=0;s<n.length;s++)kn(n[s]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let s=0;s<n.length;s++)kn(n[s]);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;kn(t.key),t.k=t.key,delete t.key,t.modifier&&(kn(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}default:throw yn(V.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Fd,args:[e.type]})}delete e.type}const Dd="parser";function $d(e,t){const{sourceMap:n,filename:s,breakLineCode:o,needIndent:r}=t,i=t.location!==!1,a={filename:s,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:r,indentLevel:0};i&&e.loc&&(a.source=e.loc.source);const l=()=>a;function h(I,_){a.code+=I}function f(I,_=!0){const k=_?o:"";h(r?k+" ".repeat(I):k)}function m(I=!0){const _=++a.indentLevel;I&&f(_)}function d(I=!0){const _=--a.indentLevel;I&&f(_)}function g(){f(a.indentLevel)}return{context:l,push:h,indent:m,deindent:d,newline:g,helper:I=>`_${I}`,needIndent:()=>a.needIndent}}function Ud(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),wn(e,t.key),t.modifier?(e.push(", "),wn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function jd(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const o=t.items.length;for(let r=0;r<o&&(wn(e,t.items[r]),r!==o-1);r++)e.push(", ");e.deindent(s()),e.push("])")}function Wd(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const o=t.cases.length;for(let r=0;r<o&&(wn(e,t.cases[r]),r!==o-1);r++)e.push(", ");e.deindent(s()),e.push("])")}}function Hd(e,t){t.body?wn(e,t.body):e.push("null")}function wn(e,t){const{helper:n}=e;switch(t.type){case 0:Hd(e,t);break;case 1:Wd(e,t);break;case 2:jd(e,t);break;case 6:Ud(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;default:throw yn(V.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Dd,args:[t.type]})}}const Vd=(e,t={})=>{const n=Ma(t.mode)?t.mode:"normal",s=Ma(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
37
|
-
`,
|
|
38
|
-
* core-base v9.
|
|
35
|
+
*/function Id(e,t,n){return{line:e,column:t,offset:n}}function js(e,t,n){return{start:e,end:t}}const Td=/\{([0-9a-zA-Z]+)\}/g;function Ua(e,...t){return t.length===1&&Ld(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Td,(n,s)=>t.hasOwnProperty(s)?t[s]:"")}const ja=Object.assign,Wa=e=>typeof e=="string",Ld=e=>e!==null&&typeof e=="object";function Ha(e,t=""){return e.reduce((n,s,i)=>i===0?n+s:n+t+s,"")}const Qr={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},Od={[Qr.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function Sd(e,t,...n){const s=Ua(Od[e],...n||[]),i={message:String(s),code:e};return t&&(i.location=t),i}const K={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,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},xd={[K.EXPECTED_TOKEN]:"Expected token: '{0}'",[K.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[K.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[K.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[K.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[K.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[K.EMPTY_PLACEHOLDER]:"Empty placeholder",[K.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[K.INVALID_LINKED_FORMAT]:"Invalid linked format",[K.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[K.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[K.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[K.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[K.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[K.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function yn(e,t,n={}){const{domain:s,messages:i,args:r}=n,o=Ua((i||xd)[e]||"",...r||[]),a=new SyntaxError(String(o));return a.code=e,t&&(a.location=t),a.domain=s,a}function Cd(e){throw e}const kt=" ",Nd="\r",Fe=`
|
|
36
|
+
`,Pd="\u2028",Ad="\u2029";function Rd(e){const t=e;let n=0,s=1,i=1,r=0;const o=D=>t[D]===Nd&&t[D+1]===Fe,a=D=>t[D]===Fe,l=D=>t[D]===Ad,f=D=>t[D]===Pd,c=D=>o(D)||a(D)||l(D)||f(D),d=()=>n,u=()=>s,g=()=>i,w=()=>r,E=D=>o(D)||l(D)||f(D)?Fe:t[D],I=()=>E(n),S=()=>E(n+r);function N(){return r=0,c(n)&&(s++,i=0),o(n)&&n++,n++,i++,t[n]}function b(){return o(n+r)&&r++,r++,t[n+r]}function y(){n=0,s=1,i=1,r=0}function O(D=0){r=D}function L(){const D=n+r;for(;D!==n;)N();r=0}return{index:d,line:u,column:g,peekOffset:w,charAt:E,currentChar:I,currentPeek:S,next:N,peek:b,reset:y,resetPeek:O,skipToPeek:L}}const At=void 0,Md=".",Va="'",Dd="tokenizer";function Fd(e,t={}){const n=t.location!==!1,s=Rd(e),i=()=>s.index(),r=()=>Id(s.line(),s.column(),s.index()),o=r(),a=i(),l={currentType:14,offset:a,startLoc:o,endLoc:o,lastType:14,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},f=()=>l,{onError:c}=t;function d(h,m,k,...C){const j=f();if(m.column+=k,m.offset+=k,c){const F=n?js(j.startLoc,m):null,v=yn(h,F,{domain:Dd,args:C});c(v)}}function u(h,m,k){h.endLoc=r(),h.currentType=m;const C={type:m};return n&&(C.loc=js(h.startLoc,h.endLoc)),k!=null&&(C.value=k),C}const g=h=>u(h,14);function w(h,m){return h.currentChar()===m?(h.next(),m):(d(K.EXPECTED_TOKEN,r(),0,m),"")}function E(h){let m="";for(;h.currentPeek()===kt||h.currentPeek()===Fe;)m+=h.currentPeek(),h.peek();return m}function I(h){const m=E(h);return h.skipToPeek(),m}function S(h){if(h===At)return!1;const m=h.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m===95}function N(h){if(h===At)return!1;const m=h.charCodeAt(0);return m>=48&&m<=57}function b(h,m){const{currentType:k}=m;if(k!==2)return!1;E(h);const C=S(h.currentPeek());return h.resetPeek(),C}function y(h,m){const{currentType:k}=m;if(k!==2)return!1;E(h);const C=h.currentPeek()==="-"?h.peek():h.currentPeek(),j=N(C);return h.resetPeek(),j}function O(h,m){const{currentType:k}=m;if(k!==2)return!1;E(h);const C=h.currentPeek()===Va;return h.resetPeek(),C}function L(h,m){const{currentType:k}=m;if(k!==8)return!1;E(h);const C=h.currentPeek()===".";return h.resetPeek(),C}function D(h,m){const{currentType:k}=m;if(k!==9)return!1;E(h);const C=S(h.currentPeek());return h.resetPeek(),C}function P(h,m){const{currentType:k}=m;if(!(k===8||k===12))return!1;E(h);const C=h.currentPeek()===":";return h.resetPeek(),C}function A(h,m){const{currentType:k}=m;if(k!==10)return!1;const C=()=>{const F=h.currentPeek();return F==="{"?S(h.peek()):F==="@"||F==="%"||F==="|"||F===":"||F==="."||F===kt||!F?!1:F===Fe?(h.peek(),C()):Y(h,!1)},j=C();return h.resetPeek(),j}function V(h){E(h);const m=h.currentPeek()==="|";return h.resetPeek(),m}function ne(h){const m=E(h),k=h.currentPeek()==="%"&&h.peek()==="{";return h.resetPeek(),{isModulo:k,hasSpace:m.length>0}}function Y(h,m=!0){const k=(j=!1,F="",v=!1)=>{const x=h.currentPeek();return x==="{"?F==="%"?!1:j:x==="@"||!x?F==="%"?!0:j:x==="%"?(h.peek(),k(j,"%",!0)):x==="|"?F==="%"||v?!0:!(F===kt||F===Fe):x===kt?(h.peek(),k(!0,kt,v)):x===Fe?(h.peek(),k(!0,Fe,v)):!0},C=k();return m&&h.resetPeek(),C}function pe(h,m){const k=h.currentChar();return k===At?At:m(k)?(h.next(),k):null}function nt(h){const m=h.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36}function He(h){return pe(h,nt)}function J(h){const m=h.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36||m===45}function ce(h){return pe(h,J)}function ie(h){const m=h.charCodeAt(0);return m>=48&&m<=57}function Ye(h){return pe(h,ie)}function dt(h){const m=h.charCodeAt(0);return m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102}function ve(h){return pe(h,dt)}function Oe(h){let m="",k="";for(;m=Ye(h);)k+=m;return k}function Mt(h){I(h);const m=h.currentChar();return m!=="%"&&d(K.EXPECTED_TOKEN,r(),0,m),h.next(),"%"}function Dt(h){let m="";for(;;){const k=h.currentChar();if(k==="{"||k==="}"||k==="@"||k==="|"||!k)break;if(k==="%")if(Y(h))m+=k,h.next();else break;else if(k===kt||k===Fe)if(Y(h))m+=k,h.next();else{if(V(h))break;m+=k,h.next()}else m+=k,h.next()}return m}function cn(h){I(h);let m="",k="";for(;m=ce(h);)k+=m;return h.currentChar()===At&&d(K.UNTERMINATED_CLOSING_BRACE,r(),0),k}function $e(h){I(h);let m="";return h.currentChar()==="-"?(h.next(),m+=`-${Oe(h)}`):m+=Oe(h),h.currentChar()===At&&d(K.UNTERMINATED_CLOSING_BRACE,r(),0),m}function vt(h){return h!==Va&&h!==Fe}function Et(h){I(h),w(h,"'");let m="",k="";for(;m=pe(h,vt);)m==="\\"?k+=Ft(h):k+=m;const C=h.currentChar();return C===Fe||C===At?(d(K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),C===Fe&&(h.next(),w(h,"'")),k):(w(h,"'"),k)}function Ft(h){const m=h.currentChar();switch(m){case"\\":case"'":return h.next(),`\\${m}`;case"u":return Je(h,m,4);case"U":return Je(h,m,6);default:return d(K.UNKNOWN_ESCAPE_SEQUENCE,r(),0,m),""}}function Je(h,m,k){w(h,m);let C="";for(let j=0;j<k;j++){const F=ve(h);if(!F){d(K.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${m}${C}${h.currentChar()}`);break}C+=F}return`\\${m}${C}`}function $t(h){return h!=="{"&&h!=="}"&&h!==kt&&h!==Fe}function Ut(h){I(h);let m="",k="";for(;m=pe(h,$t);)k+=m;return k}function _(h){let m="",k="";for(;m=He(h);)k+=m;return k}function p(h){const m=k=>{const C=h.currentChar();return C==="{"||C==="%"||C==="@"||C==="|"||C==="("||C===")"||!C||C===kt?k:(k+=C,h.next(),m(k))};return m("")}function T(h){I(h);const m=w(h,"|");return I(h),m}function R(h,m){let k=null;switch(h.currentChar()){case"{":return m.braceNest>=1&&d(K.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),h.next(),k=u(m,2,"{"),I(h),m.braceNest++,k;case"}":return m.braceNest>0&&m.currentType===2&&d(K.EMPTY_PLACEHOLDER,r(),0),h.next(),k=u(m,3,"}"),m.braceNest--,m.braceNest>0&&I(h),m.inLinked&&m.braceNest===0&&(m.inLinked=!1),k;case"@":return m.braceNest>0&&d(K.UNTERMINATED_CLOSING_BRACE,r(),0),k=M(h,m)||g(m),m.braceNest=0,k;default:{let j=!0,F=!0,v=!0;if(V(h))return m.braceNest>0&&d(K.UNTERMINATED_CLOSING_BRACE,r(),0),k=u(m,1,T(h)),m.braceNest=0,m.inLinked=!1,k;if(m.braceNest>0&&(m.currentType===5||m.currentType===6||m.currentType===7))return d(K.UNTERMINATED_CLOSING_BRACE,r(),0),m.braceNest=0,$(h,m);if(j=b(h,m))return k=u(m,5,cn(h)),I(h),k;if(F=y(h,m))return k=u(m,6,$e(h)),I(h),k;if(v=O(h,m))return k=u(m,7,Et(h)),I(h),k;if(!j&&!F&&!v)return k=u(m,13,Ut(h)),d(K.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,k.value),I(h),k;break}}return k}function M(h,m){const{currentType:k}=m;let C=null;const j=h.currentChar();switch((k===8||k===9||k===12||k===10)&&(j===Fe||j===kt)&&d(K.INVALID_LINKED_FORMAT,r(),0),j){case"@":return h.next(),C=u(m,8,"@"),m.inLinked=!0,C;case".":return I(h),h.next(),u(m,9,".");case":":return I(h),h.next(),u(m,10,":");default:return V(h)?(C=u(m,1,T(h)),m.braceNest=0,m.inLinked=!1,C):L(h,m)||P(h,m)?(I(h),M(h,m)):D(h,m)?(I(h),u(m,12,_(h))):A(h,m)?(I(h),j==="{"?R(h,m)||C:u(m,11,p(h))):(k===8&&d(K.INVALID_LINKED_FORMAT,r(),0),m.braceNest=0,m.inLinked=!1,$(h,m))}}function $(h,m){let k={type:14};if(m.braceNest>0)return R(h,m)||g(m);if(m.inLinked)return M(h,m)||g(m);switch(h.currentChar()){case"{":return R(h,m)||g(m);case"}":return d(K.UNBALANCED_CLOSING_BRACE,r(),0),h.next(),u(m,3,"}");case"@":return M(h,m)||g(m);default:{if(V(h))return k=u(m,1,T(h)),m.braceNest=0,m.inLinked=!1,k;const{isModulo:j,hasSpace:F}=ne(h);if(j)return F?u(m,0,Dt(h)):u(m,4,Mt(h));if(Y(h))return u(m,0,Dt(h));break}}return k}function U(){const{currentType:h,offset:m,startLoc:k,endLoc:C}=l;return l.lastType=h,l.lastOffset=m,l.lastStartLoc=k,l.lastEndLoc=C,l.offset=i(),l.startLoc=r(),s.currentChar()===At?u(l,14):$(s,l)}return{nextToken:U,currentOffset:i,currentPosition:r,context:f}}const $d="parser",Ud=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function jd(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function Wd(e={}){const t=e.location!==!1,{onError:n,onWarn:s}=e;function i(b,y,O,L,...D){const P=b.currentPosition();if(P.offset+=L,P.column+=L,n){const A=t?js(O,P):null,V=yn(y,A,{domain:$d,args:D});n(V)}}function r(b,y,O,L,...D){const P=b.currentPosition();if(P.offset+=L,P.column+=L,s){const A=t?js(O,P):null;s(Sd(y,A,D))}}function o(b,y,O){const L={type:b};return t&&(L.start=y,L.end=y,L.loc={start:O,end:O}),L}function a(b,y,O,L){t&&(b.end=y,b.loc&&(b.loc.end=O))}function l(b,y){const O=b.context(),L=o(3,O.offset,O.startLoc);return L.value=y,a(L,b.currentOffset(),b.currentPosition()),L}function f(b,y){const O=b.context(),{lastOffset:L,lastStartLoc:D}=O,P=o(5,L,D);return P.index=parseInt(y,10),b.nextToken(),a(P,b.currentOffset(),b.currentPosition()),P}function c(b,y,O){const L=b.context(),{lastOffset:D,lastStartLoc:P}=L,A=o(4,D,P);return A.key=y,O===!0&&(A.modulo=!0),b.nextToken(),a(A,b.currentOffset(),b.currentPosition()),A}function d(b,y){const O=b.context(),{lastOffset:L,lastStartLoc:D}=O,P=o(9,L,D);return P.value=y.replace(Ud,jd),b.nextToken(),a(P,b.currentOffset(),b.currentPosition()),P}function u(b){const y=b.nextToken(),O=b.context(),{lastOffset:L,lastStartLoc:D}=O,P=o(8,L,D);return y.type!==12?(i(b,K.UNEXPECTED_EMPTY_LINKED_MODIFIER,O.lastStartLoc,0),P.value="",a(P,L,D),{nextConsumeToken:y,node:P}):(y.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,et(y)),P.value=y.value||"",a(P,b.currentOffset(),b.currentPosition()),{node:P})}function g(b,y){const O=b.context(),L=o(7,O.offset,O.startLoc);return L.value=y,a(L,b.currentOffset(),b.currentPosition()),L}function w(b){const y=b.context(),O=o(6,y.offset,y.startLoc);let L=b.nextToken();if(L.type===9){const D=u(b);O.modifier=D.node,L=D.nextConsumeToken||b.nextToken()}switch(L.type!==10&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(L)),L=b.nextToken(),L.type===2&&(L=b.nextToken()),L.type){case 11:L.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(L)),O.key=g(b,L.value||"");break;case 5:L.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(L)),O.key=c(b,L.value||"");break;case 6:L.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(L)),O.key=f(b,L.value||"");break;case 7:L.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(L)),O.key=d(b,L.value||"");break;default:{i(b,K.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const D=b.context(),P=o(7,D.offset,D.startLoc);return P.value="",a(P,D.offset,D.startLoc),O.key=P,a(O,D.offset,D.startLoc),{nextConsumeToken:L,node:O}}}return a(O,b.currentOffset(),b.currentPosition()),{node:O}}function E(b){const y=b.context(),O=y.currentType===1?b.currentOffset():y.offset,L=y.currentType===1?y.endLoc:y.startLoc,D=o(2,O,L);D.items=[];let P=null,A=null;do{const Y=P||b.nextToken();switch(P=null,Y.type){case 0:Y.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(Y)),D.items.push(l(b,Y.value||""));break;case 6:Y.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(Y)),D.items.push(f(b,Y.value||""));break;case 4:A=!0;break;case 5:Y.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(Y)),D.items.push(c(b,Y.value||"",!!A)),A&&(r(b,Qr.USE_MODULO_SYNTAX,y.lastStartLoc,0,et(Y)),A=null);break;case 7:Y.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(Y)),D.items.push(d(b,Y.value||""));break;case 8:{const pe=w(b);D.items.push(pe.node),P=pe.nextConsumeToken||null;break}}}while(y.currentType!==14&&y.currentType!==1);const V=y.currentType===1?y.lastOffset:b.currentOffset(),ne=y.currentType===1?y.lastEndLoc:b.currentPosition();return a(D,V,ne),D}function I(b,y,O,L){const D=b.context();let P=L.items.length===0;const A=o(1,y,O);A.cases=[],A.cases.push(L);do{const V=E(b);P||(P=V.items.length===0),A.cases.push(V)}while(D.currentType!==14);return P&&i(b,K.MUST_HAVE_MESSAGES_IN_PLURAL,O,0),a(A,b.currentOffset(),b.currentPosition()),A}function S(b){const y=b.context(),{offset:O,startLoc:L}=y,D=E(b);return y.currentType===14?D:I(b,O,L,D)}function N(b){const y=Fd(b,ja({},e)),O=y.context(),L=o(0,O.offset,O.startLoc);return t&&L.loc&&(L.loc.source=b),L.body=S(y),e.onCacheKey&&(L.cacheKey=e.onCacheKey(b)),O.currentType!==14&&i(y,K.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,b[O.offset]||""),a(L,y.currentOffset(),y.currentPosition()),L}return{parse:N}}function et(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Hd(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function Ka(e,t){for(let n=0;n<e.length;n++)ei(e[n],t)}function ei(e,t){switch(e.type){case 1:Ka(e.cases,t),t.helper("plural");break;case 2:Ka(e.items,t);break;case 6:{ei(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 Vd(e,t={}){const n=Hd(e);n.helper("normalize"),e.body&&ei(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function Kd(e){const t=e.body;return t.type===2?za(t):t.cases.forEach(n=>za(n)),e}function za(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 s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=Ha(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}const zd="minifier";function kn(e){switch(e.t=e.type,e.type){case 0:{const t=e;kn(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let s=0;s<n.length;s++)kn(n[s]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let s=0;s<n.length;s++)kn(n[s]);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;kn(t.key),t.k=t.key,delete t.key,t.modifier&&(kn(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}default:throw yn(K.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:zd,args:[e.type]})}delete e.type}const Yd="parser";function Gd(e,t){const{sourceMap:n,filename:s,breakLineCode:i,needIndent:r}=t,o=t.location!==!1,a={filename:s,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:r,indentLevel:0};o&&e.loc&&(a.source=e.loc.source);const l=()=>a;function f(I,S){a.code+=I}function c(I,S=!0){const N=S?i:"";f(r?N+" ".repeat(I):N)}function d(I=!0){const S=++a.indentLevel;I&&c(S)}function u(I=!0){const S=--a.indentLevel;I&&c(S)}function g(){c(a.indentLevel)}return{context:l,push:f,indent:d,deindent:u,newline:g,helper:I=>`_${I}`,needIndent:()=>a.needIndent}}function Bd(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),wn(e,t.key),t.modifier?(e.push(", "),wn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Xd(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const i=t.items.length;for(let r=0;r<i&&(wn(e,t.items[r]),r!==i-1);r++)e.push(", ");e.deindent(s()),e.push("])")}function Zd(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const i=t.cases.length;for(let r=0;r<i&&(wn(e,t.cases[r]),r!==i-1);r++)e.push(", ");e.deindent(s()),e.push("])")}}function Jd(e,t){t.body?wn(e,t.body):e.push("null")}function wn(e,t){const{helper:n}=e;switch(t.type){case 0:Jd(e,t);break;case 1:Zd(e,t);break;case 2:Xd(e,t);break;case 6:Bd(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;default:throw yn(K.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Yd,args:[t.type]})}}const qd=(e,t={})=>{const n=Wa(t.mode)?t.mode:"normal",s=Wa(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
37
|
+
`,o=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=Gd(e,{mode:n,filename:s,sourceMap:i,breakLineCode:r,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),a.length>0&&(l.push(`const { ${Ha(a.map(d=>`${d}: _${d}`),", ")} } = ctx`),l.newline()),l.push("return "),wn(l,e),l.deindent(o),l.push("}"),delete e.helpers;const{code:f,map:c}=l.context();return{ast:e,code:f,map:c?c.toJSON():void 0}};function Qd(e,t={}){const n=ja({},t),s=!!n.jit,i=!!n.minify,r=n.optimize==null?!0:n.optimize,a=Wd(n).parse(e);return s?(r&&Kd(a),i&&kn(a),{ast:a,code:""}):(Vd(a,n),qd(a,n))}/*!
|
|
38
|
+
* core-base v9.13.1
|
|
39
39
|
* (c) 2024 kazuya kawaguchi
|
|
40
40
|
* Released under the MIT License.
|
|
41
|
-
*/function zd(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(kt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(kt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(kt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const $t=[];$t[0]={w:[0],i:[3,0],"[":[4],o:[7]},$t[1]={w:[1],".":[2],"[":[4],o:[7]},$t[2]={w:[2],i:[3,0],0:[3,0]},$t[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},$t[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},$t[5]={"'":[4,0],o:8,l:[5,0]},$t[6]={'"':[4,0],o:8,l:[6,0]};const Gd=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Yd(e){return Gd.test(e)}function Bd(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 Xd(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 Zd(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Yd(t)?Bd(t):"*"+t}function Jd(e){const t=[];let n=-1,s=0,o=0,r,i,a,l,h,f,m;const d=[];d[0]=()=>{i===void 0?i=a:i+=a},d[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},d[2]=()=>{d[0](),o++},d[3]=()=>{if(o>0)o--,s=4,d[0]();else{if(o=0,i===void 0||(i=Zd(i),i===!1))return!1;d[1]()}};function g(){const w=e[n+1];if(s===5&&w==="'"||s===6&&w==='"')return n++,a="\\"+w,d[0](),!0}for(;s!==null;)if(n++,r=e[n],!(r==="\\"&&g())){if(l=Xd(r),m=$t[s],h=m[l]||m.l||8,h===8||(s=h[0],h[1]!==void 0&&(f=d[h[1]],f&&(a=r,f()===!1))))return;if(s===7)return t}}const ja=new Map;function qd(e,t){return oe(e)?e[t]:null}function Qd(e,t){if(!oe(e))return null;let n=ja.get(t);if(n||(n=Jd(t),n&&ja.set(t,n)),!n)return null;const s=n.length;let o=e,r=0;for(;r<s;){const i=o[n[r]];if(i===void 0||de(o))return null;o=i,r++}return o}const eh=e=>e,th=e=>"",nh="text",sh=e=>e.length===0?"":md(e),rh=hd;function Wa(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function oh(e){const t=ke(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ke(e.named.count)||ke(e.named.n))?ke(e.named.count)?e.named.count:ke(e.named.n)?e.named.n:t:t}function ih(e,t){t.count||(t.count=e),t.n||(t.n=e)}function ah(e={}){const t=e.locale,n=oh(e),s=oe(e.pluralRules)&&$(t)&&de(e.pluralRules[t])?e.pluralRules[t]:Wa,o=oe(e.pluralRules)&&$(t)&&de(e.pluralRules[t])?Wa:void 0,r=_=>_[s(n,_.length,o)],i=e.list||[],a=_=>i[_],l=e.named||{};ke(e.pluralIndex)&&ih(n,l);const h=_=>l[_];function f(_){const k=de(e.messages)?e.messages(_):oe(e.messages)?e.messages[_]:!1;return k||(e.parent?e.parent.message(_):th)}const m=_=>e.modifiers?e.modifiers[_]:eh,d=Y(e.processor)&&de(e.processor.normalize)?e.processor.normalize:sh,g=Y(e.processor)&&de(e.processor.interpolate)?e.processor.interpolate:rh,w=Y(e.processor)&&$(e.processor.type)?e.processor.type:nh,I={list:a,named:h,plural:r,linked:(_,...k)=>{const[y,b]=k;let S="text",x="";k.length===1?oe(y)?(x=y.modifier||x,S=y.type||S):$(y)&&(x=y||x):k.length===2&&($(y)&&(x=y||x),$(b)&&(S=b||S));const D=f(_)(I),M=S==="vnode"&&me(D)&&x?D[0]:D;return x?m(x)(M,S):M},message:f,type:w,interpolate:g,normalize:d,values:Oe({},i,l)};return I}let Kn=null;function lh(e){Kn=e}function ch(e,t,n){Kn&&Kn.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const uh=fh("function:translate");function fh(e){return t=>Kn&&Kn.emit(e,t)}const dh={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},Ha=V.__EXTEND_POINT__,nn=qr(Ha),tt={INVALID_ARGUMENT:Ha,INVALID_DATE_ARGUMENT:nn(),INVALID_ISO_DATE_ARGUMENT:nn(),NOT_SUPPORT_NON_STRING_MESSAGE:nn(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:nn(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:nn(),NOT_SUPPORT_LOCALE_TYPE:nn(),__EXTEND_POINT__:nn()};function ft(e){return yn(e,null,void 0)}function to(e,t){return t.locale!=null?Va(t.locale):Va(e.locale)}let no;function Va(e){if($(e))return e;if(de(e)){if(e.resolvedOnce&&no!=null)return no;if(e.constructor.name==="Function"){const t=e();if(dd(t))throw ft(tt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return no=t}else throw ft(tt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ft(tt.NOT_SUPPORT_LOCALE_TYPE)}function hh(e,t,n){return[...new Set([n,...me(t)?t:oe(t)?Object.keys(t):$(t)?[t]:[n]])]}function Ka(e,t,n){const s=$(n)?n:vn,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let r=o.__localeChainCache.get(s);if(!r){r=[];let i=[n];for(;me(i);)i=za(r,i,t);const a=me(t)||!Y(t)?t:t.default?t.default:null;i=$(a)?[a]:a,me(i)&&za(r,i,!1),o.__localeChainCache.set(s,r)}return r}function za(e,t,n){let s=!0;for(let o=0;o<t.length&&q(s);o++){const r=t[o];$(r)&&(s=mh(e,t[o],n))}return s}function mh(e,t,n){let s;const o=t.split("-");do{const r=o.join("-");s=ph(e,r,n),o.splice(-1,1)}while(o.length&&s===!0);return s}function ph(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(me(n)||Y(n))&&n[o]&&(s=n[o])}return s}const gh="9.11.0",Us=-1,vn="en-US",Ga="",Ya=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function _h(){return{upper:(e,t)=>t==="text"&&$(e)?e.toUpperCase():t==="vnode"&&oe(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&$(e)?e.toLowerCase():t==="vnode"&&oe(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&$(e)?Ya(e):t==="vnode"&&oe(e)&&"__v_isVNode"in e?Ya(e.children):e}}let Ba;function Xa(e){Ba=e}let Za;function bh(e){Za=e}let Ja;function yh(e){Ja=e}let qa=null;const kh=e=>{qa=e},wh=()=>qa;let Qa=null;const el=e=>{Qa=e},vh=()=>Qa;let tl=0;function Eh(e={}){const t=de(e.onWarn)?e.onWarn:pd,n=$(e.version)?e.version:gh,s=$(e.locale)||de(e.locale)?e.locale:vn,o=de(s)?vn:s,r=me(e.fallbackLocale)||Y(e.fallbackLocale)||$(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,i=Y(e.messages)?e.messages:{[o]:{}},a=Y(e.datetimeFormats)?e.datetimeFormats:{[o]:{}},l=Y(e.numberFormats)?e.numberFormats:{[o]:{}},h=Oe({},e.modifiers||{},_h()),f=e.pluralRules||{},m=de(e.missing)?e.missing:null,d=q(e.missingWarn)||Ft(e.missingWarn)?e.missingWarn:!0,g=q(e.fallbackWarn)||Ft(e.fallbackWarn)?e.fallbackWarn:!0,w=!!e.fallbackFormat,E=!!e.unresolving,I=de(e.postTranslation)?e.postTranslation:null,_=Y(e.processor)?e.processor:null,k=q(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,b=de(e.messageCompiler)?e.messageCompiler:Ba,S=de(e.messageResolver)?e.messageResolver:Za||qd,x=de(e.localeFallbacker)?e.localeFallbacker:Ja||hh,D=oe(e.fallbackContext)?e.fallbackContext:void 0,M=e,N=oe(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,K=oe(M.__numberFormatters)?M.__numberFormatters:new Map,re=oe(M.__meta)?M.__meta:{};tl++;const ie={version:n,cid:tl,locale:s,fallbackLocale:r,messages:i,modifiers:h,pluralRules:f,missing:m,missingWarn:d,fallbackWarn:g,fallbackFormat:w,unresolving:E,postTranslation:I,processor:_,warnHtmlMessage:k,escapeParameter:y,messageCompiler:b,messageResolver:S,localeFallbacker:x,fallbackContext:D,onWarn:t,__meta:re};return ie.datetimeFormats=a,ie.numberFormats=l,ie.__datetimeFormatters=N,ie.__numberFormatters=K,__INTLIFY_PROD_DEVTOOLS__&&ch(ie,n,re),ie}function so(e,t,n,s,o){const{missing:r,onWarn:i}=e;if(r!==null){const a=r(e,n,t,o);return $(a)?a:t}else return t}function zn(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function ro(e){return n=>Ih(n,e)}function Ih(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const s=n,o=s.c||s.cases;return e.plural(o.reduce((r,i)=>[...r,nl(e,i)],[]))}else return nl(e,n)}function nl(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const s=(t.i||t.items).reduce((o,r)=>[...o,oo(e,r)],[]);return e.normalize(s)}}function oo(e,t){const n=t.t||t.type;switch(n){case 3:{const s=t;return s.v||s.value}case 9:{const s=t;return s.v||s.value}case 4:{const s=t;return e.interpolate(e.named(s.k||s.key))}case 5:{const s=t;return e.interpolate(e.list(s.i!=null?s.i:s.index))}case 6:{const s=t,o=s.m||s.modifier;return e.linked(oo(e,s.k||s.key),o?oo(e,o):void 0,e.type)}case 7:{const s=t;return s.v||s.value}case 8:{const s=t;return s.v||s.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const sl=e=>e;let En=Object.create(null);const In=e=>oe(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function rl(e,t={}){let n=!1;const s=t.onError||wd;return t.onError=o=>{n=!0,s(o)},{...Kd(e,t),detectError:n}}const Th=(e,t)=>{if(!$(e))throw ft(tt.NOT_SUPPORT_NON_STRING_MESSAGE);{q(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||sl)(e),o=En[s];if(o)return o;const{code:r,detectError:i}=rl(e,t),a=new Function(`return ${r}`)();return i?a:En[s]=a}};function Lh(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&$(e)){q(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||sl)(e),o=En[s];if(o)return o;const{ast:r,detectError:i}=rl(e,{...t,location:!1,jit:!0}),a=ro(r);return i?a:En[s]=a}else{const n=e.cacheKey;if(n){const s=En[n];return s||(En[n]=ro(e))}else return ro(e)}}const ol=()=>"",Je=e=>de(e);function il(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:o,messageCompiler:r,fallbackLocale:i,messages:a}=e,[l,h]=io(...t),f=q(h.missingWarn)?h.missingWarn:e.missingWarn,m=q(h.fallbackWarn)?h.fallbackWarn:e.fallbackWarn,d=q(h.escapeParameter)?h.escapeParameter:e.escapeParameter,g=!!h.resolvedMessage,w=$(h.default)||q(h.default)?q(h.default)?r?l:()=>l:h.default:n?r?l:()=>l:"",E=n||w!=="",I=to(e,h);d&&Oh(h);let[_,k,y]=g?[l,I,a[I]||{}]:al(e,l,I,i,m,f),b=_,S=l;if(!g&&!($(b)||In(b)||Je(b))&&E&&(b=w,S=b),!g&&(!($(b)||In(b)||Je(b))||!$(k)))return o?Us:l;let x=!1;const D=()=>{x=!0},M=Je(b)?b:ll(e,l,k,b,S,D);if(x)return b;const N=Ch(e,k,y,h),K=ah(N),re=Sh(e,M,K),ie=s?s(re,l):re;if(__INTLIFY_PROD_DEVTOOLS__){const be={timestamp:Date.now(),key:$(l)?l:Je(b)?b.key:"",locale:k||(Je(b)?b.locale:""),format:$(b)?b:Je(b)?b.source:"",message:ie};be.meta=Oe({},e.__meta,wh()||{}),uh(be)}return ie}function Oh(e){me(e.list)?e.list=e.list.map(t=>$(t)?Na(t):t):oe(e.named)&&Object.keys(e.named).forEach(t=>{$(e.named[t])&&(e.named[t]=Na(e.named[t]))})}function al(e,t,n,s,o,r){const{messages:i,onWarn:a,messageResolver:l,localeFallbacker:h}=e,f=h(e,s,n);let m={},d,g=null;const w="translate";for(let E=0;E<f.length&&(d=f[E],m=i[d]||{},(g=l(m,t))===null&&(g=m[t]),!($(g)||In(g)||Je(g)));E++){const I=so(e,t,d,r,w);I!==t&&(g=I)}return[g,d,m]}function ll(e,t,n,s,o,r){const{messageCompiler:i,warnHtmlMessage:a}=e;if(Je(s)){const h=s;return h.locale=h.locale||n,h.key=h.key||t,h}if(i==null){const h=()=>s;return h.locale=n,h.key=t,h}const l=i(s,xh(e,n,o,s,a,r));return l.locale=n,l.key=t,l.source=s,l}function Sh(e,t,n){return t(n)}function io(...e){const[t,n,s]=e,o={};if(!$(t)&&!ke(t)&&!Je(t)&&!In(t))throw ft(tt.INVALID_ARGUMENT);const r=ke(t)?String(t):(Je(t),t);return ke(n)?o.plural=n:$(n)?o.default=n:Y(n)&&!Ms(n)?o.named=n:me(n)&&(o.list=n),ke(s)?o.plural=s:$(s)?o.default=s:Y(s)&&Oe(o,s),[r,o]}function xh(e,t,n,s,o,r){return{locale:t,key:n,warnHtmlMessage:o,onError:i=>{throw r&&r(i),i},onCacheKey:i=>ld(t,n,i)}}function Ch(e,t,n,s){const{modifiers:o,pluralRules:r,messageResolver:i,fallbackLocale:a,fallbackWarn:l,missingWarn:h,fallbackContext:f}=e,d={locale:t,modifiers:o,pluralRules:r,messages:g=>{let w=i(n,g);if(w==null&&f){const[,,E]=al(f,g,t,a,l,h);w=i(E,g)}if($(w)||In(w)){let E=!1;const _=ll(e,g,t,w,g,()=>{E=!0});return E?ol:_}else return Je(w)?w:ol}};return e.processor&&(d.processor=e.processor),s.list&&(d.list=s.list),s.named&&(d.named=s.named),ke(s.plural)&&(d.pluralIndex=s.plural),d}function cl(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:o,onWarn:r,localeFallbacker:i}=e,{__datetimeFormatters:a}=e,[l,h,f,m]=ao(...t),d=q(f.missingWarn)?f.missingWarn:e.missingWarn;q(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,w=to(e,f),E=i(e,o,w);if(!$(l)||l==="")return new Intl.DateTimeFormat(w,m).format(h);let I={},_,k=null;const y="datetime format";for(let x=0;x<E.length&&(_=E[x],I=n[_]||{},k=I[l],!Y(k));x++)so(e,l,_,d,y);if(!Y(k)||!$(_))return s?Us:l;let b=`${_}__${l}`;Ms(m)||(b=`${b}__${JSON.stringify(m)}`);let S=a.get(b);return S||(S=new Intl.DateTimeFormat(_,Oe({},k,m)),a.set(b,S)),g?S.formatToParts(h):S.format(h)}const ul=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ao(...e){const[t,n,s,o]=e,r={};let i={},a;if($(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw ft(tt.INVALID_ISO_DATE_ARGUMENT);const h=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(h);try{a.toISOString()}catch{throw ft(tt.INVALID_ISO_DATE_ARGUMENT)}}else if(ud(t)){if(isNaN(t.getTime()))throw ft(tt.INVALID_DATE_ARGUMENT);a=t}else if(ke(t))a=t;else throw ft(tt.INVALID_ARGUMENT);return $(n)?r.key=n:Y(n)&&Object.keys(n).forEach(l=>{ul.includes(l)?i[l]=n[l]:r[l]=n[l]}),$(s)?r.locale=s:Y(s)&&(i=s),Y(o)&&(i=o),[r.key||"",a,r,i]}function fl(e,t,n){const s=e;for(const o in n){const r=`${t}__${o}`;s.__datetimeFormatters.has(r)&&s.__datetimeFormatters.delete(r)}}function dl(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:o,onWarn:r,localeFallbacker:i}=e,{__numberFormatters:a}=e,[l,h,f,m]=lo(...t),d=q(f.missingWarn)?f.missingWarn:e.missingWarn;q(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,w=to(e,f),E=i(e,o,w);if(!$(l)||l==="")return new Intl.NumberFormat(w,m).format(h);let I={},_,k=null;const y="number format";for(let x=0;x<E.length&&(_=E[x],I=n[_]||{},k=I[l],!Y(k));x++)so(e,l,_,d,y);if(!Y(k)||!$(_))return s?Us:l;let b=`${_}__${l}`;Ms(m)||(b=`${b}__${JSON.stringify(m)}`);let S=a.get(b);return S||(S=new Intl.NumberFormat(_,Oe({},k,m)),a.set(b,S)),g?S.formatToParts(h):S.format(h)}const hl=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function lo(...e){const[t,n,s,o]=e,r={};let i={};if(!ke(t))throw ft(tt.INVALID_ARGUMENT);const a=t;return $(n)?r.key=n:Y(n)&&Object.keys(n).forEach(l=>{hl.includes(l)?i[l]=n[l]:r[l]=n[l]}),$(s)?r.locale=s:Y(s)&&(i=s),Y(o)&&(i=o),[r.key||"",a,r,i]}function ml(e,t,n){const s=e;for(const o in n){const r=`${t}__${o}`;s.__numberFormatters.has(r)&&s.__numberFormatters.delete(r)}}zd();/*!
|
|
42
|
-
* vue-i18n v9.
|
|
41
|
+
*/function eh(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(yt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(yt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(yt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Rt=[];Rt[0]={w:[0],i:[3,0],"[":[4],o:[7]},Rt[1]={w:[1],".":[2],"[":[4],o:[7]},Rt[2]={w:[2],i:[3,0],0:[3,0]},Rt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Rt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Rt[5]={"'":[4,0],o:8,l:[5,0]},Rt[6]={'"':[4,0],o:8,l:[6,0]};const th=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function nh(e){return th.test(e)}function sh(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 rh(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 ih(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:nh(t)?sh(t):"*"+t}function oh(e){const t=[];let n=-1,s=0,i=0,r,o,a,l,f,c,d;const u=[];u[0]=()=>{o===void 0?o=a:o+=a},u[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},u[2]=()=>{u[0](),i++},u[3]=()=>{if(i>0)i--,s=4,u[0]();else{if(i=0,o===void 0||(o=ih(o),o===!1))return!1;u[1]()}};function g(){const w=e[n+1];if(s===5&&w==="'"||s===6&&w==='"')return n++,a="\\"+w,u[0](),!0}for(;s!==null;)if(n++,r=e[n],!(r==="\\"&&g())){if(l=rh(r),d=Rt[s],f=d[l]||d.l||8,f===8||(s=f[0],f[1]!==void 0&&(c=u[f[1]],c&&(a=r,c()===!1))))return;if(s===7)return t}}const Ya=new Map;function ah(e,t){return oe(e)?e[t]:null}function lh(e,t){if(!oe(e))return null;let n=Ya.get(t);if(n||(n=oh(t),n&&Ya.set(t,n)),!n)return null;const s=n.length;let i=e,r=0;for(;r<s;){const o=i[n[r]];if(o===void 0||de(i))return null;i=o,r++}return i}const ch=e=>e,uh=e=>"",fh="text",dh=e=>e.length===0?"":vd(e),hh=wd;function Ga(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function mh(e){const t=ke(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ke(e.named.count)||ke(e.named.n))?ke(e.named.count)?e.named.count:ke(e.named.n)?e.named.n:t:t}function ph(e,t){t.count||(t.count=e),t.n||(t.n=e)}function gh(e={}){const t=e.locale,n=mh(e),s=oe(e.pluralRules)&&W(t)&&de(e.pluralRules[t])?e.pluralRules[t]:Ga,i=oe(e.pluralRules)&&W(t)&&de(e.pluralRules[t])?Ga:void 0,r=S=>S[s(n,S.length,i)],o=e.list||[],a=S=>o[S],l=e.named||{};ke(e.pluralIndex)&&ph(n,l);const f=S=>l[S];function c(S){const N=de(e.messages)?e.messages(S):oe(e.messages)?e.messages[S]:!1;return N||(e.parent?e.parent.message(S):uh)}const d=S=>e.modifiers?e.modifiers[S]:ch,u=B(e.processor)&&de(e.processor.normalize)?e.processor.normalize:dh,g=B(e.processor)&&de(e.processor.interpolate)?e.processor.interpolate:hh,w=B(e.processor)&&W(e.processor.type)?e.processor.type:fh,I={list:a,named:f,plural:r,linked:(S,...N)=>{const[b,y]=N;let O="text",L="";N.length===1?oe(b)?(L=b.modifier||L,O=b.type||O):W(b)&&(L=b||L):N.length===2&&(W(b)&&(L=b||L),W(y)&&(O=y||O));const D=c(S)(I),P=O==="vnode"&&me(D)&&L?D[0]:D;return L?d(L)(P,O):P},message:c,type:w,interpolate:g,normalize:u,values:Se({},o,l)};return I}let zn=null;function _h(e){zn=e}function bh(e,t,n){zn&&zn.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const yh=kh("function:translate");function kh(e){return t=>zn&&zn.emit(e,t)}const Ba=Qr.__EXTEND_POINT__,sn=Fs(Ba),wh={NOT_FOUND_KEY:Ba,FALLBACK_TO_TRANSLATE:sn(),CANNOT_FORMAT_NUMBER:sn(),FALLBACK_TO_NUMBER_FORMAT:sn(),CANNOT_FORMAT_DATE:sn(),FALLBACK_TO_DATE_FORMAT:sn(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:sn(),__EXTEND_POINT__:sn()},Xa=K.__EXTEND_POINT__,rn=Fs(Xa),tt={INVALID_ARGUMENT:Xa,INVALID_DATE_ARGUMENT:rn(),INVALID_ISO_DATE_ARGUMENT:rn(),NOT_SUPPORT_NON_STRING_MESSAGE:rn(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:rn(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:rn(),NOT_SUPPORT_LOCALE_TYPE:rn(),__EXTEND_POINT__:rn()};function ct(e){return yn(e,null,void 0)}function ti(e,t){return t.locale!=null?Za(t.locale):Za(e.locale)}let ni;function Za(e){if(W(e))return e;if(de(e)){if(e.resolvedOnce&&ni!=null)return ni;if(e.constructor.name==="Function"){const t=e();if(kd(t))throw ct(tt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ni=t}else throw ct(tt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ct(tt.NOT_SUPPORT_LOCALE_TYPE)}function vh(e,t,n){return[...new Set([n,...me(t)?t:oe(t)?Object.keys(t):W(t)?[t]:[n]])]}function Ja(e,t,n){const s=W(n)?n:vn,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let r=i.__localeChainCache.get(s);if(!r){r=[];let o=[n];for(;me(o);)o=qa(r,o,t);const a=me(t)||!B(t)?t:t.default?t.default:null;o=W(a)?[a]:a,me(o)&&qa(r,o,!1),i.__localeChainCache.set(s,r)}return r}function qa(e,t,n){let s=!0;for(let i=0;i<t.length&&Q(s);i++){const r=t[i];W(r)&&(s=Eh(e,t[i],n))}return s}function Eh(e,t,n){let s;const i=t.split("-");do{const r=i.join("-");s=Ih(e,r,n),i.splice(-1,1)}while(i.length&&s===!0);return s}function Ih(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(me(n)||B(n))&&n[i]&&(s=n[i])}return s}const Th="9.13.1",Ws=-1,vn="en-US",Qa="",el=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Lh(){return{upper:(e,t)=>t==="text"&&W(e)?e.toUpperCase():t==="vnode"&&oe(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&W(e)?e.toLowerCase():t==="vnode"&&oe(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&W(e)?el(e):t==="vnode"&&oe(e)&&"__v_isVNode"in e?el(e.children):e}}let tl;function nl(e){tl=e}let sl;function Oh(e){sl=e}let rl;function Sh(e){rl=e}let il=null;const xh=e=>{il=e},Ch=()=>il;let ol=null;const al=e=>{ol=e},Nh=()=>ol;let ll=0;function Ph(e={}){const t=de(e.onWarn)?e.onWarn:Ed,n=W(e.version)?e.version:Th,s=W(e.locale)||de(e.locale)?e.locale:vn,i=de(s)?vn:s,r=me(e.fallbackLocale)||B(e.fallbackLocale)||W(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=B(e.messages)?e.messages:{[i]:{}},a=B(e.datetimeFormats)?e.datetimeFormats:{[i]:{}},l=B(e.numberFormats)?e.numberFormats:{[i]:{}},f=Se({},e.modifiers||{},Lh()),c=e.pluralRules||{},d=de(e.missing)?e.missing:null,u=Q(e.missingWarn)||Pt(e.missingWarn)?e.missingWarn:!0,g=Q(e.fallbackWarn)||Pt(e.fallbackWarn)?e.fallbackWarn:!0,w=!!e.fallbackFormat,E=!!e.unresolving,I=de(e.postTranslation)?e.postTranslation:null,S=B(e.processor)?e.processor:null,N=Q(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,y=de(e.messageCompiler)?e.messageCompiler:tl,O=de(e.messageResolver)?e.messageResolver:sl||ah,L=de(e.localeFallbacker)?e.localeFallbacker:rl||vh,D=oe(e.fallbackContext)?e.fallbackContext:void 0,P=e,A=oe(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,V=oe(P.__numberFormatters)?P.__numberFormatters:new Map,ne=oe(P.__meta)?P.__meta:{};ll++;const Y={version:n,cid:ll,locale:s,fallbackLocale:r,messages:o,modifiers:f,pluralRules:c,missing:d,missingWarn:u,fallbackWarn:g,fallbackFormat:w,unresolving:E,postTranslation:I,processor:S,warnHtmlMessage:N,escapeParameter:b,messageCompiler:y,messageResolver:O,localeFallbacker:L,fallbackContext:D,onWarn:t,__meta:ne};return Y.datetimeFormats=a,Y.numberFormats=l,Y.__datetimeFormatters=A,Y.__numberFormatters=V,__INTLIFY_PROD_DEVTOOLS__&&bh(Y,n,ne),Y}function si(e,t,n,s,i){const{missing:r,onWarn:o}=e;if(r!==null){const a=r(e,n,t,i);return W(a)?a:t}else return t}function Yn(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Ah(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Rh(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let s=n+1;s<t.length;s++)if(Ah(e,t[s]))return!0;return!1}function ri(e){return n=>Mh(n,e)}function Mh(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const s=n,i=s.c||s.cases;return e.plural(i.reduce((r,o)=>[...r,cl(e,o)],[]))}else return cl(e,n)}function cl(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const s=(t.i||t.items).reduce((i,r)=>[...i,ii(e,r)],[]);return e.normalize(s)}}function ii(e,t){const n=t.t||t.type;switch(n){case 3:{const s=t;return s.v||s.value}case 9:{const s=t;return s.v||s.value}case 4:{const s=t;return e.interpolate(e.named(s.k||s.key))}case 5:{const s=t;return e.interpolate(e.list(s.i!=null?s.i:s.index))}case 6:{const s=t,i=s.m||s.modifier;return e.linked(ii(e,s.k||s.key),i?ii(e,i):void 0,e.type)}case 7:{const s=t;return s.v||s.value}case 8:{const s=t;return s.v||s.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const ul=e=>e;let En=Object.create(null);const In=e=>oe(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function fl(e,t={}){let n=!1;const s=t.onError||Cd;return t.onError=i=>{n=!0,s(i)},{...Qd(e,t),detectError:n}}const Dh=(e,t)=>{if(!W(e))throw ct(tt.NOT_SUPPORT_NON_STRING_MESSAGE);{Q(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||ul)(e),i=En[s];if(i)return i;const{code:r,detectError:o}=fl(e,t),a=new Function(`return ${r}`)();return o?a:En[s]=a}};function Fh(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&W(e)){Q(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||ul)(e),i=En[s];if(i)return i;const{ast:r,detectError:o}=fl(e,{...t,location:!1,jit:!0}),a=ri(r);return o?a:En[s]=a}else{const n=e.cacheKey;if(n){const s=En[n];return s||(En[n]=ri(e))}else return ri(e)}}const dl=()=>"",Ze=e=>de(e);function hl(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:i,messageCompiler:r,fallbackLocale:o,messages:a}=e,[l,f]=oi(...t),c=Q(f.missingWarn)?f.missingWarn:e.missingWarn,d=Q(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,u=Q(f.escapeParameter)?f.escapeParameter:e.escapeParameter,g=!!f.resolvedMessage,w=W(f.default)||Q(f.default)?Q(f.default)?r?l:()=>l:f.default:n?r?l:()=>l:"",E=n||w!=="",I=ti(e,f);u&&$h(f);let[S,N,b]=g?[l,I,a[I]||{}]:ml(e,l,I,o,d,c),y=S,O=l;if(!g&&!(W(y)||In(y)||Ze(y))&&E&&(y=w,O=y),!g&&(!(W(y)||In(y)||Ze(y))||!W(N)))return i?Ws:l;let L=!1;const D=()=>{L=!0},P=Ze(y)?y:pl(e,l,N,y,O,D);if(L)return y;const A=Wh(e,N,b,f),V=gh(A),ne=Uh(e,P,V),Y=s?s(ne,l):ne;if(__INTLIFY_PROD_DEVTOOLS__){const pe={timestamp:Date.now(),key:W(l)?l:Ze(y)?y.key:"",locale:N||(Ze(y)?y.locale:""),format:W(y)?y:Ze(y)?y.source:"",message:Y};pe.meta=Se({},e.__meta,Ch()||{}),yh(pe)}return Y}function $h(e){me(e.list)?e.list=e.list.map(t=>W(t)?Da(t):t):oe(e.named)&&Object.keys(e.named).forEach(t=>{W(e.named[t])&&(e.named[t]=Da(e.named[t]))})}function ml(e,t,n,s,i,r){const{messages:o,onWarn:a,messageResolver:l,localeFallbacker:f}=e,c=f(e,s,n);let d={},u,g=null;const w="translate";for(let E=0;E<c.length&&(u=c[E],d=o[u]||{},(g=l(d,t))===null&&(g=d[t]),!(W(g)||In(g)||Ze(g)));E++)if(!Rh(u,c)){const I=si(e,t,u,r,w);I!==t&&(g=I)}return[g,u,d]}function pl(e,t,n,s,i,r){const{messageCompiler:o,warnHtmlMessage:a}=e;if(Ze(s)){const f=s;return f.locale=f.locale||n,f.key=f.key||t,f}if(o==null){const f=()=>s;return f.locale=n,f.key=t,f}const l=o(s,jh(e,n,i,s,a,r));return l.locale=n,l.key=t,l.source=s,l}function Uh(e,t,n){return t(n)}function oi(...e){const[t,n,s]=e,i={};if(!W(t)&&!ke(t)&&!Ze(t)&&!In(t))throw ct(tt.INVALID_ARGUMENT);const r=ke(t)?String(t):(Ze(t),t);return ke(n)?i.plural=n:W(n)?i.default=n:B(n)&&!Ms(n)?i.named=n:me(n)&&(i.list=n),ke(s)?i.plural=s:W(s)?i.default=s:B(s)&&Se(i,s),[r,i]}function jh(e,t,n,s,i,r){return{locale:t,key:n,warnHtmlMessage:i,onError:o=>{throw r&&r(o),o},onCacheKey:o=>gd(t,n,o)}}function Wh(e,t,n,s){const{modifiers:i,pluralRules:r,messageResolver:o,fallbackLocale:a,fallbackWarn:l,missingWarn:f,fallbackContext:c}=e,u={locale:t,modifiers:i,pluralRules:r,messages:g=>{let w=o(n,g);if(w==null&&c){const[,,E]=ml(c,g,t,a,l,f);w=o(E,g)}if(W(w)||In(w)){let E=!1;const S=pl(e,g,t,w,g,()=>{E=!0});return E?dl:S}else return Ze(w)?w:dl}};return e.processor&&(u.processor=e.processor),s.list&&(u.list=s.list),s.named&&(u.named=s.named),ke(s.plural)&&(u.pluralIndex=s.plural),u}function gl(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:i,onWarn:r,localeFallbacker:o}=e,{__datetimeFormatters:a}=e,[l,f,c,d]=ai(...t),u=Q(c.missingWarn)?c.missingWarn:e.missingWarn;Q(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const g=!!c.part,w=ti(e,c),E=o(e,i,w);if(!W(l)||l==="")return new Intl.DateTimeFormat(w,d).format(f);let I={},S,N=null;const b="datetime format";for(let L=0;L<E.length&&(S=E[L],I=n[S]||{},N=I[l],!B(N));L++)si(e,l,S,u,b);if(!B(N)||!W(S))return s?Ws:l;let y=`${S}__${l}`;Ms(d)||(y=`${y}__${JSON.stringify(d)}`);let O=a.get(y);return O||(O=new Intl.DateTimeFormat(S,Se({},N,d)),a.set(y,O)),g?O.formatToParts(f):O.format(f)}const _l=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ai(...e){const[t,n,s,i]=e,r={};let o={},a;if(W(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw ct(tt.INVALID_ISO_DATE_ARGUMENT);const f=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(f);try{a.toISOString()}catch{throw ct(tt.INVALID_ISO_DATE_ARGUMENT)}}else if(bd(t)){if(isNaN(t.getTime()))throw ct(tt.INVALID_DATE_ARGUMENT);a=t}else if(ke(t))a=t;else throw ct(tt.INVALID_ARGUMENT);return W(n)?r.key=n:B(n)&&Object.keys(n).forEach(l=>{_l.includes(l)?o[l]=n[l]:r[l]=n[l]}),W(s)?r.locale=s:B(s)&&(o=s),B(i)&&(o=i),[r.key||"",a,r,o]}function bl(e,t,n){const s=e;for(const i in n){const r=`${t}__${i}`;s.__datetimeFormatters.has(r)&&s.__datetimeFormatters.delete(r)}}function yl(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:i,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:a}=e,[l,f,c,d]=li(...t),u=Q(c.missingWarn)?c.missingWarn:e.missingWarn;Q(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const g=!!c.part,w=ti(e,c),E=o(e,i,w);if(!W(l)||l==="")return new Intl.NumberFormat(w,d).format(f);let I={},S,N=null;const b="number format";for(let L=0;L<E.length&&(S=E[L],I=n[S]||{},N=I[l],!B(N));L++)si(e,l,S,u,b);if(!B(N)||!W(S))return s?Ws:l;let y=`${S}__${l}`;Ms(d)||(y=`${y}__${JSON.stringify(d)}`);let O=a.get(y);return O||(O=new Intl.NumberFormat(S,Se({},N,d)),a.set(y,O)),g?O.formatToParts(f):O.format(f)}const kl=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function li(...e){const[t,n,s,i]=e,r={};let o={};if(!ke(t))throw ct(tt.INVALID_ARGUMENT);const a=t;return W(n)?r.key=n:B(n)&&Object.keys(n).forEach(l=>{kl.includes(l)?o[l]=n[l]:r[l]=n[l]}),W(s)?r.locale=s:B(s)&&(o=s),B(i)&&(o=i),[r.key||"",a,r,o]}function wl(e,t,n){const s=e;for(const i in n){const r=`${t}__${i}`;s.__numberFormatters.has(r)&&s.__numberFormatters.delete(r)}}eh();/*!
|
|
42
|
+
* vue-i18n v9.13.1
|
|
43
43
|
* (c) 2024 kazuya kawaguchi
|
|
44
44
|
* Released under the MIT License.
|
|
45
|
-
*/const Nh="9.11.0";function Ph(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(kt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(kt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(kt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(kt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(kt().__INTLIFY_PROD_DEVTOOLS__=!1)}const pl=dh.__EXTEND_POINT__,vt=qr(pl);vt(),vt(),vt(),vt(),vt(),vt(),vt(),vt(),vt();const gl=tt.__EXTEND_POINT__,He=qr(gl),we={UNEXPECTED_RETURN_TYPE:gl,INVALID_ARGUMENT:He(),MUST_BE_CALL_SETUP_TOP:He(),NOT_INSTALLED:He(),NOT_AVAILABLE_IN_LEGACY_MODE:He(),REQUIRED_VALUE:He(),INVALID_VALUE:He(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:He(),NOT_INSTALLED_WITH_PROVIDE:He(),UNEXPECTED_ERROR:He(),NOT_COMPATIBLE_LEGACY_VUE_I18N:He(),BRIDGE_SUPPORT_VUE_2_ONLY:He(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:He(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:He(),__EXTEND_POINT__:He()};function Te(e,...t){return yn(e,null,void 0)}const co=Mt("__translateVNode"),uo=Mt("__datetimeParts"),fo=Mt("__numberParts"),_l=Mt("__setPluralRules"),bl=Mt("__injectWithOption"),ho=Mt("__dispose");function Gn(e){if(!oe(e))return e;for(const t in e)if(Fs(e,t))if(!t.includes("."))oe(e[t])&&Gn(e[t]);else{const n=t.split("."),s=n.length-1;let o=e,r=!1;for(let i=0;i<s;i++){if(n[i]in o||(o[n[i]]={}),!oe(o[n[i]])){r=!0;break}o=o[n[i]]}r||(o[n[s]]=e[t],delete e[t]),oe(o[n[s]])&&Gn(o[n[s]])}return e}function js(e,t){const{messages:n,__i18n:s,messageResolver:o,flatJson:r}=t,i=Y(n)?n:me(s)?{}:{[e]:{}};if(me(s)&&s.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:h}=a;l?(i[l]=i[l]||{},$s(h,i[l])):$s(h,i)}else $(a)&&$s(JSON.parse(a),i)}),o==null&&r)for(const a in i)Fs(i,a)&&Gn(i[a]);return i}function yl(e){return e.type}function kl(e,t,n){let s=oe(t.messages)?t.messages:{};"__i18nGlobal"in n&&(s=js(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const o=Object.keys(s);o.length&&o.forEach(r=>{e.mergeLocaleMessage(r,s[r])});{if(oe(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(oe(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function wl(e){return Ne(Rn,null,e,0)}const vl="__INTLIFY_META__",El=()=>[],Ah=()=>!1;let Il=0;function Tl(e){return(t,n,s,o)=>e(n,s,$n()||void 0,o)}const Rh=()=>{const e=$n();let t=null;return e&&(t=yl(e)[vl])?{[vl]:t}:null};function mo(e={},t){const{__root:n,__injectWithOption:s}=e,o=n===void 0,r=e.flatJson,i=Rs?te:oi,a=!!e.translateExistCompatible;let l=q(e.inheritLocale)?e.inheritLocale:!0;const h=i(n&&l?n.locale.value:$(e.locale)?e.locale:vn),f=i(n&&l?n.fallbackLocale.value:$(e.fallbackLocale)||me(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:h.value),m=i(js(h.value,e)),d=i(Y(e.datetimeFormats)?e.datetimeFormats:{[h.value]:{}}),g=i(Y(e.numberFormats)?e.numberFormats:{[h.value]:{}});let w=n?n.missingWarn:q(e.missingWarn)||Ft(e.missingWarn)?e.missingWarn:!0,E=n?n.fallbackWarn:q(e.fallbackWarn)||Ft(e.fallbackWarn)?e.fallbackWarn:!0,I=n?n.fallbackRoot:q(e.fallbackRoot)?e.fallbackRoot:!0,_=!!e.fallbackFormat,k=de(e.missing)?e.missing:null,y=de(e.missing)?Tl(e.missing):null,b=de(e.postTranslation)?e.postTranslation:null,S=n?n.warnHtmlMessage:q(e.warnHtmlMessage)?e.warnHtmlMessage:!0,x=!!e.escapeParameter;const D=n?n.modifiers:Y(e.modifiers)?e.modifiers:{};let M=e.pluralRules||n&&n.pluralRules,N;N=(()=>{o&&el(null);const T={version:Nh,locale:h.value,fallbackLocale:f.value,messages:m.value,modifiers:D,pluralRules:M,missing:y===null?void 0:y,missingWarn:w,fallbackWarn:E,fallbackFormat:_,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:S,escapeParameter:x,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};T.datetimeFormats=d.value,T.numberFormats=g.value,T.__datetimeFormatters=Y(N)?N.__datetimeFormatters:void 0,T.__numberFormatters=Y(N)?N.__numberFormatters:void 0;const O=Eh(T);return o&&el(O),O})(),zn(N,h.value,f.value);function re(){return[h.value,f.value,m.value,d.value,g.value]}const ie=Fe({get:()=>h.value,set:T=>{h.value=T,N.locale=h.value}}),be=Fe({get:()=>f.value,set:T=>{f.value=T,N.fallbackLocale=f.value,zn(N,h.value,T)}}),qe=Fe(()=>m.value),Ve=Fe(()=>d.value),Z=Fe(()=>g.value);function ae(){return de(b)?b:null}function se(T){b=T,N.postTranslation=T}function Ke(){return k}function mt(T){T!==null&&(y=Tl(T)),k=T,N.missing=y}const ve=(T,O,W,G,fe,Re)=>{re();let Be;try{__INTLIFY_PROD_DEVTOOLS__,o||(N.fallbackContext=n?vh():void 0),Be=T(N)}finally{__INTLIFY_PROD_DEVTOOLS__,o||(N.fallbackContext=void 0)}if(W!=="translate exists"&&ke(Be)&&Be===Us||W==="translate exists"&&!Be){const[qs,Ln]=O();return n&&I?G(n):fe(qs)}else{if(Re(Be))return Be;throw Te(we.UNEXPECTED_RETURN_TYPE)}};function Se(...T){return ve(O=>Reflect.apply(il,null,[O,...T]),()=>io(...T),"translate",O=>Reflect.apply(O.t,O,[...T]),O=>O,O=>$(O))}function Ut(...T){const[O,W,G]=T;if(G&&!oe(G))throw Te(we.INVALID_ARGUMENT);return Se(O,W,Oe({resolvedMessage:!0},G||{}))}function jt(...T){return ve(O=>Reflect.apply(cl,null,[O,...T]),()=>ao(...T),"datetime format",O=>Reflect.apply(O.d,O,[...T]),()=>Ga,O=>$(O))}function an(...T){return ve(O=>Reflect.apply(dl,null,[O,...T]),()=>lo(...T),"number format",O=>Reflect.apply(O.n,O,[...T]),()=>Ga,O=>$(O))}function $e(T){return T.map(O=>$(O)||ke(O)||q(O)?wl(String(O)):O)}const nt={normalize:$e,interpolate:T=>T,type:"vnode"};function pt(...T){return ve(O=>{let W;const G=O;try{G.processor=nt,W=Reflect.apply(il,null,[G,...T])}finally{G.processor=null}return W},()=>io(...T),"translate",O=>O[co](...T),O=>[wl(O)],O=>me(O))}function Ue(...T){return ve(O=>Reflect.apply(dl,null,[O,...T]),()=>lo(...T),"number format",O=>O[fo](...T),El,O=>$(O)||me(O))}function st(...T){return ve(O=>Reflect.apply(cl,null,[O,...T]),()=>ao(...T),"datetime format",O=>O[uo](...T),El,O=>$(O)||me(O))}function It(T){M=T,N.pluralRules=M}function u(T,O){return ve(()=>{if(!T)return!1;const W=$(O)?O:h.value,G=v(W),fe=N.messageResolver(G,T);return a?fe!=null:In(fe)||Je(fe)||$(fe)},()=>[T],"translate exists",W=>Reflect.apply(W.te,W,[T,O]),Ah,W=>q(W))}function c(T){let O=null;const W=Ka(N,f.value,h.value);for(let G=0;G<W.length;G++){const fe=m.value[W[G]]||{},Re=N.messageResolver(fe,T);if(Re!=null){O=Re;break}}return O}function p(T){const O=c(T);return O??(n?n.tm(T)||{}:{})}function v(T){return m.value[T]||{}}function L(T,O){if(r){const W={[T]:O};for(const G in W)Fs(W,G)&&Gn(W[G]);O=W[T]}m.value[T]=O,N.messages=m.value}function C(T,O){m.value[T]=m.value[T]||{};const W={[T]:O};if(r)for(const G in W)Fs(W,G)&&Gn(W[G]);O=W[T],$s(O,m.value[T]),N.messages=m.value}function R(T){return d.value[T]||{}}function A(T,O){d.value[T]=O,N.datetimeFormats=d.value,fl(N,T,O)}function F(T,O){d.value[T]=Oe(d.value[T]||{},O),N.datetimeFormats=d.value,fl(N,T,O)}function P(T){return g.value[T]||{}}function j(T,O){g.value[T]=O,N.numberFormats=g.value,ml(N,T,O)}function H(T,O){g.value[T]=Oe(g.value[T]||{},O),N.numberFormats=g.value,ml(N,T,O)}Il++,n&&Rs&&(zt(n.locale,T=>{l&&(h.value=T,N.locale=T,zn(N,h.value,f.value))}),zt(n.fallbackLocale,T=>{l&&(f.value=T,N.fallbackLocale=T,zn(N,h.value,f.value))}));const U={id:Il,locale:ie,fallbackLocale:be,get inheritLocale(){return l},set inheritLocale(T){l=T,T&&n&&(h.value=n.locale.value,f.value=n.fallbackLocale.value,zn(N,h.value,f.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:qe,get modifiers(){return D},get pluralRules(){return M||{}},get isGlobal(){return o},get missingWarn(){return w},set missingWarn(T){w=T,N.missingWarn=w},get fallbackWarn(){return E},set fallbackWarn(T){E=T,N.fallbackWarn=E},get fallbackRoot(){return I},set fallbackRoot(T){I=T},get fallbackFormat(){return _},set fallbackFormat(T){_=T,N.fallbackFormat=_},get warnHtmlMessage(){return S},set warnHtmlMessage(T){S=T,N.warnHtmlMessage=T},get escapeParameter(){return x},set escapeParameter(T){x=T,N.escapeParameter=T},t:Se,getLocaleMessage:v,setLocaleMessage:L,mergeLocaleMessage:C,getPostTranslationHandler:ae,setPostTranslationHandler:se,getMissingHandler:Ke,setMissingHandler:mt,[_l]:It};return U.datetimeFormats=Ve,U.numberFormats=Z,U.rt=Ut,U.te=u,U.tm=p,U.d=jt,U.n=an,U.getDateTimeFormat=R,U.setDateTimeFormat=A,U.mergeDateTimeFormat=F,U.getNumberFormat=P,U.setNumberFormat=j,U.mergeNumberFormat=H,U[bl]=s,U[co]=pt,U[uo]=st,U[fo]=Ue,U}function Mh(e){const t=$(e.locale)?e.locale:vn,n=$(e.fallbackLocale)||me(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=de(e.missing)?e.missing:void 0,o=q(e.silentTranslationWarn)||Ft(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=q(e.silentFallbackWarn)||Ft(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=q(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=Y(e.modifiers)?e.modifiers:{},h=e.pluralizationRules,f=de(e.postTranslation)?e.postTranslation:void 0,m=$(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,g=q(e.sync)?e.sync:!0;let w=e.messages;if(Y(e.sharedMessages)){const x=e.sharedMessages;w=Object.keys(x).reduce((M,N)=>{const K=M[N]||(M[N]={});return Oe(K,x[N]),M},w||{})}const{__i18n:E,__root:I,__injectWithOption:_}=e,k=e.datetimeFormats,y=e.numberFormats,b=e.flatJson,S=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:w,flatJson:b,datetimeFormats:k,numberFormats:y,missing:s,missingWarn:o,fallbackWarn:r,fallbackRoot:i,fallbackFormat:a,modifiers:l,pluralRules:h,postTranslation:f,warnHtmlMessage:m,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:g,translateExistCompatible:S,__i18n:E,__root:I,__injectWithOption:_}}function po(e={},t){{const n=mo(Mh(e)),{__extender:s}=e,o={id:n.id,get locale(){return n.locale.value},set locale(r){n.locale.value=r},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(r){n.fallbackLocale.value=r},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(r){},get missing(){return n.getMissingHandler()},set missing(r){n.setMissingHandler(r)},get silentTranslationWarn(){return q(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(r){n.missingWarn=q(r)?!r:r},get silentFallbackWarn(){return q(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(r){n.fallbackWarn=q(r)?!r:r},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(r){n.fallbackFormat=r},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(r){n.setPostTranslationHandler(r)},get sync(){return n.inheritLocale},set sync(r){n.inheritLocale=r},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){n.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(r){n.escapeParameter=r},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(r){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...r){const[i,a,l]=r,h={};let f=null,m=null;if(!$(i))throw Te(we.INVALID_ARGUMENT);const d=i;return $(a)?h.locale=a:me(a)?f=a:Y(a)&&(m=a),me(l)?f=l:Y(l)&&(m=l),Reflect.apply(n.t,n,[d,f||m||{},h])},rt(...r){return Reflect.apply(n.rt,n,[...r])},tc(...r){const[i,a,l]=r,h={plural:1};let f=null,m=null;if(!$(i))throw Te(we.INVALID_ARGUMENT);const d=i;return $(a)?h.locale=a:ke(a)?h.plural=a:me(a)?f=a:Y(a)&&(m=a),$(l)?h.locale=l:me(l)?f=l:Y(l)&&(m=l),Reflect.apply(n.t,n,[d,f||m||{},h])},te(r,i){return n.te(r,i)},tm(r){return n.tm(r)},getLocaleMessage(r){return n.getLocaleMessage(r)},setLocaleMessage(r,i){n.setLocaleMessage(r,i)},mergeLocaleMessage(r,i){n.mergeLocaleMessage(r,i)},d(...r){return Reflect.apply(n.d,n,[...r])},getDateTimeFormat(r){return n.getDateTimeFormat(r)},setDateTimeFormat(r,i){n.setDateTimeFormat(r,i)},mergeDateTimeFormat(r,i){n.mergeDateTimeFormat(r,i)},n(...r){return Reflect.apply(n.n,n,[...r])},getNumberFormat(r){return n.getNumberFormat(r)},setNumberFormat(r,i){n.setNumberFormat(r,i)},mergeNumberFormat(r,i){n.mergeNumberFormat(r,i)},getChoiceIndex(r,i){return-1}};return o.__extender=s,o}}const go={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Fh({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,o)=>[...s,...o.type===Ee?o.children:[o]],[]):t.reduce((n,s)=>{const o=e[s];return o&&(n[s]=o()),n},{})}function Ll(e){return Ee}const Ol=Bt({name:"i18n-t",props:Oe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ke(e)||!isNaN(e)}},go),setup(e,t){const{slots:n,attrs:s}=t,o=e.i18n||sn({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(m=>m!=="_"),i={};e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=$(e.plural)?+e.plural:e.plural);const a=Fh(t,r),l=o[co](e.keypath,a,i),h=Oe({},s),f=$(e.tag)||oe(e.tag)?e.tag:Ll();return ea(f,h,l)}}});function Dh(e){return me(e)&&!$(e[0])}function Sl(e,t,n,s){const{slots:o,attrs:r}=t;return()=>{const i={part:!0};let a={};e.locale&&(i.locale=e.locale),$(e.format)?i.key=e.format:oe(e.format)&&($(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((d,g)=>n.includes(g)?Oe({},d,{[g]:e.format[g]}):d,{}));const l=s(e.value,i,a);let h=[i.key];me(l)?h=l.map((d,g)=>{const w=o[d.type],E=w?w({[d.type]:d.value,index:g,parts:l}):[d.value];return Dh(E)&&(E[0].key=`${d.type}-${g}`),E}):$(l)&&(h=[l]);const f=Oe({},r),m=$(e.tag)||oe(e.tag)?e.tag:Ll();return ea(m,f,h)}}const xl=Bt({name:"i18n-n",props:Oe({value:{type:Number,required:!0},format:{type:[String,Object]}},go),setup(e,t){const n=e.i18n||sn({useScope:e.scope,__useComponent:!0});return Sl(e,t,hl,(...s)=>n[fo](...s))}}),Cl=Bt({name:"i18n-d",props:Oe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},go),setup(e,t){const n=e.i18n||sn({useScope:e.scope,__useComponent:!0});return Sl(e,t,ul,(...s)=>n[uo](...s))}});function $h(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function Uh(e){const t=i=>{const{instance:a,modifiers:l,value:h}=i;if(!a||!a.$)throw Te(we.UNEXPECTED_ERROR);const f=$h(e,a.$),m=Nl(h);return[Reflect.apply(f.t,f,[...Pl(m)]),f]};return{created:(i,a)=>{const[l,h]=t(a);Rs&&e.global===h&&(i.__i18nWatcher=zt(h.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=h,i.textContent=l},unmounted:i=>{Rs&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const l=i.__composer,h=Nl(a);i.textContent=Reflect.apply(l.t,l,[...Pl(h)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function Nl(e){if($(e))return{path:e};if(Y(e)){if(!("path"in e))throw Te(we.REQUIRED_VALUE,"path");return e}else throw Te(we.INVALID_VALUE)}function Pl(e){const{path:t,locale:n,args:s,choice:o,plural:r}=e,i={},a=s||{};return $(n)&&(i.locale=n),ke(o)&&(i.plural=o),ke(r)&&(i.plural=r),[t,a,i]}function jh(e,t,...n){const s=Y(n[0])?n[0]:{},o=!!s.useI18nComponentName;(q(s.globalInstall)?s.globalInstall:!0)&&([o?"i18n":Ol.name,"I18nT"].forEach(i=>e.component(i,Ol)),[xl.name,"I18nN"].forEach(i=>e.component(i,xl)),[Cl.name,"I18nD"].forEach(i=>e.component(i,Cl))),e.directive("t",Uh(t))}function Wh(e,t,n){return{beforeCreate(){const s=$n();if(!s)throw Te(we.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const r=o.i18n;if(o.__i18n&&(r.__i18n=o.__i18n),r.__root=t,this===this.$root)this.$i18n=Al(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=po(r);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=Al(e,o);else{this.$i18n=po({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&kl(t,o,o),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,i)=>this.$i18n.te(r,i),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=$n();if(!s)throw Te(we.UNEXPECTED_ERROR);const o=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),n.__deleteInstance(s),delete this.$i18n}}}function Al(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[_l](t.pluralizationRules||e.pluralizationRules);const n=js(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const Hh=Mt("global-vue-i18n");function Vh(e={},t){const n=__VUE_I18N_LEGACY_API__&&q(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,s=q(e.globalInjection)?e.globalInjection:!0,o=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,r=new Map,[i,a]=Kh(e,n),l=Mt("");function h(d){return r.get(d)||null}function f(d,g){r.set(d,g)}function m(d){r.delete(d)}{const d={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return o},async install(g,...w){if(g.__VUE_I18N_SYMBOL__=l,g.provide(g.__VUE_I18N_SYMBOL__,d),Y(w[0])){const _=w[0];d.__composerExtend=_.__composerExtend,d.__vueI18nExtend=_.__vueI18nExtend}let E=null;!n&&s&&(E=Qh(g,d.global)),__VUE_I18N_FULL_INSTALL__&&jh(g,d,...w),__VUE_I18N_LEGACY_API__&&n&&g.mixin(Wh(a,a.__composer,d));const I=g.unmount;g.unmount=()=>{E&&E(),d.dispose(),I()}},get global(){return a},dispose(){i.stop()},__instances:r,__getInstance:h,__setInstance:f,__deleteInstance:m};return d}}function sn(e={}){const t=$n();if(t==null)throw Te(we.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Te(we.NOT_INSTALLED);const n=zh(t),s=Yh(n),o=yl(t),r=Gh(e,o);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Te(we.NOT_AVAILABLE_IN_LEGACY_MODE);return Jh(t,r,s,e)}if(r==="global")return kl(s,e,o),s;if(r==="parent"){let l=Bh(n,t,e.__useComponent);return l==null&&(l=s),l}const i=n;let a=i.__getInstance(t);if(a==null){const l=Oe({},e);"__i18n"in o&&(l.__i18n=o.__i18n),s&&(l.__root=s),a=mo(l),i.__composerExtend&&(a[ho]=i.__composerExtend(a)),Zh(i,t,a),i.__setInstance(t,a)}return a}function Kh(e,t,n){const s=ir();{const o=__VUE_I18N_LEGACY_API__&&t?s.run(()=>po(e)):s.run(()=>mo(e));if(o==null)throw Te(we.UNEXPECTED_ERROR);return[s,o]}}function zh(e){{const t=Ge(e.isCE?Hh:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Te(e.isCE?we.NOT_INSTALLED_WITH_PROVIDE:we.UNEXPECTED_ERROR);return t}}function Gh(e,t){return Ms(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Yh(e){return e.mode==="composition"?e.global:e.global.__composer}function Bh(e,t,n=!1){let s=null;const o=t.root;let r=Xh(t,n);for(;r!=null;){const i=e;if(e.mode==="composition")s=i.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const a=i.__getInstance(r);a!=null&&(s=a.__composer,n&&s&&!s[bl]&&(s=null))}if(s!=null||o===r)break;r=r.parent}return s}function Xh(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Zh(e,t,n){vs(()=>{},t),wr(()=>{const s=n;e.__deleteInstance(t);const o=s[ho];o&&(o(),delete s[ho])},t)}function Jh(e,t,n,s={}){const o=t==="local",r=oi(null);if(o&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Te(we.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=q(s.inheritLocale)?s.inheritLocale:!$(s.locale),a=te(!o||i?n.locale.value:$(s.locale)?s.locale:vn),l=te(!o||i?n.fallbackLocale.value:$(s.fallbackLocale)||me(s.fallbackLocale)||Y(s.fallbackLocale)||s.fallbackLocale===!1?s.fallbackLocale:a.value),h=te(js(a.value,s)),f=te(Y(s.datetimeFormats)?s.datetimeFormats:{[a.value]:{}}),m=te(Y(s.numberFormats)?s.numberFormats:{[a.value]:{}}),d=o?n.missingWarn:q(s.missingWarn)||Ft(s.missingWarn)?s.missingWarn:!0,g=o?n.fallbackWarn:q(s.fallbackWarn)||Ft(s.fallbackWarn)?s.fallbackWarn:!0,w=o?n.fallbackRoot:q(s.fallbackRoot)?s.fallbackRoot:!0,E=!!s.fallbackFormat,I=de(s.missing)?s.missing:null,_=de(s.postTranslation)?s.postTranslation:null,k=o?n.warnHtmlMessage:q(s.warnHtmlMessage)?s.warnHtmlMessage:!0,y=!!s.escapeParameter,b=o?n.modifiers:Y(s.modifiers)?s.modifiers:{},S=s.pluralRules||o&&n.pluralRules;function x(){return[a.value,l.value,h.value,f.value,m.value]}const D=Fe({get:()=>r.value?r.value.locale.value:a.value,set:c=>{r.value&&(r.value.locale.value=c),a.value=c}}),M=Fe({get:()=>r.value?r.value.fallbackLocale.value:l.value,set:c=>{r.value&&(r.value.fallbackLocale.value=c),l.value=c}}),N=Fe(()=>r.value?r.value.messages.value:h.value),K=Fe(()=>f.value),re=Fe(()=>m.value);function ie(){return r.value?r.value.getPostTranslationHandler():_}function be(c){r.value&&r.value.setPostTranslationHandler(c)}function qe(){return r.value?r.value.getMissingHandler():I}function Ve(c){r.value&&r.value.setMissingHandler(c)}function Z(c){return x(),c()}function ae(...c){return r.value?Z(()=>Reflect.apply(r.value.t,null,[...c])):Z(()=>"")}function se(...c){return r.value?Reflect.apply(r.value.rt,null,[...c]):""}function Ke(...c){return r.value?Z(()=>Reflect.apply(r.value.d,null,[...c])):Z(()=>"")}function mt(...c){return r.value?Z(()=>Reflect.apply(r.value.n,null,[...c])):Z(()=>"")}function ve(c){return r.value?r.value.tm(c):{}}function Se(c,p){return r.value?r.value.te(c,p):!1}function Ut(c){return r.value?r.value.getLocaleMessage(c):{}}function jt(c,p){r.value&&(r.value.setLocaleMessage(c,p),h.value[c]=p)}function an(c,p){r.value&&r.value.mergeLocaleMessage(c,p)}function $e(c){return r.value?r.value.getDateTimeFormat(c):{}}function Et(c,p){r.value&&(r.value.setDateTimeFormat(c,p),f.value[c]=p)}function nt(c,p){r.value&&r.value.mergeDateTimeFormat(c,p)}function pt(c){return r.value?r.value.getNumberFormat(c):{}}function Ue(c,p){r.value&&(r.value.setNumberFormat(c,p),m.value[c]=p)}function st(c,p){r.value&&r.value.mergeNumberFormat(c,p)}const It={get id(){return r.value?r.value.id:-1},locale:D,fallbackLocale:M,messages:N,datetimeFormats:K,numberFormats:re,get inheritLocale(){return r.value?r.value.inheritLocale:i},set inheritLocale(c){r.value&&(r.value.inheritLocale=c)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(h.value)},get modifiers(){return r.value?r.value.modifiers:b},get pluralRules(){return r.value?r.value.pluralRules:S},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:d},set missingWarn(c){r.value&&(r.value.missingWarn=c)},get fallbackWarn(){return r.value?r.value.fallbackWarn:g},set fallbackWarn(c){r.value&&(r.value.missingWarn=c)},get fallbackRoot(){return r.value?r.value.fallbackRoot:w},set fallbackRoot(c){r.value&&(r.value.fallbackRoot=c)},get fallbackFormat(){return r.value?r.value.fallbackFormat:E},set fallbackFormat(c){r.value&&(r.value.fallbackFormat=c)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:k},set warnHtmlMessage(c){r.value&&(r.value.warnHtmlMessage=c)},get escapeParameter(){return r.value?r.value.escapeParameter:y},set escapeParameter(c){r.value&&(r.value.escapeParameter=c)},t:ae,getPostTranslationHandler:ie,setPostTranslationHandler:be,getMissingHandler:qe,setMissingHandler:Ve,rt:se,d:Ke,n:mt,tm:ve,te:Se,getLocaleMessage:Ut,setLocaleMessage:jt,mergeLocaleMessage:an,getDateTimeFormat:$e,setDateTimeFormat:Et,mergeDateTimeFormat:nt,getNumberFormat:pt,setNumberFormat:Ue,mergeNumberFormat:st};function u(c){c.locale.value=a.value,c.fallbackLocale.value=l.value,Object.keys(h.value).forEach(p=>{c.mergeLocaleMessage(p,h.value[p])}),Object.keys(f.value).forEach(p=>{c.mergeDateTimeFormat(p,f.value[p])}),Object.keys(m.value).forEach(p=>{c.mergeNumberFormat(p,m.value[p])}),c.escapeParameter=y,c.fallbackFormat=E,c.fallbackRoot=w,c.fallbackWarn=g,c.missingWarn=d,c.warnHtmlMessage=k}return Ii(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Te(we.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const c=r.value=e.proxy.$i18n.__composer;t==="global"?(a.value=c.locale.value,l.value=c.fallbackLocale.value,h.value=c.messages.value,f.value=c.datetimeFormats.value,m.value=c.numberFormats.value):o&&u(c)}),It}const qh=["locale","fallbackLocale","availableLocales"],Rl=["t","rt","d","n","tm","te"];function Qh(e,t){const n=Object.create(null);return qh.forEach(o=>{const r=Object.getOwnPropertyDescriptor(t,o);if(!r)throw Te(we.UNEXPECTED_ERROR);const i=_e(r.value)?{get(){return r.value.value},set(a){r.value.value=a}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,o,i)}),e.config.globalProperties.$i18n=n,Rl.forEach(o=>{const r=Object.getOwnPropertyDescriptor(t,o);if(!r||!r.value)throw Te(we.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,r)}),()=>{delete e.config.globalProperties.$i18n,Rl.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}if(Ph(),__INTLIFY_JIT_COMPILATION__?Xa(Lh):Xa(Th),bh(Qd),yh(Ka),__INTLIFY_PROD_DEVTOOLS__){const e=kt();e.__INTLIFY__=!0,lh(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const em={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",load_more:"Load More",login:"LOGIN",logout:"Logout",placeholder:"Write a comment...",post_comment:"POST COMMENT",post_reply:"POST REPLY",reply:"Reply",reply_to:"reply to",ui_texts:["Be the first to start the discussion!","Join the Conversation (#)","Loading...","Load Comments"],your_comment:"Your comment",edit:"Edit",save_editing:"Save"},es:{admin:"Administrador",anonymous:"Anónimo",approve_hint:"los comentarios son normalmente aprobados dentro de 24 horas",discussion:"Discusión",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",ui_texts:["¡Sé el primero en iniciar la discusión!","Únete a la Conversación (#)","Cargando...","Cargar Comentarios"],your_comment:"Tu comentario"},id:{admin:"Admin",anonymous:"Anonim",approve_hint:"komentar biasanya disetujui dalam waktu 24 jam",discussion:"Diskusi",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",your_comment:"Komentar Anda"},it:{admin:"Amministratore",anonymous:"Anonimo",approve_hint:"i commenti vengono normalmente approvati entro 24 ore",discussion:"Discussione",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",your_comment:"Il tuo commento"},ja:{admin:"管理者",anonymous:"匿名",approve_hint:"コメントは通常24時間以内に承認されます",discussion:"ディスカッション",load_more:"もっと読み込む",login:"ログイン",logout:"ログアウト",placeholder:"コメントを書く...",post_comment:"コメントを投稿",post_reply:"返信を投稿",reply:"返信",reply_to:"返信先",your_comment:"あなたのコメント"},ko:{admin:"관리자",anonymous:"익명",approve_hint:"댓글은 보통 24시간 내에 승인됩니다",discussion:"토론",load_more:"더 보기",login:"로그인",logout:"로그아웃",placeholder:"댓글을 입력하세요...",post_comment:"댓글 게시",post_reply:"답글 게시",reply:"답장",reply_to:"답장 대상",your_comment:"당신의 댓글"},pt:{admin:"Administrador",anonymous:"Anônimo",approve_hint:"os comentários são normalmente aprovados dentro de 24 horas",discussion:"Discussão",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",your_comment:"Seu comentário"},th:{admin:"แอดมิน",anonymous:"นิรนาม",approve_hint:"โดยปกติความคิดเห็นจะได้รับการอนุมัติภายใน 24 ชั่วโมง",discussion:"การอภิปราย",load_more:"โหลดเพิ่ม",login:"ลงชื่อเข้าใช้",logout:"ลงชื่อออก",placeholder:"เขียนความคิดเห็น...",post_comment:"โพสต์ความคิดเห็น",post_reply:"โพสต์การตอบกลับ",reply:"ตอบกลับ",reply_to:"ตอบกลับถึง",ui_texts:["เป็นคนแรกที่เริ่มการอภิปราย","เข้าร่วมการสนทนา (#)","กำลังโหลด...","โหลดความคิดเห็น"],your_comment:"ความคิดเห็นของคุณ"},zh:{admin:"管理員",anonymous:"匿名",approve_hint:"評論通常在24小時內獲得批準,並且每壹條評論都會獲得回復",discussion:"討論",load_more:"加載更多",login:"登錄",logout:"登出",placeholder:"寫評論...",post_comment:"發表評論",post_reply:"發表回複",reply:"回複",reply_to:"回複給",your_comment:"您的評論"},"zh-CN":{admin:"管理员",anonymous:"匿名",approve_hint:"评论通常在24小时内公开(我们也会回复您)",discussion:"讨论",load_more:"加载更多",login:"登录",logout:"登出",placeholder:"写评论...",post_comment:"发表评论",post_reply:"发表回复",reply:"回复",reply_to:"回复给",your_comment:"您的评论"}};function tm(){return!!navigator.userAgent.match(/Macintosh/)}function nm(e,t){const n=tm();return(n&&e.metaKey||!n&&e.ctrlKey)&&e.key===t}var Ws=(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))(Ws||{});function sm(e){const{id:t,created_at:n,parent_id:s,ancestor_id:o,user_id:r,...i}=e;return{...i,id:Number(t),userId:r,parentId:Number(s),ancestorId:Number(o),status:Number(e.status),createdAt:new Date(n)}}const _o="awesome-comment-comments",Ml=localStorage.getItem(_o),Tn=Ml?JSON.parse(Ml):{},Hs=Hf("store",()=>{const e=Ge("postId"),t=Ge("comments"),n=Ge("total"),s=te(!!t?.length),o=te(0),r=te(""),i=te([]),a=te(n||0),l=Ge("ApiBaseUrl"),h=te(!1),f=te(!1);function m(E){const I={},_=[];E.forEach(y=>{w(Number(y.id));const b=sm(y);!y.ancestor_id||Number(y.ancestor_id)===0?I[y.id]=b:_.push(b)});const k=Tn[e];k&&(k.createdAt=new Date(k.createdAt),!k.ancestorId||Number(k.ancestorId)===0?I[k.id]=k:_.push(k)),_.forEach(y=>{if(y.ancestorId in I){const b=I[y.ancestorId];b.children=[y,...b.children||[]]}});for(const y in I){if(!I.hasOwnProperty(y))continue;const b=I[y];b.children&&(b.children=b.children.sort((S,x)=>S.id-x.id))}return I}async function d(E=!1){if(h.value)return;r.value="",h.value=!0;let I;if(E&&t?.length)I=m(t);else{const _=new URLSearchParams;_.append("postId",e),_.append("start",o.value.toString());const k=await fetch(`${l}/api/comments?${_}`);if(!k.ok){r.value="Load comments failed. "+k.statusText,s.value=!0,h.value=!1;return}const y=await k.json();if(y.code!==0){r.value="Load comments failed. "+y.message,s.value=!0,h.value=!1;return}I=m(y.data||[]),a.value=y.meta?.total||y.data?.length||0}f.value=Object.keys(I).length>20,f.value&&delete I[Object.keys(I)[0]],Object.assign(i.value,I),s.value=!0,h.value=!1}function g(E,I,_,k=Ws.Pending,y,b){const{sub:S="",name:x="",picture:D="",email:M="",nickname:N=""}=_,K={id:E,postId:e,content:I,createdAt:new Date,user:{avatar:D,email:M,name:N||x},userId:S,status:k,isNew:!0};if(y||b){K.ancestorId=y,K.parentId=b;const re=i.value[y];if(re.children||(re.children=[]),y===b)re.children.unshift(K);else{const ie=re.children.findIndex(be=>Number(be.id)===b);re.children.splice(ie+1,0,K)}}else K.ancestorId=0,K.parentId=0,i.value={[E]:K,...i.value};a.value++,k!==Ws.Approved&&(Tn[e]=K,localStorage.setItem(_o,JSON.stringify(Tn)))}function w(E){Tn[e]?.id===E&&(delete Tn[e],localStorage.setItem(_o,JSON.stringify(Tn)))}return{isLoaded:s,message:r,postId:e,comments:i,total:a,start:o,hasMore:f,loadingMore:h,loadComments:d,addComment:g}}),rm={class:"ac-form-control bg-base-200 rounded-lg"},om={class:"sr-only",for:"ac-comment"},im=["placeholder"],am={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},lm={key:0,class:"text-xs text-neutral-400/40"},cm={key:1,class:"ac-alert ac-alert-error mx-4 py-1"},um=["disabled"],fm={key:0,class:"ac-loading ac-loading-spinner"},Vs=Bt({...{name:"CommentForm"},props:{noVersion:{type:Boolean},currentId:{},parentId:{},ancestorId:{},content:{},status:{}},emits:["close","update"],setup(e,{emit:t}){const n=e,s=t,o=Jr(),r=Hs(),{t:i}=sn(),a=Ge("ApiBaseUrl"),l=Ge("Auth0Domain"),h="0.7.13",f=te(),m=te(!1),d=te(n.content||""),g=te("");async function w(k){if(!o.user.value)return E();if(k.target.matches(":invalid"))return;const y=d.value.trim();if(!y)return;m.value=!0,g.value="";let b=a+"/api/comment",S="POST";n.currentId&&(b+="/"+n.currentId,S="PATCH");try{const x=await o.getAccessTokenSilently(),D=await fetch(b,{method:S,headers:{"Content-Type":"application/json",Authorization:`Bearer ${x}`},body:JSON.stringify({comment:y,postId:r.postId,domain:l,ancestorId:n.ancestorId?Number(n.ancestorId):void 0,parentId:n.parentId?Number(n.parentId):void 0,status:n.status})}),M=await D.json();if(!D.ok||M.message){g.value="Failed to post comment: "+(M.message||"Unknown"),m.value=!1;return}const{id:N,status:K}=M.data;n.ancestorId||n.parentId?r.addComment(N,y,o.user.value,K,n.ancestorId,n.parentId):n.currentId?s("update",y):r.addComment(N,y,o.user.value,K),d.value="",s("close")}catch(x){g.value=x.message||String(x)}m.value=!1}function E(){o.loginWithPopup()}function I(k){nm(k,"Enter")&&w(k)}function _(){s("close")}return vs(()=>{f.value?.focus()}),(k,y)=>(J(),ne("form",{class:"mb-6",onSubmit:Sf(w,["prevent"])},[le("div",rm,[le("label",om,ge(X(i)("your_comment")),1),fu(le("textarea",{class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",id:"ac-comment",ref_key:"textarea",ref:f,rows:"3",placeholder:X(i)("placeholder"),required:"",onKeydown:[fa(I,["enter"]),fa(_,["esc"])],"onUpdate:modelValue":y[0]||(y[0]=b=>d.value=b)},null,40,im),[[Tf,d.value]]),le("div",am,[k.noVersion?Pe("",!0):(J(),ne("div",lm,"v"+ge(X(h)),1)),g.value?(J(),ne("div",cm,ge(g.value),1)):Pe("",!0),le("button",{class:"ac-btn ac-btn-primary ac-btn-sm ms-auto",disabled:m.value},[m.value?(J(),ne("span",fm)):Pe("",!0),k.currentId?(J(),ne(Ee,{key:1},[Jt(ge(X(i)("save_editing")),1)],64)):k.parentId?(J(),ne(Ee,{key:2},[Jt(ge(X(i)("post_reply")),1)],64)):(J(),ne(Ee,{key:3},[Jt(ge(X(i)("post_comment")),1)],64))],8,um)])])],32))}});function bo(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let rn=bo();function Fl(e){rn=e}const Dl=/[&<>"']/,dm=new RegExp(Dl.source,"g"),$l=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,hm=new RegExp($l.source,"g"),mm={"&":"&","<":"<",">":">",'"':""","'":"'"},Ul=e=>mm[e];function Ye(e,t){if(t){if(Dl.test(e))return e.replace(dm,Ul)}else if($l.test(e))return e.replace(hm,Ul);return e}const pm=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function gm(e){return e.replace(pm,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const _m=/(^|[^\[])\^/g;function ue(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const s={replace:(o,r)=>{let i=typeof r=="string"?r:r.source;return i=i.replace(_m,"$1"),n=n.replace(o,i),s},getRegex:()=>new RegExp(n,t)};return s}function jl(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Yn={exec:()=>null};function Wl(e,t){const n=e.replace(/\|/g,(r,i,a)=>{let l=!1,h=i;for(;--h>=0&&a[h]==="\\";)l=!l;return l?"|":" |"}),s=n.split(/ \|/);let o=0;if(s[0].trim()||s.shift(),s.length>0&&!s[s.length-1].trim()&&s.pop(),t)if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;o<s.length;o++)s[o]=s[o].trim().replace(/\\\|/g,"|");return s}function Ks(e,t,n){const s=e.length;if(s===0)return"";let o=0;for(;o<s;){const r=e.charAt(s-o-1);if(r===t&&!n)o++;else if(r!==t&&n)o++;else break}return e.slice(0,s-o)}function bm(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let s=0;s<e.length;s++)if(e[s]==="\\")s++;else if(e[s]===t[0])n++;else if(e[s]===t[1]&&(n--,n<0))return s;return-1}function Hl(e,t,n,s){const o=t.href,r=t.title?Ye(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){s.state.inLink=!0;const a={type:"link",raw:n,href:o,title:r,text:i,tokens:s.inlineTokens(i)};return s.state.inLink=!1,a}return{type:"image",raw:n,href:o,title:r,text:Ye(i)}}function ym(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const s=n[1];return t.split(`
|
|
46
|
-
`).map(
|
|
47
|
-
`)}class
|
|
48
|
-
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const s=n[0],
|
|
49
|
-
`)
|
|
50
|
-
|
|
51
|
-
`,1)[0]
|
|
52
|
-
`,
|
|
53
|
-
`,1)[
|
|
54
|
-
|
|
55
|
-
`+
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
]
|
|
60
|
-
`),
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
`+s.
|
|
64
|
-
`+s.raw,
|
|
65
|
-
`+s.raw,
|
|
66
|
-
`+s.raw,o.
|
|
67
|
-
`+s.
|
|
68
|
-
`+s.
|
|
69
|
-
`+s.
|
|
70
|
-
|
|
71
|
-
|
|
45
|
+
*/const Hh="9.13.1";function Vh(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(yt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(yt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(yt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(yt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(yt().__INTLIFY_PROD_DEVTOOLS__=!1)}const vl=wh.__EXTEND_POINT__,wt=Fs(vl);wt(),wt(),wt(),wt(),wt(),wt(),wt(),wt(),wt();const El=tt.__EXTEND_POINT__,We=Fs(El),we={UNEXPECTED_RETURN_TYPE:El,INVALID_ARGUMENT:We(),MUST_BE_CALL_SETUP_TOP:We(),NOT_INSTALLED:We(),NOT_AVAILABLE_IN_LEGACY_MODE:We(),REQUIRED_VALUE:We(),INVALID_VALUE:We(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:We(),NOT_INSTALLED_WITH_PROVIDE:We(),UNEXPECTED_ERROR:We(),NOT_COMPATIBLE_LEGACY_VUE_I18N:We(),BRIDGE_SUPPORT_VUE_2_ONLY:We(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:We(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:We(),__EXTEND_POINT__:We()};function Le(e,...t){return yn(e,null,void 0)}const ci=Nt("__translateVNode"),ui=Nt("__datetimeParts"),fi=Nt("__numberParts"),Il=Nt("__setPluralRules"),Tl=Nt("__injectWithOption"),di=Nt("__dispose");function Gn(e){if(!oe(e))return e;for(const t in e)if(Ds(e,t))if(!t.includes("."))oe(e[t])&&Gn(e[t]);else{const n=t.split("."),s=n.length-1;let i=e,r=!1;for(let o=0;o<s;o++){if(n[o]in i||(i[n[o]]={}),!oe(i[n[o]])){r=!0;break}i=i[n[o]]}r||(i[n[s]]=e[t],delete e[t]),oe(i[n[s]])&&Gn(i[n[s]])}return e}function Hs(e,t){const{messages:n,__i18n:s,messageResolver:i,flatJson:r}=t,o=B(n)?n:me(s)?{}:{[e]:{}};if(me(s)&&s.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:f}=a;l?(o[l]=o[l]||{},Us(f,o[l])):Us(f,o)}else W(a)&&Us(JSON.parse(a),o)}),i==null&&r)for(const a in o)Ds(o,a)&&Gn(o[a]);return o}function Ll(e){return e.type}function Ol(e,t,n){let s=oe(t.messages)?t.messages:{};"__i18nGlobal"in n&&(s=Hs(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const i=Object.keys(s);i.length&&i.forEach(r=>{e.mergeLocaleMessage(r,s[r])});{if(oe(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(oe(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Sl(e){return Ne(Mn,null,e,0)}const xl="__INTLIFY_META__",Cl=()=>[],Kh=()=>!1;let Nl=0;function Pl(e){return(t,n,s,i)=>e(n,s,Un()||void 0,i)}const zh=()=>{const e=Un();let t=null;return e&&(t=Ll(e)[xl])?{[xl]:t}:null};function hi(e={},t){const{__root:n,__injectWithOption:s}=e,i=n===void 0,r=e.flatJson,o=Rs?se:ao,a=!!e.translateExistCompatible;let l=Q(e.inheritLocale)?e.inheritLocale:!0;const f=o(n&&l?n.locale.value:W(e.locale)?e.locale:vn),c=o(n&&l?n.fallbackLocale.value:W(e.fallbackLocale)||me(e.fallbackLocale)||B(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:f.value),d=o(Hs(f.value,e)),u=o(B(e.datetimeFormats)?e.datetimeFormats:{[f.value]:{}}),g=o(B(e.numberFormats)?e.numberFormats:{[f.value]:{}});let w=n?n.missingWarn:Q(e.missingWarn)||Pt(e.missingWarn)?e.missingWarn:!0,E=n?n.fallbackWarn:Q(e.fallbackWarn)||Pt(e.fallbackWarn)?e.fallbackWarn:!0,I=n?n.fallbackRoot:Q(e.fallbackRoot)?e.fallbackRoot:!0,S=!!e.fallbackFormat,N=de(e.missing)?e.missing:null,b=de(e.missing)?Pl(e.missing):null,y=de(e.postTranslation)?e.postTranslation:null,O=n?n.warnHtmlMessage:Q(e.warnHtmlMessage)?e.warnHtmlMessage:!0,L=!!e.escapeParameter;const D=n?n.modifiers:B(e.modifiers)?e.modifiers:{};let P=e.pluralRules||n&&n.pluralRules,A;A=(()=>{i&&al(null);const v={version:Hh,locale:f.value,fallbackLocale:c.value,messages:d.value,modifiers:D,pluralRules:P,missing:b===null?void 0:b,missingWarn:w,fallbackWarn:E,fallbackFormat:S,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:O,escapeParameter:L,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};v.datetimeFormats=u.value,v.numberFormats=g.value,v.__datetimeFormatters=B(A)?A.__datetimeFormatters:void 0,v.__numberFormatters=B(A)?A.__numberFormatters:void 0;const x=Ph(v);return i&&al(x),x})(),Yn(A,f.value,c.value);function ne(){return[f.value,c.value,d.value,u.value,g.value]}const Y=De({get:()=>f.value,set:v=>{f.value=v,A.locale=f.value}}),pe=De({get:()=>c.value,set:v=>{c.value=v,A.fallbackLocale=c.value,Yn(A,f.value,v)}}),nt=De(()=>d.value),He=De(()=>u.value),J=De(()=>g.value);function ce(){return de(y)?y:null}function ie(v){y=v,A.postTranslation=v}function Ye(){return N}function dt(v){v!==null&&(b=Pl(v)),N=v,A.missing=b}const ve=(v,x,H,G,fe,Re)=>{ne();let Ge;try{__INTLIFY_PROD_DEVTOOLS__,i||(A.fallbackContext=n?Nh():void 0),Ge=v(A)}finally{__INTLIFY_PROD_DEVTOOLS__,i||(A.fallbackContext=void 0)}if(H!=="translate exists"&&ke(Ge)&&Ge===Ws||H==="translate exists"&&!Ge){const[er,Ln]=x();return n&&I?G(n):fe(er)}else{if(Re(Ge))return Ge;throw Le(we.UNEXPECTED_RETURN_TYPE)}};function Oe(...v){return ve(x=>Reflect.apply(hl,null,[x,...v]),()=>oi(...v),"translate",x=>Reflect.apply(x.t,x,[...v]),x=>x,x=>W(x))}function Mt(...v){const[x,H,G]=v;if(G&&!oe(G))throw Le(we.INVALID_ARGUMENT);return Oe(x,H,Se({resolvedMessage:!0},G||{}))}function Dt(...v){return ve(x=>Reflect.apply(gl,null,[x,...v]),()=>ai(...v),"datetime format",x=>Reflect.apply(x.d,x,[...v]),()=>Qa,x=>W(x))}function cn(...v){return ve(x=>Reflect.apply(yl,null,[x,...v]),()=>li(...v),"number format",x=>Reflect.apply(x.n,x,[...v]),()=>Qa,x=>W(x))}function $e(v){return v.map(x=>W(x)||ke(x)||Q(x)?Sl(String(x)):x)}const Et={normalize:$e,interpolate:v=>v,type:"vnode"};function Ft(...v){return ve(x=>{let H;const G=x;try{G.processor=Et,H=Reflect.apply(hl,null,[G,...v])}finally{G.processor=null}return H},()=>oi(...v),"translate",x=>x[ci](...v),x=>[Sl(x)],x=>me(x))}function Je(...v){return ve(x=>Reflect.apply(yl,null,[x,...v]),()=>li(...v),"number format",x=>x[fi](...v),Cl,x=>W(x)||me(x))}function $t(...v){return ve(x=>Reflect.apply(gl,null,[x,...v]),()=>ai(...v),"datetime format",x=>x[ui](...v),Cl,x=>W(x)||me(x))}function Ut(v){P=v,A.pluralRules=P}function _(v,x){return ve(()=>{if(!v)return!1;const H=W(x)?x:f.value,G=R(H),fe=A.messageResolver(G,v);return a?fe!=null:In(fe)||Ze(fe)||W(fe)},()=>[v],"translate exists",H=>Reflect.apply(H.te,H,[v,x]),Kh,H=>Q(H))}function p(v){let x=null;const H=Ja(A,c.value,f.value);for(let G=0;G<H.length;G++){const fe=d.value[H[G]]||{},Re=A.messageResolver(fe,v);if(Re!=null){x=Re;break}}return x}function T(v){const x=p(v);return x??(n?n.tm(v)||{}:{})}function R(v){return d.value[v]||{}}function M(v,x){if(r){const H={[v]:x};for(const G in H)Ds(H,G)&&Gn(H[G]);x=H[v]}d.value[v]=x,A.messages=d.value}function $(v,x){d.value[v]=d.value[v]||{};const H={[v]:x};if(r)for(const G in H)Ds(H,G)&&Gn(H[G]);x=H[v],Us(x,d.value[v]),A.messages=d.value}function U(v){return u.value[v]||{}}function h(v,x){u.value[v]=x,A.datetimeFormats=u.value,bl(A,v,x)}function m(v,x){u.value[v]=Se(u.value[v]||{},x),A.datetimeFormats=u.value,bl(A,v,x)}function k(v){return g.value[v]||{}}function C(v,x){g.value[v]=x,A.numberFormats=g.value,wl(A,v,x)}function j(v,x){g.value[v]=Se(g.value[v]||{},x),A.numberFormats=g.value,wl(A,v,x)}Nl++,n&&Rs&&(Yt(n.locale,v=>{l&&(f.value=v,A.locale=v,Yn(A,f.value,c.value))}),Yt(n.fallbackLocale,v=>{l&&(c.value=v,A.fallbackLocale=v,Yn(A,f.value,c.value))}));const F={id:Nl,locale:Y,fallbackLocale:pe,get inheritLocale(){return l},set inheritLocale(v){l=v,v&&n&&(f.value=n.locale.value,c.value=n.fallbackLocale.value,Yn(A,f.value,c.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:nt,get modifiers(){return D},get pluralRules(){return P||{}},get isGlobal(){return i},get missingWarn(){return w},set missingWarn(v){w=v,A.missingWarn=w},get fallbackWarn(){return E},set fallbackWarn(v){E=v,A.fallbackWarn=E},get fallbackRoot(){return I},set fallbackRoot(v){I=v},get fallbackFormat(){return S},set fallbackFormat(v){S=v,A.fallbackFormat=S},get warnHtmlMessage(){return O},set warnHtmlMessage(v){O=v,A.warnHtmlMessage=v},get escapeParameter(){return L},set escapeParameter(v){L=v,A.escapeParameter=v},t:Oe,getLocaleMessage:R,setLocaleMessage:M,mergeLocaleMessage:$,getPostTranslationHandler:ce,setPostTranslationHandler:ie,getMissingHandler:Ye,setMissingHandler:dt,[Il]:Ut};return F.datetimeFormats=He,F.numberFormats=J,F.rt=Mt,F.te=_,F.tm=T,F.d=Dt,F.n=cn,F.getDateTimeFormat=U,F.setDateTimeFormat=h,F.mergeDateTimeFormat=m,F.getNumberFormat=k,F.setNumberFormat=C,F.mergeNumberFormat=j,F[Tl]=s,F[ci]=Ft,F[ui]=$t,F[fi]=Je,F}function Yh(e){const t=W(e.locale)?e.locale:vn,n=W(e.fallbackLocale)||me(e.fallbackLocale)||B(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=de(e.missing)?e.missing:void 0,i=Q(e.silentTranslationWarn)||Pt(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=Q(e.silentFallbackWarn)||Pt(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=Q(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=B(e.modifiers)?e.modifiers:{},f=e.pluralizationRules,c=de(e.postTranslation)?e.postTranslation:void 0,d=W(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,u=!!e.escapeParameterHtml,g=Q(e.sync)?e.sync:!0;let w=e.messages;if(B(e.sharedMessages)){const L=e.sharedMessages;w=Object.keys(L).reduce((P,A)=>{const V=P[A]||(P[A]={});return Se(V,L[A]),P},w||{})}const{__i18n:E,__root:I,__injectWithOption:S}=e,N=e.datetimeFormats,b=e.numberFormats,y=e.flatJson,O=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:w,flatJson:y,datetimeFormats:N,numberFormats:b,missing:s,missingWarn:i,fallbackWarn:r,fallbackRoot:o,fallbackFormat:a,modifiers:l,pluralRules:f,postTranslation:c,warnHtmlMessage:d,escapeParameter:u,messageResolver:e.messageResolver,inheritLocale:g,translateExistCompatible:O,__i18n:E,__root:I,__injectWithOption:S}}function mi(e={},t){{const n=hi(Yh(e)),{__extender:s}=e,i={id:n.id,get locale(){return n.locale.value},set locale(r){n.locale.value=r},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(r){n.fallbackLocale.value=r},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(r){},get missing(){return n.getMissingHandler()},set missing(r){n.setMissingHandler(r)},get silentTranslationWarn(){return Q(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(r){n.missingWarn=Q(r)?!r:r},get silentFallbackWarn(){return Q(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(r){n.fallbackWarn=Q(r)?!r:r},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(r){n.fallbackFormat=r},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(r){n.setPostTranslationHandler(r)},get sync(){return n.inheritLocale},set sync(r){n.inheritLocale=r},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){n.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(r){n.escapeParameter=r},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(r){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...r){const[o,a,l]=r,f={};let c=null,d=null;if(!W(o))throw Le(we.INVALID_ARGUMENT);const u=o;return W(a)?f.locale=a:me(a)?c=a:B(a)&&(d=a),me(l)?c=l:B(l)&&(d=l),Reflect.apply(n.t,n,[u,c||d||{},f])},rt(...r){return Reflect.apply(n.rt,n,[...r])},tc(...r){const[o,a,l]=r,f={plural:1};let c=null,d=null;if(!W(o))throw Le(we.INVALID_ARGUMENT);const u=o;return W(a)?f.locale=a:ke(a)?f.plural=a:me(a)?c=a:B(a)&&(d=a),W(l)?f.locale=l:me(l)?c=l:B(l)&&(d=l),Reflect.apply(n.t,n,[u,c||d||{},f])},te(r,o){return n.te(r,o)},tm(r){return n.tm(r)},getLocaleMessage(r){return n.getLocaleMessage(r)},setLocaleMessage(r,o){n.setLocaleMessage(r,o)},mergeLocaleMessage(r,o){n.mergeLocaleMessage(r,o)},d(...r){return Reflect.apply(n.d,n,[...r])},getDateTimeFormat(r){return n.getDateTimeFormat(r)},setDateTimeFormat(r,o){n.setDateTimeFormat(r,o)},mergeDateTimeFormat(r,o){n.mergeDateTimeFormat(r,o)},n(...r){return Reflect.apply(n.n,n,[...r])},getNumberFormat(r){return n.getNumberFormat(r)},setNumberFormat(r,o){n.setNumberFormat(r,o)},mergeNumberFormat(r,o){n.mergeNumberFormat(r,o)},getChoiceIndex(r,o){return-1}};return i.__extender=s,i}}const pi={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Gh({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,i)=>[...s,...i.type===Ie?i.children:[i]],[]):t.reduce((n,s)=>{const i=e[s];return i&&(n[s]=i()),n},{})}function Al(e){return Ie}const Rl=Xt({name:"i18n-t",props:Se({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ke(e)||!isNaN(e)}},pi),setup(e,t){const{slots:n,attrs:s}=t,i=e.i18n||on({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(d=>d!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=W(e.plural)?+e.plural:e.plural);const a=Gh(t,r),l=i[ci](e.keypath,a,o),f=Se({},s),c=W(e.tag)||oe(e.tag)?e.tag:Al();return ia(c,f,l)}}});function Bh(e){return me(e)&&!W(e[0])}function Ml(e,t,n,s){const{slots:i,attrs:r}=t;return()=>{const o={part:!0};let a={};e.locale&&(o.locale=e.locale),W(e.format)?o.key=e.format:oe(e.format)&&(W(e.format.key)&&(o.key=e.format.key),a=Object.keys(e.format).reduce((u,g)=>n.includes(g)?Se({},u,{[g]:e.format[g]}):u,{}));const l=s(e.value,o,a);let f=[o.key];me(l)?f=l.map((u,g)=>{const w=i[u.type],E=w?w({[u.type]:u.value,index:g,parts:l}):[u.value];return Bh(E)&&(E[0].key=`${u.type}-${g}`),E}):W(l)&&(f=[l]);const c=Se({},r),d=W(e.tag)||oe(e.tag)?e.tag:Al();return ia(d,c,f)}}const Dl=Xt({name:"i18n-n",props:Se({value:{type:Number,required:!0},format:{type:[String,Object]}},pi),setup(e,t){const n=e.i18n||on({useScope:e.scope,__useComponent:!0});return Ml(e,t,kl,(...s)=>n[fi](...s))}}),Fl=Xt({name:"i18n-d",props:Se({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},pi),setup(e,t){const n=e.i18n||on({useScope:e.scope,__useComponent:!0});return Ml(e,t,_l,(...s)=>n[ui](...s))}});function Xh(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function Zh(e){const t=o=>{const{instance:a,modifiers:l,value:f}=o;if(!a||!a.$)throw Le(we.UNEXPECTED_ERROR);const c=Xh(e,a.$),d=$l(f);return[Reflect.apply(c.t,c,[...Ul(d)]),c]};return{created:(o,a)=>{const[l,f]=t(a);Rs&&e.global===f&&(o.__i18nWatcher=Yt(f.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=f,o.textContent=l},unmounted:o=>{Rs&&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,f=$l(a);o.textContent=Reflect.apply(l.t,l,[...Ul(f)])}},getSSRProps:o=>{const[a]=t(o);return{textContent:a}}}}function $l(e){if(W(e))return{path:e};if(B(e)){if(!("path"in e))throw Le(we.REQUIRED_VALUE,"path");return e}else throw Le(we.INVALID_VALUE)}function Ul(e){const{path:t,locale:n,args:s,choice:i,plural:r}=e,o={},a=s||{};return W(n)&&(o.locale=n),ke(i)&&(o.plural=i),ke(r)&&(o.plural=r),[t,a,o]}function Jh(e,t,...n){const s=B(n[0])?n[0]:{},i=!!s.useI18nComponentName;(Q(s.globalInstall)?s.globalInstall:!0)&&([i?"i18n":Rl.name,"I18nT"].forEach(o=>e.component(o,Rl)),[Dl.name,"I18nN"].forEach(o=>e.component(o,Dl)),[Fl.name,"I18nD"].forEach(o=>e.component(o,Fl))),e.directive("t",Zh(t))}function qh(e,t,n){return{beforeCreate(){const s=Un();if(!s)throw Le(we.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const r=i.i18n;if(i.__i18n&&(r.__i18n=i.__i18n),r.__root=t,this===this.$root)this.$i18n=jl(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=mi(r);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=jl(e,i);else{this.$i18n=mi({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&Ol(t,i,i),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,o)=>this.$i18n.te(r,o),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=Un();if(!s)throw Le(we.UNEXPECTED_ERROR);const i=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),n.__deleteInstance(s),delete this.$i18n}}}function jl(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[Il](t.pluralizationRules||e.pluralizationRules);const n=Hs(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const Qh=Nt("global-vue-i18n");function em(e={},t){const n=__VUE_I18N_LEGACY_API__&&Q(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,s=Q(e.globalInjection)?e.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,r=new Map,[o,a]=tm(e,n),l=Nt("");function f(u){return r.get(u)||null}function c(u,g){r.set(u,g)}function d(u){r.delete(u)}{const u={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},async install(g,...w){if(g.__VUE_I18N_SYMBOL__=l,g.provide(g.__VUE_I18N_SYMBOL__,u),B(w[0])){const S=w[0];u.__composerExtend=S.__composerExtend,u.__vueI18nExtend=S.__vueI18nExtend}let E=null;!n&&s&&(E=um(g,u.global)),__VUE_I18N_FULL_INSTALL__&&Jh(g,u,...w),__VUE_I18N_LEGACY_API__&&n&&g.mixin(qh(a,a.__composer,u));const I=g.unmount;g.unmount=()=>{E&&E(),u.dispose(),I()}},get global(){return a},dispose(){o.stop()},__instances:r,__getInstance:f,__setInstance:c,__deleteInstance:d};return u}}function on(e={}){const t=Un();if(t==null)throw Le(we.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Le(we.NOT_INSTALLED);const n=nm(t),s=rm(n),i=Ll(t),r=sm(e,i);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Le(we.NOT_AVAILABLE_IN_LEGACY_MODE);return lm(t,r,s,e)}if(r==="global")return Ol(s,e,i),s;if(r==="parent"){let l=im(n,t,e.__useComponent);return l==null&&(l=s),l}const o=n;let a=o.__getInstance(t);if(a==null){const l=Se({},e);"__i18n"in i&&(l.__i18n=i.__i18n),s&&(l.__root=s),a=hi(l),o.__composerExtend&&(a[di]=o.__composerExtend(a)),am(o,t,a),o.__setInstance(t,a)}return a}function tm(e,t,n){const s=lr();{const i=__VUE_I18N_LEGACY_API__&&t?s.run(()=>mi(e)):s.run(()=>hi(e));if(i==null)throw Le(we.UNEXPECTED_ERROR);return[s,i]}}function nm(e){{const t=Ke(e.isCE?Qh:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Le(e.isCE?we.NOT_INSTALLED_WITH_PROVIDE:we.UNEXPECTED_ERROR);return t}}function sm(e,t){return Ms(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function rm(e){return e.mode==="composition"?e.global:e.global.__composer}function im(e,t,n=!1){let s=null;const i=t.root;let r=om(t,n);for(;r!=null;){const o=e;if(e.mode==="composition")s=o.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const a=o.__getInstance(r);a!=null&&(s=a.__composer,n&&s&&!s[Tl]&&(s=null))}if(s!=null||i===r)break;r=r.parent}return s}function om(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function am(e,t,n){Es(()=>{},t),vr(()=>{const s=n;e.__deleteInstance(t);const i=s[di];i&&(i(),delete s[di])},t)}function lm(e,t,n,s={}){const i=t==="local",r=ao(null);if(i&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Le(we.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=Q(s.inheritLocale)?s.inheritLocale:!W(s.locale),a=se(!i||o?n.locale.value:W(s.locale)?s.locale:vn),l=se(!i||o?n.fallbackLocale.value:W(s.fallbackLocale)||me(s.fallbackLocale)||B(s.fallbackLocale)||s.fallbackLocale===!1?s.fallbackLocale:a.value),f=se(Hs(a.value,s)),c=se(B(s.datetimeFormats)?s.datetimeFormats:{[a.value]:{}}),d=se(B(s.numberFormats)?s.numberFormats:{[a.value]:{}}),u=i?n.missingWarn:Q(s.missingWarn)||Pt(s.missingWarn)?s.missingWarn:!0,g=i?n.fallbackWarn:Q(s.fallbackWarn)||Pt(s.fallbackWarn)?s.fallbackWarn:!0,w=i?n.fallbackRoot:Q(s.fallbackRoot)?s.fallbackRoot:!0,E=!!s.fallbackFormat,I=de(s.missing)?s.missing:null,S=de(s.postTranslation)?s.postTranslation:null,N=i?n.warnHtmlMessage:Q(s.warnHtmlMessage)?s.warnHtmlMessage:!0,b=!!s.escapeParameter,y=i?n.modifiers:B(s.modifiers)?s.modifiers:{},O=s.pluralRules||i&&n.pluralRules;function L(){return[a.value,l.value,f.value,c.value,d.value]}const D=De({get:()=>r.value?r.value.locale.value:a.value,set:p=>{r.value&&(r.value.locale.value=p),a.value=p}}),P=De({get:()=>r.value?r.value.fallbackLocale.value:l.value,set:p=>{r.value&&(r.value.fallbackLocale.value=p),l.value=p}}),A=De(()=>r.value?r.value.messages.value:f.value),V=De(()=>c.value),ne=De(()=>d.value);function Y(){return r.value?r.value.getPostTranslationHandler():S}function pe(p){r.value&&r.value.setPostTranslationHandler(p)}function nt(){return r.value?r.value.getMissingHandler():I}function He(p){r.value&&r.value.setMissingHandler(p)}function J(p){return L(),p()}function ce(...p){return r.value?J(()=>Reflect.apply(r.value.t,null,[...p])):J(()=>"")}function ie(...p){return r.value?Reflect.apply(r.value.rt,null,[...p]):""}function Ye(...p){return r.value?J(()=>Reflect.apply(r.value.d,null,[...p])):J(()=>"")}function dt(...p){return r.value?J(()=>Reflect.apply(r.value.n,null,[...p])):J(()=>"")}function ve(p){return r.value?r.value.tm(p):{}}function Oe(p,T){return r.value?r.value.te(p,T):!1}function Mt(p){return r.value?r.value.getLocaleMessage(p):{}}function Dt(p,T){r.value&&(r.value.setLocaleMessage(p,T),f.value[p]=T)}function cn(p,T){r.value&&r.value.mergeLocaleMessage(p,T)}function $e(p){return r.value?r.value.getDateTimeFormat(p):{}}function vt(p,T){r.value&&(r.value.setDateTimeFormat(p,T),c.value[p]=T)}function Et(p,T){r.value&&r.value.mergeDateTimeFormat(p,T)}function Ft(p){return r.value?r.value.getNumberFormat(p):{}}function Je(p,T){r.value&&(r.value.setNumberFormat(p,T),d.value[p]=T)}function $t(p,T){r.value&&r.value.mergeNumberFormat(p,T)}const Ut={get id(){return r.value?r.value.id:-1},locale:D,fallbackLocale:P,messages:A,datetimeFormats:V,numberFormats:ne,get inheritLocale(){return r.value?r.value.inheritLocale:o},set inheritLocale(p){r.value&&(r.value.inheritLocale=p)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(f.value)},get modifiers(){return r.value?r.value.modifiers:y},get pluralRules(){return r.value?r.value.pluralRules:O},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:u},set missingWarn(p){r.value&&(r.value.missingWarn=p)},get fallbackWarn(){return r.value?r.value.fallbackWarn:g},set fallbackWarn(p){r.value&&(r.value.missingWarn=p)},get fallbackRoot(){return r.value?r.value.fallbackRoot:w},set fallbackRoot(p){r.value&&(r.value.fallbackRoot=p)},get fallbackFormat(){return r.value?r.value.fallbackFormat:E},set fallbackFormat(p){r.value&&(r.value.fallbackFormat=p)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:N},set warnHtmlMessage(p){r.value&&(r.value.warnHtmlMessage=p)},get escapeParameter(){return r.value?r.value.escapeParameter:b},set escapeParameter(p){r.value&&(r.value.escapeParameter=p)},t:ce,getPostTranslationHandler:Y,setPostTranslationHandler:pe,getMissingHandler:nt,setMissingHandler:He,rt:ie,d:Ye,n:dt,tm:ve,te:Oe,getLocaleMessage:Mt,setLocaleMessage:Dt,mergeLocaleMessage:cn,getDateTimeFormat:$e,setDateTimeFormat:vt,mergeDateTimeFormat:Et,getNumberFormat:Ft,setNumberFormat:Je,mergeNumberFormat:$t};function _(p){p.locale.value=a.value,p.fallbackLocale.value=l.value,Object.keys(f.value).forEach(T=>{p.mergeLocaleMessage(T,f.value[T])}),Object.keys(c.value).forEach(T=>{p.mergeDateTimeFormat(T,c.value[T])}),Object.keys(d.value).forEach(T=>{p.mergeNumberFormat(T,d.value[T])}),p.escapeParameter=b,p.fallbackFormat=E,p.fallbackRoot=w,p.fallbackWarn=g,p.missingWarn=u,p.warnHtmlMessage=N}return Lo(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Le(we.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const p=r.value=e.proxy.$i18n.__composer;t==="global"?(a.value=p.locale.value,l.value=p.fallbackLocale.value,f.value=p.messages.value,c.value=p.datetimeFormats.value,d.value=p.numberFormats.value):i&&_(p)}),Ut}const cm=["locale","fallbackLocale","availableLocales"],Wl=["t","rt","d","n","tm","te"];function um(e,t){const n=Object.create(null);return cm.forEach(i=>{const r=Object.getOwnPropertyDescriptor(t,i);if(!r)throw Le(we.UNEXPECTED_ERROR);const o=be(r.value)?{get(){return r.value.value},set(a){r.value.value=a}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,i,o)}),e.config.globalProperties.$i18n=n,Wl.forEach(i=>{const r=Object.getOwnPropertyDescriptor(t,i);if(!r||!r.value)throw Le(we.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,r)}),()=>{delete e.config.globalProperties.$i18n,Wl.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}if(Vh(),__INTLIFY_JIT_COMPILATION__?nl(Fh):nl(Dh),Oh(lh),Sh(Ja),__INTLIFY_PROD_DEVTOOLS__){const e=yt();e.__INTLIFY__=!0,_h(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const fm={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",load_more:"Load More",login:"LOGIN",logout:"Logout",placeholder:"Write a comment...",post_comment:"POST COMMENT",post_reply:"POST REPLY",reply:"Reply",reply_to:"reply to",ui_texts:["Be the first to start the discussion!","Join the Conversation (#)","Loading...","Load Comments"],your_comment:"Your comment",edit:"Edit",save_editing:"Save"},es:{admin:"Administrador",anonymous:"Anónimo",approve_hint:"los comentarios son normalmente aprobados dentro de 24 horas",discussion:"Discusión",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",ui_texts:["¡Sé el primero en iniciar la discusión!","Únete a la Conversación (#)","Cargando...","Cargar Comentarios"],your_comment:"Tu comentario"},id:{admin:"Admin",anonymous:"Anonim",approve_hint:"komentar biasanya disetujui dalam waktu 24 jam",discussion:"Diskusi",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",your_comment:"Komentar Anda"},it:{admin:"Amministratore",anonymous:"Anonimo",approve_hint:"i commenti vengono normalmente approvati entro 24 ore",discussion:"Discussione",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",your_comment:"Il tuo commento"},ja:{admin:"管理者",anonymous:"匿名",approve_hint:"コメントは通常24時間以内に承認されます",discussion:"ディスカッション",load_more:"もっと読み込む",login:"ログイン",logout:"ログアウト",placeholder:"コメントを書く...",post_comment:"コメントを投稿",post_reply:"返信を投稿",reply:"返信",reply_to:"返信先",your_comment:"あなたのコメント"},ko:{admin:"관리자",anonymous:"익명",approve_hint:"댓글은 보통 24시간 내에 승인됩니다",discussion:"토론",load_more:"더 보기",login:"로그인",logout:"로그아웃",placeholder:"댓글을 입력하세요...",post_comment:"댓글 게시",post_reply:"답글 게시",reply:"답장",reply_to:"답장 대상",your_comment:"당신의 댓글"},pt:{admin:"Administrador",anonymous:"Anônimo",approve_hint:"os comentários são normalmente aprovados dentro de 24 horas",discussion:"Discussão",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",your_comment:"Seu comentário"},th:{admin:"แอดมิน",anonymous:"นิรนาม",approve_hint:"โดยปกติความคิดเห็นจะได้รับการอนุมัติภายใน 24 ชั่วโมง",discussion:"การอภิปราย",load_more:"โหลดเพิ่ม",login:"ลงชื่อเข้าใช้",logout:"ลงชื่อออก",placeholder:"เขียนความคิดเห็น...",post_comment:"โพสต์ความคิดเห็น",post_reply:"โพสต์การตอบกลับ",reply:"ตอบกลับ",reply_to:"ตอบกลับถึง",ui_texts:["เป็นคนแรกที่เริ่มการอภิปราย","เข้าร่วมการสนทนา (#)","กำลังโหลด...","โหลดความคิดเห็น"],your_comment:"ความคิดเห็นของคุณ"},zh:{admin:"管理員",anonymous:"匿名",approve_hint:"評論通常在24小時內獲得批準,並且每壹條評論都會獲得回復",discussion:"討論",load_more:"加載更多",login:"登錄",logout:"登出",placeholder:"寫評論...",post_comment:"發表評論",post_reply:"發表回複",reply:"回複",reply_to:"回複給",your_comment:"您的評論"},"zh-CN":{admin:"管理员",anonymous:"匿名",approve_hint:"评论通常在24小时内公开(我们也会回复您)",discussion:"讨论",load_more:"加载更多",login:"登录",logout:"登出",placeholder:"写评论...",post_comment:"发表评论",post_reply:"发表回复",reply:"回复",reply_to:"回复给",your_comment:"您的评论"}};function dm(){return!!navigator.userAgent.match(/Macintosh/)}function hm(e,t){const n=dm();return(n&&e.metaKey||!n&&e.ctrlKey)&&e.key===t}var Vs=(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))(Vs||{});function mm(e){const{id:t,created_at:n,parent_id:s,ancestor_id:i,user_id:r,...o}=e;return{...o,id:Number(t),userId:r,parentId:Number(s),ancestorId:Number(i),status:Number(e.status),createdAt:new Date(n)}}const gi="awesome-comment-comments",Hl=localStorage.getItem(gi),Tn=Hl?JSON.parse(Hl):{},Ks=Zf("store",()=>{const e=Ke("postId"),t=Ke("comments"),n=Ke("total"),s=se(!!t?.length),i=se(0),r=se(""),o=se([]),a=se(n||0),l=Ke("ApiBaseUrl"),f=se(!1),c=se(!1);function d(E){const I={},S=[];E.forEach(b=>{w(Number(b.id));const y=mm(b);!b.ancestor_id||Number(b.ancestor_id)===0?I[b.id]=y:S.push(y)});const N=Tn[e];N&&(N.createdAt=new Date(N.createdAt),!N.ancestorId||Number(N.ancestorId)===0?I[N.id]=N:S.push(N)),S.forEach(b=>{if(b.ancestorId in I){const y=I[b.ancestorId];y.children=[b,...y.children||[]]}});for(const b in I){const y=I[b];y.children&&(y.children=y.children.sort((O,L)=>O.id-L.id))}return I}async function u(E=!1){if(f.value)return;r.value="",f.value=!0;let I;if(E&&t?.length)I=d(t);else{const S=new URLSearchParams;S.append("postId",e),S.append("start",i.value.toString());const N=await fetch(`${l}/api/comments?${S}`);if(!N.ok){r.value="Load comments failed. "+N.statusText,s.value=!0,f.value=!1;return}const b=await N.json();if(b.code!==0){r.value="Load comments failed. "+b.message,s.value=!0,f.value=!1;return}I=d(b.data||[]),a.value=b.meta?.total||b.data?.length||0}c.value=Object.keys(I).length>20,c.value&&delete I[Object.keys(I)[0]],Object.assign(o.value,I),s.value=!0,f.value=!1}function g(E,I,S,N=Vs.Pending,b,y){const{sub:O="",name:L="",picture:D="",email:P="",nickname:A=""}=S,V={id:E,postId:e,content:I,createdAt:new Date,user:{avatar:D,email:P,name:A||L},userId:O,status:N,isNew:!0};if(b||y){V.ancestorId=b,V.parentId=y;const ne=o.value[b];if(ne.children||(ne.children=[]),b===y)ne.children.unshift(V);else{const Y=ne.children.findIndex(pe=>Number(pe.id)===y);ne.children.splice(Y+1,0,V)}}else V.ancestorId=0,V.parentId=0,o.value={[E]:V,...o.value};a.value++,N!==Vs.Approved&&(Tn[e]=V,localStorage.setItem(gi,JSON.stringify(Tn)))}function w(E){Tn[e]?.id===E&&(delete Tn[e],localStorage.setItem(gi,JSON.stringify(Tn)))}return{isLoaded:s,message:r,postId:e,comments:o,total:a,start:i,hasMore:c,loadingMore:f,loadComments:u,addComment:g}}),pm={class:"ac-form-control bg-base-200 rounded-lg"},gm={class:"sr-only",for:"ac-comment"},_m=["placeholder"],bm={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},ym={key:0,class:"text-xs text-neutral-400/40"},km={key:1,class:"ac-alert ac-alert-error mx-4 py-1"},wm=["disabled"],vm={key:0,class:"ac-loading ac-loading-spinner"},zs=Xt({...{name:"CommentForm"},props:{noVersion:{type:Boolean},currentId:{},parentId:{},ancestorId:{},content:{},status:{}},emits:["close","update"],setup(e,{emit:t}){const n=e,s=t,i=qr(),r=Ks(),{t:o}=on(),a=Ke("ApiBaseUrl"),l=Ke("Auth0Domain"),f="0.7.15",c=se(),d=se(!1),u=se(n.content||""),g=se("");async function w(N){if(!i.user.value)return E();if(N.target.matches(":invalid"))return;const b=u.value.trim();if(!b)return;d.value=!0,g.value="";let y=a+"/api/comment",O="POST";n.currentId&&(y+="/"+n.currentId,O="PATCH");try{const L=await i.getAccessTokenSilently(),D=await fetch(y,{method:O,headers:{"Content-Type":"application/json",Authorization:`Bearer ${L}`},body:JSON.stringify({comment:b,postId:r.postId,domain:l,ancestorId:n.ancestorId?Number(n.ancestorId):void 0,parentId:n.parentId?Number(n.parentId):void 0,status:n.status})}),P=await D.json();if(!D.ok||P.message){g.value="Failed to post comment: "+(P.message||"Unknown"),d.value=!1;return}const{id:A,status:V}=P.data;n.ancestorId||n.parentId?r.addComment(A,b,i.user.value,V,n.ancestorId,n.parentId):n.currentId?s("update",b):r.addComment(A,b,i.user.value,V),u.value="",s("close")}catch(L){g.value=L.message||String(L)}d.value=!1}function E(){i.loginWithPopup()}function I(N){hm(N,"Enter")&&w(N)}function S(){s("close")}return Es(()=>{c.value?.focus()}),(N,b)=>(q(),re("form",{class:"mb-6",onSubmit:Df(w,["prevent"])},[ae("div",pm,[ae("label",gm,_e(Z(o)("your_comment")),1),yu(ae("textarea",{class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",id:"ac-comment",ref_key:"textarea",ref:c,rows:"3",placeholder:Z(o)("placeholder"),required:"",onKeydown:[ga(I,["enter"]),ga(S,["esc"])],"onUpdate:modelValue":b[0]||(b[0]=y=>u.value=y)},null,40,_m),[[Af,u.value]]),ae("div",bm,[N.noVersion?Pe("",!0):(q(),re("div",ym,"v"+_e(Z(f)),1)),g.value?(q(),re("div",km,_e(g.value),1)):Pe("",!0),ae("button",{class:"ac-btn ac-btn-primary ac-btn-sm ms-auto",disabled:d.value},[d.value?(q(),re("span",vm)):Pe("",!0),N.currentId?(q(),re(Ie,{key:1},[qt(_e(Z(o)("save_editing")),1)],64)):N.parentId?(q(),re(Ie,{key:2},[qt(_e(Z(o)("post_reply")),1)],64)):(q(),re(Ie,{key:3},[qt(_e(Z(o)("post_comment")),1)],64))],8,wm)])])],32))}});function _i(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let an=_i();function Vl(e){an=e}const Kl=/[&<>"']/,Em=new RegExp(Kl.source,"g"),zl=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Im=new RegExp(zl.source,"g"),Tm={"&":"&","<":"<",">":">",'"':""","'":"'"},Yl=e=>Tm[e];function ze(e,t){if(t){if(Kl.test(e))return e.replace(Em,Yl)}else if(zl.test(e))return e.replace(Im,Yl);return e}const Lm=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Om(e){return e.replace(Lm,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const Sm=/(^|[^\[])\^/g;function ue(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const s={replace:(i,r)=>{let o=typeof r=="string"?r:r.source;return o=o.replace(Sm,"$1"),n=n.replace(i,o),s},getRegex:()=>new RegExp(n,t)};return s}function Gl(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Bn={exec:()=>null};function Bl(e,t){const n=e.replace(/\|/g,(r,o,a)=>{let l=!1,f=o;for(;--f>=0&&a[f]==="\\";)l=!l;return l?"|":" |"}),s=n.split(/ \|/);let i=0;if(s[0].trim()||s.shift(),s.length>0&&!s[s.length-1].trim()&&s.pop(),t)if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;i<s.length;i++)s[i]=s[i].trim().replace(/\\\|/g,"|");return s}function Ys(e,t,n){const s=e.length;if(s===0)return"";let i=0;for(;i<s;){const r=e.charAt(s-i-1);if(r===t&&!n)i++;else if(r!==t&&n)i++;else break}return e.slice(0,s-i)}function xm(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let s=0;s<e.length;s++)if(e[s]==="\\")s++;else if(e[s]===t[0])n++;else if(e[s]===t[1]&&(n--,n<0))return s;return-1}function Xl(e,t,n,s){const i=t.href,r=t.title?ze(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){s.state.inLink=!0;const a={type:"link",raw:n,href:i,title:r,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=!1,a}return{type:"image",raw:n,href:i,title:r,text:ze(o)}}function Cm(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const s=n[1];return t.split(`
|
|
46
|
+
`).map(i=>{const r=i.match(/^\s+/);if(r===null)return i;const[o]=r;return o.length>=s.length?i.slice(s.length):i}).join(`
|
|
47
|
+
`)}class Gs{options;rules;lexer;constructor(t){this.options=t||an}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const s=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?s:Ys(s,`
|
|
48
|
+
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const s=n[0],i=Cm(s,n[3]||"");return{type:"code",raw:s,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:i}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let s=n[2].trim();if(/#$/.test(s)){const i=Ys(s,"#");(this.options.pedantic||!i||/ $/.test(i))&&(s=i.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let s=n[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
|
|
49
|
+
$1`);s=Ys(s.replace(/^ *>[ \t]?/gm,""),`
|
|
50
|
+
`);const i=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(s);return this.lexer.state.top=i,{type:"blockquote",raw:n[0],tokens:r,text:s}}}list(t){let n=this.rules.block.list.exec(t);if(n){let s=n[1].trim();const i=s.length>1,r={type:"list",raw:"",ordered:i,start:i?+s.slice(0,-1):"",loose:!1,items:[]};s=i?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=i?s:"[*+-]");const o=new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`);let a="",l="",f=!1;for(;t;){let c=!1;if(!(n=o.exec(t))||this.rules.block.hr.test(t))break;a=n[0],t=t.substring(a.length);let d=n[2].split(`
|
|
51
|
+
`,1)[0].replace(/^\t+/,S=>" ".repeat(3*S.length)),u=t.split(`
|
|
52
|
+
`,1)[0],g=0;this.options.pedantic?(g=2,l=d.trimStart()):(g=n[2].search(/[^ ]/),g=g>4?1:g,l=d.slice(g),g+=n[1].length);let w=!1;if(!d&&/^ *$/.test(u)&&(a+=u+`
|
|
53
|
+
`,t=t.substring(u.length+1),c=!0),!c){const S=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),N=new RegExp(`^ {0,${Math.min(3,g-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),b=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:\`\`\`|~~~)`),y=new RegExp(`^ {0,${Math.min(3,g-1)}}#`);for(;t;){const O=t.split(`
|
|
54
|
+
`,1)[0];if(u=O,this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),b.test(u)||y.test(u)||S.test(u)||N.test(t))break;if(u.search(/[^ ]/)>=g||!u.trim())l+=`
|
|
55
|
+
`+u.slice(g);else{if(w||d.search(/[^ ]/)>=4||b.test(d)||y.test(d)||N.test(d))break;l+=`
|
|
56
|
+
`+u}!w&&!u.trim()&&(w=!0),a+=O+`
|
|
57
|
+
`,t=t.substring(O.length+1),d=u.slice(g)}}r.loose||(f?r.loose=!0:/\n *\n *$/.test(a)&&(f=!0));let E=null,I;this.options.gfm&&(E=/^\[[ xX]\] /.exec(l),E&&(I=E[0]!=="[ ] ",l=l.replace(/^\[[ xX]\] +/,""))),r.items.push({type:"list_item",raw:a,task:!!E,checked:I,loose:!1,text:l,tokens:[]}),r.raw+=a}r.items[r.items.length-1].raw=a.trimEnd(),r.items[r.items.length-1].text=l.trimEnd(),r.raw=r.raw.trimEnd();for(let c=0;c<r.items.length;c++)if(this.lexer.state.top=!1,r.items[c].tokens=this.lexer.blockTokens(r.items[c].text,[]),!r.loose){const d=r.items[c].tokens.filter(g=>g.type==="space"),u=d.length>0&&d.some(g=>/\n.*\n/.test(g.raw));r.loose=u}if(r.loose)for(let c=0;c<r.items.length;c++)r.items[c].loose=!0;return r}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const s=n[1].toLowerCase().replace(/\s+/g," "),i=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:s,raw:n[0],href:i,title:r}}}table(t){const n=this.rules.block.table.exec(t);if(!n||!/[:|]/.test(n[2]))return;const s=Bl(n[1]),i=n[2].replace(/^\||\| *$/g,"").split("|"),r=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
|
|
58
|
+
`):[],o={type:"table",raw:n[0],header:[],align:[],rows:[]};if(s.length===i.length){for(const a of i)/^ *-+: *$/.test(a)?o.align.push("right"):/^ *:-+: *$/.test(a)?o.align.push("center"):/^ *:-+ *$/.test(a)?o.align.push("left"):o.align.push(null);for(const a of s)o.header.push({text:a,tokens:this.lexer.inline(a)});for(const a of r)o.rows.push(Bl(a,o.header.length).map(l=>({text:l,tokens:this.lexer.inline(l)})));return o}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const s=n[1].charAt(n[1].length-1)===`
|
|
59
|
+
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:s,tokens:this.lexer.inline(s)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:ze(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const s=n[2].trim();if(!this.options.pedantic&&/^</.test(s)){if(!/>$/.test(s))return;const o=Ys(s.slice(0,-1),"\\");if((s.length-o.length)%2===0)return}else{const o=xm(n[2],"()");if(o>-1){const l=(n[0].indexOf("!")===0?5:4)+n[1].length+o;n[2]=n[2].substring(0,o),n[0]=n[0].substring(0,l).trim(),n[3]=""}}let i=n[2],r="";if(this.options.pedantic){const o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);o&&(i=o[1],r=o[3])}else r=n[3]?n[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/>$/.test(s)?i=i.slice(1):i=i.slice(1,-1)),Xl(n,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(t,n){let s;if((s=this.rules.inline.reflink.exec(t))||(s=this.rules.inline.nolink.exec(t))){const i=(s[2]||s[1]).replace(/\s+/g," "),r=n[i.toLowerCase()];if(!r){const o=s[0].charAt(0);return{type:"text",raw:o,text:o}}return Xl(s,r,s[0],this.lexer)}}emStrong(t,n,s=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&s.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!s||this.rules.inline.punctuation.exec(s)){const o=[...i[0]].length-1;let a,l,f=o,c=0;const d=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,n=n.slice(-1*t.length+o);(i=d.exec(n))!=null;){if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!a)continue;if(l=[...a].length,i[3]||i[4]){f+=l;continue}else if((i[5]||i[6])&&o%3&&!((o+l)%3)){c+=l;continue}if(f-=l,f>0)continue;l=Math.min(l,l+f+c);const u=[...i[0]][0].length,g=t.slice(0,o+i.index+u+l);if(Math.min(o,l)%2){const E=g.slice(1,-1);return{type:"em",raw:g,text:E,tokens:this.lexer.inlineTokens(E)}}const w=g.slice(2,-2);return{type:"strong",raw:g,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let s=n[2].replace(/\n/g," ");const i=/[^ ]/.test(s),r=/^ /.test(s)&&/ $/.test(s);return i&&r&&(s=s.substring(1,s.length-1)),s=ze(s,!0),{type:"codespan",raw:n[0],text:s}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let s,i;return n[2]==="@"?(s=ze(n[1]),i="mailto:"+s):(s=ze(n[1]),i=s),{type:"link",raw:n[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let s,i;if(n[2]==="@")s=ze(n[0]),i="mailto:"+s;else{let r;do r=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(r!==n[0]);s=ze(n[0]),n[1]==="www."?i="http://"+n[0]:i=n[0]}return{type:"link",raw:n[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let s;return this.lexer.state.inRawBlock?s=n[0]:s=ze(n[0]),{type:"text",raw:n[0],text:s}}}}const Nm=/^(?: *(?:\n|$))+/,Pm=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,Am=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Xn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Rm=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Zl=/(?:[*+-]|\d{1,9}[.)])/,Jl=ue(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Zl).replace(/blockCode/g,/ {4}/).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/).getRegex(),bi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Mm=/^[^\n]+/,yi=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Dm=ue(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",yi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Fm=ue(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Zl).getRegex(),Bs="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",ki=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,$m=ue("^ {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",ki).replace("tag",Bs).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ql=ue(bi).replace("hr",Xn).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",Bs).getRegex(),wi={blockquote:ue(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ql).getRegex(),code:Pm,def:Dm,fences:Am,heading:Rm,hr:Xn,html:$m,lheading:Jl,list:Fm,newline:Nm,paragraph:ql,table:Bn,text:Mm},Ql=ue("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Xn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Bs).getRegex(),Um={...wi,table:Ql,paragraph:ue(bi).replace("hr",Xn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ql).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",Bs).getRegex()},jm={...wi,html:ue(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ki).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:Bn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ue(bi).replace("hr",Xn).replace("heading",` *#{1,6} *[^
|
|
60
|
+
]`).replace("lheading",Jl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ec=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Wm=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,tc=/^( {2,}|\\)\n(?!\s*$)/,Hm=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Zn="\\p{P}\\p{S}",Vm=ue(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Zn).getRegex(),Km=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,zm=ue(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Zn).getRegex(),Ym=ue("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Zn).getRegex(),Gm=ue("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Zn).getRegex(),Bm=ue(/\\([punct])/,"gu").replace(/punct/g,Zn).getRegex(),Xm=ue(/^<(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(),Zm=ue(ki).replace("(?:-->|$)","-->").getRegex(),Jm=ue("^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",Zm).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Xs=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,qm=ue(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Xs).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),nc=ue(/^!?\[(label)\]\[(ref)\]/).replace("label",Xs).replace("ref",yi).getRegex(),sc=ue(/^!?\[(ref)\](?:\[\])?/).replace("ref",yi).getRegex(),Qm=ue("reflink|nolink(?!\\()","g").replace("reflink",nc).replace("nolink",sc).getRegex(),vi={_backpedal:Bn,anyPunctuation:Bm,autolink:Xm,blockSkip:Km,br:tc,code:Wm,del:Bn,emStrongLDelim:zm,emStrongRDelimAst:Ym,emStrongRDelimUnd:Gm,escape:ec,link:qm,nolink:sc,punctuation:Vm,reflink:nc,reflinkSearch:Qm,tag:Jm,text:Hm,url:Bn},ep={...vi,link:ue(/^!?\[(label)\]\((.*?)\)/).replace("label",Xs).getRegex(),reflink:ue(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Xs).getRegex()},Ei={...vi,escape:ue(ec).replace("])","~|])").getRegex(),url:ue(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").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~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},tp={...Ei,br:ue(tc).replace("{2,}","*").getRegex(),text:ue(Ei.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Zs={normal:wi,gfm:Um,pedantic:jm},Jn={normal:vi,gfm:Ei,breaks:tp,pedantic:ep};class ut{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||an,this.options.tokenizer=this.options.tokenizer||new Gs,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={block:Zs.normal,inline:Jn.normal};this.options.pedantic?(n.block=Zs.pedantic,n.inline=Jn.pedantic):this.options.gfm&&(n.block=Zs.gfm,this.options.breaks?n.inline=Jn.breaks:n.inline=Jn.gfm),this.tokenizer.rules=n}static get rules(){return{block:Zs,inline:Jn}}static lex(t,n){return new ut(n).lex(t)}static lexInline(t,n){return new ut(n).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
|
|
61
|
+
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const s=this.inlineQueue[n];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(a,l,f)=>l+" ".repeat(f.length));let s,i,r,o;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(s=a.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))){if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length),s.raw.length===1&&n.length>0?n[n.length-1].raw+=`
|
|
62
|
+
`:n.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length),i=n[n.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
|
|
63
|
+
`+s.raw,i.text+=`
|
|
64
|
+
`+s.text,this.inlineQueue[this.inlineQueue.length-1].src=i.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),i=n[n.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
|
|
65
|
+
`+s.raw,i.text+=`
|
|
66
|
+
`+s.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});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}if(r=t,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const l=t.slice(1);let f;this.options.extensions.startBlock.forEach(c=>{f=c.call({lexer:this},l),typeof f=="number"&&f>=0&&(a=Math.min(a,f))}),a<1/0&&a>=0&&(r=t.substring(0,a+1))}if(this.state.top&&(s=this.tokenizer.paragraph(r))){i=n[n.length-1],o&&i.type==="paragraph"?(i.raw+=`
|
|
67
|
+
`+s.raw,i.text+=`
|
|
68
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(s),o=r.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length),i=n[n.length-1],i&&i.type==="text"?(i.raw+=`
|
|
69
|
+
`+s.raw,i.text+=`
|
|
70
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(s);continue}if(t){const a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let s,i,r,o=t,a,l,f;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)c.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,a.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(l||(f=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(s=c.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))){if(s=this.tokenizer.escape(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.tag(t)){t=t.substring(s.raw.length),i=n[n.length-1],i&&s.type==="text"&&i.type==="text"?(i.raw+=s.raw,i.text+=s.text):n.push(s);continue}if(s=this.tokenizer.link(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(s.raw.length),i=n[n.length-1],i&&s.type==="text"&&i.type==="text"?(i.raw+=s.raw,i.text+=s.text):n.push(s);continue}if(s=this.tokenizer.emStrong(t,o,f)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.codespan(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.br(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.del(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.autolink(t)){t=t.substring(s.raw.length),n.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(t))){t=t.substring(s.raw.length),n.push(s);continue}if(r=t,this.options.extensions&&this.options.extensions.startInline){let c=1/0;const d=t.slice(1);let u;this.options.extensions.startInline.forEach(g=>{u=g.call({lexer:this},d),typeof u=="number"&&u>=0&&(c=Math.min(c,u))}),c<1/0&&c>=0&&(r=t.substring(0,c+1))}if(s=this.tokenizer.inlineText(r)){t=t.substring(s.raw.length),s.raw.slice(-1)!=="_"&&(f=s.raw.slice(-1)),l=!0,i=n[n.length-1],i&&i.type==="text"?(i.raw+=s.raw,i.text+=s.text):n.push(s);continue}if(t){const c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return n}}class Js{options;constructor(t){this.options=t||an}code(t,n,s){const i=(n||"").match(/^\S*/)?.[0];return t=t.replace(/\n$/,"")+`
|
|
71
|
+
`,i?'<pre><code class="language-'+ze(i)+'">'+(s?t:ze(t,!0))+`</code></pre>
|
|
72
|
+
`:"<pre><code>"+(s?t:ze(t,!0))+`</code></pre>
|
|
72
73
|
`}blockquote(t){return`<blockquote>
|
|
73
74
|
${t}</blockquote>
|
|
74
75
|
`}html(t,n){return t}heading(t,n,s){return`<h${n}>${t}</h${n}>
|
|
75
76
|
`}hr(){return`<hr>
|
|
76
|
-
`}list(t,n,s){const
|
|
77
|
-
`+t+"</"+
|
|
77
|
+
`}list(t,n,s){const i=n?"ol":"ul",r=n&&s!==1?' start="'+s+'"':"";return"<"+i+r+`>
|
|
78
|
+
`+t+"</"+i+`>
|
|
78
79
|
`}listitem(t,n,s){return`<li>${t}</li>
|
|
79
80
|
`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(t){return`<p>${t}</p>
|
|
80
81
|
`}table(t,n){return n&&(n=`<tbody>${n}</tbody>`),`<table>
|
|
@@ -84,6 +85,6 @@ ${t}</blockquote>
|
|
|
84
85
|
`}tablerow(t){return`<tr>
|
|
85
86
|
${t}</tr>
|
|
86
87
|
`}tablecell(t,n){const s=n.header?"th":"td";return(n.align?`<${s} align="${n.align}">`:`<${s}>`)+t+`</${s}>
|
|
87
|
-
`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return"<br>"}del(t){return`<del>${t}</del>`}link(t,n,s){const
|
|
88
|
-
`+(
|
|
89
|
-
Please report this to https://github.com/markedjs/marked.`,t){const o="<p>An error occurred:</p><pre>"+Ye(s.message+"",!0)+"</pre>";return n?Promise.resolve(o):o}if(n)return Promise.reject(s);throw s}}}const on=new zm;function ce(e,t){return on.parse(e,t)}ce.options=ce.setOptions=function(e){return on.setOptions(e),ce.defaults=on.defaults,Fl(ce.defaults),ce},ce.getDefaults=bo,ce.defaults=rn,ce.use=function(...e){return on.use(...e),ce.defaults=on.defaults,Fl(ce.defaults),ce},ce.walkTokens=function(e,t){return on.walkTokens(e,t)},ce.parseInline=on.parseInline,ce.Parser=ht,ce.parser=ht.parse,ce.Renderer=Xs,ce.TextRenderer=To,ce.Lexer=dt,ce.lexer=dt.lex,ce.Tokenizer=zs,ce.Hooks=Zs,ce.parse=ce,ce.options,ce.setOptions,ce.use,ce.walkTokens,ce.parseInline,ht.parse,dt.lex;function Gm(e){let t=0;for(let s=0;s<e.length;s++)t=e.charCodeAt(s)+((t<<5)-t);let n="#";for(let s=0;s<3;s++){const o=t>>s*8&255;n+=("00"+o.toString(16)).slice(-2)}return n}function Js(e){return e<10?`0${e}`:`${e}`}function Jl(e){e instanceof Date||(e=new Date(e));const t=e.getFullYear(),n=e.getMonth()+1,s=e.getDate();return`${t}-${Js(n)}-${Js(s)}`}function ql(e){e instanceof Date||(e=new Date(e));const t=new Date,n=Jl(e);if(Jl(t)===n){const s=e.getHours(),o=e.getMinutes();return`${Js(s)}:${Js(o)}`}return n}const Ym=["id"],Bm={class:"pt-2 pb-3 ps-4 text-base bg-base-200 rounded-lg dark:bg-gray-900"},Xm={class:"flex justify-between items-center font-sans"},Zm={class:"flex items-center text-sm text-base-content dark:text-white"},Jm={class:"ac-avatar me-2"},qm={key:0,class:"w-6 h-6"},Qm=["src","alt"],ep={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},tp=["data-tip"],np=[le("i",{class:"bi bi-patch-check-fill text-success"},null,-1)],sp=["href"],rp=["datetime","title"],op=["title","aria-label"],ip=[le("i",{class:"bi bi-reply-fill h-4 w-4"},null,-1)],ap=["href"],lp=["innerHTML"],cp={key:1,class:"text-gray-500 break-words overflow-x-auto whitespace-pre-line pb-3 mb-0 dark:text-gray-400"},up=["href"],fp={key:2,class:"italic mt-4 text-emerald-600 mb-0 text-sm dark:text-emerald-300"},dp=Bt({...{name:"CommentItem"},props:{comment:{},isFirstLevel:{type:Boolean},ancestorId:{}},setup(e){const t=e,{t:n}=sn(),s=Hs(),{user:o}=Jr();let r;const i=te(Date.now()),a=te(!1),l=Fe(()=>t.comment.userId===o.value?.sub&&i.value-t.comment.createdAt.getTime()<36e5),h=Fe(()=>{let d=t.comment.user?.name||n("anonymous");return d=d.replace(/@[\w-]+\.[\w-]{2,63}$/,""),d});function f(d){return`${location.origin}${location.pathname}#awcm-${d}`}function m(d){if(t.ancestorId){const w=s.comments[t.ancestorId]?.children?.find(E=>Number(E.id)===Number(d));return w?.user?.name||w?.user?.email||""}return""}return vs(()=>{l.value&&(r=setInterval(()=>{i.value=Date.now(),l.value||clearInterval(r)},1e3))}),Ti(()=>{clearInterval(r)}),(d,g)=>{const w=su("comment-item",!0);return J(),ne("div",{class:rs(["comment-item rounded-lg my-4 target:outline target:outline-green-500 target:outline-2 dark:target:outline-1",{"animated flash":d.comment.isNew}]),id:"awcm-"+d.comment.id,onAnimationend:g[6]||(g[6]=E=>d.comment.isNew=!1)},[le("div",Bm,[le("header",Xm,[le("div",Zm,[le("div",Jm,[d.comment.user.avatar?(J(),ne("div",qm,[le("img",{class:"rounded-full max-w-full max-h-full",src:d.comment.user.avatar,alt:h.value},null,8,Qm)])):(J(),ne("div",{key:1,class:"avatar-char rounded-full w-6 h-6 text-center",style:ss({"background-color":X(Gm)(h.value)})},[le("span",ep,ge(h.value.substring(0,1)),1)],4))]),Jt(ge(h.value),1),d.comment.isAdmin?(J(),ne("div",{key:0,class:"ac-tooltip ms-2","data-tip":X(n)("admin")},np,8,tp)):Pe("",!0),le("a",{class:"ms-4 no-underline hover:underline",href:f(d.comment.id)},[le("time",{class:"text-xs text-gray-600 dark:text-gray-400",datetime:d.comment.createdAt,title:X(ql)(d.comment.createdAt)},ge(X(ql)(d.comment.createdAt)),9,rp)],8,sp),l.value?(J(),ne("button",{key:1,class:"ac-btn ac-btn-link ac-btn-xs ms-4 hover:no-underline",type:"button",onClick:g[0]||(g[0]=E=>a.value=!a.value)},ge(X(n)("edit")),1)):Pe("",!0)]),le("button",{class:"ac-btn ac-btn-sm ac-btn-circle border-0 me-2.5",type:"button",title:X(n)("reply"),"aria-label":X(n)("reply"),onClick:g[1]||(g[1]=E=>d.comment.isReplying=!d.comment.isReplying)},ip,8,op)]),d.comment.isAdmin?(J(),ne(Ee,{key:0},[d.comment.parentId&&d.comment.parentId!==d.comment.ancestorId?(J(),ne("a",{key:0,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",href:`#awcm-${d.comment.parentId}`,target:"_self"},"@"+ge(m(d.comment.parentId)),9,ap)):Pe("",!0),le("article",{class:"text-gray-500 break-words overflow-x-auto dark:text-gray-400",innerHTML:X(ce)(d.comment.content)},null,8,lp)],64)):(J(),ne("p",cp,[d.comment.parentId&&d.comment.parentId!==d.comment.ancestorId?(J(),ne("a",{key:0,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",href:`#awcm-${d.comment.parentId}`,target:"_self"},"@"+ge(m(d.comment.parentId)),9,up)):Pe("",!0),Jt(ge(d.comment.content),1)])),d.comment.status===X(Ws).Pending?(J(),ne("p",fp,ge(X(n)("approve_hint")),1)):Pe("",!0)]),a.value?(J(),mn(Vs,{key:0,class:"mt-3","no-version":"",content:d.comment.content,"current-id":d.comment.id,status:d.comment.status,onUpdate:g[2]||(g[2]=E=>d.comment.content=E),onClose:g[3]||(g[3]=E=>a.value=!1)},null,8,["content","current-id","status"])):Pe("",!0),d.comment.isReplying&&d.isFirstLevel?(J(),mn(Vs,{key:1,class:"mt-3 ms-7","no-version":"","ancestor-id":d.ancestorId,"parent-id":Number(d.comment.id),onClose:g[4]||(g[4]=E=>d.comment.isReplying=!1)},null,8,["ancestor-id","parent-id"])):Pe("",!0),d.comment.children?.length?(J(!0),ne(Ee,{key:2},Li(d.comment.children,E=>(J(),mn(w,{class:"ms-7 mt-2",key:E.id,comment:E,"ancestor-id":d.ancestorId,"is-first-level":!1},null,8,["comment","ancestor-id"]))),128)):Pe("",!0),d.comment.isReplying&&!d.isFirstLevel?(J(),mn(Vs,{key:3,class:"mt-3 ms-7","no-version":"","ancestor-id":d.ancestorId,"parent-id":d.comment.id,onClose:g[5]||(g[5]=E=>d.comment.isReplying=!1)},null,8,["ancestor-id","parent-id"])):Pe("",!0)],42,Ym)}}}),hp={key:0,class:"comments-wrapper"},mp=["disabled"],pp={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},gp={key:1,class:"pt-8 text-center"},_p=[le("span",{class:"ac-loading ac-loading-spinner"},null,-1)],bp=Bt({...{name:"CommentSections"},setup(e){const{t}=sn(),n=Hs();n.loadComments(!0);function s(){n.start+=20,n.loadComments()}return(o,r)=>X(n).isLoaded?(J(),ne("div",hp,[(J(!0),ne(Ee,null,Li(Object.values(X(n).comments).reverse(),i=>(J(),mn(dp,{key:i.id,comment:i,"parent-id":i.parentId,"ancestor-id":i.id,"is-first-level":""},null,8,["comment","parent-id","ancestor-id"]))),128)),X(n).hasMore?(J(),ne("button",{key:0,class:"ac-btn h-11 min-h-fit ac-btn-block text-white border-0 bg-green-middle hover:bg-green-middle/75",type:"button",onClick:s,disabled:X(n).loadingMore},[X(n).loadingMore?(J(),ne("span",pp)):Pe("",!0),Jt(ge(X(t)("load_more")),1)],8,mp)):Pe("",!0)])):(J(),ne("div",gp,_p))}}),yp={class:"awesome-comment"},kp={key:0,class:"ac-alert ac-alert-error mb-4"},wp={class:"flex justify-between items-center py-2"},vp={class:"text-lg font-bold text-base-content my-0"},Ep={key:0,class:"ac-loading ac-loading-spinner"},Ip={key:1,class:"ac-dropdown ac-dropdown-end"},Tp={key:0,class:"ac-avatar flex",tabindex:"0"},Lp={class:"w-6 h-6 rounded-full"},Op=["alt","src"],Sp={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},xp={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},Cp={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},Np={class:"text-base-content"},Pp=["disabled"],Ap=["disabled"],Rp=Bt({__name:"App",setup(e){const t=Hs(),{t:n}=sn(),{isAuthenticated:s,isLoading:o,user:r,loginWithPopup:i,logout:a}=Jr(),l=Fe(()=>{const m=t.hasMore?t.total+"+":t.total;if(t.total===0)return"0";const d=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:t.total});return document.body.dispatchEvent(d),m});function h(){i()}function f(){a({openUrl:!1})}return(m,d)=>(J(),ne("div",yp,[X(t).message?(J(),ne("div",kp,[le("p",null,ge(X(t).message),1)])):Pe("",!0),le("header",wp,[le("h2",vp,ge(X(n)("discussion"))+" ("+ge(l.value)+")",1),X(o)?(J(),ne("span",Ep)):(J(),ne("div",Ip,[X(s)&&X(r)?(J(),ne(Ee,{key:0},[X(r).picture?(J(),ne("label",Tp,[le("div",Lp,[le("img",{class:"w-full h-full block",alt:X(r).name||X(r).email,src:X(r).picture},null,8,Op)])])):(J(),ne("label",Sp,ge(X(r).email),1)),le("ul",xp,[X(r).picture?(J(),ne("li",Cp,[le("span",Np,ge(X(r).email),1)])):Pe("",!0),le("li",null,[le("button",{class:"border-0 bg-base-100",type:"button",disabled:X(o),onClick:f},ge(X(n)("logout")),9,Pp)])])],64)):(J(),ne("button",{key:1,class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",disabled:X(o),onClick:h},ge(X(n)("login")),9,Ap))]))]),Ne(Vs),Ne(bp)]))}}),Ql=[];let Lo=0,ec=null;function Mp(e,t,n=navigator.language){const s=Pf(Rp),o=Ff(),r=ec||xa({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),i=Vh({legacy:!1,locale:n,fallbackLocale:"en",messages:em});return s.use(r),s.use(o),s.use(i),s}return{postId:"",apiUrl:"",domain:"",clientId:"",language:"",init(e,{postId:t,apiUrl:n,domain:s,clientId:o,locale:r=navigator.language}={}){t??=this.postId,n??=this.apiUrl,s??=this.domain,o??=this.clientId;const i=Mp(s,o,r);i.provide("ApiBaseUrl",n),i.provide("postId",t),i.provide("Auth0Domain",s),i.provide("comments",Ql),i.provide("total",Lo),i.mount(e)},async preload(e,t,n,s){this.postId=e,this.apiUrl=t,this.domain=n,this.clientId=s,ec=xa({domain:n,clientId:s,authorizationParams:{redirect_uri:window.location.origin}});const o=await fetch(`${t}/api/comments?postId=${e}`);o.ok||console.log("[Awesome comment] Failed to preload comments.");const r=await o.json();if(r.data){Ql.push(...r.data),Lo=r.meta?.total||r.data.length;const i=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:Lo});document.body.dispatchEvent(i)}}}}();
|
|
88
|
+
`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return"<br>"}del(t){return`<del>${t}</del>`}link(t,n,s){const i=Gl(t);if(i===null)return s;t=i;let r='<a href="'+t+'"';return n&&(r+=' title="'+n+'"'),r+=">"+s+"</a>",r}image(t,n,s){const i=Gl(t);if(i===null)return s;t=i;let r=`<img src="${t}" alt="${s}"`;return n&&(r+=` title="${n}"`),r+=">",r}text(t){return t}}class Ii{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,n,s){return""+s}image(t,n,s){return""+s}br(){return""}}class ft{options;renderer;textRenderer;constructor(t){this.options=t||an,this.options.renderer=this.options.renderer||new Js,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ii}static parse(t,n){return new ft(n).parse(t)}static parseInline(t,n){return new ft(n).parseInline(t)}parse(t,n=!0){let s="";for(let i=0;i<t.length;i++){const r=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const o=r,a=this.options.extensions.renderers[o.type].call({parser:this},o);if(a!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(o.type)){s+=a||"";continue}}switch(r.type){case"space":continue;case"hr":{s+=this.renderer.hr();continue}case"heading":{const o=r;s+=this.renderer.heading(this.parseInline(o.tokens),o.depth,Om(this.parseInline(o.tokens,this.textRenderer)));continue}case"code":{const o=r;s+=this.renderer.code(o.text,o.lang,!!o.escaped);continue}case"table":{const o=r;let a="",l="";for(let c=0;c<o.header.length;c++)l+=this.renderer.tablecell(this.parseInline(o.header[c].tokens),{header:!0,align:o.align[c]});a+=this.renderer.tablerow(l);let f="";for(let c=0;c<o.rows.length;c++){const d=o.rows[c];l="";for(let u=0;u<d.length;u++)l+=this.renderer.tablecell(this.parseInline(d[u].tokens),{header:!1,align:o.align[u]});f+=this.renderer.tablerow(l)}s+=this.renderer.table(a,f);continue}case"blockquote":{const o=r,a=this.parse(o.tokens);s+=this.renderer.blockquote(a);continue}case"list":{const o=r,a=o.ordered,l=o.start,f=o.loose;let c="";for(let d=0;d<o.items.length;d++){const u=o.items[d],g=u.checked,w=u.task;let E="";if(u.task){const I=this.renderer.checkbox(!!g);f?u.tokens.length>0&&u.tokens[0].type==="paragraph"?(u.tokens[0].text=I+" "+u.tokens[0].text,u.tokens[0].tokens&&u.tokens[0].tokens.length>0&&u.tokens[0].tokens[0].type==="text"&&(u.tokens[0].tokens[0].text=I+" "+u.tokens[0].tokens[0].text)):u.tokens.unshift({type:"text",text:I+" "}):E+=I+" "}E+=this.parse(u.tokens,f),c+=this.renderer.listitem(E,w,!!g)}s+=this.renderer.list(c,a,l);continue}case"html":{const o=r;s+=this.renderer.html(o.text,o.block);continue}case"paragraph":{const o=r;s+=this.renderer.paragraph(this.parseInline(o.tokens));continue}case"text":{let o=r,a=o.tokens?this.parseInline(o.tokens):o.text;for(;i+1<t.length&&t[i+1].type==="text";)o=t[++i],a+=`
|
|
89
|
+
`+(o.tokens?this.parseInline(o.tokens):o.text);s+=n?this.renderer.paragraph(a):a;continue}default:{const o='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}parseInline(t,n){n=n||this.renderer;let s="";for(let i=0;i<t.length;i++){const r=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const o=this.options.extensions.renderers[r.type].call({parser:this},r);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){s+=o||"";continue}}switch(r.type){case"escape":{const o=r;s+=n.text(o.text);break}case"html":{const o=r;s+=n.html(o.text);break}case"link":{const o=r;s+=n.link(o.href,o.title,this.parseInline(o.tokens,n));break}case"image":{const o=r;s+=n.image(o.href,o.title,o.text);break}case"strong":{const o=r;s+=n.strong(this.parseInline(o.tokens,n));break}case"em":{const o=r;s+=n.em(this.parseInline(o.tokens,n));break}case"codespan":{const o=r;s+=n.codespan(o.text);break}case"br":{s+=n.br();break}case"del":{const o=r;s+=n.del(this.parseInline(o.tokens,n));break}case"text":{const o=r;s+=n.text(o.text);break}default:{const o='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}}class qs{options;constructor(t){this.options=t||an}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}}class np{defaults=_i();options=this.setOptions;parse=this.#e(ut.lex,ft.parse);parseInline=this.#e(ut.lexInline,ft.parseInline);Parser=ft;Renderer=Js;TextRenderer=Ii;Lexer=ut;Tokenizer=Gs;Hooks=qs;constructor(...t){this.use(...t)}walkTokens(t,n){let s=[];for(const i of t)switch(s=s.concat(n.call(this,i)),i.type){case"table":{const r=i;for(const o of r.header)s=s.concat(this.walkTokens(o.tokens,n));for(const o of r.rows)for(const a of o)s=s.concat(this.walkTokens(a.tokens,n));break}case"list":{const r=i;s=s.concat(this.walkTokens(r.items,n));break}default:{const r=i;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(o=>{const a=r[o].flat(1/0);s=s.concat(this.walkTokens(a,n))}):r.tokens&&(s=s.concat(this.walkTokens(r.tokens,n)))}}return s}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(s=>{const i={...s};if(i.async=this.defaults.async||i.async||!1,s.extensions&&(s.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){const o=n.renderers[r.name];o?n.renderers[r.name]=function(...a){let l=r.renderer.apply(this,a);return l===!1&&(l=o.apply(this,a)),l}:n.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=n[r.level];o?o.unshift(r.tokenizer):n[r.level]=[r.tokenizer],r.start&&(r.level==="block"?n.startBlock?n.startBlock.push(r.start):n.startBlock=[r.start]:r.level==="inline"&&(n.startInline?n.startInline.push(r.start):n.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(n.childTokens[r.name]=r.childTokens)}),i.extensions=n),s.renderer){const r=this.defaults.renderer||new Js(this.defaults);for(const o in s.renderer){if(!(o in r))throw new Error(`renderer '${o}' does not exist`);if(o==="options")continue;const a=o,l=s.renderer[a],f=r[a];r[a]=(...c)=>{let d=l.apply(r,c);return d===!1&&(d=f.apply(r,c)),d||""}}i.renderer=r}if(s.tokenizer){const r=this.defaults.tokenizer||new Gs(this.defaults);for(const o in s.tokenizer){if(!(o in r))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const a=o,l=s.tokenizer[a],f=r[a];r[a]=(...c)=>{let d=l.apply(r,c);return d===!1&&(d=f.apply(r,c)),d}}i.tokenizer=r}if(s.hooks){const r=this.defaults.hooks||new qs;for(const o in s.hooks){if(!(o in r))throw new Error(`hook '${o}' does not exist`);if(o==="options")continue;const a=o,l=s.hooks[a],f=r[a];qs.passThroughHooks.has(o)?r[a]=c=>{if(this.defaults.async)return Promise.resolve(l.call(r,c)).then(u=>f.call(r,u));const d=l.call(r,c);return f.call(r,d)}:r[a]=(...c)=>{let d=l.apply(r,c);return d===!1&&(d=f.apply(r,c)),d}}i.hooks=r}if(s.walkTokens){const r=this.defaults.walkTokens,o=s.walkTokens;i.walkTokens=function(a){let l=[];return l.push(o.call(this,a)),r&&(l=l.concat(r.call(this,a))),l}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return ut.lex(t,n??this.defaults)}parser(t,n){return ft.parse(t,n??this.defaults)}#e(t,n){return(s,i)=>{const r={...i},o={...this.defaults,...r};this.defaults.async===!0&&r.async===!1&&(o.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),o.async=!0);const a=this.#t(!!o.silent,!!o.async);if(typeof s>"u"||s===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof s!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(s)+", string expected"));if(o.hooks&&(o.hooks.options=o),o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(s):s).then(l=>t(l,o)).then(l=>o.hooks?o.hooks.processAllTokens(l):l).then(l=>o.walkTokens?Promise.all(this.walkTokens(l,o.walkTokens)).then(()=>l):l).then(l=>n(l,o)).then(l=>o.hooks?o.hooks.postprocess(l):l).catch(a);try{o.hooks&&(s=o.hooks.preprocess(s));let l=t(s,o);o.hooks&&(l=o.hooks.processAllTokens(l)),o.walkTokens&&this.walkTokens(l,o.walkTokens);let f=n(l,o);return o.hooks&&(f=o.hooks.postprocess(f)),f}catch(l){return a(l)}}}#t(t,n){return s=>{if(s.message+=`
|
|
90
|
+
Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+ze(s.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(s);throw s}}}const ln=new np;function le(e,t){return ln.parse(e,t)}le.options=le.setOptions=function(e){return ln.setOptions(e),le.defaults=ln.defaults,Vl(le.defaults),le},le.getDefaults=_i,le.defaults=an,le.use=function(...e){return ln.use(...e),le.defaults=ln.defaults,Vl(le.defaults),le},le.walkTokens=function(e,t){return ln.walkTokens(e,t)},le.parseInline=ln.parseInline,le.Parser=ft,le.parser=ft.parse,le.Renderer=Js,le.TextRenderer=Ii,le.Lexer=ut,le.lexer=ut.lex,le.Tokenizer=Gs,le.Hooks=qs,le.parse=le,le.options,le.setOptions,le.use,le.walkTokens,le.parseInline,ft.parse,ut.lex;function sp(e){let t=0;for(let s=0;s<e.length;s++)t=e.charCodeAt(s)+((t<<5)-t);let n="#";for(let s=0;s<3;s++){const i=t>>s*8&255;n+=("00"+i.toString(16)).slice(-2)}return n}function Qs(e){return e<10?`0${e}`:`${e}`}function rc(e){e instanceof Date||(e=new Date(e));const t=e.getFullYear(),n=e.getMonth()+1,s=e.getDate();return`${t}-${Qs(n)}-${Qs(s)}`}function ic(e){e instanceof Date||(e=new Date(e));const t=new Date,n=rc(e);if(rc(t)===n){const s=e.getHours(),i=e.getMinutes();return`${Qs(s)}:${Qs(i)}`}return n}const rp=["id"],ip={class:"pt-2 pb-3 px-4 text-base bg-base-200 rounded-lg dark:bg-gray-900"},op={class:"flex justify-between items-center font-sans"},ap={class:"flex items-center text-sm text-base-content dark:text-white"},lp={class:"ac-avatar me-2"},cp={key:0,class:"w-6 h-6"},up=["src","alt"],fp={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},dp=["data-tip"],hp=[ae("i",{class:"bi bi-patch-check-fill text-success"},null,-1)],mp=["href"],pp=["datetime","title"],gp=["title","aria-label"],_p=[ae("i",{class:"bi bi-reply-fill h-4 w-4"},null,-1)],bp=["href"],yp=["innerHTML"],kp={key:1,class:"text-gray-500 break-words overflow-x-auto whitespace-pre-line pb-3 mb-0 dark:text-gray-400"},wp=["href"],vp={key:2,class:"italic mt-4 text-emerald-600 mb-0 text-sm dark:text-emerald-300"},Ep=Xt({...{name:"CommentItem"},props:{comment:{},isFirstLevel:{type:Boolean},ancestorId:{}},setup(e){const t=e,{t:n}=on(),s=Ks(),{user:i}=qr();let r;const o=se(Date.now()),a=se(!1),l=De(()=>t.comment.userId===i.value?.sub&&o.value-t.comment.createdAt.getTime()<36e5),f=De(()=>{if(t.comment.isAdmin)return n("admin");let u=t.comment.user?.name||n("anonymous");return u=u.replace(/@[\w-]+\.[\w-]{2,63}$/,""),u});function c(u){return`${location.origin}${location.pathname}#awcm-${u}`}function d(u){if(t.ancestorId){const w=s.comments[t.ancestorId]?.children?.find(E=>Number(E.id)===Number(u));return w?.user?.name||w?.user?.email||""}return""}return Es(()=>{l.value&&(r=setInterval(()=>{o.value=Date.now(),l.value||clearInterval(r)},1e3))}),Oo(()=>{clearInterval(r)}),(u,g)=>{const w=fu("comment-item",!0);return q(),re("div",{class:rs(["comment-item rounded-lg my-4 target:outline target:outline-green-500 target:outline-2 dark:target:outline-1",{"animated flash":u.comment.isNew}]),id:"awcm-"+u.comment.id,onAnimationend:g[6]||(g[6]=E=>u.comment.isNew=!1)},[ae("div",ip,[ae("header",op,[ae("div",ap,[ae("div",lp,[u.comment.user.avatar?(q(),re("div",cp,[ae("img",{class:"rounded-full max-w-full max-h-full",src:u.comment.user.avatar,alt:f.value},null,8,up)])):(q(),re("div",{key:1,class:"avatar-char rounded-full w-6 h-6 text-center",style:ss({"background-color":Z(sp)(f.value)})},[ae("span",fp,_e(f.value.substring(0,1)),1)],4))]),qt(_e(f.value),1),u.comment.isAdmin?(q(),re("div",{key:0,class:"ac-tooltip ms-2","data-tip":Z(n)("admin")},hp,8,dp)):Pe("",!0),ae("a",{class:"ms-4 no-underline hover:underline hover:decoration-green-middle",href:c(u.comment.id)},[ae("time",{class:"text-xs text-gray-600 dark:text-gray-400",datetime:u.comment.createdAt,title:Z(ic)(u.comment.createdAt)},_e(Z(ic)(u.comment.createdAt)),9,pp)],8,mp),l.value?(q(),re("button",{key:1,class:"ac-btn ac-btn-link ac-btn-xs ms-4 hover:no-underline",type:"button",onClick:g[0]||(g[0]=E=>a.value=!a.value)},_e(Z(n)("edit")),1)):Pe("",!0)]),ae("button",{class:"ac-btn ac-btn-sm ac-btn-circle border-0 -me-1.5",type:"button",title:Z(n)("reply"),"aria-label":Z(n)("reply"),onClick:g[1]||(g[1]=E=>u.comment.isReplying=!u.comment.isReplying)},_p,8,gp)]),u.comment.isAdmin?(q(),re(Ie,{key:0},[u.comment.parentId&&u.comment.parentId!==u.comment.ancestorId?(q(),re("a",{key:0,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",href:`#awcm-${u.comment.parentId}`,target:"_self"},"@"+_e(d(u.comment.parentId)),9,bp)):Pe("",!0),ae("article",{class:"text-gray-500 break-words overflow-x-auto dark:text-gray-400",innerHTML:Z(le)(u.comment.content)},null,8,yp)],64)):(q(),re("p",kp,[u.comment.parentId&&u.comment.parentId!==u.comment.ancestorId?(q(),re("a",{key:0,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",href:`#awcm-${u.comment.parentId}`,target:"_self"},"@"+_e(d(u.comment.parentId)),9,wp)):Pe("",!0),qt(_e(u.comment.content),1)])),u.comment.status===Z(Vs).Pending?(q(),re("p",vp,_e(Z(n)("approve_hint")),1)):Pe("",!0)]),a.value?(q(),mn(zs,{key:0,class:"mt-3","no-version":"",content:u.comment.content,"current-id":u.comment.id,status:u.comment.status,onUpdate:g[2]||(g[2]=E=>u.comment.content=E),onClose:g[3]||(g[3]=E=>a.value=!1)},null,8,["content","current-id","status"])):Pe("",!0),u.comment.isReplying&&u.isFirstLevel?(q(),mn(zs,{key:1,class:"mt-3 ms-7","no-version":"","ancestor-id":u.ancestorId,"parent-id":Number(u.comment.id),onClose:g[4]||(g[4]=E=>u.comment.isReplying=!1)},null,8,["ancestor-id","parent-id"])):Pe("",!0),u.comment.children?.length?(q(!0),re(Ie,{key:2},So(u.comment.children,E=>(q(),mn(w,{class:"ms-7 mt-2",key:E.id,comment:E,"ancestor-id":u.ancestorId,"is-first-level":!1},null,8,["comment","ancestor-id"]))),128)):Pe("",!0),u.comment.isReplying&&!u.isFirstLevel?(q(),mn(zs,{key:3,class:"mt-3 ms-7","no-version":"","ancestor-id":u.ancestorId,"parent-id":u.comment.id,onClose:g[5]||(g[5]=E=>u.comment.isReplying=!1)},null,8,["ancestor-id","parent-id"])):Pe("",!0)],42,rp)}}}),Ip={key:0,class:"comments-wrapper"},Tp=["disabled"],Lp={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},Op={key:1,class:"pt-8 text-center"},Sp=[ae("span",{class:"ac-loading ac-loading-spinner"},null,-1)],xp=Xt({...{name:"CommentSections"},setup(e){const{t}=on(),n=Ks();n.loadComments(!0);function s(){n.start+=20,n.loadComments()}return(i,r)=>Z(n).isLoaded?(q(),re("div",Ip,[(q(!0),re(Ie,null,So(Object.values(Z(n).comments).reverse(),o=>(q(),mn(Ep,{key:o.id,comment:o,"parent-id":o.parentId,"ancestor-id":o.id,"is-first-level":""},null,8,["comment","parent-id","ancestor-id"]))),128)),Z(n).hasMore?(q(),re("button",{key:0,class:"ac-btn h-11 min-h-fit ac-btn-block text-white border-0 bg-green-middle hover:bg-green-middle/75",type:"button",onClick:s,disabled:Z(n).loadingMore},[Z(n).loadingMore?(q(),re("span",Lp)):Pe("",!0),qt(_e(Z(t)("load_more")),1)],8,Tp)):Pe("",!0)])):(q(),re("div",Op,Sp))}}),Cp={class:"awesome-comment"},Np={key:0,class:"ac-alert ac-alert-error mb-4"},Pp={class:"flex justify-between items-center py-2"},Ap={class:"text-lg font-bold text-base-content my-0"},Rp={key:0,class:"ac-loading ac-loading-spinner"},Mp={key:1,class:"ac-dropdown ac-dropdown-end"},Dp={key:0,class:"ac-avatar flex",tabindex:"0"},Fp={class:"w-6 h-6 rounded-full"},$p=["alt","src"],Up={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},jp={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},Wp={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},Hp={class:"text-base-content"},Vp=["disabled"],Kp=["disabled"],zp=Xt({__name:"App",setup(e){const t=Ks(),{t:n}=on(),{isAuthenticated:s,isLoading:i,user:r,loginWithPopup:o,logout:a}=qr(),l=De(()=>{const d=t.hasMore?t.total+"+":t.total;if(t.total===0)return"0";const u=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:t.total});return document.body.dispatchEvent(u),d});function f(){o()}function c(){a({openUrl:!1})}return(d,u)=>(q(),re("div",Cp,[Z(t).message?(q(),re("div",Np,[ae("p",null,_e(Z(t).message),1)])):Pe("",!0),ae("header",Pp,[ae("h2",Ap,_e(Z(n)("discussion"))+" ("+_e(l.value)+")",1),Z(i)?(q(),re("span",Rp)):(q(),re("div",Mp,[Z(s)&&Z(r)?(q(),re(Ie,{key:0},[Z(r).picture?(q(),re("label",Dp,[ae("div",Fp,[ae("img",{class:"w-full h-full block",alt:Z(r).name||Z(r).email,src:Z(r).picture},null,8,$p)])])):(q(),re("label",Up,_e(Z(r).email),1)),ae("ul",jp,[Z(r).picture?(q(),re("li",Wp,[ae("span",Hp,_e(Z(r).email),1)])):Pe("",!0),ae("li",null,[ae("button",{class:"border-0 bg-base-100",type:"button",disabled:Z(i),onClick:c},_e(Z(n)("logout")),9,Vp)])])],64)):(q(),re("button",{key:1,class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",disabled:Z(i),onClick:f},_e(Z(n)("login")),9,Kp))]))]),Ne(zs),Ne(xp)]))}}),oc=[];let Ti=0,ac=null;function Yp(e,t,n=navigator.language){const s=jf(zp),i=Kf(),r=ac||Ra({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),o=em({legacy:!1,locale:n,fallbackLocale:"en",messages:fm});return s.use(r),s.use(i),s.use(o),s}return{postId:"",apiUrl:"",domain:"",clientId:"",language:"",init(e,{postId:t,apiUrl:n,domain:s,clientId:i,locale:r=navigator.language}={}){t??=this.postId,n??=this.apiUrl,s??=this.domain,i??=this.clientId;const o=Yp(s,i,r);o.provide("ApiBaseUrl",n),o.provide("postId",t),o.provide("Auth0Domain",s),o.provide("comments",oc),o.provide("total",Ti),o.mount(e)},async preload(e,t,n,s){this.postId=e,this.apiUrl=t,this.domain=n,this.clientId=s,ac=Ra({domain:n,clientId:s,authorizationParams:{redirect_uri:window.location.origin}});const i=await fetch(`${t}/api/comments?postId=${e}`);i.ok||console.log("[Awesome comment] Failed to preload comments.");const r=await i.json();if(r.data){oc.push(...r.data),Ti=r.meta?.total||r.data.length;const o=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:Ti});document.body.dispatchEvent(o)}}}}();
|