From 587457e26d4aabfdff3649df8b9d7c54139ffb47 Mon Sep 17 00:00:00 2001 From: nextcloud-command Date: Sun, 18 Oct 2026 07:54:32 +0000 Subject: [PATCH] fix(deps): Fix npm audit Signed-off-by: GitHub --- js/password_policy-settings.mjs | 14 +- js/password_policy-settings.mjs.license | 10 +- js/password_policy-settings.mjs.map | 2 +- js/password_policy-settings.mjs.map.license | 10 +- package-lock.json | 884 +++++++++----------- 5 files changed, 418 insertions(+), 502 deletions(-) diff --git a/js/password_policy-settings.mjs b/js/password_policy-settings.mjs index ef75c18f..43432a3d 100644 --- a/js/password_policy-settings.mjs +++ b/js/password_policy-settings.mjs @@ -1,11 +1,11 @@ -const pa=globalThis||void 0||self;function Ss(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const he={},In=[],Et=()=>{},Xl=()=>!1,Ji=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Xi=e=>e.startsWith("onUpdate:"),He=Object.assign,xs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},dd=Object.prototype.hasOwnProperty,we=(e,t)=>dd.call(e,t),Z=Array.isArray,Qn=e=>Zo(e)==="[object Map]",Kl=e=>Zo(e)==="[object Set]",ha=e=>Zo(e)==="[object Date]",te=e=>typeof e=="function",Oe=e=>typeof e=="string",xt=e=>typeof e=="symbol",Ee=e=>e!==null&&typeof e=="object",Yl=e=>(Ee(e)||te(e))&&te(e.then)&&te(e.catch),Zl=Object.prototype.toString,Zo=e=>Zl.call(e),pd=e=>Zo(e).slice(8,-1),Il=e=>Zo(e)==="[object Object]",As=e=>Oe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ao=Ss(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ki=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},hd=/-\w/g,nt=Ki(e=>e.replace(hd,t=>t.slice(1).toUpperCase())),fd=/\B([A-Z])/g,on=Ki(e=>e.replace(fd,"-$1").toLowerCase()),Yi=Ki(e=>e.charAt(0).toUpperCase()+e.slice(1)),gi=Ki(e=>e?`on${Yi(e)}`:""),Je=(e,t)=>!Object.is(e,t),yr=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},md=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let fa;const Ti=()=>fa||(fa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof pa<"u"?pa:{});function hn(e){if(Z(e)){const t={};for(let n=0;n{if(n){const o=n.split(vd);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function xe(e){let t="";if(Oe(e))t=e;else if(Z(e))for(let n=0;n!!(e&&e.__v_isRef===!0),fe=e=>Oe(e)?e:e==null?"":Z(e)||Ee(e)&&(e.toString===Zl||!te(e.toString))?tc(e)?fe(e.value):JSON.stringify(e,nc,2):String(e),nc=(e,t)=>tc(t)?nc(e,t.value):Qn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,i],r)=>(n[br(o,r)+" =>"]=i,n),{})}:Kl(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>br(n))}:xt(t)?br(t):Ee(t)&&!Z(t)&&!Il(t)?String(t):t,br=(e,t="")=>{var n;return xt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function Td(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}let qe;class Sd{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&qe&&(qe.active?(this.parent=qe,this.index=(qe.scopes||(qe.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0){if(qe===this)qe=this.prevScope;else{let t=qe;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,o;for(n=0,o=this.effects.length;n0)return;if($o){let t=$o;for($o=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Co;){let t=Co;for(Co=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function sc(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ac(e){let t,n=e.depsTail,o=n;for(;o;){const i=o.prevDep;o.version===-1?(o===n&&(n=i),Rs(o),Ad(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=i}e.deps=t,e.depsTail=n}function Jr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(lc(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function lc(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===jo)||(e.globalVersion=jo,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Jr(e))))return;e.flags|=2;const t=e.dep,n=Ae,o=Tt;Ae=e,Tt=!0;try{sc(e);const i=e.fn(e._value);(t.version===0||Je(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Ae=n,Tt=o,ac(e),e.flags&=-3}}function Rs(e,t=!1){const{dep:n,prevSub:o,nextSub:i}=e;if(o&&(o.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)Rs(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ad(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Tt=!0;const cc=[];function Ht(){cc.push(Tt),Tt=!1}function zt(){const e=cc.pop();Tt=e===void 0?!0:e}function ma(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ae;Ae=void 0;try{t()}finally{Ae=n}}}let jo=0;class Cd{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Zi{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Ae||!Tt||Ae===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ae)n=this.activeLink=new Cd(Ae,this),Ae.deps?(n.prevDep=Ae.depsTail,Ae.depsTail.nextDep=n,Ae.depsTail=n):Ae.deps=Ae.depsTail=n,uc(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=Ae.depsTail,n.nextDep=void 0,Ae.depsTail.nextDep=n,Ae.depsTail=n,Ae.deps===n&&(Ae.deps=o)}return n}trigger(t){this.version++,jo++,this.notify(t)}notify(t){$s();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ks()}}}function uc(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)uc(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Xr=new WeakMap,Pn=Symbol(""),Kr=Symbol(""),Uo=Symbol("");function et(e,t,n){if(Tt&&Ae){let o=Xr.get(e);o||Xr.set(e,o=new Map);let i=o.get(n);i||(o.set(n,i=new Zi),i.map=o,i.key=n),i.track()}}function Yt(e,t,n,o,i,r){const s=Xr.get(e);if(!s){jo++;return}const l=a=>{a&&a.trigger()};if($s(),t==="clear")s.forEach(l);else{const a=Z(e),d=a&&As(n);if(a&&n==="length"){const c=Number(o);s.forEach((p,m)=>{(m==="length"||m===Uo||!xt(m)&&m>=c)&&l(p)})}else switch((n!==void 0||s.has(void 0))&&l(s.get(n)),d&&l(s.get(Uo)),t){case"add":a?d&&l(s.get("length")):(l(s.get(Pn)),Qn(e)&&l(s.get(Kr)));break;case"delete":a||(l(s.get(Pn)),Qn(e)&&l(s.get(Kr)));break;case"set":Qn(e)&&l(s.get(Pn));break}}ks()}function Gn(e){const t=_e(e);return t===e?t:(et(t,"iterate",Uo),gt(e)?t:t.map(At))}function Ii(e){return et(e=_e(e),"iterate",Uo),e}function Bt(e,t){return tn(e)?Ho(Mn(e)?At(t):t):At(t)}const $d={__proto__:null,[Symbol.iterator](){return wr(this,Symbol.iterator,e=>Bt(this,e))},concat(...e){return Gn(this).concat(...e.map(t=>Z(t)?Gn(t):t))},entries(){return wr(this,"entries",e=>(e[1]=Bt(this,e[1]),e))},every(e,t){return qt(this,"every",e,t,void 0,arguments)},filter(e,t){return qt(this,"filter",e,t,n=>n.map(o=>Bt(this,o)),arguments)},find(e,t){return qt(this,"find",e,t,n=>Bt(this,n),arguments)},findIndex(e,t){return qt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return qt(this,"findLast",e,t,n=>Bt(this,n),arguments)},findLastIndex(e,t){return qt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return qt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Er(this,"includes",e)},indexOf(...e){return Er(this,"indexOf",e)},join(e){return Gn(this).join(e)},lastIndexOf(...e){return Er(this,"lastIndexOf",e)},map(e,t){return qt(this,"map",e,t,void 0,arguments)},pop(){return fo(this,"pop")},push(...e){return fo(this,"push",e)},reduce(e,...t){return ga(this,"reduce",e,t)},reduceRight(e,...t){return ga(this,"reduceRight",e,t)},shift(){return fo(this,"shift")},some(e,t){return qt(this,"some",e,t,void 0,arguments)},splice(...e){return fo(this,"splice",e)},toReversed(){return Gn(this).toReversed()},toSorted(e){return Gn(this).toSorted(e)},toSpliced(...e){return Gn(this).toSpliced(...e)},unshift(...e){return fo(this,"unshift",e)},values(){return wr(this,"values",e=>Bt(this,e))}};function wr(e,t,n){const o=Ii(e),i=o[t]();return o!==e&&!gt(e)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.done||(r.value=n(r.value)),r}),i}const kd=Array.prototype;function qt(e,t,n,o,i,r){const s=Ii(e),l=s!==e&&!gt(e),a=s[t];if(a!==kd[t]){const p=a.apply(e,r);return l?At(p):p}let d=n;s!==e&&(l?d=function(p,m){return n.call(this,Bt(e,p),m,e)}:n.length>2&&(d=function(p,m){return n.call(this,p,m,e)}));const c=a.call(s,d,o);return l&&i?i(c):c}function ga(e,t,n,o){const i=Ii(e),r=i!==e&&!gt(e);let s=n,l=!1;i!==e&&(r?(l=o.length===0,s=function(d,c,p){return l&&(l=!1,d=Bt(e,d)),n.call(this,d,Bt(e,c),p,e)}):n.length>3&&(s=function(d,c,p){return n.call(this,d,c,p,e)}));const a=i[t](s,...o);return l?Bt(e,a):a}function Er(e,t,n){const o=_e(e);et(o,"iterate",Uo);const i=o[t](...n);return(i===-1||i===!1)&&Ps(n[0])?(n[0]=_e(n[0]),o[t](...n)):i}function fo(e,t,n=[]){Ht(),$s();const o=_e(e)[t].apply(e,n);return ks(),zt(),o}const Rd=Ss("__proto__,__v_isRef,__isVue"),dc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(xt));function Od(e){xt(e)||(e=String(e));const t=_e(this);return et(t,"has",e),t.hasOwnProperty(e)}class pc{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){if(n==="__v_skip")return t.__v_skip;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 o===(i?r?jd:vc:r?gc:mc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=Z(t);if(!i){let a;if(s&&(a=$d[n]))return a;if(n==="hasOwnProperty")return Od}const l=Reflect.get(t,n,ot(t)?t:o);if((xt(n)?dc.has(n):Rd(n))||(i||et(t,"get",n),r))return l;if(ot(l)){const a=s&&As(n)?l:l.value;return i&&Ee(a)?Zr(a):a}return Ee(l)?i?Zr(l):Os(l):l}}class hc extends pc{constructor(t=!1){super(!1,t)}set(t,n,o,i){let r=t[n];const s=Z(t)&&As(n);if(!this._isShallow){const d=tn(r);if(!gt(o)&&!tn(o)&&(r=_e(r),o=_e(o)),!s&&ot(r)&&!ot(o))return d||(r.value=o),!0}const l=s?Number(n)e,ci=e=>Reflect.getPrototypeOf(e);function Nd(e,t,n){return function(...o){const i=this.__v_raw,r=_e(i),s=Qn(r),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,d=i[e](...o),c=n?Yr:t?Ho:At;return!t&&et(r,"iterate",a?Kr:Pn),He(Object.create(d),{next(){const{value:p,done:m}=d.next();return m?{value:p,done:m}:{value:l?[c(p[0]),c(p[1])]:c(p),done:m}}})}}function ui(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Dd(e,t){const n={get(o){const i=this.__v_raw,r=_e(i),s=_e(o);e||(Je(o,s)&&et(r,"get",o),et(r,"get",s));const{has:l}=ci(r),a=t?Yr:e?Ho:At;if(l.call(r,o))return a(i.get(o));if(l.call(r,s))return a(i.get(s));i!==r&&i.get(o)},get size(){const o=this.__v_raw;return!e&&et(_e(o),"iterate",Pn),o.size},has(o){const i=this.__v_raw,r=_e(i),s=_e(o);return e||(Je(o,s)&&et(r,"has",o),et(r,"has",s)),o===s?i.has(o):i.has(o)||i.has(s)},forEach(o,i){const r=this,s=r.__v_raw,l=_e(s),a=t?Yr:e?Ho:At;return!e&&et(l,"iterate",Pn),s.forEach((d,c)=>o.call(i,a(d),a(c),r))}};return He(n,e?{add:ui("add"),set:ui("set"),delete:ui("delete"),clear:ui("clear")}:{add(o){const i=_e(this),r=ci(i),s=_e(o),l=!t&&!gt(o)&&!tn(o)?s:o;return r.has.call(i,l)||Je(o,l)&&r.has.call(i,o)||Je(s,l)&&r.has.call(i,s)||(i.add(l),Yt(i,"add",l,l)),this},set(o,i){!t&&!gt(i)&&!tn(i)&&(i=_e(i));const r=_e(this),{has:s,get:l}=ci(r);let a=s.call(r,o);a||(o=_e(o),a=s.call(r,o));const d=l.call(r,o);return r.set(o,i),a?Je(i,d)&&Yt(r,"set",o,i):Yt(r,"add",o,i),this},delete(o){const i=_e(this),{has:r,get:s}=ci(i);let l=r.call(i,o);l||(o=_e(o),l=r.call(i,o)),s&&s.call(i,o);const a=i.delete(o);return l&&Yt(i,"delete",o,void 0),a},clear(){const o=_e(this),i=o.size!==0,r=o.clear();return i&&Yt(o,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=Nd(o,e,t)}),n}function Qi(e,t){const n=Dd(e,t);return(o,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?o:Reflect.get(we(n,i)&&i in o?n:o,i,r)}const Fd={get:Qi(!1,!1)},Bd={get:Qi(!1,!0)},Vd={get:Qi(!0,!1)},qy={get:Qi(!0,!0)},mc=new WeakMap,gc=new WeakMap,vc=new WeakMap,jd=new WeakMap;function Ud(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Os(e){return tn(e)?e:Ls(e,!1,Ld,Fd,mc)}function Hd(e){return Ls(e,!1,Md,Bd,gc)}function Zr(e){return Ls(e,!0,Pd,Vd,vc)}function Ls(e,t,n,o,i){if(!Ee(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const r=i.get(e);if(r)return r;const s=Ud(pd(e));if(s===0)return e;const l=new Proxy(e,s===2?o:n);return i.set(e,l),l}function Mn(e){return tn(e)?Mn(e.__v_raw):!!(e&&e.__v_isReactive)}function tn(e){return!!(e&&e.__v_isReadonly)}function gt(e){return!!(e&&e.__v_isShallow)}function Ps(e){return e?!!e.__v_raw:!1}function _e(e){const t=e&&e.__v_raw;return t?_e(t):e}function zd(e){return!we(e,"__v_skip")&&Object.isExtensible(e)&&Ql(e,"__v_skip",!0),e}const At=e=>Ee(e)?Os(e):e,Ho=e=>Ee(e)?Zr(e):e;function ot(e){return e?e.__v_isRef===!0:!1}function Ir(e){return yc(e,!1)}function Gd(e){return yc(e,!0)}function yc(e,t){return ot(e)?e:new Wd(e,t)}class Wd{constructor(t,n){this.dep=new Zi,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:_e(t),this._value=n?t:At(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||gt(t)||tn(t);t=o?t:_e(t),Je(t,n)&&(this._rawValue=t,this._value=o?t:At(t),this.dep.trigger())}}function X(e){return ot(e)?e.value:e}function va(e){return te(e)?e():X(e)}const qd={get:(e,t,n)=>t==="__v_raw"?e:X(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const i=e[t];return ot(i)&&!ot(n)?(i.value=n,!0):Reflect.set(e,t,n,o)}};function bc(e){return Mn(e)?e:new Proxy(e,qd)}class Jd{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Zi,{get:o,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=o,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Xd(e){return new Jd(e)}class Kd{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Zi(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=jo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&Ae!==this)return rc(this,!0),!0}get value(){const t=this.dep.track();return lc(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Yd(e,t,n=!1){let o,i;return te(e)?o=e:(o=e.get,i=e.set),new Kd(o,i,n)}const di={},Si=new WeakMap;let Cn;function Zd(e,t=!1,n=Cn){if(n){let o=Si.get(n);o||Si.set(n,o=[]),o.push(e)}}function Id(e,t,n=he){const{immediate:o,deep:i,once:r,scheduler:s,augmentJob:l,call:a}=n,d=$=>i?$:gt($)||i===!1||i===0?Zt($,1):Zt($);let c,p,m,g,_=!1,v=!1;if(ot(e)?(p=()=>e.value,_=gt(e)):Mn(e)?(p=()=>d(e),_=!0):Z(e)?(v=!0,_=e.some($=>Mn($)||gt($)),p=()=>e.map($=>{if(ot($))return $.value;if(Mn($))return d($);if(te($))return a?a($,2):$()})):te(e)?t?p=a?()=>a(e,2):e:p=()=>{if(m){Ht();try{m()}finally{zt()}}const $=Cn;Cn=c;try{return a?a(e,3,[g]):e(g)}finally{Cn=$}}:p=Et,t&&i){const $=p,Q=i===!0?1/0:i;p=()=>Zt($(),Q)}const k=xd(),R=()=>{c.stop(),k&&k.active&&xs(k.effects,c)};if(r&&t){const $=t;t=(...Q)=>{const re=$(...Q);return R(),re}}let P=v?new Array(e.length).fill(di):di;const D=$=>{if(!(!(c.flags&1)||!c.dirty&&!$))if(t){const Q=c.run();if($||i||_||(v?Q.some((re,oe)=>Je(re,P[oe])):Je(Q,P))){m&&m();const re=Cn;Cn=c;try{const oe=[Q,P===di?void 0:v&&P[0]===di?[]:P,g];P=Q,a?a(t,3,oe):t(...oe)}finally{Cn=re}}}else c.run()};return l&&l(D),c=new oc(p),c.scheduler=s?()=>s(D,!1):D,g=$=>Zd($,!1,c),m=c.onStop=()=>{const $=Si.get(c);if($){if(a)a($,4);else for(const Q of $)Q();Si.delete(c)}},t?o?D(!0):P=c.run():s?s(D.bind(null,!0),!0):c.run(),R.pause=c.pause.bind(c),R.resume=c.resume.bind(c),R.stop=R,R}function Zt(e,t=1/0,n){if(t<=0||!Ee(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,ot(e))Zt(e.value,t,n);else if(Z(e))for(let o=0;o{Zt(o,t,n)});else if(Il(e)){for(const o in e)Zt(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Zt(e[o],t,n)}return e}function Io(e,t,n,o){try{return o?e(...o):e()}catch(i){er(i,t,n)}}function Ct(e,t,n,o){if(te(e)){const i=Io(e,t,n,o);return i&&Yl(i)&&i.catch(r=>{er(r,t,n)}),i}if(Z(e)){const i=[];for(let r=0;r>>1,i=st[o],r=zo(i);r=zo(n)?st.push(e):st.splice(ep(t),0,e),e.flags|=1,Ec()}}function Ec(){xi||(xi=_c.then(xc))}function Tc(e){Z(e)?eo.push(...e):un&&e.id===-1?un.splice(Kn+1,0,e):e.flags&1||(eo.push(e),e.flags|=1),Ec()}function ya(e,t,n=Nt+1){for(;nzo(n)-zo(o));if(eo.length=0,un){un.push(...t);return}for(un=t,Kn=0;Kne.id==null?e.flags&2?-1:1/0:e.id;function xc(e){try{for(Nt=0;NtRe;function Re(e,t=Xe,n){if(!t||e._n)return e;const o=(...i)=>{o._d&&Ri(-1);const r=Ai(t);let s;try{s=e(...i)}finally{Ai(r),o._d&&Ri(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function Qr(e,t){if(Xe===null)return e;const n=rr(Xe),o=e.dirs||(e.dirs=[]);for(let i=0;i1)return n&&te(t)?t.call(o&&o.proxy):t}}const rp=Symbol.for("v-scx"),sp=()=>fn(rp);function ap(e,t){return Ns(e,null,{flush:"sync"})}function to(e,t,n){return Ns(e,t,n)}function Ns(e,t,n=he){const{immediate:o,deep:i,flush:r,once:s}=n,l=He({},n),a=t&&o||!t&&r!=="post";let d;if(qo){if(r==="sync"){const g=sp();d=g.__watcherHandles||(g.__watcherHandles=[])}else if(!a){const g=()=>{};return g.stop=Et,g.resume=Et,g.pause=Et,g}}const c=tt;l.call=(g,_,v)=>Ct(g,c,_,v);let p=!1;r==="post"?l.scheduler=g=>{ct(g,c&&c.suspense)}:r!=="sync"&&(p=!0,l.scheduler=(g,_)=>{_?g():Ms(g)}),l.augmentJob=g=>{t&&(g.flags|=4),p&&(g.flags|=2,c&&(g.id=c.uid,g.i=c))};const m=Id(e,t,l);return qo&&(d?d.push(m):a&&m()),m}function lp(e,t,n){const o=this.proxy,i=Oe(e)?e.includes(".")?Ac(o,e):()=>o[e]:e.bind(o,o);let r;te(t)?r=t:(r=t.handler,n=t);const s=ti(this),l=Ns(i,r.bind(o),n);return s(),l}function Ac(e,t){const n=t.split(".");return()=>{let o=e;for(let i=0;ie.__isTeleport,Tr=Symbol("_leaveCb");function Ds(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ds(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function at(e,t){return te(e)?He({name:e.name},t,{setup:e}):e}function Cc(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function dp(e){const t=ei(),n=Gd(null);if(t){const o=t.refs===he?t.refs={}:t.refs;Object.defineProperty(o,e,{enumerable:!0,get:()=>n.value,set:i=>n.value=i})}return n}function ba(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Ci=new WeakMap;function ko(e,t,n,o,i=!1){if(Z(e)){e.forEach((v,k)=>ko(v,t&&(Z(t)?t[k]:t),n,o,i));return}if(no(o)&&!i){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&ko(e,t,n,o.component.subTree);return}const r=o.shapeFlag&4?rr(o.component):o.el,s=i?null:r,{i:l,r:a}=e,d=t&&t.r,c=l.refs===he?l.refs={}:l.refs,p=l.setupState,m=_e(p),g=p===he?Xl:v=>ba(c,v)?!1:we(m,v),_=(v,k)=>!(k&&ba(c,k));if(d!=null&&d!==a){if(_a(t),Oe(d))c[d]=null,g(d)&&(p[d]=null);else if(ot(d)){const v=t;_(d,v.k)&&(d.value=null),v.k&&(c[v.k]=null)}}if(te(a)){Ht();try{Io(a,l,12,[s,c])}finally{zt()}}else{const v=Oe(a),k=ot(a);if(v||k){const R=()=>{if(e.f){const P=v?g(a)?p[a]:c[a]:_()||!e.k?a.value:c[e.k];if(i)Z(P)&&xs(P,r);else if(Z(P))P.includes(r)||P.push(r);else if(v)c[a]=[r],g(a)&&(p[a]=c[a]);else{const D=[r];_(a,e.k)&&(a.value=D),e.k&&(c[e.k]=D)}}else v?(c[a]=s,g(a)&&(p[a]=s)):k&&(_(a,e.k)&&(a.value=s),e.k&&(c[e.k]=s))};if(s){const P=()=>{R(),Ci.delete(e)};P.id=-1,Ci.set(e,P),ct(P,n)}else _a(e),R()}}}function _a(e){const t=Ci.get(e);t&&(t.flags|=8,Ci.delete(e))}Ti().requestIdleCallback,Ti().cancelIdleCallback;const no=e=>!!e.type.__asyncLoader,$c=e=>e.type.__isKeepAlive;function pp(e,t){kc(e,"a",t)}function hp(e,t){kc(e,"da",t)}function kc(e,t,n=tt){const o=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(nr(t,o,n),n){let i=n.parent;for(;i&&i.parent;)$c(i.parent.vnode)&&fp(o,t,n,i),i=i.parent}}function fp(e,t,n,o){const i=nr(t,e,o,!0);or(()=>{xs(o[t],i)},n)}function nr(e,t,n=tt,o=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{Ht();const l=ti(n),a=Ct(t,n,e,s);return l(),zt(),a});return o?i.unshift(r):i.push(r),r}}const rn=e=>(t,n=tt)=>{(!qo||e==="sp")&&nr(e,(...o)=>t(...o),n)},mp=rn("bm"),Fs=rn("m"),Rc=rn("bu"),gp=rn("u"),vp=rn("bum"),or=rn("um"),yp=rn("sp"),bp=rn("rtg"),_p=rn("rtc");function wp(e,t=tt){nr("ec",e,t)}const Oc="components";function nn(e,t){return Pc(Oc,e,!0,t)||e}const Lc=Symbol.for("v-ndc");function Bs(e){return Oe(e)?Pc(Oc,e,!1)||e:e||Lc}function Pc(e,t,n=!0,o=!1){const i=Xe||tt;if(i){const r=i.type;{const l=rh(r,!1);if(l&&(l===t||l===nt(t)||l===Yi(nt(t))))return r}const s=wa(i[e]||r[e],t)||wa(i.appContext[e],t);return!s&&o?r:s}}function wa(e,t){return e&&(e[t]||e[nt(t)]||e[Yi(nt(t))])}function Mc(e,t,n,o){let i;const r=n,s=Z(e);if(s||Oe(e)){const l=s&&Mn(e);let a=!1,d=!1;l&&(a=!gt(e),d=tn(e),e=Ii(e)),i=new Array(e.length);for(let c=0,p=e.length;ct(l,a,void 0,r));else{const l=Object.keys(e);i=new Array(l.length);for(let a=0,d=l.length;a{const r=o.fn(...i);return r&&(r.key=o.key),r}:o.fn)}return e}function De(e,t,n={},o,i){if(Xe.ce||Xe.parent&&no(Xe.parent)&&Xe.parent.ce){const d=Object.keys(n).length>0;return t!=="default"&&(n.name=t),L(),$e(Ue,null,[le("slot",n,o&&o())],d?-2:64)}let r=e[t];r&&r._c&&(r._d=!1),L();const s=r&&Nc(r(n)),l=n.key||s&&s.key,a=$e(Ue,{key:(l&&!xt(l)?l:`_${t}`)+(!s&&o?"_fb":"")},s||(o?o():[]),s&&e._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function Nc(e){return e.some(t=>Wo(t)?!(t.type===Gt||t.type===Ue&&!Nc(t.children)):!0)?e:null}function Ea(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:gi(o)]=e[o];return n}const es=e=>e?nu(e)?rr(e):es(e.parent):null,Ro=He(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=>es(e.parent),$root:e=>es(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Fc(e),$forceUpdate:e=>e.f||(e.f=()=>{Ms(e.update)}),$nextTick:e=>e.n||(e.n=wc.bind(e.proxy)),$watch:e=>lp.bind(e)}),Sr=(e,t)=>e!==he&&!e.__isScriptSetup&&we(e,t),Tp={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:i,props:r,accessCache:s,type:l,appContext:a}=e;if(t[0]!=="$"){const m=s[t];if(m!==void 0)switch(m){case 1:return o[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(Sr(o,t))return s[t]=1,o[t];if(i!==he&&we(i,t))return s[t]=2,i[t];if(we(r,t))return s[t]=3,r[t];if(n!==he&&we(n,t))return s[t]=4,n[t];ts&&(s[t]=0)}}const d=Ro[t];let c,p;if(d)return t==="$attrs"&&et(e.attrs,"get",""),d(e);if((c=l.__cssModules)&&(c=c[t]))return c;if(n!==he&&we(n,t))return s[t]=4,n[t];if(p=a.config.globalProperties,we(p,t))return p[t]},set({_:e},t,n){const{data:o,setupState:i,ctx:r}=e;return Sr(i,t)?(i[t]=n,!0):o!==he&&we(o,t)?(o[t]=n,!0):we(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:i,props:r,type:s}},l){let a;return!!(n[l]||e!==he&&l[0]!=="$"&&we(e,l)||Sr(t,l)||we(r,l)||we(o,l)||we(Ro,l)||we(i.config.globalProperties,l)||(a=s.__cssModules)&&a[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:we(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Sp(){return xp().attrs}function xp(e){const t=ei();return t.setupContext||(t.setupContext=iu(t))}function $i(e){return Z(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Ta(e,t){return!e||!t?e||t:Z(e)&&Z(t)?e.concat(t):He({},$i(e),$i(t))}let ts=!0;function Ap(e){const t=Fc(e),n=e.proxy,o=e.ctx;ts=!1,t.beforeCreate&&Sa(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:s,watch:l,provide:a,inject:d,created:c,beforeMount:p,mounted:m,beforeUpdate:g,updated:_,activated:v,deactivated:k,beforeDestroy:R,beforeUnmount:P,destroyed:D,unmounted:$,render:Q,renderTracked:re,renderTriggered:oe,errorCaptured:ge,serverPrefetch:me,expose:pe,inheritAttrs:Te,components:w,directives:S,filters:j}=t;if(d&&Cp(d,o,null),s)for(const B in s){const V=s[B];te(V)&&(o[B]=V.bind(n))}if(i){const B=i.call(n,n);Ee(B)&&(e.data=Os(B))}if(ts=!0,r)for(const B in r){const V=r[B],H=te(V)?V.bind(n,n):te(V.get)?V.get.bind(n,n):Et,K=!te(V)&&te(V.set)?V.set.bind(n):Et,Y=ve({get:H,set:K});Object.defineProperty(o,B,{enumerable:!0,configurable:!0,get:()=>Y.value,set:ke=>Y.value=ke})}if(l)for(const B in l)Dc(l[B],o,n,B);if(a){const B=te(a)?a.call(n):a;Reflect.ownKeys(B).forEach(V=>{ip(V,B[V])})}c&&Sa(c,e,"c");function W(B,V){Z(V)?V.forEach(H=>B(H.bind(n))):V&&B(V.bind(n))}if(W(mp,p),W(Fs,m),W(Rc,g),W(gp,_),W(pp,v),W(hp,k),W(wp,ge),W(_p,re),W(bp,oe),W(vp,P),W(or,$),W(yp,me),Z(pe))if(pe.length){const B=e.exposed||(e.exposed={});pe.forEach(V=>{Object.defineProperty(B,V,{get:()=>n[V],set:H=>n[V]=H,enumerable:!0})})}else e.exposed||(e.exposed={});Q&&e.render===Et&&(e.render=Q),Te!=null&&(e.inheritAttrs=Te),w&&(e.components=w),S&&(e.directives=S),me&&Cc(e)}function Cp(e,t,n=Et){Z(e)&&(e=ns(e));for(const o in e){const i=e[o];let r;Ee(i)?"default"in i?r=fn(i.from||o,i.default,!0):r=fn(i.from||o):r=fn(i),ot(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[o]=r}}function Sa(e,t,n){Ct(Z(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Dc(e,t,n,o){let i=o.includes(".")?Ac(n,o):()=>n[o];if(Oe(e)){const r=t[e];te(r)&&to(i,r)}else if(te(e))to(i,e.bind(n));else if(Ee(e))if(Z(e))e.forEach(r=>Dc(r,t,n,o));else{const r=te(e.handler)?e.handler.bind(n):t[e.handler];te(r)&&to(i,r,e)}}function Fc(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,l=r.get(t);let a;return l?a=l:!i.length&&!n&&!o?a=t:(a={},i.length&&i.forEach(d=>ki(a,d,s,!0)),ki(a,t,s)),Ee(t)&&r.set(t,a),a}function ki(e,t,n,o=!1){const{mixins:i,extends:r}=t;r&&ki(e,r,n,!0),i&&i.forEach(s=>ki(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=$p[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const $p={data:xa,props:Aa,emits:Aa,methods:Eo,computed:Eo,beforeCreate:rt,created:rt,beforeMount:rt,mounted:rt,beforeUpdate:rt,updated:rt,beforeDestroy:rt,beforeUnmount:rt,destroyed:rt,unmounted:rt,activated:rt,deactivated:rt,errorCaptured:rt,serverPrefetch:rt,components:Eo,directives:Eo,watch:Rp,provide:xa,inject:kp};function xa(e,t){return t?e?function(){return He(te(e)?e.call(this,this):e,te(t)?t.call(this,this):t)}:t:e}function kp(e,t){return Eo(ns(e),ns(t))}function ns(e){if(Z(e)){const t={};for(let n=0;n{let c,p=he,m;return ap(()=>{const g=e[i];Je(c,g)&&(c=g,d())}),{get(){return a(),n.get?n.get(c):c},set(g){const _=n.set?n.set(g):g;if(!Je(_,c)&&!(p!==he&&Je(g,p)))return;const v=o.vnode.props,k=!!(v&&(t in v||i in v||r in v)&&(`onUpdate:${t}`in v||`onUpdate:${i}`in v||`onUpdate:${r}`in v));k||(c=g,d()),o.emit(`update:${t}`,_),Je(g,p)&&(Je(g,_)&&!Je(_,m)||k&&p!==he&&!Je(_,c))&&d(),p=g,m=_}}});return l[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?s||he:l,done:!1}:{done:!0}}}},l}const Vc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${nt(t)}Modifiers`]||e[`${on(t)}Modifiers`];function Mp(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||he;let i=n;const r=t.startsWith("update:"),s=r&&Vc(o,t.slice(7));s&&(s.trim&&(i=n.map(c=>Oe(c)?c.trim():c)),s.number&&(i=n.map(md)));let l,a=o[l=gi(t)]||o[l=gi(nt(t))];!a&&r&&(a=o[l=gi(on(t))]),a&&Ct(a,e,6,i);const d=o[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ct(d,e,6,i)}}const Np=new WeakMap;function jc(e,t,n=!1){const o=n?Np:t.emitsCache,i=o.get(e);if(i!==void 0)return i;const r=e.emits;let s={},l=!1;if(!te(e)){const a=d=>{const c=jc(d,t,!0);c&&(l=!0,He(s,c))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(Ee(e)&&o.set(e,null),null):(Z(r)?r.forEach(a=>s[a]=null):He(s,r),Ee(e)&&o.set(e,s),s)}function ir(e,t){return!e||!Ji(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),we(e,t[0].toLowerCase()+t.slice(1))||we(e,on(t))||we(e,t))}function Ca(e){const{type:t,vnode:n,proxy:o,withProxy:i,propsOptions:[r],slots:s,attrs:l,emit:a,render:d,renderCache:c,props:p,data:m,setupState:g,ctx:_,inheritAttrs:v}=e,k=Ai(e);let R,P;try{if(n.shapeFlag&4){const $=i||o,Q=$;R=Vt(d.call(Q,$,c,p,g,m,_)),P=l}else{const $=t;R=Vt($.length>1?$(p,{attrs:l,slots:s,emit:a}):$(p,null)),P=t.props?l:Dp(l)}}catch($){Oo.length=0,er($,e,1),R=le(Gt)}let D=R;if(P&&v!==!1){const $=Object.keys(P),{shapeFlag:Q}=D;$.length&&Q&7&&(r&&$.some(Xi)&&(P=Fp(P,r)),D=so(D,P,!1,!0))}return n.dirs&&(D=so(D,null,!1,!0),D.dirs=D.dirs?D.dirs.concat(n.dirs):n.dirs),n.transition&&Ds(D,n.transition),R=D,Ai(k),R}const Dp=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ji(n))&&((t||(t={}))[n]=e[n]);return t},Fp=(e,t)=>{const n={};for(const o in e)(!Xi(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Bp(e,t,n){const{props:o,children:i,component:r}=e,{props:s,children:l,patchFlag:a}=t,d=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?$a(o,s,d):!!s;if(a&8){const c=t.dynamicProps;for(let p=0;pObject.create(Hc),Gc=e=>Object.getPrototypeOf(e)===Hc;function jp(e,t,n,o=!1){const i={},r=zc();e.propsDefaults=Object.create(null),Wc(e,t,i,r);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=o?i:Hd(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function Up(e,t,n,o){const{props:i,attrs:r,vnode:{patchFlag:s}}=e,l=_e(i),[a]=e.propsOptions;let d=!1;if((o||s>0)&&!(s&16)){if(s&8){const c=e.vnode.dynamicProps;for(let p=0;p{a=!0;const[m,g]=qc(p,t,!0);He(s,m),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!r&&!a)return Ee(e)&&o.set(e,In),In;if(Z(r))for(let c=0;ce==="_"||e==="_ctx"||e==="$stable",js=e=>Z(e)?e.map(Vt):[Vt(e)],zp=(e,t,n)=>{if(t._n)return t;const o=Re((...i)=>js(t(...i)),n);return o._c=!1,o},Jc=(e,t,n)=>{const o=e._ctx;for(const i in e){if(Vs(i))continue;const r=e[i];if(te(r))t[i]=zp(i,r,o);else if(r!=null){const s=js(r);t[i]=()=>s}}},Xc=(e,t)=>{const n=js(t);e.slots.default=()=>n},Kc=(e,t,n)=>{for(const o in t)(n||!Vs(o))&&(e[o]=t[o])},Gp=(e,t,n)=>{const o=e.slots=zc();if(e.vnode.shapeFlag&32){const i=t._;i?(Kc(o,t,n),n&&Ql(o,"_",i,!0)):Jc(t,o)}else t&&Xc(e,t)},Wp=(e,t,n)=>{const{vnode:o,slots:i}=e;let r=!0,s=he;if(o.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:Kc(i,t,n):(r=!t.$stable,Jc(t,i)),s=t}else t&&(Xc(e,t),s={default:1});if(r)for(const l in i)!Vs(l)&&s[l]==null&&delete i[l]},ct=Yp;function qp(e){return Jp(e)}function Jp(e,t){const n=Ti();n.__VUE__=!0;const{insert:o,remove:i,patchProp:r,createElement:s,createText:l,createComment:a,setText:d,setElementText:c,parentNode:p,nextSibling:m,setScopeId:g=Et,insertStaticContent:_}=e,v=(h,f,b,T=null,A=null,E=null,N=void 0,M=null,O=!!f.dynamicChildren)=>{if(h===f)return;h&&!mo(h,f)&&(T=$t(h),I(h,A,E,!0),h=null),f.patchFlag===-2&&(O=!1,f.dynamicChildren=null);const{type:C,ref:G,shapeFlag:U}=f;switch(C){case Qo:k(h,f,b,T);break;case Gt:R(h,f,b,T);break;case vi:h==null&&P(f,b,T,N);break;case Ue:w(h,f,b,T,A,E,N,M,O);break;default:U&1?Q(h,f,b,T,A,E,N,M,O):U&6?S(h,f,b,T,A,E,N,M,O):(U&64||U&128)&&C.process(h,f,b,T,A,E,N,M,O,Bn)}G!=null&&A?ko(G,h&&h.ref,E,f||h,!f):G==null&&h&&h.ref!=null&&ko(h.ref,null,E,h,!0)},k=(h,f,b,T)=>{if(h==null)o(f.el=l(f.children),b,T);else{const A=f.el=h.el;f.children!==h.children&&d(A,f.children)}},R=(h,f,b,T)=>{h==null?o(f.el=a(f.children||""),b,T):f.el=h.el},P=(h,f,b,T)=>{[h.el,h.anchor]=_(h.children,f,b,T,h.el,h.anchor)},D=({el:h,anchor:f},b,T)=>{let A;for(;h&&h!==f;)A=m(h),o(h,b,T),h=A;o(f,b,T)},$=({el:h,anchor:f})=>{let b;for(;h&&h!==f;)b=m(h),i(h),h=b;i(f)},Q=(h,f,b,T,A,E,N,M,O)=>{if(f.type==="svg"?N="svg":f.type==="math"&&(N="mathml"),h==null)re(f,b,T,A,E,N,M,O);else{const C=h.el&&h.el._isVueCE?h.el:null;try{C&&C._beginPatch(),me(h,f,A,E,N,M,O)}finally{C&&C._endPatch()}}},re=(h,f,b,T,A,E,N,M)=>{let O,C;const{props:G,shapeFlag:U,transition:q,dirs:J}=h;if(O=h.el=s(h.type,E,G&&G.is,G),U&8?c(O,h.children):U&16&&ge(h.children,O,null,T,A,xr(h,E),N,M),J&&Tn(h,null,T,"created"),oe(O,h,h.scopeId,N,T),G){for(const ce in G)ce!=="value"&&!Ao(ce)&&r(O,ce,null,G[ce],E,T);"value"in G&&r(O,"value",null,G.value,E),(C=G.onVnodeBeforeMount)&&Mt(C,T,h)}J&&Tn(h,null,T,"beforeMount");const ie=Xp(A,q);ie&&q.beforeEnter(O),o(O,f,b),((C=G&&G.onVnodeMounted)||ie||J)&&ct(()=>{C&&Mt(C,T,h),ie&&q.enter(O),J&&Tn(h,null,T,"mounted")},A)},oe=(h,f,b,T,A)=>{if(b&&g(h,b),T)for(let E=0;E{for(let C=O;C{const M=f.el=h.el;let{patchFlag:O,dynamicChildren:C,dirs:G}=f;O|=h.patchFlag&16;const U=h.props||he,q=f.props||he;let J;if(b&&Sn(b,!1),(J=q.onVnodeBeforeUpdate)&&Mt(J,b,f,h),G&&Tn(f,h,b,"beforeUpdate"),b&&Sn(b,!0),C&&(!h.dynamicChildren||h.dynamicChildren.length!==C.length)&&(O=0,N=!1,C=null),(U.innerHTML&&q.innerHTML==null||U.textContent&&q.textContent==null)&&c(M,""),C?pe(h.dynamicChildren,C,M,b,T,xr(f,A),E):N||H(h,f,M,null,b,T,xr(f,A),E,!1),O>0){if(O&16)Te(M,U,q,b,A);else if(O&2&&U.class!==q.class&&r(M,"class",null,q.class,A),O&4&&r(M,"style",U.style,q.style,A),O&8){const ie=f.dynamicProps;for(let ce=0;ce{J&&Mt(J,b,f,h),G&&Tn(f,h,b,"updated")},T)},pe=(h,f,b,T,A,E,N)=>{for(let M=0;M{if(f!==b){if(f!==he)for(const E in f)!Ao(E)&&!(E in b)&&r(h,E,f[E],null,A,T);for(const E in b){if(Ao(E))continue;const N=b[E],M=f[E];N!==M&&E!=="value"&&r(h,E,M,N,A,T)}"value"in b&&r(h,"value",f.value,b.value,A)}},w=(h,f,b,T,A,E,N,M,O)=>{const C=f.el=h?h.el:l(""),G=f.anchor=h?h.anchor:l("");let{patchFlag:U,dynamicChildren:q,slotScopeIds:J}=f;J&&(M=M?M.concat(J):J),h==null?(o(C,b,T),o(G,b,T),ge(f.children||[],b,G,A,E,N,M,O)):U>0&&U&64&&q&&h.dynamicChildren&&h.dynamicChildren.length===q.length?(pe(h.dynamicChildren,q,b,A,E,N,M),(f.key!=null||A&&f===A.subTree)&&Yc(h,f,!0)):H(h,f,b,G,A,E,N,M,O)},S=(h,f,b,T,A,E,N,M,O)=>{f.slotScopeIds=M,h==null?f.shapeFlag&512?A.ctx.activate(f,b,T,N,O):j(f,b,T,A,E,N,O):W(h,f,O)},j=(h,f,b,T,A,E,N)=>{const M=h.component=th(h,T,A);if($c(h)&&(M.ctx.renderer=Bn),nh(M,!1,N),M.asyncDep){if(A&&A.registerDep(M,B,N),!h.el){const O=M.subTree=le(Gt);R(null,O,f,b),h.placeholder=O.el}}else B(M,h,f,b,A,E,N)},W=(h,f,b)=>{const T=f.component=h.component;if(Bp(h,f,b))if(T.asyncDep&&!T.asyncResolved){V(T,f,b);return}else T.next=f,T.update();else f.el=h.el,T.vnode=f},B=(h,f,b,T,A,E,N)=>{const M=()=>{if(h.isMounted){let{next:U,bu:q,u:J,parent:ie,vnode:ce}=h;{const We=Zc(h);if(We){U&&(U.el=ce.el,V(h,U,N)),We.asyncDep.then(()=>{ct(()=>{h.isUnmounted||C()},A)});return}}let be=U,Ce;Sn(h,!1),U?(U.el=ce.el,V(h,U,N)):U=ce,q&&yr(q),(Ce=U.props&&U.props.onVnodeBeforeUpdate)&&Mt(Ce,ie,U,ce),Sn(h,!0);const Pe=Ca(h),lt=h.subTree;h.subTree=Pe,v(lt,Pe,p(lt.el),$t(lt),h,A,E),U.el=Pe.el,be===null&&Vp(h,Pe.el),J&&ct(J,A),(Ce=U.props&&U.props.onVnodeUpdated)&&ct(()=>Mt(Ce,ie,U,ce),A)}else{let U;const{el:q,props:J}=f,{bm:ie,m:ce,parent:be,root:Ce,type:Pe}=h,lt=no(f);Sn(h,!1),ie&&yr(ie),!lt&&(U=J&&J.onVnodeBeforeMount)&&Mt(U,be,f),Sn(h,!0);{Ce.ce&&Ce.ce._hasShadowRoot()&&Ce.ce._injectChildStyle(Pe,h.parent?h.parent.type:void 0);const We=h.subTree=Ca(h);v(null,We,b,T,h,A,E),f.el=We.el}if(ce&&ct(ce,A),!lt&&(U=J&&J.onVnodeMounted)){const We=f;ct(()=>Mt(U,be,We),A)}(f.shapeFlag&256||be&&no(be.vnode)&&be.vnode.shapeFlag&256)&&h.a&&ct(h.a,A),h.isMounted=!0,f=b=T=null}};h.scope.on();const O=h.effect=new oc(M);h.scope.off();const C=h.update=O.run.bind(O),G=h.job=O.runIfDirty.bind(O);G.i=h,G.id=h.uid,O.scheduler=()=>Ms(G),Sn(h,!0),C()},V=(h,f,b)=>{f.component=h;const T=h.vnode.props;h.vnode=f,h.next=null,Up(h,f.props,T,b),Wp(h,f.children,b),Ht(),ya(h),zt()},H=(h,f,b,T,A,E,N,M,O=!1)=>{const C=h&&h.children,G=h?h.shapeFlag:0,U=f.children,{patchFlag:q,shapeFlag:J}=f;if(q>0){if(q&128){Y(C,U,b,T,A,E,N,M,O);return}else if(q&256){K(C,U,b,T,A,E,N,M,O);return}}J&8?(G&16&&vt(C,A,E),U!==C&&c(b,U)):G&16?J&16?Y(C,U,b,T,A,E,N,M,O):vt(C,A,E,!0):(G&8&&c(b,""),J&16&&ge(U,b,T,A,E,N,M,O))},K=(h,f,b,T,A,E,N,M,O)=>{h=h||In,f=f||In;const C=h.length,G=f.length,U=Math.min(C,G);let q;for(q=0;qG?vt(h,A,E,!0,!1,U):ge(f,b,T,A,E,N,M,O,U)},Y=(h,f,b,T,A,E,N,M,O)=>{let C=0;const G=f.length;let U=h.length-1,q=G-1;for(;C<=U&&C<=q;){const J=h[C],ie=f[C]=O?Kt(f[C]):Vt(f[C]);if(mo(J,ie))v(J,ie,b,null,A,E,N,M,O);else break;C++}for(;C<=U&&C<=q;){const J=h[U],ie=f[q]=O?Kt(f[q]):Vt(f[q]);if(mo(J,ie))v(J,ie,b,null,A,E,N,M,O);else break;U--,q--}if(C>U){if(C<=q){const J=q+1,ie=Jq)for(;C<=U;)I(h[C],A,E,!0),C++;else{const J=C,ie=C,ce=new Map;for(C=ie;C<=q;C++){const Ze=f[C]=O?Kt(f[C]):Vt(f[C]);Ze.key!=null&&ce.set(Ze.key,C)}let be,Ce=0;const Pe=q-ie+1;let lt=!1,We=0;const kt=new Array(Pe);for(C=0;C=Pe){I(Ze,A,E,!0);continue}let ut;if(Ze.key!=null)ut=ce.get(Ze.key);else for(be=ie;be<=q;be++)if(kt[be-ie]===0&&mo(Ze,f[be])){ut=be;break}ut===void 0?I(Ze,A,E,!0):(kt[ut-ie]=C+1,ut>=We?We=ut:lt=!0,v(Ze,f[ut],b,null,A,E,N,M,O),Ce++)}const _n=lt?Kp(kt):In;for(be=_n.length-1,C=Pe-1;C>=0;C--){const Ze=ie+C,ut=f[Ze],co=f[Ze+1],Vn=Ze+1{const{el:E,type:N,transition:M,children:O,shapeFlag:C}=h;if(C&6){ke(h.component.subTree,f,b,T);return}if(C&128){h.suspense.move(f,b,T);return}if(C&64){N.move(h,f,b,Bn);return}if(N===Ue){o(E,f,b);for(let G=0;GM.enter(E),A));else{const{leave:G,delayLeave:U,afterLeave:q}=M,J=()=>{h.ctx.isUnmounted?i(E):o(E,f,b)},ie=()=>{const ce=E._isLeaving||!!E[Tr];E._isLeaving&&E[Tr](!0),M.persisted&&!ce?J():G(E,()=>{J(),q&&q()})};U?U(E,J,ie):ie()}else o(E,f,b)},I=(h,f,b,T=!1,A=!1)=>{const{type:E,props:N,ref:M,children:O,dynamicChildren:C,shapeFlag:G,patchFlag:U,dirs:q,cacheIndex:J,memo:ie}=h;if(U===-2&&(A=!1),M!=null&&(Ht(),ko(M,null,b,h,!0),zt()),J!=null&&(f.renderCache[J]=void 0),G&256){f.ctx.deactivate(h);return}const ce=G&1&&q,be=!no(h);let Ce;if(be&&(Ce=N&&N.onVnodeBeforeUnmount)&&Mt(Ce,f,h),G&6)ht(h.component,b,T);else{if(G&128){h.suspense.unmount(b,T);return}ce&&Tn(h,null,f,"beforeUnmount"),G&64?h.type.remove(h,f,b,Bn,T):C&&!C.hasOnce&&(E!==Ue||U>0&&U&64)?vt(C,f,b,!1,!0):(E===Ue&&U&384||!A&&G&16)&&vt(O,f,b),T&&Ge(h)}const Pe=ie!=null&&J==null;(be&&(Ce=N&&N.onVnodeUnmounted)||ce||Pe)&&ct(()=>{Ce&&Mt(Ce,f,h),ce&&Tn(h,null,f,"unmounted"),Pe&&(h.el=null)},b)},Ge=h=>{const{type:f,el:b,anchor:T,transition:A}=h;if(f===Ue){bn(b,T);return}if(f===vi){$(h);return}const E=()=>{i(b),A&&!A.persisted&&A.afterLeave&&A.afterLeave()};if(h.shapeFlag&1&&A&&!A.persisted){const{leave:N,delayLeave:M}=A,O=()=>N(b,E);M?M(h.el,E,O):O()}else E()},bn=(h,f)=>{let b;for(;h!==f;)b=m(h),i(h),h=b;i(f)},ht=(h,f,b)=>{const{bum:T,scope:A,job:E,subTree:N,um:M,m:O,a:C}=h;Ra(O),Ra(C),T&&yr(T),A.stop(),E&&(E.flags|=8,I(N,h,f,b)),M&&ct(M,f),ct(()=>{h.isUnmounted=!0},f)},vt=(h,f,b,T=!1,A=!1,E=0)=>{for(let N=E;N{if(h.shapeFlag&6)return $t(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const f=m(h.anchor||h.el),b=f&&f[cp];return b?m(b):f};let ao=!1;const lo=(h,f,b)=>{let T;h==null?f._vnode&&(I(f._vnode,null,null,!0),T=f._vnode.component):v(f._vnode||null,h,f,null,null,null,b),f._vnode=h,ao||(ao=!0,ya(T),Sc(),ao=!1)},Bn={p:v,um:I,m:ke,r:Ge,mt:j,mc:ge,pc:H,pbc:pe,n:$t,o:e};return{render:lo,hydrate:void 0,createApp:Lp(lo)}}function xr({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 Sn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Xp(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Yc(e,t,n=!1){const o=e.children,i=t.children;if(Z(o)&&Z(i))for(let r=0;r>1,e[n[l]]0&&(t[o]=n[r-1]),n[r]=o)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}function Zc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Zc(t)}function Ra(e){if(e)for(let t=0;te.__isSuspense;function Yp(e,t){t&&t.pendingBranch?Z(e)?t.effects.push(...e):t.effects.push(e):Tc(e)}const Ue=Symbol.for("v-fgt"),Qo=Symbol.for("v-txt"),Gt=Symbol.for("v-cmt"),vi=Symbol.for("v-stc"),Oo=[];let pt=null;function L(e=!1){Oo.push(pt=e?null:[])}function Zp(){Oo.pop(),pt=Oo[Oo.length-1]||null}let Go=1;function Ri(e,t=!1){Go+=e,e<0&&pt&&t&&(pt.hasOnce=!0)}function eu(e){return e.dynamicChildren=Go>0?pt||In:null,Zp(),Go>0&&pt&&pt.push(e),e}function z(e,t,n,o,i,r){return eu(ne(e,t,n,o,i,r,!0))}function $e(e,t,n,o,i){return eu(le(e,t,n,o,i,!0))}function Wo(e){return e?e.__v_isVNode===!0:!1}function mo(e,t){return e.type===t.type&&e.key===t.key}const tu=({key:e})=>e??null,yi=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Oe(e)||ot(e)||te(e)?{i:Xe,r:e,k:t,f:!!n}:e:null);function ne(e,t=null,n=null,o=0,i=null,r=e===Ue?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&tu(t),ref:t&&yi(t),scopeId:tr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:o,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Xe};return l?(Li(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=Oe(n)?8:16),Go>0&&!s&&pt&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&pt.push(a),a}const le=Ip;function Ip(e,t=null,n=null,o=0,i=null,r=!1){if((!e||e===Lc)&&(e=Gt),Wo(e)){const l=so(e,t,!0);return n&&Li(l,n),Go>0&&!r&&pt&&(l.shapeFlag&6?pt[pt.indexOf(e)]=l:pt.push(l)),l.patchFlag=-2,l}if(sh(e)&&(e=e.__vccOpts),t){t=Oi(t);let{class:l,style:a}=t;l&&!Oe(l)&&(t.class=xe(l)),Ee(a)&&(Ps(a)&&!Z(a)&&(a=He({},a)),t.style=hn(a))}const s=Oe(e)?1:Qc(e)?128:up(e)?64:Ee(e)?4:te(e)?2:0;return ne(e,t,n,o,i,s,r,!0)}function Oi(e){return e?Ps(e)||Gc(e)?He({},e):e:null}function so(e,t,n=!1,o=!1){const{props:i,ref:r,patchFlag:s,children:l,transition:a}=e,d=t?ze(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&tu(d),ref:t&&t.ref?n&&r?Z(r)?r.concat(yi(t)):[r,yi(t)]:yi(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ue?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&so(e.ssContent),ssFallback:e.ssFallback&&so(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&o&&Ds(c,a.clone(c)),c}function _t(e=" ",t=0){return le(Qo,null,e,t)}function ye(e="",t=!1){return t?(L(),$e(Gt,null,e)):le(Gt,null,e)}function Vt(e){return e==null||typeof e=="boolean"?le(Gt):Z(e)?le(Ue,null,e.slice()):Wo(e)?Kt(e):le(Qo,null,String(e))}function Kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:so(e)}function Li(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Z(t))n=16;else if(typeof t=="object")if(o&65){const i=t.default;i&&(i._c&&(i._d=!1),Li(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Gc(t)?t._ctx=Xe:i===3&&Xe&&(Xe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(te(t)){if(o&65){Li(e,{default:t});return}t={default:t,_ctx:Xe},n=32}else t=String(t),o&64?(n=16,t=[_t(t)]):n=8;e.children=t,e.shapeFlag|=n}function ze(...e){const t={};for(let n=0;ntt||Xe;let Pi,is;{const e=Ti(),t=(n,o)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(o),r=>{i.length>1?i.forEach(s=>s(r)):i[0](r)}};Pi=t("__VUE_INSTANCE_SETTERS__",n=>tt=n),is=t("__VUE_SSR_SETTERS__",n=>qo=n)}const ti=e=>{const t=tt;return Pi(e),e.scope.on(),()=>{e.scope.off(),Pi(t)}},Oa=()=>{tt&&tt.scope.off(),Pi(null)};function nu(e){return e.vnode.shapeFlag&4}let qo=!1;function nh(e,t=!1,n=!1){t&&is(t);const{props:o,children:i}=e.vnode,r=nu(e);jp(e,o,r,t),Gp(e,i,n||t);const s=r?oh(e,t):void 0;return t&&is(!1),s}function oh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Tp);const{setup:o}=n;if(o){Ht();const i=e.setupContext=o.length>1?iu(e):null,r=ti(e),s=Io(o,e,0,[e.props,i]),l=Yl(s);if(zt(),r(),(l||e.sp)&&!no(e)&&Cc(e),l){if(s.then(Oa,Oa),t)return s.then(a=>{La(e,a)}).catch(a=>{er(a,e,0)});e.asyncDep=s}else La(e,s)}else ou(e)}function La(e,t,n){te(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ee(t)&&(e.setupState=bc(t)),ou(e)}function ou(e,t,n){const o=e.type;e.render||(e.render=o.render||Et);{const i=ti(e);Ht();try{Ap(e)}finally{zt(),i()}}}const ih={get(e,t){return et(e,"get",""),e[t]}};function iu(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,ih),slots:e.slots,emit:e.emit,expose:t}}function rr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(bc(zd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ro)return Ro[n](e)},has(t,n){return n in t||n in Ro}})):e.proxy}function rh(e,t=!0){return te(e)?e.displayName||e.name:e.name||t&&e.__name}function sh(e){return te(e)&&"__vccOpts"in e}const ve=(e,t)=>Yd(e,t,qo);function ft(e,t,n){try{Ri(-1);const o=arguments.length;return o===2?Ee(t)&&!Z(t)?Wo(t)?le(e,null,[t]):le(e,t):le(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Wo(n)&&(n=[n]),le(e,t,n))}finally{Ri(1)}}const ah="3.5.39";let rs;const Pa=typeof window<"u"&&window.trustedTypes;if(Pa)try{rs=Pa.createPolicy("vue",{createHTML:e=>e})}catch{}const ru=rs?e=>rs.createHTML(e):e=>e,lh="http://www.w3.org/2000/svg",ch="http://www.w3.org/1998/Math/MathML",Xt=typeof document<"u"?document:null,Ma=Xt&&Xt.createElement("template"),uh={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const i=t==="svg"?Xt.createElementNS(lh,e):t==="mathml"?Xt.createElementNS(ch,e):n?Xt.createElement(e,{is:n}):Xt.createElement(e);return e==="select"&&o&&o.multiple!=null&&i.setAttribute("multiple",o.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,o,i,r){const s=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{Ma.innerHTML=ru(o==="svg"?`${e}`:o==="mathml"?`${e}`:e);const l=Ma.content;if(o==="svg"||o==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},dh=Symbol("_vtc");function ph(e,t,n){const o=e[dh];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Mi=Symbol("_vod"),su=Symbol("_vsh"),ss={name:"show",beforeMount(e,{value:t},{transition:n}){e[Mi]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):go(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),go(e,!0),o.enter(e)):o.leave(e,()=>{go(e,!1)}):go(e,t))},beforeUnmount(e,{value:t}){go(e,t)}};function go(e,t){e.style.display=t?e[Mi]:"none",e[su]=!t}const au=Symbol("");function Us(e){const t=ei();if(!t)return;const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(r=>Ni(r,i))},o=()=>{const i=e(t.proxy);t.ce?Ni(t.ce,i):as(t.subTree,i),n(i)};Rc(()=>{Tc(o)}),Fs(()=>{to(o,Et,{flush:"post"});const i=new MutationObserver(o);i.observe(t.subTree.el.parentNode,{childList:!0}),or(()=>i.disconnect())})}function as(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{as(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Ni(e.el,t);else if(e.type===Ue)e.children.forEach(n=>as(n,t));else if(e.type===vi){let{el:n,anchor:o}=e;for(;n&&(Ni(n,t),n!==o);)n=n.nextSibling}}function Ni(e,t){if(e.nodeType===1){const n=e.style;let o="";for(const i in t){const r=Td(t[i]);n.setProperty(`--${i}`,r),o+=`--${i}: ${r};`}n[au]=o}}const hh=/(?:^|;)\s*display\s*:/;function fh(e,t,n){const o=e.style,i=Oe(n);let r=!1;if(n&&!i){if(t)if(Oe(t))for(const s of t.split(";")){const l=s.slice(0,s.indexOf(":")).trim();n[l]==null&&To(o,l,"")}else for(const s in t)n[s]==null&&To(o,s,"");for(const s in n){s==="display"&&(r=!0);const l=n[s];l!=null?gh(e,s,!Oe(t)&&t?t[s]:void 0,l)||To(o,s,l):To(o,s,"")}}else if(i){if(t!==n){const s=o[au];s&&(n+=";"+s),o.cssText=n,r=hh.test(n)}}else t&&e.removeAttribute("style");Mi in e&&(e[Mi]=r?o.display:"",e[su]&&(o.display="none"))}const Na=/\s*!important$/;function To(e,t,n){if(Z(n))n.forEach(o=>To(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=mh(e,t);Na.test(n)?e.setProperty(on(o),n.replace(Na,""),"important"):e[o]=n}}const Da=["Webkit","Moz","ms"],Ar={};function mh(e,t){const n=Ar[t];if(n)return n;let o=nt(t);if(o!=="filter"&&o in e)return Ar[t]=o;o=Yi(o);for(let i=0;iCr||(Th.then(()=>Cr=0),Cr=Date.now());function xh(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;const i=n.value;if(Z(i)){const r=o.stopImmediatePropagation;o.stopImmediatePropagation=()=>{r.call(o),o._stopped=!0};const s=i.slice(),l=[o];for(let a=0;ae.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ah=(e,t,n,o,i,r)=>{const s=i==="svg";t==="class"?ph(e,o,s):t==="style"?fh(e,n,o):Ji(t)?Xi(t)||bh(e,t,n,o,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ch(e,t,o,s))?(Va(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ba(e,t,o,s,r,t!=="value")):e._isVueCE&&($h(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Oe(o)))?Va(e,nt(t),o,r,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Ba(e,t,o,s))};function Ch(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ua(t)&&te(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Ua(t)&&Oe(n)?!1:t in e}function $h(e,t){const n=e._def.props;if(!n)return!1;const o=nt(t);return Array.isArray(n)?n.some(i=>nt(i)===o):Object.keys(n).some(i=>nt(i)===o)}const kh=["ctrl","shift","alt","meta"],Rh={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)=>kh.some(n=>e[`${n}Key`]&&!t.includes(n))},lu=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=((i,...r)=>{for(let s=0;s{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=(i=>{if(!("key"in i))return;const r=on(i.key);if(t.some(s=>s===r||Oh[s]===r))return e(i)}))},Ph=He({patchProp:Ah},uh);let Ha;function Mh(){return Ha||(Ha=qp(Ph))}const Nh=((...e)=>{const t=Mh().createApp(...e),{mount:n}=t;return t.mount=o=>{const i=Fh(o);if(!i)return;const r=t._component;!te(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=n(i,!1,Dh(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t});function Dh(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Fh(e){return Oe(e)?document.querySelector(e):e}function ls(e,t,n){const o=`#initial-state-${e}-${t}`;if(window._nc_initial_state?.has(o))return window._nc_initial_state.get(o);window._nc_initial_state||(window._nc_initial_state=new Map);const i=document.querySelector(o);if(i===null)throw new Error(`Could not find initial state ${t} of ${e}`);try{const r=JSON.parse(atob(i.value));return window._nc_initial_state.set(o,r),r}catch(r){throw console.error("[@nextcloud/initial-state] Could not parse initial state",{key:t,app:e,error:r}),new Error(`Could not parse initial state ${t} of ${e}`,{cause:r})}}function Bh(){try{return ls("core","capabilities")}catch{return console.debug("Could not find capabilities initial state fall back to _oc_capabilities"),"_oc_capabilities"in window?window._oc_capabilities:{}}}function za(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n2?n-2:0),i=2;i1?t-1:0),o=1;o"u"?null:Fe(BigInt.prototype.toString),Ka=typeof Symbol>"u"?null:Fe(Symbol.prototype.toString),je=Fe(Object.prototype.hasOwnProperty),yo=Fe(Object.prototype.toString),Ve=Fe(RegExp.prototype.test),xn=Ih(TypeError);function Fe(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:So;if(Ga&&Ga(e,null),!pn(t))return e;let o=t.length;for(;o--;){let i=t[o];if(typeof i=="string"){const r=n(i);r!==i&&(Gh(t)||(t[o]=r),i=r)}e[i]=!0}return e}function Qh(e){for(let t=0;t/g),af=Ye(/\${[\w\W]*/g),lf=Ye(/^data-[\-\w.\u00B7-\uFFFF]+$/),cf=Ye(/^aria-[\-\w]+$/),el=Ye(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),uf=Ye(/^(?:\w+script|data):/i),df=Ye(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),pf=Ye(/^html$/i),hf=Ye(/^[a-z][.\w]*(-[.\w]+)+$/i),tl=Ye(/<[/\w!]/g),nl=Ye(/<[/\w]/g),ff=Ye(/<\/no(script|embed|frames)/i),mf=Ye(/\/>/i),dt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},gf=function(){return typeof window>"u"?null:window},vf=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(r){return r},createScriptURL(r){return r}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},ol=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},an=function(e,t,n,o){return je(e,t)&&pn(e[t])?de(o.base?Qe(o.base):{},e[t],o.transform):n};function du(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gf();const t=u=>du(u);if(t.version="3.4.13",t.removed=[],!e||!e.document||e.document.nodeType!==dt.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const o=n,i=o.currentScript;e.DocumentFragment;const r=e.HTMLTemplateElement,s=e.Node,l=e.Element,a=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const c=e.DOMParser,p=e.trustedTypes,m=l.prototype,g=bt(m,"cloneNode"),_=bt(m,"remove"),v=bt(m,"nextSibling"),k=bt(m,"childNodes"),R=bt(m,"parentNode"),P=bt(m,"shadowRoot"),D=bt(m,"attributes"),$=s&&s.prototype?bt(s.prototype,"nodeType"):null,Q=s&&s.prototype?bt(s.prototype,"nodeName"):null,re=s&&s.prototype?bt(s.prototype,"ownerDocument"):null;if(typeof r=="function"){const u=n.createElement("template");u.content&&u.content.ownerDocument&&(n=u.content.ownerDocument)}let oe,ge="",me,pe=!1,Te=0;const w=function(){if(Te>0)throw xn('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},S=function(u){w(),Te++;try{return oe.createHTML(u)}finally{Te--}},j=function(u){w(),Te++;try{return oe.createScriptURL(u)}finally{Te--}},W=function(){return pe||(me=vf(p,i),pe=!0),me},B=n,V=B.implementation,H=B.createNodeIterator,K=B.createDocumentFragment,Y=B.getElementsByTagName,ke=o.importNode;let I=ol();t.isSupported=typeof cu=="function"&&typeof R=="function"&&V&&V.createHTMLDocument!==void 0;const Ge=rf,bn=sf,ht=af,vt=lf,$t=cf,ao=uf,lo=df,Bn=hf;let h=el,f=null;const b=de({},[...Ya,...kr,...Rr,...Or,...Za]);let T=null;const A=de({},[...Ia,...Lr,...Qa,...pi]);let E=Object.seal(Yn(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),N=null,M=null;const O=Object.seal(Yn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let C=!0,G=!0,U=!1,q=!0,J=!1,ie=!0,ce=!1,be=!1,Ce=null,Pe=null,lt=!1,We=!1,kt=!1,_n=!1,Ze=!0,ut=!1;const co="user-content-";let Vn=!0,ni=!1,jn={},Rt=null;const cr=de({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Zs=null;const Is=de({},["audio","video","img","source","image","track"]);let ur=null;const Qs=de({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),oi="http://www.w3.org/1998/Math/MathML",ii="http://www.w3.org/2000/svg",Ot="http://www.w3.org/1999/xhtml";let Un=Ot,dr=!1,pr=null;const Ku=de({},[oi,ii,Ot],$r),ea=Ke(["mi","mo","mn","ms","mtext"]);let hr=de({},ea);const ta=Ke(["annotation-xml"]);let fr=de({},ta);const Yu=de({},["title","style","font","a","script"]);let uo=null;const Zu=["application/xhtml+xml","text/html"],Iu="text/html";let Le=null,Hn=null;const Qu=n.createElement("form"),na=function(u){return u instanceof RegExp||u instanceof Function},mr=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Hn&&Hn===u)return;(!u||typeof u!="object")&&(u={}),u=Qe(u),uo=Zu.indexOf(u.PARSER_MEDIA_TYPE)===-1?Iu:u.PARSER_MEDIA_TYPE,Le=uo==="application/xhtml+xml"?$r:So,f=an(u,"ALLOWED_TAGS",b,{transform:Le}),T=an(u,"ALLOWED_ATTR",A,{transform:Le}),pr=an(u,"ALLOWED_NAMESPACES",Ku,{transform:$r}),ur=an(u,"ADD_URI_SAFE_ATTR",Qs,{transform:Le,base:Qs}),Zs=an(u,"ADD_DATA_URI_TAGS",Is,{transform:Le,base:Is}),Rt=an(u,"FORBID_CONTENTS",cr,{transform:Le}),N=an(u,"FORBID_TAGS",Qe({}),{transform:Le}),M=an(u,"FORBID_ATTR",Qe({}),{transform:Le}),jn=je(u,"USE_PROFILES")?u.USE_PROFILES&&typeof u.USE_PROFILES=="object"?Qe(u.USE_PROFILES):u.USE_PROFILES:!1,C=u.ALLOW_ARIA_ATTR!==!1,G=u.ALLOW_DATA_ATTR!==!1,U=u.ALLOW_UNKNOWN_PROTOCOLS||!1,q=u.ALLOW_SELF_CLOSE_IN_ATTR!==!1,J=u.SAFE_FOR_TEMPLATES||!1,ie=u.SAFE_FOR_XML!==!1,ce=u.WHOLE_DOCUMENT||!1,We=u.RETURN_DOM||!1,kt=u.RETURN_DOM_FRAGMENT||!1,_n=u.RETURN_TRUSTED_TYPE||!1,lt=u.FORCE_BODY||!1,Ze=u.SANITIZE_DOM!==!1,ut=u.SANITIZE_NAMED_PROPS||!1,Vn=u.KEEP_CONTENT!==!1,ni=u.IN_PLACE||!1,h=tf(u.ALLOWED_URI_REGEXP)?u.ALLOWED_URI_REGEXP:el,Un=typeof u.NAMESPACE=="string"?u.NAMESPACE:Ot,hr=je(u,"MATHML_TEXT_INTEGRATION_POINTS")&&u.MATHML_TEXT_INTEGRATION_POINTS&&typeof u.MATHML_TEXT_INTEGRATION_POINTS=="object"?Qe(u.MATHML_TEXT_INTEGRATION_POINTS):de({},ea),fr=je(u,"HTML_INTEGRATION_POINTS")&&u.HTML_INTEGRATION_POINTS&&typeof u.HTML_INTEGRATION_POINTS=="object"?Qe(u.HTML_INTEGRATION_POINTS):de({},ta);const y=je(u,"CUSTOM_ELEMENT_HANDLING")&&u.CUSTOM_ELEMENT_HANDLING&&typeof u.CUSTOM_ELEMENT_HANDLING=="object"?Qe(u.CUSTOM_ELEMENT_HANDLING):Yn(null);if(E=Yn(null),je(y,"tagNameCheck")&&na(y.tagNameCheck)&&(E.tagNameCheck=y.tagNameCheck),je(y,"attributeNameCheck")&&na(y.attributeNameCheck)&&(E.attributeNameCheck=y.attributeNameCheck),je(y,"allowCustomizedBuiltInElements")&&typeof y.allowCustomizedBuiltInElements=="boolean"&&(E.allowCustomizedBuiltInElements=y.allowCustomizedBuiltInElements),Ye(E),J&&(G=!1),kt&&(We=!0),jn&&(f=de({},Za),T=Yn(null),jn.html===!0&&(de(f,Ya),de(T,Ia)),jn.svg===!0&&(de(f,kr),de(T,Lr),de(T,pi)),jn.svgFilters===!0&&(de(f,Rr),de(T,Lr),de(T,pi)),jn.mathMl===!0&&(de(f,Or),de(T,Qa),de(T,pi))),O.tagCheck=null,O.attributeCheck=null,je(u,"ADD_TAGS")&&(typeof u.ADD_TAGS=="function"?O.tagCheck=u.ADD_TAGS:pn(u.ADD_TAGS)&&(f===b&&(f=Qe(f)),de(f,u.ADD_TAGS,Le))),je(u,"ADD_ATTR")&&(typeof u.ADD_ATTR=="function"?O.attributeCheck=u.ADD_ATTR:pn(u.ADD_ATTR)&&(T===A&&(T=Qe(T)),de(T,u.ADD_ATTR,Le))),je(u,"ADD_URI_SAFE_ATTR")&&pn(u.ADD_URI_SAFE_ATTR)&&de(ur,u.ADD_URI_SAFE_ATTR,Le),je(u,"FORBID_CONTENTS")&&pn(u.FORBID_CONTENTS)&&(Rt===cr&&(Rt=Qe(Rt)),de(Rt,u.FORBID_CONTENTS,Le)),je(u,"ADD_FORBID_CONTENTS")&&pn(u.ADD_FORBID_CONTENTS)&&(Rt===cr&&(Rt=Qe(Rt)),de(Rt,u.ADD_FORBID_CONTENTS,Le)),Vn&&(f["#text"]=!0),ce&&de(f,["html","head","body"]),f.table&&(de(f,["tbody"]),delete N.tbody),u.TRUSTED_TYPES_POLICY){if(typeof u.TRUSTED_TYPES_POLICY.createHTML!="function")throw xn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof u.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw xn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const x=oe;oe=u.TRUSTED_TYPES_POLICY;try{ge=S("")}catch(F){throw oe=x,F}}else u.TRUSTED_TYPES_POLICY===null?(oe=void 0,ge=""):(oe===void 0&&(oe=W()),oe&&typeof ge=="string"&&(ge=S("")));Ke&&Ke(u),Hn=u},oa=de({},[...kr,...Rr,...nf]),ia=de({},[...Or,...of]),ed=function(u,y,x){return y.namespaceURI===Ot?u==="svg":y.namespaceURI===oi?u==="svg"&&(x==="annotation-xml"||hr[x]):!!oa[u]},td=function(u,y,x){return y.namespaceURI===Ot?u==="math":y.namespaceURI===ii?u==="math"&&fr[x]:!!ia[u]},nd=function(u,y,x){return y.namespaceURI===ii&&!fr[x]||y.namespaceURI===oi&&!hr[x]?!1:!ia[u]&&(Yu[u]||!oa[u])},od=function(u){let y=R(u);(!y||!y.tagName)&&(y={namespaceURI:Un,tagName:"template"});const x=So(u.tagName),F=So(y.tagName);return pr[u.namespaceURI]?u.namespaceURI===ii?ed(x,y,F):u.namespaceURI===oi?td(x,y,F):u.namespaceURI===Ot?nd(x,y,F):!!(uo==="application/xhtml+xml"&&pr[u.namespaceURI]):!1},wn=function(u){qn(t.removed,{element:u});try{R(u).removeChild(u)}catch{if(_(u),!R(u))throw xn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ri=function(u){po(u);const y=k(u);if(y){const F=[];Wn(y,ee=>{qn(F,ee)}),Wn(F,ee=>{try{_(ee)}catch{}})}const x=D(u);if(x)for(let F=x.length-1;F>=0;--F){const ee=x[F],se=ee&&ee.name;if(typeof se=="string")try{u.removeAttribute(se)}catch{}}},En=function(u,y){try{qn(t.removed,{attribute:y.getAttributeNode(u),from:y})}catch{qn(t.removed,{attribute:null,from:y})}if(y.removeAttribute(u),u==="is")if(We||kt)try{wn(y)}catch{}else try{y.setAttribute(u,"")}catch{}},id=function(u){const y=D(u);if(y)for(let x=y.length-1;x>=0;--x){const F=y[x],ee=F&&F.name;if(!(typeof ee!="string"||T[Le(ee)]))try{u.removeAttribute(ee)}catch{}}},po=function(u){const y=[u];for(;y.length>0;){const x=y.pop();($?$(x):x.nodeType)===dt.element&&id(x);const F=k(x);if(F)for(let ee=F.length-1;ee>=0;--ee)y.push(F[ee])}},rd=function(u){if(!ie)return;const y=[u];for(;y.length>0;){const x=y.pop(),F=$?$(x):x.nodeType;if(F===dt.processingInstruction||F===dt.comment&&Ve(nl,x.data)){try{_(x)}catch{}continue}if(F===dt.element){const se=x,ae=Le(Q?Q(x):x.nodeName);try{se.hasAttribute&&se.hasAttribute("patchsrc")&&se.removeAttribute("patchsrc"),se.hasAttribute&&se.hasAttribute("for")&&ae!=="label"&&ae!=="output"&&se.removeAttribute("for")}catch{}}const ee=k(x);if(ee)for(let se=ee.length-1;se>=0;--se)y.push(ee[se])}},ra=function(u){let y=null,x=null;if(lt)u=""+u;else{const se=qa(u,/^[\r\n\t ]+/);x=se&&se[0]}uo==="application/xhtml+xml"&&Un===Ot&&(u=''+u+"");const F=oe?S(u):u;if(Un===Ot)try{y=new c().parseFromString(F,uo)}catch{}if(!y||!y.documentElement){y=V.createDocument(Un,"template",null);try{y.documentElement.innerHTML=dr?ge:F}catch{}}const ee=y.body||y.documentElement;return u&&x&&ee.insertBefore(n.createTextNode(x),ee.childNodes[0]||null),Un===Ot?Y.call(y,ce?"html":"body")[0]:ce?y.documentElement:ee},sa=function(u){const y=re?re(u):u.ownerDocument;return H.call(y||u,u,a.SHOW_ELEMENT|a.SHOW_COMMENT|a.SHOW_TEXT|a.SHOW_PROCESSING_INSTRUCTION|a.SHOW_CDATA_SECTION,null)},si=function(u){return u=vo(u,Ge," "),u=vo(u,bn," "),u=vo(u,ht," "),u},gr=function(u){var y;u.normalize();const x=re?re(u):u.ownerDocument,F=H.call(x||u,u,a.SHOW_TEXT|a.SHOW_COMMENT|a.SHOW_CDATA_SECTION|a.SHOW_PROCESSING_INSTRUCTION,null);let ee=F.nextNode();for(;ee;)ee.data=si(ee.data),ee=F.nextNode();const se=(y=u.querySelectorAll)===null||y===void 0?void 0:y.call(u,"template");se&&Wn(se,ae=>{zn(ae.content)&&gr(ae.content)})},ai=function(u){const y=Q?Q(u):null;return typeof y!="string"||Le(y)!=="form"?!1:typeof u.nodeName!="string"||typeof u.textContent!="string"||typeof u.removeChild!="function"||u.attributes!==D(u)||typeof u.removeAttribute!="function"||typeof u.setAttribute!="function"||typeof u.namespaceURI!="string"||typeof u.insertBefore!="function"||typeof u.hasChildNodes!="function"||u.nodeType!==$(u)||u.childNodes!==k(u)},zn=function(u){if(!$||typeof u!="object"||u===null)return!1;try{return $(u)===dt.documentFragment}catch{return!1}},ho=function(u){if(!$||typeof u!="object"||u===null)return!1;try{return typeof $(u)=="number"}catch{return!1}};function Lt(u,y,x){u.length!==0&&Wn(u,F=>{F.call(t,y,x,Hn)})}const sd=function(u,y){return!!(ie&&u.hasChildNodes()&&!ho(u.firstElementChild)&&Ve(tl,u.textContent)&&Ve(tl,u.innerHTML)||ie&&u.namespaceURI===Ot&&y==="style"&&ho(u.firstElementChild)||u.nodeType===dt.processingInstruction||ie&&u.nodeType===dt.comment&&Ve(nl,u.data))},ad=function(u,y,x){if(!N[y]&&ua(y)&&(E.tagNameCheck instanceof RegExp&&Ve(E.tagNameCheck,y)||E.tagNameCheck instanceof Function&&E.tagNameCheck(y)))return!1;if(Vn&&!Rt[y]){const F=R(u),ee=k(u);if(ee&&F){const se=ee.length;for(let ae=se-1;ae>=0;--ae){const Pt=u===x?g(ee[ae],!0):ee[ae];F.insertBefore(Pt,v(u))}}}return wn(u),!0},aa=function(u,y,x,F){return u.length===0?y:y===x||y===F?Qe(y):y},la=function(u,y){if(Lt(I.beforeSanitizeElements,u,null),u!==y&&R(u)===null)return ni&&po(u),!0;if(ai(u))return wn(u),!0;const x=Le(Q?Q(u):u.nodeName);if(f=aa(I.uponSanitizeElement,f,b,Ce),Lt(I.uponSanitizeElement,u,{tagName:x,allowedTags:f}),u!==y&&R(u)===null)return ni&&po(u),!0;if(sd(u,x))return wn(u),!0;if(N[x]||!(O.tagCheck instanceof Function&&O.tagCheck(x))&&!f[x]){const F=ad(u,x,y);return F===!1&&Lt(I.afterSanitizeElements,u,null),F}if(($?$(u):u.nodeType)===dt.element&&!od(u)||(x==="noscript"||x==="noembed"||x==="noframes")&&Ve(ff,u.innerHTML))return wn(u),!0;if(J&&u.nodeType===dt.text){const F=si(u.textContent);u.textContent!==F&&(qn(t.removed,{element:u.cloneNode()}),u.textContent=F)}return Lt(I.afterSanitizeElements,u,null),!1},ca=function(u,y,x){if(M[y]||ie&&y==="patchsrc"||ie&&y==="for"&&u!=="label"&&u!=="output"||Ze&&(y==="id"||y==="name")&&(x in n||x in Qu))return!1;const F=T[y]||O.attributeCheck instanceof Function&&O.attributeCheck(y,u);if(!(G&&Ve(vt,y))&&!(C&&Ve($t,y))){if(F){if(!ur[y]&&!Ve(h,vo(x,lo,""))&&!((y==="src"||y==="xlink:href"||y==="href")&&u!=="script"&&Ja(x,"data:")===0&&Zs[u])&&!(U&&!Ve(ao,vo(x,lo,"")))&&x)return!1}else if(!(ua(u)&&(E.tagNameCheck instanceof RegExp&&Ve(E.tagNameCheck,u)||E.tagNameCheck instanceof Function&&E.tagNameCheck(u))&&(E.attributeNameCheck instanceof RegExp&&Ve(E.attributeNameCheck,y)||E.attributeNameCheck instanceof Function&&E.attributeNameCheck(y,u))||y==="is"&&E.allowCustomizedBuiltInElements&&(E.tagNameCheck instanceof RegExp&&Ve(E.tagNameCheck,x)||E.tagNameCheck instanceof Function&&E.tagNameCheck(x))))return!1}return!0},ld=de({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ua=function(u){return!ld[So(u)]&&Ve(Bn,u)},cd=function(u,y,x,F){if(oe&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!x)switch(p.getAttributeType(u,y)){case"TrustedHTML":return S(F);case"TrustedScriptURL":return j(F)}return F},ud=function(u,y,x,F){try{x?u.setAttributeNS(x,y,F):u.setAttribute(y,F),ai(u)?wn(u):Wa(t.removed)}catch{En(y,u)}},da=function(u){Lt(I.beforeSanitizeAttributes,u,null);const y=u.attributes;if(!y||ai(u))return;T=aa(I.uponSanitizeAttribute,T,A,Pe);const x={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:T,forceKeepAttr:void 0};let F=y.length;const ee=Le(u.nodeName);for(;F--;){const se=y[F],ae=se.name,Pt=se.namespaceURI,sn=se.value,Ie=Le(ae),yt=sn;let it=ae==="value"?yt:Kh(yt);if(x.attrName=Ie,x.attrValue=it,x.keepAttr=!0,x.forceKeepAttr=void 0,Lt(I.uponSanitizeAttribute,u,x),it=x.attrValue,ut&&(Ie==="id"||Ie==="name")&&Ja(it,co)!==0&&(En(ae,u),it=co+it),ie&&Ve(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,it)){En(ae,u);continue}if(Ie==="attributename"&&qa(it,"href")){En(ae,u);continue}if(!x.forceKeepAttr){if(!x.keepAttr){En(ae,u);continue}if(!q&&Ve(mf,it)){En(ae,u);continue}if(J&&(it=si(it)),!ca(ee,Ie,it)){En(ae,u);continue}it=cd(ee,Ie,Pt,it),it!==yt&&ud(u,ae,Pt,it)}}Lt(I.afterSanitizeAttributes,u,null)},li=function(u){let y=null;const x=sa(u);for(Lt(I.beforeSanitizeShadowDOM,u,null);y=x.nextNode();)if(Lt(I.uponSanitizeShadowNode,y,null),la(y,u),da(y),zn(y.content)&&li(y.content),($?$(y):y.nodeType)===dt.element){const F=P(y);zn(F)&&(vr(F),li(F))}Lt(I.afterSanitizeShadowDOM,u,null)},vr=function(u){const y=[{node:u,shadow:null}];for(;y.length>0;){const x=y.pop();if(x.shadow){li(x.shadow);continue}const F=x.node,ee=($?$(F):F.nodeType)===dt.element,se=k(F);if(se)for(let ae=se.length-1;ae>=0;--ae)y.push({node:se[ae],shadow:null});if(ee){const ae=Q?Q(F):null;if(typeof ae=="string"&&Le(ae)==="template"){const Pt=F.content;zn(Pt)&&y.push({node:Pt,shadow:null})}}if(ee){const ae=P(F);zn(ae)&&y.push({node:null,shadow:ae},{node:ae,shadow:null})}}};return t.sanitize=function(u){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=null,F=null,ee=null,se=null;if(dr=!u,dr&&(u=""),typeof u!="string"&&!ho(u)&&(u=ef(u),typeof u!="string"))throw xn("dirty is not a string, aborting");if(!t.isSupported)return u;be?(f=Ce,T=Pe):mr(y),(I.uponSanitizeElement.length>0||I.uponSanitizeAttribute.length>0)&&(f=Qe(f)),I.uponSanitizeAttribute.length>0&&(T=Qe(T)),t.removed=[];const ae=ni&&typeof u!="string"&&ho(u);if(ae){rd(u);const Ie=Q?Q(u):u.nodeName;if(typeof Ie=="string"){const yt=Le(Ie);if(!f[yt]||N[yt])throw ri(u),xn("root node is forbidden and cannot be sanitized in-place")}if(ai(u))throw ri(u),xn("root node is clobbered and cannot be sanitized in-place");try{vr(u)}catch(yt){throw ri(u),yt}}else if(ho(u))x=ra(""),F=x.ownerDocument.importNode(u,!0),F.nodeType===dt.element&&F.nodeName==="BODY"||F.nodeName==="HTML"?x=F:x.appendChild(F),vr(F);else{if(!We&&!J&&!ce&&u.indexOf("<")===-1)return oe&&_n?S(u):u;if(x=ra(u),!x)return We?null:_n?ge:""}x&<&&wn(x.firstChild);const Pt=ae?u:x;try{const Ie=sa(Pt);for(;ee=Ie.nextNode();)la(ee,Pt),da(ee),zn(ee.content)&&li(ee.content)}catch(Ie){throw ae&&(ri(u),Wn(t.removed,yt=>{yt.element&&po(yt.element)})),Ie}if(ae)return Wn(t.removed,Ie=>{Ie.element&&po(Ie.element)}),J&&gr(u),u;if(We){if(J&&gr(x),kt)for(se=K.call(x.ownerDocument);x.firstChild;)se.appendChild(x.firstChild);else se=x;return(T.shadowroot||T.shadowrootmode)&&(se=ke.call(o,se,!0)),se}let sn=ce?x.outerHTML:x.innerHTML;return ce&&f["!doctype"]&&x.ownerDocument&&x.ownerDocument.doctype&&x.ownerDocument.doctype.name&&Ve(pf,x.ownerDocument.doctype.name)&&(sn=" -`+sn),J&&(sn=si(sn)),oe&&_n?S(sn):sn},t.setConfig=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};mr(u),be=!0,Ce=f,Pe=T},t.clearConfig=function(){Hn=null,be=!1,Ce=null,Pe=null,oe=me,ge=""},t.isValidAttribute=function(u,y,x){Hn||mr({});const F=Le(u),ee=Le(y);return ca(F,ee,x)},t.addHook=function(u,y){typeof y=="function"&&je(I,u)&&qn(I[u],y)},t.removeHook=function(u,y){if(je(I,u)){if(y!==void 0){const x=Jh(I[u],y);return x===-1?void 0:Xh(I[u],x,1)[0]}return Wa(I[u])}},t.removeHooks=function(u){je(I,u)&&(I[u]=[])},t.removeAllHooks=function(){I=ol()},t}var pu=du();function Hs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pr,il;function yf(){if(il)return Pr;il=1;var e=/["'&<>]/;Pr=t;function t(n){var o=""+n,i=e.exec(o);if(!i)return o;var r,s="",l=0,a=0;for(l=i.index;lt)}}globalThis._oc_l10n_registry_translations??={},globalThis._oc_l10n_registry_plural_functions??={};function Se(e,t,n,o,i){const r=typeof n=="object"?n:void 0,s=typeof o=="number"?o:typeof n=="number"?n:void 0,l={escape:!0,sanitize:!0,...typeof i=="object"?i:typeof o=="object"?o:{}},a=_=>_,d=(l.sanitize?pu.sanitize:a)||a,c=l.escape?rl:a,p=_=>typeof _=="string"||typeof _=="number",m=(_,v,k)=>_.replace(/%n/g,""+k).replace(/{([^{}]*)}/g,(R,P)=>{if(v===void 0||!(P in v))return c(R);const D=v[P];return p(D)?c(`${D}`):typeof D=="object"&&p(D.value)?(D.escape!==!1?rl:a)(`${D.value}`):c(R)});let g=(i?.bundle??hu(e)).translations[t]||t;return g=Array.isArray(g)?g[0]:g,d(typeof r=="object"||s!==void 0?m(g,r,s):g)}function wf(e,t,n,o,i,r){const s="_"+t+"_::_"+n+"_",l=r?.bundle??hu(e),a=l.translations[s];if(typeof a<"u"){const d=a;if(Array.isArray(d)){const c=l.pluralFunction(o);return Se(e,d[c],i,o,r)}}return o===1?Se(e,t,i,o,r):Se(e,n,i,o,r)}function Ef(e,t=sr()){switch(t==="pt-BR"&&(t="xbr"),t.length>3&&(t=t.substring(0,t.lastIndexOf("-"))),t){case"az":case"bo":case"dz":case"id":case"ja":case"jv":case"ka":case"km":case"kn":case"ko":case"ms":case"th":case"tr":case"vi":case"zh":return 0;case"af":case"bn":case"bg":case"ca":case"da":case"de":case"el":case"en":case"eo":case"es":case"et":case"eu":case"fa":case"fi":case"fo":case"fur":case"fy":case"gl":case"gu":case"ha":case"he":case"hu":case"is":case"it":case"ku":case"lb":case"ml":case"mn":case"mr":case"nah":case"nb":case"ne":case"nl":case"nn":case"no":case"oc":case"om":case"or":case"pa":case"pap":case"ps":case"pt":case"so":case"sq":case"sv":case"sw":case"ta":case"te":case"tk":case"ur":case"zu":return e===1?0:1;case"am":case"bh":case"fil":case"fr":case"gun":case"hi":case"hy":case"ln":case"mg":case"nso":case"xbr":case"ti":case"wa":return e===0||e===1?0:1;case"be":case"bs":case"hr":case"ru":case"sh":case"sr":case"uk":return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2;case"cs":case"sk":return e===1?0:e>=2&&e<=4?1:2;case"ga":return e===1?0:e===2?1:2;case"lt":return e%10===1&&e%100!==11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2;case"sl":return e%100===1?0:e%100===2?1:e%100===3||e%100===4?2:3;case"mk":return e%10===1?0:1;case"mt":return e===1?0:e===0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3;case"lv":return e===0?0:e%10===1&&e%100!==11?1:2;case"pl":return e===1?0:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?1:2;case"cy":return e===1?0:e===2?1:e===8||e===11?2:3;case"ro":return e===1?0:e===0||e%100>0&&e%100<20?1:2;case"ar":return e===0?0:e===1?1:e===2?2:e%100>=3&&e%100<=10?3:e%100>=11&&e%100<=99?4:5;default:return 0}}const Be=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n};class Tf{bundle;constructor(t){this.bundle={pluralFunction:t,translations:{}}}addTranslations(t){const n=Object.values(t.translations[""]??{}).map(({msgid:o,msgid_plural:i,msgstr:r})=>i!==void 0?[`_${o}_::_${i}_`,r]:[o,r[0]]);this.bundle.translations={...this.bundle.translations,...Object.fromEntries(n)}}gettext(t,n={}){return Se("",t,n,void 0,{bundle:this.bundle})}ngettext(t,n,o,i={}){return wf("",t,n,o,i,{bundle:this.bundle})}}class Sf{debug=!1;language="en";translations={};setLanguage(t){return this.language=t,this}detectLocale(){return this.detectLanguage()}detectLanguage(){return this.setLanguage(sr().replace("-","_"))}addTranslation(t,n){return this.translations[t]=n,this}enableDebugMode(){return this.debug=!0,this}build(){this.debug&&console.debug(`Creating gettext instance for language ${this.language}`);const t=new Tf(n=>Ef(n,this.language));return this.language in this.translations&&t.addTranslations(this.translations[this.language]),t}}function xf(){return new Sf}const zs=xf().detectLanguage().build(),Af=(...e)=>zs.ngettext(...e),Gs=(...e)=>zs.gettext(...e);function Ws(...e){for(const t of e)if(!t.registered){for(const{l:n,t:o}of t){if(n!==sr()||!o)continue;const i=Object.fromEntries(Object.entries(o).map(([r,s])=>[r,{msgid:r,msgid_plural:s.p,msgstr:s.v}]));zs.addTranslations({translations:{"":i}})}t.registered=!0}}const Cf=[{l:"ar",t:{Actions:{v:["إجراءات"]}}},{l:"ast",t:{Actions:{v:["Aiciones"]}}},{l:"br",t:{Actions:{v:["Oberioù"]}}},{l:"ca",t:{Actions:{v:["Accions"]}}},{l:"cs",t:{Actions:{v:["Akce"]}}},{l:"cs-CZ",t:{Actions:{v:["Akce"]}}},{l:"da",t:{Actions:{v:["Handlinger"]}}},{l:"de",t:{Actions:{v:["Aktionen"]}}},{l:"de-DE",t:{Actions:{v:["Aktionen"]}}},{l:"el",t:{Actions:{v:["Ενέργειες"]}}},{l:"en-GB",t:{Actions:{v:["Actions"]}}},{l:"eo",t:{Actions:{v:["Agoj"]}}},{l:"es",t:{Actions:{v:["Acciones"]}}},{l:"es-AR",t:{Actions:{v:["Acciones"]}}},{l:"es-EC",t:{Actions:{v:["Acciones"]}}},{l:"es-MX",t:{Actions:{v:["Acciones"]}}},{l:"et-EE",t:{Actions:{v:["Tegevus"]}}},{l:"eu",t:{Actions:{v:["Ekintzak"]}}},{l:"fa",t:{Actions:{v:["کنش‌ها"]}}},{l:"fi",t:{Actions:{v:["Toiminnot"]}}},{l:"fr",t:{Actions:{v:["Actions"]}}},{l:"ga",t:{Actions:{v:["Gníomhartha"]}}},{l:"gl",t:{Actions:{v:["Accións"]}}},{l:"he",t:{Actions:{v:["פעולות"]}}},{l:"hr",t:{Actions:{v:["Radnje"]}}},{l:"hu",t:{Actions:{v:["Műveletek"]}}},{l:"id",t:{Actions:{v:["Tindakan"]}}},{l:"is",t:{Actions:{v:["Aðgerðir"]}}},{l:"it",t:{Actions:{v:["Azioni"]}}},{l:"ja",t:{Actions:{v:["操作"]}}},{l:"ja-JP",t:{Actions:{v:["操作"]}}},{l:"ko",t:{Actions:{v:["동작"]}}},{l:"lo",t:{Actions:{v:["ການກະທຳ"]}}},{l:"lt-LT",t:{Actions:{v:["Veiksmai"]}}},{l:"lv",t:{}},{l:"mk",t:{Actions:{v:["Акции"]}}},{l:"mn",t:{Actions:{v:["Үйлдлүүд"]}}},{l:"my",t:{Actions:{v:["လုပ်ဆောင်ချက်များ"]}}},{l:"nb",t:{Actions:{v:["Handlinger"]}}},{l:"nl",t:{Actions:{v:["Acties"]}}},{l:"oc",t:{Actions:{v:["Accions"]}}},{l:"pl",t:{Actions:{v:["Działania"]}}},{l:"pt-BR",t:{Actions:{v:["Ações"]}}},{l:"pt-PT",t:{Actions:{v:["Ações"]}}},{l:"ro",t:{Actions:{v:["Acțiuni"]}}},{l:"ru",t:{Actions:{v:["Действия "]}}},{l:"sk",t:{Actions:{v:["Akcie"]}}},{l:"sl",t:{Actions:{v:["Dejanja"]}}},{l:"sr",t:{Actions:{v:["Радње"]}}},{l:"sv",t:{Actions:{v:["Åtgärder"]}}},{l:"tr",t:{Actions:{v:["İşlemler"]}}},{l:"uk",t:{Actions:{v:["Дії"]}}},{l:"uz",t:{Actions:{v:["Harakatlar"]}}},{l:"zh-CN",t:{Actions:{v:["行为"]}}},{l:"zh-HK",t:{Actions:{v:["動作"]}}},{l:"zh-TW",t:{Actions:{v:["動作"]}}}],$f=[{l:"ar",t:{}},{l:"ast",t:{}},{l:"br",t:{}},{l:"ca",t:{}},{l:"cs",t:{"External documentation":{v:["Externí dokumentace"]}}},{l:"cs-CZ",t:{}},{l:"da",t:{"External documentation":{v:["Ekstern dokumentation"]}}},{l:"de",t:{"External documentation":{v:["Externe Dokumentation"]}}},{l:"de-DE",t:{"External documentation":{v:["Externe Dokumentation"]}}},{l:"el",t:{"External documentation":{v:["Εξωτερική τεκμηρίωση"]}}},{l:"en-GB",t:{"External documentation":{v:["External documentation"]}}},{l:"eo",t:{}},{l:"es",t:{}},{l:"es-AR",t:{}},{l:"es-EC",t:{}},{l:"es-MX",t:{}},{l:"et-EE",t:{"External documentation":{v:["Dokumentatsioon välises allikas"]}}},{l:"eu",t:{}},{l:"fa",t:{}},{l:"fi",t:{}},{l:"fr",t:{"External documentation":{v:["Documentation externe"]}}},{l:"ga",t:{"External documentation":{v:["Doiciméadú seachtrach"]}}},{l:"gl",t:{"External documentation":{v:["Documentación externa"]}}},{l:"he",t:{}},{l:"hr",t:{"External documentation":{v:["Vanjska dokumentacija"]}}},{l:"hu",t:{"External documentation":{v:["Külső dokumentáció"]}}},{l:"id",t:{"External documentation":{v:["Dokumentasi eksternal"]}}},{l:"is",t:{}},{l:"it",t:{}},{l:"ja",t:{"External documentation":{v:["外部ドキュメント"]}}},{l:"ja-JP",t:{}},{l:"ko",t:{"External documentation":{v:["외부 문서"]}}},{l:"lo",t:{"External documentation":{v:["ເອກະສານພາຍນອກ"]}}},{l:"lt-LT",t:{"External documentation":{v:["Išorinė dokumentacija"]}}},{l:"lv",t:{}},{l:"mk",t:{"External documentation":{v:["Надворешна документација"]}}},{l:"mn",t:{"External documentation":{v:["Гадаад баримт бичиг"]}}},{l:"my",t:{}},{l:"nb",t:{}},{l:"nl",t:{"External documentation":{v:["Externe documentatie"]}}},{l:"oc",t:{}},{l:"pl",t:{}},{l:"pt-BR",t:{"External documentation":{v:["Documentação externa"]}}},{l:"pt-PT",t:{}},{l:"ro",t:{}},{l:"ru",t:{"External documentation":{v:["Внешняя документация"]}}},{l:"sk",t:{}},{l:"sl",t:{}},{l:"sr",t:{"External documentation":{v:["Спољна документација"]}}},{l:"sv",t:{"External documentation":{v:["Extern dokumentation"]}}},{l:"tr",t:{"External documentation":{v:["Dış belgeler"]}}},{l:"uk",t:{"External documentation":{v:["Зовнішня документація"]}}},{l:"uz",t:{"External documentation":{v:["Tashqi hujjatlar"]}}},{l:"zh-CN",t:{}},{l:"zh-HK",t:{"External documentation":{v:["外部文件"]}}},{l:"zh-TW",t:{"External documentation":{v:["外部文件"]}}}],kf={name:"HelpCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Rf=["aria-hidden","aria-label"],Of=["fill","width","height"],Lf={d:"M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z"},Pf={key:0};function Mf(e,t,n,o,i,r){return L(),z("span",ze(e.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon help-circle-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(L(),z("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[ne("path",Lf,[n.title?(L(),z("title",Pf,fe(n.title),1)):ye("",!0)])],8,Of))],16,Rf)}const Nf=Be(kf,[["render",Mf]]);Ws($f);const Df={class:"settings-section"},Ff={class:"settings-section__name"},Bf=["aria-label","href","title"],Vf={key:0,class:"settings-section__desc"},jf=at({__name:"NcSettingsSection",props:{name:{},description:{default:""},docUrl:{default:""}},setup(e){const t=Gs("External documentation");return(n,o)=>(L(),z("div",Df,[ne("h2",Ff,[_t(fe(e.name)+" ",1),e.docUrl?(L(),z("a",{key:0,"aria-label":X(t),class:"settings-section__info",href:e.docUrl,rel:"noreferrer nofollow",target:"_blank",title:X(t)},[le(Nf,{size:20})],8,Bf)):ye("",!0)]),e.description?(L(),z("p",Vf,fe(e.description),1)):ye("",!0),De(n.$slots,"default",{},void 0,!0)]))}}),Uf=Be(jf,[["__scopeId","data-v-9cedb949"]]);var Hf="M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z",sl="M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z",zf="M23,12L20.56,9.22L20.9,5.54L17.29,4.72L15.4,1.54L12,3L8.6,1.54L6.71,4.72L3.1,5.53L3.44,9.21L1,12L3.44,14.78L3.1,18.47L6.71,19.29L8.6,22.47L12,21L15.4,22.46L17.29,19.28L20.9,18.46L20.56,14.78L23,12M13,17H11V15H13V17M13,13H11V7H13V13Z",ds="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",Gf="M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",Wf="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",qf="M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z";const Jf=["aria-hidden","aria-label"],Xf={key:0,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Kf=["d"],Yf=["innerHTML"],Zf=at({__name:"NcIconSvgWrapper",props:{directional:{type:Boolean},inline:{type:Boolean},svg:{default:""},name:{default:void 0},path:{default:""},size:{default:20}},setup(e){Us(i=>({fb515064:n.value}));const t=e,n=ve(()=>typeof t.size=="number"?`${t.size}px`:t.size),o=ve(()=>{if(!t.svg||t.path)return;const i=pu.sanitize(t.svg),r=new DOMParser().parseFromString(i,"image/svg+xml");return r.querySelector("parsererror")?"":(r.documentElement.id&&r.documentElement.removeAttribute("id"),r.documentElement.outerHTML)});return(i,r)=>(L(),z("span",{"aria-hidden":e.name?void 0:"true","aria-label":e.name||void 0,class:xe(["icon-vue",{"icon-vue--directional":e.directional,"icon-vue--inline":e.inline}]),role:"img"},[o.value?(L(),z("span",{key:1,innerHTML:o.value},null,8,Yf)):(L(),z("svg",Xf,[ne("path",{d:e.path},null,8,Kf)]))],10,Jf))}}),On=Be(Zf,[["__scopeId","data-v-aaedb1c3"]]),fu=Symbol.for("NcActions:isSemanticMenu"),mu=Symbol.for("NcActions:closeMenu"),If={beforeUpdate(){this.text=this.getText()},data(){return{text:this.getText()}},computed:{isLongText(){return this.text&&this.text.trim().length>20}},methods:{getText(){return this.$slots.default?.()[0].children?.trim?.()||""}}},Qf={mixins:[If],props:{icon:{type:String,default:""},name:{type:String,default:""},title:{type:String,default:""},closeAfterClick:{type:Boolean,default:!1},ariaLabel:{type:String,default:null}},inject:{closeMenu:{from:mu}},emits:["click"],created(){"ariaHidden"in this.$attrs},computed:{isIconUrl(){try{return!!new URL(this.icon,this.icon.startsWith("/")?window.location.origin:void 0)}catch{return!1}}},methods:{onClick(e){this.$emit("click",e),this.closeAfterClick&&this.closeMenu(!1)}}},em={name:"NcActionButton",components:{NcIconSvgWrapper:On},mixins:[Qf],inject:{isInSemanticMenu:{from:fu,default:!1}},props:{disabled:{type:Boolean,default:!1},isMenu:{type:Boolean,default:!1},type:{type:String,default:"button",validator:e=>["button","checkbox","radio","reset","submit"].includes(e)},modelValue:{type:[Boolean,String],default:null},value:{type:String,default:null},description:{type:String,default:""}},emits:["update:modelValue"],setup(){return{mdiCheck:ds,mdiChevronRight:Wf}},computed:{isFocusable(){return!this.disabled},isChecked(){return this.type==="radio"&&typeof this.modelValue!="boolean"?this.modelValue===this.value:this.modelValue},nativeType(){return this.type==="submit"||this.type==="reset"?this.type:"button"},buttonAttributes(){const e={};return this.isInSemanticMenu?(e.role="menuitem",this.type==="radio"?(e.role="menuitemradio",e["aria-checked"]=this.isChecked?"true":"false"):(this.type==="checkbox"||this.nativeType==="button"&&this.modelValue!==null)&&(e.role="menuitemcheckbox",e["aria-checked"]=this.modelValue===null?"mixed":this.modelValue?"true":"false")):this.modelValue!==null&&this.nativeType==="button"&&(e["aria-pressed"]=this.modelValue?"true":"false"),e}},methods:{handleClick(e){this.onClick(e),(this.modelValue!==null||this.type!=="button")&&(this.type==="radio"?typeof this.modelValue!="boolean"?this.isChecked||this.$emit("update:modelValue",this.value):this.$emit("update:modelValue",!this.isChecked):this.$emit("update:modelValue",!this.isChecked))}}},tm=["role"],nm=["aria-label","disabled","title","type"],om={class:"action-button__longtext-wrapper"},im={key:0,class:"action-button__name"},rm=["textContent"],sm={key:2,class:"action-button__text"},am=["textContent"],lm={key:2,class:"action-button__pressed-icon material-design-icon"};function cm(e,t,n,o,i,r){const s=nn("NcIconSvgWrapper");return L(),z("li",{class:xe(["action",{"action--disabled":n.disabled}]),role:r.isInSemanticMenu&&"presentation"},[ne("button",ze({"aria-label":e.ariaLabel,class:["action-button button-vue",{"action-button--active":r.isChecked,focusable:r.isFocusable}],disabled:n.disabled,title:e.title,type:r.nativeType},r.buttonAttributes,{onClick:t[0]||(t[0]=(...l)=>r.handleClick&&r.handleClick(...l))}),[De(e.$slots,"icon",{},()=>[ne("span",{class:xe([[e.isIconUrl?"action-button__icon--url":e.icon],"action-button__icon"]),style:hn({backgroundImage:e.isIconUrl?`url(${e.icon})`:null}),"aria-hidden":"true"},null,6)],!0),ne("span",om,[e.name?(L(),z("strong",im,fe(e.name),1)):ye("",!0),e.isLongText?(L(),z("span",{key:1,class:"action-button__longtext",textContent:fe(e.text)},null,8,rm)):(L(),z("span",sm,fe(e.text),1)),n.description?(L(),z("span",{key:3,class:"action-button__description",textContent:fe(n.description)},null,8,am)):ye("",!0)]),n.isMenu?(L(),$e(s,{key:0,class:"action-button__menu-icon",directional:"",path:o.mdiChevronRight},null,8,["path"])):r.isChecked?(L(),$e(s,{key:1,path:o.mdiCheck,class:"action-button__pressed-icon"},null,8,["path"])):r.isChecked===!1?(L(),z("span",lm)):ye("",!0),ye("",!0)],16,nm)],10,tm)}const um=Be(em,[["render",cm],["__scopeId","data-v-6c2daf4e"]]);function ps(){return window._nc_focus_trap??=[],window._nc_focus_trap}function dm(){let e=[];return{pause(){e=[...ps()];for(const t of e)t.pause()},unpause(){if(e.length===ps().length)for(const t of e)t.unpause();e=[]}}}function pm(e,t={}){const n=dm();to(e,()=>{va(t.disabled)||(va(e)?n.pause():n.unpause())}),or(()=>{n.unpause()})}window._nc_vue_element_id=window._nc_vue_element_id??0;function Lo(){return`nc-vue-${window._nc_vue_element_id++}`}const hm=Symbol(""),[fm]=window.OC?.config?.version?.split(".")??[],gu=Number.parseInt(fm??"34"),Di=gu<32,mm=gu<34,gm=Symbol.for("NcFormBox:context");function vm(){return fn(gm,{isInFormBox:!1,formBoxItemClass:void 0})}const ym={class:"button-vue__wrapper"},bm={class:"button-vue__icon"},_m={class:"button-vue__text"},wm=at({__name:"NcButton",props:{alignment:{default:"center"},ariaLabel:{default:void 0},disabled:{type:Boolean},download:{type:[String,Boolean],default:void 0},href:{default:void 0},pressed:{type:Boolean,default:void 0},size:{default:"normal"},target:{default:"_self"},text:{default:void 0},to:{default:void 0},type:{default:"button"},variant:{default:"secondary"},wide:{type:Boolean}},emits:["click","update:pressed"],setup(e,{emit:t}){const n=e,o=t,{formBoxItemClass:i}=vm(),r=fn(hm,null)!==null,s=ve(()=>r&&n.to?"RouterLink":n.href?"a":"button"),l=ve(()=>s.value==="button"&&typeof n.pressed=="boolean"),a=ve(()=>n.pressed?"primary":n.pressed===!1&&n.variant==="primary"?"secondary":n.variant),d=ve(()=>a.value.startsWith("tertiary")),c=ve(()=>n.alignment.split("-")[0]),p=ve(()=>n.alignment.includes("-")),m=fn("NcPopover:trigger:attrs",()=>({}),!1),g=ve(()=>m()),_=ve(()=>{if(s.value==="RouterLink")return{to:n.to,activeClass:"active"};if(s.value==="a")return{href:n.href||"#",target:n.target,rel:"nofollow noreferrer noopener",download:n.download||void 0};if(s.value==="button")return{...g.value,"aria-pressed":n.pressed,type:n.type,disabled:n.disabled}});function v(k){l.value&&o("update:pressed",!n.pressed),o("click",k)}return(k,R)=>(L(),$e(Bs(s.value),ze({class:["button-vue",[`button-vue--size-${e.size}`,{[`button-vue--${a.value}`]:a.value,"button-vue--tertiary":d.value,"button-vue--wide":e.wide,[`button-vue--${c.value}`]:c.value!=="center","button-vue--reverse":p.value,"button-vue--legacy":X(Di),"button-vue--legacy34":X(mm)},X(i)]],"aria-label":e.ariaLabel},_.value,{onClick:v}),{default:Re(()=>[ne("span",ym,[ne("span",bm,[De(k.$slots,"icon",{},void 0,!0)]),ne("span",_m,[De(k.$slots,"default",{},()=>[_t(fe(e.text),1)],!0)])])]),_:3},16,["class","aria-label"]))}}),Po=Be(wm,[["__scopeId","data-v-18f6cf03"]]),Em=["top","right","bottom","left"],al=["start","end"],ll=Em.reduce((e,t)=>e.concat(t,t+"-"+al[0],t+"-"+al[1]),[]),Jo=Math.min,$n=Math.max,Tm={left:"right",right:"left",bottom:"top",top:"bottom"};function hs(e,t,n){return $n(e,Jo(t,n))}function Dn(e,t){return typeof e=="function"?e(t):e}function Wt(e){return e.split("-")[0]}function St(e){return e.split("-")[1]}function vu(e){return e==="x"?"y":"x"}function qs(e){return e==="y"?"height":"width"}function Qt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Js(e){return vu(Qt(e))}function yu(e,t,n){n===void 0&&(n=!1);const o=St(e),i=Js(e),r=qs(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=Bi(s)),[s,Bi(s)]}function Sm(e){const t=Bi(e);return[Fi(e),t,Fi(t)]}function Fi(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const cl=["left","right"],ul=["right","left"],xm=["top","bottom"],Am=["bottom","top"];function Cm(e,t,n){switch(e){case"top":case"bottom":return n?t?ul:cl:t?cl:ul;case"left":case"right":return t?xm:Am;default:return[]}}function $m(e,t,n,o){const i=St(e);let r=Cm(Wt(e),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),t&&(r=r.concat(r.map(Fi)))),r}function Bi(e){const t=Wt(e);return Tm[t]+e.slice(t.length)}function km(e){return{top:0,right:0,bottom:0,left:0,...e}}function bu(e){return typeof e!="number"?km(e):{top:e,right:e,bottom:e,left:e}}function Mo(e){const{x:t,y:n,width:o,height:i}=e;return{width:o,height:i,top:n,left:t,right:t+o,bottom:n+i,x:t,y:n}}function dl(e,t,n){let{reference:o,floating:i}=e;const r=Qt(t),s=Js(t),l=qs(s),a=Wt(t),d=r==="y",c=o.x+o.width/2-i.width/2,p=o.y+o.height/2-i.height/2,m=o[l]/2-i[l]/2;let g;switch(a){case"top":g={x:c,y:o.y-i.height};break;case"bottom":g={x:c,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:p};break;case"left":g={x:o.x-i.width,y:p};break;default:g={x:o.x,y:o.y}}switch(St(t)){case"start":g[s]-=m*(n&&d?-1:1);break;case"end":g[s]+=m*(n&&d?-1:1);break}return g}async function Rm(e,t){var n;t===void 0&&(t={});const{x:o,y:i,platform:r,rects:s,elements:l,strategy:a}=e,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=Dn(t,e),_=bu(g),v=l[m?p==="floating"?"reference":"floating":p],k=Mo(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(v)))==null||n?v:v.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:d,rootBoundary:c,strategy:a})),R=p==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,P=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),D=await(r.isElement==null?void 0:r.isElement(P))?await(r.getScale==null?void 0:r.getScale(P))||{x:1,y:1}:{x:1,y:1},$=Mo(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:R,offsetParent:P,strategy:a}):R);return{top:(k.top-$.top+_.top)/D.y,bottom:($.bottom-k.bottom+_.bottom)/D.y,left:(k.left-$.left+_.left)/D.x,right:($.right-k.right+_.right)/D.x}}const Om=50,Lm=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,l=s.detectOverflow?s:{...s,detectOverflow:Rm},a=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:p}=dl(d,o,a),m=o,g=0;const _={};for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:r,platform:s,elements:l,middlewareData:a}=t,{element:d,padding:c=0}=Dn(e,t)||{};if(d==null)return{};const p=bu(c),m={x:n,y:o},g=Js(i),_=qs(g),v=await s.getDimensions(d),k=g==="y",R=k?"top":"left",P=k?"bottom":"right",D=k?"clientHeight":"clientWidth",$=r.reference[_]+r.reference[g]-m[g]-r.floating[_],Q=m[g]-r.reference[g],re=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let oe=re?re[D]:0;(!oe||!await(s.isElement==null?void 0:s.isElement(re)))&&(oe=l.floating[D]||r.floating[_]);const ge=$/2-Q/2,me=oe/2-v[_]/2-1,pe=Jo(p[R],me),Te=Jo(p[P],me),w=pe,S=oe-v[_]-Te,j=oe/2-v[_]/2+ge,W=hs(w,j,S),B=!a.arrow&&St(i)!=null&&j!==W&&r.reference[_]/2-(jSt(o)===e),...n.filter(o=>St(o)!==e)]:n.filter(o=>Wt(o)===o)).filter(o=>e?St(o)===e||(t?Fi(o)!==o:!1):!0)}const Nm=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,i;const{rects:r,middlewareData:s,placement:l,platform:a,elements:d}=t,{crossAxis:c=!1,alignment:p,allowedPlacements:m=ll,autoAlignment:g=!0,..._}=Dn(e,t),v=p!==void 0||m===ll?Mm(p||null,g,m):m,k=await a.detectOverflow(t,_),R=((n=s.autoPlacement)==null?void 0:n.index)||0,P=v[R];if(P==null)return{};const D=yu(P,r,await(a.isRTL==null?void 0:a.isRTL(d.floating)));if(l!==P)return{reset:{placement:v[0]}};const $=[k[Wt(P)],k[D[0]],k[D[1]]],Q=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:P,overflows:$}],re=v[R+1];if(re)return{data:{index:R+1,overflows:Q},reset:{placement:re}};const oe=Q.map(me=>{const pe=St(me.placement);return[me.placement,pe&&c?me.overflows.slice(0,2).reduce((Te,w)=>Te+w,0):me.overflows[0],me.overflows]}).sort((me,pe)=>me[1]-pe[1]),ge=((i=oe.filter(me=>me[2].slice(0,St(me[0])?2:3).every(pe=>pe<=0))[0])==null?void 0:i[0])||oe[0][0];return ge!==l?{data:{index:R+1,overflows:Q},reset:{placement:ge}}:{}}}},Dm=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:l,platform:a,elements:d}=t,{mainAxis:c=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:v=!0,...k}=Dn(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const R=Wt(i),P=Qt(l),D=Wt(l)===l,$=await(a.isRTL==null?void 0:a.isRTL(d.floating)),Q=m||(D||!v?[Bi(l)]:Sm(l)),re=_!=="none";!m&&re&&Q.push(...$m(l,v,_,$));const oe=[l,...Q],ge=await a.detectOverflow(t,k),me=[];let pe=((o=r.flip)==null?void 0:o.overflows)||[];if(c&&me.push(ge[R]),p){const j=yu(i,s,$);me.push(ge[j[0]],ge[j[1]])}if(pe=[...pe,{placement:i,overflows:me}],!me.every(j=>j<=0)){var Te,w;const j=(((Te=r.flip)==null?void 0:Te.index)||0)+1,W=oe[j];if(W&&(!(p==="alignment"&&P!==Qt(W))||pe.every(V=>Qt(V.placement)===P?V.overflows[0]>0:!0)))return{data:{index:j,overflows:pe},reset:{placement:W}};let B=(w=pe.filter(V=>V.overflows[0]<=0).sort((V,H)=>V.overflows[1]-H.overflows[1])[0])==null?void 0:w.placement;if(!B)switch(g){case"bestFit":{var S;const V=(S=pe.filter(H=>{if(re){const K=Qt(H.placement);return K===P||K==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(K=>K>0).reduce((K,Y)=>K+Y,0)]).sort((H,K)=>H[1]-K[1])[0])==null?void 0:S[0];V&&(B=V);break}case"initialPlacement":B=l;break}if(i!==B)return{reset:{placement:B}}}return{}}}},Fm=new Set(["left","top"]);async function Bm(e,t){const{placement:n,platform:o,elements:i}=e,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=Wt(n),l=St(n),a=Qt(n)==="y",d=Fm.has(s)?-1:1,c=r&&a?-1:1,p=Dn(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:_}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof _=="number"&&(g=l==="end"?_*-1:_),a?{x:g*c,y:m*d}:{x:m*d,y:g*c}}const Vm=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:r,placement:s,middlewareData:l}=t,a=await Bm(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:i+a.x,y:r+a.y,data:{...a,placement:s}}}}},jm=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i,platform:r}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:a={fn:R=>{let{x:P,y:D}=R;return{x:P,y:D}}},...d}=Dn(e,t),c={x:n,y:o},p=await r.detectOverflow(t,d),m=Qt(Wt(i)),g=vu(m);let _=c[g],v=c[m];if(s){const R=g==="y"?"top":"left",P=g==="y"?"bottom":"right",D=_+p[R],$=_-p[P];_=hs(D,_,$)}if(l){const R=m==="y"?"top":"left",P=m==="y"?"bottom":"right",D=v+p[R],$=v-p[P];v=hs(D,v,$)}const k=a.fn({...t,[g]:_,[m]:v});return{...k,data:{x:k.x-n,y:k.y-o,enabled:{[g]:s,[m]:l}}}}}},Um=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:i,rects:r,platform:s,elements:l}=t,{apply:a=()=>{},...d}=Dn(e,t),c=await s.detectOverflow(t,d),p=Wt(i),m=St(i),g=Qt(i)==="y",{width:_,height:v}=r.floating;let k,R;p==="top"||p==="bottom"?(k=p,R=m===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(R=p,k=m==="end"?"top":"bottom");const P=v-c.top-c.bottom,D=_-c.left-c.right,$=Jo(v-c[k],P),Q=Jo(_-c[R],D),re=!t.middlewareData.shift;let oe=$,ge=Q;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(ge=D),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(oe=P),re&&!m){const pe=$n(c.left,0),Te=$n(c.right,0),w=$n(c.top,0),S=$n(c.bottom,0);g?ge=_-2*(pe!==0||Te!==0?pe+Te:$n(c.left,c.right)):oe=v-2*(w!==0||S!==0?w+S:$n(c.top,c.bottom))}await a({...t,availableWidth:ge,availableHeight:oe});const me=await s.getDimensions(l.floating);return _!==me.width||v!==me.height?{reset:{rects:!0}}:{}}}};function mt(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function jt(e){return mt(e).getComputedStyle(e)}const pl=Math.min,No=Math.max,Vi=Math.round;function _u(e){const t=jt(e);let n=parseFloat(t.width),o=parseFloat(t.height);const i=e.offsetWidth,r=e.offsetHeight,s=Vi(n)!==i||Vi(o)!==r;return s&&(n=i,o=r),{width:n,height:o,fallback:s}}function yn(e){return Eu(e)?(e.nodeName||"").toLowerCase():""}let hi;function wu(){if(hi)return hi;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(hi=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),hi):navigator.userAgent}function Ut(e){return e instanceof mt(e).HTMLElement}function mn(e){return e instanceof mt(e).Element}function Eu(e){return e instanceof mt(e).Node}function hl(e){return typeof ShadowRoot>"u"?!1:e instanceof mt(e).ShadowRoot||e instanceof ShadowRoot}function ar(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=jt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}function Hm(e){return["table","td","th"].includes(yn(e))}function fs(e){const t=/firefox/i.test(wu()),n=jt(e),o=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!o&&o!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some((i=>n.willChange.includes(i)))||["paint","layout","strict","content"].some((i=>{const r=n.contain;return r!=null&&r.includes(i)}))}function Tu(){return!/^((?!chrome|android).)*safari/i.test(wu())}function Xs(e){return["html","body","#document"].includes(yn(e))}function Su(e){return mn(e)?e:e.contextElement}const xu={x:1,y:1};function io(e){const t=Su(e);if(!Ut(t))return xu;const n=t.getBoundingClientRect(),{width:o,height:i,fallback:r}=_u(t);let s=(r?Vi(n.width):n.width)/o,l=(r?Vi(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}function Xo(e,t,n,o){var i,r;t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),l=Su(e);let a=xu;t&&(o?mn(o)&&(a=io(o)):a=io(e));const d=l?mt(l):window,c=!Tu()&&n;let p=(s.left+(c&&((i=d.visualViewport)==null?void 0:i.offsetLeft)||0))/a.x,m=(s.top+(c&&((r=d.visualViewport)==null?void 0:r.offsetTop)||0))/a.y,g=s.width/a.x,_=s.height/a.y;if(l){const v=mt(l),k=o&&mn(o)?mt(o):o;let R=v.frameElement;for(;R&&o&&k!==v;){const P=io(R),D=R.getBoundingClientRect(),$=getComputedStyle(R);D.x+=(R.clientLeft+parseFloat($.paddingLeft))*P.x,D.y+=(R.clientTop+parseFloat($.paddingTop))*P.y,p*=P.x,m*=P.y,g*=P.x,_*=P.y,p+=D.x,m+=D.y,R=mt(R).frameElement}}return{width:g,height:_,top:m,right:p+g,bottom:m+_,left:p,x:p,y:m}}function gn(e){return((Eu(e)?e.ownerDocument:e.document)||window.document).documentElement}function lr(e){return mn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Au(e){return Xo(gn(e)).left+lr(e).scrollLeft}function Ko(e){if(yn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||hl(e)&&e.host||gn(e);return hl(t)?t.host:t}function Cu(e){const t=Ko(e);return Xs(t)?t.ownerDocument.body:Ut(t)&&ar(t)?t:Cu(t)}function ji(e,t){var n;t===void 0&&(t=[]);const o=Cu(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),r=mt(o);return i?t.concat(r,r.visualViewport||[],ar(o)?o:[]):t.concat(o,ji(o))}function fl(e,t,n){return t==="viewport"?Mo((function(o,i){const r=mt(o),s=gn(o),l=r.visualViewport;let a=s.clientWidth,d=s.clientHeight,c=0,p=0;if(l){a=l.width,d=l.height;const m=Tu();(m||!m&&i==="fixed")&&(c=l.offsetLeft,p=l.offsetTop)}return{width:a,height:d,x:c,y:p}})(e,n)):mn(t)?Mo((function(o,i){const r=Xo(o,!0,i==="fixed"),s=r.top+o.clientTop,l=r.left+o.clientLeft,a=Ut(o)?io(o):{x:1,y:1};return{width:o.clientWidth*a.x,height:o.clientHeight*a.y,x:l*a.x,y:s*a.y}})(t,n)):Mo((function(o){const i=gn(o),r=lr(o),s=o.ownerDocument.body,l=No(i.scrollWidth,i.clientWidth,s.scrollWidth,s.clientWidth),a=No(i.scrollHeight,i.clientHeight,s.scrollHeight,s.clientHeight);let d=-r.scrollLeft+Au(o);const c=-r.scrollTop;return jt(s).direction==="rtl"&&(d+=No(i.clientWidth,s.clientWidth)-l),{width:l,height:a,x:d,y:c}})(gn(e)))}function ml(e){return Ut(e)&&jt(e).position!=="fixed"?e.offsetParent:null}function gl(e){const t=mt(e);let n=ml(e);for(;n&&Hm(n)&&jt(n).position==="static";)n=ml(n);return n&&(yn(n)==="html"||yn(n)==="body"&&jt(n).position==="static"&&!fs(n))?t:n||(function(o){let i=Ko(o);for(;Ut(i)&&!Xs(i);){if(fs(i))return i;i=Ko(i)}return null})(e)||t}function zm(e,t,n){const o=Ut(t),i=gn(t),r=Xo(e,!0,n==="fixed",t);let s={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(o||!o&&n!=="fixed")if((yn(t)!=="body"||ar(i))&&(s=lr(t)),Ut(t)){const a=Xo(t,!0);l.x=a.x+t.clientLeft,l.y=a.y+t.clientTop}else i&&(l.x=Au(i));return{x:r.left+s.scrollLeft-l.x,y:r.top+s.scrollTop-l.y,width:r.width,height:r.height}}const Gm={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const r=n==="clippingAncestors"?(function(d,c){const p=c.get(d);if(p)return p;let m=ji(d).filter((k=>mn(k)&&yn(k)!=="body")),g=null;const _=jt(d).position==="fixed";let v=_?Ko(d):d;for(;mn(v)&&!Xs(v);){const k=jt(v),R=fs(v);(_?R||g:R||k.position!=="static"||!g||!["absolute","fixed"].includes(g.position))?g=k:m=m.filter((P=>P!==v)),v=Ko(v)}return c.set(d,m),m})(t,this._c):[].concat(n),s=[...r,o],l=s[0],a=s.reduce(((d,c)=>{const p=fl(t,c,i);return d.top=No(p.top,d.top),d.right=pl(p.right,d.right),d.bottom=pl(p.bottom,d.bottom),d.left=No(p.left,d.left),d}),fl(t,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const i=Ut(n),r=gn(n);if(n===r)return t;let s={scrollLeft:0,scrollTop:0},l={x:1,y:1};const a={x:0,y:0};if((i||!i&&o!=="fixed")&&((yn(n)!=="body"||ar(r))&&(s=lr(n)),Ut(n))){const d=Xo(n);l=io(n),a.x=d.x+n.clientLeft,a.y=d.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+a.x,y:t.y*l.y-s.scrollTop*l.y+a.y}},isElement:mn,getDimensions:function(e){return Ut(e)?_u(e):e.getBoundingClientRect()},getOffsetParent:gl,getDocumentElement:gn,getScale:io,async getElementRects(e){let{reference:t,floating:n,strategy:o}=e;const i=this.getOffsetParent||gl,r=this.getDimensions;return{reference:zm(t,await i(n),o),floating:{x:0,y:0,...await r(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>jt(e).direction==="rtl"},Wm=(e,t,n)=>{const o=new Map,i={platform:Gm,...n},r={...i.platform,_c:o};return Lm(e,t,{...i,platform:r})},vn={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function qm(e,t){let n=vn.themes[e]||{},o;do o=n[t],typeof o>"u"?n.$extend?n=vn.themes[n.$extend]||{}:(n=null,o=vn[t]):n=null;while(n);return o}function Jm(e){const t=[e];let n=vn.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=vn.themes[n.$extend]||{}):n=null;while(n);return t.map(o=>`v-popper--theme-${o}`)}function vl(e){const t=[e];let n=vn.themes[e]||{};do n.$extend?(t.push(n.$extend),n=vn.themes[n.$extend]||{}):n=null;while(n);return t}let Yo=!1;if(typeof window<"u"){Yo=!1;try{const e=Object.defineProperty({},"passive",{get(){Yo=!0}});window.addEventListener("test",null,e)}catch{}}let $u=!1;typeof window<"u"&&typeof navigator<"u"&&($u=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Xm=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),yl={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},bl={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function _l(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Mr(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const wt=[];let An=null;const wl={};function El(e){let t=wl[e];return t||(t=wl[e]=[]),t}let ms=function(){};typeof window<"u"&&(ms=window.Element);function ue(e){return function(t){return qm(t.theme,e)}}const Nr="__floating-vue__popper",ku=()=>at({name:"VPopper",provide(){return{[Nr]:{parentPopper:this}}},inject:{[Nr]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:ue("disabled")},positioningDisabled:{type:Boolean,default:ue("positioningDisabled")},placement:{type:String,default:ue("placement"),validator:e=>Xm.includes(e)},delay:{type:[String,Number,Object],default:ue("delay")},distance:{type:[Number,String],default:ue("distance")},skidding:{type:[Number,String],default:ue("skidding")},triggers:{type:Array,default:ue("triggers")},showTriggers:{type:[Array,Function],default:ue("showTriggers")},hideTriggers:{type:[Array,Function],default:ue("hideTriggers")},popperTriggers:{type:Array,default:ue("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ue("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ue("popperHideTriggers")},container:{type:[String,Object,ms,Boolean],default:ue("container")},boundary:{type:[String,ms],default:ue("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ue("strategy")},autoHide:{type:[Boolean,Function],default:ue("autoHide")},handleResize:{type:Boolean,default:ue("handleResize")},instantMove:{type:Boolean,default:ue("instantMove")},eagerMount:{type:Boolean,default:ue("eagerMount")},popperClass:{type:[String,Array,Object],default:ue("popperClass")},computeTransformOrigin:{type:Boolean,default:ue("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ue("autoMinSize")},autoSize:{type:[Boolean,String],default:ue("autoSize")},autoMaxSize:{type:Boolean,default:ue("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ue("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ue("preventOverflow")},overflowPadding:{type:[Number,String],default:ue("overflowPadding")},arrowPadding:{type:[Number,String],default:ue("arrowPadding")},arrowOverflow:{type:Boolean,default:ue("arrowOverflow")},flip:{type:Boolean,default:ue("flip")},shift:{type:Boolean,default:ue("shift")},shiftCrossAxis:{type:Boolean,default:ue("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ue("noAutoFocus")},disposeTimeout:{type:Number,default:ue("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Nr])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var o,i;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(((i=this.parentPopper)==null?void 0:i.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(Vm({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(Nm({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(jm({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(Dm({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Pm({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:i,middlewareData:r})=>{let s;const{centerOffset:l}=r.arrow;return o.startsWith("top")||o.startsWith("bottom")?s=Math.abs(l)>i.reference.width/2:s=Math.abs(l)>i.reference.height/2,{data:{overflow:s}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:i,placement:r,middlewareData:s})=>{var l;if((l=s.autoSize)!=null&&l.skip)return{};let a,d;return r.startsWith("top")||r.startsWith("bottom")?a=i.reference.width:d=i.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=a!=null?`${a}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=d!=null?`${d}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(Um({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:i})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=i!=null?`${i}px`:null}})));const n=await Wm(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),An&&this.instantMove&&An.instantMove&&An!==this.parentPopper){An.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(An=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Mr(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...ji(this.$_referenceNode),...ji(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),o=n.parentNode.getBoundingClientRect(),i=t.x+t.width/2-(o.left+n.offsetLeft),r=t.y+t.height/2-(o.top+n.offsetTop);this.result.transformOrigin=`${i}px ${r}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,_l(wt,this),wt.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of vl(this.theme)){const o=El(n);_l(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}An===this&&(An=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Mr(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,yl,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],yl,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,bl,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],bl,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(o=>o.addEventListener(t,n,Yo?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,o,i){let r=n;o!=null&&(r=typeof o=="function"?o(r):o),r.forEach(s=>{const l=t[s];l&&this.$_registerEventListeners(e,l,i)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:o,eventType:i,handler:r}=n;!e||e===i?o.forEach(s=>s.removeEventListener(i,r)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const n of this.$_targetNodes){const o=n.getAttribute(e);o&&(n.removeAttribute(e),n.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const o=e[n];o==null?t.removeAttribute(n):t.setAttribute(n,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Do>=e.left&&Do<=e.right&&Fo>=e.top&&Fo<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=Do-ln,o=Fo-cn,i=t.left+t.width/2-ln+(t.top+t.height/2)-cn+t.width+t.height,r=ln+n*i,s=cn+o*i;return fi(ln,cn,r,s,t.left,t.top,t.left,t.bottom)||fi(ln,cn,r,s,t.left,t.top,t.right,t.top)||fi(ln,cn,r,s,t.right,t.top,t.right,t.bottom)||fi(ln,cn,r,s,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if($u){const e=Yo?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>Tl(t),e),document.addEventListener("touchend",t=>Sl(t,!0),e)}else window.addEventListener("mousedown",e=>Tl(e),!0),window.addEventListener("click",e=>Sl(e,!1),!0);window.addEventListener("resize",Zm)}function Tl(e,t){for(let n=0;n=0;o--){const i=wt[o];try{const r=i.containsGlobalTarget=i.mouseDownContains||i.popperNode().contains(e.target);i.pendingHide=!1,requestAnimationFrame(()=>{if(i.pendingHide=!1,!n[i.randomId]&&xl(i,r,e)){if(i.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&r){let l=i.parentPopper;for(;l;)n[l.randomId]=!0,l=l.parentPopper;return}let s=i.parentPopper;for(;s&&xl(s,s.containsGlobalTarget,e);)s.$_handleGlobalClose(e,t),s=s.parentPopper}})}catch{}}}function xl(e,t,n){return n.closeAllPopover||n.closePopover&&t||Ym(e,n)&&!t}function Ym(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function Zm(){for(let e=0;e{ln=Do,cn=Fo,Do=e.clientX,Fo=e.clientY},Yo?{passive:!0}:void 0);function fi(e,t,n,o,i,r,s,l){const a=((s-i)*(t-r)-(l-r)*(e-i))/((l-r)*(n-e)-(s-i)*(o-t)),d=((n-e)*(t-r)-(o-t)*(e-i))/((l-r)*(n-e)-(s-i)*(o-t));return a>=0&&a<=1&&d>=0&&d<=1}const Im={extends:ku()},Ks=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n};function Qm(e,t,n,o,i,r){return L(),z("div",{ref:"reference",class:xe(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[De(e.$slots,"default",qr(Oi(e.slotData)))],2)}const eg=Ks(Im,[["render",Qm]]);function tg(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var i=e.indexOf("Edge/");return i>0?parseInt(e.substring(i+5,e.indexOf(".",i)),10):-1}let bi;function gs(){gs.init||(gs.init=!0,bi=tg()!==-1)}var _i={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){gs(),wc(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",bi&&this.$el.appendChild(e),e.data="about:blank",bi||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!bi&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const ng=op();tp("data-v-b329ee4c");const og={class:"resize-observer",tabindex:"-1"};np();const ig=ng((e,t,n,o,i,r)=>(L(),$e("div",og)));_i.render=ig,_i.__scopeId="data-v-b329ee4c",_i.__file="src/components/ResizeObserver.vue";const Ru=(e="theme")=>({computed:{themeClass(){return Jm(this[e])}}}),rg=at({name:"VPopperContent",components:{ResizeObserver:_i},mixins:[Ru()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),sg=["id","aria-hidden","tabindex","data-popper-placement"],ag={ref:"inner",class:"v-popper__inner"},lg=ne("div",{class:"v-popper__arrow-outer"},null,-1),cg=ne("div",{class:"v-popper__arrow-inner"},null,-1),ug=[lg,cg];function dg(e,t,n,o,i,r){const s=nn("ResizeObserver");return L(),z("div",{id:e.popperId,ref:"popover",class:xe(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:hn(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Lh(l=>e.autoHide&&e.$emit("hide"),["esc"]))},[ne("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=l=>e.autoHide&&e.$emit("hide"))}),ne("div",{class:"v-popper__wrapper",style:hn(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[ne("div",ag,[e.mounted?(L(),z(Ue,{key:0},[ne("div",null,[De(e.$slots,"default")]),e.handleResize?(L(),$e(s,{key:0,onNotify:t[1]||(t[1]=l=>e.$emit("resize",l))})):ye("",!0)],64)):ye("",!0)],512),ne("div",{ref:"arrow",class:"v-popper__arrow-container",style:hn(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},ug,4)],4)],46,sg)}const pg=Ks(rg,[["render",dg]]),hg={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let vs=function(){};typeof window<"u"&&(vs=window.Element);const fg=at({name:"VPopperWrapper",components:{Popper:eg,PopperContent:pg},mixins:[hg,Ru("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,vs,Boolean],default:void 0},boundary:{type:[String,vs],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function mg(e,t,n,o,i,r){const s=nn("PopperContent"),l=nn("Popper");return L(),$e(l,ze({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=a=>e.$emit("update:shown",a)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:Re(({popperId:a,isShown:d,shouldMountContent:c,skipTransition:p,autoHide:m,show:g,hide:_,handleResize:v,onResize:k,classes:R,result:P})=>[De(e.$slots,"default",{shown:d,show:g,hide:_}),le(s,{ref:"popperContent","popper-id":a,theme:e.finalTheme,shown:d,mounted:c,"skip-transition":p,"auto-hide":m,"handle-resize":v,classes:R,result:P,onHide:_,onResize:k},{default:Re(()=>[De(e.$slots,"popper",{shown:d,hide:_})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const ys=Ks(fg,[["render",mg]]),gg={...ys,name:"VDropdown",vPopperTheme:"dropdown"};({...ys},{...ys}),ku();const Al=vn,vg=gg;var Ou=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Ui=Ou.join(","),Lu=typeof Element>"u",Nn=Lu?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Hi=!Lu&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},zi=function(e,t){var n;t===void 0&&(t=!0);var o=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),i=o===""||o==="true",r=i||t&&e&&(typeof e.closest=="function"?e.closest("[inert]"):zi(e.parentNode));return r},yg=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},Pu=function(e,t,n){if(zi(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(Ui));return t&&Nn.call(e,Ui)&&o.unshift(e),o=o.filter(n),o},Gi=function(e,t,n){for(var o=[],i=Array.from(e);i.length;){var r=i.shift();if(!zi(r,!1))if(r.tagName==="SLOT"){var s=r.assignedElements(),l=s.length?s:r.children,a=Gi(l,!0,n);n.flatten?o.push.apply(o,a):o.push({scopeParent:r,candidates:a})}else{var d=Nn.call(r,Ui);d&&n.filter(r)&&(t||!e.includes(r))&&o.push(r);var c=r.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(r),p=!zi(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(r));if(c&&p){var m=Gi(c===!0?r.children:c.children,!0,n);n.flatten?o.push.apply(o,m):o.push({scopeParent:r,candidates:m})}else i.unshift.apply(i,r.children)}}return o},Mu=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},kn=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||yg(e))&&!Mu(e)?0:e.tabIndex},bg=function(e,t){var n=kn(e);return n<0&&t&&!Mu(e)?0:n},_g=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Nu=function(e){return e.tagName==="INPUT"},wg=function(e){return Nu(e)&&e.type==="hidden"},Eg=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},Tg=function(e,t){for(var n=0;nsummary:first-of-type"),a=l?e.parentElement:e;if(Nn.call(a,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof o=="function"){for(var d=e;e;){var c=e.parentElement,p=Hi(e);if(c&&!c.shadowRoot&&o(c)===!0)return Cl(e);e.assignedSlot?e=e.assignedSlot:!c&&p!==e.ownerDocument?e=p.host:e=c}e=d}if(Cg(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return Cl(e);return!1},kg=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n=0)},Du=function(e){var t=[],n=[];return e.forEach(function(o,i){var r=!!o.scopeParent,s=r?o.scopeParent:o,l=bg(s,r),a=r?Du(o.candidates):s;l===0?r?t.push.apply(t,a):t.push(s):n.push({documentOrder:i,tabIndex:l,item:o,isScope:r,content:a})}),n.sort(_g).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(t)},Og=function(e,t){t=t||{};var n;return t.getShadowRoot?n=Gi([e],t.includeContainer,{filter:bs.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Rg}):n=Pu(e,t.includeContainer,bs.bind(null,t)),Du(n)},Lg=function(e,t){t=t||{};var n;return t.getShadowRoot?n=Gi([e],t.includeContainer,{filter:Wi.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=Pu(e,t.includeContainer,Wi.bind(null,t)),n},Jn=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return Nn.call(e,Ui)===!1?!1:bs(t,e)},Pg=Ou.concat("iframe:not([inert]):not([inert] *)").join(","),Dr=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return Nn.call(e,Pg)===!1?!1:Wi(t,e)};function _s(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(a){throw a},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var r,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var a=n.next();return s=a.done,a},e:function(a){l=!0,r=a},f:function(){try{s||n.return==null||n.return()}finally{if(l)throw r}}}}function Ng(e,t,n){return(t=jg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dg(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Fg(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,o)}return n}function Rl(e){for(var t=1;t0?e[e.length-1]:null},activateTrap:function(e,t){var n=It.getActiveTrap(e);t!==n&&It.pauseTrap(e);var o=e.indexOf(t);o===-1||e.splice(o,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),It.unpauseTrap(e)},pauseTrap:function(e){var t=It.getActiveTrap(e);t?._setPausedState(!0)},unpauseTrap:function(e){var t=It.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},Ug=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Hg=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},Bo=function(e){return e?.key==="Tab"||e?.keyCode===9},zg=function(e){return Bo(e)&&!e.shiftKey},Gg=function(e){return Bo(e)&&e.shiftKey},Ol=function(e){return setTimeout(e,0)},bo=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1&&arguments[1]!==void 0?arguments[1]:{},j=S.hasFallback,W=j===void 0?!1:j,B=S.params,V=B===void 0?[]:B,H=i[w];if(typeof H=="function"&&(H=H.apply(void 0,Bg(V))),H===!0&&(H=void 0),!H){if(H===void 0||H===!1)return H;throw new Error("`".concat(w,"` was specified but was not a node, or did not return a node"))}var K=H;if(typeof H=="string"){try{K=n.querySelector(H)}catch(Y){throw new Error("`".concat(w,'` appears to be an invalid selector; error="').concat(Y.message,'"'))}if(!K&&!W)throw new Error("`".concat(w,"` as selector refers to no known node"))}return K},c=function(w){var S=w.activeElement;return S?S.shadowRoot&&S.shadowRoot.activeElement!==null?c(S.shadowRoot):S:null},p=function(){var w=d("initialFocus",{hasFallback:!0});if(w===!1)return!1;if(w===void 0||w&&!Dr(w,i.tabbableOptions)){var S=c(n);if(a(S)>=0)w=S;else{var j=r.tabbableGroups[0],W=j&&j.firstTabbableNode;w=W||d("fallbackFocus")}}else w===null&&(w=d("fallbackFocus"));if(!w)throw new Error("Your focus-trap needs to have at least one focusable element");return w},m=function(){if(r.containerGroups=r.containers.map(function(w){var S=Og(w,i.tabbableOptions),j=Lg(w,i.tabbableOptions),W=S.length>0?S[0]:void 0,B=S.length>0?S[S.length-1]:void 0,V=j.find(function(Y){return Jn(Y)}),H=j.slice().reverse().find(function(Y){return Jn(Y)}),K=!!S.find(function(Y){return kn(Y)>0});return{container:w,tabbableNodes:S,focusableNodes:j,posTabIndexesFound:K,firstTabbableNode:W,lastTabbableNode:B,firstDomTabbableNode:V,lastDomTabbableNode:H,nextTabbableNode:function(Y){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,I=S.indexOf(Y);return I<0?ke?j.slice(j.indexOf(Y)+1).find(function(Ge){return Jn(Ge)}):j.slice(0,j.indexOf(Y)).reverse().find(function(Ge){return Jn(Ge)}):S[I+(ke?1:-1)]}}}),r.tabbableGroups=r.containerGroups.filter(function(w){return w.tabbableNodes.length>0}),r.tabbableGroups.length<=0&&!d("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(r.containerGroups.find(function(w){return w.posTabIndexesFound})&&r.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},g=function(w){if(w!==!1&&w!==c(document)){if(!w||!w.focus){g(p());return}w.focus({preventScroll:!!i.preventScroll}),r.mostRecentlyFocusedNode=w,Ug(w)&&w.select()}},_=function(w){var S=d("setReturnFocus",{params:[w]});return S||(S===!1?!1:w)},v=function(w){var S=w.target,j=w.event,W=w.isBackward,B=W===void 0?!1:W;S=S||mi(j),m();var V=null;if(r.tabbableGroups.length>0){var H=a(S,j),K=H>=0?r.containerGroups[H]:void 0;if(H<0)B?V=r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:V=r.tabbableGroups[0].firstTabbableNode;else if(B){var Y=r.tabbableGroups.findIndex(function(vt){var $t=vt.firstTabbableNode;return S===$t});if(Y<0&&(K.container===S||Dr(S,i.tabbableOptions)&&!Jn(S,i.tabbableOptions)&&!K.nextTabbableNode(S,!1))&&(Y=H),Y>=0){var ke=Y===0?r.tabbableGroups.length-1:Y-1,I=r.tabbableGroups[ke];V=kn(S)>=0?I.lastTabbableNode:I.lastDomTabbableNode}else Bo(j)||(V=K.nextTabbableNode(S,!1))}else{var Ge=r.tabbableGroups.findIndex(function(vt){var $t=vt.lastTabbableNode;return S===$t});if(Ge<0&&(K.container===S||Dr(S,i.tabbableOptions)&&!Jn(S,i.tabbableOptions)&&!K.nextTabbableNode(S))&&(Ge=H),Ge>=0){var bn=Ge===r.tabbableGroups.length-1?0:Ge+1,ht=r.tabbableGroups[bn];V=kn(S)>=0?ht.firstTabbableNode:ht.firstDomTabbableNode}else Bo(j)||(V=K.nextTabbableNode(S))}}else V=d("fallbackFocus");return V},k=function(w){var S=mi(w);if(!(a(S,w)>=0)){if(bo(i.clickOutsideDeactivates,w)){s.deactivate({returnFocus:i.returnFocusOnDeactivate});return}bo(i.allowOutsideClick,w)||w.preventDefault()}},R=function(w){var S=mi(w),j=a(S,w)>=0;if(j||S instanceof Document)j&&(r.mostRecentlyFocusedNode=S);else{w.stopImmediatePropagation();var W,B=!0;if(r.mostRecentlyFocusedNode)if(kn(r.mostRecentlyFocusedNode)>0){var V=a(r.mostRecentlyFocusedNode),H=r.containerGroups[V].tabbableNodes;if(H.length>0){var K=H.findIndex(function(Y){return Y===r.mostRecentlyFocusedNode});K>=0&&(i.isKeyForward(r.recentNavEvent)?K+1=0&&(W=H[K-1],B=!1))}}else r.containerGroups.some(function(Y){return Y.tabbableNodes.some(function(ke){return kn(ke)>0})})||(B=!1);else B=!1;B&&(W=v({target:r.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(r.recentNavEvent)})),g(W||r.mostRecentlyFocusedNode||p())}r.recentNavEvent=void 0},P=function(w){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;r.recentNavEvent=w;var j=v({event:w,isBackward:S});j&&(Bo(w)&&w.preventDefault(),g(j))},D=function(w){(i.isKeyForward(w)||i.isKeyBackward(w))&&P(w,i.isKeyBackward(w))},$=function(w){Hg(w)&&bo(i.escapeDeactivates,w)!==!1&&(w.preventDefault(),s.deactivate())},Q=function(w){var S=mi(w);a(S,w)>=0||bo(i.clickOutsideDeactivates,w)||bo(i.allowOutsideClick,w)||(w.preventDefault(),w.stopImmediatePropagation())},re=function(){if(r.active){It.activateTrap(o,s);var w;return i.delayInitialFocus?w=new Promise(function(S){r.delayInitialFocusTimer=Ol(function(){g(p()),S()})}):g(p()),n.addEventListener("focusin",R,!0),n.addEventListener("mousedown",k,{capture:!0,passive:!1}),n.addEventListener("touchstart",k,{capture:!0,passive:!1}),n.addEventListener("click",Q,{capture:!0,passive:!1}),n.addEventListener("keydown",D,{capture:!0,passive:!1}),n.addEventListener("keydown",$),w}},oe=function(w){r.active&&!r.paused&&s._setSubtreeIsolation(!1),r.adjacentElements.clear(),r.alreadySilent.clear();var S=new Set,j=new Set,W=$l(w),B;try{for(W.s();!(B=W.n()).done;){var V=B.value;S.add(V);for(var H=typeof ShadowRoot<"u"&&V.getRootNode()instanceof ShadowRoot,K=V;K;){S.add(K);var Y=K.parentElement,ke=[];Y?ke=Y.children:!Y&&H&&(ke=K.getRootNode().children,Y=K.getRootNode().host,H=typeof ShadowRoot<"u"&&Y.getRootNode()instanceof ShadowRoot);var I=$l(ke),Ge;try{for(I.s();!(Ge=I.n()).done;){var bn=Ge.value;j.add(bn)}}catch(ht){I.e(ht)}finally{I.f()}K=Y}}}catch(ht){W.e(ht)}finally{W.f()}S.forEach(function(ht){j.delete(ht)}),r.adjacentElements=j},ge=function(){if(r.active)return n.removeEventListener("focusin",R,!0),n.removeEventListener("mousedown",k,!0),n.removeEventListener("touchstart",k,!0),n.removeEventListener("click",Q,!0),n.removeEventListener("keydown",D,!0),n.removeEventListener("keydown",$),s},me=function(w){var S=r.mostRecentlyFocusedNode;if(S){var j=w.some(function(B){var V=Array.from(B.removedNodes);return V.some(function(H){return H===S||typeof H.contains=="function"&&H.contains(S)})});if(j&&r.containers.some(function(B){return B?.isConnected})){m();var W=p();g(W)}}},pe=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(me):void 0,Te=function(){pe&&(pe.disconnect(),r.active&&!r.paused&&r.containers.map(function(w){pe.observe(w,{subtree:!0,childList:!0})}))};return s={get active(){return r.active},get paused(){return r.paused},activate:function(w){if(r.active)return this;var S=l(w,"onActivate"),j=l(w,"onPostActivate"),W=l(w,"checkCanFocusTrap"),B=It.getActiveTrap(o),V=!1;if(B&&!B.paused){var H;(H=B._setSubtreeIsolation)===null||H===void 0||H.call(B,!1),V=!0}try{W||m(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=c(n),S?.({trap:s});var K=function(){W&&m();var ke=function(){s._setSubtreeIsolation(!0),Te(),j?.({trap:s})},I=re();I?I.then(ke):ke()};if(W)return W(r.containers.concat()).then(K,K),this;K()}catch(ke){if(B===It.getActiveTrap(o)&&V){var Y;(Y=B._setSubtreeIsolation)===null||Y===void 0||Y.call(B,!0)}throw ke}return this},deactivate:function(w){if(!r.active)return this;var S=Rl({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},w);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,r.paused||s._setSubtreeIsolation(!1),r.alreadySilent.clear(),ge(),r.active=!1,r.paused=!1,Te(),It.deactivateTrap(o,s);var j=l(S,"onDeactivate"),W=l(S,"onPostDeactivate"),B=l(S,"checkCanReturnFocus"),V=l(S,"delayReturnFocus"),H=l(S,"returnFocus","returnFocusOnDeactivate");j?.({trap:s});var K=function(){H&&g(_(r.nodeFocusedBeforeActivation)),W?.({trap:s})},Y=function(){V&&H?Ol(K):K()};return H&&B?(B(_(r.nodeFocusedBeforeActivation)).then(Y,Y),this):(Y(),this)},pause:function(w){return r.active?(r.manuallyPaused=!0,this._setPausedState(!0,w)):this},unpause:function(w){return r.active?(r.manuallyPaused=!1,o[o.length-1]!==this?this:this._setPausedState(!1,w)):this},updateContainerElements:function(w){var S=[].concat(w).filter(Boolean);return r.containers=S.map(function(j){return typeof j=="string"?n.querySelector(j):j}),i.isolateSubtrees&&oe(r.containers),r.active&&(m(),r.paused||s._setSubtreeIsolation(!0)),Te(),this}},Object.defineProperties(s,{_isManuallyPaused:{value:function(){return r.manuallyPaused}},_setPausedState:{value:function(w,S){if(r.paused===w)return this;if(r.paused=w,w){var j=l(S,"onPause"),W=l(S,"onPostPause");j?.({trap:s}),ge(),s._setSubtreeIsolation(!1),Te(),W?.({trap:s})}else{var B=l(S,"onUnpause"),V=l(S,"onPostUnpause");B?.({trap:s});var H=function(){m();var K=function(){s._setSubtreeIsolation(!0),Te(),V?.({trap:s})},Y=re();Y?Y.then(K):K()};H()}return this}},_setSubtreeIsolation:{value:function(w){i.isolateSubtrees&&r.adjacentElements.forEach(function(S){var j;w?i.isolateSubtrees==="aria-hidden"?((S.ariaHidden==="true"||((j=S.getAttribute("aria-hidden"))===null||j===void 0?void 0:j.toLowerCase())==="true")&&r.alreadySilent.add(S),S.setAttribute("aria-hidden","true")):((S.inert||S.hasAttribute("inert"))&&r.alreadySilent.add(S),S.setAttribute("inert",!0)):r.alreadySilent.has(S)||(i.isolateSubtrees==="aria-hidden"?S.removeAttribute("aria-hidden"):S.removeAttribute("inert"))})}}}),s.updateContainerElements(e),s};function Jg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bu={exports:{}},Me=Bu.exports={},Dt,Ft;function ws(){throw new Error("setTimeout has not been defined")}function Es(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Dt=setTimeout:Dt=ws}catch{Dt=ws}try{typeof clearTimeout=="function"?Ft=clearTimeout:Ft=Es}catch{Ft=Es}})();function Vu(e){if(Dt===setTimeout)return setTimeout(e,0);if((Dt===ws||!Dt)&&setTimeout)return Dt=setTimeout,setTimeout(e,0);try{return Dt(e,0)}catch{try{return Dt.call(null,e,0)}catch{return Dt.call(this,e,0)}}}function Xg(e){if(Ft===clearTimeout)return clearTimeout(e);if((Ft===Es||!Ft)&&clearTimeout)return Ft=clearTimeout,clearTimeout(e);try{return Ft(e)}catch{try{return Ft.call(null,e)}catch{return Ft.call(this,e)}}}var en=[],ro=!1,Ln,wi=-1;function Kg(){!ro||!Ln||(ro=!1,Ln.length?en=Ln.concat(en):wi=-1,en.length&&ju())}function ju(){if(!ro){var e=Vu(Kg);ro=!0;for(var t=en.length;t;){for(Ln=en,en=[];++wi1)for(var n=1;nconsole.error("SEMVER",...t):()=>{},Fr}var Br,Pl;function zu(){if(Pl)return Br;Pl=1;const e="2.0.0",t=256,n=Number.MAX_SAFE_INTEGER||9007199254740991,o=16,i=t-6;return Br={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:i,MAX_SAFE_INTEGER:n,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Br}var Vr={exports:{}},Ml;function Ig(){return Ml||(Ml=1,(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:o,MAX_LENGTH:i}=zu(),r=Hu();t=e.exports={};const s=t.re=[],l=t.safeRe=[],a=t.src=[],d=t.safeSrc=[],c=t.t={};let p=0;const m="[a-zA-Z0-9-]",g=[["\\s",1],["\\d",i],[m,o]],_=k=>{for(const[R,P]of g)k=k.split(`${R}*`).join(`${R}{0,${P}}`).split(`${R}+`).join(`${R}{1,${P}}`);return k},v=(k,R,P)=>{const D=_(R),$=p++;r(k,$,R),c[k]=$,a[$]=R,d[$]=D,s[$]=new RegExp(R,P?"g":void 0),l[$]=new RegExp(D,P?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","\\d+"),v("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${m}*`),v("MAINVERSION",`(${a[c.NUMERICIDENTIFIER]})\\.(${a[c.NUMERICIDENTIFIER]})\\.(${a[c.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${a[c.NUMERICIDENTIFIERLOOSE]})\\.(${a[c.NUMERICIDENTIFIERLOOSE]})\\.(${a[c.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${a[c.NONNUMERICIDENTIFIER]}|${a[c.NUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${a[c.NONNUMERICIDENTIFIER]}|${a[c.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASE",`(?:-(${a[c.PRERELEASEIDENTIFIER]}(?:\\.${a[c.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${a[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[c.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER",`${m}+`),v("BUILD",`(?:\\+(${a[c.BUILDIDENTIFIER]}(?:\\.${a[c.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${a[c.MAINVERSION]}${a[c.PRERELEASE]}?${a[c.BUILD]}?`),v("FULL",`^${a[c.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${a[c.MAINVERSIONLOOSE]}${a[c.PRERELEASELOOSE]}?${a[c.BUILD]}?`),v("LOOSE",`^${a[c.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${a[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${a[c.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${a[c.XRANGEIDENTIFIER]})(?:\\.(${a[c.XRANGEIDENTIFIER]})(?:\\.(${a[c.XRANGEIDENTIFIER]})(?:${a[c.PRERELEASE]})?${a[c.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${a[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[c.XRANGEIDENTIFIERLOOSE]})(?:${a[c.PRERELEASELOOSE]})?${a[c.BUILD]}?)?)?`),v("XRANGE",`^${a[c.GTLT]}\\s*${a[c.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${a[c.GTLT]}\\s*${a[c.XRANGEPLAINLOOSE]}$`),v("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),v("COERCE",`${a[c.COERCEPLAIN]}(?:$|[^\\d])`),v("COERCEFULL",a[c.COERCEPLAIN]+`(?:${a[c.PRERELEASE]})?(?:${a[c.BUILD]})?(?:$|[^\\d])`),v("COERCERTL",a[c.COERCE],!0),v("COERCERTLFULL",a[c.COERCEFULL],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${a[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",v("TILDE",`^${a[c.LONETILDE]}${a[c.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${a[c.LONETILDE]}${a[c.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${a[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",v("CARET",`^${a[c.LONECARET]}${a[c.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${a[c.LONECARET]}${a[c.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${a[c.GTLT]}\\s*(${a[c.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${a[c.GTLT]}\\s*(${a[c.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${a[c.GTLT]}\\s*(${a[c.LOOSEPLAIN]}|${a[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${a[c.XRANGEPLAIN]})\\s+-\\s+(${a[c.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${a[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[c.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Vr,Vr.exports)),Vr.exports}var jr,Nl;function Qg(){if(Nl)return jr;Nl=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return jr=n=>n?typeof n!="object"?e:n:t,jr}var Ur,Dl;function e0(){if(Dl)return Ur;Dl=1;const e=/^[0-9]+$/,t=(n,o)=>{if(typeof n=="number"&&typeof o=="number")return n===o?0:nt(o,n)},Ur}var Hr,Fl;function Gu(){if(Fl)return Hr;Fl=1;const e=Hu(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=zu(),{safeRe:o,t:i}=Ig(),r=Qg(),{compareIdentifiers:s}=e0(),l=(d,c)=>{const p=c.split(".");if(p.length>d.length)return!1;for(let m=0;mt)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",c,p),this.options=p,this.loose=!!p.loose,this.includePrerelease=!!p.includePrerelease;const m=c.trim().match(p.loose?o[i.LOOSE]:o[i.FULL]);if(!m)throw new TypeError(`Invalid Version: ${c}`);if(this.raw=c,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");m[4]?this.prerelease=m[4].split(".").map(g=>{if(/^[0-9]+$/.test(g)){const _=+g;if(_>=0&&_c.major?1:this.minorc.minor?1:this.patchc.patch?1:0}comparePre(c){if(c instanceof a||(c=new a(c,this.options)),this.prerelease.length&&!c.prerelease.length)return-1;if(!this.prerelease.length&&c.prerelease.length)return 1;if(!this.prerelease.length&&!c.prerelease.length)return 0;let p=0;do{const m=this.prerelease[p],g=c.prerelease[p];if(e("prerelease compare",p,m,g),m===void 0&&g===void 0)return 0;if(g===void 0)return 1;if(m===void 0)return-1;if(m!==g)return s(m,g)}while(++p)}compareBuild(c){c instanceof a||(c=new a(c,this.options));let p=0;do{const m=this.build[p],g=c.build[p];if(e("build compare",p,m,g),m===void 0&&g===void 0)return 0;if(g===void 0)return 1;if(m===void 0)return-1;if(m!==g)return s(m,g)}while(++p)}inc(c,p,m){if(c.startsWith("pre")){if(!p&&m===!1)throw new Error("invalid increment argument: identifier is empty");if(p){const g=`-${p}`.match(this.options.loose?o[i.PRERELEASELOOSE]:o[i.PRERELEASE]);if(!g||g[1]!==p)throw new Error(`invalid identifier: ${p}`)}}switch(c){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",p,m);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",p,m);break;case"prepatch":this.prerelease.length=0,this.inc("patch",p,m),this.inc("pre",p,m);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",p,m),this.inc("pre",p,m);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const g=Number(m)?1:0;if(this.prerelease.length===0)this.prerelease=[g];else{let _=this.prerelease.length;for(;--_>=0;)typeof this.prerelease[_]=="number"&&(this.prerelease[_]++,_=-2);if(_===-1){if(p===this.prerelease.join(".")&&m===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(g)}}if(p){let _=[p,g];if(m===!1&&(_=[p]),l(this.prerelease,p)){const v=this.prerelease[p.split(".").length];isNaN(v)&&(this.prerelease=_)}else this.prerelease=_}break}default:throw new Error(`invalid increment argument: ${c}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return Hr=a,Hr}var zr,Bl;function t0(){if(Bl)return zr;Bl=1;const e=Gu();return zr=(t,n)=>new e(t,n).major,zr}var n0=t0();const Vl=Hs(n0);var Gr,jl;function o0(){if(jl)return Gr;jl=1;const e=Gu();return Gr=(t,n,o=!1)=>{if(t instanceof e)return t;try{return new e(t,n)}catch(i){if(!o)return null;throw i}},Gr}var Wr,Ul;function i0(){if(Ul)return Wr;Ul=1;const e=o0();return Wr=(t,n)=>{const o=e(t,n);return o?o.version:null},Wr}var r0=i0();const s0=Hs(r0);class a0{bus;constructor(t){typeof t.getVersion!="function"||!s0(t.getVersion())?console.warn("Proxying an event bus with an unknown or invalid version"):Vl(t.getVersion())!==Vl(this.getVersion())&&console.warn("Proxying an event bus of version "+t.getVersion()+" with "+this.getVersion()),this.bus=t}getVersion(){return"3.3.3"}subscribe(t,n){this.bus.subscribe(t,n)}unsubscribe(t,n){this.bus.unsubscribe(t,n)}emit(t,...n){this.bus.emit(t,...n)}}class l0{handlers=new Map;getVersion(){return"3.3.3"}subscribe(t,n){this.handlers.set(t,(this.handlers.get(t)||[]).concat(n))}unsubscribe(t,n){this.handlers.set(t,(this.handlers.get(t)||[]).filter(o=>o!==n))}emit(t,...n){(this.handlers.get(t)||[]).forEach(o=>{try{o(n[0])}catch(i){console.error("could not invoke event listener",i)}})}}let _o=null;function Wu(){return _o!==null?_o:typeof window>"u"?new Proxy({},{get:()=>()=>console.error("Window not available, EventBus can not be established!")}):(window.OC?._eventBus&&typeof window._nc_event_bus>"u"&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),typeof window?._nc_event_bus<"u"?_o=new a0(window._nc_event_bus):_o=window._nc_event_bus=new l0,_o)}function c0(e,t){Wu().subscribe(e,t)}function u0(e,...t){Wu().emit(e,...t)}class qi{static GLOBAL_SCOPE_VOLATILE="nextcloud_vol";static GLOBAL_SCOPE_PERSISTENT="nextcloud_per";scope;wrapped;constructor(t,n,o){this.scope=`${o?qi.GLOBAL_SCOPE_PERSISTENT:qi.GLOBAL_SCOPE_VOLATILE}_${btoa(t)}_`,this.wrapped=n}scopeKey(t){return`${this.scope}${t}`}setItem(t,n){this.wrapped.setItem(this.scopeKey(t),n)}getItem(t){return this.wrapped.getItem(this.scopeKey(t))}removeItem(t){this.wrapped.removeItem(this.scopeKey(t))}clear(){Object.keys(this.wrapped).filter(t=>t.startsWith(this.scope)).map(this.wrapped.removeItem.bind(this.wrapped))}}class d0{appId;persisted=!1;clearedOnLogout=!1;constructor(t){this.appId=t}persist(t=!0){return this.persisted=t,this}clearOnLogout(t=!0){return this.clearedOnLogout=t,this}build(){return new qi(this.appId,this.persisted?window.localStorage:window.sessionStorage,!this.clearedOnLogout)}}function p0(e){return new d0(e)}f0();function h0(e){if(!e||typeof e!="string")throw new Error("Invalid CSRF token given",{cause:{token:e}});globalThis._nc_auth_requestToken!==e&&(globalThis._nc_auth_requestToken=e,globalThis.document&&(document.head.dataset.requesttoken=e),u0("csrf-token-update",{token:e,_internal:!0}))}function f0(){c0("csrf-token-update",({token:e,_internal:t})=>{t||h0(e)})}p0("public").persist().build();let Xn;function Hl(e,t){return e?e.getAttribute(t):null}function m0(){if(Xn!==void 0)return Xn;const e=document?.getElementsByTagName("head")[0];if(!e)return null;const t=Hl(e,"data-user");return t===null?(Xn=null,Xn):(Xn={uid:t,displayName:Hl(e,"data-user-displayname"),isAdmin:!!window._oc_isadmin},Xn)}var Ne=(e=>(e[e.Debug=0]="Debug",e[e.Info=1]="Info",e[e.Warn=2]="Warn",e[e.Error=3]="Error",e[e.Fatal=4]="Fatal",e))(Ne||{});class g0{context;constructor(t){this.context=t||{}}formatMessage(t,n,o){let i="["+Ne[n].toUpperCase()+"] ";return o&&o.app&&(i+=o.app+": "),typeof t=="string"?i+t:(i+=`Unexpected ${t.name}`,t.message&&(i+=` "${t.message}"`),n===Ne.Debug&&t.stack&&(i+=` +const Ha=globalThis||void 0||self;function Ws(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const ht={},jn=[],Ce=()=>{},Tc=()=>!1,Qi=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),tr=t=>t.startsWith("onUpdate:"),Jt=Object.assign,qs=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},Yd=Object.prototype.hasOwnProperty,gt=(t,e)=>Yd.call(t,e),I=Array.isArray,bn=t=>ti(t)==="[object Map]",Ci=t=>ti(t)==="[object Set]",Ua=t=>ti(t)==="[object Date]",tt=t=>typeof t=="function",Pt=t=>typeof t=="string",Oe=t=>typeof t=="symbol",St=t=>t!==null&&typeof t=="object",Ac=t=>(St(t)||tt(t))&&tt(t.then)&&tt(t.catch),xc=Object.prototype.toString,ti=t=>xc.call(t),Zd=t=>ti(t).slice(8,-1),Cc=t=>ti(t)==="[object Object]",Js=t=>Pt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Ro=Ws(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),er=t=>{const e=Object.create(null);return(n=>e[n]||(e[n]=t(n)))},Id=/-\w/g,ie=er(t=>t.replace(Id,e=>e.slice(1).toUpperCase())),Qd=/\B([A-Z])/g,cn=er(t=>t.replace(Qd,"-$1").toLowerCase()),nr=er(t=>t.charAt(0).toUpperCase()+t.slice(1)),_i=er(t=>t?`on${nr(t)}`:""),Qt=(t,e)=>!Object.is(t,e),Pr=(t,...e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:o,value:n})},tp=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let Ga;const ki=()=>Ga||(Ga=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof Ha<"u"?Ha:{});function _n(t){if(I(t)){const e={};for(let n=0;nn.startsWith("/*")?"":n).split(ep).forEach(n=>{if(n){const o=n.split(np);o.length>1&&(e[o[0].trim()]=o[1].trim())}}),e}function xt(t){let e="";if(Pt(t))e=t;else if(I(t))for(let n=0;n!!(t&&t.__v_isRef===!0),ft=t=>Pt(t)?t:t==null?"":I(t)||St(t)&&(t.toString===xc||!tt(t.toString))?Oc(t)?ft(t.value):JSON.stringify(t,Rc,2):String(t),Rc=(t,e)=>Oc(e)?Rc(t,e.value):bn(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[o,i],r)=>(n[Dr(o,r)+" =>"]=i,n),{})}:Ci(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>Dr(n))}:Oe(e)?Dr(e):St(e)&&!I(e)&&!Cc(e)?String(e):e,Dr=(t,e="")=>{var n;return Oe(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};function up(t){return t==null?"initial":typeof t=="string"?t===""?" ":t:String(t)}let It;class dp{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&It&&(It.active?(this.parent=It,this.index=(It.scopes||(It.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes){const o=this.scopes.slice();for(e=0,n=o.length;e0&&--this._on===0){if(It===this)It=this.prevScope;else{let e=It;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let n,o;for(n=0,o=this.effects.length;n0)return;if(Po){let e=Po;for(Po=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;Lo;){let e=Lo;for(Lo=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(o){t||(t=o)}e=n}}if(t)throw t}function Mc(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Nc(t){let e,n=t.depsTail,o=n;for(;o;){const i=o.prevDep;o.version===-1?(o===n&&(n=i),Ys(o),hp(o)):e=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=i}t.deps=e,t.depsTail=n}function hs(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Bc(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Bc(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Go)||(t.globalVersion=Go,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!hs(t))))return;t.flags|=2;const e=t.dep,n=$t,o=ke;$t=t,ke=!0;try{Mc(t);const i=t.fn(t._value);(e.version===0||Qt(i,t._value))&&(t.flags|=128,t._value=i,e.version++)}catch(i){throw e.version++,i}finally{$t=n,ke=o,Nc(t),t.flags&=-3}}function Ys(t,e=!1){const{dep:n,prevSub:o,nextSub:i}=t;if(o&&(o.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=o,t.nextSub=void 0),n.subs===t&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)Ys(r,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function hp(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let ke=!0;const Vc=[];function Ue(){Vc.push(ke),ke=!1}function Ge(){const t=Vc.pop();ke=t===void 0?!0:t}function qa(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=$t;$t=void 0;try{e()}finally{$t=n}}}let Go=0;class fp{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ir{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!$t||!ke||$t===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==$t)n=this.activeLink=new fp($t,this),$t.deps?(n.prevDep=$t.depsTail,$t.depsTail.nextDep=n,$t.depsTail=n):$t.deps=$t.depsTail=n,Fc(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=$t.depsTail,n.nextDep=void 0,$t.depsTail.nextDep=n,$t.depsTail=n,$t.deps===n&&($t.deps=o)}return n}trigger(e){this.version++,Go++,this.notify(e)}notify(e){Ks();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Xs()}}}function Fc(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let o=e.deps;o;o=o.nextDep)Fc(o)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const fs=new WeakMap,Un=Symbol(""),ms=Symbol(""),Wo=Symbol("");function ne(t,e,n){if(ke&&$t){let o=fs.get(t);o||fs.set(t,o=new Map);let i=o.get(n);i||(o.set(n,i=new ir),i.map=o,i.key=n),i.track()}}function en(t,e,n,o,i,r){const s=fs.get(t);if(!s){Go++;return}const l=a=>{a&&a.trigger()};if(Ks(),e==="clear")s.forEach(l);else{const a=I(t),d=a&&Js(n);if(a&&n==="length"){const c=Number(o);s.forEach((p,m)=>{(m==="length"||m===Wo||!Oe(m)&&m>=c)&&l(p)})}else switch((n!==void 0||s.has(void 0))&&l(s.get(n)),d&&l(s.get(Wo)),e){case"add":a?d&&l(s.get("length")):(l(s.get(Un)),bn(t)&&l(s.get(ms)));break;case"delete":a||(l(s.get(Un)),bn(t)&&l(s.get(ms)));break;case"set":bn(t)&&l(s.get(Un));break}}Xs()}function to(t){const e=_t(t);return e===t||(ne(e,"iterate",Wo),we(t))?e:We(t)?wn(t)?e.map(n=>Gn(Ee(n))):e.map(Gn):e.map(Ee)}function rr(t){return ne(t=_t(t),"iterate",Wo),t}function Ve(t,e){return We(t)?Gn(wn(t)?Ee(e):e):Ee(e)}const mp={__proto__:null,[Symbol.iterator](){return Nr(this,Symbol.iterator,t=>Ve(this,t))},concat(...t){return to(this).concat(...t.map(e=>I(e)?to(e):e))},entries(){return Nr(this,"entries",t=>(t[1]=Ve(this,t[1]),t))},every(t,e){return Xe(this,"every",t,e,void 0,arguments)},filter(t,e){return Xe(this,"filter",t,e,n=>n.map(o=>Ve(this,o)),arguments)},find(t,e){return Xe(this,"find",t,e,n=>Ve(this,n),arguments)},findIndex(t,e){return Xe(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Xe(this,"findLast",t,e,n=>Ve(this,n),arguments)},findLastIndex(t,e){return Xe(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Xe(this,"forEach",t,e,void 0,arguments)},includes(...t){return Br(this,"includes",t)},indexOf(...t){return Br(this,"indexOf",t)},join(t){return to(this).join(t)},lastIndexOf(...t){return Br(this,"lastIndexOf",t)},map(t,e){return Xe(this,"map",t,e,void 0,arguments)},pop(){return vo(this,"pop")},push(...t){return vo(this,"push",t)},reduce(t,...e){return Ka(this,"reduce",t,e)},reduceRight(t,...e){return Ka(this,"reduceRight",t,e)},shift(){return vo(this,"shift")},some(t,e){return Xe(this,"some",t,e,void 0,arguments)},splice(...t){return vo(this,"splice",t)},toReversed(){return to(this).toReversed()},toSorted(t){return to(this).toSorted(t)},toSpliced(...t){return to(this).toSpliced(...t)},unshift(...t){return vo(this,"unshift",t)},values(){return Nr(this,"values",t=>Ve(this,t))}};function Nr(t,e,n){const o=rr(t),i=o[e],r=i.call(o);if(o!==t&&!we(t)){if(r[Symbol.toStringTag]==="Array Iterator"){const s=Object.create(Object.getPrototypeOf(r));return s.next=()=>Ja(r.next(),n),i!==jc[e]&&Object.defineProperties(s,{return:{get(){const l=r.return;return typeof l=="function"?l.bind(r):l}},throw:{get(){const l=r.throw;return typeof l=="function"?l.bind(r):l}}}),s}r._next=r.next,r.next=()=>Ja(r._next(),n)}return r}function Ja(t,e){return t.done||(t.value=e(t.value)),t}const jc=Array.prototype;function Xe(t,e,n,o,i,r){const s=rr(t),l=s!==t&&!we(t),a=s[e];if(a!==jc[e]){const p=a.apply(t,r);return l?Ee(p):p}let d=n;s!==t&&(l?d=function(p,m){return n.call(this,Ve(t,p),m,t)}:n.length>2&&(d=function(p,m){return n.call(this,p,m,t)}));const c=a.call(s,d,o);return l&&i?i(c):c}function Ka(t,e,n,o){const i=rr(t),r=i!==t&&!we(t);let s=n,l=!1;i!==t&&(r?(l=o.length===0,s=function(d,c,p){return l&&(l=!1,d=Ve(t,d)),n.call(this,d,Ve(t,c),p,t)}):n.length>3&&(s=function(d,c,p){return n.call(this,d,c,p,t)}));const a=i[e](s,...o);return l?Ve(t,a):a}function Br(t,e,n){const o=_t(t);ne(o,"iterate",Wo);const i=o[e](...n);return(i===-1||i===!1)&&Qs(n[0])?(n[0]=_t(n[0]),o[e](...n)):i}function vo(t,e,n=[]){Ue(),Ks();const o=_t(t)[e].apply(t,n);return Xs(),Ge(),o}const gp=Ws("__proto__,__v_isRef,__isVue"),zc=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Oe));function yp(t){Oe(t)||(t=String(t));const e=_t(this);return ne(e,"has",t),e.hasOwnProperty(t)}class Hc{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,o){if(n==="__v_skip")return e.__v_skip;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 o===(i?r?xp:Jc:r?qc:Wc).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(o)?e:void 0;const s=I(e);if(!i){let a;if(s&&(a=mp[n]))return a;if(n==="hasOwnProperty")return yp}const l=Reflect.get(e,n,re(e)?e:o);if((Oe(n)?zc.has(n):gp(n))||(i||ne(e,"get",n),r))return l;if(re(l)){const a=s&&Js(n)?l:l.value;return i&&St(a)?ys(a):a}return St(l)?i?ys(l):Zs(l):l}}class Uc extends Hc{constructor(e=!1){super(!1,e)}set(e,n,o,i){let r=e[n];const s=I(e)&&Js(n);if(!this._isShallow){const d=We(r);if(!we(o)&&!We(o)&&(r=_t(r),o=_t(o)),!s&&re(r)&&!re(o))return d||(r.value=o),!0}const l=s?Number(n)t,pi=t=>Reflect.getPrototypeOf(t);function wp(t,e,n){return function(...o){const i=this.__v_raw,r=_t(i),s=bn(r),l=t==="entries"||t===Symbol.iterator&&s,a=t==="keys"&&s,d=i[t](...o),c=n?gs:e?Gn:Ee;return!e&&ne(r,"iterate",a?ms:Un),Jt(Object.create(d),{next(){const{value:p,done:m}=d.next();return m?{value:p,done:m}:{value:l?[c(p[0]),c(p[1])]:c(p),done:m}}})}}function hi(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function Ep(t,e){const n={get(o){const i=this.__v_raw,r=_t(i),s=_t(o);t||(Qt(o,s)&&ne(r,"get",o),ne(r,"get",s));const{has:l}=pi(r),a=e?gs:t?Gn:Ee;if(l.call(r,o))return a(i.get(o));if(l.call(r,s))return a(i.get(s));i!==r&&i.get(o)},get size(){const o=this.__v_raw;return!t&&ne(_t(o),"iterate",Un),o.size},has(o){const i=this.__v_raw,r=_t(i),s=_t(o);return t||(Qt(o,s)&&ne(r,"has",o),ne(r,"has",s)),o===s?i.has(o):i.has(o)||i.has(s)},forEach(o,i){const r=this,s=r.__v_raw,l=_t(s),a=e?gs:t?Gn:Ee;return!t&&ne(l,"iterate",Un),s.forEach((d,c)=>o.call(i,a(d),a(c),r))}};return Jt(n,t?{add:hi("add"),set:hi("set"),delete:hi("delete"),clear:hi("clear")}:{add(o){const i=_t(this),r=pi(i),s=_t(o),l=!e&&!we(o)&&!We(o)?s:o;return r.has.call(i,l)||Qt(o,l)&&r.has.call(i,o)||Qt(s,l)&&r.has.call(i,s)||(i.add(l),en(i,"add",l,l)),this},set(o,i){!e&&!we(i)&&!We(i)&&(i=_t(i));const r=_t(this),{has:s,get:l}=pi(r);let a=s.call(r,o);a||(o=_t(o),a=s.call(r,o));const d=l.call(r,o);return r.set(o,i),a?Qt(i,d)&&en(r,"set",o,i):en(r,"add",o,i),this},delete(o){const i=_t(this),{has:r,get:s}=pi(i);let l=r.call(i,o);l||(o=_t(o),l=r.call(i,o)),s&&s.call(i,o);const a=i.delete(o);return l&&en(i,"delete",o,void 0),a},clear(){const o=_t(this),i=o.size!==0,r=o.clear();return i&&en(o,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=wp(o,t,e)}),n}function sr(t,e){const n=Ep(t,e);return(o,i,r)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_isShallow"?e:i==="__v_raw"?o:Reflect.get(gt(n,i)&&i in o?n:o,i,r)}const Sp={get:sr(!1,!1)},Tp={get:sr(!1,!0)},Ap={get:sr(!0,!1)},Rb={get:sr(!0,!0)},Wc=new WeakMap,qc=new WeakMap,Jc=new WeakMap,xp=new WeakMap;function Cp(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Zs(t){return We(t)?t:Is(t,!1,vp,Sp,Wc)}function kp(t){return Is(t,!1,_p,Tp,qc)}function ys(t){return Is(t,!0,bp,Ap,Jc)}function Is(t,e,n,o,i){if(!St(t)||t.__v_raw&&!(e&&t.__v_isReactive)||t.__v_skip||!Object.isExtensible(t))return t;const r=i.get(t);if(r)return r;const s=Cp(Zd(t));if(s===0)return t;const l=new Proxy(t,s===2?o:n);return i.set(t,l),l}function wn(t){return We(t)?wn(t.__v_raw):!!(t&&t.__v_isReactive)}function We(t){return!!(t&&t.__v_isReadonly)}function we(t){return!!(t&&t.__v_isShallow)}function Qs(t){return t?!!t.__v_raw:!1}function _t(t){const e=t&&t.__v_raw;return e?_t(e):t}function $p(t){return!gt(t,"__v_skip")&&Object.isExtensible(t)&&kc(t,"__v_skip",!0),t}const Ee=t=>St(t)?Zs(t):t,Gn=t=>St(t)?ys(t):t;function re(t){return t?t.__v_isRef===!0:!1}function vs(t){return Kc(t,!1)}function Op(t){return Kc(t,!0)}function Kc(t,e){return re(t)?t:new Rp(t,e)}class Rp{constructor(e,n){this.dep=new ir,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:_t(e),this._value=n?e:Ee(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,o=this.__v_isShallow||we(e)||We(e);e=o?e:_t(e),Qt(e,n)&&(this._rawValue=e,this._value=o?e:Ee(e),this.dep.trigger())}}function K(t){return re(t)?t.value:t}function Xa(t){return tt(t)?t():K(t)}const Lp={get:(t,e,n)=>e==="__v_raw"?t:K(Reflect.get(t,e,n)),set:(t,e,n,o)=>{const i=t[e];return re(i)&&!re(n)?(i.value=n,!0):Reflect.set(t,e,n,o)}};function Xc(t){return wn(t)?t:new Proxy(t,Lp)}class Pp{constructor(e){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new ir,{get:o,set:i}=e(n.track.bind(n),n.trigger.bind(n));this._get=o,this._set=i}get value(){return this._value=this._get()}set value(e){this._set(e)}}function Dp(t){return new Pp(t)}class Mp{constructor(e,n,o){this.fn=e,this.setter=n,this._value=void 0,this.dep=new ir(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Go-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&$t!==this)return Dc(this,!0),!0}get value(){const e=this.dep.track();return Bc(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Np(t,e,n=!1){let o,i;return tt(t)?o=t:(o=t.get,i=t.set),new Mp(o,i,n)}const fi={},$i=new WeakMap;let Mn;function Bp(t,e=!1,n=Mn){if(n){let o=$i.get(n);o||$i.set(n,o=[]),o.push(t)}}function Vp(t,e,n=ht){const{immediate:o,deep:i,once:r,scheduler:s,augmentJob:l,call:a}=n,d=P=>i?P:we(P)||i===!1||i===0?nn(P,1):nn(P);let c,p,m,g,E=!1,y=!1;if(re(t)?(p=()=>t.value,E=we(t)):wn(t)?(p=()=>d(t),E=!0):I(t)?(y=!0,E=t.some(P=>wn(P)||we(P)),p=()=>t.map(P=>{if(re(P))return P.value;if(wn(P))return d(P);if(tt(P))return a?a(P,2):P()})):tt(t)?e?p=a?()=>a(t,2):t:p=()=>{if(m){Ue();try{m()}finally{Ge()}}const P=Mn;Mn=c;try{return a?a(t,3,[g]):t(g)}finally{Mn=P}}:p=Ce,e&&i){const P=p,nt=i===!0?1/0:i;p=()=>nn(P(),nt)}const R=pp(),L=()=>{c.stop(),R&&R.active&&qs(R.effects,c)};if(r&&e){const P=e;e=(...nt)=>{try{return P(...nt)}finally{L()}}}let D=y?new Array(t.length).fill(fi):fi;const B=P=>{if(!(!(c.flags&1)||!c.dirty&&!P))if(e){const nt=c.run();if(P||i||E||(y?nt.some((st,it)=>Qt(st,D[it])):Qt(nt,D))){const st=Mn;Ue();try{m&&m(),Mn=c;const it=[nt,D===fi?void 0:y&&D[0]===fi?[]:D,g];D=nt,a?a(e,3,it):e(...it)}finally{Mn=st,Ge()}}}else c.run()};return l&&l(B),c=new Lc(p),c.scheduler=s?()=>s(B,!1):B,g=P=>Bp(P,!1,c),m=c.onStop=()=>{const P=$i.get(c);if(P){if(a)a(P,4);else for(const nt of P)nt();$i.delete(c)}},e?o?B(!0):D=c.run():s?s(B.bind(null,!0),!0):c.run(),L.pause=c.pause.bind(c),L.resume=c.resume.bind(c),L.stop=L,L}function nn(t,e=1/0,n){if(e<=0||!St(t)||t.__v_skip||(n=n||new Map,(n.get(t)||0)>=e))return t;if(n.set(t,e),e--,re(t))nn(t.value,e,n);else if(I(t))for(let o=0;o{nn(o,e,n)});else if(Cc(t)){for(const o in t)nn(t[o],e,n);for(const o of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,o)&&nn(t[o],e,n)}return t}function ei(t,e,n,o){try{return o?t(...o):t()}catch(i){ar(i,e,n)}}function Re(t,e,n,o){if(tt(t)){const i=ei(t,e,n,o);return i&&Ac(i)&&i.catch(r=>{ar(r,e,n)}),i}if(I(t)){const i=[];for(let r=0;r>>1,i=ae[o],r=qo(i);r=qo(n)?ae.push(t):ae.splice(jp(e),0,t),t.flags|=1,Ic()}}function Ic(){Oi||(Oi=Yc.then(nu))}function Qc(t){if(!I(t))yn&&t.id===-1?yn.splice(oo+1,0,t):t.flags&1||(Fe.push(t),t.flags|=1);else for(let e=0;e=e))continue;ae.splice(o,1),o=t?o-1:Te,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function eu(t,e,n=0){if(Fe.length){let o=Fe,i=0;if(e){o=[];for(let s=0;sqo(s)-qo(l));if(Fe.length=i,yn){for(let s=0;st.id==null?t.flags&2?-1:1/0:t.id;function nu(t){try{for(Te=0;TeLt;function Lt(t,e=te,n){if(!e||t._n)return t;const o=(...i)=>{o._d&&Ni(-1);const r=Ri(e),s=an.length;let l;try{l=t(...i)}finally{for(let a=an.length;a>s;a--)aa();Ri(r),o._d&&Ni(1)}return l};return o._n=!0,o._c=!0,o._d=!0,o}function bs(t,e){if(te===null)return t;const n=hr(te),o=t.dirs||(t.dirs=[]);for(let i=0;i1)return n&&tt(e)?e.call(o&&o.proxy):e}}const qp=Symbol.for("v-scx"),Jp=()=>En(qp);function Kp(t,e){return ea(t,null,{flush:"sync"})}function so(t,e,n){return ea(t,e,n)}function ea(t,e,n=ht){const{immediate:o,deep:i,flush:r,once:s}=n,l=Jt({},n),a=e&&o||!e&&r!=="post";let d;if(Xo){if(r==="sync"){const g=Jp();d=g.__watcherHandles||(g.__watcherHandles=[])}else if(!a){const g=()=>{};return g.stop=Ce,g.resume=Ce,g.pause=Ce,g}}const c=oe;l.call=(g,E,y)=>Re(g,c,E,y);let p=!1;r==="post"?l.scheduler=g=>{g.i=c,de(g,c&&c.suspense)}:r!=="sync"&&(p=!0,l.scheduler=(g,E)=>{E?g():ta(g)}),l.augmentJob=g=>{e&&(g.flags|=4),p&&(g.flags|=2,c&&(g.id=c.uid,g.i=c))};const m=Vp(t,e,l);return Xo&&(d?d.push(m):a&&m()),m}function Xp(t,e,n){const o=this.proxy,i=Pt(t)?t.includes(".")?ou(o,t):()=>o[t]:t.bind(o,o);let r;tt(e)?r=e:(r=e.handler,n=e);const s=ii(this),l=ea(i,r.bind(o),n);return s(),l}function ou(t,e){const n=e.split(".");return()=>{let o=t;for(let i=0;it.__isTeleport,Fr=Symbol("_leaveCb");function Zp(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==me){e=n;break}}return e}function iu(t){if(!na(t))return cr(t.type)&&t.children?Zp(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&tt(n.default))return n.default()}}function Li(t,e){if(t.shapeFlag&6&&t.component){t.transition=e;const n=t.component.subTree;Li(cr(n.type)&&iu(n)||n,e)}else if(t.shapeFlag&128)t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback);else if(t.transition=e,t.type===jt&&I(t.children)){const n=vu(t.children,!1);n&&Li(n,e)}}function _s(t){if(t.component)return _s(t.component.subTree);if(t.type===jt){const e=I(t.children)&&vu(t.children,!1);return e?_s(e):void 0}if(t.type!==me)return t}function le(t,e){return tt(t)?Jt({name:t.name},e,{setup:t}):t}function ru(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function Ip(t){const e=oi(),n=Op(null);if(e){const o=e.refs===ht?e.refs={}:e.refs;Object.defineProperty(o,t,{enumerable:!0,get:()=>n.value,set:i=>n.value=i})}return n}function Ya(t,e){let n;return!!((n=Object.getOwnPropertyDescriptor(t,e))&&!n.configurable)}const Pi=new WeakMap;function Do(t,e,n,o,i=!1){if(I(t)){t.forEach((y,R)=>Do(y,e&&(I(e)?e[R]:e),n,o,i));return}if(ao(o)&&!i){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&Do(t,e,n,o.component.subTree);return}const r=o.shapeFlag&4?hr(o.component):o.el,s=i?null:r,{i:l,r:a}=t,d=e&&e.r,c=l.refs===ht?l.refs={}:l.refs,p=l.setupState,m=_t(p),g=p===ht?Tc:y=>Ya(c,y)?!1:gt(m,y),E=(y,R)=>!(R&&Ya(c,R));if(d!=null&&d!==a){if(Za(e),Pt(d))c[d]=null,g(d)&&(p[d]=null);else if(re(d)){const y=e;E(d,y.k)&&(d.value=null),y.k&&(c[y.k]=null)}}if(tt(a))ei(a,l,12,[s,c]);else{const y=Pt(a),R=re(a);if(y||R){const L=()=>{if(t.f){const D=y?g(a)?p[a]:c[a]:E()||!t.k?a.value:c[t.k];if(i)I(D)&&qs(D,r);else if(I(D))D.includes(r)||D.push(r);else if(y)c[a]=[r],g(a)&&(p[a]=c[a]);else{const B=[r];E(a,t.k)&&(a.value=B),t.k&&(c[t.k]=B)}}else y?(c[a]=s,g(a)&&(p[a]=s)):R&&(E(a,t.k)&&(a.value=s),t.k&&(c[t.k]=s))};if(s){const D=()=>{L(),Pi.delete(t)};D.id=-1,Pi.set(t,D),de(D,n)}else Za(t),L()}}}function Za(t){const e=Pi.get(t);e&&(e.flags|=8,Pi.delete(t))}ki().requestIdleCallback,ki().cancelIdleCallback;const ao=t=>!!t.type.__asyncLoader,na=t=>t.type.__isKeepAlive;function Qp(t,e){su(t,"a",e)}function th(t,e){su(t,"da",e)}function su(t,e,n=oe){const o=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(ur(e,o,n),n){let i=n.parent;for(;i&&i.parent;)na(i.parent.vnode)&&eh(o,e,n,i),i=i.parent}}function eh(t,e,n,o){const i=ur(e,t,o,!0);dr(()=>{qs(o[e],i)},n)}function ur(t,e,n=oe,o=!1){if(n){const i=n[t]||(n[t]=[]),r=e.__weh||(e.__weh=(...s)=>{Ue();const l=ii(n),a=Re(e,n,t,s);return l(),Ge(),a});return o?i.unshift(r):i.push(r),r}}const un=t=>(e,n=oe)=>{(!Xo||t==="sp")&&ur(t,(...o)=>e(...o),n)},nh=un("bm"),oa=un("m"),au=un("bu"),oh=un("u"),ih=un("bum"),dr=un("um"),rh=un("sp"),sh=un("rtg"),ah=un("rtc");function lh(t,e=oe){ur("ec",t,e)}const lu="components";function ln(t,e){return uu(lu,t,!0,e)||t}const cu=Symbol.for("v-ndc");function ia(t){return Pt(t)?uu(lu,t,!1)||t:t||cu}function uu(t,e,n=!0,o=!1){const i=te||oe;if(i){const r=i.type;{const l=Wh(r,!1);if(l&&(l===e||l===ie(e)||l===nr(ie(e))))return r}const s=Ia(i[t]||r[t],e)||Ia(i.appContext[t],e);return!s&&o?r:s}}function Ia(t,e){return t&&(t[e]||t[ie(e)]||t[nr(ie(e))])}function du(t,e,n,o){let i;const r=n,s=I(t);if(s||Pt(t)){const l=s&&wn(t);let a=!1,d=!1;l&&(a=!we(t),d=We(t),t=rr(t)),i=new Array(t.length);for(let c=0,p=t.length;ce(l,a,void 0,r));else{const l=Object.keys(t);i=new Array(l.length);for(let a=0,d=l.length;a{const r=o.fn(...i);return r&&(r.key=o.key),r}:o.fn)}return t}function zt(t,e,n,o,i,r){if(n==null&&(n={}),te.ce||te.parent&&ao(te.parent)&&te.parent.ce){const d=n,c=Object.keys(d).length>0;return e!=="default"&&(d.name=e),M(),Ot(jt,null,[ct("slot",d,o&&o())],c?-2:64)}let s=t[e];s&&s._c&&(s._d=!1);const l=an.length;M();let a;try{const d=s&&pu(s(n)),c=n.key||r||d&&d.key;a=Ot(jt,{key:(c&&!Oe(c)?c:`_${e}`)+(!d&&o?"_fb":"")},d||(o?o():[]),d&&t._===1?64:-2)}catch(d){for(let c=an.length;c>l;c--)aa();throw d}finally{s&&s._c&&(s._d=!0)}return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),a}function pu(t){return t.some(e=>ho(e)?!(e.type===me||e.type===jt&&!pu(e.children)):!0)?t:null}function Qa(t,e){const n={};for(const o in t)n[e&&/[A-Z]/.test(o)?`on:${o}`:_i(o)]=t[o];return n}const ws=t=>t?Du(t)?hr(t):ws(t.parent):null,Mo=Jt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>ws(t.parent),$root:t=>ws(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>fu(t),$forceUpdate:t=>t.f||(t.f=()=>{ta(t.update)}),$nextTick:t=>t.n||(t.n=Zc.bind(t.proxy)),$watch:t=>Xp.bind(t)}),jr=(t,e)=>t!==ht&&!t.__isScriptSetup&>(t,e),uh={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:o,data:i,props:r,accessCache:s,type:l,appContext:a}=t;if(e[0]!=="$"){const m=s[e];if(m!==void 0)switch(m){case 1:return o[e];case 2:return i[e];case 4:return n[e];case 3:return r[e]}else{if(jr(o,e))return s[e]=1,o[e];if(i!==ht&>(i,e))return s[e]=2,i[e];if(gt(r,e))return s[e]=3,r[e];if(n!==ht&>(n,e))return s[e]=4,n[e];Es&&(s[e]=0)}}const d=Mo[e];let c,p;if(d)return e==="$attrs"&&ne(t.attrs,"get",""),d(t);if((c=l.__cssModules)&&(c=c[e]))return c;if(n!==ht&>(n,e))return s[e]=4,n[e];if(p=a.config.globalProperties,gt(p,e))return p[e]},set({_:t},e,n){const{data:o,setupState:i,ctx:r}=t;return jr(i,e)?(i[e]=n,!0):o!==ht&>(o,e)?(o[e]=n,!0):gt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(r[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:o,appContext:i,props:r,type:s}},l){let a;return!!(n[l]||t!==ht&&l[0]!=="$"&>(t,l)||jr(e,l)||gt(r,l)||gt(o,l)||gt(Mo,l)||gt(i.config.globalProperties,l)||(a=s.__cssModules)&&a[l])},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:gt(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function dh(){return ph().attrs}function ph(t){const e=oi();return e.setupContext||(e.setupContext=Nu(e))}function Di(t){return I(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function tl(t,e){return!t||!e?t||e:I(t)&&I(e)?t.concat(e):Jt({},Di(t),Di(e))}let Es=!0;function hh(t){const e=fu(t),n=t.proxy,o=t.ctx;Es=!1,e.beforeCreate&&el(e.beforeCreate,t,"bc");const{data:i,computed:r,methods:s,watch:l,provide:a,inject:d,created:c,beforeMount:p,mounted:m,beforeUpdate:g,updated:E,activated:y,deactivated:R,beforeDestroy:L,beforeUnmount:D,destroyed:B,unmounted:P,render:nt,renderTracked:st,renderTriggered:it,errorCaptured:wt,serverPrefetch:mt,expose:ut,inheritAttrs:rt,components:_,directives:S,filters:z}=e;if(d&&fh(d,o,null),s)for(const j in s){const V=s[j];tt(V)&&(o[j]=V.bind(n))}if(i){const j=i.call(n,n);St(j)&&(t.data=Zs(j))}if(Es=!0,r)for(const j in r){const V=r[j],U=tt(V)?V.bind(n,n):tt(V.get)?V.get.bind(n,n):Ce,Z=!tt(V)&&tt(V.set)?V.set.bind(n):Ce,Y=yt({get:U,set:Z});Object.defineProperty(o,j,{enumerable:!0,configurable:!0,get:()=>Y.value,set:Ct=>Y.value=Ct})}if(l)for(const j in l)hu(l[j],o,n,j);if(a){const j=tt(a)?a.call(n):a;Reflect.ownKeys(j).forEach(V=>{Wp(V,j[V])})}c&&el(c,t,"c");function W(j,V){I(V)?V.forEach(U=>j(U.bind(n))):V&&j(V.bind(n))}if(W(nh,p),W(oa,m),W(au,g),W(oh,E),W(Qp,y),W(th,R),W(lh,wt),W(ah,st),W(sh,it),W(ih,D),W(dr,P),W(rh,mt),I(ut))if(ut.length){const j=t.exposed||(t.exposed={});ut.forEach(V=>{Object.defineProperty(j,V,{get:()=>n[V],set:U=>n[V]=U,enumerable:!0})})}else t.exposed||(t.exposed={});nt&&t.render===Ce&&(t.render=nt),rt!=null&&(t.inheritAttrs=rt),_&&(t.components=_),S&&(t.directives=S),mt&&ru(t)}function fh(t,e,n=Ce){I(t)&&(t=Ss(t));for(const o in t){const i=t[o];let r;St(i)?"default"in i?r=En(i.from||o,i.default,!0):r=En(i.from||o):r=En(i),re(r)?Object.defineProperty(e,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):e[o]=r}}function el(t,e,n){Re(I(t)?t.map(o=>o.bind(e.proxy)):t.bind(e.proxy),e,n)}function hu(t,e,n,o){let i=o.includes(".")?ou(n,o):()=>n[o];if(Pt(t)){const r=e[t];tt(r)&&so(i,r)}else if(tt(t))so(i,t.bind(n));else if(St(t))if(I(t))t.forEach(r=>hu(r,e,n,o));else{const r=tt(t.handler)?t.handler.bind(n):e[t.handler];tt(r)&&so(i,r,t)}}function fu(t){const e=t.type,{mixins:n,extends:o}=e,{mixins:i,optionsCache:r,config:{optionMergeStrategies:s}}=t.appContext,l=r.get(e);let a;return l?a=l:!i.length&&!n&&!o?a=e:(a={},i.length&&i.forEach(d=>Mi(a,d,s,!0)),Mi(a,e,s)),St(e)&&r.set(e,a),a}function Mi(t,e,n,o=!1){const{mixins:i,extends:r}=e;r&&Mi(t,r,n,!0),i&&i.forEach(s=>Mi(t,s,n,!0));for(const s in e)if(!(o&&s==="expose")){const l=mh[s]||n&&n[s];t[s]=l?l(t[s],e[s]):e[s]}return t}const mh={data:nl,props:ol,emits:ol,methods:ko,computed:ko,beforeCreate:se,created:se,beforeMount:se,mounted:se,beforeUpdate:se,updated:se,beforeDestroy:se,beforeUnmount:se,destroyed:se,unmounted:se,activated:se,deactivated:se,errorCaptured:se,serverPrefetch:se,components:ko,directives:ko,watch:yh,provide:nl,inject:gh};function nl(t,e){return e?t?function(){return Jt(tt(t)?t.call(this,this):t,tt(e)?e.call(this,this):e)}:e:t}function gh(t,e){return ko(Ss(t),Ss(e))}function Ss(t){if(I(t)){const e={};for(let n=0;n{let c,p=ht,m;return Kp(()=>{const g=t[i];Qt(c,g)&&(c=g,d())}),{get(){return a(),n.get?n.get(c):c},set(g){const E=n.set?n.set(g):g;if(!Qt(E,c)&&!(p!==ht&&Qt(g,p)))return;const y=o.vnode.props,R=!!(y&&(e in y||i in y||r in y)&&(`onUpdate:${e}`in y||`onUpdate:${i}`in y||`onUpdate:${r}`in y));R||(c=g,d()),o.emit(`update:${e}`,E),Qt(g,p)&&(Qt(g,E)&&!Qt(E,m)||R&&p!==ht&&!Qt(E,c))&&d(),p=g,m=E}}});return l[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?s||ht:l,done:!1}:{done:!0}}}},l}const gu=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${ie(e)}Modifiers`]||t[`${cn(e)}Modifiers`];function wh(t,e,...n){if(t.isUnmounted)return;const o=t.vnode.props||ht;let i=n;const r=e.startsWith("update:"),s=r&&gu(o,e.slice(7));s&&(s.trim&&(i=n.map(c=>Pt(c)?c.trim():c)),s.number&&(i=i.map(tp)));let l,a=o[l=_i(e)]||o[l=_i(ie(e))];!a&&r&&(a=o[l=_i(cn(e))]),a&&Re(a,t,6,i);const d=o[l+"Once"];if(d){if(!t.emitted)t.emitted={};else if(t.emitted[l])return;t.emitted[l]=!0,Re(d,t,6,i)}}const Eh=new WeakMap;function yu(t,e,n=!1){const o=n?Eh:e.emitsCache,i=o.get(t);if(i!==void 0)return i;const r=t.emits;let s={},l=!1;if(!tt(t)){const a=d=>{const c=yu(d,e,!0);c&&(l=!0,Jt(s,c))};!n&&e.mixins.length&&e.mixins.forEach(a),t.extends&&a(t.extends),t.mixins&&t.mixins.forEach(a)}return!r&&!l?(St(t)&&o.set(t,null),null):(I(r)?r.forEach(a=>s[a]=null):Jt(s,r),St(t)&&o.set(t,s),s)}function pr(t,e){return!t||!Qi(e)?!1:(e=e.slice(2),e=e==="Once"?e:e.replace(/Once$/,""),gt(t,e[0].toLowerCase()+e.slice(1))||gt(t,cn(e))||gt(t,e))}function il(t){const{type:e,vnode:n,proxy:o,withProxy:i,propsOptions:[r],slots:s,attrs:l,emit:a,render:d,renderCache:c,props:p,data:m,setupState:g,ctx:E,inheritAttrs:y}=t,R=Ri(t);let L,D;try{if(n.shapeFlag&4){const P=i||o,nt=P;L=je(d.call(nt,P,c,p,g,m,E)),D=l}else{const P=e;L=je(P.length>1?P(p,{attrs:l,slots:s,emit:a}):P(p,null)),D=e.props?l:Sh(l)}}catch(P){an.length=0,ar(P,t,1),L=ct(me)}let B=L;if(D&&y!==!1){const P=Object.keys(D),{shapeFlag:nt}=B;P.length&&nt&7&&(r&&P.some(tr)&&(D=Th(D,r)),B=fo(B,D,!1,!0))}if(n.dirs&&(B=fo(B,null,!1,!0),B.dirs=B.dirs?B.dirs.concat(n.dirs):n.dirs),n.transition){const P=cr(B.type)&&iu(B)||B;Li(P,n.transition)}return L=B,Ri(R),L}function vu(t,e=!0){let n;for(let o=0;o{let e;for(const n in t)(n==="class"||n==="style"||Qi(n))&&((e||(e={}))[n]=t[n]);return e},Th=(t,e)=>{const n={};for(const o in t)(!tr(o)||!(o.slice(9)in e))&&(n[o]=t[o]);return n};function Ah(t,e,n){const{props:o,children:i,component:r}=t,{props:s,children:l,patchFlag:a}=e,d=r.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?rl(o,s,d):!!s;if(a&8){const c=e.dynamicProps;for(let p=0;pObject.create(_u),Eu=t=>Object.getPrototypeOf(t)===_u;function Ch(t,e,n,o=!1){const i={},r=wu();t.propsDefaults=Object.create(null),Su(t,e,i,r);for(const s in t.propsOptions[0])s in i||(i[s]=void 0);n?t.props=o?i:kp(i):t.type.props?t.props=i:t.props=r,t.attrs=r}function kh(t,e,n,o){const{props:i,attrs:r,vnode:{patchFlag:s}}=t,l=_t(i),[a]=t.propsOptions;let d=!1;if((o||s>0)&&!(s&16)){if(s&8){const c=t.vnode.dynamicProps;for(let p=0;p{a=!0;const[m,g]=Tu(p,e,!0);Jt(s,m),g&&l.push(...g)};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!r&&!a)return St(t)&&o.set(t,jn),jn;if(I(r))for(let c=0;ct==="_"||t==="_ctx"||t==="$stable",sa=t=>I(t)?t.map(je):[je(t)],Oh=(t,e,n)=>{if(e._n)return e;const o=Lt((...i)=>sa(e(...i)),n);return o._c=!1,o},Au=(t,e,n)=>{const o=t._ctx;for(const i in t){if(ra(i))continue;const r=t[i];if(tt(r))e[i]=Oh(i,r,o);else if(r!=null){const s=sa(r);e[i]=()=>s}}},xu=(t,e)=>{const n=sa(e);t.slots.default=()=>n},Cu=(t,e,n)=>{for(const o in e)(n||!ra(o))&&(t[o]=e[o])},Rh=(t,e,n)=>{const o=t.slots=wu();if(t.vnode.shapeFlag&32){const i=e._;i?(Cu(o,e,n),n&&kc(o,"_",i,!0)):Au(e,o)}else e&&xu(t,e)},Lh=(t,e,n)=>{const{vnode:o,slots:i}=t;let r=!0,s=ht;if(o.shapeFlag&32){const l=e._;l?n&&l===1?r=!1:Cu(i,e,n):(r=!e.$stable,Au(e,i)),s=e}else e&&(xu(t,e),s={default:1});if(r)for(const l in i)!ra(l)&&s[l]==null&&delete i[l]},de=Bh;function Ph(t){return Dh(t)}function Dh(t,e){const n=ki();n.__VUE__=!0;const{insert:o,remove:i,patchProp:r,createElement:s,createText:l,createComment:a,setText:d,setElementText:c,parentNode:p,nextSibling:m,setScopeId:g=Ce,insertStaticContent:E}=t,y=(h,f,w,O=null,x=null,C=null,$=void 0,N=null,k=!!f.dynamicChildren)=>{if(h===f)return;h&&!bo(h,f)&&(O=Le(h),kt(h,x,C,!0),h=null),f.patchFlag===-2&&(k=!1,f.dynamicChildren=null),f.dynamicChildren&&h&&h.dynamicChildren&&h.dynamicChildren.hasOnce&&(f.dynamicChildren===jn&&(f.dynamicChildren=[]),f.dynamicChildren.hasOnce=!0);const{type:A,ref:H,shapeFlag:F}=f;switch(A){case ni:R(h,f,w,O);break;case me:L(h,f,w,O);break;case wi:h==null&&D(f,w,O,$);break;case jt:_(h,f,w,O,x,C,$,N,k);break;default:F&1?nt(h,f,w,O,x,C,$,N,k):F&6?S(h,f,w,O,x,C,$,N,k):(F&64||F&128)&&A.process(h,f,w,O,x,C,$,N,k,Kn)}H!=null&&x?Do(H,h&&h.ref,C,f||h,!f):H==null&&h&&h.ref!=null&&Do(h.ref,null,C,h,!0)},R=(h,f,w,O)=>{if(h==null)o(f.el=l(f.children),w,O);else{const x=f.el=h.el;f.children!==h.children&&d(x,f.children)}},L=(h,f,w,O)=>{h==null?o(f.el=a(f.children||""),w,O):f.el=h.el},D=(h,f,w,O)=>{[h.el,h.anchor]=E(h.children,f,w,O,h.el,h.anchor)},B=({el:h,anchor:f},w,O)=>{let x;for(;h&&h!==f;)x=m(h),o(h,w,O),h=x;o(f,w,O)},P=({el:h,anchor:f})=>{let w;for(;h&&h!==f;)w=m(h),i(h),h=w;i(f)},nt=(h,f,w,O,x,C,$,N,k)=>{if(f.type==="svg"?$="svg":f.type==="math"&&($="mathml"),h==null)st(f,w,O,x,C,$,N,k);else{const A=h.el&&h.el._isVueCE?h.el:null;try{A&&A._beginPatch(),mt(h,f,x,C,$,N,k)}finally{A&&A._endPatch()}}},st=(h,f,w,O,x,C,$,N)=>{let k,A;const{props:H,shapeFlag:F,transition:q,dirs:J}=h;if(k=h.el=s(h.type,C,H&&H.is,H),F&8?c(k,h.children):F&16&&wt(h.children,k,null,O,x,zr(h,C),$,N),J&&Ln(h,null,O,"created"),it(k,h,h.scopeId,$,O),H){for(const bt in H)bt!=="value"&&!Ro(bt)&&r(k,bt,null,H[bt],C,O);"value"in H&&r(k,"value",null,H.value,C),(A=H.onVnodeBeforeMount)&&Me(A,O,h)}J&&Ln(h,null,O,"beforeMount");const lt=Mh(x,q);lt&&q.beforeEnter(k),o(k,f,w),((A=H&&H.onVnodeMounted)||lt||J)&&de(()=>{A&&Me(A,O,h),lt&&q.enter(k),J&&Ln(h,null,O,"mounted")},x)},it=(h,f,w,O,x)=>{if(w&&g(h,w),O)for(let C=0;C{for(let A=k;A{const N=f.el=h.el;let{patchFlag:k,dynamicChildren:A,dirs:H}=f;k|=h.patchFlag&16;const F=h.props||ht,q=f.props||ht;let J;if(w&&Pn(w,!1),(J=q.onVnodeBeforeUpdate)&&Me(J,w,f,h),H&&Ln(f,h,w,"beforeUpdate"),w&&Pn(w,!0),A&&(!h.dynamicChildren||h.dynamicChildren.length!==A.length)&&(k=0,$=!1,A=null),(F.innerHTML&&q.innerHTML==null||F.textContent&&q.textContent==null)&&c(N,""),A?ut(h.dynamicChildren,A,N,w,O,zr(f,x),C):$||U(h,f,N,null,w,O,zr(f,x),C,!1),k>0){if(k&16)rt(N,F,q,w,x);else if(k&2&&F.class!==q.class&&r(N,"class",null,q.class,x),k&4&&r(N,"style",F.style,q.style,x),k&8){const lt=f.dynamicProps;for(let bt=0;bt{J&&Me(J,w,f,h),H&&Ln(f,h,w,"updated")},O)},ut=(h,f,w,O,x,C,$)=>{for(let N=0;N{if(f!==w){if(f!==ht)for(const C in f)!Ro(C)&&!(C in w)&&r(h,C,f[C],null,x,O);for(const C in w){if(Ro(C))continue;const $=w[C],N=f[C];$!==N&&C!=="value"&&r(h,C,N,$,x,O)}"value"in w&&r(h,"value",f.value,w.value,x)}},_=(h,f,w,O,x,C,$,N,k)=>{const A=f.el=h?h.el:l(""),H=f.anchor=h?h.anchor:l("");let{patchFlag:F,dynamicChildren:q,slotScopeIds:J}=f;J&&(N=N?N.concat(J):J),h==null?(o(A,w,O),o(H,w,O),wt(f.children||[],w,H,x,C,$,N,k)):F>0&&F&64&&q&&h.dynamicChildren&&h.dynamicChildren.length===q.length?(ut(h.dynamicChildren,q,w,x,C,$,N),(f.key!=null||x&&f===x.subTree)&&ku(h,f,!0)):U(h,f,w,H,x,C,$,N,k)},S=(h,f,w,O,x,C,$,N,k)=>{f.slotScopeIds=N,h==null?f.shapeFlag&512?x.ctx.activate(f,w,O,$,k):z(f,w,O,x,C,$,k):W(h,f,k)},z=(h,f,w,O,x,C,$)=>{const N=h.component=zh(h,O,x);if(na(h)&&(N.ctx.renderer=Kn),Hh(N,!1,$),N.asyncDep){if(x&&x.registerDep(N,j,$,C),!h.el){const k=N.subTree=ct(me);L(null,k,f,w),h.placeholder=k.el}}else j(N,h,f,w,x,C,$)},W=(h,f,w)=>{const O=f.component=h.component;if(Ah(h,f,w))if(O.asyncDep&&!O.asyncResolved){f.el=h.el,f.placeholder=h.placeholder,V(O,f,w);return}else O.next=f,O.update();else f.el=h.el,f.placeholder=h.placeholder,O.vnode=f},j=(h,f,w,O,x,C,$)=>{const N=()=>{if(h.isMounted){let{next:F,bu:q,u:J,parent:lt,vnode:bt}=h;{const Gt=$u(h);if(Gt){F&&(F.el=bt.el,V(h,F,$)),Gt.asyncDep.then(()=>{de(()=>{h.isUnmounted||A()},x)});return}}let Et=F,Rt;Pn(h,!1),F?(F.el=bt.el,V(h,F,$)):F=bt,q&&Pr(q),(Rt=F.props&&F.props.onVnodeBeforeUpdate)&&Me(Rt,lt,F,bt),Pn(h,!0);const At=il(h),Ut=h.subTree;h.subTree=At,y(Ut,At,p(Ut.el),Le(Ut),h,x,C),F.el=At.el,Et===null&&xh(h,At.el),J&&de(J,x),(Rt=F.props&&F.props.onVnodeUpdated)&&de(()=>Me(Rt,lt,F,bt),x)}else{let F;const{el:q,props:J}=f,{bm:lt,m:bt,parent:Et,root:Rt,type:At}=h,Ut=ao(f);Pn(h,!1),lt&&Pr(lt),!Ut&&(F=J&&J.onVnodeBeforeMount)&&Me(F,Et,f),Pn(h,!0);{Rt.ce&&Rt.ce._hasShadowRoot()&&Rt.ce._injectChildStyle(At,h.parent?h.parent.type:void 0);const Gt=h.subTree=il(h);y(null,Gt,w,O,h,x,C),f.el=Gt.el}if(bt&&de(bt,x),!Ut&&(F=J&&J.onVnodeMounted)){const Gt=f;de(()=>Me(F,Et,Gt),x)}(f.shapeFlag&256||Et&&ao(Et.vnode)&&Et.vnode.shapeFlag&256)&&h.a&&de(h.a,x),h.isMounted=!0,f=w=O=null}};h.scope.on();const k=h.effect=new Lc(N);h.scope.off();const A=h.update=k.run.bind(k),H=h.job=k.runIfDirty.bind(k);H.i=h,H.id=h.uid,k.scheduler=()=>ta(H),Pn(h,!0),A()},V=(h,f,w)=>{f.component=h;const O=h.vnode.props;h.vnode=f,h.next=null,kh(h,f.props,O,w),Lh(h,f.children,w),Ue(),tu(h),Ge()},U=(h,f,w,O,x,C,$,N,k=!1)=>{const A=h&&h.children,H=h?h.shapeFlag:0,F=f.children,{patchFlag:q,shapeFlag:J}=f;if(q>0){if(q&128){Y(A,F,w,O,x,C,$,N,k);return}else if(q&256){Z(A,F,w,O,x,C,$,N,k);return}}J&8?(H&16&&at(A,x,C),F!==A&&c(w,F)):H&16?J&16?Y(A,F,w,O,x,C,$,N,k):at(A,x,C,!0):(H&8&&c(w,""),J&16&&wt(F,w,O,x,C,$,N,k))},Z=(h,f,w,O,x,C,$,N,k)=>{h=h||jn,f=f||jn;const A=h.length,H=f.length,F=Math.min(A,H);let q;for(q=0;qH?at(h,x,C,!0,!1,F):wt(f,w,O,x,C,$,N,k,F)},Y=(h,f,w,O,x,C,$,N,k)=>{let A=0;const H=f.length;let F=h.length-1,q=H-1;for(;A<=F&&A<=q;){const J=h[A],lt=f[A]=k?tn(f[A]):je(f[A]);if(bo(J,lt))y(J,lt,w,null,x,C,$,N,k);else break;A++}for(;A<=F&&A<=q;){const J=h[F],lt=f[q]=k?tn(f[q]):je(f[q]);if(bo(J,lt))y(J,lt,w,null,x,C,$,N,k);else break;F--,q--}if(A>F){if(A<=q){const J=q+1,lt=Jq)for(;A<=F;)kt(h[A],x,C,!0),A++;else{const J=A,lt=A,bt=new Map;for(A=lt;A<=q;A++){const Wt=f[A]=k?tn(f[A]):je(f[A]);Wt.key!=null&&bt.set(Wt.key,A)}let Et,Rt=0;const At=q-lt+1;let Ut=!1,Gt=0;const Je=new Array(At);for(A=0;A=At){kt(Wt,x,C,!0);continue}let ce;if(Wt.key!=null)ce=bt.get(Wt.key);else for(Et=lt;Et<=q;Et++)if(Je[Et-lt]===0&&bo(Wt,f[Et])){ce=Et;break}ce===void 0?kt(Wt,x,C,!0):(Je[ce-lt]=A+1,ce>=Gt?Gt=ce:Ut=!0,y(Wt,f[ce],w,null,x,C,$,N,k),Rt++)}const Cn=Ut?Nh(Je):jn;for(Et=Cn.length-1,A=At-1;A>=0;A--){const Wt=lt+A,ce=f[Wt],Ke=f[Wt+1],kn=Wt+1{const{el:C,type:$,transition:N,children:k,shapeFlag:A}=h;if(A&6){Ct(h.component.subTree,f,w,O);return}if(A&128){h.suspense.move(f,w,O);return}if(A&64){$.move(h,f,w,Kn);return}if($===jt){o(C,f,w);for(let H=0;HN.enter(C),x));else{const{leave:H,delayLeave:F,afterLeave:q}=N,J=()=>{h.ctx.isUnmounted?i(C):o(C,f,w)},lt=()=>{const bt=C._isLeaving||!!C[Fr];C._isLeaving&&C[Fr](!0),N.persisted&&!bt?J():H(C,()=>{J(),q&&q()})};F?F(C,J,lt):lt()}else o(C,f,w)},kt=(h,f,w,O=!1,x=!1)=>{const{type:C,props:$,ref:N,children:k,dynamicChildren:A,shapeFlag:H,patchFlag:F,dirs:q,cacheIndex:J,memo:lt}=h;if((F===-2||A&&A.hasOnce)&&(x=!1),N!=null&&(Ue(),Do(N,null,w,h,!0),Ge()),J!=null&&(!h.ctx||h.ctx===f)&&(f.renderCache[J]=void 0),H&256){f.ctx.deactivate(h);return}const bt=H&1&&q,Et=!ao(h);let Rt;if(Et&&(Rt=$&&$.onVnodeBeforeUnmount)&&Me(Rt,f,h),H&6)ge(h.component,w,O);else{if(H&128){h.suspense.unmount(w,O);return}bt&&Ln(h,null,f,"beforeUnmount"),H&64?h.type.remove(h,f,w,Kn,O):A&&!A.hasOnce&&(C!==jt||F>0&&F&64)?at(A,f,w,!1,!0):(C===jt&&F&384||!x&&H&16)&&at(k,f,w),O&&Xt(h)}const At=lt!=null&&J==null;(Et&&(Rt=$&&$.onVnodeUnmounted)||bt||At)&&de(()=>{Rt&&Me(Rt,f,h),bt&&Ln(h,null,f,"unmounted"),At&&(h.el=null)},w)},Xt=h=>{const{type:f,el:w,anchor:O,transition:x}=h,C=f===jt;if(C&&!x){dn(w,O);return}if(f===wi){P(h),x&&!x.persisted&&x.afterLeave&&x.afterLeave();return}const $=C?_s(h):h,N=()=>{C?p(w)&&dn(w,O):i(w),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if($&&$.shapeFlag&1&&x&&!x.persisted){const{leave:k,delayLeave:A}=x,H=$.el,F=()=>k(H,N);A?A(H,N,F):F()}else N()},dn=(h,f)=>{let w;for(;h!==f;)w=m(h),i(h),h=w;i(f)},ge=(h,f,w)=>{const{bum:O,scope:x,job:C,subTree:$,um:N,m:k,a:A}=h;al(k),al(A),O&&Pr(O),x.stop(),C?(C.flags|=8,kt($,h,f,w)):h.vnode.el&&$&&($.transition=h.vnode.transition,kt($,h,f,w)),N&&de(N,f),de(()=>{h.isUnmounted=!0},f)},at=(h,f,w,O=!1,x=!1,C=0)=>{for(let $=C;${if(h.shapeFlag&6)return Le(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const f=m(h.anchor||h.el),w=f&&f[Yp];return w?m(w):f},ri=(h,f,w)=>{const O=h&&f._vnode?void 0:h&&h.component?h.component.uid:jh();zp(()=>{h==null?f._vnode&&kt(f._vnode,null,null,!0):y(f._vnode||null,h,f,null,null,null,w),f._vnode=h},O)},Kn={p:y,um:kt,m:Ct,r:Xt,mt:z,mc:wt,pc:U,pbc:ut,n:Le,o:t};return{render:ri,hydrate:void 0,createApp:bh(ri)}}function zr({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function Pn({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function Mh(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function ku(t,e,n=!1){const o=t.children,i=e.children;if(I(o)&&I(i))for(let r=0;r>1,t[n[l]]0&&(e[o]=n[r-1]),n[r]=o)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=e[s];return n}function $u(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:$u(e)}function al(t){if(t)for(let e=0;et.__isSuspense;function Bh(t,e){e&&e.pendingBranch?I(t)?e.effects.push(...t):e.effects.push(t):Qc(t)}const jt=Symbol.for("v-fgt"),ni=Symbol.for("v-txt"),me=Symbol.for("v-cmt"),wi=Symbol.for("v-stc"),an=[];let fe=null;function M(t=!1){an.push(fe=t?null:[])}function aa(){an.pop(),fe=an[an.length-1]||null}let Jo=1;function Ni(t,e=!1){Jo+=t,t<0&&fe&&e&&(fe.hasOnce=!0)}function Ru(t){return t.dynamicChildren=Jo>0?fe||jn:null,aa(),Jo>0&&fe&&fe.push(t),t}function G(t,e,n,o,i,r){return Ru(et(t,e,n,o,i,r,!0))}function Ot(t,e,n,o,i){return Ru(ct(t,e,n,o,i,!0))}function ho(t){return t?t.__v_isVNode===!0:!1}function bo(t,e){return t.type===e.type&&t.key===e.key}const Lu=({key:t})=>t??null,Ei=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Pt(t)||re(t)||tt(t)?{i:te,r:t,k:e,f:!!n}:t:null);function et(t,e=null,n=null,o=0,i=null,r=t===jt?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Lu(e),ref:e&&Ei(e),scopeId:lr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:o,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:te};return l?(Vi(a,n),r&128&&t.normalize(a)):n&&(a.shapeFlag|=Pt(n)?8:16),Jo>0&&!s&&fe&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&fe.push(a),a}const ct=Vh;function Vh(t,e=null,n=null,o=0,i=null,r=!1){if((!t||t===cu)&&(t=me),ho(t)){const l=fo(t,e,!0);return n&&Vi(l,n),Jo>0&&!r&&fe&&(l.shapeFlag&6?fe[fe.indexOf(t)]=l:fe.push(l)),l.patchFlag=-2,l}if(qh(t)&&(t=t.__vccOpts),e){e=Bi(e);let{class:l,style:a}=e;l&&!Pt(l)&&(e.class=xt(l)),St(a)&&(Qs(a)&&!I(a)&&(a=Jt({},a)),e.style=_n(a))}const s=Pt(t)?1:Ou(t)?128:cr(t)?64:St(t)?4:tt(t)?2:0;return et(t,e,n,o,i,s,r,!0)}function Bi(t){return t?Qs(t)||Eu(t)?Jt({},t):t:null}function fo(t,e,n=!1,o=!1){const{props:i,ref:r,patchFlag:s,children:l,transition:a}=t,d=e?Kt(i||{},e):i,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:d,key:d&&Lu(d),ref:e&&e.ref?n&&r?I(r)?r.concat(Ei(e)):[r,Ei(e)]:Ei(e):r,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:l,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==jt?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:a,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&fo(t.ssContent),ssFallback:t.ssFallback&&fo(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce,cacheIndex:t.cacheIndex};return a&&o&&Li(c,a.clone(c)),c}function Ae(t=" ",e=0){return ct(ni,null,t,e)}function vt(t="",e=!1){return e?(M(),Ot(me,null,t)):ct(me,null,t)}function je(t){return t==null||typeof t=="boolean"?ct(me):I(t)?ct(jt,null,t.slice()):ho(t)?tn(t):ct(ni,null,String(t))}function tn(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:fo(t)}function Vi(t,e){let n=0;const{shapeFlag:o}=t;if(e==null)e=null;else if(I(e))n=16;else if(typeof e=="object")if(o&65){const i=e.default;i&&(i._c&&(i._d=!1),Vi(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!Eu(e)?e._ctx=te:i===3&&te&&(te.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else if(tt(e)){if(o&65){Vi(t,{default:e});return}e={default:e,_ctx:te},n=32}else e=String(e),o&64?(n=16,e=[Ae(e)]):n=8;t.children=e,t.shapeFlag|=n}function Kt(...t){const e={};for(let n=0;noe||te;let Fi,Ko;{const t=ki(),e=(n,o)=>{let i;return(i=t[n])||(i=t[n]=[]),i.push(o),r=>{i.length>1?i.forEach(s=>s(r)):i[0](r)}};Fi=e("__VUE_INSTANCE_SETTERS__",n=>oe=n),Ko=e("__VUE_SSR_SETTERS__",n=>Xo=n)}const ii=t=>{const e=oe;return Fi(t),t.scope.on(),()=>{t.scope.off(),Fi(e)}},ll=()=>{oe&&oe.scope.off(),Fi(null)};function Du(t){return t.vnode.shapeFlag&4}let Xo=!1;function Hh(t,e=!1,n=!1){e&&Ko(e);const{props:o,children:i}=t.vnode,r=Du(t);Ch(t,o,r,e),Rh(t,i,n||e);const s=r?Uh(t,e):void 0;return e&&Ko(!1),s}function Uh(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,uh);const{setup:o}=n;if(o){Ue();const i=t.setupContext=o.length>1?Nu(t):null,r=ii(t),s=ei(o,t,0,[t.props,i]),l=Ac(s);if(Ge(),r(),(l||t.sp)&&!ao(t)&&ru(t),l){if(s.then(ll,ll),e)return s.then(a=>{Ko(!0);try{cl(t,a,e)}finally{Ko(!1)}}).catch(a=>{ar(a,t,0)});t.asyncDep=s}else cl(t,s)}else Mu(t)}function cl(t,e,n){tt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:St(e)&&(t.setupState=Xc(e)),Mu(t)}function Mu(t,e,n){const o=t.type;t.render||(t.render=o.render||Ce);{const i=ii(t);Ue();try{hh(t)}finally{Ge(),i()}}}const Gh={get(t,e){return ne(t,"get",""),t[e]}};function Nu(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,Gh),slots:t.slots,emit:t.emit,expose:e}}function hr(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Xc($p(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Mo)return Mo[n](t)},has(e,n){return n in e||n in Mo}})):t.proxy}function Wh(t,e=!0){return tt(t)?t.displayName||t.name:t.name||e&&t.__name}function qh(t){return tt(t)&&"__vccOpts"in t}const yt=(t,e)=>Np(t,e,Xo);function ve(t,e,n){try{Ni(-1);const o=arguments.length;return o===2?St(e)&&!I(e)?ho(e)?ct(t,null,[e]):ct(t,e):ct(t,null,e):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&ho(n)&&(n=[n]),ct(t,e,n))}finally{Ni(1)}}const Jh="3.5.44";let xs;const ul=typeof window<"u"&&window.trustedTypes;if(ul)try{xs=ul.createPolicy("vue",{createHTML:t=>t})}catch{}const Bu=xs?t=>xs.createHTML(t):t=>t,Kh="http://www.w3.org/2000/svg",Xh="http://www.w3.org/1998/Math/MathML",Qe=typeof document<"u"?document:null,dl=Qe&&Qe.createElement("template"),Yh={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,o)=>{const i=e==="svg"?Qe.createElementNS(Kh,t):e==="mathml"?Qe.createElementNS(Xh,t):n?Qe.createElement(t,{is:n}):Qe.createElement(t);return t==="select"&&o&&o.multiple!=null&&i.setAttribute("multiple",o.multiple),i},createText:t=>Qe.createTextNode(t),createComment:t=>Qe.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Qe.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,o,i,r){const s=n?n.previousSibling:e.lastChild;if(i&&(i===r||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{dl.innerHTML=Bu(o==="svg"?`${t}`:o==="mathml"?`${t}`:t);const l=dl.content;if(o==="svg"||o==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}e.insertBefore(l,n)}return[s?s.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},Zh=Symbol("_vtc");function Ih(t,e,n){const o=t[Zh];o&&(e=(e?[e,...o]:[...o]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const ji=Symbol("_vod"),Vu=Symbol("_vsh"),Cs={name:"show",beforeMount(t,{value:e},{transition:n}){t[ji]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):_o(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:o}){!e!=!n&&(o?e?(o.beforeEnter(t),_o(t,!0),o.enter(t)):o.leave(t,()=>{_o(t,!1)}):_o(t,e))},beforeUnmount(t,{value:e}){_o(t,e)}};function _o(t,e){t.style.display=e?t[ji]:"none",t[Vu]=!e}const Fu=Symbol("");function la(t){const e=oi();if(!e)return;const n=e.ut=(i=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(r=>zi(r,i))},o=()=>{const i=t(e.proxy);e.ce?zi(e.ce,i):ks(e.subTree,i),n(i)};au(()=>{Qc(o)}),oa(()=>{so(o,Ce,{flush:"post"});const i=new MutationObserver(o);i.observe(e.subTree.el.parentNode,{childList:!0}),dr(()=>i.disconnect())})}function ks(t,e){if(t.shapeFlag&128){const n=t.suspense;t=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ks(n.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)zi(t.el,e);else if(t.type===jt)t.children.forEach(n=>ks(n,e));else if(t.type===wi){let{el:n,anchor:o}=t;for(;n&&(zi(n,e),n!==o);)n=n.nextSibling}}function zi(t,e){if(t.nodeType===1){const n=t.style;let o="";for(const i in e){const r=up(e[i]);n.setProperty(`--${i}`,r),o+=`--${i}: ${r};`}n[Fu]=o}}const Qh=/(?:^|;)\s*display\s*:/;function tf(t,e,n){const o=t.style,i=Pt(n);let r=!1;if(n&&!i){if(e)if(Pt(e))for(const s of e.split(";")){const l=s.slice(0,s.indexOf(":")).trim();n[l]==null&&$o(o,l,"")}else for(const s in e)n[s]==null&&$o(o,s,"");for(const s in n){s==="display"&&(r=!0);const l=n[s];l!=null?nf(t,s,!Pt(e)&&e?e[s]:void 0,l)||$o(o,s,l):$o(o,s,"")}}else if(i){if(e!==n){const s=o[Fu];s&&(n+=";"+s),o.cssText=n,r=Qh.test(n)}}else e&&t.removeAttribute("style");ji in t&&((!i||e!==n)&&(t[ji]=r?o.display:""),t[Vu]&&(o.display="none"))}const mi=/\s*!important$/;function $o(t,e,n){if(I(n))n.forEach(o=>$o(t,e,o));else if(n==null&&(n=""),e.startsWith("--"))mi.test(n)?t.setProperty(e,n.replace(mi,""),"important"):t.setProperty(e,n);else{const o=ef(t,e);mi.test(n)?t.setProperty(cn(o),n.replace(mi,""),"important"):t[o]=n}}const pl=["Webkit","Moz","ms"],Hr={};function ef(t,e){const n=Hr[e];if(n)return n;let o=ie(e);if(o!=="filter"&&o in t)return Hr[e]=o;o=nr(o);for(let i=0;iUr||(uf.then(()=>Ur=0),Ur=Date.now());function pf(t,e){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;const i=n.value;if(I(i)){const r=o.stopImmediatePropagation;o.stopImmediatePropagation=()=>{r.call(o),o._stopped=!0};const s=i.slice(),l=[o];for(let a=0;at.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,hf=(t,e,n,o,i,r)=>{const s=i==="svg";e==="class"?Ih(t,o,s):e==="style"?tf(t,n,o):Qi(e)?tr(e)||sf(t,e,n,o,r):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):ff(t,e,o,s))?(ml(t,e,o),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&fl(t,e,o,s,r,e!=="value")):t._isVueCE&&(mf(t,e)||t._def.__asyncLoader&&(/[A-Z]/.test(e)||!Pt(o)))?ml(t,ie(e),o,r,e):(e==="true-value"?t._trueValue=o:e==="false-value"&&(t._falseValue=o),fl(t,e,o,s))};function ff(t,e,n,o){if(o)return!!(e==="innerHTML"||e==="textContent"||e in t&&yl(e)&&tt(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return yl(e)&&Pt(n)?!1:e in t}function mf(t,e){const n=t._def.props;if(!n)return!1;const o=ie(e);return Array.isArray(n)?n.some(i=>ie(i)===o):Object.keys(n).some(i=>ie(i)===o)}const gf=["ctrl","shift","alt","meta"],yf={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>gf.some(n=>t[`${n}Key`]&&!e.includes(n))},ju=(t,e)=>{if(!t)return t;const n=t._withMods||(t._withMods={}),o=e.join(".");return n[o]||(n[o]=((i,...r)=>{for(let s=0;s{const n=t._withKeys||(t._withKeys={}),o=e.join(".");return n[o]||(n[o]=(i=>{if(!("key"in i))return;const r=cn(i.key);if(e.some(s=>s===r||vf[s]===r))return t(i)}))},_f=Jt({patchProp:hf},Yh);let vl;function wf(){return vl||(vl=Ph(_f))}const Ef=((...t)=>{const e=wf().createApp(...t),{mount:n}=e;return e.mount=o=>{const i=Tf(o);if(!i)return;const r=e._component;!tt(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=n(i,!1,Sf(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},e});function Sf(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Tf(t){return Pt(t)?document.querySelector(t):t}function $s(t,e,n){const o=`#initial-state-${t}-${e}`;if(window._nc_initial_state?.has(o))return window._nc_initial_state.get(o);window._nc_initial_state||(window._nc_initial_state=new Map);const i=document.querySelector(o);if(i===null)throw new Error(`Could not find initial state ${e} of ${t}`);try{const r=JSON.parse(atob(i.value));return window._nc_initial_state.set(o,r),r}catch(r){throw console.error("[@nextcloud/initial-state] Could not parse initial state",{key:e,app:t,error:r}),new Error(`Could not parse initial state ${e} of ${t}`,{cause:r})}}function Af(){try{return $s("core","capabilities")}catch{return console.debug("Could not find capabilities initial state fall back to _oc_capabilities"),"_oc_capabilities"in window?window._oc_capabilities:{}}}function bl(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n2?n-2:0),i=2;i1?e-1:0),o=1;o"u"?null:Dt(BigInt.prototype.toString),Al=typeof Symbol>"u"?null:Dt(Symbol.prototype.toString),pe=Dt(Object.prototype.hasOwnProperty),To=Dt(Object.prototype.toString),Zt=Dt(RegExp.prototype.test),Ze=Wu(TypeError);function Dt(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:Nn;if(_l&&_l(t,null),!co(e))return t;let o=e.length;for(;o--;){let i=e[o];if(typeof i=="string"){const r=n(i);r!==i&&(Rf(e)||(e[o]=r),i=r)}t[i]=!0}return t}function Vf(t){for(let e=0;e/g),qf=ee(/\${[\w\W]*/g),Jf=ee(/^data-[\-\w.\u00B7-\uFFFF]+$/),Kf=ee(/^aria-[\-\w]+$/),Ol=ee(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Xf=ee(/^(?:\w+script|data):/i),Yf=ee(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Zf=ee(/^html$/i),If=ee(/^[a-z][.\w]*(-[.\w]+)+$/i),Zr=ee(/<[/\w!]/g),Rl=ee(/<[/\w]/g),Qf=ee(/<\/no(script|embed|frames)/i),Ll=ee(/\/>/i),Vt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},tm=qt(pt({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),em=function(){return typeof window>"u"?null:window},nm=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(n=e.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML(r){return r},createScriptURL(r){return r}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Pl=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},fn=function(t,e,n,o){return pe(t,e)&&co(t[e])?pt(o.base?he(o.base):{},t[e],o.transform):n},Ir=function(t,e,n){const o=pe(t,e)?t[e]:void 0;return o&&typeof o=="object"?he(o):n()};function qu(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:em();const e=u=>qu(u);if(e.version="3.4.17",e.removed=[],!t||!t.document||t.document.nodeType!==Vt.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const o=n,i=o.currentScript;t.DocumentFragment;const r=t.HTMLTemplateElement,s=t.Node,l=t.Element,a=t.NodeFilter;t.NamedNodeMap===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,c=t.trustedTypes,p=l.prototype,m=be(p,"cloneNode"),g=be(p,"remove"),E=be(p,"removeAttributeNode"),y=be(p,"nextSibling"),R=be(p,"childNodes"),L=be(p,"parentNode"),D=be(p,"shadowRoot"),B=be(p,"attributes"),P=s&&s.prototype?be(s.prototype,"nodeType"):null,nt=s&&s.prototype?be(s.prototype,"nodeName"):null,st=s&&s.prototype?be(s.prototype,"ownerDocument"):null,it=function(u){return P?P(u):u.nodeType},wt=function(u){return nt?nt(u):u.nodeName},mt=jf(p,"namespaceURI"),ut=function(u){return mt?mt(u):u.namespaceURI};if(typeof r=="function"){const u=n.createElement("template");u.content&&u.content.ownerDocument&&(n=u.content.ownerDocument)}let rt,_="",S,z=!1,W=0;const j=function(){if(W>0)throw Ze('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},V=function(u){j(),W++;try{return rt.createHTML(u)}finally{W--}},U=function(u){j(),W++;try{return rt.createScriptURL(u)}finally{W--}},Z=function(){return z||(S=nm(c,i),z=!0),S},Y=n,Ct=Y.implementation,kt=Y.createNodeIterator,Xt=Y.createDocumentFragment,dn=Y.getElementsByTagName,ge=o.importNode;let at=Pl();e.isSupported=typeof zu=="function"&&typeof L=="function"&&Ct&&Ct.createHTMLDocument!==void 0;const Le=Gf,ri=Wf,Kn=qf,h=Jf,f=Kf,w=Xf,O=Yf,x=If;let C=Ol,$=null;const N=pt({},[...xl,...Jr,...Kr,...Xr,...Cl]);let k=null;const A=pt({},[...kl,...Yr,...$l,...gi]);let H=Object.seal(io(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),F=null,q=null;const J=Object.seal(io(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let lt=!0,bt=!0,Et=!1,Rt=!0,At=!1,Ut=!0,Gt=!1,Je=!1,Cn=null,Wt=null,ce=!1,Ke=!1,kn=!1,si=!1,va=!0,ba=!1;const _a="user-content-";let yr=!0,vr=!1,$n=null,Xn={},On=null;const wa=pt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Ea=null;const Sa=pt({},["audio","video","img","source","image","track"]);let Ta=null;const Aa=pt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ai="http://www.w3.org/1998/Math/MathML",li="http://www.w3.org/2000/svg",Pe="http://www.w3.org/1999/xhtml";let Yn=Pe,br=!1,_r=null;const Od=pt({},[ai,li,Pe],qr),xa=qt(["mi","mo","mn","ms","mtext"]);let wr=pt({},xa);const Ca=qt(["annotation-xml"]);let Er=pt({},Ca);const Rd=pt({},["title","style","font","a","script"]);let mo=null;const Ld=["application/xhtml+xml","text/html"],Pd="text/html";let Nt=null,Zn=null;const Dd=n.createElement("form"),ka=function(u){return u instanceof RegExp||u instanceof Function},Sr=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Zn&&Zn===u)return;(!u||typeof u!="object")&&(u={}),u=he(u),mo=Ld.indexOf(u.PARSER_MEDIA_TYPE)===-1?Pd:u.PARSER_MEDIA_TYPE,Nt=mo==="application/xhtml+xml"?qr:Nn,$=fn(u,"ALLOWED_TAGS",N,{transform:Nt}),k=fn(u,"ALLOWED_ATTR",A,{transform:Nt}),_r=fn(u,"ALLOWED_NAMESPACES",Od,{transform:qr}),Ta=fn(u,"ADD_URI_SAFE_ATTR",Aa,{transform:Nt,base:Aa}),Ea=fn(u,"ADD_DATA_URI_TAGS",Sa,{transform:Nt,base:Sa}),On=fn(u,"FORBID_CONTENTS",wa,{transform:Nt}),F=fn(u,"FORBID_TAGS",he({}),{transform:Nt}),q=fn(u,"FORBID_ATTR",he({}),{transform:Nt}),Xn=pe(u,"USE_PROFILES")?u.USE_PROFILES&&typeof u.USE_PROFILES=="object"?he(u.USE_PROFILES):u.USE_PROFILES:!1,lt=u.ALLOW_ARIA_ATTR!==!1,bt=u.ALLOW_DATA_ATTR!==!1,Et=u.ALLOW_UNKNOWN_PROTOCOLS||!1,Rt=u.ALLOW_SELF_CLOSE_IN_ATTR!==!1,At=u.SAFE_FOR_TEMPLATES||!1,Ut=u.SAFE_FOR_XML!==!1,Gt=u.WHOLE_DOCUMENT||!1,Ke=u.RETURN_DOM||!1,kn=u.RETURN_DOM_FRAGMENT||!1,si=u.RETURN_TRUSTED_TYPE||!1,ce=u.FORCE_BODY||!1,va=u.SANITIZE_DOM!==!1,ba=u.SANITIZE_NAMED_PROPS||!1,yr=u.KEEP_CONTENT!==!1,vr=u.IN_PLACE||!1,C=zf(u.ALLOWED_URI_REGEXP)?u.ALLOWED_URI_REGEXP:Ol,Yn=typeof u.NAMESPACE=="string"?u.NAMESPACE:Pe,wr=Ir(u,"MATHML_TEXT_INTEGRATION_POINTS",()=>pt({},xa)),Er=Ir(u,"HTML_INTEGRATION_POINTS",()=>pt({},Ca));const v=Ir(u,"CUSTOM_ELEMENT_HANDLING",()=>io(null));if(H=io(null),pe(v,"tagNameCheck")&&ka(v.tagNameCheck)&&(H.tagNameCheck=v.tagNameCheck),pe(v,"attributeNameCheck")&&ka(v.attributeNameCheck)&&(H.attributeNameCheck=v.attributeNameCheck),pe(v,"allowCustomizedBuiltInElements")&&typeof v.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=v.allowCustomizedBuiltInElements),ee(H),At&&(bt=!1),kn&&(Ke=!0),Xn&&($=pt({},Cl),k=io(null),Xn.html===!0&&(pt($,xl),pt(k,kl)),Xn.svg===!0&&(pt($,Jr),pt(k,Yr),pt(k,gi)),Xn.svgFilters===!0&&(pt($,Kr),pt(k,Yr),pt(k,gi)),Xn.mathMl===!0&&(pt($,Xr),pt(k,$l),pt(k,gi))),J.tagCheck=null,J.attributeCheck=null,pe(u,"ADD_TAGS")&&(typeof u.ADD_TAGS=="function"?J.tagCheck=u.ADD_TAGS:co(u.ADD_TAGS)&&($===N&&($=he($)),pt($,u.ADD_TAGS,Nt))),pe(u,"ADD_ATTR")&&(typeof u.ADD_ATTR=="function"?J.attributeCheck=u.ADD_ATTR:co(u.ADD_ATTR)&&(k===A&&(k=he(k)),pt(k,u.ADD_ATTR,Nt))),pe(u,"ADD_FORBID_CONTENTS")&&co(u.ADD_FORBID_CONTENTS)&&(On===wa&&(On=he(On)),pt(On,u.ADD_FORBID_CONTENTS,Nt)),yr&&($["#text"]=!0),Gt&&pt($,["html","head","body"]),$.table&&(pt($,["tbody"]),delete F.tbody),u.TRUSTED_TYPES_POLICY){if(typeof u.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ze('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof u.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ze('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const b=rt;rt=u.TRUSTED_TYPES_POLICY;try{_=V("")}catch(T){throw rt=b,T}}else u.TRUSTED_TYPES_POLICY===null?(rt=void 0,_=""):(rt===void 0&&(rt=Z()),rt&&typeof _=="string"&&(_=V("")));qt&&qt(u),Zn=u},$a=pt({},[...Jr,...Kr,...Hf]),Oa=pt({},[...Xr,...Uf]),Md=function(u,v,b){return v.namespaceURI===Pe?u==="svg":v.namespaceURI===ai?u==="svg"&&(b==="annotation-xml"||wr[b]):!!$a[u]},Nd=function(u,v,b){return v.namespaceURI===Pe?u==="math":v.namespaceURI===li?u==="math"&&Er[b]:!!Oa[u]},Bd=function(u,v,b){return v.namespaceURI===li&&!Er[b]||v.namespaceURI===ai&&!wr[b]?!1:!Oa[u]&&(Rd[u]||!$a[u])},Vd=function(u){const v=ut(u),b=Nn(wt(u)),T=L(u);let X,Q;return T&&it(T)===Vt.element?(X={namespaceURI:ut(T)},Q=Nn(wt(T))):(X={namespaceURI:Yn},Q="template"),_r[v]?v===li?Md(b,X,Q):v===ai?Nd(b,X,Q):v===Pe?Bd(b,X,Q):!!(mo==="application/xhtml+xml"&&_r[v]):!1},Rn=function(u){wo(e.removed,{element:u});try{L(u).removeChild(u)}catch{if(g(u),!L(u))throw Ze("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ra=function(u,v,b){try{E(u,v)}catch{try{u.removeAttribute(b)}catch{}}},Tr=function(u){xr(u);const v=R(u);v&&Ye(Pf(v),T=>{try{g(T)}catch{}});const b=it(u)===Vt.element?B(u):null;if(b)for(let T=b.length-1;T>=0;--T){const X=b[T],Q=X&&X.name;typeof Q=="string"&&Ra(u,X,Q)}},In=function(u,v,b){if(!b)try{b=v.getAttributeNode(u)}catch{b=null}wo(e.removed,{attribute:b||null,from:v});try{b?E(v,b):v.removeAttribute(u)}catch{try{v.removeAttribute(u)}catch{}}if(u==="is")if(Ke||kn)try{Rn(v)}catch{}else try{v.setAttribute(u,"")}catch{}},La=function(u){const v=B(u);if(v)for(let b=v.length-1;b>=0;--b){const T=v[b],X=T&&T.name;typeof X!="string"||k[Nt(X)]||Ra(u,T,X)}},Ar=function(u,v){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const T=[u];for(;T.length>0;){const X=T.pop();if(v(X)===!1)continue;if(b&&it(X)===Vt.element){const ot=D(X);pn(ot)&&T.push(ot)}const Q=R(X);if(Q)for(let ot=Q.length-1;ot>=0;--ot)T.push(Q[ot])}},xr=function(u){Ar(u,v=>{it(v)===Vt.element&&La(v)})},Cr=function(u){const v=[];return Ar(u,b=>{v.push(b)},!0),v},Fd=function(u,v){const b=Gr();Ye(Cr(u),T=>{it(T)===Vt.element&&Wr(b,T)}),Ye(v,T=>{it(T)===Vt.element&&!Eo(b,T)&&La(T)})},Pa=function(u,v){let b=!1;return Ye(e.removed,T=>{T.element&&(b=b||T.element===u,xr(T.element))}),Fd(u,v),b},jd=8,zd=function(u,v){const b=$n;let T=null;const X=()=>(T||(T=Gr(),Ye(v,Q=>{Wr(T,Q)})),T);for(let Q=0;;Q++){const ot=Cr(u),Mt=[u];let hn=!1;if(Ye(ot,ye=>{it(ye)===Vt.documentFragment?wo(Mt,ye):!hn&&!Eo(b,ye)&&(hn=Eo(X(),ye))}),!hn)return;if(Q>=jd)throw Ze("the tree kept changing during in-place sanitization; refusing to return it");Ye(Mt,(ye,ue)=>{Hd(ye,ue>0,u,X())})}},Hd=function(u,v,b,T){const X=kr(u);let Q;for(;Q=X.nextNode();)!Eo(T,Q)||Eo($n,Q)||(v&&Se(at.uponSanitizeShadowNode,Q,null),Or(Q,b),Rr(Q,b),pn(Q.content)&&yo(Q.content))},Ud=function(u){$n&&Wr($n,u)},Da=function(u,v){return Ut?u==="patchsrc"?!0:u==="for"&&v!=="label"&&v!=="output":!1},Gd=function(u){Ut&&Ar(u,v=>{const b=it(v);if(b===Vt.processingInstruction||b===Vt.comment&&Zt(Rl,v.data)){try{g(v)}catch{}return!1}if(b===Vt.element){const T=v,X=Nt(wt(v));try{T.hasAttribute&&T.hasAttribute("patchsrc")&&T.removeAttribute("patchsrc"),T.hasAttribute&&T.hasAttribute("for")&&Da("for",X)&&T.removeAttribute("for")}catch{}}return!0})},Ma=function(u){let v=null,b=null;if(ce)u=""+u;else{const Q=El(u,/^[\r\n\t ]+/);b=Q&&Q[0]}mo==="application/xhtml+xml"&&Yn===Pe&&(u=''+u+"");const T=rt?V(u):u;if(Yn===Pe)try{v=new d().parseFromString(T,mo)}catch{}if(!v||!v.documentElement){v=Ct.createDocument(Yn,"template",null);try{v.documentElement.innerHTML=br?_:T}catch{}}const X=v.body||v.documentElement;return u&&b&&X.insertBefore(n.createTextNode(b),X.childNodes[0]||null),Yn===Pe?dn.call(v,Gt?"html":"body")[0]:Gt?v.documentElement:X},kr=function(u){const v=st?st(u):u.ownerDocument;return kt.call(v||u,u,a.SHOW_ELEMENT|a.SHOW_COMMENT|a.SHOW_TEXT|a.SHOW_PROCESSING_INSTRUCTION|a.SHOW_CDATA_SECTION,null)},ci=function(u){return u=So(u,Le," "),u=So(u,ri," "),u=So(u,Kn," "),u},$r=function(u){var v;Na(u);const b=(v=u.querySelectorAll)===null||v===void 0?void 0:v.call(u,"template");b&&Ye(b,T=>{pn(T.content)&&$r(T.content)})},Na=function(u){u.normalize();const v=st?st(u):u.ownerDocument,b=kt.call(v||u,u,a.SHOW_TEXT|a.SHOW_COMMENT|a.SHOW_CDATA_SECTION|a.SHOW_PROCESSING_INSTRUCTION,null);let T=b.nextNode();for(;T;)T.data=ci(T.data),T=b.nextNode()},ui=function(u){const v=nt?nt(u):null;return typeof v!="string"||Nt(v)!=="form"?!1:typeof u.nodeName!="string"||typeof u.textContent!="string"||typeof u.removeChild!="function"||u.attributes!==B(u)||typeof u.removeAttribute!="function"||typeof u.removeAttributeNode!="function"||typeof u.getAttributeNode!="function"||typeof u.setAttribute!="function"||typeof u.namespaceURI!="string"||typeof u.insertBefore!="function"||typeof u.hasChildNodes!="function"||u.nodeType!==P(u)||u.childNodes!==R(u)},pn=function(u){if(!P||typeof u!="object"||u===null)return!1;try{return P(u)===Vt.documentFragment}catch{return!1}},go=function(u){if(!P||typeof u!="object"||u===null)return!1;try{return typeof P(u)=="number"}catch{return!1}};function Se(u,v,b){u.length!==0&&Ye(u,T=>{T.call(e,v,b,Zn)})}const Wd=function(u,v){return!!(Ut&&u.hasChildNodes()&&!go(u.firstElementChild)&&Zt(Zr,u.textContent)&&Zt(Zr,u.innerHTML)||Ut&&tm[v]&&it(u)===Vt.element&&ut(u)===Pe&&(go(u.firstElementChild)||typeof u.textContent=="string"&&Zt(Zr,u.textContent))||u.nodeType===Vt.processingInstruction||Ut&&u.nodeType===Vt.comment&&Zt(Rl,u.data))},di=function(u,v){if(u instanceof RegExp)return Zt(u,v);if(u instanceof Function){for(var b=arguments.length,T=new Array(b>2?b-2:0),X=2;X=0;--ot){const Mt=u===b?m(X[ot],!0):X[ot];T.insertBefore(Mt,y(u))}}}return Rn(u),!0},Ba=function(u,v,b,T){return u.length===0?v:v===b||v===T?he(v):v},Qn=function(u,v){return u===v||L(u)!==null?!1:(vr&&xr(u),!0)},Or=function(u,v){if(Ud(u),Se(at.beforeSanitizeElements,u,null),Qn(u,v))return!0;if(ui(u))return Rn(u),!0;const b=Nt(wt(u));if($=Ba(at.uponSanitizeElement,$,N,Cn),Se(at.uponSanitizeElement,u,{tagName:b,allowedTags:$}),Qn(u,v))return!0;if(Wd(u,b))return Rn(u),!0;if(F[b]||!(J.tagCheck instanceof Function&&J.tagCheck(b))&&!$[b]){const T=qd(u,b,v);return T===!1&&(Se(at.afterSanitizeElements,u,null),Qn(u,v))?!0:T}if(it(u)===Vt.element&&!Vd(u)||(b==="noscript"||b==="noembed"||b==="noframes")&&Zt(Qf,u.innerHTML))return Rn(u),!0;if(At&&u.nodeType===Vt.text){const T=ci(u.textContent);u.textContent!==T&&(wo(e.removed,{element:u.cloneNode()}),u.textContent=T)}return Se(at.afterSanitizeElements,u,null),Qn(u,v)},Va=function(u,v,b){if(q[v]||Da(v,u)||va&&(v==="id"||v==="name")&&(b in n||b in Dd))return!1;const T=k[v]||J.attributeCheck instanceof Function&&J.attributeCheck(v,u);return bt&&Zt(h,v)||lt&&Zt(f,v)?!0:T?Ta[v]||Zt(C,So(b,O,""))||(v==="src"||v==="xlink:href"||v==="href")&&u!=="script"&&Sl(b,"data:")===0&&Ea[u]||Et&&!Zt(w,So(b,O,""))?!0:!b:Fa(u)&&di(H.tagNameCheck,u)&&di(H.attributeNameCheck,v,u)||v==="is"&&H.allowCustomizedBuiltInElements&&di(H.tagNameCheck,b)},Jd=pt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Fa=function(u){return!Jd[Nn(u)]&&Zt(x,u)},Kd=function(u,v,b,T){if(rt&&typeof c=="object"&&typeof c.getAttributeType=="function"&&!b)switch(c.getAttributeType(u,v)){case"TrustedHTML":return V(T);case"TrustedScriptURL":return U(T)}return T},Xd=function(u,v,b,T){try{return b?u.setAttributeNS(b,v,T):u.setAttribute(v,T),ui(u)?(Rn(u),!1):!0}catch{return In(v,u),!1}},ja=function(u,v){return Ut&&Zt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,v)?!0:Nn(u)==="attributename"&&El(v,"href")!==null},Rr=function(u,v){if(Se(at.beforeSanitizeAttributes,u,null),Qn(u,v))return;const b=u.attributes;if(!b||ui(u))return;k=Ba(at.uponSanitizeAttribute,k,A,Wt);const T={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:k,forceKeepAttr:void 0};let X=b.length;const Q=Nt(u.nodeName);for(;X--;){const ot=b[X],Mt=ot.name,hn=ot.namespaceURI,ye=ot.value,ue=Nt(Mt),De=ye;let Yt=Mt==="value"?De:Mf(De),za=!1;if(T.attrName=ue,T.attrValue=Yt,T.keepAttr=!0,T.forceKeepAttr=void 0,Se(at.uponSanitizeAttribute,u,T),Yt=T.attrValue,ba&&(ue==="id"||ue==="name")&&Sl(Yt,_a)!==0&&(In(Mt,u,ot),Yt=_a+Yt,za=!0),ja(Mt,Yt)){In(Mt,u,ot);continue}if(!T.forceKeepAttr){if(!T.keepAttr){In(Mt,u,ot);continue}if(!Rt&&Zt(Ll,Yt)){In(Mt,u,ot);continue}if(At&&(Yt=ci(Yt)),!Va(Q,ue,Yt)){In(Mt,u,ot);continue}Yt=Kd(Q,ue,hn,Yt),Yt!==De&&Xd(u,Mt,hn,Yt)&&za&&wl(e.removed)}}Se(at.afterSanitizeAttributes,u,null),Qn(u,v)},yo=function(u){let v=null;const b=kr(u);for(Se(at.beforeSanitizeShadowDOM,u,null);v=b.nextNode();)if(Se(at.uponSanitizeShadowNode,v,null),Or(v,u),Rr(v,u),pn(v.content)&&yo(v.content),it(v)===Vt.element){const T=D(v);pn(T)&&(Lr(T),yo(T))}At&&Na(u),Se(at.afterSanitizeShadowDOM,u,null)},Lr=function(u){const v=[{node:u,shadow:null}];for(;v.length>0;){const b=v.pop();if(b.shadow){yo(b.shadow);continue}const T=b.node,X=it(T)===Vt.element,Q=R(T);if(Q)for(let ot=Q.length-1;ot>=0;--ot)v.push({node:Q[ot],shadow:null});if(X){const ot=nt?nt(T):null;if(typeof ot=="string"&&Nt(ot)==="template"){const Mt=T.content;pn(Mt)&&v.push({node:Mt,shadow:null})}}if(X){const ot=D(T);pn(ot)&&v.push({node:null,shadow:ot},{node:ot,shadow:null})}}};return e.sanitize=function(u){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=null,T=null,X=null,Q=null;if(br=!u,br&&(u=""),typeof u!="string"&&!go(u)&&(u=Ff(u),typeof u!="string"))throw Ze("dirty is not a string, aborting");if(!e.isSupported)return u;Je?($=Cn,k=Wt):Sr(v),(at.uponSanitizeElement.length>0||at.uponSanitizeAttribute.length>0)&&($=he($)),at.uponSanitizeAttribute.length>0&&(k=he(k)),e.removed=[];const ot=vr&&typeof u!="string"&&go(u);let Mt=[];const hn=$n;if(ot){Gd(u);const De=wt(u);if(typeof De=="string"){const Yt=Nt(De);if(!$[Yt]||F[Yt])throw Tr(u),Ze("root node is forbidden and cannot be sanitized in-place")}if(ui(u))throw Tr(u),Ze("root node is clobbered and cannot be sanitized in-place");Mt=Cr(u),$n=Gr()}else if(go(u))b=Ma(""),T=b.ownerDocument.importNode(u,!0),T.nodeType===Vt.element&&T.nodeName==="BODY"||T.nodeName==="HTML"?b=T:b.appendChild(T),Lr(b);else{if(!Ke&&!At&&!Gt&&u.indexOf("<")===-1)return rt&&si?V(u):u;if(b=Ma(u),!b)return Ke?null:si?_:""}b&&ce&&Rn(b.firstChild);const ye=ot?u:b;try{ot&&Lr(u);const De=kr(ye);for(;X=De.nextNode();)Or(X,ye),Rr(X,ye),pn(X.content)&&yo(X.content);ot&&zd(u,Mt)}catch(De){throw ot&&(Tr(u),Pa(u,Mt)),De}finally{$n=hn}if(ot){if(Pa(u,Mt))throw Ze("a node selected for removal could not be safely returned; refusing to sanitize in place");return At&&$r(u),u}if(Ke){if(At&&$r(b),kn)for(Q=Xt.call(b.ownerDocument);b.firstChild;)Q.appendChild(b.firstChild);else Q=b;return(k.shadowroot||k.shadowrootmode)&&(Q=ge.call(o,Q,!0)),Q}let ue=Gt?b.outerHTML:b.innerHTML;return Gt&&$["!doctype"]&&b.ownerDocument&&b.ownerDocument.doctype&&b.ownerDocument.doctype.name&&Zt(Zf,b.ownerDocument.doctype.name)&&(ue=" +`+ue),At&&(ue=ci(ue)),rt&&si?V(ue):ue},e.setConfig=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Sr(u),Je=!0,Cn=$,Wt=k},e.clearConfig=function(){Zn=null,Je=!1,Cn=null,Wt=null,rt=S,_=""},e.isValidAttribute=function(u,v,b){Zn||Sr({});const T=Nt(u),X=Nt(v);return typeof b=="string"&&(ja(v,b)||!Rt&&Zt(Ll,b))?!1:Va(T,X,b)},e.addHook=function(u,v){typeof v=="function"&&pe(at,u)&&wo(at[u],v)},e.removeHook=function(u,v){if(pe(at,u)){if(v!==void 0){const b=Lf(at[u],v);return b===-1?void 0:Df(at[u],b,1)[0]}return wl(at[u])}},e.removeHooks=function(u){pe(at,u)&&(at[u]=[])},e.removeAllHooks=function(){at=Pl()},e}var Ju=qu();function ca(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Qr,Dl;function om(){if(Dl)return Qr;Dl=1;var t=/["'&<>]/;Qr=e;function e(n){var o=""+n,i=t.exec(o);if(!i)return o;var r,s="",l=0,a=0;for(l=i.index;le)}}globalThis._oc_l10n_registry_translations??={},globalThis._oc_l10n_registry_plural_functions??={};function Tt(t,e,n,o,i){const r=typeof n=="object"?n:void 0,s=typeof o=="number"?o:typeof n=="number"?n:void 0,l={escape:!0,sanitize:!0,...typeof i=="object"?i:typeof o=="object"?o:{}},a=E=>E,d=(l.sanitize?Ju.sanitize:a)||a,c=l.escape?Ml:a,p=E=>typeof E=="string"||typeof E=="number",m=(E,y,R)=>E.replace(/%n/g,""+R).replace(/{([^{}]*)}/g,(L,D)=>{if(y===void 0||!(D in y))return c(L);const B=y[D];return p(B)?c(`${B}`):typeof B=="object"&&p(B.value)?(B.escape!==!1?Ml:a)(`${B.value}`):c(L)});let g=(i?.bundle??Ku(t)).translations[e]||e;return g=Array.isArray(g)?g[0]:g,d(typeof r=="object"||s!==void 0?m(g,r,s):g)}function sm(t,e,n,o,i,r){const s="_"+e+"_::_"+n+"_",l=r?.bundle??Ku(t),a=l.translations[s];if(typeof a<"u"){const d=a;if(Array.isArray(d)){const c=l.pluralFunction(o);return Tt(t,d[c],i,o,r)}}return o===1?Tt(t,e,i,o,r):Tt(t,n,i,o,r)}function am(t,e=fr()){switch(e==="pt-BR"&&(e="xbr"),e.length>3&&(e=e.substring(0,e.lastIndexOf("-"))),e){case"az":case"bo":case"dz":case"id":case"ja":case"jv":case"ka":case"km":case"kn":case"ko":case"ms":case"th":case"tr":case"vi":case"zh":return 0;case"af":case"bn":case"bg":case"ca":case"da":case"de":case"el":case"en":case"eo":case"es":case"et":case"eu":case"fa":case"fi":case"fo":case"fur":case"fy":case"gl":case"gu":case"ha":case"he":case"hu":case"is":case"it":case"ku":case"lb":case"ml":case"mn":case"mr":case"nah":case"nb":case"ne":case"nl":case"nn":case"no":case"oc":case"om":case"or":case"pa":case"pap":case"ps":case"pt":case"so":case"sq":case"sv":case"sw":case"ta":case"te":case"tk":case"ur":case"zu":return t===1?0:1;case"am":case"bh":case"fil":case"fr":case"gun":case"hi":case"hy":case"ln":case"mg":case"nso":case"xbr":case"ti":case"wa":return t===0||t===1?0:1;case"be":case"bs":case"hr":case"ru":case"sh":case"sr":case"uk":return t%10===1&&t%100!==11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2;case"cs":case"sk":return t===1?0:t>=2&&t<=4?1:2;case"ga":return t===1?0:t===2?1:2;case"lt":return t%10===1&&t%100!==11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2;case"sl":return t%100===1?0:t%100===2?1:t%100===3||t%100===4?2:3;case"mk":return t%10===1?0:1;case"mt":return t===1?0:t===0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3;case"lv":return t===0?0:t%10===1&&t%100!==11?1:2;case"pl":return t===1?0:t%10>=2&&t%10<=4&&(t%100<12||t%100>14)?1:2;case"cy":return t===1?0:t===2?1:t===8||t===11?2:3;case"ro":return t===1?0:t===0||t%100>0&&t%100<20?1:2;case"ar":return t===0?0:t===1?1:t===2?2:t%100>=3&&t%100<=10?3:t%100>=11&&t%100<=99?4:5;default:return 0}}const Ht=(t,e)=>{const n=t.__vccOpts||t;for(const[o,i]of e)n[o]=i;return n};class lm{bundle;constructor(e){this.bundle={pluralFunction:e,translations:{}}}addTranslations(e){const n=Object.values(e.translations[""]??{}).map(({msgid:o,msgid_plural:i,msgstr:r})=>i!==void 0?[`_${o}_::_${i}_`,r]:[o,r[0]]);this.bundle.translations={...this.bundle.translations,...Object.fromEntries(n)}}gettext(e,n={}){return Tt("",e,n,void 0,{bundle:this.bundle})}ngettext(e,n,o,i={}){return sm("",e,n,o,i,{bundle:this.bundle})}}class cm{debug=!1;language="en";translations={};setLanguage(e){return this.language=e,this}detectLocale(){return this.detectLanguage()}detectLanguage(){return this.setLanguage(fr().replace("-","_"))}addTranslation(e,n){return this.translations[e]=n,this}enableDebugMode(){return this.debug=!0,this}build(){this.debug&&console.debug(`Creating gettext instance for language ${this.language}`);const e=new lm(n=>am(n,this.language));return this.language in this.translations&&e.addTranslations(this.translations[this.language]),e}}function um(){return new cm}const ua=um().detectLanguage().build(),dm=(...t)=>ua.ngettext(...t),da=(...t)=>ua.gettext(...t);function pa(...t){for(const e of t)if(!e.registered){for(const{l:n,t:o}of e){if(n!==fr()||!o)continue;const i=Object.fromEntries(Object.entries(o).map(([r,s])=>[r,{msgid:r,msgid_plural:s.p,msgstr:s.v}]));ua.addTranslations({translations:{"":i}})}e.registered=!0}}const pm=[{l:"ar",t:{Actions:{v:["إجراءات"]}}},{l:"ast",t:{Actions:{v:["Aiciones"]}}},{l:"br",t:{Actions:{v:["Oberioù"]}}},{l:"ca",t:{Actions:{v:["Accions"]}}},{l:"cs",t:{Actions:{v:["Akce"]}}},{l:"cs-CZ",t:{Actions:{v:["Akce"]}}},{l:"da",t:{Actions:{v:["Handlinger"]}}},{l:"de",t:{Actions:{v:["Aktionen"]}}},{l:"de-DE",t:{Actions:{v:["Aktionen"]}}},{l:"el",t:{Actions:{v:["Ενέργειες"]}}},{l:"en-GB",t:{Actions:{v:["Actions"]}}},{l:"eo",t:{Actions:{v:["Agoj"]}}},{l:"es",t:{Actions:{v:["Acciones"]}}},{l:"es-AR",t:{Actions:{v:["Acciones"]}}},{l:"es-EC",t:{Actions:{v:["Acciones"]}}},{l:"es-MX",t:{Actions:{v:["Acciones"]}}},{l:"et-EE",t:{Actions:{v:["Tegevus"]}}},{l:"eu",t:{Actions:{v:["Ekintzak"]}}},{l:"fa",t:{Actions:{v:["کنش‌ها"]}}},{l:"fi",t:{Actions:{v:["Toiminnot"]}}},{l:"fr",t:{Actions:{v:["Actions"]}}},{l:"ga",t:{Actions:{v:["Gníomhartha"]}}},{l:"gl",t:{Actions:{v:["Accións"]}}},{l:"he",t:{Actions:{v:["פעולות"]}}},{l:"hr",t:{Actions:{v:["Radnje"]}}},{l:"hu",t:{Actions:{v:["Műveletek"]}}},{l:"id",t:{Actions:{v:["Tindakan"]}}},{l:"is",t:{Actions:{v:["Aðgerðir"]}}},{l:"it",t:{Actions:{v:["Azioni"]}}},{l:"ja",t:{Actions:{v:["操作"]}}},{l:"ja-JP",t:{Actions:{v:["操作"]}}},{l:"ko",t:{Actions:{v:["동작"]}}},{l:"lo",t:{Actions:{v:["ການກະທຳ"]}}},{l:"lt-LT",t:{Actions:{v:["Veiksmai"]}}},{l:"lv",t:{}},{l:"mk",t:{Actions:{v:["Акции"]}}},{l:"mn",t:{Actions:{v:["Үйлдлүүд"]}}},{l:"my",t:{Actions:{v:["လုပ်ဆောင်ချက်များ"]}}},{l:"nb",t:{Actions:{v:["Handlinger"]}}},{l:"nl",t:{Actions:{v:["Acties"]}}},{l:"oc",t:{Actions:{v:["Accions"]}}},{l:"pl",t:{Actions:{v:["Działania"]}}},{l:"pt-BR",t:{Actions:{v:["Ações"]}}},{l:"pt-PT",t:{Actions:{v:["Ações"]}}},{l:"ro",t:{Actions:{v:["Acțiuni"]}}},{l:"ru",t:{Actions:{v:["Действия "]}}},{l:"sk",t:{Actions:{v:["Akcie"]}}},{l:"sl",t:{Actions:{v:["Dejanja"]}}},{l:"sr",t:{Actions:{v:["Радње"]}}},{l:"sv",t:{Actions:{v:["Åtgärder"]}}},{l:"tr",t:{Actions:{v:["İşlemler"]}}},{l:"uk",t:{Actions:{v:["Дії"]}}},{l:"uz",t:{Actions:{v:["Harakatlar"]}}},{l:"zh-CN",t:{Actions:{v:["行为"]}}},{l:"zh-HK",t:{Actions:{v:["動作"]}}},{l:"zh-TW",t:{Actions:{v:["動作"]}}}],hm=[{l:"ar",t:{}},{l:"ast",t:{}},{l:"br",t:{}},{l:"ca",t:{}},{l:"cs",t:{"External documentation":{v:["Externí dokumentace"]}}},{l:"cs-CZ",t:{}},{l:"da",t:{"External documentation":{v:["Ekstern dokumentation"]}}},{l:"de",t:{"External documentation":{v:["Externe Dokumentation"]}}},{l:"de-DE",t:{"External documentation":{v:["Externe Dokumentation"]}}},{l:"el",t:{"External documentation":{v:["Εξωτερική τεκμηρίωση"]}}},{l:"en-GB",t:{"External documentation":{v:["External documentation"]}}},{l:"eo",t:{}},{l:"es",t:{}},{l:"es-AR",t:{}},{l:"es-EC",t:{}},{l:"es-MX",t:{}},{l:"et-EE",t:{"External documentation":{v:["Dokumentatsioon välises allikas"]}}},{l:"eu",t:{}},{l:"fa",t:{}},{l:"fi",t:{}},{l:"fr",t:{"External documentation":{v:["Documentation externe"]}}},{l:"ga",t:{"External documentation":{v:["Doiciméadú seachtrach"]}}},{l:"gl",t:{"External documentation":{v:["Documentación externa"]}}},{l:"he",t:{}},{l:"hr",t:{"External documentation":{v:["Vanjska dokumentacija"]}}},{l:"hu",t:{"External documentation":{v:["Külső dokumentáció"]}}},{l:"id",t:{"External documentation":{v:["Dokumentasi eksternal"]}}},{l:"is",t:{}},{l:"it",t:{}},{l:"ja",t:{"External documentation":{v:["外部ドキュメント"]}}},{l:"ja-JP",t:{}},{l:"ko",t:{"External documentation":{v:["외부 문서"]}}},{l:"lo",t:{"External documentation":{v:["ເອກະສານພາຍນອກ"]}}},{l:"lt-LT",t:{"External documentation":{v:["Išorinė dokumentacija"]}}},{l:"lv",t:{}},{l:"mk",t:{"External documentation":{v:["Надворешна документација"]}}},{l:"mn",t:{"External documentation":{v:["Гадаад баримт бичиг"]}}},{l:"my",t:{}},{l:"nb",t:{}},{l:"nl",t:{"External documentation":{v:["Externe documentatie"]}}},{l:"oc",t:{}},{l:"pl",t:{}},{l:"pt-BR",t:{"External documentation":{v:["Documentação externa"]}}},{l:"pt-PT",t:{}},{l:"ro",t:{}},{l:"ru",t:{"External documentation":{v:["Внешняя документация"]}}},{l:"sk",t:{}},{l:"sl",t:{}},{l:"sr",t:{"External documentation":{v:["Спољна документација"]}}},{l:"sv",t:{"External documentation":{v:["Extern dokumentation"]}}},{l:"tr",t:{"External documentation":{v:["Dış belgeler"]}}},{l:"uk",t:{"External documentation":{v:["Зовнішня документація"]}}},{l:"uz",t:{"External documentation":{v:["Tashqi hujjatlar"]}}},{l:"zh-CN",t:{}},{l:"zh-HK",t:{"External documentation":{v:["外部文件"]}}},{l:"zh-TW",t:{"External documentation":{v:["外部文件"]}}}],fm={name:"HelpCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},mm=["aria-hidden","aria-label"],gm=["fill","width","height"],ym={d:"M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z"},vm={key:0};function bm(t,e,n,o,i,r){return M(),G("span",Kt(t.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon help-circle-icon",role:"img",onClick:e[0]||(e[0]=s=>t.$emit("click",s))}),[(M(),G("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[et("path",ym,[n.title?(M(),G("title",vm,ft(n.title),1)):vt("",!0)])],8,gm))],16,mm)}const _m=Ht(fm,[["render",bm]]);pa(hm);const wm={class:"settings-section"},Em={class:"settings-section__name"},Sm=["aria-label","href","title"],Tm={key:0,class:"settings-section__desc"},Am=le({__name:"NcSettingsSection",props:{name:{},description:{default:""},docUrl:{default:""}},setup(t){const e=da("External documentation");return(n,o)=>(M(),G("div",wm,[et("h2",Em,[Ae(ft(t.name)+" ",1),t.docUrl?(M(),G("a",{key:0,"aria-label":K(e),class:"settings-section__info",href:t.docUrl,rel:"noreferrer nofollow",target:"_blank",title:K(e)},[ct(_m,{size:20})],8,Sm)):vt("",!0)]),t.description?(M(),G("p",Tm,ft(t.description),1)):vt("",!0),zt(n.$slots,"default",{},void 0,!0)]))}}),xm=Ht(Am,[["__scopeId","data-v-9cedb949"]]);var Cm="M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z",Nl="M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z",km="M23,12L20.56,9.22L20.9,5.54L17.29,4.72L15.4,1.54L12,3L8.6,1.54L6.71,4.72L3.1,5.53L3.44,9.21L1,12L3.44,14.78L3.1,18.47L6.71,19.29L8.6,22.47L12,21L15.4,22.46L17.29,19.28L20.9,18.46L20.56,14.78L23,12M13,17H11V15H13V17M13,13H11V7H13V13Z",Ls="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",$m="M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",Om="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",Rm="M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z";const Lm=["aria-hidden","aria-label"],Pm={key:0,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Dm=["d"],Mm=["innerHTML"],Nm=le({__name:"NcIconSvgWrapper",props:{directional:{type:Boolean},inline:{type:Boolean},svg:{default:""},name:{default:void 0},path:{default:""},size:{default:20}},setup(t){la(i=>({fb515064:n.value}));const e=t,n=yt(()=>typeof e.size=="number"?`${e.size}px`:e.size),o=yt(()=>{if(!e.svg||e.path)return;const i=Ju.sanitize(e.svg),r=new DOMParser().parseFromString(i,"image/svg+xml");return r.querySelector("parsererror")?"":(r.documentElement.id&&r.documentElement.removeAttribute("id"),r.documentElement.outerHTML)});return(i,r)=>(M(),G("span",{"aria-hidden":t.name?void 0:"true","aria-label":t.name||void 0,class:xt(["icon-vue",{"icon-vue--directional":t.directional,"icon-vue--inline":t.inline}]),role:"img"},[o.value?(M(),G("span",{key:1,innerHTML:o.value},null,8,Mm)):(M(),G("svg",Pm,[et("path",{d:t.path},null,8,Dm)]))],10,Lm))}}),zn=Ht(Nm,[["__scopeId","data-v-aaedb1c3"]]),Xu=Symbol.for("NcActions:isSemanticMenu"),Yu=Symbol.for("NcActions:closeMenu"),Bm={beforeUpdate(){this.text=this.getText()},data(){return{text:this.getText()}},computed:{isLongText(){return this.text&&this.text.trim().length>20}},methods:{getText(){return this.$slots.default?.()[0].children?.trim?.()||""}}},Vm={mixins:[Bm],props:{icon:{type:String,default:""},name:{type:String,default:""},title:{type:String,default:""},closeAfterClick:{type:Boolean,default:!1},ariaLabel:{type:String,default:null}},inject:{closeMenu:{from:Yu}},emits:["click"],created(){"ariaHidden"in this.$attrs},computed:{isIconUrl(){try{return!!new URL(this.icon,this.icon.startsWith("/")?window.location.origin:void 0)}catch{return!1}}},methods:{onClick(t){this.$emit("click",t),this.closeAfterClick&&this.closeMenu(!1)}}},Fm={name:"NcActionButton",components:{NcIconSvgWrapper:zn},mixins:[Vm],inject:{isInSemanticMenu:{from:Xu,default:!1}},props:{disabled:{type:Boolean,default:!1},isMenu:{type:Boolean,default:!1},type:{type:String,default:"button",validator:t=>["button","checkbox","radio","reset","submit"].includes(t)},modelValue:{type:[Boolean,String],default:null},value:{type:String,default:null},description:{type:String,default:""}},emits:["update:modelValue"],setup(){return{mdiCheck:Ls,mdiChevronRight:Om}},computed:{isFocusable(){return!this.disabled},isChecked(){return this.type==="radio"&&typeof this.modelValue!="boolean"?this.modelValue===this.value:this.modelValue},nativeType(){return this.type==="submit"||this.type==="reset"?this.type:"button"},buttonAttributes(){const t={};return this.isInSemanticMenu?(t.role="menuitem",this.type==="radio"?(t.role="menuitemradio",t["aria-checked"]=this.isChecked?"true":"false"):(this.type==="checkbox"||this.nativeType==="button"&&this.modelValue!==null)&&(t.role="menuitemcheckbox",t["aria-checked"]=this.modelValue===null?"mixed":this.modelValue?"true":"false")):this.modelValue!==null&&this.nativeType==="button"&&(t["aria-pressed"]=this.modelValue?"true":"false"),t}},methods:{handleClick(t){this.onClick(t),(this.modelValue!==null||this.type!=="button")&&(this.type==="radio"?typeof this.modelValue!="boolean"?this.isChecked||this.$emit("update:modelValue",this.value):this.$emit("update:modelValue",!this.isChecked):this.$emit("update:modelValue",!this.isChecked))}}},jm=["role"],zm=["aria-label","disabled","title","type"],Hm={class:"action-button__longtext-wrapper"},Um={key:0,class:"action-button__name"},Gm=["textContent"],Wm={key:2,class:"action-button__text"},qm=["textContent"],Jm={key:2,class:"action-button__pressed-icon material-design-icon"};function Km(t,e,n,o,i,r){const s=ln("NcIconSvgWrapper");return M(),G("li",{class:xt(["action",{"action--disabled":n.disabled}]),role:r.isInSemanticMenu&&"presentation"},[et("button",Kt({"aria-label":t.ariaLabel,class:["action-button button-vue",{"action-button--active":r.isChecked,focusable:r.isFocusable}],disabled:n.disabled,title:t.title,type:r.nativeType},r.buttonAttributes,{onClick:e[0]||(e[0]=(...l)=>r.handleClick&&r.handleClick(...l))}),[zt(t.$slots,"icon",{},()=>[et("span",{class:xt([[t.isIconUrl?"action-button__icon--url":t.icon],"action-button__icon"]),style:_n({backgroundImage:t.isIconUrl?`url(${t.icon})`:null}),"aria-hidden":"true"},null,6)],!0),et("span",Hm,[t.name?(M(),G("strong",Um,ft(t.name),1)):vt("",!0),t.isLongText?(M(),G("span",{key:1,class:"action-button__longtext",textContent:ft(t.text)},null,8,Gm)):(M(),G("span",Wm,ft(t.text),1)),n.description?(M(),G("span",{key:3,class:"action-button__description",textContent:ft(n.description)},null,8,qm)):vt("",!0)]),n.isMenu?(M(),Ot(s,{key:0,class:"action-button__menu-icon",directional:"",path:o.mdiChevronRight},null,8,["path"])):r.isChecked?(M(),Ot(s,{key:1,path:o.mdiCheck,class:"action-button__pressed-icon"},null,8,["path"])):r.isChecked===!1?(M(),G("span",Jm)):vt("",!0),vt("",!0)],16,zm)],10,jm)}const Xm=Ht(Fm,[["render",Km],["__scopeId","data-v-6c2daf4e"]]);function Ps(){return window._nc_focus_trap??=[],window._nc_focus_trap}function Ym(){let t=[];return{pause(){t=[...Ps()];for(const e of t)e.pause()},unpause(){if(t.length===Ps().length)for(const e of t)e.unpause();t=[]}}}function Zm(t,e={}){const n=Ym();so(t,()=>{Xa(e.disabled)||(Xa(t)?n.pause():n.unpause())}),dr(()=>{n.unpause()})}window._nc_vue_element_id=window._nc_vue_element_id??0;function No(){return`nc-vue-${window._nc_vue_element_id++}`}const Im=Symbol(""),[Qm]=window.OC?.config?.version?.split(".")??[],Zu=Number.parseInt(Qm??"34"),Hi=Zu<32,tg=Zu<34,eg=Symbol.for("NcFormBox:context");function ng(){return En(eg,{isInFormBox:!1,formBoxItemClass:void 0})}const og={class:"button-vue__wrapper"},ig={class:"button-vue__icon"},rg={class:"button-vue__text"},sg=le({__name:"NcButton",props:{alignment:{default:"center"},ariaLabel:{default:void 0},disabled:{type:Boolean},download:{type:[String,Boolean],default:void 0},href:{default:void 0},pressed:{type:Boolean,default:void 0},size:{default:"normal"},target:{default:"_self"},text:{default:void 0},to:{default:void 0},type:{default:"button"},variant:{default:"secondary"},wide:{type:Boolean}},emits:["click","update:pressed"],setup(t,{emit:e}){const n=t,o=e,{formBoxItemClass:i}=ng(),r=En(Im,null)!==null,s=yt(()=>r&&n.to?"RouterLink":n.href?"a":"button"),l=yt(()=>s.value==="button"&&typeof n.pressed=="boolean"),a=yt(()=>n.pressed?"primary":n.pressed===!1&&n.variant==="primary"?"secondary":n.variant),d=yt(()=>a.value.startsWith("tertiary")),c=yt(()=>n.alignment.split("-")[0]),p=yt(()=>n.alignment.includes("-")),m=En("NcPopover:trigger:attrs",()=>({}),!1),g=yt(()=>m()),E=yt(()=>{if(s.value==="RouterLink")return{to:n.to,activeClass:"active"};if(s.value==="a")return{href:n.href||"#",target:n.target,rel:"nofollow noreferrer noopener",download:n.download||void 0};if(s.value==="button")return{...g.value,"aria-pressed":n.pressed,type:n.type,disabled:n.disabled}});function y(R){l.value&&o("update:pressed",!n.pressed),o("click",R)}return(R,L)=>(M(),Ot(ia(s.value),Kt({class:["button-vue",[`button-vue--size-${t.size}`,{[`button-vue--${a.value}`]:a.value,"button-vue--tertiary":d.value,"button-vue--wide":t.wide,[`button-vue--${c.value}`]:c.value!=="center","button-vue--reverse":p.value,"button-vue--legacy":K(Hi),"button-vue--legacy34":K(tg)},K(i)]],"aria-label":t.ariaLabel},E.value,{onClick:y}),{default:Lt(()=>[et("span",og,[et("span",ig,[zt(R.$slots,"icon",{},void 0,!0)]),et("span",rg,[zt(R.$slots,"default",{},()=>[Ae(ft(t.text),1)],!0)])])]),_:3},16,["class","aria-label"]))}}),Bo=Ht(sg,[["__scopeId","data-v-18f6cf03"]]),ag=["top","right","bottom","left"],Bl=["start","end"],Vl=ag.reduce((t,e)=>t.concat(e,e+"-"+Bl[0],e+"-"+Bl[1]),[]),Yo=Math.min,Bn=Math.max,lg={left:"right",right:"left",bottom:"top",top:"bottom"};function Ds(t,e,n){return Bn(t,Yo(e,n))}function qn(t,e){return typeof t=="function"?t(e):t}function qe(t){return t.split("-")[0]}function $e(t){return t.split("-")[1]}function Iu(t){return t==="x"?"y":"x"}function ha(t){return t==="y"?"height":"width"}function rn(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function fa(t){return Iu(rn(t))}function Qu(t,e,n){n===void 0&&(n=!1);const o=$e(t),i=fa(t),r=ha(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=Gi(s)),[s,Gi(s)]}function cg(t){const e=Gi(t);return[Ui(t),e,Ui(e)]}function Ui(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Fl=["left","right"],jl=["right","left"],ug=["top","bottom"],dg=["bottom","top"];function pg(t,e,n){switch(t){case"top":case"bottom":return n?e?jl:Fl:e?Fl:jl;case"left":case"right":return e?ug:dg;default:return[]}}function hg(t,e,n,o){const i=$e(t);let r=pg(qe(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(Ui)))),r}function Gi(t){const e=qe(t);return lg[e]+t.slice(e.length)}function fg(t){return{top:0,right:0,bottom:0,left:0,...t}}function td(t){return typeof t!="number"?fg(t):{top:t,right:t,bottom:t,left:t}}function Vo(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function zl(t,e,n){let{reference:o,floating:i}=t;const r=rn(e),s=fa(e),l=ha(s),a=qe(e),d=r==="y",c=o.x+o.width/2-i.width/2,p=o.y+o.height/2-i.height/2,m=o[l]/2-i[l]/2;let g;switch(a){case"top":g={x:c,y:o.y-i.height};break;case"bottom":g={x:c,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:p};break;case"left":g={x:o.x-i.width,y:p};break;default:g={x:o.x,y:o.y}}switch($e(e)){case"start":g[s]-=m*(n&&d?-1:1);break;case"end":g[s]+=m*(n&&d?-1:1);break}return g}async function mg(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:r,rects:s,elements:l,strategy:a}=t,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=qn(e,t),E=td(g),y=l[m?p==="floating"?"reference":"floating":p],R=Vo(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(y)))==null||n?y:y.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:d,rootBoundary:c,strategy:a})),L=p==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,D=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),B=await(r.isElement==null?void 0:r.isElement(D))?await(r.getScale==null?void 0:r.getScale(D))||{x:1,y:1}:{x:1,y:1},P=Vo(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:L,offsetParent:D,strategy:a}):L);return{top:(R.top-P.top+E.top)/B.y,bottom:(P.bottom-R.bottom+E.bottom)/B.y,left:(R.left-P.left+E.left)/B.x,right:(P.right-R.right+E.right)/B.x}}const gg=50,yg=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,l=s.detectOverflow?s:{...s,detectOverflow:mg},a=await(s.isRTL==null?void 0:s.isRTL(e));let d=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:c,y:p}=zl(d,o,a),m=o,g=0;const E={};for(let y=0;y({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:s,elements:l,middlewareData:a}=e,{element:d,padding:c=0}=qn(t,e)||{};if(d==null)return{};const p=td(c),m={x:n,y:o},g=fa(i),E=ha(g),y=await s.getDimensions(d),R=g==="y",L=R?"top":"left",D=R?"bottom":"right",B=R?"clientHeight":"clientWidth",P=r.reference[E]+r.reference[g]-m[g]-r.floating[E],nt=m[g]-r.reference[g],st=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let it=st?st[B]:0;(!it||!await(s.isElement==null?void 0:s.isElement(st)))&&(it=l.floating[B]||r.floating[E]);const wt=P/2-nt/2,mt=it/2-y[E]/2-1,ut=Yo(p[L],mt),rt=Yo(p[D],mt),_=ut,S=it-y[E]-rt,z=it/2-y[E]/2+wt,W=Ds(_,z,S),j=!a.arrow&&$e(i)!=null&&z!==W&&r.reference[E]/2-(z<_?ut:rt)-y[E]/2<0,V=j?z<_?z-_:z-S:0;return{[g]:m[g]+V,data:{[g]:W,centerOffset:z-W-V,...j&&{alignmentOffset:V}},reset:j}}});function bg(t,e,n){return(t?[...n.filter(o=>$e(o)===t),...n.filter(o=>$e(o)!==t)]:n.filter(o=>qe(o)===o)).filter(o=>t?$e(o)===t||(e?Ui(o)!==o:!1):!0)}const _g=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,o,i;const{rects:r,middlewareData:s,placement:l,platform:a,elements:d}=e,{crossAxis:c=!1,alignment:p,allowedPlacements:m=Vl,autoAlignment:g=!0,...E}=qn(t,e),y=p!==void 0||m===Vl?bg(p||null,g,m):m,R=await a.detectOverflow(e,E),L=((n=s.autoPlacement)==null?void 0:n.index)||0,D=y[L];if(D==null)return{};const B=Qu(D,r,await(a.isRTL==null?void 0:a.isRTL(d.floating)));if(l!==D)return{reset:{placement:y[0]}};const P=[R[qe(D)],R[B[0]],R[B[1]]],nt=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:D,overflows:P}],st=y[L+1];if(st)return{data:{index:L+1,overflows:nt},reset:{placement:st}};const it=nt.map(mt=>{const ut=$e(mt.placement);return[mt.placement,ut&&c?mt.overflows.slice(0,2).reduce((rt,_)=>rt+_,0):mt.overflows[0],mt.overflows]}).sort((mt,ut)=>mt[1]-ut[1]),wt=((i=it.filter(mt=>mt[2].slice(0,$e(mt[0])?2:3).every(ut=>ut<=0))[0])==null?void 0:i[0])||it[0][0];return wt!==l?{data:{index:L+1,overflows:nt},reset:{placement:wt}}:{}}}},wg=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:l,platform:a,elements:d}=e,{mainAxis:c=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:y=!0,...R}=qn(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const L=qe(i),D=rn(l),B=qe(l)===l,P=await(a.isRTL==null?void 0:a.isRTL(d.floating)),nt=m||(B||!y?[Gi(l)]:cg(l)),st=E!=="none";!m&&st&&nt.push(...hg(l,y,E,P));const it=[l,...nt],wt=await a.detectOverflow(e,R),mt=[];let ut=((o=r.flip)==null?void 0:o.overflows)||[];if(c&&mt.push(wt[L]),p){const z=Qu(i,s,P);mt.push(wt[z[0]],wt[z[1]])}if(ut=[...ut,{placement:i,overflows:mt}],!mt.every(z=>z<=0)){var rt,_;const z=(((rt=r.flip)==null?void 0:rt.index)||0)+1,W=it[z];if(W&&(!(p==="alignment"&&D!==rn(W))||ut.every(V=>rn(V.placement)===D?V.overflows[0]>0:!0)))return{data:{index:z,overflows:ut},reset:{placement:W}};let j=(_=ut.filter(V=>V.overflows[0]<=0).sort((V,U)=>V.overflows[1]-U.overflows[1])[0])==null?void 0:_.placement;if(!j)switch(g){case"bestFit":{var S;const V=(S=ut.filter(U=>{if(st){const Z=rn(U.placement);return Z===D||Z==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(Z=>Z>0).reduce((Z,Y)=>Z+Y,0)]).sort((U,Z)=>U[1]-Z[1])[0])==null?void 0:S[0];V&&(j=V);break}case"initialPlacement":j=l;break}if(i!==j)return{reset:{placement:j}}}return{}}}},Eg=new Set(["left","top"]);async function Sg(t,e){const{placement:n,platform:o,elements:i}=t,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=qe(n),l=$e(n),a=rn(n)==="y",d=Eg.has(s)?-1:1,c=r&&a?-1:1,p=qn(e,t);let{mainAxis:m,crossAxis:g,alignmentAxis:E}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof E=="number"&&(g=l==="end"?E*-1:E),a?{x:g*c,y:m*d}:{x:m*d,y:g*c}}const Tg=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:s,middlewareData:l}=e,a=await Sg(e,t);return s===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:i+a.x,y:r+a.y,data:{...a,placement:s}}}}},Ag=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i,platform:r}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:a={fn:L=>{let{x:D,y:B}=L;return{x:D,y:B}}},...d}=qn(t,e),c={x:n,y:o},p=await r.detectOverflow(e,d),m=rn(qe(i)),g=Iu(m);let E=c[g],y=c[m];if(s){const L=g==="y"?"top":"left",D=g==="y"?"bottom":"right",B=E+p[L],P=E-p[D];E=Ds(B,E,P)}if(l){const L=m==="y"?"top":"left",D=m==="y"?"bottom":"right",B=y+p[L],P=y-p[D];y=Ds(B,y,P)}const R=a.fn({...e,[g]:E,[m]:y});return{...R,data:{x:R.x-n,y:R.y-o,enabled:{[g]:s,[m]:l}}}}}},xg=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:r,platform:s,elements:l}=e,{apply:a=()=>{},...d}=qn(t,e),c=await s.detectOverflow(e,d),p=qe(i),m=$e(i),g=rn(i)==="y",{width:E,height:y}=r.floating;let R,L;p==="top"||p==="bottom"?(R=p,L=m===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(L=p,R=m==="end"?"top":"bottom");const D=y-c.top-c.bottom,B=E-c.left-c.right,P=Yo(y-c[R],D),nt=Yo(E-c[L],B),st=!e.middlewareData.shift;let it=P,wt=nt;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(wt=B),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(it=D),st&&!m){const ut=Bn(c.left,0),rt=Bn(c.right,0),_=Bn(c.top,0),S=Bn(c.bottom,0);g?wt=E-2*(ut!==0||rt!==0?ut+rt:Bn(c.left,c.right)):it=y-2*(_!==0||S!==0?_+S:Bn(c.top,c.bottom))}await a({...e,availableWidth:wt,availableHeight:it});const mt=await s.getDimensions(l.floating);return E!==mt.width||y!==mt.height?{reset:{rects:!0}}:{}}}};function _e(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ze(t){return _e(t).getComputedStyle(t)}const Hl=Math.min,Fo=Math.max,Wi=Math.round;function ed(t){const e=ze(t);let n=parseFloat(e.width),o=parseFloat(e.height);const i=t.offsetWidth,r=t.offsetHeight,s=Wi(n)!==i||Wi(o)!==r;return s&&(n=i,o=r),{width:n,height:o,fallback:s}}function xn(t){return od(t)?(t.nodeName||"").toLowerCase():""}let yi;function nd(){if(yi)return yi;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(yi=t.brands.map((e=>e.brand+"/"+e.version)).join(" "),yi):navigator.userAgent}function He(t){return t instanceof _e(t).HTMLElement}function Sn(t){return t instanceof _e(t).Element}function od(t){return t instanceof _e(t).Node}function Ul(t){return typeof ShadowRoot>"u"?!1:t instanceof _e(t).ShadowRoot||t instanceof ShadowRoot}function mr(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=ze(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Cg(t){return["table","td","th"].includes(xn(t))}function Ms(t){const e=/firefox/i.test(nd()),n=ze(t),o=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!o&&o!=="none"||e&&n.willChange==="filter"||e&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some((i=>n.willChange.includes(i)))||["paint","layout","strict","content"].some((i=>{const r=n.contain;return r!=null&&r.includes(i)}))}function id(){return!/^((?!chrome|android).)*safari/i.test(nd())}function ma(t){return["html","body","#document"].includes(xn(t))}function rd(t){return Sn(t)?t:t.contextElement}const sd={x:1,y:1};function uo(t){const e=rd(t);if(!He(e))return sd;const n=e.getBoundingClientRect(),{width:o,height:i,fallback:r}=ed(e);let s=(r?Wi(n.width):n.width)/o,l=(r?Wi(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}function Zo(t,e,n,o){var i,r;e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),l=rd(t);let a=sd;e&&(o?Sn(o)&&(a=uo(o)):a=uo(t));const d=l?_e(l):window,c=!id()&&n;let p=(s.left+(c&&((i=d.visualViewport)==null?void 0:i.offsetLeft)||0))/a.x,m=(s.top+(c&&((r=d.visualViewport)==null?void 0:r.offsetTop)||0))/a.y,g=s.width/a.x,E=s.height/a.y;if(l){const y=_e(l),R=o&&Sn(o)?_e(o):o;let L=y.frameElement;for(;L&&o&&R!==y;){const D=uo(L),B=L.getBoundingClientRect(),P=getComputedStyle(L);B.x+=(L.clientLeft+parseFloat(P.paddingLeft))*D.x,B.y+=(L.clientTop+parseFloat(P.paddingTop))*D.y,p*=D.x,m*=D.y,g*=D.x,E*=D.y,p+=B.x,m+=B.y,L=_e(L).frameElement}}return{width:g,height:E,top:m,right:p+g,bottom:m+E,left:p,x:p,y:m}}function Tn(t){return((od(t)?t.ownerDocument:t.document)||window.document).documentElement}function gr(t){return Sn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ad(t){return Zo(Tn(t)).left+gr(t).scrollLeft}function Io(t){if(xn(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ul(t)&&t.host||Tn(t);return Ul(e)?e.host:e}function ld(t){const e=Io(t);return ma(e)?e.ownerDocument.body:He(e)&&mr(e)?e:ld(e)}function qi(t,e){var n;e===void 0&&(e=[]);const o=ld(t),i=o===((n=t.ownerDocument)==null?void 0:n.body),r=_e(o);return i?e.concat(r,r.visualViewport||[],mr(o)?o:[]):e.concat(o,qi(o))}function Gl(t,e,n){return e==="viewport"?Vo((function(o,i){const r=_e(o),s=Tn(o),l=r.visualViewport;let a=s.clientWidth,d=s.clientHeight,c=0,p=0;if(l){a=l.width,d=l.height;const m=id();(m||!m&&i==="fixed")&&(c=l.offsetLeft,p=l.offsetTop)}return{width:a,height:d,x:c,y:p}})(t,n)):Sn(e)?Vo((function(o,i){const r=Zo(o,!0,i==="fixed"),s=r.top+o.clientTop,l=r.left+o.clientLeft,a=He(o)?uo(o):{x:1,y:1};return{width:o.clientWidth*a.x,height:o.clientHeight*a.y,x:l*a.x,y:s*a.y}})(e,n)):Vo((function(o){const i=Tn(o),r=gr(o),s=o.ownerDocument.body,l=Fo(i.scrollWidth,i.clientWidth,s.scrollWidth,s.clientWidth),a=Fo(i.scrollHeight,i.clientHeight,s.scrollHeight,s.clientHeight);let d=-r.scrollLeft+ad(o);const c=-r.scrollTop;return ze(s).direction==="rtl"&&(d+=Fo(i.clientWidth,s.clientWidth)-l),{width:l,height:a,x:d,y:c}})(Tn(t)))}function Wl(t){return He(t)&&ze(t).position!=="fixed"?t.offsetParent:null}function ql(t){const e=_e(t);let n=Wl(t);for(;n&&Cg(n)&&ze(n).position==="static";)n=Wl(n);return n&&(xn(n)==="html"||xn(n)==="body"&&ze(n).position==="static"&&!Ms(n))?e:n||(function(o){let i=Io(o);for(;He(i)&&!ma(i);){if(Ms(i))return i;i=Io(i)}return null})(t)||e}function kg(t,e,n){const o=He(e),i=Tn(e),r=Zo(t,!0,n==="fixed",e);let s={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(o||!o&&n!=="fixed")if((xn(e)!=="body"||mr(i))&&(s=gr(e)),He(e)){const a=Zo(e,!0);l.x=a.x+e.clientLeft,l.y=a.y+e.clientTop}else i&&(l.x=ad(i));return{x:r.left+s.scrollLeft-l.x,y:r.top+s.scrollTop-l.y,width:r.width,height:r.height}}const $g={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=n==="clippingAncestors"?(function(d,c){const p=c.get(d);if(p)return p;let m=qi(d).filter((R=>Sn(R)&&xn(R)!=="body")),g=null;const E=ze(d).position==="fixed";let y=E?Io(d):d;for(;Sn(y)&&!ma(y);){const R=ze(y),L=Ms(y);(E?L||g:L||R.position!=="static"||!g||!["absolute","fixed"].includes(g.position))?g=R:m=m.filter((D=>D!==y)),y=Io(y)}return c.set(d,m),m})(e,this._c):[].concat(n),s=[...r,o],l=s[0],a=s.reduce(((d,c)=>{const p=Gl(e,c,i);return d.top=Fo(p.top,d.top),d.right=Hl(p.right,d.right),d.bottom=Hl(p.bottom,d.bottom),d.left=Fo(p.left,d.left),d}),Gl(e,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=He(n),r=Tn(n);if(n===r)return e;let s={scrollLeft:0,scrollTop:0},l={x:1,y:1};const a={x:0,y:0};if((i||!i&&o!=="fixed")&&((xn(n)!=="body"||mr(r))&&(s=gr(n)),He(n))){const d=Zo(n);l=uo(n),a.x=d.x+n.clientLeft,a.y=d.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+a.x,y:e.y*l.y-s.scrollTop*l.y+a.y}},isElement:Sn,getDimensions:function(t){return He(t)?ed(t):t.getBoundingClientRect()},getOffsetParent:ql,getDocumentElement:Tn,getScale:uo,async getElementRects(t){let{reference:e,floating:n,strategy:o}=t;const i=this.getOffsetParent||ql,r=this.getDimensions;return{reference:kg(e,await i(n),o),floating:{x:0,y:0,...await r(n)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>ze(t).direction==="rtl"},Og=(t,e,n)=>{const o=new Map,i={platform:$g,...n},r={...i.platform,_c:o};return yg(t,e,{...i,platform:r})},An={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:t=>[...t,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function Rg(t,e){let n=An.themes[t]||{},o;do o=n[e],typeof o>"u"?n.$extend?n=An.themes[n.$extend]||{}:(n=null,o=An[e]):n=null;while(n);return o}function Lg(t){const e=[t];let n=An.themes[t]||{};do n.$extend&&!n.$resetCss?(e.push(n.$extend),n=An.themes[n.$extend]||{}):n=null;while(n);return e.map(o=>`v-popper--theme-${o}`)}function Jl(t){const e=[t];let n=An.themes[t]||{};do n.$extend?(e.push(n.$extend),n=An.themes[n.$extend]||{}):n=null;while(n);return e}let Qo=!1;if(typeof window<"u"){Qo=!1;try{const t=Object.defineProperty({},"passive",{get(){Qo=!0}});window.addEventListener("test",null,t)}catch{}}let cd=!1;typeof window<"u"&&typeof navigator<"u"&&(cd=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Pg=["auto","top","bottom","left","right"].reduce((t,e)=>t.concat([e,`${e}-start`,`${e}-end`]),[]),Kl={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Xl={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Yl(t,e){const n=t.indexOf(e);n!==-1&&t.splice(n,1)}function ts(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const xe=[];let Dn=null;const Zl={};function Il(t){let e=Zl[t];return e||(e=Zl[t]=[]),e}let Ns=function(){};typeof window<"u"&&(Ns=window.Element);function dt(t){return function(e){return Rg(e.theme,t)}}const es="__floating-vue__popper",ud=()=>le({name:"VPopper",provide(){return{[es]:{parentPopper:this}}},inject:{[es]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:dt("disabled")},positioningDisabled:{type:Boolean,default:dt("positioningDisabled")},placement:{type:String,default:dt("placement"),validator:t=>Pg.includes(t)},delay:{type:[String,Number,Object],default:dt("delay")},distance:{type:[Number,String],default:dt("distance")},skidding:{type:[Number,String],default:dt("skidding")},triggers:{type:Array,default:dt("triggers")},showTriggers:{type:[Array,Function],default:dt("showTriggers")},hideTriggers:{type:[Array,Function],default:dt("hideTriggers")},popperTriggers:{type:Array,default:dt("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:dt("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:dt("popperHideTriggers")},container:{type:[String,Object,Ns,Boolean],default:dt("container")},boundary:{type:[String,Ns],default:dt("boundary")},strategy:{type:String,validator:t=>["absolute","fixed"].includes(t),default:dt("strategy")},autoHide:{type:[Boolean,Function],default:dt("autoHide")},handleResize:{type:Boolean,default:dt("handleResize")},instantMove:{type:Boolean,default:dt("instantMove")},eagerMount:{type:Boolean,default:dt("eagerMount")},popperClass:{type:[String,Array,Object],default:dt("popperClass")},computeTransformOrigin:{type:Boolean,default:dt("computeTransformOrigin")},autoMinSize:{type:Boolean,default:dt("autoMinSize")},autoSize:{type:[Boolean,String],default:dt("autoSize")},autoMaxSize:{type:Boolean,default:dt("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:dt("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:dt("preventOverflow")},overflowPadding:{type:[Number,String],default:dt("overflowPadding")},arrowPadding:{type:[Number,String],default:dt("arrowPadding")},arrowOverflow:{type:Boolean,default:dt("arrowOverflow")},flip:{type:Boolean,default:dt("flip")},shift:{type:Boolean,default:dt("shift")},shiftCrossAxis:{type:Boolean,default:dt("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:dt("noAutoFocus")},disposeTimeout:{type:Number,default:dt("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":t=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(t=>t.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var t;return(t=this[es])==null?void 0:t.parentPopper},hasPopperShowTriggerHover(){var t,e;return((t=this.popperTriggers)==null?void 0:t.includes("hover"))||((e=this.popperShowTriggers)==null?void 0:e.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(t){t?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((t,e)=>(t[e]="$_computePosition",t),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:t=null,skipDelay:e=!1,force:n=!1}={}){var o,i;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(((i=this.parentPopper)==null?void 0:i.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(t,e),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:t=null,skipDelay:e=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:e}),this.parentPopper.lockedChild=null)},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(t,e),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var t;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((t=this.referenceNode)==null?void 0:t.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(e=>e.nodeType===e.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(Tg({mainAxis:this.distance,crossAxis:this.skidding}));const e=this.placement.startsWith("auto");if(e?t.middleware.push(_g({alignment:this.placement.split("-")[1]??""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(Ag({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!e&&this.flip&&t.middleware.push(wg({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(vg({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:i,middlewareData:r})=>{let s;const{centerOffset:l}=r.arrow;return o.startsWith("top")||o.startsWith("bottom")?s=Math.abs(l)>i.reference.width/2:s=Math.abs(l)>i.reference.height/2,{data:{overflow:s}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:i,placement:r,middlewareData:s})=>{var l;if((l=s.autoSize)!=null&&l.skip)return{};let a,d;return r.startsWith("top")||r.startsWith("bottom")?a=i.reference.width:d=i.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=a!=null?`${a}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=d!=null?`${d}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,t.middleware.push(xg({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:i})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=i!=null?`${i}px`:null}})));const n=await Og(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(t,e=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Dn&&this.instantMove&&Dn.instantMove&&Dn!==this.parentPopper){Dn.$_applyHide(!0),this.$_applyShow(!0);return}e?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(t,e=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Dn=this),e?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(t){const e=this.delay;return parseInt(e&&e[t]||e||0)},async $_applyShow(t=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=t,!this.isShown&&(this.$_ensureTeleport(),await ts(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...qi(this.$_referenceNode),...qi(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const e=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),o=n.parentNode.getBoundingClientRect(),i=e.x+e.width/2-(o.left+n.offsetLeft),r=e.y+e.height/2-(o.top+n.offsetTop);this.result.transformOrigin=`${i}px ${r}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const t=this.showGroup;if(t){let e;for(let n=0;n0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=t,Yl(xe,this),xe.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of Jl(this.theme)){const o=Il(n);Yl(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}Dn===this&&(Dn=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const e=this.disposeTimeout;e!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},e)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await ts(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let t=this.container;if(typeof t=="string"?t=window.document.querySelector(t):t===!1&&(t=this.$_targetNodes[0].parentNode),!t)throw new Error("No container for popover: "+this.container);t.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const t=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,Kl,this.triggers,this.showTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Kl,this.popperTriggers,this.popperShowTriggers,t);const e=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,Xl,this.triggers,this.hideTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Xl,this.popperTriggers,this.popperHideTriggers,e)},$_registerEventListeners(t,e,n){this.$_events.push({targetNodes:t,eventType:e,handler:n}),t.forEach(o=>o.addEventListener(e,n,Qo?{passive:!0}:void 0))},$_registerTriggerListeners(t,e,n,o,i){let r=n;o!=null&&(r=typeof o=="function"?o(r):o),r.forEach(s=>{const l=e[s];l&&this.$_registerEventListeners(t,l,i)})},$_removeEventListeners(t){const e=[];this.$_events.forEach(n=>{const{targetNodes:o,eventType:i,handler:r}=n;!t||t===i?o.forEach(s=>s.removeEventListener(i,r)):e.push(n)}),this.$_events=e},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(t,e=!1){this.$_showFrameLocked||(this.hide({event:t}),t.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),e&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(t,e){for(const n of this.$_targetNodes){const o=n.getAttribute(t);o&&(n.removeAttribute(t),n.setAttribute(e,o))}},$_applyAttrsToTarget(t){for(const e of this.$_targetNodes)for(const n in t){const o=t[n];o==null?e.removeAttribute(n):e.setAttribute(n,o)}},$_updateParentShownChildren(t){let e=this.parentPopper;for(;e;)t?e.shownChildren.add(this.randomId):(e.shownChildren.delete(this.randomId),e.pendingHide&&e.hide()),e=e.parentPopper},$_isAimingPopper(){const t=this.$_referenceNode.getBoundingClientRect();if(jo>=t.left&&jo<=t.right&&zo>=t.top&&zo<=t.bottom){const e=this.$_popperNode.getBoundingClientRect(),n=jo-mn,o=zo-gn,i=e.left+e.width/2-mn+(e.top+e.height/2)-gn+e.width+e.height,r=mn+n*i,s=gn+o*i;return vi(mn,gn,r,s,e.left,e.top,e.left,e.bottom)||vi(mn,gn,r,s,e.left,e.top,e.right,e.top)||vi(mn,gn,r,s,e.right,e.top,e.right,e.bottom)||vi(mn,gn,r,s,e.left,e.bottom,e.right,e.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(cd){const t=Qo?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",e=>Ql(e),t),document.addEventListener("touchend",e=>tc(e,!0),t)}else window.addEventListener("mousedown",t=>Ql(t),!0),window.addEventListener("click",t=>tc(t,!1),!0);window.addEventListener("resize",Ng)}function Ql(t,e){for(let n=0;n=0;o--){const i=xe[o];try{const r=i.containsGlobalTarget=i.mouseDownContains||i.popperNode().contains(t.target);i.pendingHide=!1,requestAnimationFrame(()=>{if(i.pendingHide=!1,!n[i.randomId]&&ec(i,r,t)){if(i.$_handleGlobalClose(t,e),!t.closeAllPopover&&t.closePopover&&r){let l=i.parentPopper;for(;l;)n[l.randomId]=!0,l=l.parentPopper;return}let s=i.parentPopper;for(;s&&ec(s,s.containsGlobalTarget,t);)s.$_handleGlobalClose(t,e),s=s.parentPopper}})}catch{}}}function ec(t,e,n){return n.closeAllPopover||n.closePopover&&e||Mg(t,n)&&!e}function Mg(t,e){if(typeof t.autoHide=="function"){const n=t.autoHide(e);return t.lastAutoHide=n,n}return t.autoHide}function Ng(){for(let t=0;t{mn=jo,gn=zo,jo=t.clientX,zo=t.clientY},Qo?{passive:!0}:void 0);function vi(t,e,n,o,i,r,s,l){const a=((s-i)*(e-r)-(l-r)*(t-i))/((l-r)*(n-t)-(s-i)*(o-e)),d=((n-t)*(e-r)-(o-e)*(t-i))/((l-r)*(n-t)-(s-i)*(o-e));return a>=0&&a<=1&&d>=0&&d<=1}const Bg={extends:ud()},ga=(t,e)=>{const n=t.__vccOpts||t;for(const[o,i]of e)n[o]=i;return n};function Vg(t,e,n,o,i,r){return M(),G("div",{ref:"reference",class:xt(["v-popper",{"v-popper--shown":t.slotData.isShown}])},[zt(t.$slots,"default",ps(Bi(t.slotData)))],2)}const Fg=ga(Bg,[["render",Vg]]);function jg(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);var n=t.indexOf("Trident/");if(n>0){var o=t.indexOf("rv:");return parseInt(t.substring(o+3,t.indexOf(".",o)),10)}var i=t.indexOf("Edge/");return i>0?parseInt(t.substring(i+5,t.indexOf(".",i)),10):-1}let Si;function Bs(){Bs.init||(Bs.init=!0,Si=jg()!==-1)}var Ti={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Bs(),Zc(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",Si&&this.$el.appendChild(t),t.data="about:blank",Si||this.$el.appendChild(t)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Si&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const zg=Gp();Hp("data-v-b329ee4c");const Hg={class:"resize-observer",tabindex:"-1"};Up();const Ug=zg((t,e,n,o,i,r)=>(M(),Ot("div",Hg)));Ti.render=Ug,Ti.__scopeId="data-v-b329ee4c",Ti.__file="src/components/ResizeObserver.vue";const dd=(t="theme")=>({computed:{themeClass(){return Lg(this[t])}}}),Gg=le({name:"VPopperContent",components:{ResizeObserver:Ti},mixins:[dd()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(t){return t!=null&&!isNaN(t)?`${t}px`:null}}}),Wg=["id","aria-hidden","tabindex","data-popper-placement"],qg={ref:"inner",class:"v-popper__inner"},Jg=et("div",{class:"v-popper__arrow-outer"},null,-1),Kg=et("div",{class:"v-popper__arrow-inner"},null,-1),Xg=[Jg,Kg];function Yg(t,e,n,o,i,r){const s=ln("ResizeObserver");return M(),G("div",{id:t.popperId,ref:"popover",class:xt(["v-popper__popper",[t.themeClass,t.classes.popperClass,{"v-popper__popper--shown":t.shown,"v-popper__popper--hidden":!t.shown,"v-popper__popper--show-from":t.classes.showFrom,"v-popper__popper--show-to":t.classes.showTo,"v-popper__popper--hide-from":t.classes.hideFrom,"v-popper__popper--hide-to":t.classes.hideTo,"v-popper__popper--skip-transition":t.skipTransition,"v-popper__popper--arrow-overflow":t.result&&t.result.arrow.overflow,"v-popper__popper--no-positioning":!t.result}]]),style:_n(t.result?{position:t.result.strategy,transform:`translate3d(${Math.round(t.result.x)}px,${Math.round(t.result.y)}px,0)`}:void 0),"aria-hidden":t.shown?"false":"true",tabindex:t.autoHide?0:void 0,"data-popper-placement":t.result?t.result.placement:void 0,onKeyup:e[2]||(e[2]=bf(l=>t.autoHide&&t.$emit("hide"),["esc"]))},[et("div",{class:"v-popper__backdrop",onClick:e[0]||(e[0]=l=>t.autoHide&&t.$emit("hide"))}),et("div",{class:"v-popper__wrapper",style:_n(t.result?{transformOrigin:t.result.transformOrigin}:void 0)},[et("div",qg,[t.mounted?(M(),G(jt,{key:0},[et("div",null,[zt(t.$slots,"default")]),t.handleResize?(M(),Ot(s,{key:0,onNotify:e[1]||(e[1]=l=>t.$emit("resize",l))})):vt("",!0)],64)):vt("",!0)],512),et("div",{ref:"arrow",class:"v-popper__arrow-container",style:_n(t.result?{left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)}:void 0)},Xg,4)],4)],46,Wg)}const Zg=ga(Gg,[["render",Yg]]),Ig={methods:{show(...t){return this.$refs.popper.show(...t)},hide(...t){return this.$refs.popper.hide(...t)},dispose(...t){return this.$refs.popper.dispose(...t)},onResize(...t){return this.$refs.popper.onResize(...t)}}};let Vs=function(){};typeof window<"u"&&(Vs=window.Element);const Qg=le({name:"VPopperWrapper",components:{Popper:Fg,PopperContent:Zg},mixins:[Ig,dd("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Vs,Boolean],default:void 0},boundary:{type:[String,Vs],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":t=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(t=>t!==this.$refs.popperContent.$el)}}});function t0(t,e,n,o,i,r){const s=ln("PopperContent"),l=ln("Popper");return M(),Ot(l,Kt({ref:"popper"},t.$props,{theme:t.finalTheme,"target-nodes":t.getTargetNodes,"popper-node":()=>t.$refs.popperContent.$el,class:[t.themeClass],onShow:e[0]||(e[0]=()=>t.$emit("show")),onHide:e[1]||(e[1]=()=>t.$emit("hide")),"onUpdate:shown":e[2]||(e[2]=a=>t.$emit("update:shown",a)),onApplyShow:e[3]||(e[3]=()=>t.$emit("apply-show")),onApplyHide:e[4]||(e[4]=()=>t.$emit("apply-hide")),onCloseGroup:e[5]||(e[5]=()=>t.$emit("close-group")),onCloseDirective:e[6]||(e[6]=()=>t.$emit("close-directive")),onAutoHide:e[7]||(e[7]=()=>t.$emit("auto-hide")),onResize:e[8]||(e[8]=()=>t.$emit("resize"))}),{default:Lt(({popperId:a,isShown:d,shouldMountContent:c,skipTransition:p,autoHide:m,show:g,hide:E,handleResize:y,onResize:R,classes:L,result:D})=>[zt(t.$slots,"default",{shown:d,show:g,hide:E}),ct(s,{ref:"popperContent","popper-id":a,theme:t.finalTheme,shown:d,mounted:c,"skip-transition":p,"auto-hide":m,"handle-resize":y,classes:L,result:D,onHide:E,onResize:R},{default:Lt(()=>[zt(t.$slots,"popper",{shown:d,hide:E})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Fs=ga(Qg,[["render",t0]]),e0={...Fs,name:"VDropdown",vPopperTheme:"dropdown"};({...Fs},{...Fs}),ud();const nc=An,n0=e0;var pd=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Ji=pd.join(","),hd=typeof Element>"u",Wn=hd?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ki=!hd&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t?.ownerDocument},Xi=function(t,e){var n;e===void 0&&(e=!0);var o=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),i=o===""||o==="true",r=i||e&&t&&(typeof t.closest=="function"?t.closest("[inert]"):Xi(t.parentNode));return r},o0=function(t){var e,n=t==null||(e=t.getAttribute)===null||e===void 0?void 0:e.call(t,"contenteditable");return n===""||n==="true"},fd=function(t,e,n){if(Xi(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(Ji));return e&&Wn.call(t,Ji)&&o.unshift(t),o=o.filter(n),o},Yi=function(t,e,n){for(var o=[],i=Array.from(t);i.length;){var r=i.shift();if(!Xi(r,!1))if(r.tagName==="SLOT"){var s=r.assignedElements(),l=s.length?s:r.children,a=Yi(l,!0,n);n.flatten?o.push.apply(o,a):o.push({scopeParent:r,candidates:a})}else{var d=Wn.call(r,Ji);d&&n.filter(r)&&(e||!t.includes(r))&&o.push(r);var c=r.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(r),p=!Xi(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(r));if(c&&p){var m=Yi(c===!0?r.children:c.children,!0,n);n.flatten?o.push.apply(o,m):o.push({scopeParent:r,candidates:m})}else i.unshift.apply(i,r.children)}}return o},md=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Vn=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||o0(t))&&!md(t)?0:t.tabIndex},i0=function(t,e){var n=Vn(t);return n<0&&e&&!md(t)?0:n},r0=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},gd=function(t){return t.tagName==="INPUT"},s0=function(t){return gd(t)&&t.type==="hidden"},a0=function(t){var e=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return e},l0=function(t,e){for(var n=0;nsummary:first-of-type"),a=l?t.parentElement:t;if(Wn.call(a,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof o=="function"){for(var d=t;t;){var c=t.parentElement,p=Ki(t);if(c&&!c.shadowRoot&&o(c)===!0)return oc(t);t.assignedSlot?t=t.assignedSlot:!c&&p!==t.ownerDocument?t=p.host:t=c}t=d}if(p0(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return oc(t);return!1},f0=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if(e.tagName==="FIELDSET"&&e.disabled){for(var n=0;n=0)},yd=function(t){var e=[],n=[];return t.forEach(function(o,i){var r=!!o.scopeParent,s=r?o.scopeParent:o,l=i0(s,r),a=r?yd(o.candidates):s;l===0?r?e.push.apply(e,a):e.push(s):n.push({documentOrder:i,tabIndex:l,item:o,isScope:r,content:a})}),n.sort(r0).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(e)},g0=function(t,e){e=e||{};var n;return e.getShadowRoot?n=Yi([t],e.includeContainer,{filter:js.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:m0}):n=fd(t,e.includeContainer,js.bind(null,e)),yd(n)},y0=function(t,e){e=e||{};var n;return e.getShadowRoot?n=Yi([t],e.includeContainer,{filter:Zi.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):n=fd(t,e.includeContainer,Zi.bind(null,e)),n},eo=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return Wn.call(t,Ji)===!1?!1:js(e,t)},v0=pd.concat("iframe:not([inert]):not([inert] *)").join(","),ns=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return Wn.call(t,v0)===!1?!1:Zi(e,t)};function zs(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(a){throw a},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var r,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var a=n.next();return s=a.done,a},e:function(a){l=!0,r=a},f:function(){try{s||n.return==null||n.return()}finally{if(l)throw r}}}}function _0(t,e,n){return(e=A0(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w0(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function E0(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function sc(t){for(var e=1;e0?t[t.length-1]:null},activateTrap:function(t,e){var n=on.getActiveTrap(t);e!==n&&on.pauseTrap(t);var o=t.indexOf(e);o===-1||t.splice(o,1),t.push(e)},deactivateTrap:function(t,e){var n=t.indexOf(e);n!==-1&&t.splice(n,1),on.unpauseTrap(t)},pauseTrap:function(t){var e=on.getActiveTrap(t);e?._setPausedState(!0)},unpauseTrap:function(t){var e=on.getActiveTrap(t);e&&!e._isManuallyPaused()&&e._setPausedState(!1)}},x0=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},C0=function(t){return t?.key==="Escape"||t?.key==="Esc"||t?.keyCode===27},Ho=function(t){return t?.key==="Tab"||t?.keyCode===9},k0=function(t){return Ho(t)&&!t.shiftKey},$0=function(t){return Ho(t)&&t.shiftKey},ac=function(t){return setTimeout(t,0)},Ao=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o1&&arguments[1]!==void 0?arguments[1]:{},z=S.hasFallback,W=z===void 0?!1:z,j=S.params,V=j===void 0?[]:j,U=i[_];if(typeof U=="function"&&(U=U.apply(void 0,S0(V))),U===!0&&(U=void 0),!U){if(U===void 0||U===!1)return U;throw new Error("`".concat(_,"` was specified but was not a node, or did not return a node"))}var Z=U;if(typeof U=="string"){try{Z=n.querySelector(U)}catch(Y){throw new Error("`".concat(_,'` appears to be an invalid selector; error="').concat(Y.message,'"'))}if(!Z&&!W)throw new Error("`".concat(_,"` as selector refers to no known node"))}return Z},c=function(_){var S=_.activeElement;return S?S.shadowRoot&&S.shadowRoot.activeElement!==null?c(S.shadowRoot):S:null},p=function(){var _=d("initialFocus",{hasFallback:!0});if(_===!1)return!1;if(_===void 0||_&&!ns(_,i.tabbableOptions)){var S=c(n);if(a(S)>=0)_=S;else{var z=r.tabbableGroups[0],W=z&&z.firstTabbableNode;_=W||d("fallbackFocus")}}else _===null&&(_=d("fallbackFocus"));if(!_)throw new Error("Your focus-trap needs to have at least one focusable element");return _},m=function(){if(r.containerGroups=r.containers.map(function(_){var S=g0(_,i.tabbableOptions),z=y0(_,i.tabbableOptions),W=S.length>0?S[0]:void 0,j=S.length>0?S[S.length-1]:void 0,V=z.find(function(Y){return eo(Y)}),U=z.slice().reverse().find(function(Y){return eo(Y)}),Z=!!S.find(function(Y){return Vn(Y)>0});return{container:_,tabbableNodes:S,focusableNodes:z,posTabIndexesFound:Z,firstTabbableNode:W,lastTabbableNode:j,firstDomTabbableNode:V,lastDomTabbableNode:U,nextTabbableNode:function(Y){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,kt=S.indexOf(Y);return kt<0?Ct?z.slice(z.indexOf(Y)+1).find(function(Xt){return eo(Xt)}):z.slice(0,z.indexOf(Y)).reverse().find(function(Xt){return eo(Xt)}):S[kt+(Ct?1:-1)]}}}),r.tabbableGroups=r.containerGroups.filter(function(_){return _.tabbableNodes.length>0}),r.tabbableGroups.length<=0&&!d("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(r.containerGroups.find(function(_){return _.posTabIndexesFound})&&r.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},g=function(_){if(_!==!1&&_!==c(document)){if(!_||!_.focus){g(p());return}_.focus({preventScroll:!!i.preventScroll}),r.mostRecentlyFocusedNode=_,x0(_)&&_.select()}},E=function(_){var S=d("setReturnFocus",{params:[_]});return S||(S===!1?!1:_)},y=function(_){var S=_.target,z=_.event,W=_.isBackward,j=W===void 0?!1:W;S=S||bi(z),m();var V=null;if(r.tabbableGroups.length>0){var U=a(S,z),Z=U>=0?r.containerGroups[U]:void 0;if(U<0)j?V=r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:V=r.tabbableGroups[0].firstTabbableNode;else if(j){var Y=r.tabbableGroups.findIndex(function(at){var Le=at.firstTabbableNode;return S===Le});if(Y<0&&(Z.container===S||ns(S,i.tabbableOptions)&&!eo(S,i.tabbableOptions)&&!Z.nextTabbableNode(S,!1))&&(Y=U),Y>=0){var Ct=Y===0?r.tabbableGroups.length-1:Y-1,kt=r.tabbableGroups[Ct];V=Vn(S)>=0?kt.lastTabbableNode:kt.lastDomTabbableNode}else Ho(z)||(V=Z.nextTabbableNode(S,!1))}else{var Xt=r.tabbableGroups.findIndex(function(at){var Le=at.lastTabbableNode;return S===Le});if(Xt<0&&(Z.container===S||ns(S,i.tabbableOptions)&&!eo(S,i.tabbableOptions)&&!Z.nextTabbableNode(S))&&(Xt=U),Xt>=0){var dn=Xt===r.tabbableGroups.length-1?0:Xt+1,ge=r.tabbableGroups[dn];V=Vn(S)>=0?ge.firstTabbableNode:ge.firstDomTabbableNode}else Ho(z)||(V=Z.nextTabbableNode(S))}}else V=d("fallbackFocus");return V},R=function(_){var S=bi(_);if(!(a(S,_)>=0)){if(Ao(i.clickOutsideDeactivates,_)){s.deactivate({returnFocus:i.returnFocusOnDeactivate});return}Ao(i.allowOutsideClick,_)||_.preventDefault()}},L=function(_){var S=bi(_),z=a(S,_)>=0;if(z||S instanceof Document)z&&(r.mostRecentlyFocusedNode=S);else{_.stopImmediatePropagation();var W,j=!0;if(r.mostRecentlyFocusedNode)if(Vn(r.mostRecentlyFocusedNode)>0){var V=a(r.mostRecentlyFocusedNode),U=r.containerGroups[V].tabbableNodes;if(U.length>0){var Z=U.findIndex(function(Y){return Y===r.mostRecentlyFocusedNode});Z>=0&&(i.isKeyForward(r.recentNavEvent)?Z+1=0&&(W=U[Z-1],j=!1))}}else r.containerGroups.some(function(Y){return Y.tabbableNodes.some(function(Ct){return Vn(Ct)>0})})||(j=!1);else j=!1;j&&(W=y({target:r.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(r.recentNavEvent)})),g(W||r.mostRecentlyFocusedNode||p())}r.recentNavEvent=void 0},D=function(_){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;r.recentNavEvent=_;var z=y({event:_,isBackward:S});z&&(Ho(_)&&_.preventDefault(),g(z))},B=function(_){(i.isKeyForward(_)||i.isKeyBackward(_))&&D(_,i.isKeyBackward(_))},P=function(_){C0(_)&&Ao(i.escapeDeactivates,_)!==!1&&(_.preventDefault(),s.deactivate())},nt=function(_){var S=bi(_);a(S,_)>=0||Ao(i.clickOutsideDeactivates,_)||Ao(i.allowOutsideClick,_)||(_.preventDefault(),_.stopImmediatePropagation())},st=function(){if(r.active){on.activateTrap(o,s);var _;return i.delayInitialFocus?_=new Promise(function(S){r.delayInitialFocusTimer=ac(function(){g(p()),S()})}):g(p()),n.addEventListener("focusin",L,!0),n.addEventListener("mousedown",R,{capture:!0,passive:!1}),n.addEventListener("touchstart",R,{capture:!0,passive:!1}),n.addEventListener("click",nt,{capture:!0,passive:!1}),n.addEventListener("keydown",B,{capture:!0,passive:!1}),n.addEventListener("keydown",P),_}},it=function(_){r.active&&!r.paused&&s._setSubtreeIsolation(!1),r.adjacentElements.clear(),r.alreadySilent.clear();var S=new Set,z=new Set,W=ic(_),j;try{for(W.s();!(j=W.n()).done;){var V=j.value;S.add(V);for(var U=typeof ShadowRoot<"u"&&V.getRootNode()instanceof ShadowRoot,Z=V;Z;){S.add(Z);var Y=Z.parentElement,Ct=[];Y?Ct=Y.children:!Y&&U&&(Ct=Z.getRootNode().children,Y=Z.getRootNode().host,U=typeof ShadowRoot<"u"&&Y.getRootNode()instanceof ShadowRoot);var kt=ic(Ct),Xt;try{for(kt.s();!(Xt=kt.n()).done;){var dn=Xt.value;z.add(dn)}}catch(ge){kt.e(ge)}finally{kt.f()}Z=Y}}}catch(ge){W.e(ge)}finally{W.f()}S.forEach(function(ge){z.delete(ge)}),r.adjacentElements=z},wt=function(){if(r.active)return n.removeEventListener("focusin",L,!0),n.removeEventListener("mousedown",R,!0),n.removeEventListener("touchstart",R,!0),n.removeEventListener("click",nt,!0),n.removeEventListener("keydown",B,!0),n.removeEventListener("keydown",P),s},mt=function(_){var S=r.mostRecentlyFocusedNode;if(S){var z=_.some(function(j){var V=Array.from(j.removedNodes);return V.some(function(U){return U===S||typeof U.contains=="function"&&U.contains(S)})});if(z&&r.containers.some(function(j){return j?.isConnected})){m();var W=p();g(W)}}},ut=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(mt):void 0,rt=function(){ut&&(ut.disconnect(),r.active&&!r.paused&&r.containers.map(function(_){ut.observe(_,{subtree:!0,childList:!0})}))};return s={get active(){return r.active},get paused(){return r.paused},activate:function(_){if(r.active)return this;var S=l(_,"onActivate"),z=l(_,"onPostActivate"),W=l(_,"checkCanFocusTrap"),j=on.getActiveTrap(o),V=!1;if(j&&!j.paused){var U;(U=j._setSubtreeIsolation)===null||U===void 0||U.call(j,!1),V=!0}try{W||m(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=c(n),S?.({trap:s});var Z=function(){W&&m();var Ct=function(){s._setSubtreeIsolation(!0),rt(),z?.({trap:s})},kt=st();kt?kt.then(Ct):Ct()};if(W)return W(r.containers.concat()).then(Z,Z),this;Z()}catch(Ct){if(j===on.getActiveTrap(o)&&V){var Y;(Y=j._setSubtreeIsolation)===null||Y===void 0||Y.call(j,!0)}throw Ct}return this},deactivate:function(_){if(!r.active)return this;var S=sc({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},_);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,r.paused||s._setSubtreeIsolation(!1),r.alreadySilent.clear(),wt(),r.active=!1,r.paused=!1,rt(),on.deactivateTrap(o,s);var z=l(S,"onDeactivate"),W=l(S,"onPostDeactivate"),j=l(S,"checkCanReturnFocus"),V=l(S,"delayReturnFocus"),U=l(S,"returnFocus","returnFocusOnDeactivate");z?.({trap:s});var Z=function(){U&&g(E(r.nodeFocusedBeforeActivation)),W?.({trap:s})},Y=function(){V&&U?ac(Z):Z()};return U&&j?(j(E(r.nodeFocusedBeforeActivation)).then(Y,Y),this):(Y(),this)},pause:function(_){return r.active?(r.manuallyPaused=!0,this._setPausedState(!0,_)):this},unpause:function(_){return r.active?(r.manuallyPaused=!1,o[o.length-1]!==this?this:this._setPausedState(!1,_)):this},updateContainerElements:function(_){var S=[].concat(_).filter(Boolean);return r.containers=S.map(function(z){return typeof z=="string"?n.querySelector(z):z}),i.isolateSubtrees&&it(r.containers),r.active&&(m(),r.paused||s._setSubtreeIsolation(!0)),rt(),this}},Object.defineProperties(s,{_isManuallyPaused:{value:function(){return r.manuallyPaused}},_setPausedState:{value:function(_,S){if(r.paused===_)return this;if(r.paused=_,_){var z=l(S,"onPause"),W=l(S,"onPostPause");z?.({trap:s}),wt(),s._setSubtreeIsolation(!1),rt(),W?.({trap:s})}else{var j=l(S,"onUnpause"),V=l(S,"onPostUnpause");j?.({trap:s});var U=function(){m();var Z=function(){s._setSubtreeIsolation(!0),rt(),V?.({trap:s})},Y=st();Y?Y.then(Z):Z()};U()}return this}},_setSubtreeIsolation:{value:function(_){i.isolateSubtrees&&r.adjacentElements.forEach(function(S){var z;_?i.isolateSubtrees==="aria-hidden"?((S.ariaHidden==="true"||((z=S.getAttribute("aria-hidden"))===null||z===void 0?void 0:z.toLowerCase())==="true")&&r.alreadySilent.add(S),S.setAttribute("aria-hidden","true")):((S.inert||S.hasAttribute("inert"))&&r.alreadySilent.add(S),S.setAttribute("inert",!0)):r.alreadySilent.has(S)||(i.isolateSubtrees==="aria-hidden"?S.removeAttribute("aria-hidden"):S.removeAttribute("inert"))})}}}),s.updateContainerElements(t),s};function L0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var bd={exports:{}},Bt=bd.exports={},Ne,Be;function Hs(){throw new Error("setTimeout has not been defined")}function Us(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ne=setTimeout:Ne=Hs}catch{Ne=Hs}try{typeof clearTimeout=="function"?Be=clearTimeout:Be=Us}catch{Be=Us}})();function _d(t){if(Ne===setTimeout)return setTimeout(t,0);if((Ne===Hs||!Ne)&&setTimeout)return Ne=setTimeout,setTimeout(t,0);try{return Ne(t,0)}catch{try{return Ne.call(null,t,0)}catch{return Ne.call(this,t,0)}}}function P0(t){if(Be===clearTimeout)return clearTimeout(t);if((Be===Us||!Be)&&clearTimeout)return Be=clearTimeout,clearTimeout(t);try{return Be(t)}catch{try{return Be.call(null,t)}catch{return Be.call(this,t)}}}var sn=[],po=!1,Hn,Ai=-1;function D0(){!po||!Hn||(po=!1,Hn.length?sn=Hn.concat(sn):Ai=-1,sn.length&&wd())}function wd(){if(!po){var t=_d(D0);po=!0;for(var e=sn.length;e;){for(Hn=sn,sn=[];++Ai1)for(var n=1;nconsole.error("SEMVER",...e):()=>{},os}var is,cc;function Td(){if(cc)return is;cc=1;const t="2.0.0",e=256,n=Number.MAX_SAFE_INTEGER||9007199254740991,o=16,i=e-6;return is={MAX_LENGTH:e,MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:i,MAX_SAFE_INTEGER:n,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},is}var rs={exports:{}},uc;function B0(){return uc||(uc=1,(function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:o,MAX_LENGTH:i}=Td(),r=Sd();e=t.exports={};const s=e.re=[],l=e.safeRe=[],a=e.src=[],d=e.safeSrc=[],c=e.t={};let p=0;const m="[a-zA-Z0-9-]",g=[["\\s",1],["\\d",i],[m,o]],E=R=>{for(const[L,D]of g)R=R.split(`${L}*`).join(`${L}{0,${D}}`).split(`${L}+`).join(`${L}{1,${D}}`);return R},y=(R,L,D)=>{const B=E(L),P=p++;r(R,P,L),c[R]=P,a[P]=L,d[P]=B,s[P]=new RegExp(L,D?"g":void 0),l[P]=new RegExp(B,D?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*"),y("NUMERICIDENTIFIERLOOSE","\\d+"),y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${m}*`),y("MAINVERSION",`(${a[c.NUMERICIDENTIFIER]})\\.(${a[c.NUMERICIDENTIFIER]})\\.(${a[c.NUMERICIDENTIFIER]})`),y("MAINVERSIONLOOSE",`(${a[c.NUMERICIDENTIFIERLOOSE]})\\.(${a[c.NUMERICIDENTIFIERLOOSE]})\\.(${a[c.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASEIDENTIFIER",`(?:${a[c.NONNUMERICIDENTIFIER]}|${a[c.NUMERICIDENTIFIER]})`),y("PRERELEASEIDENTIFIERLOOSE",`(?:${a[c.NONNUMERICIDENTIFIER]}|${a[c.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASE",`(?:-(${a[c.PRERELEASEIDENTIFIER]}(?:\\.${a[c.PRERELEASEIDENTIFIER]})*))`),y("PRERELEASELOOSE",`(?:-?(${a[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[c.PRERELEASEIDENTIFIERLOOSE]})*))`),y("BUILDIDENTIFIER",`${m}+`),y("BUILD",`(?:\\+(${a[c.BUILDIDENTIFIER]}(?:\\.${a[c.BUILDIDENTIFIER]})*))`),y("FULLPLAIN",`v?${a[c.MAINVERSION]}${a[c.PRERELEASE]}?${a[c.BUILD]}?`),y("FULL",`^${a[c.FULLPLAIN]}$`),y("LOOSEPLAIN",`[v=\\s]*${a[c.MAINVERSIONLOOSE]}${a[c.PRERELEASELOOSE]}?${a[c.BUILD]}?`),y("LOOSE",`^${a[c.LOOSEPLAIN]}$`),y("GTLT","((?:<|>)?=?)"),y("XRANGEIDENTIFIERLOOSE",`${a[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),y("XRANGEIDENTIFIER",`${a[c.NUMERICIDENTIFIER]}|x|X|\\*`),y("XRANGEPLAIN",`[v=\\s]*(${a[c.XRANGEIDENTIFIER]})(?:\\.(${a[c.XRANGEIDENTIFIER]})(?:\\.(${a[c.XRANGEIDENTIFIER]})(?:${a[c.PRERELEASE]})?${a[c.BUILD]}?)?)?`),y("XRANGEPLAINLOOSE",`[v=\\s]*(${a[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[c.XRANGEIDENTIFIERLOOSE]})(?:${a[c.PRERELEASELOOSE]})?${a[c.BUILD]}?)?)?`),y("XRANGE",`^${a[c.GTLT]}\\s*${a[c.XRANGEPLAIN]}$`),y("XRANGELOOSE",`^${a[c.GTLT]}\\s*${a[c.XRANGEPLAINLOOSE]}$`),y("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),y("COERCE",`${a[c.COERCEPLAIN]}(?:$|[^\\d])`),y("COERCEFULL",a[c.COERCEPLAIN]+`(?:${a[c.PRERELEASE]})?(?:${a[c.BUILD]})?(?:$|[^\\d])`),y("COERCERTL",a[c.COERCE],!0),y("COERCERTLFULL",a[c.COERCEFULL],!0),y("LONETILDE","(?:~>?)"),y("TILDETRIM",`(\\s*)${a[c.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",y("TILDE",`^${a[c.LONETILDE]}${a[c.XRANGEPLAIN]}$`),y("TILDELOOSE",`^${a[c.LONETILDE]}${a[c.XRANGEPLAINLOOSE]}$`),y("LONECARET","(?:\\^)"),y("CARETTRIM",`(\\s*)${a[c.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",y("CARET",`^${a[c.LONECARET]}${a[c.XRANGEPLAIN]}$`),y("CARETLOOSE",`^${a[c.LONECARET]}${a[c.XRANGEPLAINLOOSE]}$`),y("COMPARATORLOOSE",`^${a[c.GTLT]}\\s*(${a[c.LOOSEPLAIN]})$|^$`),y("COMPARATOR",`^${a[c.GTLT]}\\s*(${a[c.FULLPLAIN]})$|^$`),y("COMPARATORTRIM",`(\\s*)${a[c.GTLT]}\\s*(${a[c.LOOSEPLAIN]}|${a[c.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",y("HYPHENRANGE",`^\\s*(${a[c.XRANGEPLAIN]})\\s+-\\s+(${a[c.XRANGEPLAIN]})\\s*$`),y("HYPHENRANGELOOSE",`^\\s*(${a[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[c.XRANGEPLAINLOOSE]})\\s*$`),y("STAR","(<|>)?=?\\s*\\*"),y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(rs,rs.exports)),rs.exports}var ss,dc;function V0(){if(dc)return ss;dc=1;const t=Object.freeze({loose:!0}),e=Object.freeze({});return ss=n=>n?typeof n!="object"?t:n:e,ss}var as,pc;function F0(){if(pc)return as;pc=1;const t=/^[0-9]+$/,e=(n,o)=>{if(typeof n=="number"&&typeof o=="number")return n===o?0:ne(o,n)},as}var ls,hc;function Ad(){if(hc)return ls;hc=1;const t=Sd(),{MAX_LENGTH:e,MAX_SAFE_INTEGER:n}=Td(),{safeRe:o,t:i}=B0(),r=V0(),{compareIdentifiers:s}=F0(),l=(d,c)=>{const p=c.split(".");if(p.length>d.length)return!1;for(let m=0;me)throw new TypeError(`version is longer than ${e} characters`);t("SemVer",c,p),this.options=p,this.loose=!!p.loose,this.includePrerelease=!!p.includePrerelease;const m=c.trim().match(p.loose?o[i.LOOSE]:o[i.FULL]);if(!m)throw new TypeError(`Invalid Version: ${c}`);if(this.raw=c,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");m[4]?this.prerelease=m[4].split(".").map(g=>{if(/^[0-9]+$/.test(g)){const E=+g;if(E>=0&&Ec.major?1:this.minorc.minor?1:this.patchc.patch?1:0}comparePre(c){if(c instanceof a||(c=new a(c,this.options)),this.prerelease.length&&!c.prerelease.length)return-1;if(!this.prerelease.length&&c.prerelease.length)return 1;if(!this.prerelease.length&&!c.prerelease.length)return 0;let p=0;do{const m=this.prerelease[p],g=c.prerelease[p];if(t("prerelease compare",p,m,g),m===void 0&&g===void 0)return 0;if(g===void 0)return 1;if(m===void 0)return-1;if(m!==g)return s(m,g)}while(++p)}compareBuild(c){c instanceof a||(c=new a(c,this.options));let p=0;do{const m=this.build[p],g=c.build[p];if(t("build compare",p,m,g),m===void 0&&g===void 0)return 0;if(g===void 0)return 1;if(m===void 0)return-1;if(m!==g)return s(m,g)}while(++p)}inc(c,p,m){if(c.startsWith("pre")){if(!p&&m===!1)throw new Error("invalid increment argument: identifier is empty");if(p){const g=`-${p}`.match(this.options.loose?o[i.PRERELEASELOOSE]:o[i.PRERELEASE]);if(!g||g[1]!==p)throw new Error(`invalid identifier: ${p}`)}}switch(c){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",p,m);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",p,m);break;case"prepatch":this.prerelease.length=0,this.inc("patch",p,m),this.inc("pre",p,m);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",p,m),this.inc("pre",p,m);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const g=Number(m)?1:0;if(this.prerelease.length===0)this.prerelease=[g];else{let E=this.prerelease.length;for(;--E>=0;)typeof this.prerelease[E]=="number"&&(this.prerelease[E]++,E=-2);if(E===-1){if(p===this.prerelease.join(".")&&m===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(g)}}if(p){let E=[p,g];if(m===!1&&(E=[p]),l(this.prerelease,p)){const y=this.prerelease[p.split(".").length];isNaN(y)&&(this.prerelease=E)}else this.prerelease=E}break}default:throw new Error(`invalid increment argument: ${c}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return ls=a,ls}var cs,fc;function j0(){if(fc)return cs;fc=1;const t=Ad();return cs=(e,n)=>new t(e,n).major,cs}var z0=j0();const mc=ca(z0);var us,gc;function H0(){if(gc)return us;gc=1;const t=Ad();return us=(e,n,o=!1)=>{if(e instanceof t)return e;try{return new t(e,n)}catch(i){if(!o)return null;throw i}},us}var ds,yc;function U0(){if(yc)return ds;yc=1;const t=H0();return ds=(e,n)=>{const o=t(e,n);return o?o.version:null},ds}var G0=U0();const W0=ca(G0);class q0{bus;constructor(e){typeof e.getVersion!="function"||!W0(e.getVersion())?console.warn("Proxying an event bus with an unknown or invalid version"):mc(e.getVersion())!==mc(this.getVersion())&&console.warn("Proxying an event bus of version "+e.getVersion()+" with "+this.getVersion()),this.bus=e}getVersion(){return"3.3.3"}subscribe(e,n){this.bus.subscribe(e,n)}unsubscribe(e,n){this.bus.unsubscribe(e,n)}emit(e,...n){this.bus.emit(e,...n)}}class J0{handlers=new Map;getVersion(){return"3.3.3"}subscribe(e,n){this.handlers.set(e,(this.handlers.get(e)||[]).concat(n))}unsubscribe(e,n){this.handlers.set(e,(this.handlers.get(e)||[]).filter(o=>o!==n))}emit(e,...n){(this.handlers.get(e)||[]).forEach(o=>{try{o(n[0])}catch(i){console.error("could not invoke event listener",i)}})}}let xo=null;function xd(){return xo!==null?xo:typeof window>"u"?new Proxy({},{get:()=>()=>console.error("Window not available, EventBus can not be established!")}):(window.OC?._eventBus&&typeof window._nc_event_bus>"u"&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),typeof window?._nc_event_bus<"u"?xo=new q0(window._nc_event_bus):xo=window._nc_event_bus=new J0,xo)}function K0(t,e){xd().subscribe(t,e)}function X0(t,...e){xd().emit(t,...e)}class Ii{static GLOBAL_SCOPE_VOLATILE="nextcloud_vol";static GLOBAL_SCOPE_PERSISTENT="nextcloud_per";scope;wrapped;constructor(e,n,o){this.scope=`${o?Ii.GLOBAL_SCOPE_PERSISTENT:Ii.GLOBAL_SCOPE_VOLATILE}_${btoa(e)}_`,this.wrapped=n}scopeKey(e){return`${this.scope}${e}`}setItem(e,n){this.wrapped.setItem(this.scopeKey(e),n)}getItem(e){return this.wrapped.getItem(this.scopeKey(e))}removeItem(e){this.wrapped.removeItem(this.scopeKey(e))}clear(){Object.keys(this.wrapped).filter(e=>e.startsWith(this.scope)).map(this.wrapped.removeItem.bind(this.wrapped))}}class Y0{appId;persisted=!1;clearedOnLogout=!1;constructor(e){this.appId=e}persist(e=!0){return this.persisted=e,this}clearOnLogout(e=!0){return this.clearedOnLogout=e,this}build(){return new Ii(this.appId,this.persisted?window.localStorage:window.sessionStorage,!this.clearedOnLogout)}}function Z0(t){return new Y0(t)}Q0();function I0(t){if(!t||typeof t!="string")throw new Error("Invalid CSRF token given",{cause:{token:t}});globalThis._nc_auth_requestToken!==t&&(globalThis._nc_auth_requestToken=t,globalThis.document&&(document.head.dataset.requesttoken=t),X0("csrf-token-update",{token:t,_internal:!0}))}function Q0(){K0("csrf-token-update",({token:t,_internal:e})=>{e||I0(t)})}Z0("public").persist().build();let no;function vc(t,e){return t?t.getAttribute(e):null}function ty(){if(no!==void 0)return no;const t=document?.getElementsByTagName("head")[0];if(!t)return null;const e=vc(t,"data-user");return e===null?(no=null,no):(no={uid:e,displayName:vc(t,"data-user-displayname"),isAdmin:!!window._oc_isadmin},no)}var Ft=(t=>(t[t.Debug=0]="Debug",t[t.Info=1]="Info",t[t.Warn=2]="Warn",t[t.Error=3]="Error",t[t.Fatal=4]="Fatal",t))(Ft||{});class ey{context;constructor(e){this.context=e||{}}formatMessage(e,n,o){let i="["+Ft[n].toUpperCase()+"] ";return o&&o.app&&(i+=o.app+": "),typeof e=="string"?i+e:(i+=`Unexpected ${e.name}`,e.message&&(i+=` "${e.message}"`),n===Ft.Debug&&e.stack&&(i+=` Stack trace: -${t.stack}`),i)}log(t,n,o){if(!(typeof this.context?.level=="number"&&t{document.readyState==="complete"||document.readyState==="interactive"?(t.context.level=window._oc_config?.loglevel??Ne.Warn,window._oc_debug&&(t.context.level=Ne.Debug),document.removeEventListener("readystatechange",n)):document.addEventListener("readystatechange",n)};return n(),this}build(){return this.context.level===void 0&&this.detectLogLevel(),this.factory(this.context)}}function qu(){return new y0(v0)}const b0=qu().detectUser().setApp("@nextcloud/vue").build(),zl=_f(),_0=at({name:"NcPopoverTriggerProvider",provide(){return{"NcPopover:trigger:shown":()=>this.shown,"NcPopover:trigger:attrs":()=>this.triggerAttrs}},props:{shown:{type:Boolean,required:!0},popupRole:{type:String,default:void 0}},computed:{triggerAttrs(){return{"aria-haspopup":this.popupRole,"aria-expanded":this.shown.toString()}}},render(){return this.$slots.default?.({attrs:this.triggerAttrs})}}),w0="_ncPopover_SapAL",E0={"material-design-icon":"_material-design-icon_Sit4G",ncPopover:w0},Ju="nc-popover-9";Al.themes[Ju]=structuredClone(Al.themes.dropdown);const T0={name:"NcPopover",components:{Dropdown:vg,NcPopoverTriggerProvider:_0},props:{boundary:{type:[String,Object],default:""},closeOnClickOutside:{type:Boolean,default:!0},noCloseOnClickOutside:{type:Boolean,default:!1},container:{type:[Boolean,String],default:"body"},delay:{type:[Number,Object],default:0},noFocusTrap:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},popoverBaseClass:{type:String,default:""},popoverTriggers:{type:[Array,Object],default:null},popupRole:{type:String,default:void 0,validator:e=>["menu","listbox","tree","grid","dialog","true"].includes(e)},setReturnFocus:{default:void 0,type:[Boolean,HTMLElement,SVGElement,String,Function]},shown:{type:Boolean,default:!1},triggers:{type:[Array,Object],default:()=>["click"]}},emits:["afterShow","afterHide","update:shown"],setup(){return{theme:Ju}},data(){return{internalShown:this.shown}},computed:{popperTriggers(){if(this.popoverTriggers&&Array.isArray(this.popoverTriggers))return this.popoverTriggers},popperHideTriggers(){if(this.popoverTriggers&&typeof this.popoverTriggers=="object")return this.popoverTriggers.hide},popperShowTriggers(){if(this.popoverTriggers&&typeof this.popoverTriggers=="object")return this.popoverTriggers.show},internalTriggers(){if(this.triggers&&Array.isArray(this.triggers))return this.triggers},hideTriggers(){if(this.triggers&&typeof this.triggers=="object")return this.triggers.hide},showTriggers(){if(this.triggers&&typeof this.triggers=="object")return this.triggers.show},internalPlacement(){return this.placement==="start"?zl?"right":"left":this.placement==="end"?zl?"left":"right":this.placement}},watch:{shown(e){this.internalShown=e},internalShown(e){this.$emit("update:shown",e)}},mounted(){this.checkTriggerA11y()},beforeUnmount(){this.clearFocusTrap(),this.clearEscapeStopPropagation()},methods:{checkTriggerA11y(){window.OC?.debug&&this.getPopoverTriggerContainerElement().querySelector("[aria-expanded]")},removeFloatingVueAriaDescribedBy(){const e=this.getPopoverTriggerContainerElement().querySelectorAll("[data-popper-shown]");for(const t of e)t.removeAttribute("aria-describedby")},getPopoverContentElement(){return this.$refs.popover?.$refs.popperContent?.$el},getPopoverTriggerContainerElement(){return this.$refs.popover?.$refs.popper?.$refs.reference},async useFocusTrap(){if(await this.$nextTick(),this.noFocusTrap)return;const e=this.getPopoverContentElement();e.tabIndex=-1,e&&(this.$focusTrap=qg(e,{escapeDeactivates:!1,allowOutsideClick:!0,setReturnFocus:this.setReturnFocus,trapStack:ps(),fallBackFocus:e}),this.$focusTrap.activate())},clearFocusTrap(e={}){try{this.$focusTrap?.deactivate(e),this.$focusTrap=null}catch(t){b0.warn("[NcPopover] Failed to clear focus trap",{error:t})}},addEscapeStopPropagation(){this.getPopoverContentElement()?.addEventListener("keydown",this.stopKeydownEscapeHandler)},clearEscapeStopPropagation(){this.getPopoverContentElement()?.removeEventListener("keydown",this.stopKeydownEscapeHandler)},stopKeydownEscapeHandler(e){e.type==="keydown"&&e.key==="Escape"&&e.stopPropagation()},async afterShow(){this.getPopoverContentElement().addEventListener("transitionend",()=>{this.$emit("afterShow")},{once:!0,passive:!0}),this.removeFloatingVueAriaDescribedBy(),await this.$nextTick(),await this.useFocusTrap(),this.addEscapeStopPropagation()},afterHide(){this.getPopoverContentElement()?.addEventListener("transitionend",()=>{this.$emit("afterHide")},{once:!0,passive:!0}),this.clearFocusTrap(),this.clearEscapeStopPropagation()}}};function S0(e,t,n,o,i,r){const s=nn("NcPopoverTriggerProvider"),l=nn("Dropdown");return L(),$e(l,{ref:"popover",shown:i.internalShown,"onUpdate:shown":[t[0]||(t[0]=a=>i.internalShown=a),t[1]||(t[1]=a=>i.internalShown=a)],arrowPadding:10,autoHide:!n.noCloseOnClickOutside&&n.closeOnClickOutside,boundary:n.boundary||void 0,container:n.container,delay:n.delay,distance:10,handleResize:"",noAutoFocus:!0,placement:r.internalPlacement,popperClass:[e.$style.ncPopover,n.popoverBaseClass],popperTriggers:r.popperTriggers,popperHideTriggers:r.popperHideTriggers,popperShowTriggers:r.popperShowTriggers,theme:o.theme,triggers:r.internalTriggers,hideTriggers:r.hideTriggers,showTriggers:r.showTriggers,onApplyShow:r.afterShow,onApplyHide:r.afterHide},{popper:Re(a=>[De(e.$slots,"default",qr(Oi(a)))]),default:Re(()=>[le(s,{shown:i.internalShown,popupRole:n.popupRole},{default:Re(a=>[De(e.$slots,"trigger",qr(Oi(a)))]),_:3},8,["shown","popupRole"])]),_:3},8,["shown","autoHide","boundary","container","delay","placement","popperClass","popperTriggers","popperHideTriggers","popperShowTriggers","theme","triggers","hideTriggers","showTriggers","onApplyShow","onApplyHide"])}const x0={$style:E0},Gl=Be(T0,[["render",S0],["__cssModules",x0]]),A0={name:"DotsHorizontalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},C0=["aria-hidden","aria-label"],$0=["fill","width","height"],k0={d:"M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z"},R0={key:0};function O0(e,t,n,o,i,r){return L(),z("span",ze(e.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon dots-horizontal-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(L(),z("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[ne("path",k0,[n.title?(L(),z("title",R0,fe(n.title),1)):ye("",!0)])],8,$0))],16,C0)}const L0=Be(A0,[["render",O0]]);Ws(Cf);function Xu(e){return Array.isArray(e)&&e.some(t=>{if(t===null)return!1;if(typeof t=="object"){const n=t;if(n.type===Gt||n.type===Ue&&!Xu(n.children)||n.type===Qo&&!n.children.trim())return!1}return!0})}const P0=".focusable",M0={name:"NcActions",components:{NcButton:Po,NcPopover:Gl},provide(){return{[fu]:ve(()=>this.actionsMenuSemanticType==="menu"),[mu]:this.closeMenu}},props:{open:{type:Boolean,default:!1},manualOpen:{type:Boolean,default:!1},forceMenu:{type:Boolean,default:!1},forceName:{type:Boolean,default:!1},menuName:{type:String,default:null},primary:{type:Boolean,default:!1},defaultIcon:{type:String,default:""},ariaLabel:{type:String,default:Gs("Actions")},placement:{type:String,default:"bottom"},boundariesElement:{type:Element,default:()=>document.getElementById("content-vue")??document.querySelector("body")},container:{type:[Boolean,String,Object,Element],default:"body"},disabled:{type:Boolean,default:!1},inline:{type:Number,default:0},variant:{type:String,validator(e){return["primary","secondary","tertiary","tertiary-no-background","tertiary-on-primary","error","warning","success"].includes(e)},default:null},size:{type:String,default:"normal",validator(e){return["small","normal","large"].includes(e)}}},emits:["click","blur","focus","close","closed","open","opened","update:open"],setup(){return{randomId:Lo()}},data(){return{opened:this.open,focusIndex:0,actionsMenuSemanticType:"unknown"}},computed:{triggerButtonVariant(){return this.variant||(this.primary?"primary":this.menuName?"secondary":"tertiary")},config(){return{menu:{popupRole:"menu",withArrowNavigation:!0,withTabNavigation:!1,withFocusTrap:!1},navigation:{popupRole:void 0,withArrowNavigation:!1,withTabNavigation:!0,withFocusTrap:!1},dialog:{popupRole:"dialog",withArrowNavigation:!1,withTabNavigation:!0,withFocusTrap:!0},tooltip:{popupRole:void 0,withArrowNavigation:!1,withTabNavigation:!1,withFocusTrap:!1},unknown:{popupRole:void 0,role:void 0,withArrowNavigation:!0,withTabNavigation:!1,withFocusTrap:!0}}[this.actionsMenuSemanticType]},withFocusTrap(){return this.config.withFocusTrap}},watch:{open(e){e!==this.opened&&(this.opened=e)},opened(){this.opened?document.body.addEventListener("keydown",this.handleEscapePressed):document.body.removeEventListener("keydown",this.handleEscapePressed)}},created(){pm(()=>this.opened,{disabled:()=>this.config.withFocusTrap}),"ariaHidden"in this.$attrs},methods:{getActionName(e){return e?.type?.name},isValidSingleAction(e){return["NcActionButton","NcActionLink","NcActionRouter"].includes(this.getActionName(e))},isAction(e){return this.getActionName(e)?.startsWith?.("NcAction")},isIconUrl(e){try{return!!new URL(e,e.startsWith("/")?window.location.origin:void 0)}catch{return!1}},toggleMenu(e){e?this.openMenu():this.closeMenu()},openMenu(){this.opened||(this.opened=!0,this.$emit("update:open",!0),this.$emit("open"))},async closeMenu(e=!0){this.opened&&(await this.$nextTick(),this.opened=!1,this.$refs.popover?.clearFocusTrap({returnFocus:e}),this.$emit("update:open",!1),this.$emit("close"),this.focusIndex=0,e&&this.$refs.triggerButton?.$el.focus())},onOpened(){this.$nextTick(()=>{this.focusFirstAction(null),this.$emit("opened")})},onClosed(){this.$emit("closed")},getCurrentActiveMenuItemElement(){return this.$refs.menu.querySelector("li.active")},getFocusableMenuItemElements(){return this.$refs.menu.querySelectorAll(P0)},onKeydown(e){if(e.key==="Tab"){if(this.config.withFocusTrap)return;if(!this.config.withTabNavigation){this.closeMenu(!0);return}e.preventDefault();const t=this.getFocusableMenuItemElements(),n=[...t].indexOf(document.activeElement);if(n===-1)return;const o=e.shiftKey?n-1:n+1;(o<0||o===t.length)&&this.closeMenu(!0),this.focusIndex=o,this.focusAction();return}this.config.withArrowNavigation&&(e.key==="ArrowUp"&&this.focusPreviousAction(e),e.key==="ArrowDown"&&this.focusNextAction(e),e.key==="PageUp"&&this.focusFirstAction(e),e.key==="PageDown"&&this.focusLastAction(e)),this.handleEscapePressed(e)},onTriggerKeydown(e){e.key==="Escape"&&this.actionsMenuSemanticType==="tooltip"&&this.closeMenu()},handleEscapePressed(e){e.key==="Escape"&&(this.closeMenu(),e.preventDefault())},removeCurrentActive(){const e=this.$refs.menu.querySelector("li.active");e&&e.classList.remove("active")},focusAction(){const e=this.getFocusableMenuItemElements()[this.focusIndex];if(e){this.removeCurrentActive();const t=e.closest("li.action");e.focus(),t&&t.classList.add("active")}},focusPreviousAction(e){this.opened&&(this.focusIndex===0?this.focusLastAction(e):(this.preventIfEvent(e),this.focusIndex=this.focusIndex-1),this.focusAction())},focusNextAction(e){if(this.opened){const t=this.getFocusableMenuItemElements().length-1;this.focusIndex===t?this.focusFirstAction(e):(this.preventIfEvent(e),this.focusIndex=this.focusIndex+1),this.focusAction()}},focusFirstAction(e){if(this.opened){this.preventIfEvent(e);const t=[...this.getFocusableMenuItemElements()].findIndex(n=>n.getAttribute("aria-checked")==="true"&&n.getAttribute("role")==="menuitemradio");this.focusIndex=t>-1?t:0,this.focusAction()}},focusLastAction(e){this.opened&&(this.preventIfEvent(e),this.focusIndex=this.getFocusableMenuItemElements().length-1,this.focusAction())},preventIfEvent(e){e&&(e.preventDefault(),e.stopPropagation())},onFocus(e){this.$emit("focus",e)},onBlur(e){this.$emit("blur",e),this.actionsMenuSemanticType==="tooltip"&&this.$refs.menu&&this.getFocusableMenuItemElements().length===0&&this.closeMenu(!1)},onClick(e){this.$emit("click",e)}},render(){const e=[],t=(g,_)=>{g.forEach(v=>{if(this.isAction(v)){_.push(v);return}v.type===Ue&&t(v.children,_)})};if(t(this.$slots.default?.(),e),e.length===0)return;let n=e.filter(this.isValidSingleAction);this.forceMenu&&n.length>0&&this.inline>0&&(n=[]);const o=n.slice(0,this.inline),i=e.filter(g=>!o.includes(g)),r=["NcActionButton","NcActionButtonGroup","NcActionCheckbox","NcActionRadio"],s=["NcActionInput","NcActionTextEditable"],l=["NcActionLink","NcActionRouter"],a=i.some(g=>s.includes(this.getActionName(g))),d=i.some(g=>r.includes(this.getActionName(g))),c=i.some(g=>l.includes(this.getActionName(g)));a?this.actionsMenuSemanticType="dialog":d?this.actionsMenuSemanticType="menu":c?this.actionsMenuSemanticType="navigation":e.filter(g=>this.getActionName(g).startsWith("NcAction")).length===e.length?this.actionsMenuSemanticType="tooltip":this.actionsMenuSemanticType="unknown";const p=g=>{const _=g?.props?.icon,v=g?.children?.icon?.()?.[0]??(this.isIconUrl(_)?ft("img",{class:"action-item__menutoggle__icon",src:_,alt:""}):ft("span",{class:["icon",_]})),k=g?.children?.default?.()?.[0]?.children?.trim(),R=this.forceName?k:"";let P=g?.props?.title;this.forceName||P||(P=k);const D={...g?.props??{}},$=["submit","reset"].includes(D.type)?D.modelValue:"button";return delete D.modelValue,delete D.type,ft(Po,ze(D,{class:"action-item action-item--single","aria-label":g?.props?.["aria-label"]||k,title:P,disabled:this.disabled||g?.props?.disabled,pressed:g?.props?.modelValue,size:this.size,type:$,variant:this.variant||(R?"secondary":"tertiary"),onFocus:this.onFocus,onBlur:this.onBlur,"onUpdate:pressed":g?.props?.["onUpdate:modelValue"]??(()=>{})}),{default:()=>R,icon:()=>v})},m=g=>{const _=Xu(this.$slots.icon?.())?this.$slots.icon?.():this.defaultIcon?ft("span",{class:["icon",this.defaultIcon]}):ft(L0,{size:20}),v=`${this.randomId}-trigger`;return ft(Gl,{ref:"popover",delay:0,shown:this.opened,placement:this.placement,boundary:this.boundariesElement,autoBoundaryMaxSize:!0,container:this.container,...this.manualOpen&&{triggers:[]},noCloseOnClickOutside:this.manualOpen,popoverBaseClass:"action-item__popper",popupRole:this.config.popupRole,setReturnFocus:this.config.withFocusTrap?this.$refs.triggerButton?.$el:void 0,noFocusTrap:!this.config.withFocusTrap,"onUpdate:shown":this.toggleMenu,onAfterShow:this.onOpened,onAfterClose:this.onClosed},{trigger:()=>ft(Po,{id:v,class:"action-item__menutoggle",disabled:this.disabled,size:this.size,variant:this.triggerButtonVariant,ref:"triggerButton","aria-label":this.menuName?null:this.ariaLabel,"aria-controls":this.opened&&this.config.popupRole?this.randomId:null,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,onKeydown:this.onTriggerKeydown},{icon:()=>_,default:()=>this.menuName}),default:()=>ft("div",{class:{open:this.opened},tabindex:"-1",onKeydown:this.onKeydown,ref:"menu"},[ft("ul",{id:this.randomId,tabindex:"-1",ref:"menuList",role:this.config.popupRole,"aria-labelledby":v,"aria-modal":this.actionsMenuSemanticType==="dialog"?"true":void 0},[g])])})};return e.length===1&&n.length===1&&!this.forceMenu?p(e[0]):(this.$nextTick(()=>{this.opened&&this.$refs.menu&&(this.$refs.menu.querySelector("li.active")||[]).length===0&&this.focusFirstAction()}),o.length>0&&this.inline>0?ft("div",{class:["action-items",`action-item--${this.triggerButtonVariant}`]},[...o.map(p),i.length>0?ft("div",{class:["action-item",{"action-item--open":this.opened}]},[m(i)]):null]):ft("div",{class:["action-item action-item--default-popover",`action-item--${this.triggerButtonVariant}`,{"action-item--open":this.opened}]},[m(e)]))}},N0=Be(M0,[["__scopeId","data-v-5f7eed6b"]]),Fn=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},D0={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},F0=["aria-hidden","aria-label"],B0=["fill","width","height"],V0={d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"},j0={key:0};function U0(e,t,n,o,i,r){return L(),z("span",ze(e.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon plus-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(L(),z("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[ne("path",V0,[n.title?(L(),z("title",j0,fe(n.title),1)):ye("",!0)])],8,B0))],16,F0)}const H0=Fn(D0,[["render",U0]]),z0={name:"ShieldCheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},G0=["aria-hidden","aria-label"],W0=["fill","width","height"],q0={d:"M10,17L6,13L7.41,11.59L10,14.17L16.59,7.58L18,9M12,1L3,5V11C3,16.55 6.84,21.74 12,23C17.16,21.74 21,16.55 21,11V5L12,1Z"},J0={key:0};function X0(e,t,n,o,i,r){return L(),z("span",ze(e.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon shield-check-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(L(),z("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[ne("path",q0,[n.title?(L(),z("title",J0,fe(n.title),1)):ye("",!0)])],8,W0))],16,G0)}const K0=Fn(z0,[["render",X0]]),Ts={account:Se("password_policy","Account password policies"),sharing:Se("password_policy","Share password policies")},Y0={enforceHaveIBeenPwned:!1,enforceNonCommonPassword:!0,enforceNumericCharacters:!1,enforceSpecialCharacters:!1,enforceUpperLowerCase:!1,minLength:10},Z0=at({__name:"AddPolicyButton",props:{policies:{}},emits:["addPolicy"],setup(e){const t=e,n=["account","sharing"],o=ve(()=>n.filter(i=>!(i in t.policies)));return(i,r)=>(L(),z("div",{class:xe(i.$style.container)},[le(X(N0),{menuName:X(Se)("password_policy","Add policy set"),forceMenu:""},{icon:Re(()=>[le(H0,{size:20})]),default:Re(()=>[(L(!0),z(Ue,null,Mc(o.value,s=>(L(),$e(X(um),{key:s,closeAfterClick:"",onClick:l=>i.$emit("addPolicy",s)},{icon:Re(()=>[le(K0,{size:20})]),default:Re(()=>[_t(" "+fe(X(Ts)[s]),1)]),_:2},1032,["onClick"]))),128))]),_:1},8,["menuName"])],2))}}),I0="_container_10xyb_2",Q0={container:I0},ev={$style:Q0},tv=Fn(Z0,[["__cssModules",ev]]),nv={class:"input-field__main-wrapper"},ov=["id","aria-describedby","disabled","placeholder","type","value"],iv=["for"],rv={class:"input-field__icon input-field__icon--leading"},sv={key:2,class:"input-field__icon input-field__icon--trailing"},av=["id"],lv=at({inheritAttrs:!1,__name:"NcInputField",props:Ta({class:{default:""},inputClass:{default:""},id:{default:()=>Lo()},label:{default:void 0},labelOutside:{type:Boolean},type:{default:"text"},placeholder:{default:void 0},showTrailingButton:{type:Boolean},trailingButtonLabel:{default:void 0},success:{type:Boolean},error:{type:Boolean},helperText:{default:""},disabled:{type:Boolean},pill:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:Ta(["trailingButtonClick"],["update:modelValue"]),setup(e,{expose:t,emit:n}){const o=Pp(e,"modelValue"),i=e,r=n;t({focus:m,select:g});const s=Sp(),l=dp("input"),a=ve(()=>i.showTrailingButton||i.success),d=ve(()=>{if(i.placeholder)return i.placeholder;if(i.label)return Di?i.label:""}),c=ve(()=>i.label||i.labelOutside),p=ve(()=>{const v=[];return i.helperText&&v.push(`${i.id}-helper-text`),s["aria-describedby"]&&v.push(String(s["aria-describedby"])),v.join(" ")||void 0});function m(v){l.value.focus(v)}function g(){l.value.select()}function _(v){const k=v.target;o.value=i.type==="number"&&typeof o.value=="number"?parseFloat(k.value):k.value}return(v,k)=>(L(),z("div",{class:xe(["input-field",[{"input-field--disabled":e.disabled,"input-field--error":e.error,"input-field--label-outside":e.labelOutside||!c.value,"input-field--leading-icon":!!v.$slots.icon,"input-field--trailing-icon":a.value,"input-field--pill":e.pill,"input-field--success":e.success,"input-field--legacy":X(Di)},v.$props.class]])},[ne("div",nv,[ne("input",ze(v.$attrs,{id:e.id,ref:"input","aria-describedby":p.value,"aria-live":"polite",class:["input-field__input",e.inputClass],disabled:e.disabled,placeholder:d.value,type:e.type,value:o.value.toString(),onInput:_}),null,16,ov),!e.labelOutside&&c.value?(L(),z("label",{key:0,class:"input-field__label",for:e.id},fe(e.label),9,iv)):ye("",!0),Qr(ne("div",rv,[De(v.$slots,"icon",{},void 0,!0)],512),[[ss,!!v.$slots.icon]]),e.showTrailingButton?(L(),$e(Po,{key:1,class:"input-field__trailing-button","aria-label":e.trailingButtonLabel,disabled:e.disabled,variant:"tertiary-no-background",onClick:k[0]||(k[0]=R=>r("trailingButtonClick",R))},{icon:Re(()=>[De(v.$slots,"trailing-button-icon",{},void 0,!0)]),_:3},8,["aria-label","disabled"])):e.success||e.error?(L(),z("div",sv,[e.success?(L(),$e(On,{key:0,path:X(ds)},null,8,["path"])):(L(),$e(On,{key:1,path:X(sl)},null,8,["path"]))])):ye("",!0)]),e.helperText?(L(),z("p",{key:0,id:`${e.id}-helper-text`,class:"input-field__helper-text-message"},[e.success?(L(),$e(On,{key:0,class:"input-field__helper-text-message__icon",path:X(ds),inline:""},null,8,["path"])):e.error?(L(),$e(On,{key:1,class:"input-field__helper-text-message__icon",path:X(sl),inline:""},null,8,["path"])):ye("",!0),_t(" "+fe(e.helperText),1)],8,av)):ye("",!0)],2))}}),Ei=Be(lv,[["__scopeId","data-v-8e16cbb5"]]),cv=["role"],uv={key:0,class:"notecard__heading"},dv={class:"notecard__text"},pv=at({__name:"NcNoteCard",props:{heading:{default:void 0},showAlert:{type:Boolean},text:{default:void 0},type:{default:"warning"}},setup(e){const t=e,n=ve(()=>t.showAlert||t.type==="error"),o=ve(()=>{switch(t.type){case"error":return zf;case"success":return Gf;case"info":return qf;default:return Hf}});return(i,r)=>(L(),z("div",{class:xe(["notecard",{[`notecard--${e.type}`]:e.type,"notecard--legacy":X(Di)}]),role:n.value?"alert":"note"},[De(i.$slots,"icon",{},()=>[le(X(On),{path:o.value,class:xe(["notecard__icon",{"notecard__icon--heading":e.heading}]),inline:""},null,8,["path","class"])],!0),ne("div",null,[e.heading?(L(),z("p",uv,fe(e.heading),1)):ye("",!0),De(i.$slots,"default",{},()=>[ne("p",dv,fe(e.text),1)],!0)])],10,cv))}}),Wl=Be(pv,[["__scopeId","data-v-6be9fa31"]]),xo=qu().setApp("password_policy").build(),hv=at({__name:"ComplianceConfig",setup(e){const t=Ir(ls("password_policy","loginConfig")),n=Ir(ls("password_policy","loginConfig"));to(t,o,{deep:!0});function o(){for(const[i,r]of Object.entries(t.value)){let s=Math.max(r||0,0);s=Number.isNaN(s)?0:s,xo.debug("Saving compliance config",{numericValue:s,value:r,oldValue:n.value[i]}),n.value[i]!==s&&(window.OCP.AppConfig.setValue("password_policy",i,JSON.stringify(s)),n.value[i]=s),t.value[i]!==s&&(t.value[i]=s)}}return(i,r)=>(L(),z("form",{class:xe(i.$style.form),onSubmit:r[3]||(r[3]=lu(()=>{},["prevent"]))},[ne("h3",{class:xe(i.$style.heading)},fe(X(Se)("password_policy","Login policies")),3),ne("div",{class:xe(i.$style.inputField)},[le(X(Ei),{modelValue:t.value.historySize,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value.historySize=s),label:X(Se)("password_policy","Password history size"),helperText:X(Se)("password_policy","Number of passwords to keep (securely hashed) to prevent users from reusing previously used passwords."),min:"0",type:"number"},null,8,["modelValue","label","helperText"])],2),ne("div",{class:xe(i.$style.inputField)},[le(X(Ei),{modelValue:t.value.maximumLoginAttempts,"onUpdate:modelValue":r[1]||(r[1]=s=>t.value.maximumLoginAttempts=s),label:X(Se)("password_policy","Maximum login attempts"),min:"0",type:"number",helperText:X(Se)("password_policy","Number of login attempts before the user account will be disabled until manual action is taken. (0 for no limit)")},null,8,["modelValue","label","helperText"]),Qr(le(X(Wl),{heading:X(Se)("password_policy","Maximum login attempts"),text:X(Se)("password_policy","Please note, this option is meant to protect attacked accounts. Disabled accounts have to be re-enabled manually by administration. Attackers that try to guess passwords of accounts will have their IP address blocked by the bruteforce protection independent from this setting."),type:"info"},null,8,["heading","text"]),[[ss,t.value.maximumLoginAttempts>0]])],2),ne("div",{class:xe(i.$style.inputField)},[le(X(Ei),{modelValue:t.value.expiration,"onUpdate:modelValue":r[2]||(r[2]=s=>t.value.expiration=s),label:X(Se)("password_policy","Number of days until user password expires"),min:"0",type:"number"},null,8,["modelValue","label"]),Qr(le(X(Wl),{heading:X(Se)("password_policy","Password expiration"),text:X(Se)("password_policy","Warning: enabling password expiration is nowadays considered a security risk by several security agencies."),type:"warning"},null,8,["heading","text"]),[[ss,t.value.expiration>0]])],2)],34))}}),fv="_form_5u8co_2",mv="_heading_5u8co_8",gv="_inputField_5u8co_13",vv={form:fv,heading:mv,inputField:gv},yv={$style:vv},bv=Fn(hv,[["__cssModules",yv]]),_v=`{document.readyState==="complete"||document.readyState==="interactive"?(e.context.level=window._oc_config?.loglevel??Ft.Warn,window._oc_debug&&(e.context.level=Ft.Debug),document.removeEventListener("readystatechange",n)):document.addEventListener("readystatechange",n)};return n(),this}build(){return this.context.level===void 0&&this.detectLogLevel(),this.factory(this.context)}}function Cd(){return new oy(ny)}const iy=Cd().detectUser().setApp("@nextcloud/vue").build(),bc=rm(),ry=le({name:"NcPopoverTriggerProvider",provide(){return{"NcPopover:trigger:shown":()=>this.shown,"NcPopover:trigger:attrs":()=>this.triggerAttrs}},props:{shown:{type:Boolean,required:!0},popupRole:{type:String,default:void 0}},computed:{triggerAttrs(){return{"aria-haspopup":this.popupRole,"aria-expanded":this.shown.toString()}}},render(){return this.$slots.default?.({attrs:this.triggerAttrs})}}),sy="_ncPopover_SapAL",ay={"material-design-icon":"_material-design-icon_Sit4G",ncPopover:sy},kd="nc-popover-9";nc.themes[kd]=structuredClone(nc.themes.dropdown);const ly={name:"NcPopover",components:{Dropdown:n0,NcPopoverTriggerProvider:ry},props:{boundary:{type:[String,Object],default:""},closeOnClickOutside:{type:Boolean,default:!0},noCloseOnClickOutside:{type:Boolean,default:!1},container:{type:[Boolean,String],default:"body"},delay:{type:[Number,Object],default:0},noFocusTrap:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},popoverBaseClass:{type:String,default:""},popoverTriggers:{type:[Array,Object],default:null},popupRole:{type:String,default:void 0,validator:t=>["menu","listbox","tree","grid","dialog","true"].includes(t)},setReturnFocus:{default:void 0,type:[Boolean,HTMLElement,SVGElement,String,Function]},shown:{type:Boolean,default:!1},triggers:{type:[Array,Object],default:()=>["click"]}},emits:["afterShow","afterHide","update:shown"],setup(){return{theme:kd}},data(){return{internalShown:this.shown}},computed:{popperTriggers(){if(this.popoverTriggers&&Array.isArray(this.popoverTriggers))return this.popoverTriggers},popperHideTriggers(){if(this.popoverTriggers&&typeof this.popoverTriggers=="object")return this.popoverTriggers.hide},popperShowTriggers(){if(this.popoverTriggers&&typeof this.popoverTriggers=="object")return this.popoverTriggers.show},internalTriggers(){if(this.triggers&&Array.isArray(this.triggers))return this.triggers},hideTriggers(){if(this.triggers&&typeof this.triggers=="object")return this.triggers.hide},showTriggers(){if(this.triggers&&typeof this.triggers=="object")return this.triggers.show},internalPlacement(){return this.placement==="start"?bc?"right":"left":this.placement==="end"?bc?"left":"right":this.placement}},watch:{shown(t){this.internalShown=t},internalShown(t){this.$emit("update:shown",t)}},mounted(){this.checkTriggerA11y()},beforeUnmount(){this.clearFocusTrap(),this.clearEscapeStopPropagation()},methods:{checkTriggerA11y(){window.OC?.debug&&this.getPopoverTriggerContainerElement().querySelector("[aria-expanded]")},removeFloatingVueAriaDescribedBy(){const t=this.getPopoverTriggerContainerElement().querySelectorAll("[data-popper-shown]");for(const e of t)e.removeAttribute("aria-describedby")},getPopoverContentElement(){return this.$refs.popover?.$refs.popperContent?.$el},getPopoverTriggerContainerElement(){return this.$refs.popover?.$refs.popper?.$refs.reference},async useFocusTrap(){if(await this.$nextTick(),this.noFocusTrap)return;const t=this.getPopoverContentElement();t.tabIndex=-1,t&&(this.$focusTrap=R0(t,{escapeDeactivates:!1,allowOutsideClick:!0,setReturnFocus:this.setReturnFocus,trapStack:Ps(),fallBackFocus:t}),this.$focusTrap.activate())},clearFocusTrap(t={}){try{this.$focusTrap?.deactivate(t),this.$focusTrap=null}catch(e){iy.warn("[NcPopover] Failed to clear focus trap",{error:e})}},addEscapeStopPropagation(){this.getPopoverContentElement()?.addEventListener("keydown",this.stopKeydownEscapeHandler)},clearEscapeStopPropagation(){this.getPopoverContentElement()?.removeEventListener("keydown",this.stopKeydownEscapeHandler)},stopKeydownEscapeHandler(t){t.type==="keydown"&&t.key==="Escape"&&t.stopPropagation()},async afterShow(){this.getPopoverContentElement().addEventListener("transitionend",()=>{this.$emit("afterShow")},{once:!0,passive:!0}),this.removeFloatingVueAriaDescribedBy(),await this.$nextTick(),await this.useFocusTrap(),this.addEscapeStopPropagation()},afterHide(){this.getPopoverContentElement()?.addEventListener("transitionend",()=>{this.$emit("afterHide")},{once:!0,passive:!0}),this.clearFocusTrap(),this.clearEscapeStopPropagation()}}};function cy(t,e,n,o,i,r){const s=ln("NcPopoverTriggerProvider"),l=ln("Dropdown");return M(),Ot(l,{ref:"popover",shown:i.internalShown,"onUpdate:shown":[e[0]||(e[0]=a=>i.internalShown=a),e[1]||(e[1]=a=>i.internalShown=a)],arrowPadding:10,autoHide:!n.noCloseOnClickOutside&&n.closeOnClickOutside,boundary:n.boundary||void 0,container:n.container,delay:n.delay,distance:10,handleResize:"",noAutoFocus:!0,placement:r.internalPlacement,popperClass:[t.$style.ncPopover,n.popoverBaseClass],popperTriggers:r.popperTriggers,popperHideTriggers:r.popperHideTriggers,popperShowTriggers:r.popperShowTriggers,theme:o.theme,triggers:r.internalTriggers,hideTriggers:r.hideTriggers,showTriggers:r.showTriggers,onApplyShow:r.afterShow,onApplyHide:r.afterHide},{popper:Lt(a=>[zt(t.$slots,"default",ps(Bi(a)))]),default:Lt(()=>[ct(s,{shown:i.internalShown,popupRole:n.popupRole},{default:Lt(a=>[zt(t.$slots,"trigger",ps(Bi(a)))]),_:3},8,["shown","popupRole"])]),_:3},8,["shown","autoHide","boundary","container","delay","placement","popperClass","popperTriggers","popperHideTriggers","popperShowTriggers","theme","triggers","hideTriggers","showTriggers","onApplyShow","onApplyHide"])}const uy={$style:ay},_c=Ht(ly,[["render",cy],["__cssModules",uy]]),dy={name:"DotsHorizontalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},py=["aria-hidden","aria-label"],hy=["fill","width","height"],fy={d:"M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z"},my={key:0};function gy(t,e,n,o,i,r){return M(),G("span",Kt(t.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon dots-horizontal-icon",role:"img",onClick:e[0]||(e[0]=s=>t.$emit("click",s))}),[(M(),G("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[et("path",fy,[n.title?(M(),G("title",my,ft(n.title),1)):vt("",!0)])],8,hy))],16,py)}const yy=Ht(dy,[["render",gy]]);pa(pm);function $d(t){return Array.isArray(t)&&t.some(e=>{if(e===null)return!1;if(typeof e=="object"){const n=e;if(n.type===me||n.type===jt&&!$d(n.children)||n.type===ni&&!n.children.trim())return!1}return!0})}const vy=".focusable",by={name:"NcActions",components:{NcButton:Bo,NcPopover:_c},provide(){return{[Xu]:yt(()=>this.actionsMenuSemanticType==="menu"),[Yu]:this.closeMenu}},props:{open:{type:Boolean,default:!1},manualOpen:{type:Boolean,default:!1},forceMenu:{type:Boolean,default:!1},forceName:{type:Boolean,default:!1},menuName:{type:String,default:null},primary:{type:Boolean,default:!1},defaultIcon:{type:String,default:""},ariaLabel:{type:String,default:da("Actions")},placement:{type:String,default:"bottom"},boundariesElement:{type:Element,default:()=>document.getElementById("content-vue")??document.querySelector("body")},container:{type:[Boolean,String,Object,Element],default:"body"},disabled:{type:Boolean,default:!1},inline:{type:Number,default:0},variant:{type:String,validator(t){return["primary","secondary","tertiary","tertiary-no-background","tertiary-on-primary","error","warning","success"].includes(t)},default:null},size:{type:String,default:"normal",validator(t){return["small","normal","large"].includes(t)}}},emits:["click","blur","focus","close","closed","open","opened","update:open"],setup(){return{randomId:No()}},data(){return{opened:this.open,focusIndex:0,actionsMenuSemanticType:"unknown"}},computed:{triggerButtonVariant(){return this.variant||(this.primary?"primary":this.menuName?"secondary":"tertiary")},config(){return{menu:{popupRole:"menu",withArrowNavigation:!0,withTabNavigation:!1,withFocusTrap:!1},navigation:{popupRole:void 0,withArrowNavigation:!1,withTabNavigation:!0,withFocusTrap:!1},dialog:{popupRole:"dialog",withArrowNavigation:!1,withTabNavigation:!0,withFocusTrap:!0},tooltip:{popupRole:void 0,withArrowNavigation:!1,withTabNavigation:!1,withFocusTrap:!1},unknown:{popupRole:void 0,role:void 0,withArrowNavigation:!0,withTabNavigation:!1,withFocusTrap:!0}}[this.actionsMenuSemanticType]},withFocusTrap(){return this.config.withFocusTrap}},watch:{open(t){t!==this.opened&&(this.opened=t)},opened(){this.opened?document.body.addEventListener("keydown",this.handleEscapePressed):document.body.removeEventListener("keydown",this.handleEscapePressed)}},created(){Zm(()=>this.opened,{disabled:()=>this.config.withFocusTrap}),"ariaHidden"in this.$attrs},methods:{getActionName(t){return t?.type?.name},isValidSingleAction(t){return["NcActionButton","NcActionLink","NcActionRouter"].includes(this.getActionName(t))},isAction(t){return this.getActionName(t)?.startsWith?.("NcAction")},isIconUrl(t){try{return!!new URL(t,t.startsWith("/")?window.location.origin:void 0)}catch{return!1}},toggleMenu(t){t?this.openMenu():this.closeMenu()},openMenu(){this.opened||(this.opened=!0,this.$emit("update:open",!0),this.$emit("open"))},async closeMenu(t=!0){this.opened&&(await this.$nextTick(),this.opened=!1,this.$refs.popover?.clearFocusTrap({returnFocus:t}),this.$emit("update:open",!1),this.$emit("close"),this.focusIndex=0,t&&this.$refs.triggerButton?.$el.focus())},onOpened(){this.$nextTick(()=>{this.focusFirstAction(null),this.$emit("opened")})},onClosed(){this.$emit("closed")},getCurrentActiveMenuItemElement(){return this.$refs.menu.querySelector("li.active")},getFocusableMenuItemElements(){return this.$refs.menu.querySelectorAll(vy)},onKeydown(t){if(t.key==="Tab"){if(this.config.withFocusTrap)return;if(!this.config.withTabNavigation){this.closeMenu(!0);return}t.preventDefault();const e=this.getFocusableMenuItemElements(),n=[...e].indexOf(document.activeElement);if(n===-1)return;const o=t.shiftKey?n-1:n+1;(o<0||o===e.length)&&this.closeMenu(!0),this.focusIndex=o,this.focusAction();return}this.config.withArrowNavigation&&(t.key==="ArrowUp"&&this.focusPreviousAction(t),t.key==="ArrowDown"&&this.focusNextAction(t),t.key==="PageUp"&&this.focusFirstAction(t),t.key==="PageDown"&&this.focusLastAction(t)),this.handleEscapePressed(t)},onTriggerKeydown(t){t.key==="Escape"&&this.actionsMenuSemanticType==="tooltip"&&this.closeMenu()},handleEscapePressed(t){t.key==="Escape"&&(this.closeMenu(),t.preventDefault())},removeCurrentActive(){const t=this.$refs.menu.querySelector("li.active");t&&t.classList.remove("active")},focusAction(){const t=this.getFocusableMenuItemElements()[this.focusIndex];if(t){this.removeCurrentActive();const e=t.closest("li.action");t.focus(),e&&e.classList.add("active")}},focusPreviousAction(t){this.opened&&(this.focusIndex===0?this.focusLastAction(t):(this.preventIfEvent(t),this.focusIndex=this.focusIndex-1),this.focusAction())},focusNextAction(t){if(this.opened){const e=this.getFocusableMenuItemElements().length-1;this.focusIndex===e?this.focusFirstAction(t):(this.preventIfEvent(t),this.focusIndex=this.focusIndex+1),this.focusAction()}},focusFirstAction(t){if(this.opened){this.preventIfEvent(t);const e=[...this.getFocusableMenuItemElements()].findIndex(n=>n.getAttribute("aria-checked")==="true"&&n.getAttribute("role")==="menuitemradio");this.focusIndex=e>-1?e:0,this.focusAction()}},focusLastAction(t){this.opened&&(this.preventIfEvent(t),this.focusIndex=this.getFocusableMenuItemElements().length-1,this.focusAction())},preventIfEvent(t){t&&(t.preventDefault(),t.stopPropagation())},onFocus(t){this.$emit("focus",t)},onBlur(t){this.$emit("blur",t),this.actionsMenuSemanticType==="tooltip"&&this.$refs.menu&&this.getFocusableMenuItemElements().length===0&&this.closeMenu(!1)},onClick(t){this.$emit("click",t)}},render(){const t=[],e=(g,E)=>{g.forEach(y=>{if(this.isAction(y)){E.push(y);return}y.type===jt&&e(y.children,E)})};if(e(this.$slots.default?.(),t),t.length===0)return;let n=t.filter(this.isValidSingleAction);this.forceMenu&&n.length>0&&this.inline>0&&(n=[]);const o=n.slice(0,this.inline),i=t.filter(g=>!o.includes(g)),r=["NcActionButton","NcActionButtonGroup","NcActionCheckbox","NcActionRadio"],s=["NcActionInput","NcActionTextEditable"],l=["NcActionLink","NcActionRouter"],a=i.some(g=>s.includes(this.getActionName(g))),d=i.some(g=>r.includes(this.getActionName(g))),c=i.some(g=>l.includes(this.getActionName(g)));a?this.actionsMenuSemanticType="dialog":d?this.actionsMenuSemanticType="menu":c?this.actionsMenuSemanticType="navigation":t.filter(g=>this.getActionName(g).startsWith("NcAction")).length===t.length?this.actionsMenuSemanticType="tooltip":this.actionsMenuSemanticType="unknown";const p=g=>{const E=g?.props?.icon,y=g?.children?.icon?.()?.[0]??(this.isIconUrl(E)?ve("img",{class:"action-item__menutoggle__icon",src:E,alt:""}):ve("span",{class:["icon",E]})),R=g?.children?.default?.()?.[0]?.children?.trim(),L=this.forceName?R:"";let D=g?.props?.title;this.forceName||D||(D=R);const B={...g?.props??{}},P=["submit","reset"].includes(B.type)?B.modelValue:"button";return delete B.modelValue,delete B.type,ve(Bo,Kt(B,{class:"action-item action-item--single","aria-label":g?.props?.["aria-label"]||R,title:D,disabled:this.disabled||g?.props?.disabled,pressed:g?.props?.modelValue,size:this.size,type:P,variant:this.variant||(L?"secondary":"tertiary"),onFocus:this.onFocus,onBlur:this.onBlur,"onUpdate:pressed":g?.props?.["onUpdate:modelValue"]??(()=>{})}),{default:()=>L,icon:()=>y})},m=g=>{const E=$d(this.$slots.icon?.())?this.$slots.icon?.():this.defaultIcon?ve("span",{class:["icon",this.defaultIcon]}):ve(yy,{size:20}),y=`${this.randomId}-trigger`;return ve(_c,{ref:"popover",delay:0,shown:this.opened,placement:this.placement,boundary:this.boundariesElement,autoBoundaryMaxSize:!0,container:this.container,...this.manualOpen&&{triggers:[]},noCloseOnClickOutside:this.manualOpen,popoverBaseClass:"action-item__popper",popupRole:this.config.popupRole,setReturnFocus:this.config.withFocusTrap?this.$refs.triggerButton?.$el:void 0,noFocusTrap:!this.config.withFocusTrap,"onUpdate:shown":this.toggleMenu,onAfterShow:this.onOpened,onAfterClose:this.onClosed},{trigger:()=>ve(Bo,{id:y,class:"action-item__menutoggle",disabled:this.disabled,size:this.size,variant:this.triggerButtonVariant,ref:"triggerButton","aria-label":this.menuName?null:this.ariaLabel,"aria-controls":this.opened&&this.config.popupRole?this.randomId:null,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,onKeydown:this.onTriggerKeydown},{icon:()=>E,default:()=>this.menuName}),default:()=>ve("div",{class:{open:this.opened},tabindex:"-1",onKeydown:this.onKeydown,ref:"menu"},[ve("ul",{id:this.randomId,tabindex:"-1",ref:"menuList",role:this.config.popupRole,"aria-labelledby":y,"aria-modal":this.actionsMenuSemanticType==="dialog"?"true":void 0},[g])])})};return t.length===1&&n.length===1&&!this.forceMenu?p(t[0]):(this.$nextTick(()=>{this.opened&&this.$refs.menu&&(this.$refs.menu.querySelector("li.active")||[]).length===0&&this.focusFirstAction()}),o.length>0&&this.inline>0?ve("div",{class:["action-items",`action-item--${this.triggerButtonVariant}`]},[...o.map(p),i.length>0?ve("div",{class:["action-item",{"action-item--open":this.opened}]},[m(i)]):null]):ve("div",{class:["action-item action-item--default-popover",`action-item--${this.triggerButtonVariant}`,{"action-item--open":this.opened}]},[m(t)]))}},_y=Ht(by,[["__scopeId","data-v-5f7eed6b"]]),Jn=(t,e)=>{const n=t.__vccOpts||t;for(const[o,i]of e)n[o]=i;return n},wy={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ey=["aria-hidden","aria-label"],Sy=["fill","width","height"],Ty={d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"},Ay={key:0};function xy(t,e,n,o,i,r){return M(),G("span",Kt(t.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon plus-icon",role:"img",onClick:e[0]||(e[0]=s=>t.$emit("click",s))}),[(M(),G("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[et("path",Ty,[n.title?(M(),G("title",Ay,ft(n.title),1)):vt("",!0)])],8,Sy))],16,Ey)}const Cy=Jn(wy,[["render",xy]]),ky={name:"ShieldCheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},$y=["aria-hidden","aria-label"],Oy=["fill","width","height"],Ry={d:"M10,17L6,13L7.41,11.59L10,14.17L16.59,7.58L18,9M12,1L3,5V11C3,16.55 6.84,21.74 12,23C17.16,21.74 21,16.55 21,11V5L12,1Z"},Ly={key:0};function Py(t,e,n,o,i,r){return M(),G("span",Kt(t.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon shield-check-icon",role:"img",onClick:e[0]||(e[0]=s=>t.$emit("click",s))}),[(M(),G("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[et("path",Ry,[n.title?(M(),G("title",Ly,ft(n.title),1)):vt("",!0)])],8,Oy))],16,$y)}const Dy=Jn(ky,[["render",Py]]),Gs={account:Tt("password_policy","Account password policies"),sharing:Tt("password_policy","Share password policies")},My={enforceHaveIBeenPwned:!1,enforceNonCommonPassword:!0,enforceNumericCharacters:!1,enforceSpecialCharacters:!1,enforceUpperLowerCase:!1,minLength:10},Ny=le({__name:"AddPolicyButton",props:{policies:{}},emits:["addPolicy"],setup(t){const e=t,n=["account","sharing"],o=yt(()=>n.filter(i=>!(i in e.policies)));return(i,r)=>(M(),G("div",{class:xt(i.$style.container)},[ct(K(_y),{menuName:K(Tt)("password_policy","Add policy set"),forceMenu:""},{icon:Lt(()=>[ct(Cy,{size:20})]),default:Lt(()=>[(M(!0),G(jt,null,du(o.value,s=>(M(),Ot(K(Xm),{key:s,closeAfterClick:"",onClick:l=>i.$emit("addPolicy",s)},{icon:Lt(()=>[ct(Dy,{size:20})]),default:Lt(()=>[Ae(" "+ft(K(Gs)[s]),1)]),_:2},1032,["onClick"]))),128))]),_:1},8,["menuName"])],2))}}),By="_container_10xyb_2",Vy={container:By},Fy={$style:Vy},jy=Jn(Ny,[["__cssModules",Fy]]),zy={class:"input-field__main-wrapper"},Hy=["id","aria-describedby","disabled","placeholder","type","value"],Uy=["for"],Gy={class:"input-field__icon input-field__icon--leading"},Wy={key:2,class:"input-field__icon input-field__icon--trailing"},qy=["id"],Jy=le({inheritAttrs:!1,__name:"NcInputField",props:tl({class:{default:""},inputClass:{default:""},id:{default:()=>No()},label:{default:void 0},labelOutside:{type:Boolean},type:{default:"text"},placeholder:{default:void 0},showTrailingButton:{type:Boolean},trailingButtonLabel:{default:void 0},success:{type:Boolean},error:{type:Boolean},helperText:{default:""},disabled:{type:Boolean},pill:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:tl(["trailingButtonClick"],["update:modelValue"]),setup(t,{expose:e,emit:n}){const o=_h(t,"modelValue"),i=t,r=n;e({focus:m,select:g});const s=dh(),l=Ip("input"),a=yt(()=>i.showTrailingButton||i.success),d=yt(()=>{if(i.placeholder)return i.placeholder;if(i.label)return Hi?i.label:""}),c=yt(()=>i.label||i.labelOutside),p=yt(()=>{const y=[];return i.helperText&&y.push(`${i.id}-helper-text`),s["aria-describedby"]&&y.push(String(s["aria-describedby"])),y.join(" ")||void 0});function m(y){l.value.focus(y)}function g(){l.value.select()}function E(y){const R=y.target;o.value=i.type==="number"&&typeof o.value=="number"?parseFloat(R.value):R.value}return(y,R)=>(M(),G("div",{class:xt(["input-field",[{"input-field--disabled":t.disabled,"input-field--error":t.error,"input-field--label-outside":t.labelOutside||!c.value,"input-field--leading-icon":!!y.$slots.icon,"input-field--trailing-icon":a.value,"input-field--pill":t.pill,"input-field--success":t.success,"input-field--legacy":K(Hi)},y.$props.class]])},[et("div",zy,[et("input",Kt(y.$attrs,{id:t.id,ref:"input","aria-describedby":p.value,"aria-live":"polite",class:["input-field__input",t.inputClass],disabled:t.disabled,placeholder:d.value,type:t.type,value:o.value.toString(),onInput:E}),null,16,Hy),!t.labelOutside&&c.value?(M(),G("label",{key:0,class:"input-field__label",for:t.id},ft(t.label),9,Uy)):vt("",!0),bs(et("div",Gy,[zt(y.$slots,"icon",{},void 0,!0)],512),[[Cs,!!y.$slots.icon]]),t.showTrailingButton?(M(),Ot(Bo,{key:1,class:"input-field__trailing-button","aria-label":t.trailingButtonLabel,disabled:t.disabled,variant:"tertiary-no-background",onClick:R[0]||(R[0]=L=>r("trailingButtonClick",L))},{icon:Lt(()=>[zt(y.$slots,"trailing-button-icon",{},void 0,!0)]),_:3},8,["aria-label","disabled"])):t.success||t.error?(M(),G("div",Wy,[t.success?(M(),Ot(zn,{key:0,path:K(Ls)},null,8,["path"])):(M(),Ot(zn,{key:1,path:K(Nl)},null,8,["path"]))])):vt("",!0)]),t.helperText?(M(),G("p",{key:0,id:`${t.id}-helper-text`,class:"input-field__helper-text-message"},[t.success?(M(),Ot(zn,{key:0,class:"input-field__helper-text-message__icon",path:K(Ls),inline:""},null,8,["path"])):t.error?(M(),Ot(zn,{key:1,class:"input-field__helper-text-message__icon",path:K(Nl),inline:""},null,8,["path"])):vt("",!0),Ae(" "+ft(t.helperText),1)],8,qy)):vt("",!0)],2))}}),xi=Ht(Jy,[["__scopeId","data-v-8e16cbb5"]]),Ky=["role"],Xy={key:0,class:"notecard__heading"},Yy={class:"notecard__text"},Zy=le({__name:"NcNoteCard",props:{heading:{default:void 0},showAlert:{type:Boolean},text:{default:void 0},type:{default:"warning"}},setup(t){const e=t,n=yt(()=>e.showAlert||e.type==="error"),o=yt(()=>{switch(e.type){case"error":return km;case"success":return $m;case"info":return Rm;default:return Cm}});return(i,r)=>(M(),G("div",{class:xt(["notecard",{[`notecard--${t.type}`]:t.type,"notecard--legacy":K(Hi)}]),role:n.value?"alert":"note"},[zt(i.$slots,"icon",{},()=>[ct(K(zn),{path:o.value,class:xt(["notecard__icon",{"notecard__icon--heading":t.heading}]),inline:""},null,8,["path","class"])],!0),et("div",null,[t.heading?(M(),G("p",Xy,ft(t.heading),1)):vt("",!0),zt(i.$slots,"default",{},()=>[et("p",Yy,ft(t.text),1)],!0)])],10,Ky))}}),wc=Ht(Zy,[["__scopeId","data-v-6be9fa31"]]),Oo=Cd().setApp("password_policy").build(),Iy=le({__name:"ComplianceConfig",setup(t){const e=vs($s("password_policy","loginConfig")),n=vs($s("password_policy","loginConfig"));so(e,o,{deep:!0});function o(){for(const[i,r]of Object.entries(e.value)){let s=Math.max(r||0,0);s=Number.isNaN(s)?0:s,Oo.debug("Saving compliance config",{numericValue:s,value:r,oldValue:n.value[i]}),n.value[i]!==s&&(window.OCP.AppConfig.setValue("password_policy",i,JSON.stringify(s)),n.value[i]=s),e.value[i]!==s&&(e.value[i]=s)}}return(i,r)=>(M(),G("form",{class:xt(i.$style.form),onSubmit:r[3]||(r[3]=ju(()=>{},["prevent"]))},[et("h3",{class:xt(i.$style.heading)},ft(K(Tt)("password_policy","Login policies")),3),et("div",{class:xt(i.$style.inputField)},[ct(K(xi),{modelValue:e.value.historySize,"onUpdate:modelValue":r[0]||(r[0]=s=>e.value.historySize=s),label:K(Tt)("password_policy","Password history size"),helperText:K(Tt)("password_policy","Number of passwords to keep (securely hashed) to prevent users from reusing previously used passwords."),min:"0",type:"number"},null,8,["modelValue","label","helperText"])],2),et("div",{class:xt(i.$style.inputField)},[ct(K(xi),{modelValue:e.value.maximumLoginAttempts,"onUpdate:modelValue":r[1]||(r[1]=s=>e.value.maximumLoginAttempts=s),label:K(Tt)("password_policy","Maximum login attempts"),min:"0",type:"number",helperText:K(Tt)("password_policy","Number of login attempts before the user account will be disabled until manual action is taken. (0 for no limit)")},null,8,["modelValue","label","helperText"]),bs(ct(K(wc),{heading:K(Tt)("password_policy","Maximum login attempts"),text:K(Tt)("password_policy","Please note, this option is meant to protect attacked accounts. Disabled accounts have to be re-enabled manually by administration. Attackers that try to guess passwords of accounts will have their IP address blocked by the bruteforce protection independent from this setting."),type:"info"},null,8,["heading","text"]),[[Cs,e.value.maximumLoginAttempts>0]])],2),et("div",{class:xt(i.$style.inputField)},[ct(K(xi),{modelValue:e.value.expiration,"onUpdate:modelValue":r[2]||(r[2]=s=>e.value.expiration=s),label:K(Tt)("password_policy","Number of days until user password expires"),min:"0",type:"number"},null,8,["modelValue","label"]),bs(ct(K(wc),{heading:K(Tt)("password_policy","Password expiration"),text:K(Tt)("password_policy","Warning: enabling password expiration is nowadays considered a security risk by several security agencies."),type:"warning"},null,8,["heading","text"]),[[Cs,e.value.expiration>0]])],2)],34))}}),Qy="_form_5u8co_2",tv="_heading_5u8co_8",ev="_inputField_5u8co_13",nv={form:Qy,heading:tv,inputField:ev},ov={$style:nv},iv=Jn(Iy,[["__cssModules",ov]]),rv=` @@ -13,5 +13,5 @@ ${t.stack}`),i)}log(t,n,o){if(!(typeof this.context?.level=="number"&&t -`,wv=at({__name:"NcIconToggleSwitch",props:{checked:{type:Boolean},size:{default:34},inline:{type:Boolean,default:!1}},setup(e){Us(o=>({v6bd152af:t.value,v16fd8ca9:n.value}));const t=ve(()=>e.checked?"var(--color-primary-element)":"var(--color-text-maxcontrast)"),n=ve(()=>e.checked?"calc(17 / 24 * 100%)":"calc(7 / 24 * 100%)");return(o,i)=>(L(),$e(On,{class:xe(o.$style.iconToggleSwitch),svg:_v,size:e.size,inline:e.inline},null,8,["class","size","inline"]))}}),Ev="_iconToggleSwitch_CPPoW",Tv={"material-design-icon":"_material-design-icon_tLFaA",iconToggleSwitch:Ev},Sv={$style:Tv},xv=Be(wv,[["__cssModules",Sv]]),Av=["aria-label"],Cv=["width","height"],$v=["fill"],kv=["fill"],Rv={key:0},Ov=at({__name:"NcLoadingIcon",props:{appearance:{default:"auto"},name:{default:""},size:{default:20}},setup(e){const t=e,n=ve(()=>{const o=["#777","#CCC"];return t.appearance==="light"?o:t.appearance==="dark"?o.reverse():["var(--color-loading-light)","var(--color-loading-dark)"]});return(o,i)=>(L(),z("span",{"aria-label":e.name,role:"img",class:"material-design-icon loading-icon"},[(L(),z("svg",{width:e.size,height:e.size,viewBox:"0 0 24 24"},[ne("path",{fill:n.value[0],d:"M12,4V2A10,10 0 1,0 22,12H20A8,8 0 1,1 12,4Z"},null,8,$v),ne("path",{fill:n.value[1],d:"M12,4V2A10,10 0 0,1 22,12H20A8,8 0 0,0 12,4Z"},[e.name?(L(),z("title",Rv,fe(e.name),1)):ye("",!0)],8,kv)],8,Cv))],8,Av))}}),Lv=Be(Ov,[["__scopeId","data-v-cf399190"]]),Pv=Symbol.for("insideRadioGroup");function Mv(){return fn(Pv,void 0)}const Nv={name:"CheckboxBlankOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Dv=["aria-hidden","aria-label"],Fv=["fill","width","height"],Bv={d:"M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z"},Vv={key:0};function jv(e,t,n,o,i,r){return L(),z("span",ze(e.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon checkbox-blank-outline-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(L(),z("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[ne("path",Bv,[n.title?(L(),z("title",Vv,fe(n.title),1)):ye("",!0)])],8,Fv))],16,Dv)}const Uv=Be(Nv,[["render",jv]]),Hv={name:"CheckboxMarkedIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},zv=["aria-hidden","aria-label"],Gv=["fill","width","height"],Wv={d:"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z"},qv={key:0};function Jv(e,t,n,o,i,r){return L(),z("span",ze(e.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon checkbox-marked-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(L(),z("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[ne("path",Wv,[n.title?(L(),z("title",qv,fe(n.title),1)):ye("",!0)])],8,Gv))],16,zv)}const Xv=Be(Hv,[["render",Jv]]),Kv={name:"MinusBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Yv=["aria-hidden","aria-label"],Zv=["fill","width","height"],Iv={d:"M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z"},Qv={key:0};function ey(e,t,n,o,i,r){return L(),z("span",ze(e.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon minus-box-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(L(),z("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[ne("path",Iv,[n.title?(L(),z("title",Qv,fe(n.title),1)):ye("",!0)])],8,Zv))],16,Yv)}const ty=Be(Kv,[["render",ey]]),ny={name:"RadioboxBlankIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},oy=["aria-hidden","aria-label"],iy=["fill","width","height"],ry={d:"M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},sy={key:0};function ay(e,t,n,o,i,r){return L(),z("span",ze(e.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon radiobox-blank-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(L(),z("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[ne("path",ry,[n.title?(L(),z("title",sy,fe(n.title),1)):ye("",!0)])],8,iy))],16,oy)}const ly=Be(ny,[["render",ay]]),cy={name:"RadioboxMarkedIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},uy=["aria-hidden","aria-label"],dy=["fill","width","height"],py={d:"M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z"},hy={key:0};function fy(e,t,n,o,i,r){return L(),z("span",ze(e.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon radiobox-marked-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(L(),z("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[ne("path",py,[n.title?(L(),z("title",hy,fe(n.title),1)):ye("",!0)])],8,dy))],16,uy)}const my=Be(cy,[["render",fy]]),Zn="checkbox",Rn="radio",dn="switch",Vo="button",gy={name:"NcCheckboxContent",components:{NcLoadingIcon:Lv,NcIconToggleSwitch:xv},props:{iconClass:{type:[String,Object],default:null},textClass:{type:[String,Object],default:null},type:{type:String,default:"checkbox",validator:e=>[Zn,Rn,dn,Vo].includes(e)},buttonVariant:{type:Boolean,default:!1},isChecked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},iconSize:{type:Number,default:24},labelId:{type:String,required:!0},descriptionId:{type:String,required:!0}},computed:{isButtonType(){return this.type===Vo},isSwitchType(){return this.type===dn},checkboxRadioIconElement(){return this.type===Rn?this.isChecked?my:ly:this.indeterminate?ty:this.isChecked?Xv:Uv}}},vy={key:0,class:"checkbox-content__wrapper"},yy=["id"],by=["id"];function _y(e,t,n,o,i,r){const s=nn("NcLoadingIcon"),l=nn("NcIconToggleSwitch");return L(),z("span",{class:xe(["checkbox-content",{["checkbox-content-"+n.type]:!0,"checkbox-content--button-variant":n.buttonVariant,"checkbox-content--has-text":!!e.$slots.default}])},[ne("span",{class:xe(["checkbox-content__icon",{"checkbox-content__icon--checked":n.isChecked,"checkbox-content__icon--has-description":!r.isButtonType&&e.$slots.description,[n.iconClass]:!0}]),"aria-hidden":!0,inert:""},[De(e.$slots,"icon",{checked:n.isChecked,loading:n.loading},()=>[n.loading?(L(),$e(s,{key:0})):r.isSwitchType?(L(),$e(l,{key:1,checked:n.isChecked,size:n.iconSize,inline:""},null,8,["checked","size"])):n.buttonVariant?ye("",!0):(L(),$e(Bs(r.checkboxRadioIconElement),{key:2,size:n.iconSize},null,8,["size"]))],!0)],2),e.$slots.default||e.$slots.description?(L(),z("span",vy,[e.$slots.default?(L(),z("span",{key:0,id:n.labelId,class:xe(["checkbox-content__text",n.textClass])},[De(e.$slots,"default",{},void 0,!0)],10,yy)):ye("",!0),!r.isButtonType&&e.$slots.description?(L(),z("span",{key:1,id:n.descriptionId,class:"checkbox-content__description"},[De(e.$slots,"description",{},void 0,!0)],8,by)):ye("",!0)])):ye("",!0)],2)}const wy=Be(gy,[["render",_y],["__scopeId","data-v-5ca1e30f"]]);Ws();const Ys={name:"NcCheckboxRadioSwitch",components:{NcCheckboxContent:wy},inheritAttrs:!1,props:{id:{type:String,default:()=>"checkbox-radio-switch-"+Lo(),validator:e=>e.trim()!==""},wrapperId:{type:String,default:null},name:{type:String,default:null},ariaLabel:{type:String,default:""},type:{type:String,default:"checkbox",validator:e=>[Zn,Rn,dn,Vo].includes(e)},buttonVariant:{type:Boolean,default:!1},buttonVariantGrouped:{type:String,default:"no",validator:e=>["no","vertical","horizontal"].includes(e)},modelValue:{type:[Boolean,Array,String],default:!1},value:{type:String,default:null},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},required:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},wrapperElement:{type:String,default:null},class:{type:[String,Array,Object],default:""},style:{type:[String,Array,Object],default:""},description:{type:String,default:null}},emits:["update:modelValue"],setup(e,{emit:t}){const n=Mv();Fs(()=>n?.value.register(!1));const o=ve(()=>n?.value?Rn:e.type),i=ve({get(){return n?.value?n.value.modelValue:e.modelValue},set(r){n?.value?n.value.onUpdate(r):t("update:modelValue",r)}});return{internalType:o,internalModelValue:i,labelId:Lo(),descriptionId:Lo()}},computed:{isButtonType(){return this.internalType===Vo},computedWrapperElement(){return this.isButtonType?"button":this.wrapperElement!==null?this.wrapperElement:"span"},listeners(){return this.isButtonType?{click:this.onToggle}:{change:this.onToggle}},iconSize(){return this.internalType===dn?36:20},cssIconSize(){return this.iconSize+"px"},cssIconHeight(){return this.internalType===dn?"16px":this.cssIconSize},inputType(){return[Zn,Rn,Vo].includes(this.internalType)?this.internalType:Zn},isChecked(){return this.value!==null?Array.isArray(this.internalModelValue)?[...this.internalModelValue].indexOf(this.value)>-1:this.internalModelValue===this.value:this.internalModelValue===!0},hasIndeterminate(){return[Zn,Rn].includes(this.inputType)}},mounted(){if(this.name&&this.internalType===Zn&&!Array.isArray(this.internalModelValue))throw new Error("When using groups of checkboxes, the updated value will be an array.");if(this.name&&this.internalType===dn)throw new Error("Switches are not made to be used for data sets. Please use checkboxes instead.");if(typeof this.internalModelValue!="boolean"&&this.internalType===dn)throw new Error("Switches can only be used with boolean as modelValue prop.")},methods:{t:Gs,n:Af,onToggle(e){if(!(this.disabled||e.target.tagName.toLowerCase()==="a")){if(this.internalType===Rn){this.internalModelValue=this.value;return}if(this.internalType===dn){this.internalModelValue=!this.isChecked;return}if(typeof this.internalModelValue=="boolean"){this.internalModelValue=!this.internalModelValue;return}this.isChecked?this.internalModelValue=this.internalModelValue.filter(t=>t!==this.value):this.internalModelValue=[...this.internalModelValue,this.value]}}}},ql=()=>{Us(e=>({v5ac25550:e.cssIconSize,d98ce684:e.cssIconHeight}))},Jl=Ys.setup;Ys.setup=Jl?(e,t)=>(ql(),Jl(e,t)):ql;const Ey=["id","aria-labelledby","aria-describedby","aria-label","disabled","type","value","checked",".indeterminate","required","name"];function Ty(e,t,n,o,i,r){const s=nn("NcCheckboxContent");return L(),$e(Bs(r.computedWrapperElement),ze({id:n.wrapperId??(r.isButtonType?n.id:null),"aria-label":r.isButtonType&&n.ariaLabel?n.ariaLabel:void 0,class:["checkbox-radio-switch",[e.$props.class,{["checkbox-radio-switch-"+o.internalType]:o.internalType,"checkbox-radio-switch--checked":r.isChecked,"checkbox-radio-switch--disabled":n.disabled,"checkbox-radio-switch--indeterminate":r.hasIndeterminate?n.indeterminate:!1,"checkbox-radio-switch--button-variant":n.buttonVariant,"checkbox-radio-switch--button-variant-v-grouped":n.buttonVariant&&n.buttonVariantGrouped==="vertical","checkbox-radio-switch--button-variant-h-grouped":n.buttonVariant&&n.buttonVariantGrouped==="horizontal","button-vue":r.isButtonType}]],style:n.style,type:r.isButtonType?"button":null},r.isButtonType?e.$attrs:{},Ea(r.isButtonType?r.listeners:{})),{default:Re(()=>[r.isButtonType?ye("",!0):(L(),z("input",ze({key:0,id:n.id,"aria-labelledby":!r.isButtonType&&!n.ariaLabel?o.labelId:null,"aria-describedby":!r.isButtonType&&(n.description||e.$slots.description)?o.descriptionId:null,"aria-label":n.ariaLabel||void 0,class:"checkbox-radio-switch__input",disabled:n.disabled,type:r.inputType,value:n.value,checked:r.isChecked,".indeterminate":r.hasIndeterminate?n.indeterminate:null,required:n.required,name:n.name},e.$attrs,Ea(r.listeners,!0)),null,48,Ey)),le(s,{id:r.isButtonType?void 0:`${n.id}-label`,class:"checkbox-radio-switch__content",iconClass:"checkbox-radio-switch__icon",textClass:"checkbox-radio-switch__text",type:o.internalType,indeterminate:r.hasIndeterminate?n.indeterminate:!1,buttonVariant:n.buttonVariant,isChecked:r.isChecked,loading:n.loading,labelId:o.labelId,descriptionId:o.descriptionId,iconSize:r.iconSize,onClick:r.onToggle},Ep({icon:Re(()=>[De(e.$slots,"icon",{},void 0,!0)]),_:2},[e.$slots.description||n.description?{name:"description",fn:Re(()=>[De(e.$slots,"description",{},()=>[_t(fe(n.description),1)],!0)]),key:"0"}:void 0,e.$slots.default?{name:"default",fn:Re(()=>[De(e.$slots,"default",{},void 0,!0)]),key:"1"}:void 0]),1032,["id","type","indeterminate","buttonVariant","isChecked","loading","labelId","descriptionId","iconSize","onClick"])]),_:3},16,["id","aria-label","class","style","type"])}const wo=Be(Ys,[["render",Ty],["__scopeId","data-v-c34c63a4"]]),Sy={name:"TrashCanIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},xy=["aria-hidden","aria-label"],Ay=["fill","width","height"],Cy={d:"M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M9,8H11V17H9V8M13,8H15V17H13V8Z"},$y={key:0};function ky(e,t,n,o,i,r){return L(),z("span",ze(e.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon trash-can-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(L(),z("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[ne("path",Cy,[n.title?(L(),z("title",$y,fe(n.title),1)):ye("",!0)])],8,Ay))],16,xy)}const Ry=Fn(Sy,[["render",ky]]),Oy=at({__name:"PasswordPolicy",props:{modelValue:{},heading:{},canRemove:{type:Boolean}},emits:["update:modelValue","remove"],setup(e,{emit:t}){const n=e,o=t,i=ve({get:()=>n.modelValue.minLength,set:c=>o("update:modelValue",{...n.modelValue,minLength:Number.isNaN(c)?0:c})}),r=ve({get:()=>n.modelValue.enforceHaveIBeenPwned,set:c=>o("update:modelValue",{...n.modelValue,enforceHaveIBeenPwned:c})}),s=ve({get:()=>n.modelValue.enforceNonCommonPassword,set:c=>o("update:modelValue",{...n.modelValue,enforceNonCommonPassword:c})}),l=ve({get:()=>n.modelValue.enforceNumericCharacters,set:c=>o("update:modelValue",{...n.modelValue,enforceNumericCharacters:c})}),a=ve({get:()=>n.modelValue.enforceSpecialCharacters,set:c=>o("update:modelValue",{...n.modelValue,enforceSpecialCharacters:c})}),d=ve({get:()=>n.modelValue.enforceUpperLowerCase,set:c=>o("update:modelValue",{...n.modelValue,enforceUpperLowerCase:c})});return(c,p)=>(L(),z("form",{onSubmit:p[7]||(p[7]=lu(()=>{},["prevent"]))},[ne("div",{class:xe(c.$style.headingWrapper)},[ne("h3",{class:xe(c.$style.heading)},fe(e.heading),3),e.canRemove?(L(),$e(X(Po),{key:0,"aria-label":X(Se)("password_policy","Remove policy"),title:X(Se)("password_policy","Remove policy"),variant:"tertiary",onClick:p[0]||(p[0]=m=>c.$emit("remove"))},{icon:Re(()=>[le(Ry,{size:20})]),_:1},8,["aria-label","title"])):ye("",!0)],2),le(X(Ei),{modelValue:i.value,"onUpdate:modelValue":p[1]||(p[1]=m=>i.value=m),class:xe(c.$style.inputField),label:X(Se)("password_policy","Minimum password length"),type:"number",min:"0"},null,8,["modelValue","class","label"]),le(X(wo),{modelValue:s.value,"onUpdate:modelValue":p[2]||(p[2]=m=>s.value=m),type:"switch"},{default:Re(()=>[_t(fe(X(Se)("password_policy","Forbid common passwords")),1)]),_:1},8,["modelValue"]),le(X(wo),{modelValue:d.value,"onUpdate:modelValue":p[3]||(p[3]=m=>d.value=m),type:"switch"},{default:Re(()=>[_t(fe(X(Se)("password_policy","Enforce upper and lower case characters")),1)]),_:1},8,["modelValue"]),le(X(wo),{modelValue:l.value,"onUpdate:modelValue":p[4]||(p[4]=m=>l.value=m),type:"switch"},{default:Re(()=>[_t(fe(X(Se)("password_policy","Enforce numeric characters")),1)]),_:1},8,["modelValue"]),le(X(wo),{modelValue:a.value,"onUpdate:modelValue":p[5]||(p[5]=m=>a.value=m),type:"switch"},{default:Re(()=>[_t(fe(X(Se)("password_policy","Enforce special characters")),1)]),_:1},8,["modelValue"]),le(X(wo),{modelValue:r.value,"onUpdate:modelValue":p[6]||(p[6]=m=>r.value=m),type:"switch"},{default:Re(()=>[_t(fe(X(Se)("password_policy","Check password against the list of breached passwords from haveibeenpwned.com")),1)]),_:1},8,["modelValue"]),ne("p",{class:xe(c.$style.hint)},fe(X(Se)("password_policy","This check creates a hash of the password and sends the first 5 characters of this hash to the haveibeenpwned.com API to retrieve a list of all hashes that start with those. Then it checks on the Nextcloud instance if the password hash is in the result set.")),3)],32))}}),Ly="_heading_nsb3k_2",Py="_headingWrapper_nsb3k_7",My="_hint_nsb3k_12",Ny="_inputField_nsb3k_17",Dy={heading:Ly,headingWrapper:Py,hint:My,inputField:Ny},Fy={$style:Dy},By=Fn(Oy,[["__cssModules",Fy]]),Vy=at({__name:"AdminSettings",setup(e){const t=Ir(Bh().password_policy.policies),n=ve(()=>Object.keys(t.value));function o(s,l){xo.debug(`Update password policy ${s}`,{policy:l});for(const[a,d]of Object.entries(l))if(d!==t.value[s]?.[a]){const c=typeof d=="boolean"?d?"1":"0":String(d);window.OCP.AppConfig.setValue("password_policy",s==="account"?a:`${a}_${s}`,c)}t.value[s]=l}function i(s){if(xo.debug(`Add password policy ${s}`),s in t.value){xo.warn(`Password context "${s}" already registered`);return}const l=[...Object.keys(t.value),s];window.OCP.AppConfig.setValue("password_policy","passwordContexts",JSON.stringify(l)),t.value[s]={...Y0}}function r(s){xo.debug(`Remove password policy ${s}`);const l=Object.keys(t.value).filter(a=>a!==s);window.OCP.AppConfig.setValue("password_policy","passwordContexts",JSON.stringify(l)),delete t.value[s]}return(s,l)=>(L(),$e(X(Uf),{name:X(Se)("password_policy","Password policy")},{default:Re(()=>[le(bv),ne("div",{class:xe(s.$style.policyWrapper)},[(L(!0),z(Ue,null,Mc(n.value,a=>(L(),$e(By,{key:a,canRemove:a!=="account",heading:n.value.length===1?X(Se)("password_policy","General password policies"):X(Ts)[a],modelValue:t.value[a],"onUpdate:modelValue":d=>o(a,d),onRemove:d=>r(a)},null,8,["canRemove","heading","modelValue","onUpdate:modelValue","onRemove"]))),128)),n.value.length`,sv=le({__name:"NcIconToggleSwitch",props:{checked:{type:Boolean},size:{default:34},inline:{type:Boolean,default:!1}},setup(t){la(o=>({v6bd152af:e.value,v16fd8ca9:n.value}));const e=yt(()=>t.checked?"var(--color-primary-element)":"var(--color-text-maxcontrast)"),n=yt(()=>t.checked?"calc(17 / 24 * 100%)":"calc(7 / 24 * 100%)");return(o,i)=>(M(),Ot(zn,{class:xt(o.$style.iconToggleSwitch),svg:rv,size:t.size,inline:t.inline},null,8,["class","size","inline"]))}}),av="_iconToggleSwitch_CPPoW",lv={"material-design-icon":"_material-design-icon_tLFaA",iconToggleSwitch:av},cv={$style:lv},uv=Ht(sv,[["__cssModules",cv]]),dv=["aria-label"],pv=["width","height"],hv=["fill"],fv=["fill"],mv={key:0},gv=le({__name:"NcLoadingIcon",props:{appearance:{default:"auto"},name:{default:""},size:{default:20}},setup(t){const e=t,n=yt(()=>{const o=["#777","#CCC"];return e.appearance==="light"?o:e.appearance==="dark"?o.reverse():["var(--color-loading-light)","var(--color-loading-dark)"]});return(o,i)=>(M(),G("span",{"aria-label":t.name,role:"img",class:"material-design-icon loading-icon"},[(M(),G("svg",{width:t.size,height:t.size,viewBox:"0 0 24 24"},[et("path",{fill:n.value[0],d:"M12,4V2A10,10 0 1,0 22,12H20A8,8 0 1,1 12,4Z"},null,8,hv),et("path",{fill:n.value[1],d:"M12,4V2A10,10 0 0,1 22,12H20A8,8 0 0,0 12,4Z"},[t.name?(M(),G("title",mv,ft(t.name),1)):vt("",!0)],8,fv)],8,pv))],8,dv))}}),yv=Ht(gv,[["__scopeId","data-v-cf399190"]]),vv=Symbol.for("insideRadioGroup");function bv(){return En(vv,void 0)}const _v={name:"CheckboxBlankOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},wv=["aria-hidden","aria-label"],Ev=["fill","width","height"],Sv={d:"M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z"},Tv={key:0};function Av(t,e,n,o,i,r){return M(),G("span",Kt(t.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon checkbox-blank-outline-icon",role:"img",onClick:e[0]||(e[0]=s=>t.$emit("click",s))}),[(M(),G("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[et("path",Sv,[n.title?(M(),G("title",Tv,ft(n.title),1)):vt("",!0)])],8,Ev))],16,wv)}const xv=Ht(_v,[["render",Av]]),Cv={name:"CheckboxMarkedIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},kv=["aria-hidden","aria-label"],$v=["fill","width","height"],Ov={d:"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z"},Rv={key:0};function Lv(t,e,n,o,i,r){return M(),G("span",Kt(t.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon checkbox-marked-icon",role:"img",onClick:e[0]||(e[0]=s=>t.$emit("click",s))}),[(M(),G("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[et("path",Ov,[n.title?(M(),G("title",Rv,ft(n.title),1)):vt("",!0)])],8,$v))],16,kv)}const Pv=Ht(Cv,[["render",Lv]]),Dv={name:"MinusBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Mv=["aria-hidden","aria-label"],Nv=["fill","width","height"],Bv={d:"M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z"},Vv={key:0};function Fv(t,e,n,o,i,r){return M(),G("span",Kt(t.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon minus-box-icon",role:"img",onClick:e[0]||(e[0]=s=>t.$emit("click",s))}),[(M(),G("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[et("path",Bv,[n.title?(M(),G("title",Vv,ft(n.title),1)):vt("",!0)])],8,Nv))],16,Mv)}const jv=Ht(Dv,[["render",Fv]]),zv={name:"RadioboxBlankIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Hv=["aria-hidden","aria-label"],Uv=["fill","width","height"],Gv={d:"M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},Wv={key:0};function qv(t,e,n,o,i,r){return M(),G("span",Kt(t.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon radiobox-blank-icon",role:"img",onClick:e[0]||(e[0]=s=>t.$emit("click",s))}),[(M(),G("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[et("path",Gv,[n.title?(M(),G("title",Wv,ft(n.title),1)):vt("",!0)])],8,Uv))],16,Hv)}const Jv=Ht(zv,[["render",qv]]),Kv={name:"RadioboxMarkedIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Xv=["aria-hidden","aria-label"],Yv=["fill","width","height"],Zv={d:"M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z"},Iv={key:0};function Qv(t,e,n,o,i,r){return M(),G("span",Kt(t.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon radiobox-marked-icon",role:"img",onClick:e[0]||(e[0]=s=>t.$emit("click",s))}),[(M(),G("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[et("path",Zv,[n.title?(M(),G("title",Iv,ft(n.title),1)):vt("",!0)])],8,Yv))],16,Xv)}const tb=Ht(Kv,[["render",Qv]]),ro="checkbox",Fn="radio",vn="switch",Uo="button",eb={name:"NcCheckboxContent",components:{NcLoadingIcon:yv,NcIconToggleSwitch:uv},props:{iconClass:{type:[String,Object],default:null},textClass:{type:[String,Object],default:null},type:{type:String,default:"checkbox",validator:t=>[ro,Fn,vn,Uo].includes(t)},buttonVariant:{type:Boolean,default:!1},isChecked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},iconSize:{type:Number,default:24},labelId:{type:String,required:!0},descriptionId:{type:String,required:!0}},computed:{isButtonType(){return this.type===Uo},isSwitchType(){return this.type===vn},checkboxRadioIconElement(){return this.type===Fn?this.isChecked?tb:Jv:this.indeterminate?jv:this.isChecked?Pv:xv}}},nb={key:0,class:"checkbox-content__wrapper"},ob=["id"],ib=["id"];function rb(t,e,n,o,i,r){const s=ln("NcLoadingIcon"),l=ln("NcIconToggleSwitch");return M(),G("span",{class:xt(["checkbox-content",{["checkbox-content-"+n.type]:!0,"checkbox-content--button-variant":n.buttonVariant,"checkbox-content--has-text":!!t.$slots.default}])},[et("span",{class:xt(["checkbox-content__icon",{"checkbox-content__icon--checked":n.isChecked,"checkbox-content__icon--has-description":!r.isButtonType&&t.$slots.description,[n.iconClass]:!0}]),"aria-hidden":!0,inert:""},[zt(t.$slots,"icon",{checked:n.isChecked,loading:n.loading},()=>[n.loading?(M(),Ot(s,{key:0})):r.isSwitchType?(M(),Ot(l,{key:1,checked:n.isChecked,size:n.iconSize,inline:""},null,8,["checked","size"])):n.buttonVariant?vt("",!0):(M(),Ot(ia(r.checkboxRadioIconElement),{key:2,size:n.iconSize},null,8,["size"]))],!0)],2),t.$slots.default||t.$slots.description?(M(),G("span",nb,[t.$slots.default?(M(),G("span",{key:0,id:n.labelId,class:xt(["checkbox-content__text",n.textClass])},[zt(t.$slots,"default",{},void 0,!0)],10,ob)):vt("",!0),!r.isButtonType&&t.$slots.description?(M(),G("span",{key:1,id:n.descriptionId,class:"checkbox-content__description"},[zt(t.$slots,"description",{},void 0,!0)],8,ib)):vt("",!0)])):vt("",!0)],2)}const sb=Ht(eb,[["render",rb],["__scopeId","data-v-5ca1e30f"]]);pa();const ya={name:"NcCheckboxRadioSwitch",components:{NcCheckboxContent:sb},inheritAttrs:!1,props:{id:{type:String,default:()=>"checkbox-radio-switch-"+No(),validator:t=>t.trim()!==""},wrapperId:{type:String,default:null},name:{type:String,default:null},ariaLabel:{type:String,default:""},type:{type:String,default:"checkbox",validator:t=>[ro,Fn,vn,Uo].includes(t)},buttonVariant:{type:Boolean,default:!1},buttonVariantGrouped:{type:String,default:"no",validator:t=>["no","vertical","horizontal"].includes(t)},modelValue:{type:[Boolean,Array,String],default:!1},value:{type:String,default:null},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},required:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},wrapperElement:{type:String,default:null},class:{type:[String,Array,Object],default:""},style:{type:[String,Array,Object],default:""},description:{type:String,default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const n=bv();oa(()=>n?.value.register(!1));const o=yt(()=>n?.value?Fn:t.type),i=yt({get(){return n?.value?n.value.modelValue:t.modelValue},set(r){n?.value?n.value.onUpdate(r):e("update:modelValue",r)}});return{internalType:o,internalModelValue:i,labelId:No(),descriptionId:No()}},computed:{isButtonType(){return this.internalType===Uo},computedWrapperElement(){return this.isButtonType?"button":this.wrapperElement!==null?this.wrapperElement:"span"},listeners(){return this.isButtonType?{click:this.onToggle}:{change:this.onToggle}},iconSize(){return this.internalType===vn?36:20},cssIconSize(){return this.iconSize+"px"},cssIconHeight(){return this.internalType===vn?"16px":this.cssIconSize},inputType(){return[ro,Fn,Uo].includes(this.internalType)?this.internalType:ro},isChecked(){return this.value!==null?Array.isArray(this.internalModelValue)?[...this.internalModelValue].indexOf(this.value)>-1:this.internalModelValue===this.value:this.internalModelValue===!0},hasIndeterminate(){return[ro,Fn].includes(this.inputType)}},mounted(){if(this.name&&this.internalType===ro&&!Array.isArray(this.internalModelValue))throw new Error("When using groups of checkboxes, the updated value will be an array.");if(this.name&&this.internalType===vn)throw new Error("Switches are not made to be used for data sets. Please use checkboxes instead.");if(typeof this.internalModelValue!="boolean"&&this.internalType===vn)throw new Error("Switches can only be used with boolean as modelValue prop.")},methods:{t:da,n:dm,onToggle(t){if(!(this.disabled||t.target.tagName.toLowerCase()==="a")){if(this.internalType===Fn){this.internalModelValue=this.value;return}if(this.internalType===vn){this.internalModelValue=!this.isChecked;return}if(typeof this.internalModelValue=="boolean"){this.internalModelValue=!this.internalModelValue;return}this.isChecked?this.internalModelValue=this.internalModelValue.filter(e=>e!==this.value):this.internalModelValue=[...this.internalModelValue,this.value]}}}},Ec=()=>{la(t=>({v5ac25550:t.cssIconSize,d98ce684:t.cssIconHeight}))},Sc=ya.setup;ya.setup=Sc?(t,e)=>(Ec(),Sc(t,e)):Ec;const ab=["id","aria-labelledby","aria-describedby","aria-label","disabled","type","value","checked",".indeterminate","required","name"];function lb(t,e,n,o,i,r){const s=ln("NcCheckboxContent");return M(),Ot(ia(r.computedWrapperElement),Kt({id:n.wrapperId??(r.isButtonType?n.id:null),"aria-label":r.isButtonType&&n.ariaLabel?n.ariaLabel:void 0,class:["checkbox-radio-switch",[t.$props.class,{["checkbox-radio-switch-"+o.internalType]:o.internalType,"checkbox-radio-switch--checked":r.isChecked,"checkbox-radio-switch--disabled":n.disabled,"checkbox-radio-switch--indeterminate":r.hasIndeterminate?n.indeterminate:!1,"checkbox-radio-switch--button-variant":n.buttonVariant,"checkbox-radio-switch--button-variant-v-grouped":n.buttonVariant&&n.buttonVariantGrouped==="vertical","checkbox-radio-switch--button-variant-h-grouped":n.buttonVariant&&n.buttonVariantGrouped==="horizontal","button-vue":r.isButtonType}]],style:n.style,type:r.isButtonType?"button":null},r.isButtonType?t.$attrs:{},Qa(r.isButtonType?r.listeners:{})),{default:Lt(()=>[r.isButtonType?vt("",!0):(M(),G("input",Kt({key:0,id:n.id,"aria-labelledby":!r.isButtonType&&!n.ariaLabel?o.labelId:null,"aria-describedby":!r.isButtonType&&(n.description||t.$slots.description)?o.descriptionId:null,"aria-label":n.ariaLabel||void 0,class:"checkbox-radio-switch__input",disabled:n.disabled,type:r.inputType,value:n.value,checked:r.isChecked,".indeterminate":r.hasIndeterminate?n.indeterminate:null,required:n.required,name:n.name},t.$attrs,Qa(r.listeners,!0)),null,48,ab)),ct(s,{id:r.isButtonType?void 0:`${n.id}-label`,class:"checkbox-radio-switch__content",iconClass:"checkbox-radio-switch__icon",textClass:"checkbox-radio-switch__text",type:o.internalType,indeterminate:r.hasIndeterminate?n.indeterminate:!1,buttonVariant:n.buttonVariant,isChecked:r.isChecked,loading:n.loading,labelId:o.labelId,descriptionId:o.descriptionId,iconSize:r.iconSize,onClick:r.onToggle},ch({icon:Lt(()=>[zt(t.$slots,"icon",{},void 0,!0)]),_:2},[t.$slots.description||n.description?{name:"description",fn:Lt(()=>[zt(t.$slots,"description",{},()=>[Ae(ft(n.description),1)],!0)]),key:"0"}:void 0,t.$slots.default?{name:"default",fn:Lt(()=>[zt(t.$slots,"default",{},void 0,!0)]),key:"1"}:void 0]),1032,["id","type","indeterminate","buttonVariant","isChecked","loading","labelId","descriptionId","iconSize","onClick"])]),_:3},16,["id","aria-label","class","style","type"])}const Co=Ht(ya,[["render",lb],["__scopeId","data-v-c34c63a4"]]),cb={name:"TrashCanIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ub=["aria-hidden","aria-label"],db=["fill","width","height"],pb={d:"M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M9,8H11V17H9V8M13,8H15V17H13V8Z"},hb={key:0};function fb(t,e,n,o,i,r){return M(),G("span",Kt(t.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon trash-can-icon",role:"img",onClick:e[0]||(e[0]=s=>t.$emit("click",s))}),[(M(),G("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[et("path",pb,[n.title?(M(),G("title",hb,ft(n.title),1)):vt("",!0)])],8,db))],16,ub)}const mb=Jn(cb,[["render",fb]]),gb=le({__name:"PasswordPolicy",props:{modelValue:{},heading:{},canRemove:{type:Boolean}},emits:["update:modelValue","remove"],setup(t,{emit:e}){const n=t,o=e,i=yt({get:()=>n.modelValue.minLength,set:c=>o("update:modelValue",{...n.modelValue,minLength:Number.isNaN(c)?0:c})}),r=yt({get:()=>n.modelValue.enforceHaveIBeenPwned,set:c=>o("update:modelValue",{...n.modelValue,enforceHaveIBeenPwned:c})}),s=yt({get:()=>n.modelValue.enforceNonCommonPassword,set:c=>o("update:modelValue",{...n.modelValue,enforceNonCommonPassword:c})}),l=yt({get:()=>n.modelValue.enforceNumericCharacters,set:c=>o("update:modelValue",{...n.modelValue,enforceNumericCharacters:c})}),a=yt({get:()=>n.modelValue.enforceSpecialCharacters,set:c=>o("update:modelValue",{...n.modelValue,enforceSpecialCharacters:c})}),d=yt({get:()=>n.modelValue.enforceUpperLowerCase,set:c=>o("update:modelValue",{...n.modelValue,enforceUpperLowerCase:c})});return(c,p)=>(M(),G("form",{onSubmit:p[7]||(p[7]=ju(()=>{},["prevent"]))},[et("div",{class:xt(c.$style.headingWrapper)},[et("h3",{class:xt(c.$style.heading)},ft(t.heading),3),t.canRemove?(M(),Ot(K(Bo),{key:0,"aria-label":K(Tt)("password_policy","Remove policy"),title:K(Tt)("password_policy","Remove policy"),variant:"tertiary",onClick:p[0]||(p[0]=m=>c.$emit("remove"))},{icon:Lt(()=>[ct(mb,{size:20})]),_:1},8,["aria-label","title"])):vt("",!0)],2),ct(K(xi),{modelValue:i.value,"onUpdate:modelValue":p[1]||(p[1]=m=>i.value=m),class:xt(c.$style.inputField),label:K(Tt)("password_policy","Minimum password length"),type:"number",min:"0"},null,8,["modelValue","class","label"]),ct(K(Co),{modelValue:s.value,"onUpdate:modelValue":p[2]||(p[2]=m=>s.value=m),type:"switch"},{default:Lt(()=>[Ae(ft(K(Tt)("password_policy","Forbid common passwords")),1)]),_:1},8,["modelValue"]),ct(K(Co),{modelValue:d.value,"onUpdate:modelValue":p[3]||(p[3]=m=>d.value=m),type:"switch"},{default:Lt(()=>[Ae(ft(K(Tt)("password_policy","Enforce upper and lower case characters")),1)]),_:1},8,["modelValue"]),ct(K(Co),{modelValue:l.value,"onUpdate:modelValue":p[4]||(p[4]=m=>l.value=m),type:"switch"},{default:Lt(()=>[Ae(ft(K(Tt)("password_policy","Enforce numeric characters")),1)]),_:1},8,["modelValue"]),ct(K(Co),{modelValue:a.value,"onUpdate:modelValue":p[5]||(p[5]=m=>a.value=m),type:"switch"},{default:Lt(()=>[Ae(ft(K(Tt)("password_policy","Enforce special characters")),1)]),_:1},8,["modelValue"]),ct(K(Co),{modelValue:r.value,"onUpdate:modelValue":p[6]||(p[6]=m=>r.value=m),type:"switch"},{default:Lt(()=>[Ae(ft(K(Tt)("password_policy","Check password against the list of breached passwords from haveibeenpwned.com")),1)]),_:1},8,["modelValue"]),et("p",{class:xt(c.$style.hint)},ft(K(Tt)("password_policy","This check creates a hash of the password and sends the first 5 characters of this hash to the haveibeenpwned.com API to retrieve a list of all hashes that start with those. Then it checks on the Nextcloud instance if the password hash is in the result set.")),3)],32))}}),yb="_heading_nsb3k_2",vb="_headingWrapper_nsb3k_7",bb="_hint_nsb3k_12",_b="_inputField_nsb3k_17",wb={heading:yb,headingWrapper:vb,hint:bb,inputField:_b},Eb={$style:wb},Sb=Jn(gb,[["__cssModules",Eb]]),Tb=le({__name:"AdminSettings",setup(t){const e=vs(Af().password_policy.policies),n=yt(()=>Object.keys(e.value));function o(s,l){Oo.debug(`Update password policy ${s}`,{policy:l});for(const[a,d]of Object.entries(l))if(d!==e.value[s]?.[a]){const c=typeof d=="boolean"?d?"1":"0":String(d);window.OCP.AppConfig.setValue("password_policy",s==="account"?a:`${a}_${s}`,c)}e.value[s]=l}function i(s){if(Oo.debug(`Add password policy ${s}`),s in e.value){Oo.warn(`Password context "${s}" already registered`);return}const l=[...Object.keys(e.value),s];window.OCP.AppConfig.setValue("password_policy","passwordContexts",JSON.stringify(l)),e.value[s]={...My}}function r(s){Oo.debug(`Remove password policy ${s}`);const l=Object.keys(e.value).filter(a=>a!==s);window.OCP.AppConfig.setValue("password_policy","passwordContexts",JSON.stringify(l)),delete e.value[s]}return(s,l)=>(M(),Ot(K(xm),{name:K(Tt)("password_policy","Password policy")},{default:Lt(()=>[ct(iv),et("div",{class:xt(s.$style.policyWrapper)},[(M(!0),G(jt,null,du(n.value,a=>(M(),Ot(Sb,{key:a,canRemove:a!=="account",heading:n.value.length===1?K(Tt)("password_policy","General password policies"):K(Gs)[a],modelValue:e.value[a],"onUpdate:modelValue":d=>o(a,d),onRemove:d=>r(a)},null,8,["canRemove","heading","modelValue","onUpdate:modelValue","onRemove"]))),128)),n.value.length val in map;\n}\n\nconst EMPTY_OBJ = !!(process.env.NODE_ENV !== \"production\") ? Object.freeze({}) : {};\nconst EMPTY_ARR = !!(process.env.NODE_ENV !== \"production\") ? Object.freeze([]) : [];\nconst NOOP = () => {\n};\nconst NO = () => false;\nconst isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter\n(key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);\nconst isModelListener = (key) => key.startsWith(\"onUpdate:\");\nconst extend = Object.assign;\nconst remove = (arr, el) => {\n const i = arr.indexOf(el);\n if (i > -1) {\n arr.splice(i, 1);\n }\n};\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\nconst hasOwn = (val, key) => hasOwnProperty.call(val, key);\nconst isArray = Array.isArray;\nconst isMap = (val) => toTypeString(val) === \"[object Map]\";\nconst isSet = (val) => toTypeString(val) === \"[object Set]\";\nconst isDate = (val) => toTypeString(val) === \"[object Date]\";\nconst isRegExp = (val) => toTypeString(val) === \"[object RegExp]\";\nconst isFunction = (val) => typeof val === \"function\";\nconst isString = (val) => typeof val === \"string\";\nconst isSymbol = (val) => typeof val === \"symbol\";\nconst isObject = (val) => val !== null && typeof val === \"object\";\nconst isPromise = (val) => {\n return (isObject(val) || isFunction(val)) && isFunction(val.then) && isFunction(val.catch);\n};\nconst objectToString = Object.prototype.toString;\nconst toTypeString = (value) => objectToString.call(value);\nconst toRawType = (value) => {\n return toTypeString(value).slice(8, -1);\n};\nconst isPlainObject = (val) => toTypeString(val) === \"[object Object]\";\nconst isIntegerKey = (key) => isString(key) && key !== \"NaN\" && key[0] !== \"-\" && \"\" + parseInt(key, 10) === key;\nconst isReservedProp = /* @__PURE__ */ makeMap(\n // the leading comma is intentional so empty string \"\" is also included\n \",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted\"\n);\nconst isBuiltInDirective = /* @__PURE__ */ makeMap(\n \"bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo\"\n);\nconst cacheStringFunction = (fn) => {\n const cache = /* @__PURE__ */ Object.create(null);\n return ((str) => {\n const hit = cache[str];\n return hit || (cache[str] = fn(str));\n });\n};\nconst camelizeRE = /-\\w/g;\nconst camelize = cacheStringFunction(\n (str) => {\n return str.replace(camelizeRE, (c) => c.slice(1).toUpperCase());\n }\n);\nconst hyphenateRE = /\\B([A-Z])/g;\nconst hyphenate = cacheStringFunction(\n (str) => str.replace(hyphenateRE, \"-$1\").toLowerCase()\n);\nconst capitalize = cacheStringFunction((str) => {\n return str.charAt(0).toUpperCase() + str.slice(1);\n});\nconst toHandlerKey = cacheStringFunction(\n (str) => {\n const s = str ? `on${capitalize(str)}` : ``;\n return s;\n }\n);\nconst hasChanged = (value, oldValue) => !Object.is(value, oldValue);\nconst invokeArrayFns = (fns, ...arg) => {\n for (let i = 0; i < fns.length; i++) {\n fns[i](...arg);\n }\n};\nconst def = (obj, key, value, writable = false) => {\n Object.defineProperty(obj, key, {\n configurable: true,\n enumerable: false,\n writable,\n value\n });\n};\nconst looseToNumber = (val) => {\n const n = parseFloat(val);\n return isNaN(n) ? val : n;\n};\nconst toNumber = (val) => {\n const n = isString(val) ? Number(val) : NaN;\n return isNaN(n) ? val : n;\n};\nlet _globalThis;\nconst getGlobalThis = () => {\n return _globalThis || (_globalThis = typeof globalThis !== \"undefined\" ? globalThis : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : typeof global !== \"undefined\" ? global : {});\n};\nconst identRE = /^[_$a-zA-Z\\xA0-\\uFFFF][_$a-zA-Z0-9\\xA0-\\uFFFF]*$/;\nfunction genPropsAccessExp(name) {\n return identRE.test(name) ? `__props.${name}` : `__props[${JSON.stringify(name)}]`;\n}\nfunction genCacheKey(source, options) {\n return source + JSON.stringify(\n options,\n (_, val) => typeof val === \"function\" ? val.toString() : val\n );\n}\n\nconst PatchFlags = {\n \"TEXT\": 1,\n \"1\": \"TEXT\",\n \"CLASS\": 2,\n \"2\": \"CLASS\",\n \"STYLE\": 4,\n \"4\": \"STYLE\",\n \"PROPS\": 8,\n \"8\": \"PROPS\",\n \"FULL_PROPS\": 16,\n \"16\": \"FULL_PROPS\",\n \"NEED_HYDRATION\": 32,\n \"32\": \"NEED_HYDRATION\",\n \"STABLE_FRAGMENT\": 64,\n \"64\": \"STABLE_FRAGMENT\",\n \"KEYED_FRAGMENT\": 128,\n \"128\": \"KEYED_FRAGMENT\",\n \"UNKEYED_FRAGMENT\": 256,\n \"256\": \"UNKEYED_FRAGMENT\",\n \"NEED_PATCH\": 512,\n \"512\": \"NEED_PATCH\",\n \"DYNAMIC_SLOTS\": 1024,\n \"1024\": \"DYNAMIC_SLOTS\",\n \"DEV_ROOT_FRAGMENT\": 2048,\n \"2048\": \"DEV_ROOT_FRAGMENT\",\n \"CACHED\": -1,\n \"-1\": \"CACHED\",\n \"BAIL\": -2,\n \"-2\": \"BAIL\"\n};\nconst PatchFlagNames = {\n [1]: `TEXT`,\n [2]: `CLASS`,\n [4]: `STYLE`,\n [8]: `PROPS`,\n [16]: `FULL_PROPS`,\n [32]: `NEED_HYDRATION`,\n [64]: `STABLE_FRAGMENT`,\n [128]: `KEYED_FRAGMENT`,\n [256]: `UNKEYED_FRAGMENT`,\n [512]: `NEED_PATCH`,\n [1024]: `DYNAMIC_SLOTS`,\n [2048]: `DEV_ROOT_FRAGMENT`,\n [-1]: `CACHED`,\n [-2]: `BAIL`\n};\n\nconst ShapeFlags = {\n \"ELEMENT\": 1,\n \"1\": \"ELEMENT\",\n \"FUNCTIONAL_COMPONENT\": 2,\n \"2\": \"FUNCTIONAL_COMPONENT\",\n \"STATEFUL_COMPONENT\": 4,\n \"4\": \"STATEFUL_COMPONENT\",\n \"TEXT_CHILDREN\": 8,\n \"8\": \"TEXT_CHILDREN\",\n \"ARRAY_CHILDREN\": 16,\n \"16\": \"ARRAY_CHILDREN\",\n \"SLOTS_CHILDREN\": 32,\n \"32\": \"SLOTS_CHILDREN\",\n \"TELEPORT\": 64,\n \"64\": \"TELEPORT\",\n \"SUSPENSE\": 128,\n \"128\": \"SUSPENSE\",\n \"COMPONENT_SHOULD_KEEP_ALIVE\": 256,\n \"256\": \"COMPONENT_SHOULD_KEEP_ALIVE\",\n \"COMPONENT_KEPT_ALIVE\": 512,\n \"512\": \"COMPONENT_KEPT_ALIVE\",\n \"COMPONENT\": 6,\n \"6\": \"COMPONENT\"\n};\n\nconst SlotFlags = {\n \"STABLE\": 1,\n \"1\": \"STABLE\",\n \"DYNAMIC\": 2,\n \"2\": \"DYNAMIC\",\n \"FORWARDED\": 3,\n \"3\": \"FORWARDED\"\n};\nconst slotFlagsText = {\n [1]: \"STABLE\",\n [2]: \"DYNAMIC\",\n [3]: \"FORWARDED\"\n};\n\nconst GLOBALS_ALLOWED = \"Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol\";\nconst isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED);\nconst isGloballyWhitelisted = isGloballyAllowed;\n\nconst range = 2;\nfunction generateCodeFrame(source, start = 0, end = source.length) {\n start = Math.max(0, Math.min(start, source.length));\n end = Math.max(0, Math.min(end, source.length));\n if (start > end) return \"\";\n let lines = source.split(/(\\r?\\n)/);\n const newlineSequences = lines.filter((_, idx) => idx % 2 === 1);\n lines = lines.filter((_, idx) => idx % 2 === 0);\n let count = 0;\n const res = [];\n for (let i = 0; i < lines.length; i++) {\n count += lines[i].length + (newlineSequences[i] && newlineSequences[i].length || 0);\n if (count >= start) {\n for (let j = i - range; j <= i + range || end > count; j++) {\n if (j < 0 || j >= lines.length) continue;\n const line = j + 1;\n res.push(\n `${line}${\" \".repeat(Math.max(3 - String(line).length, 0))}| ${lines[j]}`\n );\n const lineLength = lines[j].length;\n const newLineSeqLength = newlineSequences[j] && newlineSequences[j].length || 0;\n if (j === i) {\n const pad = start - (count - (lineLength + newLineSeqLength));\n const length = Math.max(\n 1,\n end > count ? lineLength - pad : end - start\n );\n res.push(` | ` + \" \".repeat(pad) + \"^\".repeat(length));\n } else if (j > i) {\n if (end > count) {\n const length = Math.max(Math.min(end - count, lineLength), 1);\n res.push(` | ` + \"^\".repeat(length));\n }\n count += lineLength + newLineSeqLength;\n }\n }\n break;\n }\n }\n return res.join(\"\\n\");\n}\n\nfunction normalizeStyle(value) {\n if (isArray(value)) {\n const res = {};\n for (let i = 0; i < value.length; i++) {\n const item = value[i];\n const normalized = isString(item) ? parseStringStyle(item) : normalizeStyle(item);\n if (normalized) {\n for (const key in normalized) {\n res[key] = normalized[key];\n }\n }\n }\n return res;\n } else if (isString(value) || isObject(value)) {\n return value;\n }\n}\nconst listDelimiterRE = /;(?![^(]*\\))/g;\nconst propertyDelimiterRE = /:([^]+)/;\nconst styleCommentRE = /\\/\\*[^]*?\\*\\//g;\nfunction parseStringStyle(cssText) {\n const ret = {};\n cssText.replace(styleCommentRE, \"\").split(listDelimiterRE).forEach((item) => {\n if (item) {\n const tmp = item.split(propertyDelimiterRE);\n tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim());\n }\n });\n return ret;\n}\nfunction stringifyStyle(styles) {\n if (!styles) return \"\";\n if (isString(styles)) return styles;\n let ret = \"\";\n for (const key in styles) {\n const value = styles[key];\n if (isString(value) || typeof value === \"number\") {\n const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);\n ret += `${normalizedKey}:${value};`;\n }\n }\n return ret;\n}\nfunction normalizeClass(value) {\n let res = \"\";\n if (isString(value)) {\n res = value;\n } else if (isArray(value)) {\n for (let i = 0; i < value.length; i++) {\n const normalized = normalizeClass(value[i]);\n if (normalized) {\n res += normalized + \" \";\n }\n }\n } else if (isObject(value)) {\n for (const name in value) {\n if (value[name]) {\n res += name + \" \";\n }\n }\n }\n return res.trim();\n}\nfunction normalizeProps(props) {\n if (!props) return null;\n let { class: klass, style } = props;\n if (klass && !isString(klass)) {\n props.class = normalizeClass(klass);\n }\n if (style) {\n props.style = normalizeStyle(style);\n }\n return props;\n}\n\nconst HTML_TAGS = \"html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot\";\nconst SVG_TAGS = \"svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view\";\nconst MATH_TAGS = \"annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics\";\nconst VOID_TAGS = \"area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr\";\nconst isHTMLTag = /* @__PURE__ */ makeMap(HTML_TAGS);\nconst isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);\nconst isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS);\nconst isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS);\n\nconst specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;\nconst isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);\nconst isBooleanAttr = /* @__PURE__ */ makeMap(\n specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`\n);\nfunction includeBooleanAttr(value) {\n return !!value || value === \"\";\n}\nconst unsafeAttrCharRE = /[>/=\"'\\u0009\\u000a\\u000c\\u0020]/;\nconst attrValidationCache = {};\nfunction isSSRSafeAttrName(name) {\n if (attrValidationCache.hasOwnProperty(name)) {\n return attrValidationCache[name];\n }\n const isUnsafe = unsafeAttrCharRE.test(name);\n if (isUnsafe) {\n console.error(`unsafe attribute name: ${name}`);\n }\n return attrValidationCache[name] = !isUnsafe;\n}\nconst propsToAttrMap = {\n acceptCharset: \"accept-charset\",\n className: \"class\",\n htmlFor: \"for\",\n httpEquiv: \"http-equiv\"\n};\nconst isKnownHtmlAttr = /* @__PURE__ */ makeMap(\n `accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap`\n);\nconst isKnownSvgAttr = /* @__PURE__ */ makeMap(\n `xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan`\n);\nconst isKnownMathMLAttr = /* @__PURE__ */ makeMap(\n `accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns`\n);\nfunction isRenderableAttrValue(value) {\n if (value == null) {\n return false;\n }\n const type = typeof value;\n return type === \"string\" || type === \"number\" || type === \"boolean\";\n}\n\nconst escapeRE = /[\"'&<>]/;\nfunction escapeHtml(string) {\n const str = \"\" + string;\n const match = escapeRE.exec(str);\n if (!match) {\n return str;\n }\n let html = \"\";\n let escaped;\n let index;\n let lastIndex = 0;\n for (index = match.index; index < str.length; index++) {\n switch (str.charCodeAt(index)) {\n case 34:\n escaped = \""\";\n break;\n case 38:\n escaped = \"&\";\n break;\n case 39:\n escaped = \"'\";\n break;\n case 60:\n escaped = \"<\";\n break;\n case 62:\n escaped = \">\";\n break;\n default:\n continue;\n }\n if (lastIndex !== index) {\n html += str.slice(lastIndex, index);\n }\n lastIndex = index + 1;\n html += escaped;\n }\n return lastIndex !== index ? html + str.slice(lastIndex, index) : html;\n}\nconst commentStripRE = /^-?>||--!>|?@[\\\\\\]^`{|}~]/g;\nfunction getEscapedCssVarName(key, doubleEscape) {\n return key.replace(\n cssVarNameEscapeSymbolsRE,\n (s) => doubleEscape ? s === '\"' ? '\\\\\\\\\\\\\"' : `\\\\\\\\${s}` : `\\\\${s}`\n );\n}\n\nfunction looseCompareArrays(a, b) {\n if (a.length !== b.length) return false;\n let equal = true;\n for (let i = 0; equal && i < a.length; i++) {\n equal = looseEqual(a[i], b[i]);\n }\n return equal;\n}\nfunction looseEqual(a, b) {\n if (a === b) return true;\n let aValidType = isDate(a);\n let bValidType = isDate(b);\n if (aValidType || bValidType) {\n return aValidType && bValidType ? a.getTime() === b.getTime() : false;\n }\n aValidType = isSymbol(a);\n bValidType = isSymbol(b);\n if (aValidType || bValidType) {\n return a === b;\n }\n aValidType = isArray(a);\n bValidType = isArray(b);\n if (aValidType || bValidType) {\n return aValidType && bValidType ? looseCompareArrays(a, b) : false;\n }\n aValidType = isObject(a);\n bValidType = isObject(b);\n if (aValidType || bValidType) {\n if (!aValidType || !bValidType) {\n return false;\n }\n const aKeysCount = Object.keys(a).length;\n const bKeysCount = Object.keys(b).length;\n if (aKeysCount !== bKeysCount) {\n return false;\n }\n for (const key in a) {\n const aHasKey = a.hasOwnProperty(key);\n const bHasKey = b.hasOwnProperty(key);\n if (aHasKey && !bHasKey || !aHasKey && bHasKey || !looseEqual(a[key], b[key])) {\n return false;\n }\n }\n }\n return String(a) === String(b);\n}\nfunction looseIndexOf(arr, val) {\n return arr.findIndex((item) => looseEqual(item, val));\n}\n\nconst isRef = (val) => {\n return !!(val && val[\"__v_isRef\"] === true);\n};\nconst toDisplayString = (val) => {\n return isString(val) ? val : val == null ? \"\" : isArray(val) || isObject(val) && (val.toString === objectToString || !isFunction(val.toString)) ? isRef(val) ? toDisplayString(val.value) : JSON.stringify(val, replacer, 2) : String(val);\n};\nconst replacer = (_key, val) => {\n if (isRef(val)) {\n return replacer(_key, val.value);\n } else if (isMap(val)) {\n return {\n [`Map(${val.size})`]: [...val.entries()].reduce(\n (entries, [key, val2], i) => {\n entries[stringifySymbol(key, i) + \" =>\"] = val2;\n return entries;\n },\n {}\n )\n };\n } else if (isSet(val)) {\n return {\n [`Set(${val.size})`]: [...val.values()].map((v) => stringifySymbol(v))\n };\n } else if (isSymbol(val)) {\n return stringifySymbol(val);\n } else if (isObject(val) && !isArray(val) && !isPlainObject(val)) {\n return String(val);\n }\n return val;\n};\nconst stringifySymbol = (v, i = \"\") => {\n var _a;\n return (\n // Symbol.description in es2019+ so we need to cast here to pass\n // the lib: es2016 check\n isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v\n );\n};\n\nfunction normalizeCssVarValue(value) {\n if (value == null) {\n return \"initial\";\n }\n if (typeof value === \"string\") {\n return value === \"\" ? \" \" : value;\n }\n if (typeof value !== \"number\" || !Number.isFinite(value)) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n console.warn(\n \"[Vue warn] Invalid value used for CSS binding. Expected a string or a finite number but received:\",\n value\n );\n }\n }\n return String(value);\n}\n\nexport { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, PatchFlagNames, PatchFlags, ShapeFlags, SlotFlags, camelize, capitalize, cssVarNameEscapeSymbolsRE, def, escapeHtml, escapeHtmlComment, extend, genCacheKey, genPropsAccessExp, generateCodeFrame, getEscapedCssVarName, getGlobalThis, hasChanged, hasOwn, hyphenate, includeBooleanAttr, invokeArrayFns, isArray, isBooleanAttr, isBuiltInDirective, isDate, isFunction, isGloballyAllowed, isGloballyWhitelisted, isHTMLTag, isIntegerKey, isKnownHtmlAttr, isKnownMathMLAttr, isKnownSvgAttr, isMap, isMathMLTag, isModelListener, isObject, isOn, isPlainObject, isPromise, isRegExp, isRenderableAttrValue, isReservedProp, isSSRSafeAttrName, isSVGTag, isSet, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, looseToNumber, makeMap, normalizeClass, normalizeCssVarValue, normalizeProps, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, slotFlagsText, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toRawType, toTypeString };\n","/**\n* @vue/reactivity v3.5.39\n* (c) 2018-present Yuxi (Evan) You and Vue contributors\n* @license MIT\n**/\nimport { extend, hasChanged, isArray, isIntegerKey, isSymbol, isMap, hasOwn, isObject, makeMap, capitalize, toRawType, def, isFunction, EMPTY_OBJ, isSet, isPlainObject, remove, NOOP } from '@vue/shared';\n\nfunction warn(msg, ...args) {\n console.warn(`[Vue warn] ${msg}`, ...args);\n}\n\nlet activeEffectScope;\nclass EffectScope {\n // TODO isolatedDeclarations \"__v_skip\"\n constructor(detached = false) {\n this.detached = detached;\n /**\n * @internal\n */\n this._active = true;\n /**\n * @internal track `on` calls, allow `on` call multiple times\n */\n this._on = 0;\n /**\n * @internal\n */\n this.effects = [];\n /**\n * @internal\n */\n this.cleanups = [];\n this._isPaused = false;\n this._warnOnRun = true;\n this.__v_skip = true;\n if (!detached && activeEffectScope) {\n if (activeEffectScope.active) {\n this.parent = activeEffectScope;\n this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(\n this\n ) - 1;\n } else {\n this._active = false;\n this._warnOnRun = false;\n }\n }\n }\n get active() {\n return this._active;\n }\n pause() {\n if (this._active) {\n this._isPaused = true;\n let i, l;\n if (this.scopes) {\n for (i = 0, l = this.scopes.length; i < l; i++) {\n this.scopes[i].pause();\n }\n }\n for (i = 0, l = this.effects.length; i < l; i++) {\n this.effects[i].pause();\n }\n }\n }\n /**\n * Resumes the effect scope, including all child scopes and effects.\n */\n resume() {\n if (this._active) {\n if (this._isPaused) {\n this._isPaused = false;\n let i, l;\n if (this.scopes) {\n for (i = 0, l = this.scopes.length; i < l; i++) {\n this.scopes[i].resume();\n }\n }\n for (i = 0, l = this.effects.length; i < l; i++) {\n this.effects[i].resume();\n }\n }\n }\n }\n run(fn) {\n if (this._active) {\n const currentEffectScope = activeEffectScope;\n try {\n activeEffectScope = this;\n return fn();\n } finally {\n activeEffectScope = currentEffectScope;\n }\n } else if (!!(process.env.NODE_ENV !== \"production\") && this._warnOnRun) {\n warn(`cannot run an inactive effect scope.`);\n }\n }\n /**\n * This should only be called on non-detached scopes\n * @internal\n */\n on() {\n if (++this._on === 1) {\n this.prevScope = activeEffectScope;\n activeEffectScope = this;\n }\n }\n /**\n * This should only be called on non-detached scopes\n * @internal\n */\n off() {\n if (this._on > 0 && --this._on === 0) {\n if (activeEffectScope === this) {\n activeEffectScope = this.prevScope;\n } else {\n let current = activeEffectScope;\n while (current) {\n if (current.prevScope === this) {\n current.prevScope = this.prevScope;\n break;\n }\n current = current.prevScope;\n }\n }\n this.prevScope = void 0;\n }\n }\n stop(fromParent) {\n if (this._active) {\n this._active = false;\n let i, l;\n for (i = 0, l = this.effects.length; i < l; i++) {\n this.effects[i].stop();\n }\n this.effects.length = 0;\n for (i = 0, l = this.cleanups.length; i < l; i++) {\n this.cleanups[i]();\n }\n this.cleanups.length = 0;\n if (this.scopes) {\n for (i = 0, l = this.scopes.length; i < l; i++) {\n this.scopes[i].stop(true);\n }\n this.scopes.length = 0;\n }\n if (!this.detached && this.parent && !fromParent) {\n const last = this.parent.scopes.pop();\n if (last && last !== this) {\n this.parent.scopes[this.index] = last;\n last.index = this.index;\n }\n }\n this.parent = void 0;\n }\n }\n}\nfunction effectScope(detached) {\n return new EffectScope(detached);\n}\nfunction getCurrentScope() {\n return activeEffectScope;\n}\nfunction onScopeDispose(fn, failSilently = false) {\n if (activeEffectScope) {\n activeEffectScope.cleanups.push(fn);\n } else if (!!(process.env.NODE_ENV !== \"production\") && !failSilently) {\n warn(\n `onScopeDispose() is called when there is no active effect scope to be associated with.`\n );\n }\n}\n\nlet activeSub;\nconst EffectFlags = {\n \"ACTIVE\": 1,\n \"1\": \"ACTIVE\",\n \"RUNNING\": 2,\n \"2\": \"RUNNING\",\n \"TRACKING\": 4,\n \"4\": \"TRACKING\",\n \"NOTIFIED\": 8,\n \"8\": \"NOTIFIED\",\n \"DIRTY\": 16,\n \"16\": \"DIRTY\",\n \"ALLOW_RECURSE\": 32,\n \"32\": \"ALLOW_RECURSE\",\n \"PAUSED\": 64,\n \"64\": \"PAUSED\",\n \"EVALUATED\": 128,\n \"128\": \"EVALUATED\"\n};\nconst pausedQueueEffects = /* @__PURE__ */ new WeakSet();\nclass ReactiveEffect {\n constructor(fn) {\n this.fn = fn;\n /**\n * @internal\n */\n this.deps = void 0;\n /**\n * @internal\n */\n this.depsTail = void 0;\n /**\n * @internal\n */\n this.flags = 1 | 4;\n /**\n * @internal\n */\n this.next = void 0;\n /**\n * @internal\n */\n this.cleanup = void 0;\n this.scheduler = void 0;\n if (activeEffectScope) {\n if (activeEffectScope.active) {\n activeEffectScope.effects.push(this);\n } else {\n this.flags &= -2;\n }\n }\n }\n pause() {\n this.flags |= 64;\n }\n resume() {\n if (this.flags & 64) {\n this.flags &= -65;\n if (pausedQueueEffects.has(this)) {\n pausedQueueEffects.delete(this);\n this.trigger();\n }\n }\n }\n /**\n * @internal\n */\n notify() {\n if (this.flags & 2 && !(this.flags & 32)) {\n return;\n }\n if (!(this.flags & 8)) {\n batch(this);\n }\n }\n run() {\n if (!(this.flags & 1)) {\n return this.fn();\n }\n this.flags |= 2;\n cleanupEffect(this);\n prepareDeps(this);\n const prevEffect = activeSub;\n const prevShouldTrack = shouldTrack;\n activeSub = this;\n shouldTrack = true;\n try {\n return this.fn();\n } finally {\n if (!!(process.env.NODE_ENV !== \"production\") && activeSub !== this) {\n warn(\n \"Active effect was not restored correctly - this is likely a Vue internal bug.\"\n );\n }\n cleanupDeps(this);\n activeSub = prevEffect;\n shouldTrack = prevShouldTrack;\n this.flags &= -3;\n }\n }\n stop() {\n if (this.flags & 1) {\n for (let link = this.deps; link; link = link.nextDep) {\n removeSub(link);\n }\n this.deps = this.depsTail = void 0;\n cleanupEffect(this);\n this.onStop && this.onStop();\n this.flags &= -2;\n }\n }\n trigger() {\n if (this.flags & 64) {\n pausedQueueEffects.add(this);\n } else if (this.scheduler) {\n this.scheduler();\n } else {\n this.runIfDirty();\n }\n }\n /**\n * @internal\n */\n runIfDirty() {\n if (isDirty(this)) {\n this.run();\n }\n }\n get dirty() {\n return isDirty(this);\n }\n}\nlet batchDepth = 0;\nlet batchedSub;\nlet batchedComputed;\nfunction batch(sub, isComputed = false) {\n sub.flags |= 8;\n if (isComputed) {\n sub.next = batchedComputed;\n batchedComputed = sub;\n return;\n }\n sub.next = batchedSub;\n batchedSub = sub;\n}\nfunction startBatch() {\n batchDepth++;\n}\nfunction endBatch() {\n if (--batchDepth > 0) {\n return;\n }\n if (batchedComputed) {\n let e = batchedComputed;\n batchedComputed = void 0;\n while (e) {\n const next = e.next;\n e.next = void 0;\n e.flags &= -9;\n e = next;\n }\n }\n let error;\n while (batchedSub) {\n let e = batchedSub;\n batchedSub = void 0;\n while (e) {\n const next = e.next;\n e.next = void 0;\n e.flags &= -9;\n if (e.flags & 1) {\n try {\n ;\n e.trigger();\n } catch (err) {\n if (!error) error = err;\n }\n }\n e = next;\n }\n }\n if (error) throw error;\n}\nfunction prepareDeps(sub) {\n for (let link = sub.deps; link; link = link.nextDep) {\n link.version = -1;\n link.prevActiveLink = link.dep.activeLink;\n link.dep.activeLink = link;\n }\n}\nfunction cleanupDeps(sub) {\n let head;\n let tail = sub.depsTail;\n let link = tail;\n while (link) {\n const prev = link.prevDep;\n if (link.version === -1) {\n if (link === tail) tail = prev;\n removeSub(link);\n removeDep(link);\n } else {\n head = link;\n }\n link.dep.activeLink = link.prevActiveLink;\n link.prevActiveLink = void 0;\n link = prev;\n }\n sub.deps = head;\n sub.depsTail = tail;\n}\nfunction isDirty(sub) {\n for (let link = sub.deps; link; link = link.nextDep) {\n if (link.dep.version !== link.version || link.dep.computed && (refreshComputed(link.dep.computed) || link.dep.version !== link.version)) {\n return true;\n }\n }\n if (sub._dirty) {\n return true;\n }\n return false;\n}\nfunction refreshComputed(computed) {\n if (computed.flags & 4 && !(computed.flags & 16)) {\n return;\n }\n computed.flags &= -17;\n if (computed.globalVersion === globalVersion) {\n return;\n }\n computed.globalVersion = globalVersion;\n if (!computed.isSSR && computed.flags & 128 && (!computed.deps && !computed._dirty || !isDirty(computed))) {\n return;\n }\n computed.flags |= 2;\n const dep = computed.dep;\n const prevSub = activeSub;\n const prevShouldTrack = shouldTrack;\n activeSub = computed;\n shouldTrack = true;\n try {\n prepareDeps(computed);\n const value = computed.fn(computed._value);\n if (dep.version === 0 || hasChanged(value, computed._value)) {\n computed.flags |= 128;\n computed._value = value;\n dep.version++;\n }\n } catch (err) {\n dep.version++;\n throw err;\n } finally {\n activeSub = prevSub;\n shouldTrack = prevShouldTrack;\n cleanupDeps(computed);\n computed.flags &= -3;\n }\n}\nfunction removeSub(link, soft = false) {\n const { dep, prevSub, nextSub } = link;\n if (prevSub) {\n prevSub.nextSub = nextSub;\n link.prevSub = void 0;\n }\n if (nextSub) {\n nextSub.prevSub = prevSub;\n link.nextSub = void 0;\n }\n if (!!(process.env.NODE_ENV !== \"production\") && dep.subsHead === link) {\n dep.subsHead = nextSub;\n }\n if (dep.subs === link) {\n dep.subs = prevSub;\n if (!prevSub && dep.computed) {\n dep.computed.flags &= -5;\n for (let l = dep.computed.deps; l; l = l.nextDep) {\n removeSub(l, true);\n }\n }\n }\n if (!soft && !--dep.sc && dep.map) {\n dep.map.delete(dep.key);\n }\n}\nfunction removeDep(link) {\n const { prevDep, nextDep } = link;\n if (prevDep) {\n prevDep.nextDep = nextDep;\n link.prevDep = void 0;\n }\n if (nextDep) {\n nextDep.prevDep = prevDep;\n link.nextDep = void 0;\n }\n}\nfunction effect(fn, options) {\n if (fn.effect instanceof ReactiveEffect) {\n fn = fn.effect.fn;\n }\n const e = new ReactiveEffect(fn);\n if (options) {\n extend(e, options);\n }\n try {\n e.run();\n } catch (err) {\n e.stop();\n throw err;\n }\n const runner = e.run.bind(e);\n runner.effect = e;\n return runner;\n}\nfunction stop(runner) {\n runner.effect.stop();\n}\nlet shouldTrack = true;\nconst trackStack = [];\nfunction pauseTracking() {\n trackStack.push(shouldTrack);\n shouldTrack = false;\n}\nfunction enableTracking() {\n trackStack.push(shouldTrack);\n shouldTrack = true;\n}\nfunction resetTracking() {\n const last = trackStack.pop();\n shouldTrack = last === void 0 ? true : last;\n}\nfunction onEffectCleanup(fn, failSilently = false) {\n if (activeSub instanceof ReactiveEffect) {\n activeSub.cleanup = fn;\n } else if (!!(process.env.NODE_ENV !== \"production\") && !failSilently) {\n warn(\n `onEffectCleanup() was called when there was no active effect to associate with.`\n );\n }\n}\nfunction cleanupEffect(e) {\n const { cleanup } = e;\n e.cleanup = void 0;\n if (cleanup) {\n const prevSub = activeSub;\n activeSub = void 0;\n try {\n cleanup();\n } finally {\n activeSub = prevSub;\n }\n }\n}\n\nlet globalVersion = 0;\nclass Link {\n constructor(sub, dep) {\n this.sub = sub;\n this.dep = dep;\n this.version = dep.version;\n this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;\n }\n}\nclass Dep {\n // TODO isolatedDeclarations \"__v_skip\"\n constructor(computed) {\n this.computed = computed;\n this.version = 0;\n /**\n * Link between this dep and the current active effect\n */\n this.activeLink = void 0;\n /**\n * Doubly linked list representing the subscribing effects (tail)\n */\n this.subs = void 0;\n /**\n * For object property deps cleanup\n */\n this.map = void 0;\n this.key = void 0;\n /**\n * Subscriber counter\n */\n this.sc = 0;\n /**\n * @internal\n */\n this.__v_skip = true;\n if (!!(process.env.NODE_ENV !== \"production\")) {\n this.subsHead = void 0;\n }\n }\n track(debugInfo) {\n if (!activeSub || !shouldTrack || activeSub === this.computed) {\n return;\n }\n let link = this.activeLink;\n if (link === void 0 || link.sub !== activeSub) {\n link = this.activeLink = new Link(activeSub, this);\n if (!activeSub.deps) {\n activeSub.deps = activeSub.depsTail = link;\n } else {\n link.prevDep = activeSub.depsTail;\n activeSub.depsTail.nextDep = link;\n activeSub.depsTail = link;\n }\n addSub(link);\n } else if (link.version === -1) {\n link.version = this.version;\n if (link.nextDep) {\n const next = link.nextDep;\n next.prevDep = link.prevDep;\n if (link.prevDep) {\n link.prevDep.nextDep = next;\n }\n link.prevDep = activeSub.depsTail;\n link.nextDep = void 0;\n activeSub.depsTail.nextDep = link;\n activeSub.depsTail = link;\n if (activeSub.deps === link) {\n activeSub.deps = next;\n }\n }\n }\n if (!!(process.env.NODE_ENV !== \"production\") && activeSub.onTrack) {\n activeSub.onTrack(\n extend(\n {\n effect: activeSub\n },\n debugInfo\n )\n );\n }\n return link;\n }\n trigger(debugInfo) {\n this.version++;\n globalVersion++;\n this.notify(debugInfo);\n }\n notify(debugInfo) {\n startBatch();\n try {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n for (let head = this.subsHead; head; head = head.nextSub) {\n if (head.sub.onTrigger && !(head.sub.flags & 8)) {\n head.sub.onTrigger(\n extend(\n {\n effect: head.sub\n },\n debugInfo\n )\n );\n }\n }\n }\n for (let link = this.subs; link; link = link.prevSub) {\n if (link.sub.notify()) {\n ;\n link.sub.dep.notify();\n }\n }\n } finally {\n endBatch();\n }\n }\n}\nfunction addSub(link) {\n link.dep.sc++;\n if (link.sub.flags & 4) {\n const computed = link.dep.computed;\n if (computed && !link.dep.subs) {\n computed.flags |= 4 | 16;\n for (let l = computed.deps; l; l = l.nextDep) {\n addSub(l);\n }\n }\n const currentTail = link.dep.subs;\n if (currentTail !== link) {\n link.prevSub = currentTail;\n if (currentTail) currentTail.nextSub = link;\n }\n if (!!(process.env.NODE_ENV !== \"production\") && link.dep.subsHead === void 0) {\n link.dep.subsHead = link;\n }\n link.dep.subs = link;\n }\n}\nconst targetMap = /* @__PURE__ */ new WeakMap();\nconst ITERATE_KEY = /* @__PURE__ */ Symbol(\n !!(process.env.NODE_ENV !== \"production\") ? \"Object iterate\" : \"\"\n);\nconst MAP_KEY_ITERATE_KEY = /* @__PURE__ */ Symbol(\n !!(process.env.NODE_ENV !== \"production\") ? \"Map keys iterate\" : \"\"\n);\nconst ARRAY_ITERATE_KEY = /* @__PURE__ */ Symbol(\n !!(process.env.NODE_ENV !== \"production\") ? \"Array iterate\" : \"\"\n);\nfunction track(target, type, key) {\n if (shouldTrack && activeSub) {\n let depsMap = targetMap.get(target);\n if (!depsMap) {\n targetMap.set(target, depsMap = /* @__PURE__ */ new Map());\n }\n let dep = depsMap.get(key);\n if (!dep) {\n depsMap.set(key, dep = new Dep());\n dep.map = depsMap;\n dep.key = key;\n }\n if (!!(process.env.NODE_ENV !== \"production\")) {\n dep.track({\n target,\n type,\n key\n });\n } else {\n dep.track();\n }\n }\n}\nfunction trigger(target, type, key, newValue, oldValue, oldTarget) {\n const depsMap = targetMap.get(target);\n if (!depsMap) {\n globalVersion++;\n return;\n }\n const run = (dep) => {\n if (dep) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n dep.trigger({\n target,\n type,\n key,\n newValue,\n oldValue,\n oldTarget\n });\n } else {\n dep.trigger();\n }\n }\n };\n startBatch();\n if (type === \"clear\") {\n depsMap.forEach(run);\n } else {\n const targetIsArray = isArray(target);\n const isArrayIndex = targetIsArray && isIntegerKey(key);\n if (targetIsArray && key === \"length\") {\n const newLength = Number(newValue);\n depsMap.forEach((dep, key2) => {\n if (key2 === \"length\" || key2 === ARRAY_ITERATE_KEY || !isSymbol(key2) && key2 >= newLength) {\n run(dep);\n }\n });\n } else {\n if (key !== void 0 || depsMap.has(void 0)) {\n run(depsMap.get(key));\n }\n if (isArrayIndex) {\n run(depsMap.get(ARRAY_ITERATE_KEY));\n }\n switch (type) {\n case \"add\":\n if (!targetIsArray) {\n run(depsMap.get(ITERATE_KEY));\n if (isMap(target)) {\n run(depsMap.get(MAP_KEY_ITERATE_KEY));\n }\n } else if (isArrayIndex) {\n run(depsMap.get(\"length\"));\n }\n break;\n case \"delete\":\n if (!targetIsArray) {\n run(depsMap.get(ITERATE_KEY));\n if (isMap(target)) {\n run(depsMap.get(MAP_KEY_ITERATE_KEY));\n }\n }\n break;\n case \"set\":\n if (isMap(target)) {\n run(depsMap.get(ITERATE_KEY));\n }\n break;\n }\n }\n }\n endBatch();\n}\nfunction getDepFromReactive(object, key) {\n const depMap = targetMap.get(object);\n return depMap && depMap.get(key);\n}\n\nfunction reactiveReadArray(array) {\n const raw = toRaw(array);\n if (raw === array) return raw;\n track(raw, \"iterate\", ARRAY_ITERATE_KEY);\n return isShallow(array) ? raw : raw.map(toReactive);\n}\nfunction shallowReadArray(arr) {\n track(arr = toRaw(arr), \"iterate\", ARRAY_ITERATE_KEY);\n return arr;\n}\nfunction toWrapped(target, item) {\n if (isReadonly(target)) {\n return isReactive(target) ? toReadonly(toReactive(item)) : toReadonly(item);\n }\n return toReactive(item);\n}\nconst arrayInstrumentations = {\n __proto__: null,\n [Symbol.iterator]() {\n return iterator(this, Symbol.iterator, (item) => toWrapped(this, item));\n },\n concat(...args) {\n return reactiveReadArray(this).concat(\n ...args.map((x) => isArray(x) ? reactiveReadArray(x) : x)\n );\n },\n entries() {\n return iterator(this, \"entries\", (value) => {\n value[1] = toWrapped(this, value[1]);\n return value;\n });\n },\n every(fn, thisArg) {\n return apply(this, \"every\", fn, thisArg, void 0, arguments);\n },\n filter(fn, thisArg) {\n return apply(\n this,\n \"filter\",\n fn,\n thisArg,\n (v) => v.map((item) => toWrapped(this, item)),\n arguments\n );\n },\n find(fn, thisArg) {\n return apply(\n this,\n \"find\",\n fn,\n thisArg,\n (item) => toWrapped(this, item),\n arguments\n );\n },\n findIndex(fn, thisArg) {\n return apply(this, \"findIndex\", fn, thisArg, void 0, arguments);\n },\n findLast(fn, thisArg) {\n return apply(\n this,\n \"findLast\",\n fn,\n thisArg,\n (item) => toWrapped(this, item),\n arguments\n );\n },\n findLastIndex(fn, thisArg) {\n return apply(this, \"findLastIndex\", fn, thisArg, void 0, arguments);\n },\n // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement\n forEach(fn, thisArg) {\n return apply(this, \"forEach\", fn, thisArg, void 0, arguments);\n },\n includes(...args) {\n return searchProxy(this, \"includes\", args);\n },\n indexOf(...args) {\n return searchProxy(this, \"indexOf\", args);\n },\n join(separator) {\n return reactiveReadArray(this).join(separator);\n },\n // keys() iterator only reads `length`, no optimization required\n lastIndexOf(...args) {\n return searchProxy(this, \"lastIndexOf\", args);\n },\n map(fn, thisArg) {\n return apply(this, \"map\", fn, thisArg, void 0, arguments);\n },\n pop() {\n return noTracking(this, \"pop\");\n },\n push(...args) {\n return noTracking(this, \"push\", args);\n },\n reduce(fn, ...args) {\n return reduce(this, \"reduce\", fn, args);\n },\n reduceRight(fn, ...args) {\n return reduce(this, \"reduceRight\", fn, args);\n },\n shift() {\n return noTracking(this, \"shift\");\n },\n // slice could use ARRAY_ITERATE but also seems to beg for range tracking\n some(fn, thisArg) {\n return apply(this, \"some\", fn, thisArg, void 0, arguments);\n },\n splice(...args) {\n return noTracking(this, \"splice\", args);\n },\n toReversed() {\n return reactiveReadArray(this).toReversed();\n },\n toSorted(comparer) {\n return reactiveReadArray(this).toSorted(comparer);\n },\n toSpliced(...args) {\n return reactiveReadArray(this).toSpliced(...args);\n },\n unshift(...args) {\n return noTracking(this, \"unshift\", args);\n },\n values() {\n return iterator(this, \"values\", (item) => toWrapped(this, item));\n }\n};\nfunction iterator(self, method, wrapValue) {\n const arr = shallowReadArray(self);\n const iter = arr[method]();\n if (arr !== self && !isShallow(self)) {\n iter._next = iter.next;\n iter.next = () => {\n const result = iter._next();\n if (!result.done) {\n result.value = wrapValue(result.value);\n }\n return result;\n };\n }\n return iter;\n}\nconst arrayProto = Array.prototype;\nfunction apply(self, method, fn, thisArg, wrappedRetFn, args) {\n const arr = shallowReadArray(self);\n const needsWrap = arr !== self && !isShallow(self);\n const methodFn = arr[method];\n if (methodFn !== arrayProto[method]) {\n const result2 = methodFn.apply(self, args);\n return needsWrap ? toReactive(result2) : result2;\n }\n let wrappedFn = fn;\n if (arr !== self) {\n if (needsWrap) {\n wrappedFn = function(item, index) {\n return fn.call(this, toWrapped(self, item), index, self);\n };\n } else if (fn.length > 2) {\n wrappedFn = function(item, index) {\n return fn.call(this, item, index, self);\n };\n }\n }\n const result = methodFn.call(arr, wrappedFn, thisArg);\n return needsWrap && wrappedRetFn ? wrappedRetFn(result) : result;\n}\nfunction reduce(self, method, fn, args) {\n const arr = shallowReadArray(self);\n const needsWrap = arr !== self && !isShallow(self);\n let wrappedFn = fn;\n let wrapInitialAccumulator = false;\n if (arr !== self) {\n if (needsWrap) {\n wrapInitialAccumulator = args.length === 0;\n wrappedFn = function(acc, item, index) {\n if (wrapInitialAccumulator) {\n wrapInitialAccumulator = false;\n acc = toWrapped(self, acc);\n }\n return fn.call(this, acc, toWrapped(self, item), index, self);\n };\n } else if (fn.length > 3) {\n wrappedFn = function(acc, item, index) {\n return fn.call(this, acc, item, index, self);\n };\n }\n }\n const result = arr[method](wrappedFn, ...args);\n return wrapInitialAccumulator ? toWrapped(self, result) : result;\n}\nfunction searchProxy(self, method, args) {\n const arr = toRaw(self);\n track(arr, \"iterate\", ARRAY_ITERATE_KEY);\n const res = arr[method](...args);\n if ((res === -1 || res === false) && isProxy(args[0])) {\n args[0] = toRaw(args[0]);\n return arr[method](...args);\n }\n return res;\n}\nfunction noTracking(self, method, args = []) {\n pauseTracking();\n startBatch();\n const res = toRaw(self)[method].apply(self, args);\n endBatch();\n resetTracking();\n return res;\n}\n\nconst isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`);\nconst builtInSymbols = new Set(\n /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key) => key !== \"arguments\" && key !== \"caller\").map((key) => Symbol[key]).filter(isSymbol)\n);\nfunction hasOwnProperty(key) {\n if (!isSymbol(key)) key = String(key);\n const obj = toRaw(this);\n track(obj, \"has\", key);\n return obj.hasOwnProperty(key);\n}\nclass BaseReactiveHandler {\n constructor(_isReadonly = false, _isShallow = false) {\n this._isReadonly = _isReadonly;\n this._isShallow = _isShallow;\n }\n get(target, key, receiver) {\n if (key === \"__v_skip\") return target[\"__v_skip\"];\n const isReadonly2 = this._isReadonly, isShallow2 = this._isShallow;\n if (key === \"__v_isReactive\") {\n return !isReadonly2;\n } else if (key === \"__v_isReadonly\") {\n return isReadonly2;\n } else if (key === \"__v_isShallow\") {\n return isShallow2;\n } else if (key === \"__v_raw\") {\n if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype\n // this means the receiver is a user proxy of the reactive proxy\n Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {\n return target;\n }\n return;\n }\n const targetIsArray = isArray(target);\n if (!isReadonly2) {\n let fn;\n if (targetIsArray && (fn = arrayInstrumentations[key])) {\n return fn;\n }\n if (key === \"hasOwnProperty\") {\n return hasOwnProperty;\n }\n }\n const res = Reflect.get(\n target,\n key,\n // if this is a proxy wrapping a ref, return methods using the raw ref\n // as receiver so that we don't have to call `toRaw` on the ref in all\n // its class methods\n isRef(target) ? target : receiver\n );\n if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {\n return res;\n }\n if (!isReadonly2) {\n track(target, \"get\", key);\n }\n if (isShallow2) {\n return res;\n }\n if (isRef(res)) {\n const value = targetIsArray && isIntegerKey(key) ? res : res.value;\n return isReadonly2 && isObject(value) ? readonly(value) : value;\n }\n if (isObject(res)) {\n return isReadonly2 ? readonly(res) : reactive(res);\n }\n return res;\n }\n}\nclass MutableReactiveHandler extends BaseReactiveHandler {\n constructor(isShallow2 = false) {\n super(false, isShallow2);\n }\n set(target, key, value, receiver) {\n let oldValue = target[key];\n const isArrayWithIntegerKey = isArray(target) && isIntegerKey(key);\n if (!this._isShallow) {\n const isOldValueReadonly = isReadonly(oldValue);\n if (!isShallow(value) && !isReadonly(value)) {\n oldValue = toRaw(oldValue);\n value = toRaw(value);\n }\n if (!isArrayWithIntegerKey && isRef(oldValue) && !isRef(value)) {\n if (isOldValueReadonly) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n warn(\n `Set operation on key \"${String(key)}\" failed: target is readonly.`,\n target[key]\n );\n }\n return true;\n } else {\n oldValue.value = value;\n return true;\n }\n }\n }\n const hadKey = isArrayWithIntegerKey ? Number(key) < target.length : hasOwn(target, key);\n const result = Reflect.set(\n target,\n key,\n value,\n isRef(target) ? target : receiver\n );\n if (target === toRaw(receiver) && result) {\n if (!hadKey) {\n trigger(target, \"add\", key, value);\n } else if (hasChanged(value, oldValue)) {\n trigger(target, \"set\", key, value, oldValue);\n }\n }\n return result;\n }\n deleteProperty(target, key) {\n const hadKey = hasOwn(target, key);\n const oldValue = target[key];\n const result = Reflect.deleteProperty(target, key);\n if (result && hadKey) {\n trigger(target, \"delete\", key, void 0, oldValue);\n }\n return result;\n }\n has(target, key) {\n const result = Reflect.has(target, key);\n if (!isSymbol(key) || !builtInSymbols.has(key)) {\n track(target, \"has\", key);\n }\n return result;\n }\n ownKeys(target) {\n track(\n target,\n \"iterate\",\n isArray(target) ? \"length\" : ITERATE_KEY\n );\n return Reflect.ownKeys(target);\n }\n}\nclass ReadonlyReactiveHandler extends BaseReactiveHandler {\n constructor(isShallow2 = false) {\n super(true, isShallow2);\n }\n set(target, key) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n warn(\n `Set operation on key \"${String(key)}\" failed: target is readonly.`,\n target\n );\n }\n return true;\n }\n deleteProperty(target, key) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n warn(\n `Delete operation on key \"${String(key)}\" failed: target is readonly.`,\n target\n );\n }\n return true;\n }\n}\nconst mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler();\nconst readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler();\nconst shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(true);\nconst shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true);\n\nconst toShallow = (value) => value;\nconst getProto = (v) => Reflect.getPrototypeOf(v);\nfunction createIterableMethod(method, isReadonly2, isShallow2) {\n return function(...args) {\n const target = this[\"__v_raw\"];\n const rawTarget = toRaw(target);\n const targetIsMap = isMap(rawTarget);\n const isPair = method === \"entries\" || method === Symbol.iterator && targetIsMap;\n const isKeyOnly = method === \"keys\" && targetIsMap;\n const innerIterator = target[method](...args);\n const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;\n !isReadonly2 && track(\n rawTarget,\n \"iterate\",\n isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY\n );\n return extend(\n // inheriting all iterator properties\n Object.create(innerIterator),\n {\n // iterator protocol\n next() {\n const { value, done } = innerIterator.next();\n return done ? { value, done } : {\n value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),\n done\n };\n }\n }\n );\n };\n}\nfunction createReadonlyMethod(type) {\n return function(...args) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n const key = args[0] ? `on key \"${args[0]}\" ` : ``;\n warn(\n `${capitalize(type)} operation ${key}failed: target is readonly.`,\n toRaw(this)\n );\n }\n return type === \"delete\" ? false : type === \"clear\" ? void 0 : this;\n };\n}\nfunction createInstrumentations(readonly, shallow) {\n const instrumentations = {\n get(key) {\n const target = this[\"__v_raw\"];\n const rawTarget = toRaw(target);\n const rawKey = toRaw(key);\n if (!readonly) {\n if (hasChanged(key, rawKey)) {\n track(rawTarget, \"get\", key);\n }\n track(rawTarget, \"get\", rawKey);\n }\n const { has } = getProto(rawTarget);\n const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;\n if (has.call(rawTarget, key)) {\n return wrap(target.get(key));\n } else if (has.call(rawTarget, rawKey)) {\n return wrap(target.get(rawKey));\n } else if (target !== rawTarget) {\n target.get(key);\n }\n },\n get size() {\n const target = this[\"__v_raw\"];\n !readonly && track(toRaw(target), \"iterate\", ITERATE_KEY);\n return target.size;\n },\n has(key) {\n const target = this[\"__v_raw\"];\n const rawTarget = toRaw(target);\n const rawKey = toRaw(key);\n if (!readonly) {\n if (hasChanged(key, rawKey)) {\n track(rawTarget, \"has\", key);\n }\n track(rawTarget, \"has\", rawKey);\n }\n return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey);\n },\n forEach(callback, thisArg) {\n const observed = this;\n const target = observed[\"__v_raw\"];\n const rawTarget = toRaw(target);\n const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;\n !readonly && track(rawTarget, \"iterate\", ITERATE_KEY);\n return target.forEach((value, key) => {\n return callback.call(thisArg, wrap(value), wrap(key), observed);\n });\n }\n };\n extend(\n instrumentations,\n readonly ? {\n add: createReadonlyMethod(\"add\"),\n set: createReadonlyMethod(\"set\"),\n delete: createReadonlyMethod(\"delete\"),\n clear: createReadonlyMethod(\"clear\")\n } : {\n add(value) {\n const target = toRaw(this);\n const proto = getProto(target);\n const rawValue = toRaw(value);\n const valueToAdd = !shallow && !isShallow(value) && !isReadonly(value) ? rawValue : value;\n const hadKey = proto.has.call(target, valueToAdd) || hasChanged(value, valueToAdd) && proto.has.call(target, value) || hasChanged(rawValue, valueToAdd) && proto.has.call(target, rawValue);\n if (!hadKey) {\n target.add(valueToAdd);\n trigger(target, \"add\", valueToAdd, valueToAdd);\n }\n return this;\n },\n set(key, value) {\n if (!shallow && !isShallow(value) && !isReadonly(value)) {\n value = toRaw(value);\n }\n const target = toRaw(this);\n const { has, get } = getProto(target);\n let hadKey = has.call(target, key);\n if (!hadKey) {\n key = toRaw(key);\n hadKey = has.call(target, key);\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n checkIdentityKeys(target, has, key);\n }\n const oldValue = get.call(target, key);\n target.set(key, value);\n if (!hadKey) {\n trigger(target, \"add\", key, value);\n } else if (hasChanged(value, oldValue)) {\n trigger(target, \"set\", key, value, oldValue);\n }\n return this;\n },\n delete(key) {\n const target = toRaw(this);\n const { has, get } = getProto(target);\n let hadKey = has.call(target, key);\n if (!hadKey) {\n key = toRaw(key);\n hadKey = has.call(target, key);\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n checkIdentityKeys(target, has, key);\n }\n const oldValue = get ? get.call(target, key) : void 0;\n const result = target.delete(key);\n if (hadKey) {\n trigger(target, \"delete\", key, void 0, oldValue);\n }\n return result;\n },\n clear() {\n const target = toRaw(this);\n const hadItems = target.size !== 0;\n const oldTarget = !!(process.env.NODE_ENV !== \"production\") ? isMap(target) ? new Map(target) : new Set(target) : void 0;\n const result = target.clear();\n if (hadItems) {\n trigger(\n target,\n \"clear\",\n void 0,\n void 0,\n oldTarget\n );\n }\n return result;\n }\n }\n );\n const iteratorMethods = [\n \"keys\",\n \"values\",\n \"entries\",\n Symbol.iterator\n ];\n iteratorMethods.forEach((method) => {\n instrumentations[method] = createIterableMethod(method, readonly, shallow);\n });\n return instrumentations;\n}\nfunction createInstrumentationGetter(isReadonly2, shallow) {\n const instrumentations = createInstrumentations(isReadonly2, shallow);\n return (target, key, receiver) => {\n if (key === \"__v_isReactive\") {\n return !isReadonly2;\n } else if (key === \"__v_isReadonly\") {\n return isReadonly2;\n } else if (key === \"__v_raw\") {\n return target;\n }\n return Reflect.get(\n hasOwn(instrumentations, key) && key in target ? instrumentations : target,\n key,\n receiver\n );\n };\n}\nconst mutableCollectionHandlers = {\n get: /* @__PURE__ */ createInstrumentationGetter(false, false)\n};\nconst shallowCollectionHandlers = {\n get: /* @__PURE__ */ createInstrumentationGetter(false, true)\n};\nconst readonlyCollectionHandlers = {\n get: /* @__PURE__ */ createInstrumentationGetter(true, false)\n};\nconst shallowReadonlyCollectionHandlers = {\n get: /* @__PURE__ */ createInstrumentationGetter(true, true)\n};\nfunction checkIdentityKeys(target, has, key) {\n const rawKey = toRaw(key);\n if (rawKey !== key && has.call(target, rawKey)) {\n const type = toRawType(target);\n warn(\n `Reactive ${type} contains both the raw and reactive versions of the same object${type === `Map` ? ` as keys` : ``}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`\n );\n }\n}\n\nconst reactiveMap = /* @__PURE__ */ new WeakMap();\nconst shallowReactiveMap = /* @__PURE__ */ new WeakMap();\nconst readonlyMap = /* @__PURE__ */ new WeakMap();\nconst shallowReadonlyMap = /* @__PURE__ */ new WeakMap();\nfunction targetTypeMap(rawType) {\n switch (rawType) {\n case \"Object\":\n case \"Array\":\n return 1 /* COMMON */;\n case \"Map\":\n case \"Set\":\n case \"WeakMap\":\n case \"WeakSet\":\n return 2 /* COLLECTION */;\n default:\n return 0 /* INVALID */;\n }\n}\n// @__NO_SIDE_EFFECTS__\nfunction reactive(target) {\n if (/* @__PURE__ */ isReadonly(target)) {\n return target;\n }\n return createReactiveObject(\n target,\n false,\n mutableHandlers,\n mutableCollectionHandlers,\n reactiveMap\n );\n}\n// @__NO_SIDE_EFFECTS__\nfunction shallowReactive(target) {\n return createReactiveObject(\n target,\n false,\n shallowReactiveHandlers,\n shallowCollectionHandlers,\n shallowReactiveMap\n );\n}\n// @__NO_SIDE_EFFECTS__\nfunction readonly(target) {\n return createReactiveObject(\n target,\n true,\n readonlyHandlers,\n readonlyCollectionHandlers,\n readonlyMap\n );\n}\n// @__NO_SIDE_EFFECTS__\nfunction shallowReadonly(target) {\n return createReactiveObject(\n target,\n true,\n shallowReadonlyHandlers,\n shallowReadonlyCollectionHandlers,\n shallowReadonlyMap\n );\n}\nfunction createReactiveObject(target, isReadonly2, baseHandlers, collectionHandlers, proxyMap) {\n if (!isObject(target)) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n warn(\n `value cannot be made ${isReadonly2 ? \"readonly\" : \"reactive\"}: ${String(\n target\n )}`\n );\n }\n return target;\n }\n if (target[\"__v_raw\"] && !(isReadonly2 && target[\"__v_isReactive\"])) {\n return target;\n }\n if (target[\"__v_skip\"] || !Object.isExtensible(target)) {\n return target;\n }\n const existingProxy = proxyMap.get(target);\n if (existingProxy) {\n return existingProxy;\n }\n const targetType = targetTypeMap(toRawType(target));\n if (targetType === 0 /* INVALID */) {\n return target;\n }\n const proxy = new Proxy(\n target,\n targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers\n );\n proxyMap.set(target, proxy);\n return proxy;\n}\n// @__NO_SIDE_EFFECTS__\nfunction isReactive(value) {\n if (/* @__PURE__ */ isReadonly(value)) {\n return /* @__PURE__ */ isReactive(value[\"__v_raw\"]);\n }\n return !!(value && value[\"__v_isReactive\"]);\n}\n// @__NO_SIDE_EFFECTS__\nfunction isReadonly(value) {\n return !!(value && value[\"__v_isReadonly\"]);\n}\n// @__NO_SIDE_EFFECTS__\nfunction isShallow(value) {\n return !!(value && value[\"__v_isShallow\"]);\n}\n// @__NO_SIDE_EFFECTS__\nfunction isProxy(value) {\n return value ? !!value[\"__v_raw\"] : false;\n}\n// @__NO_SIDE_EFFECTS__\nfunction toRaw(observed) {\n const raw = observed && observed[\"__v_raw\"];\n return raw ? /* @__PURE__ */ toRaw(raw) : observed;\n}\nfunction markRaw(value) {\n if (!hasOwn(value, \"__v_skip\") && Object.isExtensible(value)) {\n def(value, \"__v_skip\", true);\n }\n return value;\n}\nconst toReactive = (value) => isObject(value) ? /* @__PURE__ */ reactive(value) : value;\nconst toReadonly = (value) => isObject(value) ? /* @__PURE__ */ readonly(value) : value;\n\n// @__NO_SIDE_EFFECTS__\nfunction isRef(r) {\n return r ? r[\"__v_isRef\"] === true : false;\n}\n// @__NO_SIDE_EFFECTS__\nfunction ref(value) {\n return createRef(value, false);\n}\n// @__NO_SIDE_EFFECTS__\nfunction shallowRef(value) {\n return createRef(value, true);\n}\nfunction createRef(rawValue, shallow) {\n if (/* @__PURE__ */ isRef(rawValue)) {\n return rawValue;\n }\n return new RefImpl(rawValue, shallow);\n}\nclass RefImpl {\n constructor(value, isShallow2) {\n this.dep = new Dep();\n this[\"__v_isRef\"] = true;\n this[\"__v_isShallow\"] = false;\n this._rawValue = isShallow2 ? value : toRaw(value);\n this._value = isShallow2 ? value : toReactive(value);\n this[\"__v_isShallow\"] = isShallow2;\n }\n get value() {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n this.dep.track({\n target: this,\n type: \"get\",\n key: \"value\"\n });\n } else {\n this.dep.track();\n }\n return this._value;\n }\n set value(newValue) {\n const oldValue = this._rawValue;\n const useDirectValue = this[\"__v_isShallow\"] || isShallow(newValue) || isReadonly(newValue);\n newValue = useDirectValue ? newValue : toRaw(newValue);\n if (hasChanged(newValue, oldValue)) {\n this._rawValue = newValue;\n this._value = useDirectValue ? newValue : toReactive(newValue);\n if (!!(process.env.NODE_ENV !== \"production\")) {\n this.dep.trigger({\n target: this,\n type: \"set\",\n key: \"value\",\n newValue,\n oldValue\n });\n } else {\n this.dep.trigger();\n }\n }\n }\n}\nfunction triggerRef(ref2) {\n if (ref2.dep) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n ref2.dep.trigger({\n target: ref2,\n type: \"set\",\n key: \"value\",\n newValue: ref2._value\n });\n } else {\n ref2.dep.trigger();\n }\n }\n}\nfunction unref(ref2) {\n return /* @__PURE__ */ isRef(ref2) ? ref2.value : ref2;\n}\nfunction toValue(source) {\n return isFunction(source) ? source() : unref(source);\n}\nconst shallowUnwrapHandlers = {\n get: (target, key, receiver) => key === \"__v_raw\" ? target : unref(Reflect.get(target, key, receiver)),\n set: (target, key, value, receiver) => {\n const oldValue = target[key];\n if (/* @__PURE__ */ isRef(oldValue) && !/* @__PURE__ */ isRef(value)) {\n oldValue.value = value;\n return true;\n } else {\n return Reflect.set(target, key, value, receiver);\n }\n }\n};\nfunction proxyRefs(objectWithRefs) {\n return isReactive(objectWithRefs) ? objectWithRefs : new Proxy(objectWithRefs, shallowUnwrapHandlers);\n}\nclass CustomRefImpl {\n constructor(factory) {\n this[\"__v_isRef\"] = true;\n this._value = void 0;\n const dep = this.dep = new Dep();\n const { get, set } = factory(dep.track.bind(dep), dep.trigger.bind(dep));\n this._get = get;\n this._set = set;\n }\n get value() {\n return this._value = this._get();\n }\n set value(newVal) {\n this._set(newVal);\n }\n}\nfunction customRef(factory) {\n return new CustomRefImpl(factory);\n}\n// @__NO_SIDE_EFFECTS__\nfunction toRefs(object) {\n if (!!(process.env.NODE_ENV !== \"production\") && !isProxy(object)) {\n warn(`toRefs() expects a reactive object but received a plain one.`);\n }\n const ret = isArray(object) ? new Array(object.length) : {};\n for (const key in object) {\n ret[key] = propertyToRef(object, key);\n }\n return ret;\n}\nclass ObjectRefImpl {\n constructor(_object, key, _defaultValue) {\n this._object = _object;\n this._defaultValue = _defaultValue;\n this[\"__v_isRef\"] = true;\n this._value = void 0;\n this._key = isSymbol(key) ? key : String(key);\n this._raw = toRaw(_object);\n let shallow = true;\n let obj = _object;\n if (!isArray(_object) || isSymbol(this._key) || !isIntegerKey(this._key)) {\n do {\n shallow = !isProxy(obj) || isShallow(obj);\n } while (shallow && (obj = obj[\"__v_raw\"]));\n }\n this._shallow = shallow;\n }\n get value() {\n let val = this._object[this._key];\n if (this._shallow) {\n val = unref(val);\n }\n return this._value = val === void 0 ? this._defaultValue : val;\n }\n set value(newVal) {\n if (this._shallow && /* @__PURE__ */ isRef(this._raw[this._key])) {\n const nestedRef = this._object[this._key];\n if (/* @__PURE__ */ isRef(nestedRef)) {\n nestedRef.value = newVal;\n return;\n }\n }\n this._object[this._key] = newVal;\n }\n get dep() {\n return getDepFromReactive(this._raw, this._key);\n }\n}\nclass GetterRefImpl {\n constructor(_getter) {\n this._getter = _getter;\n this[\"__v_isRef\"] = true;\n this[\"__v_isReadonly\"] = true;\n this._value = void 0;\n }\n get value() {\n return this._value = this._getter();\n }\n}\n// @__NO_SIDE_EFFECTS__\nfunction toRef(source, key, defaultValue) {\n if (/* @__PURE__ */ isRef(source)) {\n return source;\n } else if (isFunction(source)) {\n return new GetterRefImpl(source);\n } else if (isObject(source) && arguments.length > 1) {\n return propertyToRef(source, key, defaultValue);\n } else {\n return /* @__PURE__ */ ref(source);\n }\n}\nfunction propertyToRef(source, key, defaultValue) {\n return new ObjectRefImpl(source, key, defaultValue);\n}\n\nclass ComputedRefImpl {\n constructor(fn, setter, isSSR) {\n this.fn = fn;\n this.setter = setter;\n /**\n * @internal\n */\n this._value = void 0;\n /**\n * @internal\n */\n this.dep = new Dep(this);\n /**\n * @internal\n */\n this.__v_isRef = true;\n // TODO isolatedDeclarations \"__v_isReadonly\"\n // A computed is also a subscriber that tracks other deps\n /**\n * @internal\n */\n this.deps = void 0;\n /**\n * @internal\n */\n this.depsTail = void 0;\n /**\n * @internal\n */\n this.flags = 16;\n /**\n * @internal\n */\n this.globalVersion = globalVersion - 1;\n /**\n * @internal\n */\n this.next = void 0;\n // for backwards compat\n this.effect = this;\n this[\"__v_isReadonly\"] = !setter;\n this.isSSR = isSSR;\n }\n /**\n * @internal\n */\n notify() {\n this.flags |= 16;\n if (!(this.flags & 8) && // avoid infinite self recursion\n activeSub !== this) {\n batch(this, true);\n return true;\n } else if (!!(process.env.NODE_ENV !== \"production\")) ;\n }\n get value() {\n const link = !!(process.env.NODE_ENV !== \"production\") ? this.dep.track({\n target: this,\n type: \"get\",\n key: \"value\"\n }) : this.dep.track();\n refreshComputed(this);\n if (link) {\n link.version = this.dep.version;\n }\n return this._value;\n }\n set value(newValue) {\n if (this.setter) {\n this.setter(newValue);\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn(\"Write operation failed: computed value is readonly\");\n }\n }\n}\n// @__NO_SIDE_EFFECTS__\nfunction computed(getterOrOptions, debugOptions, isSSR = false) {\n let getter;\n let setter;\n if (isFunction(getterOrOptions)) {\n getter = getterOrOptions;\n } else {\n getter = getterOrOptions.get;\n setter = getterOrOptions.set;\n }\n const cRef = new ComputedRefImpl(getter, setter, isSSR);\n if (!!(process.env.NODE_ENV !== \"production\") && debugOptions && !isSSR) {\n cRef.onTrack = debugOptions.onTrack;\n cRef.onTrigger = debugOptions.onTrigger;\n }\n return cRef;\n}\n\nconst TrackOpTypes = {\n \"GET\": \"get\",\n \"HAS\": \"has\",\n \"ITERATE\": \"iterate\"\n};\nconst TriggerOpTypes = {\n \"SET\": \"set\",\n \"ADD\": \"add\",\n \"DELETE\": \"delete\",\n \"CLEAR\": \"clear\"\n};\nconst ReactiveFlags = {\n \"SKIP\": \"__v_skip\",\n \"IS_REACTIVE\": \"__v_isReactive\",\n \"IS_READONLY\": \"__v_isReadonly\",\n \"IS_SHALLOW\": \"__v_isShallow\",\n \"RAW\": \"__v_raw\",\n \"IS_REF\": \"__v_isRef\"\n};\n\nconst WatchErrorCodes = {\n \"WATCH_GETTER\": 2,\n \"2\": \"WATCH_GETTER\",\n \"WATCH_CALLBACK\": 3,\n \"3\": \"WATCH_CALLBACK\",\n \"WATCH_CLEANUP\": 4,\n \"4\": \"WATCH_CLEANUP\"\n};\nconst INITIAL_WATCHER_VALUE = {};\nconst cleanupMap = /* @__PURE__ */ new WeakMap();\nlet activeWatcher = void 0;\nfunction getCurrentWatcher() {\n return activeWatcher;\n}\nfunction onWatcherCleanup(cleanupFn, failSilently = false, owner = activeWatcher) {\n if (owner) {\n let cleanups = cleanupMap.get(owner);\n if (!cleanups) cleanupMap.set(owner, cleanups = []);\n cleanups.push(cleanupFn);\n } else if (!!(process.env.NODE_ENV !== \"production\") && !failSilently) {\n warn(\n `onWatcherCleanup() was called when there was no active watcher to associate with.`\n );\n }\n}\nfunction watch(source, cb, options = EMPTY_OBJ) {\n const { immediate, deep, once, scheduler, augmentJob, call } = options;\n const warnInvalidSource = (s) => {\n (options.onWarn || warn)(\n `Invalid watch source: `,\n s,\n `A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`\n );\n };\n const reactiveGetter = (source2) => {\n if (deep) return source2;\n if (isShallow(source2) || deep === false || deep === 0)\n return traverse(source2, 1);\n return traverse(source2);\n };\n let effect;\n let getter;\n let cleanup;\n let boundCleanup;\n let forceTrigger = false;\n let isMultiSource = false;\n if (isRef(source)) {\n getter = () => source.value;\n forceTrigger = isShallow(source);\n } else if (isReactive(source)) {\n getter = () => reactiveGetter(source);\n forceTrigger = true;\n } else if (isArray(source)) {\n isMultiSource = true;\n forceTrigger = source.some((s) => isReactive(s) || isShallow(s));\n getter = () => source.map((s) => {\n if (isRef(s)) {\n return s.value;\n } else if (isReactive(s)) {\n return reactiveGetter(s);\n } else if (isFunction(s)) {\n return call ? call(s, 2) : s();\n } else {\n !!(process.env.NODE_ENV !== \"production\") && warnInvalidSource(s);\n }\n });\n } else if (isFunction(source)) {\n if (cb) {\n getter = call ? () => call(source, 2) : source;\n } else {\n getter = () => {\n if (cleanup) {\n pauseTracking();\n try {\n cleanup();\n } finally {\n resetTracking();\n }\n }\n const currentEffect = activeWatcher;\n activeWatcher = effect;\n try {\n return call ? call(source, 3, [boundCleanup]) : source(boundCleanup);\n } finally {\n activeWatcher = currentEffect;\n }\n };\n }\n } else {\n getter = NOOP;\n !!(process.env.NODE_ENV !== \"production\") && warnInvalidSource(source);\n }\n if (cb && deep) {\n const baseGetter = getter;\n const depth = deep === true ? Infinity : deep;\n getter = () => traverse(baseGetter(), depth);\n }\n const scope = getCurrentScope();\n const watchHandle = () => {\n effect.stop();\n if (scope && scope.active) {\n remove(scope.effects, effect);\n }\n };\n if (once && cb) {\n const _cb = cb;\n cb = (...args) => {\n const res = _cb(...args);\n watchHandle();\n return res;\n };\n }\n let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;\n const job = (immediateFirstRun) => {\n if (!(effect.flags & 1) || !effect.dirty && !immediateFirstRun) {\n return;\n }\n if (cb) {\n const newValue = effect.run();\n if (immediateFirstRun || deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue))) {\n if (cleanup) {\n cleanup();\n }\n const currentWatcher = activeWatcher;\n activeWatcher = effect;\n try {\n const args = [\n newValue,\n // pass undefined as the old value when it's changed for the first time\n oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,\n boundCleanup\n ];\n oldValue = newValue;\n call ? call(cb, 3, args) : (\n // @ts-expect-error\n cb(...args)\n );\n } finally {\n activeWatcher = currentWatcher;\n }\n }\n } else {\n effect.run();\n }\n };\n if (augmentJob) {\n augmentJob(job);\n }\n effect = new ReactiveEffect(getter);\n effect.scheduler = scheduler ? () => scheduler(job, false) : job;\n boundCleanup = (fn) => onWatcherCleanup(fn, false, effect);\n cleanup = effect.onStop = () => {\n const cleanups = cleanupMap.get(effect);\n if (cleanups) {\n if (call) {\n call(cleanups, 4);\n } else {\n for (const cleanup2 of cleanups) cleanup2();\n }\n cleanupMap.delete(effect);\n }\n };\n if (!!(process.env.NODE_ENV !== \"production\")) {\n effect.onTrack = options.onTrack;\n effect.onTrigger = options.onTrigger;\n }\n if (cb) {\n if (immediate) {\n job(true);\n } else {\n oldValue = effect.run();\n }\n } else if (scheduler) {\n scheduler(job.bind(null, true), true);\n } else {\n effect.run();\n }\n watchHandle.pause = effect.pause.bind(effect);\n watchHandle.resume = effect.resume.bind(effect);\n watchHandle.stop = watchHandle;\n return watchHandle;\n}\nfunction traverse(value, depth = Infinity, seen) {\n if (depth <= 0 || !isObject(value) || value[\"__v_skip\"]) {\n return value;\n }\n seen = seen || /* @__PURE__ */ new Map();\n if ((seen.get(value) || 0) >= depth) {\n return value;\n }\n seen.set(value, depth);\n depth--;\n if (isRef(value)) {\n traverse(value.value, depth, seen);\n } else if (isArray(value)) {\n for (let i = 0; i < value.length; i++) {\n traverse(value[i], depth, seen);\n }\n } else if (isSet(value) || isMap(value)) {\n value.forEach((v) => {\n traverse(v, depth, seen);\n });\n } else if (isPlainObject(value)) {\n for (const key in value) {\n traverse(value[key], depth, seen);\n }\n for (const key of Object.getOwnPropertySymbols(value)) {\n if (Object.prototype.propertyIsEnumerable.call(value, key)) {\n traverse(value[key], depth, seen);\n }\n }\n }\n return value;\n}\n\nexport { ARRAY_ITERATE_KEY, EffectFlags, EffectScope, ITERATE_KEY, MAP_KEY_ITERATE_KEY, ReactiveEffect, ReactiveFlags, TrackOpTypes, TriggerOpTypes, WatchErrorCodes, computed, customRef, effect, effectScope, enableTracking, getCurrentScope, getCurrentWatcher, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onEffectCleanup, onScopeDispose, onWatcherCleanup, pauseTracking, proxyRefs, reactive, reactiveReadArray, readonly, ref, resetTracking, shallowReactive, shallowReadArray, shallowReadonly, shallowRef, stop, toRaw, toReactive, toReadonly, toRef, toRefs, toValue, track, traverse, trigger, triggerRef, unref, watch };\n","/**\n* @vue/runtime-core v3.5.39\n* (c) 2018-present Yuxi (Evan) You and Vue contributors\n* @license MIT\n**/\nimport { pauseTracking, resetTracking, isRef, toRaw, traverse, watch as watch$1, shallowRef, readonly, isReactive, ref, isShallow, isReadonly, shallowReadArray, toReadonly, toReactive, shallowReadonly, track, reactive, customRef, shallowReactive, trigger, ReactiveEffect, isProxy, proxyRefs, markRaw, EffectScope, computed as computed$1 } from '@vue/reactivity';\nexport { EffectScope, ReactiveEffect, TrackOpTypes, TriggerOpTypes, customRef, effect, effectScope, getCurrentScope, getCurrentWatcher, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, onWatcherCleanup, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, toValue, triggerRef, unref } from '@vue/reactivity';\nimport { isString, isFunction, EMPTY_OBJ, isPromise, isArray, NOOP, getGlobalThis, extend, isBuiltInDirective, NO, hasOwn, remove, def, isOn, isReservedProp, normalizeClass, stringifyStyle, normalizeStyle, isKnownSvgAttr, isBooleanAttr, isKnownHtmlAttr, includeBooleanAttr, isRenderableAttrValue, normalizeCssVarValue, getEscapedCssVarName, isObject, isRegExp, invokeArrayFns, toHandlerKey, camelize, capitalize, isSymbol, isGloballyAllowed, hyphenate, hasChanged, looseToNumber, isModelListener, looseEqual, EMPTY_ARR, toRawType, makeMap, toNumber } from '@vue/shared';\nexport { camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from '@vue/shared';\n\nconst stack = [];\nfunction pushWarningContext(vnode) {\n stack.push(vnode);\n}\nfunction popWarningContext() {\n stack.pop();\n}\nlet isWarning = false;\nfunction warn$1(msg, ...args) {\n if (isWarning) return;\n isWarning = true;\n pauseTracking();\n const instance = stack.length ? stack[stack.length - 1].component : null;\n const appWarnHandler = instance && instance.appContext.config.warnHandler;\n const trace = getComponentTrace();\n if (appWarnHandler) {\n callWithErrorHandling(\n appWarnHandler,\n instance,\n 11,\n [\n // eslint-disable-next-line no-restricted-syntax\n msg + args.map((a) => {\n var _a, _b;\n return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a);\n }).join(\"\"),\n instance && instance.proxy,\n trace.map(\n ({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>`\n ).join(\"\\n\"),\n trace\n ]\n );\n } else {\n const warnArgs = [`[Vue warn]: ${msg}`, ...args];\n if (trace.length && // avoid spamming console during tests\n true) {\n warnArgs.push(`\n`, ...formatTrace(trace));\n }\n console.warn(...warnArgs);\n }\n resetTracking();\n isWarning = false;\n}\nfunction getComponentTrace() {\n let currentVNode = stack[stack.length - 1];\n if (!currentVNode) {\n return [];\n }\n const normalizedStack = [];\n while (currentVNode) {\n const last = normalizedStack[0];\n if (last && last.vnode === currentVNode) {\n last.recurseCount++;\n } else {\n normalizedStack.push({\n vnode: currentVNode,\n recurseCount: 0\n });\n }\n const parentInstance = currentVNode.component && currentVNode.component.parent;\n currentVNode = parentInstance && parentInstance.vnode;\n }\n return normalizedStack;\n}\nfunction formatTrace(trace) {\n const logs = [];\n trace.forEach((entry, i) => {\n logs.push(...i === 0 ? [] : [`\n`], ...formatTraceEntry(entry));\n });\n return logs;\n}\nfunction formatTraceEntry({ vnode, recurseCount }) {\n const postfix = recurseCount > 0 ? `... (${recurseCount} recursive calls)` : ``;\n const isRoot = vnode.component ? vnode.component.parent == null : false;\n const open = ` at <${formatComponentName(\n vnode.component,\n vnode.type,\n isRoot\n )}`;\n const close = `>` + postfix;\n return vnode.props ? [open, ...formatProps(vnode.props), close] : [open + close];\n}\nfunction formatProps(props) {\n const res = [];\n const keys = Object.keys(props);\n keys.slice(0, 3).forEach((key) => {\n res.push(...formatProp(key, props[key]));\n });\n if (keys.length > 3) {\n res.push(` ...`);\n }\n return res;\n}\nfunction formatProp(key, value, raw) {\n if (isString(value)) {\n value = JSON.stringify(value);\n return raw ? value : [`${key}=${value}`];\n } else if (typeof value === \"number\" || typeof value === \"boolean\" || value == null) {\n return raw ? value : [`${key}=${value}`];\n } else if (isRef(value)) {\n value = formatProp(key, toRaw(value.value), true);\n return raw ? value : [`${key}=Ref<`, value, `>`];\n } else if (isFunction(value)) {\n return [`${key}=fn${value.name ? `<${value.name}>` : ``}`];\n } else {\n value = toRaw(value);\n return raw ? value : [`${key}=`, value];\n }\n}\nfunction assertNumber(val, type) {\n if (!!!(process.env.NODE_ENV !== \"production\")) return;\n if (val === void 0) {\n return;\n } else if (typeof val !== \"number\") {\n warn$1(`${type} is not a valid number - got ${JSON.stringify(val)}.`);\n } else if (isNaN(val)) {\n warn$1(`${type} is NaN - the duration expression might be incorrect.`);\n }\n}\n\nconst ErrorCodes = {\n \"SETUP_FUNCTION\": 0,\n \"0\": \"SETUP_FUNCTION\",\n \"RENDER_FUNCTION\": 1,\n \"1\": \"RENDER_FUNCTION\",\n \"NATIVE_EVENT_HANDLER\": 5,\n \"5\": \"NATIVE_EVENT_HANDLER\",\n \"COMPONENT_EVENT_HANDLER\": 6,\n \"6\": \"COMPONENT_EVENT_HANDLER\",\n \"VNODE_HOOK\": 7,\n \"7\": \"VNODE_HOOK\",\n \"DIRECTIVE_HOOK\": 8,\n \"8\": \"DIRECTIVE_HOOK\",\n \"TRANSITION_HOOK\": 9,\n \"9\": \"TRANSITION_HOOK\",\n \"APP_ERROR_HANDLER\": 10,\n \"10\": \"APP_ERROR_HANDLER\",\n \"APP_WARN_HANDLER\": 11,\n \"11\": \"APP_WARN_HANDLER\",\n \"FUNCTION_REF\": 12,\n \"12\": \"FUNCTION_REF\",\n \"ASYNC_COMPONENT_LOADER\": 13,\n \"13\": \"ASYNC_COMPONENT_LOADER\",\n \"SCHEDULER\": 14,\n \"14\": \"SCHEDULER\",\n \"COMPONENT_UPDATE\": 15,\n \"15\": \"COMPONENT_UPDATE\",\n \"APP_UNMOUNT_CLEANUP\": 16,\n \"16\": \"APP_UNMOUNT_CLEANUP\"\n};\nconst ErrorTypeStrings$1 = {\n [\"sp\"]: \"serverPrefetch hook\",\n [\"bc\"]: \"beforeCreate hook\",\n [\"c\"]: \"created hook\",\n [\"bm\"]: \"beforeMount hook\",\n [\"m\"]: \"mounted hook\",\n [\"bu\"]: \"beforeUpdate hook\",\n [\"u\"]: \"updated\",\n [\"bum\"]: \"beforeUnmount hook\",\n [\"um\"]: \"unmounted hook\",\n [\"a\"]: \"activated hook\",\n [\"da\"]: \"deactivated hook\",\n [\"ec\"]: \"errorCaptured hook\",\n [\"rtc\"]: \"renderTracked hook\",\n [\"rtg\"]: \"renderTriggered hook\",\n [0]: \"setup function\",\n [1]: \"render function\",\n [2]: \"watcher getter\",\n [3]: \"watcher callback\",\n [4]: \"watcher cleanup function\",\n [5]: \"native event handler\",\n [6]: \"component event handler\",\n [7]: \"vnode hook\",\n [8]: \"directive hook\",\n [9]: \"transition hook\",\n [10]: \"app errorHandler\",\n [11]: \"app warnHandler\",\n [12]: \"ref function\",\n [13]: \"async component loader\",\n [14]: \"scheduler flush\",\n [15]: \"component update\",\n [16]: \"app unmount cleanup function\"\n};\nfunction callWithErrorHandling(fn, instance, type, args) {\n try {\n return args ? fn(...args) : fn();\n } catch (err) {\n handleError(err, instance, type);\n }\n}\nfunction callWithAsyncErrorHandling(fn, instance, type, args) {\n if (isFunction(fn)) {\n const res = callWithErrorHandling(fn, instance, type, args);\n if (res && isPromise(res)) {\n res.catch((err) => {\n handleError(err, instance, type);\n });\n }\n return res;\n }\n if (isArray(fn)) {\n const values = [];\n for (let i = 0; i < fn.length; i++) {\n values.push(callWithAsyncErrorHandling(fn[i], instance, type, args));\n }\n return values;\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(\n `Invalid value type passed to callWithAsyncErrorHandling(): ${typeof fn}`\n );\n }\n}\nfunction handleError(err, instance, type, throwInDev = true) {\n const contextVNode = instance ? instance.vnode : null;\n const { errorHandler, throwUnhandledErrorInProduction } = instance && instance.appContext.config || EMPTY_OBJ;\n if (instance) {\n let cur = instance.parent;\n const exposedInstance = instance.proxy;\n const errorInfo = !!(process.env.NODE_ENV !== \"production\") ? ErrorTypeStrings$1[type] : `https://vuejs.org/error-reference/#runtime-${type}`;\n while (cur) {\n const errorCapturedHooks = cur.ec;\n if (errorCapturedHooks) {\n for (let i = 0; i < errorCapturedHooks.length; i++) {\n if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) {\n return;\n }\n }\n }\n cur = cur.parent;\n }\n if (errorHandler) {\n pauseTracking();\n callWithErrorHandling(errorHandler, null, 10, [\n err,\n exposedInstance,\n errorInfo\n ]);\n resetTracking();\n return;\n }\n }\n logError(err, type, contextVNode, throwInDev, throwUnhandledErrorInProduction);\n}\nfunction logError(err, type, contextVNode, throwInDev = true, throwInProd = false) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n const info = ErrorTypeStrings$1[type];\n if (contextVNode) {\n pushWarningContext(contextVNode);\n }\n warn$1(`Unhandled error${info ? ` during execution of ${info}` : ``}`);\n if (contextVNode) {\n popWarningContext();\n }\n if (throwInDev) {\n throw err;\n } else {\n console.error(err);\n }\n } else if (throwInProd) {\n throw err;\n } else {\n console.error(err);\n }\n}\n\nconst queue = [];\nlet flushIndex = -1;\nconst pendingPostFlushCbs = [];\nlet activePostFlushCbs = null;\nlet postFlushIndex = 0;\nconst resolvedPromise = /* @__PURE__ */ Promise.resolve();\nlet currentFlushPromise = null;\nconst RECURSION_LIMIT = 100;\nfunction nextTick(fn) {\n const p = currentFlushPromise || resolvedPromise;\n return fn ? p.then(this ? fn.bind(this) : fn) : p;\n}\nfunction findInsertionIndex(id) {\n let start = flushIndex + 1;\n let end = queue.length;\n while (start < end) {\n const middle = start + end >>> 1;\n const middleJob = queue[middle];\n const middleJobId = getId(middleJob);\n if (middleJobId < id || middleJobId === id && middleJob.flags & 2) {\n start = middle + 1;\n } else {\n end = middle;\n }\n }\n return start;\n}\nfunction queueJob(job) {\n if (!(job.flags & 1)) {\n const jobId = getId(job);\n const lastJob = queue[queue.length - 1];\n if (!lastJob || // fast path when the job id is larger than the tail\n !(job.flags & 2) && jobId >= getId(lastJob)) {\n queue.push(job);\n } else {\n queue.splice(findInsertionIndex(jobId), 0, job);\n }\n job.flags |= 1;\n queueFlush();\n }\n}\nfunction queueFlush() {\n if (!currentFlushPromise) {\n currentFlushPromise = resolvedPromise.then(flushJobs);\n }\n}\nfunction queuePostFlushCb(cb) {\n if (!isArray(cb)) {\n if (activePostFlushCbs && cb.id === -1) {\n activePostFlushCbs.splice(postFlushIndex + 1, 0, cb);\n } else if (!(cb.flags & 1)) {\n pendingPostFlushCbs.push(cb);\n cb.flags |= 1;\n }\n } else {\n pendingPostFlushCbs.push(...cb);\n }\n queueFlush();\n}\nfunction flushPreFlushCbs(instance, seen, i = flushIndex + 1) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n seen = seen || /* @__PURE__ */ new Map();\n }\n for (; i < queue.length; i++) {\n const cb = queue[i];\n if (cb && cb.flags & 2) {\n if (instance && cb.id !== instance.uid) {\n continue;\n }\n if (!!(process.env.NODE_ENV !== \"production\") && checkRecursiveUpdates(seen, cb)) {\n continue;\n }\n queue.splice(i, 1);\n i--;\n if (cb.flags & 4) {\n cb.flags &= -2;\n }\n cb();\n if (!(cb.flags & 4)) {\n cb.flags &= -2;\n }\n }\n }\n}\nfunction flushPostFlushCbs(seen) {\n if (pendingPostFlushCbs.length) {\n const deduped = [...new Set(pendingPostFlushCbs)].sort(\n (a, b) => getId(a) - getId(b)\n );\n pendingPostFlushCbs.length = 0;\n if (activePostFlushCbs) {\n activePostFlushCbs.push(...deduped);\n return;\n }\n activePostFlushCbs = deduped;\n if (!!(process.env.NODE_ENV !== \"production\")) {\n seen = seen || /* @__PURE__ */ new Map();\n }\n for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {\n const cb = activePostFlushCbs[postFlushIndex];\n if (!!(process.env.NODE_ENV !== \"production\") && checkRecursiveUpdates(seen, cb)) {\n continue;\n }\n if (cb.flags & 4) {\n cb.flags &= -2;\n }\n if (!(cb.flags & 8)) cb();\n cb.flags &= -2;\n }\n activePostFlushCbs = null;\n postFlushIndex = 0;\n }\n}\nconst getId = (job) => job.id == null ? job.flags & 2 ? -1 : Infinity : job.id;\nfunction flushJobs(seen) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n seen = seen || /* @__PURE__ */ new Map();\n }\n const check = !!(process.env.NODE_ENV !== \"production\") ? (job) => checkRecursiveUpdates(seen, job) : NOOP;\n try {\n for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {\n const job = queue[flushIndex];\n if (job && !(job.flags & 8)) {\n if (!!(process.env.NODE_ENV !== \"production\") && check(job)) {\n continue;\n }\n if (job.flags & 4) {\n job.flags &= ~1;\n }\n callWithErrorHandling(\n job,\n job.i,\n job.i ? 15 : 14\n );\n if (!(job.flags & 4)) {\n job.flags &= ~1;\n }\n }\n }\n } finally {\n for (; flushIndex < queue.length; flushIndex++) {\n const job = queue[flushIndex];\n if (job) {\n job.flags &= -2;\n }\n }\n flushIndex = -1;\n queue.length = 0;\n flushPostFlushCbs(seen);\n currentFlushPromise = null;\n if (queue.length || pendingPostFlushCbs.length) {\n flushJobs(seen);\n }\n }\n}\nfunction checkRecursiveUpdates(seen, fn) {\n const count = seen.get(fn) || 0;\n if (count > RECURSION_LIMIT) {\n const instance = fn.i;\n const componentName = instance && getComponentName(instance.type);\n handleError(\n `Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,\n null,\n 10\n );\n return true;\n }\n seen.set(fn, count + 1);\n return false;\n}\n\nlet isHmrUpdating = false;\nconst setHmrUpdating = (v) => {\n try {\n return isHmrUpdating;\n } finally {\n isHmrUpdating = v;\n }\n};\nconst hmrDirtyComponents = /* @__PURE__ */ new Map();\nif (!!(process.env.NODE_ENV !== \"production\")) {\n getGlobalThis().__VUE_HMR_RUNTIME__ = {\n createRecord: tryWrap(createRecord),\n rerender: tryWrap(rerender),\n reload: tryWrap(reload)\n };\n}\nconst map = /* @__PURE__ */ new Map();\nfunction registerHMR(instance) {\n const id = instance.type.__hmrId;\n let record = map.get(id);\n if (!record) {\n createRecord(id, instance.type);\n record = map.get(id);\n }\n record.instances.add(instance);\n}\nfunction unregisterHMR(instance) {\n map.get(instance.type.__hmrId).instances.delete(instance);\n}\nfunction createRecord(id, initialDef) {\n if (map.has(id)) {\n return false;\n }\n map.set(id, {\n initialDef: normalizeClassComponent(initialDef),\n instances: /* @__PURE__ */ new Set()\n });\n return true;\n}\nfunction normalizeClassComponent(component) {\n return isClassComponent(component) ? component.__vccOpts : component;\n}\nfunction rerender(id, newRender) {\n const record = map.get(id);\n if (!record) {\n return;\n }\n record.initialDef.render = newRender;\n [...record.instances].forEach((instance) => {\n if (newRender) {\n instance.render = newRender;\n normalizeClassComponent(instance.type).render = newRender;\n }\n instance.renderCache = [];\n isHmrUpdating = true;\n if (!(instance.job.flags & 8)) {\n instance.update();\n }\n isHmrUpdating = false;\n });\n}\nfunction reload(id, newComp) {\n const record = map.get(id);\n if (!record) return;\n newComp = normalizeClassComponent(newComp);\n updateComponentDef(record.initialDef, newComp);\n const instances = [...record.instances];\n for (let i = 0; i < instances.length; i++) {\n const instance = instances[i];\n const oldComp = normalizeClassComponent(instance.type);\n let dirtyInstances = hmrDirtyComponents.get(oldComp);\n if (!dirtyInstances) {\n if (oldComp !== record.initialDef) {\n updateComponentDef(oldComp, newComp);\n }\n hmrDirtyComponents.set(oldComp, dirtyInstances = /* @__PURE__ */ new Set());\n }\n dirtyInstances.add(instance);\n instance.appContext.propsCache.delete(instance.type);\n instance.appContext.emitsCache.delete(instance.type);\n instance.appContext.optionsCache.delete(instance.type);\n if (instance.ceReload) {\n dirtyInstances.add(instance);\n instance.ceReload(newComp.styles);\n dirtyInstances.delete(instance);\n } else if (instance.parent) {\n queueJob(() => {\n if (!(instance.job.flags & 8)) {\n isHmrUpdating = true;\n instance.parent.update();\n isHmrUpdating = false;\n dirtyInstances.delete(instance);\n }\n });\n } else if (instance.appContext.reload) {\n instance.appContext.reload();\n } else if (typeof window !== \"undefined\") {\n window.location.reload();\n } else {\n console.warn(\n \"[HMR] Root or manually mounted instance modified. Full reload required.\"\n );\n }\n if (instance.root.ce && instance !== instance.root) {\n instance.root.ce._removeChildStyle(oldComp);\n }\n }\n queuePostFlushCb(() => {\n hmrDirtyComponents.clear();\n });\n}\nfunction updateComponentDef(oldComp, newComp) {\n extend(oldComp, newComp);\n for (const key in oldComp) {\n if (key !== \"__file\" && !(key in newComp)) {\n delete oldComp[key];\n }\n }\n}\nfunction tryWrap(fn) {\n return (id, arg) => {\n try {\n return fn(id, arg);\n } catch (e) {\n console.error(e);\n console.warn(\n `[HMR] Something went wrong during Vue component hot-reload. Full reload required.`\n );\n }\n };\n}\n\nlet devtools$1;\nlet buffer = [];\nlet devtoolsNotInstalled = false;\nfunction emit$1(event, ...args) {\n if (devtools$1) {\n devtools$1.emit(event, ...args);\n } else if (!devtoolsNotInstalled) {\n buffer.push({ event, args });\n }\n}\nfunction setDevtoolsHook$1(hook, target) {\n var _a, _b;\n devtools$1 = hook;\n if (devtools$1) {\n devtools$1.enabled = true;\n buffer.forEach(({ event, args }) => devtools$1.emit(event, ...args));\n buffer = [];\n } else if (\n // handle late devtools injection - only do this if we are in an actual\n // browser environment to avoid the timer handle stalling test runner exit\n // (#4815)\n typeof window !== \"undefined\" && // some envs mock window but not fully\n window.HTMLElement && // also exclude jsdom\n // eslint-disable-next-line no-restricted-syntax\n !((_b = (_a = window.navigator) == null ? void 0 : _a.userAgent) == null ? void 0 : _b.includes(\"jsdom\"))\n ) {\n const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || [];\n replay.push((newHook) => {\n setDevtoolsHook$1(newHook, target);\n });\n setTimeout(() => {\n if (!devtools$1) {\n target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null;\n devtoolsNotInstalled = true;\n buffer = [];\n }\n }, 3e3);\n } else {\n devtoolsNotInstalled = true;\n buffer = [];\n }\n}\nfunction devtoolsInitApp(app, version) {\n emit$1(\"app:init\" /* APP_INIT */, app, version, {\n Fragment,\n Text,\n Comment,\n Static\n });\n}\nfunction devtoolsUnmountApp(app) {\n emit$1(\"app:unmount\" /* APP_UNMOUNT */, app);\n}\nconst devtoolsComponentAdded = /* @__PURE__ */ createDevtoolsComponentHook(\"component:added\" /* COMPONENT_ADDED */);\nconst devtoolsComponentUpdated = /* @__PURE__ */ createDevtoolsComponentHook(\"component:updated\" /* COMPONENT_UPDATED */);\nconst _devtoolsComponentRemoved = /* @__PURE__ */ createDevtoolsComponentHook(\n \"component:removed\" /* COMPONENT_REMOVED */\n);\nconst devtoolsComponentRemoved = (component) => {\n if (devtools$1 && typeof devtools$1.cleanupBuffer === \"function\" && // remove the component if it wasn't buffered\n !devtools$1.cleanupBuffer(component)) {\n _devtoolsComponentRemoved(component);\n }\n};\n// @__NO_SIDE_EFFECTS__\nfunction createDevtoolsComponentHook(hook) {\n return (component) => {\n emit$1(\n hook,\n component.appContext.app,\n component.uid,\n component.parent ? component.parent.uid : void 0,\n component\n );\n };\n}\nconst devtoolsPerfStart = /* @__PURE__ */ createDevtoolsPerformanceHook(\"perf:start\" /* PERFORMANCE_START */);\nconst devtoolsPerfEnd = /* @__PURE__ */ createDevtoolsPerformanceHook(\"perf:end\" /* PERFORMANCE_END */);\nfunction createDevtoolsPerformanceHook(hook) {\n return (component, type, time) => {\n emit$1(hook, component.appContext.app, component.uid, component, type, time);\n };\n}\nfunction devtoolsComponentEmit(component, event, params) {\n emit$1(\n \"component:emit\" /* COMPONENT_EMIT */,\n component.appContext.app,\n component,\n event,\n params\n );\n}\n\nlet currentRenderingInstance = null;\nlet currentScopeId = null;\nfunction setCurrentRenderingInstance(instance) {\n const prev = currentRenderingInstance;\n currentRenderingInstance = instance;\n currentScopeId = instance && instance.type.__scopeId || null;\n return prev;\n}\nfunction pushScopeId(id) {\n currentScopeId = id;\n}\nfunction popScopeId() {\n currentScopeId = null;\n}\nconst withScopeId = (_id) => withCtx;\nfunction withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot) {\n if (!ctx) return fn;\n if (fn._n) {\n return fn;\n }\n const renderFnWithContext = (...args) => {\n if (renderFnWithContext._d) {\n setBlockTracking(-1);\n }\n const prevInstance = setCurrentRenderingInstance(ctx);\n let res;\n try {\n res = fn(...args);\n } finally {\n setCurrentRenderingInstance(prevInstance);\n if (renderFnWithContext._d) {\n setBlockTracking(1);\n }\n }\n if (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_DEVTOOLS__) {\n devtoolsComponentUpdated(ctx);\n }\n return res;\n };\n renderFnWithContext._n = true;\n renderFnWithContext._c = true;\n renderFnWithContext._d = true;\n return renderFnWithContext;\n}\n\nfunction validateDirectiveName(name) {\n if (isBuiltInDirective(name)) {\n warn$1(\"Do not use built-in directive ids as custom directive id: \" + name);\n }\n}\nfunction withDirectives(vnode, directives) {\n if (currentRenderingInstance === null) {\n !!(process.env.NODE_ENV !== \"production\") && warn$1(`withDirectives can only be used inside render functions.`);\n return vnode;\n }\n const instance = getComponentPublicInstance(currentRenderingInstance);\n const bindings = vnode.dirs || (vnode.dirs = []);\n for (let i = 0; i < directives.length; i++) {\n let [dir, value, arg, modifiers = EMPTY_OBJ] = directives[i];\n if (dir) {\n if (isFunction(dir)) {\n dir = {\n mounted: dir,\n updated: dir\n };\n }\n if (dir.deep) {\n traverse(value);\n }\n bindings.push({\n dir,\n instance,\n value,\n oldValue: void 0,\n arg,\n modifiers\n });\n }\n }\n return vnode;\n}\nfunction invokeDirectiveHook(vnode, prevVNode, instance, name) {\n const bindings = vnode.dirs;\n const oldBindings = prevVNode && prevVNode.dirs;\n for (let i = 0; i < bindings.length; i++) {\n const binding = bindings[i];\n if (oldBindings) {\n binding.oldValue = oldBindings[i].value;\n }\n let hook = binding.dir[name];\n if (hook) {\n pauseTracking();\n callWithAsyncErrorHandling(hook, instance, 8, [\n vnode.el,\n binding,\n vnode,\n prevVNode\n ]);\n resetTracking();\n }\n }\n}\n\nfunction provide(key, value) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n if (!currentInstance || currentInstance.isMounted) {\n warn$1(`provide() can only be used inside setup().`);\n }\n }\n if (currentInstance) {\n let provides = currentInstance.provides;\n const parentProvides = currentInstance.parent && currentInstance.parent.provides;\n if (parentProvides === provides) {\n provides = currentInstance.provides = Object.create(parentProvides);\n }\n provides[key] = value;\n }\n}\nfunction inject(key, defaultValue, treatDefaultAsFactory = false) {\n const instance = getCurrentInstance();\n if (instance || currentApp) {\n let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;\n if (provides && key in provides) {\n return provides[key];\n } else if (arguments.length > 1) {\n return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(`injection \"${String(key)}\" not found.`);\n }\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(`inject() can only be used inside setup() or functional components.`);\n }\n}\nfunction hasInjectionContext() {\n return !!(getCurrentInstance() || currentApp);\n}\n\nconst ssrContextKey = /* @__PURE__ */ Symbol.for(\"v-scx\");\nconst useSSRContext = () => {\n {\n const ctx = inject(ssrContextKey);\n if (!ctx) {\n !!(process.env.NODE_ENV !== \"production\") && warn$1(\n `Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`\n );\n }\n return ctx;\n }\n};\n\nfunction watchEffect(effect, options) {\n return doWatch(effect, null, options);\n}\nfunction watchPostEffect(effect, options) {\n return doWatch(\n effect,\n null,\n !!(process.env.NODE_ENV !== \"production\") ? extend({}, options, { flush: \"post\" }) : { flush: \"post\" }\n );\n}\nfunction watchSyncEffect(effect, options) {\n return doWatch(\n effect,\n null,\n !!(process.env.NODE_ENV !== \"production\") ? extend({}, options, { flush: \"sync\" }) : { flush: \"sync\" }\n );\n}\nfunction watch(source, cb, options) {\n if (!!(process.env.NODE_ENV !== \"production\") && !isFunction(cb)) {\n warn$1(\n `\\`watch(fn, options?)\\` signature has been moved to a separate API. Use \\`watchEffect(fn, options?)\\` instead. \\`watch\\` now only supports \\`watch(source, cb, options?) signature.`\n );\n }\n return doWatch(source, cb, options);\n}\nfunction doWatch(source, cb, options = EMPTY_OBJ) {\n const { immediate, deep, flush, once } = options;\n if (!!(process.env.NODE_ENV !== \"production\") && !cb) {\n if (immediate !== void 0) {\n warn$1(\n `watch() \"immediate\" option is only respected when using the watch(source, callback, options?) signature.`\n );\n }\n if (deep !== void 0) {\n warn$1(\n `watch() \"deep\" option is only respected when using the watch(source, callback, options?) signature.`\n );\n }\n if (once !== void 0) {\n warn$1(\n `watch() \"once\" option is only respected when using the watch(source, callback, options?) signature.`\n );\n }\n }\n const baseWatchOptions = extend({}, options);\n if (!!(process.env.NODE_ENV !== \"production\")) baseWatchOptions.onWarn = warn$1;\n const runsImmediately = cb && immediate || !cb && flush !== \"post\";\n let ssrCleanup;\n if (isInSSRComponentSetup) {\n if (flush === \"sync\") {\n const ctx = useSSRContext();\n ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);\n } else if (!runsImmediately) {\n const watchStopHandle = () => {\n };\n watchStopHandle.stop = NOOP;\n watchStopHandle.resume = NOOP;\n watchStopHandle.pause = NOOP;\n return watchStopHandle;\n }\n }\n const instance = currentInstance;\n baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);\n let isPre = false;\n if (flush === \"post\") {\n baseWatchOptions.scheduler = (job) => {\n queuePostRenderEffect(job, instance && instance.suspense);\n };\n } else if (flush !== \"sync\") {\n isPre = true;\n baseWatchOptions.scheduler = (job, isFirstRun) => {\n if (isFirstRun) {\n job();\n } else {\n queueJob(job);\n }\n };\n }\n baseWatchOptions.augmentJob = (job) => {\n if (cb) {\n job.flags |= 4;\n }\n if (isPre) {\n job.flags |= 2;\n if (instance) {\n job.id = instance.uid;\n job.i = instance;\n }\n }\n };\n const watchHandle = watch$1(source, cb, baseWatchOptions);\n if (isInSSRComponentSetup) {\n if (ssrCleanup) {\n ssrCleanup.push(watchHandle);\n } else if (runsImmediately) {\n watchHandle();\n }\n }\n return watchHandle;\n}\nfunction instanceWatch(source, value, options) {\n const publicThis = this.proxy;\n const getter = isString(source) ? source.includes(\".\") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);\n let cb;\n if (isFunction(value)) {\n cb = value;\n } else {\n cb = value.handler;\n options = value;\n }\n const reset = setCurrentInstance(this);\n const res = doWatch(getter, cb.bind(publicThis), options);\n reset();\n return res;\n}\nfunction createPathGetter(ctx, path) {\n const segments = path.split(\".\");\n return () => {\n let cur = ctx;\n for (let i = 0; i < segments.length && cur; i++) {\n cur = cur[segments[i]];\n }\n return cur;\n };\n}\n\nconst pendingMounts = /* @__PURE__ */ new WeakMap();\nconst TeleportEndKey = /* @__PURE__ */ Symbol(\"_vte\");\nconst isTeleport = (type) => type.__isTeleport;\nconst isTeleportDisabled = (props) => props && (props.disabled || props.disabled === \"\");\nconst isTeleportDeferred = (props) => props && (props.defer || props.defer === \"\");\nconst isTargetSVG = (target) => typeof SVGElement !== \"undefined\" && target instanceof SVGElement;\nconst isTargetMathML = (target) => typeof MathMLElement === \"function\" && target instanceof MathMLElement;\nconst resolveTarget = (props, select) => {\n const targetSelector = props && props.to;\n if (isString(targetSelector)) {\n if (!select) {\n !!(process.env.NODE_ENV !== \"production\") && warn$1(\n `Current renderer does not support string target for Teleports. (missing querySelector renderer option)`\n );\n return null;\n } else {\n const target = select(targetSelector);\n if (!!(process.env.NODE_ENV !== \"production\") && !target && !isTeleportDisabled(props)) {\n warn$1(\n `Failed to locate Teleport target with selector \"${targetSelector}\". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`\n );\n }\n return target;\n }\n } else {\n if (!!(process.env.NODE_ENV !== \"production\") && !targetSelector && !isTeleportDisabled(props)) {\n warn$1(`Invalid Teleport target: ${targetSelector}`);\n }\n return targetSelector;\n }\n};\nconst TeleportImpl = {\n name: \"Teleport\",\n __isTeleport: true,\n process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, internals) {\n const {\n mc: mountChildren,\n pc: patchChildren,\n pbc: patchBlockChildren,\n o: { insert, querySelector, createText, createComment, parentNode }\n } = internals;\n const disabled = isTeleportDisabled(n2.props);\n let { dynamicChildren } = n2;\n if (!!(process.env.NODE_ENV !== \"production\") && isHmrUpdating) {\n optimized = false;\n dynamicChildren = null;\n }\n const mount = (vnode, container2, anchor2) => {\n if (vnode.shapeFlag & 16) {\n mountChildren(\n vnode.children,\n container2,\n anchor2,\n parentComponent,\n parentSuspense,\n namespace,\n slotScopeIds,\n optimized\n );\n }\n };\n const mountToTarget = (vnode = n2) => {\n const disabled2 = isTeleportDisabled(vnode.props);\n const target = vnode.target = resolveTarget(vnode.props, querySelector);\n const targetAnchor = prepareAnchor(target, vnode, createText, insert);\n if (target) {\n if (namespace !== \"svg\" && isTargetSVG(target)) {\n namespace = \"svg\";\n } else if (namespace !== \"mathml\" && isTargetMathML(target)) {\n namespace = \"mathml\";\n }\n if (parentComponent && parentComponent.isCE) {\n (parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);\n }\n if (!disabled2) {\n mount(vnode, target, targetAnchor);\n updateCssVars(vnode, false);\n }\n } else if (!!(process.env.NODE_ENV !== \"production\") && !disabled2) {\n warn$1(\"Invalid Teleport target on mount:\", target, `(${typeof target})`);\n }\n };\n const queuePendingMount = (vnode) => {\n const mountJob = () => {\n if (pendingMounts.get(vnode) !== mountJob) return;\n pendingMounts.delete(vnode);\n if (isTeleportDisabled(vnode.props)) {\n const mountContainer = parentNode(vnode.el) || container;\n mount(vnode, mountContainer, vnode.anchor);\n updateCssVars(vnode, true);\n }\n mountToTarget(vnode);\n };\n pendingMounts.set(vnode, mountJob);\n queuePostRenderEffect(mountJob, parentSuspense);\n };\n if (n1 == null) {\n const placeholder = n2.el = !!(process.env.NODE_ENV !== \"production\") ? createComment(\"teleport start\") : createText(\"\");\n const mainAnchor = n2.anchor = !!(process.env.NODE_ENV !== \"production\") ? createComment(\"teleport end\") : createText(\"\");\n insert(placeholder, container, anchor);\n insert(mainAnchor, container, anchor);\n if (isTeleportDeferred(n2.props) || parentSuspense && parentSuspense.pendingBranch) {\n queuePendingMount(n2);\n return;\n }\n if (disabled) {\n mount(n2, container, mainAnchor);\n updateCssVars(n2, true);\n }\n mountToTarget();\n } else {\n n2.el = n1.el;\n const mainAnchor = n2.anchor = n1.anchor;\n const pendingMount = pendingMounts.get(n1);\n if (pendingMount) {\n pendingMount.flags |= 8;\n pendingMounts.delete(n1);\n queuePendingMount(n2);\n return;\n }\n n2.targetStart = n1.targetStart;\n const target = n2.target = n1.target;\n const targetAnchor = n2.targetAnchor = n1.targetAnchor;\n const wasDisabled = isTeleportDisabled(n1.props);\n const currentContainer = wasDisabled ? container : target;\n const currentAnchor = wasDisabled ? mainAnchor : targetAnchor;\n if (namespace === \"svg\" || isTargetSVG(target)) {\n namespace = \"svg\";\n } else if (namespace === \"mathml\" || isTargetMathML(target)) {\n namespace = \"mathml\";\n }\n if (dynamicChildren) {\n patchBlockChildren(\n n1.dynamicChildren,\n dynamicChildren,\n currentContainer,\n parentComponent,\n parentSuspense,\n namespace,\n slotScopeIds\n );\n traverseStaticChildren(n1, n2, !!!(process.env.NODE_ENV !== \"production\"));\n } else if (!optimized) {\n patchChildren(\n n1,\n n2,\n currentContainer,\n currentAnchor,\n parentComponent,\n parentSuspense,\n namespace,\n slotScopeIds,\n false\n );\n }\n if (disabled) {\n if (!wasDisabled) {\n moveTeleport(\n n2,\n container,\n mainAnchor,\n internals,\n 1\n );\n } else {\n if (n2.props && n1.props && n2.props.to !== n1.props.to) {\n n2.props.to = n1.props.to;\n }\n }\n } else {\n if ((n2.props && n2.props.to) !== (n1.props && n1.props.to)) {\n const nextTarget = resolveTarget(n2.props, querySelector);\n if (nextTarget) {\n n2.target = nextTarget;\n moveTeleport(\n n2,\n nextTarget,\n null,\n internals,\n 0\n );\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(\n \"Invalid Teleport target on update:\",\n target,\n `(${typeof target})`\n );\n }\n } else if (wasDisabled) {\n moveTeleport(\n n2,\n target,\n targetAnchor,\n internals,\n 1\n );\n }\n }\n updateCssVars(n2, disabled);\n }\n },\n remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) {\n const {\n shapeFlag,\n children,\n anchor,\n targetStart,\n targetAnchor,\n target,\n props\n } = vnode;\n const disabled = isTeleportDisabled(props);\n const shouldRemove = doRemove || !disabled;\n const pendingMount = pendingMounts.get(vnode);\n if (pendingMount) {\n pendingMount.flags |= 8;\n pendingMounts.delete(vnode);\n }\n if (target) {\n hostRemove(targetStart);\n hostRemove(targetAnchor);\n }\n doRemove && hostRemove(anchor);\n if (!pendingMount && (disabled || target) && shapeFlag & 16) {\n for (let i = 0; i < children.length; i++) {\n const child = children[i];\n unmount(\n child,\n parentComponent,\n parentSuspense,\n shouldRemove,\n !!child.dynamicChildren\n );\n }\n }\n },\n move: moveTeleport,\n hydrate: hydrateTeleport\n};\nfunction moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType = 2) {\n if (moveType === 0) {\n insert(vnode.targetAnchor, container, parentAnchor);\n }\n const { el, anchor, shapeFlag, children, props } = vnode;\n const isReorder = moveType === 2;\n if (isReorder) {\n insert(el, container, parentAnchor);\n }\n if (!pendingMounts.has(vnode) && (!isReorder || isTeleportDisabled(props))) {\n if (shapeFlag & 16) {\n for (let i = 0; i < children.length; i++) {\n move(\n children[i],\n container,\n parentAnchor,\n 2\n );\n }\n }\n }\n if (isReorder) {\n insert(anchor, container, parentAnchor);\n }\n}\nfunction hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, {\n o: { nextSibling, parentNode, querySelector, insert, createText }\n}, hydrateChildren) {\n function hydrateAnchor(target2, targetNode) {\n let targetAnchor = targetNode;\n while (targetAnchor) {\n if (targetAnchor && targetAnchor.nodeType === 8) {\n if (targetAnchor.data === \"teleport start anchor\") {\n vnode.targetStart = targetAnchor;\n } else if (targetAnchor.data === \"teleport anchor\") {\n vnode.targetAnchor = targetAnchor;\n target2._lpa = vnode.targetAnchor && nextSibling(vnode.targetAnchor);\n break;\n }\n }\n targetAnchor = nextSibling(targetAnchor);\n }\n }\n function hydrateDisabledTeleport(node2, vnode2) {\n vnode2.anchor = hydrateChildren(\n nextSibling(node2),\n vnode2,\n parentNode(node2),\n parentComponent,\n parentSuspense,\n slotScopeIds,\n optimized\n );\n }\n const target = vnode.target = resolveTarget(\n vnode.props,\n querySelector\n );\n const disabled = isTeleportDisabled(vnode.props);\n if (target) {\n const targetNode = target._lpa || target.firstChild;\n if (vnode.shapeFlag & 16) {\n if (disabled) {\n hydrateDisabledTeleport(node, vnode);\n hydrateAnchor(target, targetNode);\n if (!vnode.targetAnchor) {\n prepareAnchor(\n target,\n vnode,\n createText,\n insert,\n // if target is the same as the main view, insert anchors before current node\n // to avoid hydrating mismatch\n parentNode(node) === target ? node : null\n );\n }\n } else {\n vnode.anchor = nextSibling(node);\n hydrateAnchor(target, targetNode);\n if (!vnode.targetAnchor) {\n prepareAnchor(target, vnode, createText, insert);\n }\n hydrateChildren(\n targetNode && nextSibling(targetNode),\n vnode,\n target,\n parentComponent,\n parentSuspense,\n slotScopeIds,\n optimized\n );\n }\n }\n updateCssVars(vnode, disabled);\n } else if (disabled) {\n if (vnode.shapeFlag & 16) {\n hydrateDisabledTeleport(node, vnode);\n vnode.targetStart = node;\n vnode.targetAnchor = nextSibling(node);\n }\n }\n return vnode.anchor && nextSibling(vnode.anchor);\n}\nconst Teleport = TeleportImpl;\nfunction updateCssVars(vnode, isDisabled) {\n const ctx = vnode.ctx;\n if (ctx && ctx.ut) {\n let node, anchor;\n if (isDisabled) {\n node = vnode.el;\n anchor = vnode.anchor;\n } else {\n node = vnode.targetStart;\n anchor = vnode.targetAnchor;\n }\n while (node && node !== anchor) {\n if (node.nodeType === 1) node.setAttribute(\"data-v-owner\", ctx.uid);\n node = node.nextSibling;\n }\n ctx.ut();\n }\n}\nfunction prepareAnchor(target, vnode, createText, insert, anchor = null) {\n const targetStart = vnode.targetStart = createText(\"\");\n const targetAnchor = vnode.targetAnchor = createText(\"\");\n targetStart[TeleportEndKey] = targetAnchor;\n if (target) {\n insert(targetStart, target, anchor);\n insert(targetAnchor, target, anchor);\n }\n return targetAnchor;\n}\n\nconst leaveCbKey = /* @__PURE__ */ Symbol(\"_leaveCb\");\nconst enterCbKey = /* @__PURE__ */ Symbol(\"_enterCb\");\nfunction useTransitionState() {\n const state = {\n isMounted: false,\n isLeaving: false,\n isUnmounting: false,\n leavingVNodes: /* @__PURE__ */ new Map()\n };\n onMounted(() => {\n state.isMounted = true;\n });\n onBeforeUnmount(() => {\n state.isUnmounting = true;\n });\n return state;\n}\nconst TransitionHookValidator = [Function, Array];\nconst BaseTransitionPropsValidators = {\n mode: String,\n appear: Boolean,\n persisted: Boolean,\n // enter\n onBeforeEnter: TransitionHookValidator,\n onEnter: TransitionHookValidator,\n onAfterEnter: TransitionHookValidator,\n onEnterCancelled: TransitionHookValidator,\n // leave\n onBeforeLeave: TransitionHookValidator,\n onLeave: TransitionHookValidator,\n onAfterLeave: TransitionHookValidator,\n onLeaveCancelled: TransitionHookValidator,\n // appear\n onBeforeAppear: TransitionHookValidator,\n onAppear: TransitionHookValidator,\n onAfterAppear: TransitionHookValidator,\n onAppearCancelled: TransitionHookValidator\n};\nconst recursiveGetSubtree = (instance) => {\n const subTree = instance.subTree;\n return subTree.component ? recursiveGetSubtree(subTree.component) : subTree;\n};\nconst BaseTransitionImpl = {\n name: `BaseTransition`,\n props: BaseTransitionPropsValidators,\n setup(props, { slots }) {\n const instance = getCurrentInstance();\n const state = useTransitionState();\n return () => {\n const children = slots.default && getTransitionRawChildren(slots.default(), true);\n const child = children && children.length ? findNonCommentChild(children) : (\n // Keep explicit default-slot conditionals on the same transition path\n // as regular v-if branches, which render a comment placeholder.\n instance.subTree ? createCommentVNode() : void 0\n );\n if (!child) {\n return;\n }\n const rawProps = toRaw(props);\n const { mode } = rawProps;\n if (!!(process.env.NODE_ENV !== \"production\") && mode && mode !== \"in-out\" && mode !== \"out-in\" && mode !== \"default\") {\n warn$1(`invalid mode: ${mode}`);\n }\n if (state.isLeaving) {\n return emptyPlaceholder(child);\n }\n const innerChild = getInnerChild$1(child);\n if (!innerChild) {\n return emptyPlaceholder(child);\n }\n let enterHooks = resolveTransitionHooks(\n innerChild,\n rawProps,\n state,\n instance,\n // #11061, ensure enterHooks is fresh after clone\n (hooks) => enterHooks = hooks\n );\n if (innerChild.type !== Comment) {\n setTransitionHooks(innerChild, enterHooks);\n }\n let oldInnerChild = instance.subTree && getInnerChild$1(instance.subTree);\n if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(oldInnerChild, innerChild) && recursiveGetSubtree(instance).type !== Comment) {\n let leavingHooks = resolveTransitionHooks(\n oldInnerChild,\n rawProps,\n state,\n instance\n );\n setTransitionHooks(oldInnerChild, leavingHooks);\n if (mode === \"out-in\" && innerChild.type !== Comment) {\n state.isLeaving = true;\n leavingHooks.afterLeave = () => {\n state.isLeaving = false;\n if (!(instance.job.flags & 8)) {\n instance.update();\n }\n delete leavingHooks.afterLeave;\n oldInnerChild = void 0;\n };\n return emptyPlaceholder(child);\n } else if (mode === \"in-out\" && innerChild.type !== Comment) {\n leavingHooks.delayLeave = (el, earlyRemove, delayedLeave) => {\n const leavingVNodesCache = getLeavingNodesForType(\n state,\n oldInnerChild\n );\n leavingVNodesCache[String(oldInnerChild.key)] = oldInnerChild;\n el[leaveCbKey] = () => {\n earlyRemove();\n el[leaveCbKey] = void 0;\n delete enterHooks.delayedLeave;\n oldInnerChild = void 0;\n };\n enterHooks.delayedLeave = () => {\n delayedLeave();\n delete enterHooks.delayedLeave;\n oldInnerChild = void 0;\n };\n };\n } else {\n oldInnerChild = void 0;\n }\n } else if (oldInnerChild) {\n oldInnerChild = void 0;\n }\n return child;\n };\n }\n};\nfunction findNonCommentChild(children) {\n let child = children[0];\n if (children.length > 1) {\n let hasFound = false;\n for (const c of children) {\n if (c.type !== Comment) {\n if (!!(process.env.NODE_ENV !== \"production\") && hasFound) {\n warn$1(\n \" can only be used on a single element or component. Use for lists.\"\n );\n break;\n }\n child = c;\n hasFound = true;\n if (!!!(process.env.NODE_ENV !== \"production\")) break;\n }\n }\n }\n return child;\n}\nconst BaseTransition = BaseTransitionImpl;\nfunction getLeavingNodesForType(state, vnode) {\n const { leavingVNodes } = state;\n let leavingVNodesCache = leavingVNodes.get(vnode.type);\n if (!leavingVNodesCache) {\n leavingVNodesCache = /* @__PURE__ */ Object.create(null);\n leavingVNodes.set(vnode.type, leavingVNodesCache);\n }\n return leavingVNodesCache;\n}\nfunction resolveTransitionHooks(vnode, props, state, instance, postClone) {\n const {\n appear,\n mode,\n persisted = false,\n onBeforeEnter,\n onEnter,\n onAfterEnter,\n onEnterCancelled,\n onBeforeLeave,\n onLeave,\n onAfterLeave,\n onLeaveCancelled,\n onBeforeAppear,\n onAppear,\n onAfterAppear,\n onAppearCancelled\n } = props;\n const key = String(vnode.key);\n const leavingVNodesCache = getLeavingNodesForType(state, vnode);\n const callHook = (hook, args) => {\n hook && callWithAsyncErrorHandling(\n hook,\n instance,\n 9,\n args\n );\n };\n const callAsyncHook = (hook, args) => {\n const done = args[1];\n callHook(hook, args);\n if (isArray(hook)) {\n if (hook.every((hook2) => hook2.length <= 1)) done();\n } else if (hook.length <= 1) {\n done();\n }\n };\n const hooks = {\n mode,\n persisted,\n beforeEnter(el) {\n let hook = onBeforeEnter;\n if (!state.isMounted) {\n if (appear) {\n hook = onBeforeAppear || onBeforeEnter;\n } else {\n return;\n }\n }\n if (el[leaveCbKey]) {\n el[leaveCbKey](\n true\n /* cancelled */\n );\n }\n const leavingVNode = leavingVNodesCache[key];\n if (leavingVNode && isSameVNodeType(vnode, leavingVNode) && leavingVNode.el[leaveCbKey]) {\n leavingVNode.el[leaveCbKey]();\n }\n callHook(hook, [el]);\n },\n enter(el) {\n if (!isHmrUpdating && leavingVNodesCache[key] === vnode) return;\n let hook = onEnter;\n let afterHook = onAfterEnter;\n let cancelHook = onEnterCancelled;\n if (!state.isMounted) {\n if (appear) {\n hook = onAppear || onEnter;\n afterHook = onAfterAppear || onAfterEnter;\n cancelHook = onAppearCancelled || onEnterCancelled;\n } else {\n return;\n }\n }\n let called = false;\n el[enterCbKey] = (cancelled) => {\n if (called) return;\n called = true;\n if (cancelled) {\n callHook(cancelHook, [el]);\n } else {\n callHook(afterHook, [el]);\n }\n if (hooks.delayedLeave) {\n hooks.delayedLeave();\n }\n el[enterCbKey] = void 0;\n };\n const done = el[enterCbKey].bind(null, false);\n if (hook) {\n callAsyncHook(hook, [el, done]);\n } else {\n done();\n }\n },\n leave(el, remove) {\n const key2 = String(vnode.key);\n if (el[enterCbKey]) {\n el[enterCbKey](\n true\n /* cancelled */\n );\n }\n if (state.isUnmounting) {\n return remove();\n }\n callHook(onBeforeLeave, [el]);\n let called = false;\n el[leaveCbKey] = (cancelled) => {\n if (called) return;\n called = true;\n remove();\n if (cancelled) {\n callHook(onLeaveCancelled, [el]);\n } else {\n callHook(onAfterLeave, [el]);\n }\n el[leaveCbKey] = void 0;\n if (leavingVNodesCache[key2] === vnode) {\n delete leavingVNodesCache[key2];\n }\n };\n const done = el[leaveCbKey].bind(null, false);\n leavingVNodesCache[key2] = vnode;\n if (onLeave) {\n callAsyncHook(onLeave, [el, done]);\n } else {\n done();\n }\n },\n clone(vnode2) {\n const hooks2 = resolveTransitionHooks(\n vnode2,\n props,\n state,\n instance,\n postClone\n );\n if (postClone) postClone(hooks2);\n return hooks2;\n }\n };\n return hooks;\n}\nfunction emptyPlaceholder(vnode) {\n if (isKeepAlive(vnode)) {\n vnode = cloneVNode(vnode);\n vnode.children = null;\n return vnode;\n }\n}\nfunction getInnerChild$1(vnode) {\n if (!isKeepAlive(vnode)) {\n if (isTeleport(vnode.type) && vnode.children) {\n return findNonCommentChild(vnode.children);\n }\n return vnode;\n }\n if (vnode.component) {\n return vnode.component.subTree;\n }\n const { shapeFlag, children } = vnode;\n if (children) {\n if (shapeFlag & 16) {\n return children[0];\n }\n if (shapeFlag & 32 && isFunction(children.default)) {\n return children.default();\n }\n }\n}\nfunction setTransitionHooks(vnode, hooks) {\n if (vnode.shapeFlag & 6 && vnode.component) {\n vnode.transition = hooks;\n setTransitionHooks(vnode.component.subTree, hooks);\n } else if (vnode.shapeFlag & 128) {\n vnode.ssContent.transition = hooks.clone(vnode.ssContent);\n vnode.ssFallback.transition = hooks.clone(vnode.ssFallback);\n } else {\n vnode.transition = hooks;\n }\n}\nfunction getTransitionRawChildren(children, keepComment = false, parentKey) {\n let ret = [];\n let keyedFragmentCount = 0;\n for (let i = 0; i < children.length; i++) {\n let child = children[i];\n const key = parentKey == null ? child.key : String(parentKey) + String(child.key != null ? child.key : i);\n if (child.type === Fragment) {\n if (child.patchFlag & 128) keyedFragmentCount++;\n ret = ret.concat(\n getTransitionRawChildren(child.children, keepComment, key)\n );\n } else if (keepComment || child.type !== Comment) {\n ret.push(key != null ? cloneVNode(child, { key }) : child);\n }\n }\n if (keyedFragmentCount > 1) {\n for (let i = 0; i < ret.length; i++) {\n ret[i].patchFlag = -2;\n }\n }\n return ret;\n}\n\n// @__NO_SIDE_EFFECTS__\nfunction defineComponent(options, extraOptions) {\n return isFunction(options) ? (\n // #8236: extend call and options.name access are considered side-effects\n // by Rollup, so we have to wrap it in a pure-annotated IIFE.\n /* @__PURE__ */ (() => extend({ name: options.name }, extraOptions, { setup: options }))()\n ) : options;\n}\n\nfunction useId() {\n const i = getCurrentInstance();\n if (i) {\n return (i.appContext.config.idPrefix || \"v\") + \"-\" + i.ids[0] + i.ids[1]++;\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(\n `useId() is called when there is no active component instance to be associated with.`\n );\n }\n return \"\";\n}\nfunction markAsyncBoundary(instance) {\n instance.ids = [instance.ids[0] + instance.ids[2]++ + \"-\", 0, 0];\n}\n\nconst knownTemplateRefs = /* @__PURE__ */ new WeakSet();\nfunction useTemplateRef(key) {\n const i = getCurrentInstance();\n const r = shallowRef(null);\n if (i) {\n const refs = i.refs === EMPTY_OBJ ? i.refs = {} : i.refs;\n if (!!(process.env.NODE_ENV !== \"production\") && isTemplateRefKey(refs, key)) {\n warn$1(`useTemplateRef('${key}') already exists.`);\n } else {\n Object.defineProperty(refs, key, {\n enumerable: true,\n get: () => r.value,\n set: (val) => r.value = val\n });\n }\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(\n `useTemplateRef() is called when there is no active component instance to be associated with.`\n );\n }\n const ret = !!(process.env.NODE_ENV !== \"production\") ? readonly(r) : r;\n if (!!(process.env.NODE_ENV !== \"production\")) {\n knownTemplateRefs.add(ret);\n }\n return ret;\n}\nfunction isTemplateRefKey(refs, key) {\n let desc;\n return !!((desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable);\n}\n\nconst pendingSetRefMap = /* @__PURE__ */ new WeakMap();\nfunction setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {\n if (isArray(rawRef)) {\n rawRef.forEach(\n (r, i) => setRef(\n r,\n oldRawRef && (isArray(oldRawRef) ? oldRawRef[i] : oldRawRef),\n parentSuspense,\n vnode,\n isUnmount\n )\n );\n return;\n }\n if (isAsyncWrapper(vnode) && !isUnmount) {\n if (vnode.shapeFlag & 512 && vnode.type.__asyncResolved && vnode.component.subTree.component) {\n setRef(rawRef, oldRawRef, parentSuspense, vnode.component.subTree);\n }\n return;\n }\n const refValue = vnode.shapeFlag & 4 ? getComponentPublicInstance(vnode.component) : vnode.el;\n const value = isUnmount ? null : refValue;\n const { i: owner, r: ref } = rawRef;\n if (!!(process.env.NODE_ENV !== \"production\") && !owner) {\n warn$1(\n `Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.`\n );\n return;\n }\n const oldRef = oldRawRef && oldRawRef.r;\n const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;\n const setupState = owner.setupState;\n const rawSetupState = toRaw(setupState);\n const canSetSetupRef = setupState === EMPTY_OBJ ? NO : (key) => {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n if (hasOwn(rawSetupState, key) && !isRef(rawSetupState[key])) {\n warn$1(\n `Template ref \"${key}\" used on a non-ref value. It will not work in the production build.`\n );\n }\n if (knownTemplateRefs.has(rawSetupState[key])) {\n return false;\n }\n }\n if (isTemplateRefKey(refs, key)) {\n return false;\n }\n return hasOwn(rawSetupState, key);\n };\n const canSetRef = (ref2, key) => {\n if (!!(process.env.NODE_ENV !== \"production\") && knownTemplateRefs.has(ref2)) {\n return false;\n }\n if (key && isTemplateRefKey(refs, key)) {\n return false;\n }\n return true;\n };\n if (oldRef != null && oldRef !== ref) {\n invalidatePendingSetRef(oldRawRef);\n if (isString(oldRef)) {\n refs[oldRef] = null;\n if (canSetSetupRef(oldRef)) {\n setupState[oldRef] = null;\n }\n } else if (isRef(oldRef)) {\n const oldRawRefAtom = oldRawRef;\n if (canSetRef(oldRef, oldRawRefAtom.k)) {\n oldRef.value = null;\n }\n if (oldRawRefAtom.k) refs[oldRawRefAtom.k] = null;\n }\n }\n if (isFunction(ref)) {\n pauseTracking();\n try {\n callWithErrorHandling(ref, owner, 12, [value, refs]);\n } finally {\n resetTracking();\n }\n } else {\n const _isString = isString(ref);\n const _isRef = isRef(ref);\n if (_isString || _isRef) {\n const doSet = () => {\n if (rawRef.f) {\n const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : canSetRef(ref) || !rawRef.k ? ref.value : refs[rawRef.k];\n if (isUnmount) {\n isArray(existing) && remove(existing, refValue);\n } else {\n if (!isArray(existing)) {\n if (_isString) {\n refs[ref] = [refValue];\n if (canSetSetupRef(ref)) {\n setupState[ref] = refs[ref];\n }\n } else {\n const newVal = [refValue];\n if (canSetRef(ref, rawRef.k)) {\n ref.value = newVal;\n }\n if (rawRef.k) refs[rawRef.k] = newVal;\n }\n } else if (!existing.includes(refValue)) {\n existing.push(refValue);\n }\n }\n } else if (_isString) {\n refs[ref] = value;\n if (canSetSetupRef(ref)) {\n setupState[ref] = value;\n }\n } else if (_isRef) {\n if (canSetRef(ref, rawRef.k)) {\n ref.value = value;\n }\n if (rawRef.k) refs[rawRef.k] = value;\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(\"Invalid template ref type:\", ref, `(${typeof ref})`);\n }\n };\n if (value) {\n const job = () => {\n doSet();\n pendingSetRefMap.delete(rawRef);\n };\n job.id = -1;\n pendingSetRefMap.set(rawRef, job);\n queuePostRenderEffect(job, parentSuspense);\n } else {\n invalidatePendingSetRef(rawRef);\n doSet();\n }\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(\"Invalid template ref type:\", ref, `(${typeof ref})`);\n }\n }\n}\nfunction invalidatePendingSetRef(rawRef) {\n const pendingSetRef = pendingSetRefMap.get(rawRef);\n if (pendingSetRef) {\n pendingSetRef.flags |= 8;\n pendingSetRefMap.delete(rawRef);\n }\n}\n\nlet hasLoggedMismatchError = false;\nconst logMismatchError = () => {\n if (hasLoggedMismatchError) {\n return;\n }\n console.error(\"Hydration completed but contains mismatches.\");\n hasLoggedMismatchError = true;\n};\nconst isSVGContainer = (container) => container.namespaceURI.includes(\"svg\") && container.tagName !== \"foreignObject\";\nconst isMathMLContainer = (container) => container.namespaceURI.includes(\"MathML\");\nconst getContainerType = (container) => {\n if (container.nodeType !== 1) return void 0;\n if (isSVGContainer(container)) return \"svg\";\n if (isMathMLContainer(container)) return \"mathml\";\n return void 0;\n};\nconst isComment = (node) => node.nodeType === 8;\nfunction createHydrationFunctions(rendererInternals) {\n const {\n mt: mountComponent,\n p: patch,\n o: {\n patchProp,\n createText,\n nextSibling,\n parentNode,\n remove,\n insert,\n createComment\n }\n } = rendererInternals;\n const hydrate = (vnode, container) => {\n if (!container.hasChildNodes()) {\n (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(\n `Attempting to hydrate existing markup but container is empty. Performing full mount instead.`\n );\n patch(null, vnode, container);\n flushPostFlushCbs();\n container._vnode = vnode;\n return;\n }\n hydrateNode(container.firstChild, vnode, null, null, null);\n flushPostFlushCbs();\n container._vnode = vnode;\n };\n const hydrateNode = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized = false) => {\n optimized = optimized || !!vnode.dynamicChildren;\n const isFragmentStart = isComment(node) && node.data === \"[\";\n const onMismatch = () => handleMismatch(\n node,\n vnode,\n parentComponent,\n parentSuspense,\n slotScopeIds,\n isFragmentStart\n );\n const { type, ref, shapeFlag, patchFlag } = vnode;\n let domType = node.nodeType;\n vnode.el = node;\n if (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_DEVTOOLS__) {\n def(node, \"__vnode\", vnode, true);\n def(node, \"__vueParentComponent\", parentComponent, true);\n }\n if (patchFlag === -2) {\n optimized = false;\n vnode.dynamicChildren = null;\n }\n let nextNode = null;\n switch (type) {\n case Text:\n if (domType !== 3) {\n if (vnode.children === \"\") {\n insert(vnode.el = createText(\"\"), parentNode(node), node);\n nextNode = node;\n } else {\n nextNode = onMismatch();\n }\n } else {\n if (node.data !== vnode.children) {\n (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(\n `Hydration text mismatch in`,\n node.parentNode,\n `\n - rendered on server: ${JSON.stringify(\n node.data\n )}\n - expected on client: ${JSON.stringify(vnode.children)}`\n );\n logMismatchError();\n node.data = vnode.children;\n }\n nextNode = nextSibling(node);\n }\n break;\n case Comment:\n if (isTemplateNode(node)) {\n nextNode = nextSibling(node);\n replaceNode(\n vnode.el = node.content.firstChild,\n node,\n parentComponent\n );\n } else if (domType !== 8 || isFragmentStart) {\n nextNode = onMismatch();\n } else {\n nextNode = nextSibling(node);\n }\n break;\n case Static:\n if (isFragmentStart) {\n node = nextSibling(node);\n domType = node.nodeType;\n }\n if (domType === 1 || domType === 3) {\n nextNode = node;\n const needToAdoptContent = !vnode.children.length;\n for (let i = 0; i < vnode.staticCount; i++) {\n if (needToAdoptContent)\n vnode.children += nextNode.nodeType === 1 ? nextNode.outerHTML : nextNode.data;\n if (i === vnode.staticCount - 1) {\n vnode.anchor = nextNode;\n }\n nextNode = nextSibling(nextNode);\n }\n return isFragmentStart ? nextSibling(nextNode) : nextNode;\n } else {\n onMismatch();\n }\n break;\n case Fragment:\n if (!isFragmentStart) {\n nextNode = onMismatch();\n } else {\n nextNode = hydrateFragment(\n node,\n vnode,\n parentComponent,\n parentSuspense,\n slotScopeIds,\n optimized\n );\n }\n break;\n default:\n if (shapeFlag & 1) {\n if ((domType !== 1 || vnode.type.toLowerCase() !== node.tagName.toLowerCase()) && !isTemplateNode(node)) {\n nextNode = onMismatch();\n } else {\n nextNode = hydrateElement(\n node,\n vnode,\n parentComponent,\n parentSuspense,\n slotScopeIds,\n optimized\n );\n }\n } else if (shapeFlag & 6) {\n vnode.slotScopeIds = slotScopeIds;\n const container = parentNode(node);\n if (isFragmentStart) {\n nextNode = locateClosingAnchor(node);\n } else if (isComment(node) && node.data === \"teleport start\") {\n nextNode = locateClosingAnchor(node, node.data, \"teleport end\");\n } else {\n nextNode = nextSibling(node);\n }\n mountComponent(\n vnode,\n container,\n null,\n parentComponent,\n parentSuspense,\n getContainerType(container),\n optimized\n );\n if (isAsyncWrapper(vnode) && !vnode.type.__asyncResolved) {\n let subTree;\n if (isFragmentStart) {\n subTree = createVNode(Fragment);\n subTree.anchor = nextNode ? nextNode.previousSibling : container.lastChild;\n } else {\n subTree = node.nodeType === 3 ? createTextVNode(\"\") : createVNode(\"div\");\n }\n subTree.el = node;\n vnode.component.subTree = subTree;\n }\n } else if (shapeFlag & 64) {\n if (domType !== 8) {\n nextNode = onMismatch();\n } else {\n nextNode = vnode.type.hydrate(\n node,\n vnode,\n parentComponent,\n parentSuspense,\n slotScopeIds,\n optimized,\n rendererInternals,\n hydrateChildren\n );\n }\n } else if (shapeFlag & 128) {\n nextNode = vnode.type.hydrate(\n node,\n vnode,\n parentComponent,\n parentSuspense,\n getContainerType(parentNode(node)),\n slotScopeIds,\n optimized,\n rendererInternals,\n hydrateNode\n );\n } else if (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) {\n warn$1(\"Invalid HostVNode type:\", type, `(${typeof type})`);\n }\n }\n if (ref != null) {\n setRef(ref, null, parentSuspense, vnode);\n }\n return nextNode;\n };\n const hydrateElement = (el, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => {\n optimized = optimized || !!vnode.dynamicChildren;\n const {\n type,\n dynamicProps,\n props,\n patchFlag,\n shapeFlag,\n dirs,\n transition\n } = vnode;\n const forcePatch = type === \"input\" || type === \"option\";\n const hasDynamicProps = !!dynamicProps;\n if (!!(process.env.NODE_ENV !== \"production\") || forcePatch || hasDynamicProps || patchFlag !== -1) {\n if (dirs) {\n invokeDirectiveHook(vnode, null, parentComponent, \"created\");\n }\n let needCallTransitionHooks = false;\n if (isTemplateNode(el)) {\n needCallTransitionHooks = needTransition(\n null,\n // no need check parentSuspense in hydration\n transition\n ) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear;\n const content = el.content.firstChild;\n if (needCallTransitionHooks) {\n const cls = content.getAttribute(\"class\");\n if (cls) content.$cls = cls;\n transition.beforeEnter(content);\n }\n replaceNode(content, el, parentComponent);\n vnode.el = el = content;\n }\n if (shapeFlag & 16 && // skip if element has innerHTML / textContent\n !(props && (props.innerHTML || props.textContent))) {\n let next = hydrateChildren(\n el.firstChild,\n vnode,\n el,\n parentComponent,\n parentSuspense,\n slotScopeIds,\n optimized\n );\n if (next && !isMismatchAllowed(el, 1 /* CHILDREN */)) {\n (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(\n `Hydration children mismatch on`,\n el,\n `\nServer rendered element contains more child nodes than client vdom.`\n );\n logMismatchError();\n }\n while (next) {\n const cur = next;\n next = next.nextSibling;\n remove(cur);\n }\n } else if (shapeFlag & 8) {\n let clientText = vnode.children;\n if (clientText[0] === \"\\n\" && (el.tagName === \"PRE\" || el.tagName === \"TEXTAREA\")) {\n clientText = clientText.slice(1);\n }\n const { textContent } = el;\n if (textContent !== clientText && // innerHTML normalize \\r\\n or \\r into a single \\n in the DOM\n textContent !== clientText.replace(/\\r\\n|\\r/g, \"\\n\")) {\n if (!isMismatchAllowed(el, 0 /* TEXT */)) {\n (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(\n `Hydration text content mismatch on`,\n el,\n `\n - rendered on server: ${textContent}\n - expected on client: ${clientText}`\n );\n logMismatchError();\n }\n el.textContent = vnode.children;\n }\n }\n if (props) {\n if (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__ || forcePatch || hasDynamicProps || !optimized || patchFlag & (16 | 32)) {\n const isCustomElement = el.tagName.includes(\"-\");\n for (const key in props) {\n if ((!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && // #11189 skip if this node has directives that have created hooks\n // as it could have mutated the DOM in any possible way\n !(dirs && dirs.some((d) => d.dir.created)) && propHasMismatch(el, key, props[key], vnode, parentComponent)) {\n logMismatchError();\n }\n if (forcePatch && (key.endsWith(\"value\") || key === \"indeterminate\") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers\n key[0] === \".\" || isCustomElement && !isReservedProp(key) || dynamicProps && dynamicProps.includes(key)) {\n patchProp(el, key, null, props[key], void 0, parentComponent);\n }\n }\n } else if (props.onClick) {\n patchProp(\n el,\n \"onClick\",\n null,\n props.onClick,\n void 0,\n parentComponent\n );\n } else if (patchFlag & 4 && isReactive(props.style)) {\n for (const key in props.style) props.style[key];\n }\n }\n let vnodeHooks;\n if (vnodeHooks = props && props.onVnodeBeforeMount) {\n invokeVNodeHook(vnodeHooks, parentComponent, vnode);\n }\n if (dirs) {\n invokeDirectiveHook(vnode, null, parentComponent, \"beforeMount\");\n }\n if ((vnodeHooks = props && props.onVnodeMounted) || dirs || needCallTransitionHooks) {\n queueEffectWithSuspense(() => {\n vnodeHooks && invokeVNodeHook(vnodeHooks, parentComponent, vnode);\n needCallTransitionHooks && transition.enter(el);\n dirs && invokeDirectiveHook(vnode, null, parentComponent, \"mounted\");\n }, parentSuspense);\n }\n }\n return el.nextSibling;\n };\n const hydrateChildren = (node, parentVNode, container, parentComponent, parentSuspense, slotScopeIds, optimized) => {\n optimized = optimized || !!parentVNode.dynamicChildren;\n const children = parentVNode.children;\n const l = children.length;\n let hasCheckedMismatch = false;\n for (let i = 0; i < l; i++) {\n const vnode = optimized ? children[i] : children[i] = normalizeVNode(children[i]);\n const isText = vnode.type === Text;\n if (node) {\n if (isText && !optimized) {\n if (i + 1 < l && normalizeVNode(children[i + 1]).type === Text) {\n insert(\n createText(\n node.data.slice(vnode.children.length)\n ),\n container,\n nextSibling(node)\n );\n node.data = vnode.children;\n }\n }\n node = hydrateNode(\n node,\n vnode,\n parentComponent,\n parentSuspense,\n slotScopeIds,\n optimized\n );\n } else if (isText && !vnode.children) {\n insert(vnode.el = createText(\"\"), container);\n } else {\n if (!hasCheckedMismatch) {\n hasCheckedMismatch = true;\n if (!isMismatchAllowed(container, 1 /* CHILDREN */)) {\n (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(\n `Hydration children mismatch on`,\n container,\n `\nServer rendered element contains fewer child nodes than client vdom.`\n );\n logMismatchError();\n }\n }\n patch(\n null,\n vnode,\n container,\n null,\n parentComponent,\n parentSuspense,\n getContainerType(container),\n slotScopeIds\n );\n }\n }\n return node;\n };\n const hydrateFragment = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => {\n const { slotScopeIds: fragmentSlotScopeIds } = vnode;\n if (fragmentSlotScopeIds) {\n slotScopeIds = slotScopeIds ? slotScopeIds.concat(fragmentSlotScopeIds) : fragmentSlotScopeIds;\n }\n const container = parentNode(node);\n const next = hydrateChildren(\n nextSibling(node),\n vnode,\n container,\n parentComponent,\n parentSuspense,\n slotScopeIds,\n optimized\n );\n if (next && isComment(next) && next.data === \"]\") {\n return nextSibling(vnode.anchor = next);\n } else {\n logMismatchError();\n insert(vnode.anchor = createComment(`]`), container, next);\n return next;\n }\n };\n const handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => {\n if (!isNodeMismatchAllowed(node, vnode)) {\n (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(\n `Hydration node mismatch:\n- rendered on server:`,\n node,\n node.nodeType === 3 ? `(text)` : isComment(node) && node.data === \"[\" ? `(start of fragment)` : ``,\n `\n- expected on client:`,\n vnode.type\n );\n logMismatchError();\n }\n vnode.el = null;\n if (isFragment) {\n const end = locateClosingAnchor(node);\n while (true) {\n const next2 = nextSibling(node);\n if (next2 && next2 !== end) {\n remove(next2);\n } else {\n break;\n }\n }\n }\n const next = nextSibling(node);\n const container = parentNode(node);\n remove(node);\n patch(\n null,\n vnode,\n container,\n next,\n parentComponent,\n parentSuspense,\n getContainerType(container),\n slotScopeIds\n );\n if (parentComponent) {\n parentComponent.vnode.el = vnode.el;\n updateHOCHostEl(parentComponent, vnode.el);\n }\n return next;\n };\n const locateClosingAnchor = (node, open = \"[\", close = \"]\") => {\n let match = 0;\n while (node) {\n node = nextSibling(node);\n if (node && isComment(node)) {\n if (node.data === open) match++;\n if (node.data === close) {\n if (match === 0) {\n return nextSibling(node);\n } else {\n match--;\n }\n }\n }\n }\n return node;\n };\n const replaceNode = (newNode, oldNode, parentComponent) => {\n const parentNode2 = oldNode.parentNode;\n if (parentNode2) {\n parentNode2.replaceChild(newNode, oldNode);\n }\n let parent = parentComponent;\n while (parent) {\n if (parent.vnode.el === oldNode) {\n parent.vnode.el = parent.subTree.el = newNode;\n }\n parent = parent.parent;\n }\n };\n const isTemplateNode = (node) => {\n return node.nodeType === 1 && node.tagName === \"TEMPLATE\";\n };\n return [hydrate, hydrateNode];\n}\nfunction propHasMismatch(el, key, clientValue, vnode, instance) {\n let mismatchType;\n let mismatchKey;\n let actual;\n let expected;\n if (key === \"class\") {\n if (el.$cls) {\n actual = el.$cls;\n delete el.$cls;\n } else {\n actual = el.getAttribute(\"class\");\n }\n expected = normalizeClass(clientValue);\n if (!isSetEqual(toClassSet(actual || \"\"), toClassSet(expected))) {\n mismatchType = 2 /* CLASS */;\n mismatchKey = `class`;\n }\n } else if (key === \"style\") {\n actual = el.getAttribute(\"style\") || \"\";\n expected = isString(clientValue) ? clientValue : stringifyStyle(normalizeStyle(clientValue));\n const actualMap = toStyleMap(actual);\n const expectedMap = toStyleMap(expected);\n if (vnode.dirs) {\n for (const { dir, value } of vnode.dirs) {\n if (dir.name === \"show\" && !value) {\n expectedMap.set(\"display\", \"none\");\n }\n }\n }\n if (instance) {\n resolveCssVars(instance, vnode, expectedMap);\n }\n if (!isMapEqual(actualMap, expectedMap)) {\n mismatchType = 3 /* STYLE */;\n mismatchKey = \"style\";\n }\n } else if (el instanceof SVGElement && isKnownSvgAttr(key) || el instanceof HTMLElement && (isBooleanAttr(key) || isKnownHtmlAttr(key))) {\n if (isBooleanAttr(key)) {\n actual = el.hasAttribute(key);\n expected = includeBooleanAttr(clientValue);\n } else if (clientValue == null) {\n actual = el.hasAttribute(key);\n expected = false;\n } else {\n if (el.hasAttribute(key)) {\n actual = el.getAttribute(key);\n } else if (key === \"value\" && el.tagName === \"TEXTAREA\") {\n actual = el.value;\n } else {\n actual = false;\n }\n expected = isRenderableAttrValue(clientValue) ? String(clientValue) : false;\n }\n if (actual !== expected) {\n mismatchType = 4 /* ATTRIBUTE */;\n mismatchKey = key;\n }\n }\n if (mismatchType != null && !isMismatchAllowed(el, mismatchType)) {\n const format = (v) => v === false ? `(not rendered)` : `${mismatchKey}=\"${v}\"`;\n const preSegment = `Hydration ${MismatchTypeString[mismatchType]} mismatch on`;\n const postSegment = `\n - rendered on server: ${format(actual)}\n - expected on client: ${format(expected)}\n Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.\n You should fix the source of the mismatch.`;\n {\n warn$1(preSegment, el, postSegment);\n }\n return true;\n }\n return false;\n}\nfunction toClassSet(str) {\n return new Set(str.trim().split(/\\s+/));\n}\nfunction isSetEqual(a, b) {\n if (a.size !== b.size) {\n return false;\n }\n for (const s of a) {\n if (!b.has(s)) {\n return false;\n }\n }\n return true;\n}\nfunction toStyleMap(str) {\n const styleMap = /* @__PURE__ */ new Map();\n for (const item of str.split(\";\")) {\n let [key, value] = item.split(\":\");\n key = key.trim();\n value = value && value.trim();\n if (key && value) {\n styleMap.set(key, value);\n }\n }\n return styleMap;\n}\nfunction isMapEqual(a, b) {\n if (a.size !== b.size) {\n return false;\n }\n for (const [key, value] of a) {\n if (value !== b.get(key)) {\n return false;\n }\n }\n return true;\n}\nfunction resolveCssVars(instance, vnode, expectedMap) {\n const root = instance.subTree;\n if (instance.getCssVars && (vnode === root || root && root.type === Fragment && root.children.includes(vnode))) {\n const cssVars = instance.getCssVars();\n for (const key in cssVars) {\n const value = normalizeCssVarValue(cssVars[key]);\n expectedMap.set(`--${getEscapedCssVarName(key, false)}`, value);\n }\n }\n if (vnode === root && instance.parent) {\n resolveCssVars(instance.parent, instance.vnode, expectedMap);\n }\n}\nconst allowMismatchAttr = \"data-allow-mismatch\";\nconst MismatchTypeString = {\n [0 /* TEXT */]: \"text\",\n [1 /* CHILDREN */]: \"children\",\n [2 /* CLASS */]: \"class\",\n [3 /* STYLE */]: \"style\",\n [4 /* ATTRIBUTE */]: \"attribute\"\n};\nfunction isMismatchAllowed(el, allowedType) {\n if (allowedType === 0 /* TEXT */ || allowedType === 1 /* CHILDREN */) {\n while (el && !el.hasAttribute(allowMismatchAttr)) {\n el = el.parentElement;\n }\n }\n return isMismatchAllowedByAttr(\n el && el.getAttribute(allowMismatchAttr),\n allowedType\n );\n}\nfunction isMismatchAllowedByAttr(allowedAttr, allowedType) {\n if (allowedAttr == null) {\n return false;\n } else if (allowedAttr === \"\") {\n return true;\n } else {\n const list = allowedAttr.split(\",\");\n if (allowedType === 0 /* TEXT */ && list.includes(\"children\")) {\n return true;\n }\n return list.includes(MismatchTypeString[allowedType]);\n }\n}\nfunction isNodeMismatchAllowed(node, vnode) {\n return isMismatchAllowed(node.parentElement, 1 /* CHILDREN */) || isMismatchAllowedByNode(node) || isMismatchAllowedByVNode(vnode);\n}\nfunction isMismatchAllowedByNode(node) {\n return node.nodeType === 1 && isMismatchAllowedByAttr(\n node.getAttribute(allowMismatchAttr),\n 1 /* CHILDREN */\n );\n}\nfunction isMismatchAllowedByVNode({ props }) {\n const allowedAttr = props && props[allowMismatchAttr];\n return typeof allowedAttr === \"string\" && isMismatchAllowedByAttr(allowedAttr, 1 /* CHILDREN */);\n}\n\nconst requestIdleCallback = getGlobalThis().requestIdleCallback || ((cb) => setTimeout(cb, 1));\nconst cancelIdleCallback = getGlobalThis().cancelIdleCallback || ((id) => clearTimeout(id));\nconst hydrateOnIdle = (timeout = 1e4) => (hydrate) => {\n const id = requestIdleCallback(hydrate, { timeout });\n return () => cancelIdleCallback(id);\n};\nfunction elementIsVisibleInViewport(el) {\n const { top, left, bottom, right } = el.getBoundingClientRect();\n const { innerHeight, innerWidth } = window;\n return (top > 0 && top < innerHeight || bottom > 0 && bottom < innerHeight) && (left > 0 && left < innerWidth || right > 0 && right < innerWidth);\n}\nconst hydrateOnVisible = (opts) => (hydrate, forEach) => {\n const ob = new IntersectionObserver((entries) => {\n for (const e of entries) {\n if (!e.isIntersecting) continue;\n ob.disconnect();\n hydrate();\n break;\n }\n }, opts);\n forEach((el) => {\n if (!(el instanceof Element)) return;\n if (elementIsVisibleInViewport(el)) {\n hydrate();\n ob.disconnect();\n return false;\n }\n ob.observe(el);\n });\n return () => ob.disconnect();\n};\nconst hydrateOnMediaQuery = (query) => (hydrate) => {\n if (query) {\n const mql = matchMedia(query);\n if (mql.matches) {\n hydrate();\n } else {\n mql.addEventListener(\"change\", hydrate, { once: true });\n return () => mql.removeEventListener(\"change\", hydrate);\n }\n }\n};\nconst hydrateOnInteraction = (interactions = []) => (hydrate, forEach) => {\n if (isString(interactions)) interactions = [interactions];\n let hasHydrated = false;\n const doHydrate = (e) => {\n if (!hasHydrated) {\n hasHydrated = true;\n teardown();\n hydrate();\n e.target.dispatchEvent(new e.constructor(e.type, e));\n }\n };\n const teardown = () => {\n forEach((el) => {\n for (const i of interactions) {\n el.removeEventListener(i, doHydrate);\n }\n });\n };\n forEach((el) => {\n for (const i of interactions) {\n el.addEventListener(i, doHydrate, { once: true });\n }\n });\n return teardown;\n};\nfunction forEachElement(node, cb) {\n if (isComment(node) && node.data === \"[\") {\n let depth = 1;\n let next = node.nextSibling;\n while (next) {\n if (next.nodeType === 1) {\n const result = cb(next);\n if (result === false) {\n break;\n }\n } else if (isComment(next)) {\n if (next.data === \"]\") {\n if (--depth === 0) break;\n } else if (next.data === \"[\") {\n depth++;\n }\n }\n next = next.nextSibling;\n }\n } else {\n cb(node);\n }\n}\n\nconst isAsyncWrapper = (i) => !!i.type.__asyncLoader;\n// @__NO_SIDE_EFFECTS__\nfunction defineAsyncComponent(source) {\n if (isFunction(source)) {\n source = { loader: source };\n }\n const {\n loader,\n loadingComponent,\n errorComponent,\n delay = 200,\n hydrate: hydrateStrategy,\n timeout,\n // undefined = never times out\n suspensible = true,\n onError: userOnError\n } = source;\n let pendingRequest = null;\n let resolvedComp;\n let retries = 0;\n const retry = () => {\n retries++;\n pendingRequest = null;\n return load();\n };\n const load = () => {\n let thisRequest;\n return pendingRequest || (thisRequest = pendingRequest = loader().catch((err) => {\n err = err instanceof Error ? err : new Error(String(err));\n if (userOnError) {\n return new Promise((resolve, reject) => {\n const userRetry = () => resolve(retry());\n const userFail = () => reject(err);\n userOnError(err, userRetry, userFail, retries + 1);\n });\n } else {\n throw err;\n }\n }).then((comp) => {\n if (thisRequest !== pendingRequest && pendingRequest) {\n return pendingRequest;\n }\n if (!!(process.env.NODE_ENV !== \"production\") && !comp) {\n warn$1(\n `Async component loader resolved to undefined. If you are using retry(), make sure to return its return value.`\n );\n }\n if (comp && (comp.__esModule || comp[Symbol.toStringTag] === \"Module\")) {\n comp = comp.default;\n }\n if (!!(process.env.NODE_ENV !== \"production\") && comp && !isObject(comp) && !isFunction(comp)) {\n throw new Error(`Invalid async component load result: ${comp}`);\n }\n resolvedComp = comp;\n return comp;\n }));\n };\n return defineComponent({\n name: \"AsyncComponentWrapper\",\n __asyncLoader: load,\n __asyncHydrate(el, instance, hydrate) {\n let patched = false;\n (instance.bu || (instance.bu = [])).push(() => patched = true);\n const performHydrate = () => {\n if (patched) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(\n `Skipping lazy hydration for component '${getComponentName(resolvedComp) || resolvedComp.__file}': it was updated before lazy hydration performed.`\n );\n }\n return;\n }\n hydrate();\n };\n const doHydrate = hydrateStrategy ? () => {\n const teardown = hydrateStrategy(\n performHydrate,\n (cb) => forEachElement(el, cb)\n );\n if (teardown) {\n (instance.bum || (instance.bum = [])).push(teardown);\n }\n } : performHydrate;\n if (resolvedComp) {\n doHydrate();\n } else {\n load().then(() => !instance.isUnmounted && doHydrate());\n }\n },\n get __asyncResolved() {\n return resolvedComp;\n },\n setup() {\n const instance = currentInstance;\n markAsyncBoundary(instance);\n if (resolvedComp) {\n return () => createInnerComp(resolvedComp, instance);\n }\n const onError = (err) => {\n pendingRequest = null;\n handleError(\n err,\n instance,\n 13,\n !errorComponent\n );\n };\n if (suspensible && instance.suspense || isInSSRComponentSetup) {\n return load().then((comp) => {\n return () => createInnerComp(comp, instance);\n }).catch((err) => {\n onError(err);\n return () => errorComponent ? createVNode(errorComponent, {\n error: err\n }) : null;\n });\n }\n const loaded = ref(false);\n const error = ref();\n const delayed = ref(!!delay);\n let timeoutTimer;\n let delayTimer;\n onUnmounted(() => {\n if (timeoutTimer != null) clearTimeout(timeoutTimer);\n if (delayTimer != null) clearTimeout(delayTimer);\n });\n if (delay) {\n delayTimer = setTimeout(() => {\n if (instance.isUnmounted) return;\n delayed.value = false;\n }, delay);\n }\n if (timeout != null) {\n timeoutTimer = setTimeout(() => {\n if (instance.isUnmounted) return;\n if (!loaded.value && !error.value) {\n const err = new Error(\n `Async component timed out after ${timeout}ms.`\n );\n onError(err);\n error.value = err;\n }\n }, timeout);\n }\n load().then(() => {\n if (instance.isUnmounted) return;\n loaded.value = true;\n if (instance.parent && isKeepAlive(instance.parent.vnode)) {\n instance.parent.update();\n }\n }).catch((err) => {\n if (instance.isUnmounted) {\n pendingRequest = null;\n return;\n }\n onError(err);\n error.value = err;\n });\n return () => {\n if (loaded.value && resolvedComp) {\n return createInnerComp(resolvedComp, instance);\n } else if (error.value && errorComponent) {\n return createVNode(errorComponent, {\n error: error.value\n });\n } else if (loadingComponent && !delayed.value) {\n return createInnerComp(\n loadingComponent,\n instance\n );\n }\n };\n }\n });\n}\nfunction createInnerComp(comp, parent) {\n const { ref: ref2, props, children, ce } = parent.vnode;\n const vnode = createVNode(comp, props, children);\n vnode.ref = ref2;\n vnode.ce = ce;\n delete parent.vnode.ce;\n return vnode;\n}\n\nconst isKeepAlive = (vnode) => vnode.type.__isKeepAlive;\nconst KeepAliveImpl = {\n name: `KeepAlive`,\n // Marker for special handling inside the renderer. We are not using a ===\n // check directly on KeepAlive in the renderer, because importing it directly\n // would prevent it from being tree-shaken.\n __isKeepAlive: true,\n props: {\n include: [String, RegExp, Array],\n exclude: [String, RegExp, Array],\n max: [String, Number]\n },\n setup(props, { slots }) {\n const instance = getCurrentInstance();\n const sharedContext = instance.ctx;\n if (!sharedContext.renderer) {\n return () => {\n const children = slots.default && slots.default();\n return children && children.length === 1 ? children[0] : children;\n };\n }\n const cache = /* @__PURE__ */ new Map();\n const keys = /* @__PURE__ */ new Set();\n let current = null;\n if (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_DEVTOOLS__) {\n instance.__v_cache = cache;\n }\n const parentSuspense = instance.suspense;\n const {\n renderer: {\n p: patch,\n m: move,\n um: _unmount,\n o: { createElement }\n }\n } = sharedContext;\n const storageContainer = createElement(\"div\");\n sharedContext.activate = (vnode, container, anchor, namespace, optimized) => {\n const instance2 = vnode.component;\n move(vnode, container, anchor, 0, parentSuspense);\n patch(\n instance2.vnode,\n vnode,\n container,\n anchor,\n instance2,\n parentSuspense,\n namespace,\n vnode.slotScopeIds,\n optimized\n );\n queuePostRenderEffect(() => {\n instance2.isDeactivated = false;\n if (instance2.a) {\n invokeArrayFns(instance2.a);\n }\n const vnodeHook = vnode.props && vnode.props.onVnodeMounted;\n if (vnodeHook) {\n invokeVNodeHook(vnodeHook, instance2.parent, vnode);\n }\n }, parentSuspense);\n if (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_DEVTOOLS__) {\n devtoolsComponentAdded(instance2);\n }\n };\n sharedContext.deactivate = (vnode) => {\n const instance2 = vnode.component;\n invalidateMount(instance2.m);\n invalidateMount(instance2.a);\n move(vnode, storageContainer, null, 1, parentSuspense);\n queuePostRenderEffect(() => {\n if (instance2.da) {\n invokeArrayFns(instance2.da);\n }\n const vnodeHook = vnode.props && vnode.props.onVnodeUnmounted;\n if (vnodeHook) {\n invokeVNodeHook(vnodeHook, instance2.parent, vnode);\n }\n instance2.isDeactivated = true;\n }, parentSuspense);\n if (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_DEVTOOLS__) {\n devtoolsComponentAdded(instance2);\n }\n if (!!(process.env.NODE_ENV !== \"production\") && true) {\n instance2.__keepAliveStorageContainer = storageContainer;\n }\n };\n function unmount(vnode) {\n resetShapeFlag(vnode);\n _unmount(vnode, instance, parentSuspense, true);\n }\n function pruneCache(filter) {\n cache.forEach((vnode, key) => {\n const name = getComponentName(\n isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : vnode.type\n );\n if (name && !filter(name)) {\n pruneCacheEntry(key);\n }\n });\n }\n function pruneCacheEntry(key) {\n const cached = cache.get(key);\n if (cached && (!current || !isSameVNodeType(cached, current))) {\n unmount(cached);\n } else if (current) {\n resetShapeFlag(current);\n }\n cache.delete(key);\n keys.delete(key);\n }\n watch(\n () => [props.include, props.exclude],\n ([include, exclude]) => {\n include && pruneCache((name) => matches(include, name));\n exclude && pruneCache((name) => !matches(exclude, name));\n },\n // prune post-render after `current` has been updated\n { flush: \"post\", deep: true }\n );\n let pendingCacheKey = null;\n const cacheSubtree = () => {\n if (pendingCacheKey != null) {\n if (isSuspense(instance.subTree.type)) {\n queuePostRenderEffect(() => {\n cache.set(pendingCacheKey, getInnerChild(instance.subTree));\n }, instance.subTree.suspense);\n } else {\n cache.set(pendingCacheKey, getInnerChild(instance.subTree));\n }\n }\n };\n onMounted(cacheSubtree);\n onUpdated(cacheSubtree);\n onBeforeUnmount(() => {\n cache.forEach((cached) => {\n const { subTree, suspense } = instance;\n const vnode = getInnerChild(subTree);\n if (cached.type === vnode.type && cached.key === vnode.key) {\n resetShapeFlag(vnode);\n const da = vnode.component.da;\n da && queuePostRenderEffect(da, suspense);\n return;\n }\n unmount(cached);\n });\n });\n return () => {\n pendingCacheKey = null;\n if (!slots.default) {\n return current = null;\n }\n const children = slots.default();\n const rawVNode = children[0];\n if (children.length > 1) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(`KeepAlive should contain exactly one component child.`);\n }\n current = null;\n return children;\n } else if (!isVNode(rawVNode) || !(rawVNode.shapeFlag & 4) && !(rawVNode.shapeFlag & 128)) {\n current = null;\n return rawVNode;\n }\n let vnode = getInnerChild(rawVNode);\n if (vnode.type === Comment) {\n current = null;\n return vnode;\n }\n const comp = vnode.type;\n const name = getComponentName(\n isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : comp\n );\n const { include, exclude, max } = props;\n if (include && (!name || !matches(include, name)) || exclude && name && matches(exclude, name)) {\n vnode.shapeFlag &= -257;\n current = vnode;\n return rawVNode;\n }\n const key = vnode.key == null ? comp : vnode.key;\n const cachedVNode = cache.get(key);\n if (vnode.el) {\n vnode = cloneVNode(vnode);\n if (rawVNode.shapeFlag & 128) {\n rawVNode.ssContent = vnode;\n }\n }\n pendingCacheKey = key;\n if (cachedVNode) {\n vnode.el = cachedVNode.el;\n vnode.component = cachedVNode.component;\n if (vnode.transition) {\n setTransitionHooks(vnode, vnode.transition);\n }\n vnode.shapeFlag |= 512;\n keys.delete(key);\n keys.add(key);\n } else {\n keys.add(key);\n if (max && keys.size > parseInt(max, 10)) {\n pruneCacheEntry(keys.values().next().value);\n }\n }\n vnode.shapeFlag |= 256;\n current = vnode;\n return isSuspense(rawVNode.type) ? rawVNode : vnode;\n };\n }\n};\nconst KeepAlive = KeepAliveImpl;\nfunction matches(pattern, name) {\n if (isArray(pattern)) {\n return pattern.some((p) => matches(p, name));\n } else if (isString(pattern)) {\n return pattern.split(\",\").includes(name);\n } else if (isRegExp(pattern)) {\n pattern.lastIndex = 0;\n return pattern.test(name);\n }\n return false;\n}\nfunction onActivated(hook, target) {\n registerKeepAliveHook(hook, \"a\", target);\n}\nfunction onDeactivated(hook, target) {\n registerKeepAliveHook(hook, \"da\", target);\n}\nfunction registerKeepAliveHook(hook, type, target = currentInstance) {\n const wrappedHook = hook.__wdc || (hook.__wdc = () => {\n let current = target;\n while (current) {\n if (current.isDeactivated) {\n return;\n }\n current = current.parent;\n }\n return hook();\n });\n injectHook(type, wrappedHook, target);\n if (target) {\n let current = target.parent;\n while (current && current.parent) {\n if (isKeepAlive(current.parent.vnode)) {\n injectToKeepAliveRoot(wrappedHook, type, target, current);\n }\n current = current.parent;\n }\n }\n}\nfunction injectToKeepAliveRoot(hook, type, target, keepAliveRoot) {\n const injected = injectHook(\n type,\n hook,\n keepAliveRoot,\n true\n /* prepend */\n );\n onUnmounted(() => {\n remove(keepAliveRoot[type], injected);\n }, target);\n}\nfunction resetShapeFlag(vnode) {\n vnode.shapeFlag &= -257;\n vnode.shapeFlag &= -513;\n}\nfunction getInnerChild(vnode) {\n return vnode.shapeFlag & 128 ? vnode.ssContent : vnode;\n}\n\nfunction injectHook(type, hook, target = currentInstance, prepend = false) {\n if (target) {\n const hooks = target[type] || (target[type] = []);\n const wrappedHook = hook.__weh || (hook.__weh = (...args) => {\n pauseTracking();\n const reset = setCurrentInstance(target);\n const res = callWithAsyncErrorHandling(hook, target, type, args);\n reset();\n resetTracking();\n return res;\n });\n if (prepend) {\n hooks.unshift(wrappedHook);\n } else {\n hooks.push(wrappedHook);\n }\n return wrappedHook;\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n const apiName = toHandlerKey(ErrorTypeStrings$1[type].replace(/ hook$/, \"\"));\n warn$1(\n `${apiName} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup().` + (` If you are using async setup(), make sure to register lifecycle hooks before the first await statement.` )\n );\n }\n}\nconst createHook = (lifecycle) => (hook, target = currentInstance) => {\n if (!isInSSRComponentSetup || lifecycle === \"sp\") {\n injectHook(lifecycle, (...args) => hook(...args), target);\n }\n};\nconst onBeforeMount = createHook(\"bm\");\nconst onMounted = createHook(\"m\");\nconst onBeforeUpdate = createHook(\n \"bu\"\n);\nconst onUpdated = createHook(\"u\");\nconst onBeforeUnmount = createHook(\n \"bum\"\n);\nconst onUnmounted = createHook(\"um\");\nconst onServerPrefetch = createHook(\n \"sp\"\n);\nconst onRenderTriggered = createHook(\"rtg\");\nconst onRenderTracked = createHook(\"rtc\");\nfunction onErrorCaptured(hook, target = currentInstance) {\n injectHook(\"ec\", hook, target);\n}\n\nconst COMPONENTS = \"components\";\nconst DIRECTIVES = \"directives\";\nfunction resolveComponent(name, maybeSelfReference) {\n return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;\n}\nconst NULL_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol.for(\"v-ndc\");\nfunction resolveDynamicComponent(component) {\n if (isString(component)) {\n return resolveAsset(COMPONENTS, component, false) || component;\n } else {\n return component || NULL_DYNAMIC_COMPONENT;\n }\n}\nfunction resolveDirective(name) {\n return resolveAsset(DIRECTIVES, name);\n}\nfunction resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {\n const instance = currentRenderingInstance || currentInstance;\n if (instance) {\n const Component = instance.type;\n if (type === COMPONENTS) {\n const selfName = getComponentName(\n Component,\n false\n );\n if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) {\n return Component;\n }\n }\n const res = (\n // local registration\n // check instance[type] first which is resolved for options API\n resolve(instance[type] || Component[type], name) || // global registration\n resolve(instance.appContext[type], name)\n );\n if (!res && maybeSelfReference) {\n return Component;\n }\n if (!!(process.env.NODE_ENV !== \"production\") && warnMissing && !res) {\n const extra = type === COMPONENTS ? `\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : ``;\n warn$1(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);\n }\n return res;\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(\n `resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().`\n );\n }\n}\nfunction resolve(registry, name) {\n return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]);\n}\n\nfunction renderList(source, renderItem, cache, index) {\n let ret;\n const cached = cache && cache[index];\n const sourceIsArray = isArray(source);\n if (sourceIsArray || isString(source)) {\n const sourceIsReactiveArray = sourceIsArray && isReactive(source);\n let needsWrap = false;\n let isReadonlySource = false;\n if (sourceIsReactiveArray) {\n needsWrap = !isShallow(source);\n isReadonlySource = isReadonly(source);\n source = shallowReadArray(source);\n }\n ret = new Array(source.length);\n for (let i = 0, l = source.length; i < l; i++) {\n ret[i] = renderItem(\n needsWrap ? isReadonlySource ? toReadonly(toReactive(source[i])) : toReactive(source[i]) : source[i],\n i,\n void 0,\n cached && cached[i]\n );\n }\n } else if (typeof source === \"number\") {\n if (!!(process.env.NODE_ENV !== \"production\") && (!Number.isInteger(source) || source < 0)) {\n warn$1(\n `The v-for range expects a positive integer value but got ${source}.`\n );\n ret = [];\n } else {\n ret = new Array(source);\n for (let i = 0; i < source; i++) {\n ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]);\n }\n }\n } else if (isObject(source)) {\n if (source[Symbol.iterator]) {\n ret = Array.from(\n source,\n (item, i) => renderItem(item, i, void 0, cached && cached[i])\n );\n } else {\n const keys = Object.keys(source);\n ret = new Array(keys.length);\n for (let i = 0, l = keys.length; i < l; i++) {\n const key = keys[i];\n ret[i] = renderItem(source[key], key, i, cached && cached[i]);\n }\n }\n } else {\n ret = [];\n }\n if (cache) {\n cache[index] = ret;\n }\n return ret;\n}\n\nfunction createSlots(slots, dynamicSlots) {\n for (let i = 0; i < dynamicSlots.length; i++) {\n const slot = dynamicSlots[i];\n if (isArray(slot)) {\n for (let j = 0; j < slot.length; j++) {\n slots[slot[j].name] = slot[j].fn;\n }\n } else if (slot) {\n slots[slot.name] = slot.key ? (...args) => {\n const res = slot.fn(...args);\n if (res) res.key = slot.key;\n return res;\n } : slot.fn;\n }\n }\n return slots;\n}\n\nfunction renderSlot(slots, name, props = {}, fallback, noSlotted) {\n if (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce) {\n const hasProps = Object.keys(props).length > 0;\n if (name !== \"default\") props.name = name;\n return openBlock(), createBlock(\n Fragment,\n null,\n [createVNode(\"slot\", props, fallback && fallback())],\n hasProps ? -2 : 64\n );\n }\n let slot = slots[name];\n if (!!(process.env.NODE_ENV !== \"production\") && slot && slot.length > 1) {\n warn$1(\n `SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template.`\n );\n slot = () => [];\n }\n if (slot && slot._c) {\n slot._d = false;\n }\n openBlock();\n const validSlotContent = slot && ensureValidVNode(slot(props));\n const slotKey = props.key || // slot content array of a dynamic conditional slot may have a branch\n // key attached in the `createSlots` helper, respect that\n validSlotContent && validSlotContent.key;\n const rendered = createBlock(\n Fragment,\n {\n key: (slotKey && !isSymbol(slotKey) ? slotKey : `_${name}`) + // #7256 force differentiate fallback content from actual content\n (!validSlotContent && fallback ? \"_fb\" : \"\")\n },\n validSlotContent || (fallback ? fallback() : []),\n validSlotContent && slots._ === 1 ? 64 : -2\n );\n if (!noSlotted && rendered.scopeId) {\n rendered.slotScopeIds = [rendered.scopeId + \"-s\"];\n }\n if (slot && slot._c) {\n slot._d = true;\n }\n return rendered;\n}\nfunction ensureValidVNode(vnodes) {\n return vnodes.some((child) => {\n if (!isVNode(child)) return true;\n if (child.type === Comment) return false;\n if (child.type === Fragment && !ensureValidVNode(child.children))\n return false;\n return true;\n }) ? vnodes : null;\n}\n\nfunction toHandlers(obj, preserveCaseIfNecessary) {\n const ret = {};\n if (!!(process.env.NODE_ENV !== \"production\") && !isObject(obj)) {\n warn$1(`v-on with no argument expects an object value.`);\n return ret;\n }\n for (const key in obj) {\n ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = obj[key];\n }\n return ret;\n}\n\nconst getPublicInstance = (i) => {\n if (!i) return null;\n if (isStatefulComponent(i)) return getComponentPublicInstance(i);\n return getPublicInstance(i.parent);\n};\nconst publicPropertiesMap = (\n // Move PURE marker to new line to workaround compiler discarding it\n // due to type annotation\n /* @__PURE__ */ extend(/* @__PURE__ */ Object.create(null), {\n $: (i) => i,\n $el: (i) => i.vnode.el,\n $data: (i) => i.data,\n $props: (i) => !!(process.env.NODE_ENV !== \"production\") ? shallowReadonly(i.props) : i.props,\n $attrs: (i) => !!(process.env.NODE_ENV !== \"production\") ? shallowReadonly(i.attrs) : i.attrs,\n $slots: (i) => !!(process.env.NODE_ENV !== \"production\") ? shallowReadonly(i.slots) : i.slots,\n $refs: (i) => !!(process.env.NODE_ENV !== \"production\") ? shallowReadonly(i.refs) : i.refs,\n $parent: (i) => getPublicInstance(i.parent),\n $root: (i) => getPublicInstance(i.root),\n $host: (i) => i.ce,\n $emit: (i) => i.emit,\n $options: (i) => __VUE_OPTIONS_API__ ? resolveMergedOptions(i) : i.type,\n $forceUpdate: (i) => i.f || (i.f = () => {\n queueJob(i.update);\n }),\n $nextTick: (i) => i.n || (i.n = nextTick.bind(i.proxy)),\n $watch: (i) => __VUE_OPTIONS_API__ ? instanceWatch.bind(i) : NOOP\n })\n);\nconst isReservedPrefix = (key) => key === \"_\" || key === \"$\";\nconst hasSetupBinding = (state, key) => state !== EMPTY_OBJ && !state.__isScriptSetup && hasOwn(state, key);\nconst PublicInstanceProxyHandlers = {\n get({ _: instance }, key) {\n if (key === \"__v_skip\") {\n return true;\n }\n const { ctx, setupState, data, props, accessCache, type, appContext } = instance;\n if (!!(process.env.NODE_ENV !== \"production\") && key === \"__isVue\") {\n return true;\n }\n if (key[0] !== \"$\") {\n const n = accessCache[key];\n if (n !== void 0) {\n switch (n) {\n case 1 /* SETUP */:\n return setupState[key];\n case 2 /* DATA */:\n return data[key];\n case 4 /* CONTEXT */:\n return ctx[key];\n case 3 /* PROPS */:\n return props[key];\n }\n } else if (hasSetupBinding(setupState, key)) {\n accessCache[key] = 1 /* SETUP */;\n return setupState[key];\n } else if (__VUE_OPTIONS_API__ && data !== EMPTY_OBJ && hasOwn(data, key)) {\n accessCache[key] = 2 /* DATA */;\n return data[key];\n } else if (hasOwn(props, key)) {\n accessCache[key] = 3 /* PROPS */;\n return props[key];\n } else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) {\n accessCache[key] = 4 /* CONTEXT */;\n return ctx[key];\n } else if (!__VUE_OPTIONS_API__ || shouldCacheAccess) {\n accessCache[key] = 0 /* OTHER */;\n }\n }\n const publicGetter = publicPropertiesMap[key];\n let cssModule, globalProperties;\n if (publicGetter) {\n if (key === \"$attrs\") {\n track(instance.attrs, \"get\", \"\");\n !!(process.env.NODE_ENV !== \"production\") && markAttrsAccessed();\n } else if (!!(process.env.NODE_ENV !== \"production\") && key === \"$slots\") {\n track(instance, \"get\", key);\n }\n return publicGetter(instance);\n } else if (\n // css module (injected by vue-loader)\n (cssModule = type.__cssModules) && (cssModule = cssModule[key])\n ) {\n return cssModule;\n } else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) {\n accessCache[key] = 4 /* CONTEXT */;\n return ctx[key];\n } else if (\n // global properties\n globalProperties = appContext.config.globalProperties, hasOwn(globalProperties, key)\n ) {\n {\n return globalProperties[key];\n }\n } else if (!!(process.env.NODE_ENV !== \"production\") && currentRenderingInstance && (!isString(key) || // #1091 avoid internal isRef/isVNode checks on component instance leading\n // to infinite warning loop\n key.indexOf(\"__v\") !== 0)) {\n if (data !== EMPTY_OBJ && isReservedPrefix(key[0]) && hasOwn(data, key)) {\n warn$1(\n `Property ${JSON.stringify(\n key\n )} must be accessed via $data because it starts with a reserved character (\"$\" or \"_\") and is not proxied on the render context.`\n );\n } else if (instance === currentRenderingInstance) {\n warn$1(\n `Property ${JSON.stringify(key)} was accessed during render but is not defined on instance.`\n );\n }\n }\n },\n set({ _: instance }, key, value) {\n const { data, setupState, ctx } = instance;\n if (hasSetupBinding(setupState, key)) {\n setupState[key] = value;\n return true;\n } else if (!!(process.env.NODE_ENV !== \"production\") && setupState.__isScriptSetup && hasOwn(setupState, key)) {\n warn$1(`Cannot mutate `)\n whose queued resource event still fires in page scope after we throw.\n Clobber-safe reads; a doomed clobbered node's own attributes are\n irrelevant while its non-clobbered descendants are reached and scrubbed. */\n _neutralizeSubtree(root);\n const childNodes = getChildNodes(root);\n if (childNodes) {\n const snapshot = [];\n arrayForEach(childNodes, child => {\n arrayPush(snapshot, child);\n });\n arrayForEach(snapshot, child => {\n try {\n remove(child);\n } catch (_) {\n /* Best-effort teardown; a still-attached child is handled below */\n }\n });\n }\n const attributes = getAttributes(root);\n if (attributes) {\n for (let i = attributes.length - 1; i >= 0; --i) {\n const attribute = attributes[i];\n const name = attribute && attribute.name;\n if (typeof name === 'string') {\n try {\n root.removeAttribute(name);\n } catch (_) {\n /* Clobbered removeAttribute — ignore (fail-closed best effort) */\n }\n }\n }\n }\n };\n /**\n * _removeAttribute\n *\n * @param name an Attribute name\n * @param element a DOM node\n */\n const _removeAttribute = function _removeAttribute(name, element) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: element.getAttributeNode(name),\n from: element\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: element\n });\n }\n element.removeAttribute(name);\n // We void attribute values for unremovable \"is\" attributes\n if (name === 'is') {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(element);\n } catch (_) {}\n } else {\n try {\n element.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n /**\n * _stripDisallowedAttributes\n *\n * Removes every attribute the active configuration does not allow from a\n * single element, using the same allowlist as the main attribute pass (so\n * `on*` handlers go, but no `/^on/` blocklist is introduced). Used only to\n * neutralise nodes that are being discarded from an in-place tree.\n *\n * @param element the element to strip\n */\n const _stripDisallowedAttributes = function _stripDisallowedAttributes(element) {\n const attributes = getAttributes(element);\n if (!attributes) {\n return;\n }\n for (let i = attributes.length - 1; i >= 0; --i) {\n const attribute = attributes[i];\n const name = attribute && attribute.name;\n if (typeof name !== 'string' || ALLOWED_ATTR[transformCaseFunc(name)]) {\n continue;\n }\n try {\n element.removeAttribute(name);\n } catch (_) {\n /* Clobbered removeAttribute on a doomed node — ignore */\n }\n }\n };\n /**\n * _neutralizeSubtree\n *\n * Completes the audit-5 F1 fix across every removal path. The KEEP_CONTENT\n * move-hoist neutralises only disallowed-tag removals; clobber, mXSS-canary,\n * namespace, comment, processing-instruction and KEEP_CONTENT:false removals\n * all drop their subtree wholesale via `_forceRemove`. On the IN_PLACE path\n * those dropped nodes are detached from the caller's LIVE tree but a\n * handler-bearing original among them (an ``/`