__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
/**
* @vue/shared v3.5.22
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function makeMap(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,isOn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),isModelListener=e=>e.startsWith("onUpdate:"),extend=Object.assign,remove=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},hasOwnProperty$1=Object.prototype.hasOwnProperty,hasOwn=(e,t)=>hasOwnProperty$1.call(e,t),isArray=Array.isArray,isMap=e=>toTypeString(e)==="[object Map]",isSet=e=>toTypeString(e)==="[object Set]",isFunction=e=>typeof e=="function",isString=e=>typeof e=="string",isSymbol=e=>typeof e=="symbol",isObject$1=e=>e!==null&&typeof e=="object",isPromise$1=e=>(isObject$1(e)||isFunction(e))&&isFunction(e.then)&&isFunction(e.catch),objectToString=Object.prototype.toString,toTypeString=e=>objectToString.call(e),toRawType=e=>toTypeString(e).slice(8,-1),isPlainObject=e=>toTypeString(e)==="[object Object]",isIntegerKey=e=>isString(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},camelizeRE=/-\w/g,camelize=cacheStringFunction(e=>e.replace(camelizeRE,t=>t.slice(1).toUpperCase())),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(e=>e.replace(hyphenateRE,"-$1").toLowerCase()),capitalize=cacheStringFunction(e=>e.charAt(0).toUpperCase()+e.slice(1)),toHandlerKey=cacheStringFunction(e=>e?"on"+capitalize(e):""),hasChanged=(e,t)=>!Object.is(e,t),invokeArrayFns=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];for(let i=0;i<t.length;i++)t[i](...r)},def=function(t,n,r,s){s===void 0&&(s=!1),Object.defineProperty(t,n,{configurable:!0,enumerable:!1,writable:s,value:r})},looseToNumber=e=>{const t=parseFloat(e);return isNaN(t)?e:t},toNumber=e=>{const t=isString(e)?Number(e):NaN;return isNaN(t)?e:t};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function normalizeStyle(e){if(isArray(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=isString(r)?parseStringStyle(r):normalizeStyle(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(isString(e)||isObject$1(e))return e}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(e){const t={};return e.replace(styleCommentRE,"").split(listDelimiterRE).forEach(n=>{if(n){const r=n.split(propertyDelimiterRE);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function normalizeClass(e){let t="";if(isString(e))t=e;else if(isArray(e))for(let n=0;n<e.length;n++){const r=normalizeClass(e[n]);r&&(t+=r+" ")}else if(isObject$1(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(e){return!!e||e===""}const isRef$1=e=>!!(e&&e.__v_isRef===!0),toDisplayString=e=>isString(e)?e:e==null?"":isArray(e)||isObject$1(e)&&(e.toString===objectToString||!isFunction(e.toString))?isRef$1(e)?toDisplayString(e.value):JSON.stringify(e,replacer,2):String(e),replacer=(e,t)=>isRef$1(t)?replacer(e,t.value):isMap(t)?{["Map("+t.size+")"]:[...t.entries()].reduce((n,r,s)=>{let[i,o]=r;return n[stringifySymbol(i,s)+" =>"]=o,n},{})}:isSet(t)?{["Set("+t.size+")"]:[...t.values()].map(n=>stringifySymbol(n))}:isSymbol(t)?stringifySymbol(t):isObject$1(t)&&!isArray(t)&&!isPlainObject(t)?String(t):t,stringifySymbol=function(t,n){n===void 0&&(n="");var r;return isSymbol(t)?"Symbol("+((r=t.description)!=null?r:n)+")":t};/**
* @vue/reactivity v3.5.22
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let activeEffectScope;class EffectScope{constructor(t){t===void 0&&(t=!1),this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=activeEffectScope,!t&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=activeEffectScope;try{return activeEffectScope=this,t()}finally{activeEffectScope=n}}}on(){++this._on===1&&(this.prevScope=activeEffectScope,activeEffectScope=this)}off(){this._on>0&&--this._on===0&&(activeEffectScope=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function effectScope(e){return new EffectScope(e)}function getCurrentScope(){return activeEffectScope}let activeSub;const pausedQueueEffects=new WeakSet;class ReactiveEffect{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,activeEffectScope&&activeEffectScope.active&&activeEffectScope.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,pausedQueueEffects.has(this)&&(pausedQueueEffects.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||batch(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,cleanupEffect(this),prepareDeps(this);const t=activeSub,n=shouldTrack;activeSub=this,shouldTrack=!0;try{return this.fn()}finally{cleanupDeps(this),activeSub=t,shouldTrack=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)removeSub(t);this.deps=this.depsTail=void 0,cleanupEffect(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?pausedQueueEffects.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){isDirty(this)&&this.run()}get dirty(){return isDirty(this)}}let batchDepth=0,batchedSub,batchedComputed;function batch(e,t){if(t===void 0&&(t=!1),e.flags|=8,t){e.next=batchedComputed,batchedComputed=e;return}e.next=batchedSub,batchedSub=e}function startBatch(){batchDepth++}function endBatch(){if(--batchDepth>0)return;if(batchedComputed){let t=batchedComputed;for(batchedComputed=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;batchedSub;){let t=batchedSub;for(batchedSub=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function prepareDeps(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function cleanupDeps(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),removeSub(r),removeDep(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function isDirty(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(refreshComputed(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function refreshComputed(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===globalVersion)||(e.globalVersion=globalVersion,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!isDirty(e))))return;e.flags|=2;const t=e.dep,n=activeSub,r=shouldTrack;activeSub=e,shouldTrack=!0;try{prepareDeps(e);const s=e.fn(e._value);(t.version===0||hasChanged(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{activeSub=n,shouldTrack=r,cleanupDeps(e),e.flags&=-3}}function removeSub(e,t){t===void 0&&(t=!1);const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)removeSub(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function removeDep(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let shouldTrack=!0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const e=trackStack.pop();shouldTrack=e===void 0?!0:e}function cleanupEffect(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=activeSub;activeSub=void 0;try{t()}finally{activeSub=n}}}let globalVersion=0;class Link{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 Dep{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(!activeSub||!shouldTrack||activeSub===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==activeSub)n=this.activeLink=new Link(activeSub,this),activeSub.deps?(n.prevDep=activeSub.depsTail,activeSub.depsTail.nextDep=n,activeSub.depsTail=n):activeSub.deps=activeSub.depsTail=n,addSub(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=activeSub.depsTail,n.nextDep=void 0,activeSub.depsTail.nextDep=n,activeSub.depsTail=n,activeSub.deps===n&&(activeSub.deps=r)}return n}trigger(t){this.version++,globalVersion++,this.notify(t)}notify(t){startBatch();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{endBatch()}}}function addSub(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)addSub(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const targetMap=new WeakMap,ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol(""),ARRAY_ITERATE_KEY=Symbol("");function track(e,t,n){if(shouldTrack&&activeSub){let r=targetMap.get(e);r||targetMap.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Dep),s.map=r,s.key=n),s.track()}}function trigger(e,t,n,r,s,i){const o=targetMap.get(e);if(!o){globalVersion++;return}const a=l=>{l&&l.trigger()};if(startBatch(),t==="clear")o.forEach(a);else{const l=isArray(e),u=l&&isIntegerKey(n);if(l&&n==="length"){const c=Number(r);o.forEach((d,g)=>{(g==="length"||g===ARRAY_ITERATE_KEY||!isSymbol(g)&&g>=c)&&a(d)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(ARRAY_ITERATE_KEY)),t){case"add":l?u&&a(o.get("length")):(a(o.get(ITERATE_KEY)),isMap(e)&&a(o.get(MAP_KEY_ITERATE_KEY)));break;case"delete":l||(a(o.get(ITERATE_KEY)),isMap(e)&&a(o.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(e)&&a(o.get(ITERATE_KEY));break}}endBatch()}function getDepFromReactive(e,t){const n=targetMap.get(e);return n&&n.get(t)}function reactiveReadArray(e){const t=toRaw(e);return t===e?t:(track(t,"iterate",ARRAY_ITERATE_KEY),isShallow(e)?t:t.map(toReactive))}function shallowReadArray(e){return track(e=toRaw(e),"iterate",ARRAY_ITERATE_KEY),e}const arrayInstrumentations={__proto__:null,[Symbol.iterator](){return iterator(this,Symbol.iterator,toReactive)},concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return reactiveReadArray(this).concat(...t.map(r=>isArray(r)?reactiveReadArray(r):r))},entries(){return iterator(this,"entries",e=>(e[1]=toReactive(e[1]),e))},every(e,t){return apply(this,"every",e,t,void 0,arguments)},filter(e,t){return apply(this,"filter",e,t,n=>n.map(toReactive),arguments)},find(e,t){return apply(this,"find",e,t,toReactive,arguments)},findIndex(e,t){return apply(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return apply(this,"findLast",e,t,toReactive,arguments)},findLastIndex(e,t){return apply(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return apply(this,"forEach",e,t,void 0,arguments)},includes(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return searchProxy(this,"includes",t)},indexOf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return searchProxy(this,"indexOf",t)},join(e){return reactiveReadArray(this).join(e)},lastIndexOf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return searchProxy(this,"lastIndexOf",t)},map(e,t){return apply(this,"map",e,t,void 0,arguments)},pop(){return noTracking(this,"pop")},push(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return noTracking(this,"push",t)},reduce(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return reduce(this,"reduce",e,n)},reduceRight(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return reduce(this,"reduceRight",e,n)},shift(){return noTracking(this,"shift")},some(e,t){return apply(this,"some",e,t,void 0,arguments)},splice(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return noTracking(this,"splice",t)},toReversed(){return reactiveReadArray(this).toReversed()},toSorted(e){return reactiveReadArray(this).toSorted(e)},toSpliced(){return reactiveReadArray(this).toSpliced(...arguments)},unshift(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return noTracking(this,"unshift",t)},values(){return iterator(this,"values",toReactive)}};function iterator(e,t,n){const r=shallowReadArray(e),s=r[t]();return r!==e&&!isShallow(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const arrayProto=Array.prototype;function apply(e,t,n,r,s,i){const o=shallowReadArray(e),a=o!==e&&!isShallow(e),l=o[t];if(l!==arrayProto[t]){const d=l.apply(e,i);return a?toReactive(d):d}let u=n;o!==e&&(a?u=function(g,_){return n.call(this,toReactive(g),_,e)}:n.length>2&&(u=function(g,_){return n.call(this,g,_,e)}));const c=l.call(o,u,r);return a&&s?s(c):c}function reduce(e,t,n,r){const s=shallowReadArray(e);let i=n;return s!==e&&(isShallow(e)?n.length>3&&(i=function(a,l,u){return n.call(this,a,l,u,e)}):i=function(a,l,u){return n.call(this,a,toReactive(l),u,e)}),s[t](i,...r)}function searchProxy(e,t,n){const r=toRaw(e);track(r,"iterate",ARRAY_ITERATE_KEY);const s=r[t](...n);return(s===-1||s===!1)&&isProxy(n[0])?(n[0]=toRaw(n[0]),r[t](...n)):s}function noTracking(e,t,n){n===void 0&&(n=[]),pauseTracking(),startBatch();const r=toRaw(e)[t].apply(e,n);return endBatch(),resetTracking(),r}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(isSymbol));function hasOwnProperty(e){isSymbol(e)||(e=String(e));const t=toRaw(this);return track(t,"has",e),t.hasOwnProperty(e)}class BaseReactiveHandler{constructor(t,n){t===void 0&&(t=!1),n===void 0&&(n=!1),this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?shallowReadonlyMap:readonlyMap:i?shallowReactiveMap:reactiveMap).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=isArray(t);if(!s){let l;if(o&&(l=arrayInstrumentations[n]))return l;if(n==="hasOwnProperty")return hasOwnProperty}const a=Reflect.get(t,n,isRef(t)?t:r);if((isSymbol(n)?builtInSymbols.has(n):isNonTrackableKeys(n))||(s||track(t,"get",n),i))return a;if(isRef(a)){const l=o&&isIntegerKey(n)?a:a.value;return s&&isObject$1(l)?readonly(l):l}return isObject$1(a)?s?readonly(a):reactive(a):a}}class MutableReactiveHandler extends BaseReactiveHandler{constructor(t){t===void 0&&(t=!1),super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const l=isReadonly(i);if(!isShallow(r)&&!isReadonly(r)&&(i=toRaw(i),r=toRaw(r)),!isArray(t)&&isRef(i)&&!isRef(r))return l||(i.value=r),!0}const o=isArray(t)&&isIntegerKey(n)?Number(n)<t.length:hasOwn(t,n),a=Reflect.set(t,n,r,isRef(t)?t:s);return t===toRaw(s)&&(o?hasChanged(r,i)&&trigger(t,"set",n,r):trigger(t,"add",n,r)),a}deleteProperty(t,n){const r=hasOwn(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&trigger(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!isSymbol(n)||!builtInSymbols.has(n))&&track(t,"has",n),r}ownKeys(t){return track(t,"iterate",isArray(t)?"length":ITERATE_KEY),Reflect.ownKeys(t)}}class ReadonlyReactiveHandler extends BaseReactiveHandler{constructor(t){t===void 0&&(t=!1),super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const mutableHandlers=new MutableReactiveHandler,readonlyHandlers=new ReadonlyReactiveHandler,shallowReactiveHandlers=new MutableReactiveHandler(!0),shallowReadonlyHandlers=new ReadonlyReactiveHandler(!0),toShallow=e=>e,getProto=e=>Reflect.getPrototypeOf(e);function createIterableMethod(e,t,n){return function(){const r=this.__v_raw,s=toRaw(r),i=isMap(s),o=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,l=r[e](...arguments),u=n?toShallow:t?toReadonly:toReactive;return!t&&track(s,"iterate",a?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:c,done:d}=l.next();return d?{value:c,done:d}:{value:o?[u(c[0]),u(c[1])]:u(c),done:d}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(e){return function(){return e==="delete"?!1:e==="clear"?void 0:this}}function createInstrumentations(e,t){const n={get(s){const i=this.__v_raw,o=toRaw(i),a=toRaw(s);e||(hasChanged(s,a)&&track(o,"get",s),track(o,"get",a));const{has:l}=getProto(o),u=t?toShallow:e?toReadonly:toReactive;if(l.call(o,s))return u(i.get(s));if(l.call(o,a))return u(i.get(a));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!e&&track(toRaw(s),"iterate",ITERATE_KEY),s.size},has(s){const i=this.__v_raw,o=toRaw(i),a=toRaw(s);return e||(hasChanged(s,a)&&track(o,"has",s),track(o,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){const o=this,a=o.__v_raw,l=toRaw(a),u=t?toShallow:e?toReadonly:toReactive;return!e&&track(l,"iterate",ITERATE_KEY),a.forEach((c,d)=>s.call(i,u(c),u(d),o))}};return extend(n,e?{add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear")}:{add(s){!t&&!isShallow(s)&&!isReadonly(s)&&(s=toRaw(s));const i=toRaw(this);return getProto(i).has.call(i,s)||(i.add(s),trigger(i,"add",s,s)),this},set(s,i){!t&&!isShallow(i)&&!isReadonly(i)&&(i=toRaw(i));const o=toRaw(this),{has:a,get:l}=getProto(o);let u=a.call(o,s);u||(s=toRaw(s),u=a.call(o,s));const c=l.call(o,s);return o.set(s,i),u?hasChanged(i,c)&&trigger(o,"set",s,i):trigger(o,"add",s,i),this},delete(s){const i=toRaw(this),{has:o,get:a}=getProto(i);let l=o.call(i,s);l||(s=toRaw(s),l=o.call(i,s)),a&&a.call(i,s);const u=i.delete(s);return l&&trigger(i,"delete",s,void 0),u},clear(){const s=toRaw(this),i=s.size!==0,o=s.clear();return i&&trigger(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=createIterableMethod(s,e,t)}),n}function createInstrumentationGetter(e,t){const n=createInstrumentations(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(hasOwn(n,s)&&s in r?n:r,s,i)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(e){return e.__v_skip||!Object.isExtensible(e)?0:targetTypeMap(toRawType(e))}function reactive(e){return isReadonly(e)?e:createReactiveObject(e,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(e){return createReactiveObject(e,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(e){return createReactiveObject(e,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(e){return createReactiveObject(e,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(e,t,n,r,s){if(!isObject$1(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=getTargetType(e);if(i===0)return e;const o=s.get(e);if(o)return o;const a=new Proxy(e,i===2?r:n);return s.set(e,a),a}function isReactive(e){return isReadonly(e)?isReactive(e.__v_raw):!!(e&&e.__v_isReactive)}function isReadonly(e){return!!(e&&e.__v_isReadonly)}function isShallow(e){return!!(e&&e.__v_isShallow)}function isProxy(e){return e?!!e.__v_raw:!1}function toRaw(e){const t=e&&e.__v_raw;return t?toRaw(t):e}function markRaw(e){return!hasOwn(e,"__v_skip")&&Object.isExtensible(e)&&def(e,"__v_skip",!0),e}const toReactive=e=>isObject$1(e)?reactive(e):e,toReadonly=e=>isObject$1(e)?readonly(e):e;function isRef(e){return e?e.__v_isRef===!0:!1}function ref(e){return createRef(e,!1)}function createRef(e,t){return isRef(e)?e:new RefImpl(e,t)}class RefImpl{constructor(t,n){this.dep=new Dep,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:toRaw(t),this._value=n?t:toReactive(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||isShallow(t)||isReadonly(t);t=r?t:toRaw(t),hasChanged(t,n)&&(this._rawValue=t,this._value=r?t:toReactive(t),this.dep.trigger())}}function unref(e){return isRef(e)?e.value:e}const shallowUnwrapHandlers={get:(e,t,n)=>t==="__v_raw"?e:unref(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return isRef(s)&&!isRef(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function proxyRefs(e){return isReactive(e)?e:new Proxy(e,shallowUnwrapHandlers)}function toRefs(e){const t=isArray(e)?new Array(e.length):{};for(const n in e)t[n]=propertyToRef(e,n);return t}class ObjectRefImpl{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}function propertyToRef(e,t,n){const r=e[t];return isRef(r)?r:new ObjectRefImpl(e,t,n)}class ComputedRefImpl{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Dep(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=globalVersion-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&activeSub!==this)return batch(this,!0),!0}get value(){const t=this.dep.track();return refreshComputed(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function computed$1(e,t,n){n===void 0&&(n=!1);let r,s;return isFunction(e)?r=e:(r=e.get,s=e.set),new ComputedRefImpl(r,s,n)}const INITIAL_WATCHER_VALUE={},cleanupMap=new WeakMap;let activeWatcher;function onWatcherCleanup(e,t,n){if(n===void 0&&(n=activeWatcher),n){let r=cleanupMap.get(n);r||cleanupMap.set(n,r=[]),r.push(e)}}function watch$1(e,t,n){n===void 0&&(n=EMPTY_OBJ);const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=n,u=O=>s?O:isShallow(O)||s===!1||s===0?traverse(O,1):traverse(O);let c,d,g,_,$=!1,R=!1;if(isRef(e)?(d=()=>e.value,$=isShallow(e)):isReactive(e)?(d=()=>u(e),$=!0):isArray(e)?(R=!0,$=e.some(O=>isReactive(O)||isShallow(O)),d=()=>e.map(O=>{if(isRef(O))return O.value;if(isReactive(O))return u(O);if(isFunction(O))return l?l(O,2):O()})):isFunction(e)?t?d=l?()=>l(e,2):e:d=()=>{if(g){pauseTracking();try{g()}finally{resetTracking()}}const O=activeWatcher;activeWatcher=c;try{return l?l(e,3,[_]):e(_)}finally{activeWatcher=O}}:d=NOOP,t&&s){const O=d,N=s===!0?1/0:s;d=()=>traverse(O(),N)}const B=getCurrentScope(),C=()=>{c.stop(),B&&B.active&&remove(B.effects,c)};if(i&&t){const O=t;t=function(){O(...arguments),C()}}let S=R?new Array(e.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const x=O=>{if(!(!(c.flags&1)||!c.dirty&&!O))if(t){const N=c.run();if(s||$||(R?N.some((q,Q)=>hasChanged(q,S[Q])):hasChanged(N,S))){g&&g();const q=activeWatcher;activeWatcher=c;try{const Q=[N,S===INITIAL_WATCHER_VALUE?void 0:R&&S[0]===INITIAL_WATCHER_VALUE?[]:S,_];S=N,l?l(t,3,Q):t(...Q)}finally{activeWatcher=q}}}else c.run()};return a&&a(x),c=new ReactiveEffect(d),c.scheduler=o?()=>o(x,!1):x,_=O=>onWatcherCleanup(O,!1,c),g=c.onStop=()=>{const O=cleanupMap.get(c);if(O){if(l)l(O,4);else for(const N of O)N();cleanupMap.delete(c)}},t?r?x(!0):S=c.run():o?o(x.bind(null,!0),!0):c.run(),C.pause=c.pause.bind(c),C.resume=c.resume.bind(c),C.stop=C,C}function traverse(e,t,n){if(t===void 0&&(t=1/0),t<=0||!isObject$1(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,isRef(e))traverse(e.value,t,n);else if(isArray(e))for(let r=0;r<e.length;r++)traverse(e[r],t,n);else if(isSet(e)||isMap(e))e.forEach(r=>{traverse(r,t,n)});else if(isPlainObject(e)){for(const r in e)traverse(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&traverse(e[r],t,n)}return e}/**
* @vue/runtime-core v3.5.22
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const stack=[];let isWarning=!1;function warn$1(e){if(isWarning)return;isWarning=!0,pauseTracking();const t=stack.length?stack[stack.length-1].component:null,n=t&&t.appContext.config.warnHandler,r=getComponentTrace();for(var s=arguments.length,i=new Array(s>1?s-1:0),o=1;o<s;o++)i[o-1]=arguments[o];if(n)callWithErrorHandling(n,t,11,[e+i.map(a=>{var l,u;return(u=(l=a.toString)==null?void 0:l.call(a))!=null?u:JSON.stringify(a)}).join(""),t&&t.proxy,r.map(a=>{let{vnode:l}=a;return"at <"+formatComponentName(t,l.type)+">"}).join(`
`),r]);else{const a=["[Vue warn]: "+e,...i];r.length&&a.push(`
`,...formatTrace(r)),console.warn(...a)}resetTracking(),isWarning=!1}function getComponentTrace(){let e=stack[stack.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function formatTrace(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
`],...formatTraceEntry(n))}),t}function formatTraceEntry(e){let{vnode:t,recurseCount:n}=e;const r=n>0?"... ("+n+" recursive calls)":"",s=t.component?t.component.parent==null:!1,i=" at <"+formatComponentName(t.component,t.type,s),o=">"+r;return t.props?[i,...formatProps(t.props),o]:[i+o]}function formatProps(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...formatProp(r,e[r]))}),n.length>3&&t.push(" ..."),t}function formatProp(e,t,n){return isString(t)?(t=JSON.stringify(t),n?t:[e+"="+t]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[e+"="+t]:isRef(t)?(t=formatProp(e,toRaw(t.value),!0),n?t:[e+"=Ref<",t,">"]):isFunction(t)?[e+"=fn"+(t.name?"<"+t.name+">":"")]:(t=toRaw(t),n?t:[e+"=",t])}function callWithErrorHandling(e,t,n,r){try{return r?e(...r):e()}catch(s){handleError$1(s,t,n)}}function callWithAsyncErrorHandling(e,t,n,r){if(isFunction(e)){const s=callWithErrorHandling(e,t,n,r);return s&&isPromise$1(s)&&s.catch(i=>{handleError$1(i,t,n)}),s}if(isArray(e)){const s=[];for(let i=0;i<e.length;i++)s.push(callWithAsyncErrorHandling(e[i],t,n,r));return s}}function handleError$1(e,t,n,r){r===void 0&&(r=!0);const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||EMPTY_OBJ;if(t){let a=t.parent;const l=t.proxy,u="https://vuejs.org/error-reference/#runtime-"+n;for(;a;){const c=a.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,l,u)===!1)return}a=a.parent}if(i){pauseTracking(),callWithErrorHandling(i,null,10,[e,l,u]),resetTracking();return}}logError(e,n,s,r,o)}function logError(e,t,n,r,s){if(s===void 0&&(s=!1),s)throw e;console.error(e)}const queue=[];let flushIndex=-1;const pendingPostFlushCbs=[];let activePostFlushCbs=null,postFlushIndex=0;const resolvedPromise=Promise.resolve();let currentFlushPromise=null;function nextTick(e){const t=currentFlushPromise||resolvedPromise;return e?t.then(this?e.bind(this):e):t}function findInsertionIndex(e){let t=flushIndex+1,n=queue.length;for(;t<n;){const r=t+n>>>1,s=queue[r],i=getId(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function queueJob(e){if(!(e.flags&1)){const t=getId(e),n=queue[queue.length-1];!n||!(e.flags&2)&&t>=getId(n)?queue.push(e):queue.splice(findInsertionIndex(t),0,e),e.flags|=1,queueFlush()}}function queueFlush(){currentFlushPromise||(currentFlushPromise=resolvedPromise.then(flushJobs))}function queuePostFlushCb(e){isArray(e)?pendingPostFlushCbs.push(...e):activePostFlushCbs&&e.id===-1?activePostFlushCbs.splice(postFlushIndex+1,0,e):e.flags&1||(pendingPostFlushCbs.push(e),e.flags|=1),queueFlush()}function flushPreFlushCbs(e,t,n){for(n===void 0&&(n=flushIndex+1);n<queue.length;n++){const r=queue[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;queue.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function flushPostFlushCbs(e){if(pendingPostFlushCbs.length){const t=[...new Set(pendingPostFlushCbs)].sort((n,r)=>getId(n)-getId(r));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...t);return}for(activePostFlushCbs=t,postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++){const n=activePostFlushCbs[postFlushIndex];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}activePostFlushCbs=null,postFlushIndex=0}}const getId=e=>e.id==null?e.flags&2?-1:1/0:e.id;function flushJobs(e){const t=NOOP;try{for(flushIndex=0;flushIndex<queue.length;flushIndex++){const n=queue[flushIndex];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),callWithErrorHandling(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2))}}finally{for(;flushIndex<queue.length;flushIndex++){const n=queue[flushIndex];n&&(n.flags&=-2)}flushIndex=-1,queue.length=0,flushPostFlushCbs(),currentFlushPromise=null,(queue.length||pendingPostFlushCbs.length)&&flushJobs()}}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(e){const t=currentRenderingInstance;return currentRenderingInstance=e,currentScopeId=e&&e.type.__scopeId||null,t}function withCtx(e,t,n){if(t===void 0&&(t=currentRenderingInstance),!t||e._n)return e;const r=function(){r._d&&setBlockTracking(-1);const i=setCurrentRenderingInstance(t);let o;try{o=e(...arguments)}finally{setCurrentRenderingInstance(i),r._d&&setBlockTracking(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function withDirectives(e,t){if(currentRenderingInstance===null)return e;const n=getComponentPublicInstance(currentRenderingInstance),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,a,l=EMPTY_OBJ]=t[s];i&&(isFunction(i)&&(i={mounted:i,updated:i}),i.deep&&traverse(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function invokeDirectiveHook(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const a=s[o];i&&(a.oldValue=i[o].value);let l=a.dir[r];l&&(pauseTracking(),callWithAsyncErrorHandling(l,n,8,[e.el,a,e,t]),resetTracking())}}const TeleportEndKey=Symbol("_vte"),isTeleport=e=>e.__isTeleport,leaveCbKey=Symbol("_leaveCb"),enterCbKey=Symbol("_enterCb");function useTransitionState(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return onMounted(()=>{e.isMounted=!0}),onBeforeUnmount(()=>{e.isUnmounting=!0}),e}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},recursiveGetSubtree=e=>{const t=e.subTree;return t.component?recursiveGetSubtree(t.component):t},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(e,t){let{slots:n}=t;const r=getCurrentInstance(),s=useTransitionState();return()=>{const i=n.default&&getTransitionRawChildren(n.default(),!0);if(!i||!i.length)return;const o=findNonCommentChild(i),a=toRaw(e),{mode:l}=a;if(s.isLeaving)return emptyPlaceholder(o);const u=getInnerChild$1(o);if(!u)return emptyPlaceholder(o);let c=resolveTransitionHooks(u,a,s,r,g=>c=g);u.type!==Comment&&setTransitionHooks(u,c);let d=r.subTree&&getInnerChild$1(r.subTree);if(d&&d.type!==Comment&&!isSameVNodeType(d,u)&&recursiveGetSubtree(r).type!==Comment){let g=resolveTransitionHooks(d,a,s,r);if(setTransitionHooks(d,g),l==="out-in"&&u.type!==Comment)return s.isLeaving=!0,g.afterLeave=()=>{s.isLeaving=!1,r.job.flags&8||r.update(),delete g.afterLeave,d=void 0},emptyPlaceholder(o);l==="in-out"&&u.type!==Comment?g.delayLeave=(_,$,R)=>{const B=getLeavingNodesForType(s,d);B[String(d.key)]=d,_[leaveCbKey]=()=>{$(),_[leaveCbKey]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{R(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return o}}};function findNonCommentChild(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Comment){t=n;break}}return t}const BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function resolveTransitionHooks(e,t,n,r,s){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:g,onLeave:_,onAfterLeave:$,onLeaveCancelled:R,onBeforeAppear:B,onAppear:C,onAfterAppear:S,onAppearCancelled:x}=t,O=String(e.key),N=getLeavingNodesForType(n,e),q=(k,H)=>{k&&callWithAsyncErrorHandling(k,r,9,H)},Q=(k,H)=>{const z=H[1];q(k,H),isArray(k)?k.every(F=>F.length<=1)&&z():k.length<=1&&z()},Z={mode:o,persisted:a,beforeEnter(k){let H=l;if(!n.isMounted)if(i)H=B||l;else return;k[leaveCbKey]&&k[leaveCbKey](!0);const z=N[O];z&&isSameVNodeType(e,z)&&z.el[leaveCbKey]&&z.el[leaveCbKey](),q(H,[k])},enter(k){let H=u,z=c,F=d;if(!n.isMounted)if(i)H=C||u,z=S||c,F=x||d;else return;let W=!1;const X=k[enterCbKey]=J=>{W||(W=!0,J?q(F,[k]):q(z,[k]),Z.delayedLeave&&Z.delayedLeave(),k[enterCbKey]=void 0)};H?Q(H,[k,X]):X()},leave(k,H){const z=String(e.key);if(k[enterCbKey]&&k[enterCbKey](!0),n.isUnmounting)return H();q(g,[k]);let F=!1;const W=k[leaveCbKey]=X=>{F||(F=!0,H(),X?q(R,[k]):q($,[k]),k[leaveCbKey]=void 0,N[z]===e&&delete N[z])};N[z]=e,_?Q(_,[k,W]):W()},clone(k){const H=resolveTransitionHooks(k,t,n,r,s);return s&&s(H),H}};return Z}function emptyPlaceholder(e){if(isKeepAlive(e))return e=cloneVNode(e),e.children=null,e}function getInnerChild$1(e){if(!isKeepAlive(e))return isTeleport(e.type)&&e.children?findNonCommentChild(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&isFunction(n.default))return n.default()}}function setTransitionHooks(e,t){e.shapeFlag&6&&e.component?(e.transition=t,setTransitionHooks(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 getTransitionRawChildren(e,t,n){let r=[],s=0;for(let i=0;i<e.length;i++){let o=e[i];const a=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===Fragment?(o.patchFlag&128&&s++,r=r.concat(getTransitionRawChildren(o.children,t,a))):r.push(a!=null?cloneVNode(o,{key:a}):o)}if(s>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function markAsyncBoundary(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const pendingSetRefMap=new WeakMap;function setRef(e,t,n,r,s){if(s===void 0&&(s=!1),isArray(e)){e.forEach(($,R)=>setRef($,t&&(isArray(t)?t[R]:t),n,r,s));return}if(isAsyncWrapper(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&setRef(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?getComponentPublicInstance(r.component):r.el,o=s?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===EMPTY_OBJ?a.refs={}:a.refs,d=a.setupState,g=toRaw(d),_=d===EMPTY_OBJ?NO:$=>hasOwn(g,$);if(u!=null&&u!==l){if(invalidatePendingSetRef(t),isString(u))c[u]=null,_(u)&&(d[u]=null);else if(isRef(u)){u.value=null;const $=t;$.k&&(c[$.k]=null)}}if(isFunction(l))callWithErrorHandling(l,a,12,[o,c]);else{const $=isString(l),R=isRef(l);if($||R){const B=()=>{if(e.f){const C=$?_(l)?d[l]:c[l]:l.value;if(s)isArray(C)&&remove(C,i);else if(isArray(C))C.includes(i)||C.push(i);else if($)c[l]=[i],_(l)&&(d[l]=c[l]);else{const S=[i];l.value=S,e.k&&(c[e.k]=S)}}else $?(c[l]=o,_(l)&&(d[l]=o)):R&&(l.value=o,e.k&&(c[e.k]=o))};if(o){const C=()=>{B(),pendingSetRefMap.delete(e)};C.id=-1,pendingSetRefMap.set(e,C),queuePostRenderEffect(C,n)}else invalidatePendingSetRef(e),B()}}}function invalidatePendingSetRef(e){const t=pendingSetRefMap.get(e);t&&(t.flags|=8,pendingSetRefMap.delete(e))}getGlobalThis().requestIdleCallback,getGlobalThis().cancelIdleCallback;const isAsyncWrapper=e=>!!e.type.__asyncLoader,isKeepAlive=e=>e.type.__isKeepAlive;function onActivated(e,t){registerKeepAliveHook(e,"a",t)}function onDeactivated(e,t){registerKeepAliveHook(e,"da",t)}function registerKeepAliveHook(e,t,n){n===void 0&&(n=currentInstance);const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(injectHook(t,r,n),n){let s=n.parent;for(;s&&s.parent;)isKeepAlive(s.parent.vnode)&&injectToKeepAliveRoot(r,t,n,s),s=s.parent}}function injectToKeepAliveRoot(e,t,n,r){const s=injectHook(t,e,r,!0);onUnmounted(()=>{remove(r[t],s)},n)}function injectHook(e,t,n,r){if(n===void 0&&(n=currentInstance),r===void 0&&(r=!1),n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=function(){pauseTracking();const o=setCurrentInstance(n);for(var a=arguments.length,l=new Array(a),u=0;u<a;u++)l[u]=arguments[u];const c=callWithAsyncErrorHandling(t,n,e,l);return o(),resetTracking(),c});return r?s.unshift(i):s.push(i),i}}const createHook=e=>function(t,n){n===void 0&&(n=currentInstance),(!isInSSRComponentSetup||e==="sp")&&injectHook(e,function(){return t(...arguments)},n)},onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(e,t){t===void 0&&(t=currentInstance),injectHook("ec",e,t)}const COMPONENTS="components";function resolveComponent(e,t){return resolveAsset(COMPONENTS,e,!0,t)||e}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveAsset(e,t,n,r){r===void 0&&(r=!1);const s=currentRenderingInstance||currentInstance;if(s){const i=s.type;{const a=getComponentName(i,!1);if(a&&(a===t||a===camelize(t)||a===capitalize(camelize(t))))return i}const o=resolve(s[e]||i[e],t)||resolve(s.appContext[e],t);return!o&&r?i:o}}function resolve(e,t){return e&&(e[t]||e[camelize(t)]||e[capitalize(camelize(t))])}function renderList(e,t,n,r){let s;const i=n,o=isArray(e);if(o||isString(e)){const a=o&&isReactive(e);let l=!1,u=!1;a&&(l=!isShallow(e),u=isReadonly(e),e=shallowReadArray(e)),s=new Array(e.length);for(let c=0,d=e.length;c<d;c++)s[c]=t(l?u?toReadonly(toReactive(e[c])):toReactive(e[c]):e[c],c,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,i)}else if(isObject$1(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,i));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];s[l]=t(e[c],c,l,i)}}else s=[];return s}function renderSlot(e,t,n,r,s){if(n===void 0&&(n={}),currentRenderingInstance.ce||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&&currentRenderingInstance.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),openBlock(),createBlock(Fragment,null,[createVNode("slot",n,r)],u?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),openBlock();const o=i&&ensureValidVNode(i(n)),a=n.key||o&&o.key,l=createBlock(Fragment,{key:(a&&!isSymbol(a)?a:"_"+t)+(!o&&r?"_fb":"")},o||[],o&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function ensureValidVNode(e){return e.some(t=>isVNode(t)?!(t.type===Comment||t.type===Fragment&&!ensureValidVNode(t.children)):!0)?e:null}const getPublicInstance=e=>e?isStatefulComponent(e)?getComponentPublicInstance(e):getPublicInstance(e.parent):null,publicPropertiesMap=extend(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=>getPublicInstance(e.parent),$root:e=>getPublicInstance(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>resolveMergedOptions(e),$forceUpdate:e=>e.f||(e.f=()=>{queueJob(e.update)}),$nextTick:e=>e.n||(e.n=nextTick.bind(e.proxy)),$watch:e=>instanceWatch.bind(e)}),hasSetupBinding=(e,t)=>e!==EMPTY_OBJ&&!e.__isScriptSetup&&hasOwn(e,t),PublicInstanceProxyHandlers={get(e,t){let{_:n}=e;if(t==="__v_skip")return!0;const{ctx:r,setupState:s,data:i,props:o,accessCache:a,type:l,appContext:u}=n;let c;if(t[0]!=="$"){const $=a[t];if($!==void 0)switch($){case 1:return s[t];case 2:return i[t];case 4:return r[t];case 3:return o[t]}else{if(hasSetupBinding(s,t))return a[t]=1,s[t];if(i!==EMPTY_OBJ&&hasOwn(i,t))return a[t]=2,i[t];if((c=n.propsOptions[0])&&hasOwn(c,t))return a[t]=3,o[t];if(r!==EMPTY_OBJ&&hasOwn(r,t))return a[t]=4,r[t];shouldCacheAccess&&(a[t]=0)}}const d=publicPropertiesMap[t];let g,_;if(d)return t==="$attrs"&&track(n.attrs,"get",""),d(n);if((g=l.__cssModules)&&(g=g[t]))return g;if(r!==EMPTY_OBJ&&hasOwn(r,t))return a[t]=4,r[t];if(_=u.config.globalProperties,hasOwn(_,t))return _[t]},set(e,t,n){let{_:r}=e;const{data:s,setupState:i,ctx:o}=r;return hasSetupBinding(i,t)?(i[t]=n,!0):s!==EMPTY_OBJ&&hasOwn(s,t)?(s[t]=n,!0):hasOwn(r.props,t)||t[0]==="$"&&t.slice(1)in r?!1:(o[t]=n,!0)},has(e,t){let{_:{data:n,setupState:r,accessCache:s,ctx:i,appContext:o,propsOptions:a,type:l}}=e,u,c;return!!(s[t]||n!==EMPTY_OBJ&&t[0]!=="$"&&hasOwn(n,t)||hasSetupBinding(r,t)||(u=a[0])&&hasOwn(u,t)||hasOwn(i,t)||hasOwn(publicPropertiesMap,t)||hasOwn(o.config.globalProperties,t)||(c=l.__cssModules)&&c[t])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:hasOwn(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function normalizePropsOrEmits(e){return isArray(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let shouldCacheAccess=!0;function applyOptions(e){const t=resolveMergedOptions(e),n=e.proxy,r=e.ctx;shouldCacheAccess=!1,t.beforeCreate&&callHook$1(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:d,mounted:g,beforeUpdate:_,updated:$,activated:R,deactivated:B,beforeDestroy:C,beforeUnmount:S,destroyed:x,unmounted:O,render:N,renderTracked:q,renderTriggered:Q,errorCaptured:Z,serverPrefetch:k,expose:H,inheritAttrs:z,components:F,directives:W,filters:X}=t;if(u&&resolveInjections(u,r),o)for(const K in o){const G=o[K];isFunction(G)&&(r[K]=G.bind(n))}if(s){const K=s.call(n,n);isObject$1(K)&&(e.data=reactive(K))}if(shouldCacheAccess=!0,i)for(const K in i){const G=i[K],se=isFunction(G)?G.bind(n,n):isFunction(G.get)?G.get.bind(n,n):NOOP,me=!isFunction(G)&&isFunction(G.set)?G.set.bind(n):NOOP,le=computed({get:se,set:me});Object.defineProperty(r,K,{enumerable:!0,configurable:!0,get:()=>le.value,set:ae=>le.value=ae})}if(a)for(const K in a)createWatcher(a[K],r,n,K);if(l){const K=isFunction(l)?l.call(n):l;Reflect.ownKeys(K).forEach(G=>{provide(G,K[G])})}c&&callHook$1(c,e,"c");function J(K,G){isArray(G)?G.forEach(se=>K(se.bind(n))):G&&K(G.bind(n))}if(J(onBeforeMount,d),J(onMounted,g),J(onBeforeUpdate,_),J(onUpdated,$),J(onActivated,R),J(onDeactivated,B),J(onErrorCaptured,Z),J(onRenderTracked,q),J(onRenderTriggered,Q),J(onBeforeUnmount,S),J(onUnmounted,O),J(onServerPrefetch,k),isArray(H))if(H.length){const K=e.exposed||(e.exposed={});H.forEach(G=>{Object.defineProperty(K,G,{get:()=>n[G],set:se=>n[G]=se,enumerable:!0})})}else e.exposed||(e.exposed={});N&&e.render===NOOP&&(e.render=N),z!=null&&(e.inheritAttrs=z),F&&(e.components=F),W&&(e.directives=W),k&&markAsyncBoundary(e)}function resolveInjections(e,t,n){isArray(e)&&(e=normalizeInject(e));for(const r in e){const s=e[r];let i;isObject$1(s)?"default"in s?i=inject(s.from||r,s.default,!0):i=inject(s.from||r):i=inject(s),isRef(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function callHook$1(e,t,n){callWithAsyncErrorHandling(isArray(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function createWatcher(e,t,n,r){let s=r.includes(".")?createPathGetter(n,r):()=>n[r];if(isString(e)){const i=t[e];isFunction(i)&&watch(s,i)}else if(isFunction(e))watch(s,e.bind(n));else if(isObject$1(e))if(isArray(e))e.forEach(i=>createWatcher(i,t,n,r));else{const i=isFunction(e.handler)?e.handler.bind(n):t[e.handler];isFunction(i)&&watch(s,i,e)}}function resolveMergedOptions(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(u=>mergeOptions(l,u,o,!0)),mergeOptions(l,t,o)),isObject$1(t)&&i.set(t,l),l}function mergeOptions(e,t,n,r){r===void 0&&(r=!1);const{mixins:s,extends:i}=t;i&&mergeOptions(e,i,n,!0),s&&s.forEach(o=>mergeOptions(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=internalOptionMergeStrats[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(e,t){return t?e?function(){return extend(isFunction(e)?e.call(this,this):e,isFunction(t)?t.call(this,this):t)}:t:e}function mergeInject(e,t){return mergeObjectOptions(normalizeInject(e),normalizeInject(t))}function normalizeInject(e){if(isArray(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function mergeAsArray(e,t){return e?[...new Set([].concat(e,t))]:t}function mergeObjectOptions(e,t){return e?extend(Object.create(null),e,t):t}function mergeEmitsOrPropsOptions(e,t){return e?isArray(e)&&isArray(t)?[...new Set([...e,...t])]:extend(Object.create(null),normalizePropsOrEmits(e),normalizePropsOrEmits(t??{})):t}function mergeWatchOptions(e,t){if(!e)return t;if(!t)return e;const n=extend(Object.create(null),e);for(const r in t)n[r]=mergeAsArray(e[r],t[r]);return n}function createAppContext(){return{app:null,config:{isNativeTag:NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let uid$1=0;function createAppAPI(e,t){return function(r,s){s===void 0&&(s=null),isFunction(r)||(r=extend({},r)),s!=null&&!isObject$1(s)&&(s=null);const i=createAppContext(),o=new WeakSet,a=[];let l=!1;const u=i.app={_uid:uid$1++,_component:r,_props:s,_container:null,_context:i,_instance:null,version,get config(){return i.config},set config(c){},use(c){for(var d=arguments.length,g=new Array(d>1?d-1:0),_=1;_<d;_++)g[_-1]=arguments[_];return o.has(c)||(c&&isFunction(c.install)?(o.add(c),c.install(u,...g)):isFunction(c)&&(o.add(c),c(u,...g))),u},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),u},component(c,d){return d?(i.components[c]=d,u):i.components[c]},directive(c,d){return d?(i.directives[c]=d,u):i.directives[c]},mount(c,d,g){if(!l){const _=u._ceVNode||createVNode(r,s);return _.appContext=i,g===!0?g="svg":g===!1&&(g=void 0),e(_,c,g),l=!0,u._container=c,c.__vue_app__=u,getComponentPublicInstance(_.component)}},onUnmount(c){a.push(c)},unmount(){l&&(callWithAsyncErrorHandling(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,d){return i.provides[c]=d,u},runWithContext(c){const d=currentApp;currentApp=u;try{return c()}finally{currentApp=d}}};return u}}let currentApp=null;function provide(e,t){if(currentInstance){let n=currentInstance.provides;const r=currentInstance.parent&&currentInstance.parent.provides;r===n&&(n=currentInstance.provides=Object.create(r)),n[e]=t}}function inject(e,t,n){n===void 0&&(n=!1);const r=getCurrentInstance();if(r||currentApp){let s=currentApp?currentApp._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&isFunction(t)?t.call(r&&r.proxy):t}}const internalObjectProto={},createInternalObject=()=>Object.create(internalObjectProto),isInternalObject=e=>Object.getPrototypeOf(e)===internalObjectProto;function initProps(e,t,n,r){r===void 0&&(r=!1);const s={},i=createInternalObject();e.propsDefaults=Object.create(null),setFullProps(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:shallowReactive(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function updateProps(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=toRaw(s),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let g=c[d];if(isEmitListener(e.emitsOptions,g))continue;const _=t[g];if(l)if(hasOwn(i,g))_!==i[g]&&(i[g]=_,u=!0);else{const $=camelize(g);s[$]=resolvePropValue(l,a,$,_,e,!1)}else _!==i[g]&&(i[g]=_,u=!0)}}}else{setFullProps(e,t,s,i)&&(u=!0);let c;for(const d in a)(!t||!hasOwn(t,d)&&((c=hyphenate(d))===d||!hasOwn(t,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(s[d]=resolvePropValue(l,a,d,void 0,e,!0)):delete s[d]);if(i!==a)for(const d in i)(!t||!hasOwn(t,d))&&(delete i[d],u=!0)}u&&trigger(e.attrs,"set","")}function setFullProps(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(isReservedProp(l))continue;const u=t[l];let c;s&&hasOwn(s,c=camelize(l))?!i||!i.includes(c)?n[c]=u:(a||(a={}))[c]=u:isEmitListener(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(i){const l=toRaw(n),u=a||EMPTY_OBJ;for(let c=0;c<i.length;c++){const d=i[c];n[d]=resolvePropValue(s,l,d,u[d],e,!hasOwn(u,d))}}return o}function resolvePropValue(e,t,n,r,s,i){const o=e[n];if(o!=null){const a=hasOwn(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&isFunction(l)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const c=setCurrentInstance(s);r=u[n]=l.call(null,t),c()}}else r=l;s.ce&&s.ce._setProp(n,r)}o[0]&&(i&&!a?r=!1:o[1]&&(r===""||r===hyphenate(n))&&(r=!0))}return r}const mixinPropsCache=new WeakMap;function normalizePropsOptions(e,t,n){n===void 0&&(n=!1);const r=n?mixinPropsCache:t.propsCache,s=r.get(e);if(s)return s;const i=e.props,o={},a=[];let l=!1;if(!isFunction(e)){const c=d=>{l=!0;const[g,_]=normalizePropsOptions(d,t,!0);extend(o,g),_&&a.push(..._)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return isObject$1(e)&&r.set(e,EMPTY_ARR),EMPTY_ARR;if(isArray(i))for(let c=0;c<i.length;c++){const d=camelize(i[c]);validatePropName(d)&&(o[d]=EMPTY_OBJ)}else if(i)for(const c in i){const d=camelize(c);if(validatePropName(d)){const g=i[c],_=o[d]=isArray(g)||isFunction(g)?{type:g}:extend({},g),$=_.type;let R=!1,B=!0;if(isArray($))for(let C=0;C<$.length;++C){const S=$[C],x=isFunction(S)&&S.name;if(x==="Boolean"){R=!0;break}else x==="String"&&(B=!1)}else R=isFunction($)&&$.name==="Boolean";_[0]=R,_[1]=B,(R||hasOwn(_,"default"))&&a.push(d)}}const u=[o,a];return isObject$1(e)&&r.set(e,u),u}function validatePropName(e){return e[0]!=="$"&&!isReservedProp(e)}const isInternalKey=e=>e==="_"||e==="_ctx"||e==="$stable",normalizeSlotValue=e=>isArray(e)?e.map(normalizeVNode):[normalizeVNode(e)],normalizeSlot=(e,t,n)=>{if(t._n)return t;const r=withCtx(function(){return normalizeSlotValue(t(...arguments))},n);return r._c=!1,r},normalizeObjectSlots=(e,t,n)=>{const r=e._ctx;for(const s in e){if(isInternalKey(s))continue;const i=e[s];if(isFunction(i))t[s]=normalizeSlot(s,i,r);else if(i!=null){const o=normalizeSlotValue(i);t[s]=()=>o}}},normalizeVNodeSlots=(e,t)=>{const n=normalizeSlotValue(t);e.slots.default=()=>n},assignSlots=(e,t,n)=>{for(const r in t)(n||!isInternalKey(r))&&(e[r]=t[r])},initSlots=(e,t,n)=>{const r=e.slots=createInternalObject();if(e.vnode.shapeFlag&32){const s=t._;s?(assignSlots(r,t,n),n&&def(r,"_",s,!0)):normalizeObjectSlots(t,r)}else t&&normalizeVNodeSlots(e,t)},updateSlots=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=EMPTY_OBJ;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:assignSlots(s,t,n):(i=!t.$stable,normalizeObjectSlots(t,s)),o=t}else t&&(normalizeVNodeSlots(e,t),o={default:1});if(i)for(const a in s)!isInternalKey(a)&&o[a]==null&&delete s[a]};function initFeatureFlags(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(getGlobalThis().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(e){return baseCreateRenderer(e)}function baseCreateRenderer(e,t){initFeatureFlags();const n=getGlobalThis();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:g,setScopeId:_=NOOP,insertStaticContent:$}=e,R=function(f,v,y,b,E,I,M,A,w){if(b===void 0&&(b=null),E===void 0&&(E=null),I===void 0&&(I=null),M===void 0&&(M=void 0),A===void 0&&(A=null),w===void 0&&(w=!!v.dynamicChildren),f===v)return;f&&!isSameVNodeType(f,v)&&(b=fe(f),oe(f,E,I,!0),f=null),v.patchFlag===-2&&(w=!1,v.dynamicChildren=null);const{type:L,ref:T,shapeFlag:D}=v;switch(L){case Text:B(f,v,y,b);break;case Comment:C(f,v,y,b);break;case Static:f==null&&S(v,y,b,M);break;case Fragment:F(f,v,y,b,E,I,M,A,w);break;default:D&1?N(f,v,y,b,E,I,M,A,w):D&6?W(f,v,y,b,E,I,M,A,w):(D&64||D&128)&&L.process(f,v,y,b,E,I,M,A,w,ue)}T!=null&&E?setRef(T,f&&f.ref,I,v||f,!v):T==null&&f&&f.ref!=null&&setRef(f.ref,null,I,f,!0)},B=(m,f,v,y)=>{if(m==null)r(f.el=a(f.children),v,y);else{const b=f.el=m.el;f.children!==m.children&&u(b,f.children)}},C=(m,f,v,y)=>{m==null?r(f.el=l(f.children||""),v,y):f.el=m.el},S=(m,f,v,y)=>{[m.el,m.anchor]=$(m.children,f,v,y,m.el,m.anchor)},x=(m,f,v)=>{let{el:y,anchor:b}=m,E;for(;y&&y!==b;)E=g(y),r(y,f,v),y=E;r(b,f,v)},O=m=>{let{el:f,anchor:v}=m,y;for(;f&&f!==v;)y=g(f),s(f),f=y;s(v)},N=(m,f,v,y,b,E,I,M,A)=>{f.type==="svg"?I="svg":f.type==="math"&&(I="mathml"),m==null?q(f,v,y,b,E,I,M,A):k(m,f,b,E,I,M,A)},q=(m,f,v,y,b,E,I,M)=>{let A,w;const{props:L,shapeFlag:T,transition:D,dirs:P}=m;if(A=m.el=o(m.type,E,L&&L.is,L),T&8?c(A,m.children):T&16&&Z(m.children,A,null,y,b,resolveChildrenNamespace(m,E),I,M),P&&invokeDirectiveHook(m,null,y,"created"),Q(A,m,m.scopeId,I,y),L){for(const V in L)V!=="value"&&!isReservedProp(V)&&i(A,V,null,L[V],E,y);"value"in L&&i(A,"value",null,L.value,E),(w=L.onVnodeBeforeMount)&&invokeVNodeHook(w,y,m)}P&&invokeDirectiveHook(m,null,y,"beforeMount");const U=needTransition(b,D);U&&D.beforeEnter(A),r(A,f,v),((w=L&&L.onVnodeMounted)||U||P)&&queuePostRenderEffect(()=>{w&&invokeVNodeHook(w,y,m),U&&D.enter(A),P&&invokeDirectiveHook(m,null,y,"mounted")},b)},Q=(m,f,v,y,b)=>{if(v&&_(m,v),y)for(let E=0;E<y.length;E++)_(m,y[E]);if(b){let E=b.subTree;if(f===E||isSuspense(E.type)&&(E.ssContent===f||E.ssFallback===f)){const I=b.vnode;Q(m,I,I.scopeId,I.slotScopeIds,b.parent)}}},Z=function(f,v,y,b,E,I,M,A,w){w===void 0&&(w=0);for(let L=w;L<f.length;L++){const T=f[L]=A?cloneIfMounted(f[L]):normalizeVNode(f[L]);R(null,T,v,y,b,E,I,M,A)}},k=(m,f,v,y,b,E,I)=>{const M=f.el=m.el;let{patchFlag:A,dynamicChildren:w,dirs:L}=f;A|=m.patchFlag&16;const T=m.props||EMPTY_OBJ,D=f.props||EMPTY_OBJ;let P;if(v&&toggleRecurse(v,!1),(P=D.onVnodeBeforeUpdate)&&invokeVNodeHook(P,v,f,m),L&&invokeDirectiveHook(f,m,v,"beforeUpdate"),v&&toggleRecurse(v,!0),(T.innerHTML&&D.innerHTML==null||T.textContent&&D.textContent==null)&&c(M,""),w?H(m.dynamicChildren,w,M,v,y,resolveChildrenNamespace(f,b),E):I||se(m,f,M,null,v,y,resolveChildrenNamespace(f,b),E,!1),A>0){if(A&16)z(M,T,D,v,b);else if(A&2&&T.class!==D.class&&i(M,"class",null,D.class,b),A&4&&i(M,"style",T.style,D.style,b),A&8){const U=f.dynamicProps;for(let V=0;V<U.length;V++){const j=U[V],Y=T[j],ee=D[j];(ee!==Y||j==="value")&&i(M,j,Y,ee,b,v)}}A&1&&m.children!==f.children&&c(M,f.children)}else!I&&w==null&&z(M,T,D,v,b);((P=D.onVnodeUpdated)||L)&&queuePostRenderEffect(()=>{P&&invokeVNodeHook(P,v,f,m),L&&invokeDirectiveHook(f,m,v,"updated")},y)},H=(m,f,v,y,b,E,I)=>{for(let M=0;M<f.length;M++){const A=m[M],w=f[M],L=A.el&&(A.type===Fragment||!isSameVNodeType(A,w)||A.shapeFlag&198)?d(A.el):v;R(A,w,L,null,y,b,E,I,!0)}},z=(m,f,v,y,b)=>{if(f!==v){if(f!==EMPTY_OBJ)for(const E in f)!isReservedProp(E)&&!(E in v)&&i(m,E,f[E],null,b,y);for(const E in v){if(isReservedProp(E))continue;const I=v[E],M=f[E];I!==M&&E!=="value"&&i(m,E,M,I,b,y)}"value"in v&&i(m,"value",f.value,v.value,b)}},F=(m,f,v,y,b,E,I,M,A)=>{const w=f.el=m?m.el:a(""),L=f.anchor=m?m.anchor:a("");let{patchFlag:T,dynamicChildren:D,slotScopeIds:P}=f;P&&(M=M?M.concat(P):P),m==null?(r(w,v,y),r(L,v,y),Z(f.children||[],v,L,b,E,I,M,A)):T>0&&T&64&&D&&m.dynamicChildren?(H(m.dynamicChildren,D,v,b,E,I,M),(f.key!=null||b&&f===b.subTree)&&traverseStaticChildren(m,f)):se(m,f,v,L,b,E,I,M,A)},W=(m,f,v,y,b,E,I,M,A)=>{f.slotScopeIds=M,m==null?f.shapeFlag&512?b.ctx.activate(f,v,y,I,A):X(f,v,y,b,E,I,A):J(m,f,A)},X=(m,f,v,y,b,E,I)=>{const M=m.component=createComponentInstance(m,y,b);if(isKeepAlive(m)&&(M.ctx.renderer=ue),setupComponent(M,!1,I),M.asyncDep){if(b&&b.registerDep(M,K,I),!m.el){const A=M.subTree=createVNode(Comment);C(null,A,f,v),m.placeholder=A.el}}else K(M,m,f,v,b,E,I)},J=(m,f,v)=>{const y=f.component=m.component;if(shouldUpdateComponent(m,f,v))if(y.asyncDep&&!y.asyncResolved){G(y,f,v);return}else y.next=f,y.update();else f.el=m.el,y.vnode=f},K=(m,f,v,y,b,E,I)=>{const M=()=>{if(m.isMounted){let{next:T,bu:D,u:P,parent:U,vnode:V}=m;{const re=locateNonHydratedAsyncRoot(m);if(re){T&&(T.el=V.el,G(m,T,I)),re.asyncDep.then(()=>{m.isUnmounted||M()});return}}let j=T,Y;toggleRecurse(m,!1),T?(T.el=V.el,G(m,T,I)):T=V,D&&invokeArrayFns(D),(Y=T.props&&T.props.onVnodeBeforeUpdate)&&invokeVNodeHook(Y,U,T,V),toggleRecurse(m,!0);const ee=renderComponentRoot(m),ne=m.subTree;m.subTree=ee,R(ne,ee,d(ne.el),fe(ne),m,b,E),T.el=ee.el,j===null&&updateHOCHostEl(m,ee.el),P&&queuePostRenderEffect(P,b),(Y=T.props&&T.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(Y,U,T,V),b)}else{let T;const{el:D,props:P}=f,{bm:U,m:V,parent:j,root:Y,type:ee}=m,ne=isAsyncWrapper(f);toggleRecurse(m,!1),U&&invokeArrayFns(U),!ne&&(T=P&&P.onVnodeBeforeMount)&&invokeVNodeHook(T,j,f),toggleRecurse(m,!0);{Y.ce&&Y.ce._def.shadowRoot!==!1&&Y.ce._injectChildStyle(ee);const re=m.subTree=renderComponentRoot(m);R(null,re,v,y,m,b,E),f.el=re.el}if(V&&queuePostRenderEffect(V,b),!ne&&(T=P&&P.onVnodeMounted)){const re=f;queuePostRenderEffect(()=>invokeVNodeHook(T,j,re),b)}(f.shapeFlag&256||j&&isAsyncWrapper(j.vnode)&&j.vnode.shapeFlag&256)&&m.a&&queuePostRenderEffect(m.a,b),m.isMounted=!0,f=v=y=null}};m.scope.on();const A=m.effect=new ReactiveEffect(M);m.scope.off();const w=m.update=A.run.bind(A),L=m.job=A.runIfDirty.bind(A);L.i=m,L.id=m.uid,A.scheduler=()=>queueJob(L),toggleRecurse(m,!0),w()},G=(m,f,v)=>{f.component=m;const y=m.vnode.props;m.vnode=f,m.next=null,updateProps(m,f.props,y,v),updateSlots(m,f.children,v),pauseTracking(),flushPreFlushCbs(m),resetTracking()},se=function(f,v,y,b,E,I,M,A,w){w===void 0&&(w=!1);const L=f&&f.children,T=f?f.shapeFlag:0,D=v.children,{patchFlag:P,shapeFlag:U}=v;if(P>0){if(P&128){le(L,D,y,b,E,I,M,A,w);return}else if(P&256){me(L,D,y,b,E,I,M,A,w);return}}U&8?(T&16&&ce(L,E,I),D!==L&&c(y,D)):T&16?U&16?le(L,D,y,b,E,I,M,A,w):ce(L,E,I,!0):(T&8&&c(y,""),U&16&&Z(D,y,b,E,I,M,A,w))},me=(m,f,v,y,b,E,I,M,A)=>{m=m||EMPTY_ARR,f=f||EMPTY_ARR;const w=m.length,L=f.length,T=Math.min(w,L);let D;for(D=0;D<T;D++){const P=f[D]=A?cloneIfMounted(f[D]):normalizeVNode(f[D]);R(m[D],P,v,null,b,E,I,M,A)}w>L?ce(m,b,E,!0,!1,T):Z(f,v,y,b,E,I,M,A,T)},le=(m,f,v,y,b,E,I,M,A)=>{let w=0;const L=f.length;let T=m.length-1,D=L-1;for(;w<=T&&w<=D;){const P=m[w],U=f[w]=A?cloneIfMounted(f[w]):normalizeVNode(f[w]);if(isSameVNodeType(P,U))R(P,U,v,null,b,E,I,M,A);else break;w++}for(;w<=T&&w<=D;){const P=m[T],U=f[D]=A?cloneIfMounted(f[D]):normalizeVNode(f[D]);if(isSameVNodeType(P,U))R(P,U,v,null,b,E,I,M,A);else break;T--,D--}if(w>T){if(w<=D){const P=D+1,U=P<L?f[P].el:y;for(;w<=D;)R(null,f[w]=A?cloneIfMounted(f[w]):normalizeVNode(f[w]),v,U,b,E,I,M,A),w++}}else if(w>D)for(;w<=T;)oe(m[w],b,E,!0),w++;else{const P=w,U=w,V=new Map;for(w=U;w<=D;w++){const te=f[w]=A?cloneIfMounted(f[w]):normalizeVNode(f[w]);te.key!=null&&V.set(te.key,w)}let j,Y=0;const ee=D-U+1;let ne=!1,re=0;const de=new Array(ee);for(w=0;w<ee;w++)de[w]=0;for(w=P;w<=T;w++){const te=m[w];if(Y>=ee){oe(te,b,E,!0);continue}let ie;if(te.key!=null)ie=V.get(te.key);else for(j=U;j<=D;j++)if(de[j-U]===0&&isSameVNodeType(te,f[j])){ie=j;break}ie===void 0?oe(te,b,E,!0):(de[ie-U]=w+1,ie>=re?re=ie:ne=!0,R(te,f[ie],v,null,b,E,I,M,A),Y++)}const ve=ne?getSequence(de):EMPTY_ARR;for(j=ve.length-1,w=ee-1;w>=0;w--){const te=U+w,ie=f[te],_e=f[te+1],be=te+1<L?_e.el||_e.placeholder:y;de[w]===0?R(null,ie,v,be,b,E,I,M,A):ne&&(j<0||w!==ve[j]?ae(ie,v,be,2):j--)}}},ae=function(f,v,y,b,E){E===void 0&&(E=null);const{el:I,type:M,transition:A,children:w,shapeFlag:L}=f;if(L&6){ae(f.component.subTree,v,y,b);return}if(L&128){f.suspense.move(v,y,b);return}if(L&64){M.move(f,v,y,ue);return}if(M===Fragment){r(I,v,y);for(let D=0;D<w.length;D++)ae(w[D],v,y,b);r(f.anchor,v,y);return}if(M===Static){x(f,v,y);return}if(b!==2&&L&1&&A)if(b===0)A.beforeEnter(I),r(I,v,y),queuePostRenderEffect(()=>A.enter(I),E);else{const{leave:D,delayLeave:P,afterLeave:U}=A,V=()=>{f.ctx.isUnmounted?s(I):r(I,v,y)},j=()=>{I._isLeaving&&I[leaveCbKey](!0),D(I,()=>{V(),U&&U()})};P?P(I,V,j):j()}else r(I,v,y)},oe=function(f,v,y,b,E){b===void 0&&(b=!1),E===void 0&&(E=!1);const{type:I,props:M,ref:A,children:w,dynamicChildren:L,shapeFlag:T,patchFlag:D,dirs:P,cacheIndex:U}=f;if(D===-2&&(E=!1),A!=null&&(pauseTracking(),setRef(A,null,y,f,!0),resetTracking()),U!=null&&(v.renderCache[U]=void 0),T&256){v.ctx.deactivate(f);return}const V=T&1&&P,j=!isAsyncWrapper(f);let Y;if(j&&(Y=M&&M.onVnodeBeforeUnmount)&&invokeVNodeHook(Y,v,f),T&6)Ee(f.component,y,b);else{if(T&128){f.suspense.unmount(y,b);return}V&&invokeDirectiveHook(f,null,v,"beforeUnmount"),T&64?f.type.remove(f,v,y,ue,b):L&&!L.hasOnce&&(I!==Fragment||D>0&&D&64)?ce(L,v,y,!1,!0):(I===Fragment&&D&384||!E&&T&16)&&ce(w,v,y),b&&pe(f)}(j&&(Y=M&&M.onVnodeUnmounted)||V)&&queuePostRenderEffect(()=>{Y&&invokeVNodeHook(Y,v,f),V&&invokeDirectiveHook(f,null,v,"unmounted")},y)},pe=m=>{const{type:f,el:v,anchor:y,transition:b}=m;if(f===Fragment){ye(v,y);return}if(f===Static){O(m);return}const E=()=>{s(v),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(m.shapeFlag&1&&b&&!b.persisted){const{leave:I,delayLeave:M}=b,A=()=>I(v,E);M?M(m.el,E,A):A()}else E()},ye=(m,f)=>{let v;for(;m!==f;)v=g(m),s(m),m=v;s(f)},Ee=(m,f,v)=>{const{bum:y,scope:b,job:E,subTree:I,um:M,m:A,a:w}=m;invalidateMount(A),invalidateMount(w),y&&invokeArrayFns(y),b.stop(),E&&(E.flags|=8,oe(I,m,f,v)),M&&queuePostRenderEffect(M,f),queuePostRenderEffect(()=>{m.isUnmounted=!0},f)},ce=function(f,v,y,b,E,I){b===void 0&&(b=!1),E===void 0&&(E=!1),I===void 0&&(I=0);for(let M=I;M<f.length;M++)oe(f[M],v,y,b,E)},fe=m=>{if(m.shapeFlag&6)return fe(m.component.subTree);if(m.shapeFlag&128)return m.suspense.next();const f=g(m.anchor||m.el),v=f&&f[TeleportEndKey];return v?g(v):f};let he=!1;const ge=(m,f,v)=>{m==null?f._vnode&&oe(f._vnode,null,null,!0):R(f._vnode||null,m,f,null,null,null,v),f._vnode=m,he||(he=!0,flushPreFlushCbs(),flushPostFlushCbs(),he=!1)},ue={p:R,um:oe,m:ae,r:pe,mt:X,mc:Z,pc:se,pbc:H,n:fe,o:e};return{render:ge,hydrate:void 0,createApp:createAppAPI(ge)}}function resolveChildrenNamespace(e,t){let{type:n,props:r}=e;return t==="svg"&&n==="foreignObject"||t==="mathml"&&n==="annotation-xml"&&r&&r.encoding&&r.encoding.includes("html")?void 0:t}function toggleRecurse(e,t){let{effect:n,job:r}=e;t?(n.flags|=32,r.flags|=4):(n.flags&=-33,r.flags&=-5)}function needTransition(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function traverseStaticChildren(e,t,n){const r=e.children,s=t.children;if(isArray(r)&&isArray(s))for(let i=0;i<r.length;i++){const o=r[i];let a=s[i];a.shapeFlag&1&&!a.dynamicChildren&&(a.patchFlag<=0||a.patchFlag===32)&&(a=s[i]=cloneIfMounted(s[i]),a.el=o.el),a.type===Text&&a.patchFlag!==-1&&(a.el=o.el),a.type===Comment&&!a.el&&(a.el=o.el)}}function getSequence(e){const t=e.slice(),n=[0];let r,s,i,o,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(s=n[n.length-1],e[s]<u){t[r]=s,n.push(r);continue}for(i=0,o=n.length-1;i<o;)a=i+o>>1,e[n[a]]<u?i=a+1:o=a;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function locateNonHydratedAsyncRoot(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:locateNonHydratedAsyncRoot(t)}function invalidateMount(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>inject(ssrContextKey);function watch(e,t,n){return doWatch(e,t,n)}function doWatch(e,t,n){n===void 0&&(n=EMPTY_OBJ);const{immediate:r,deep:s,flush:i,once:o}=n,a=extend({},n),l=t&&r||!t&&i!=="post";let u;if(isInSSRComponentSetup){if(i==="sync"){const _=useSSRContext();u=_.__watcherHandles||(_.__watcherHandles=[])}else if(!l){const _=()=>{};return _.stop=NOOP,_.resume=NOOP,_.pause=NOOP,_}}const c=currentInstance;a.call=(_,$,R)=>callWithAsyncErrorHandling(_,c,$,R);let d=!1;i==="post"?a.scheduler=_=>{queuePostRenderEffect(_,c&&c.suspense)}:i!=="sync"&&(d=!0,a.scheduler=(_,$)=>{$?_():queueJob(_)}),a.augmentJob=_=>{t&&(_.flags|=4),d&&(_.flags|=2,c&&(_.id=c.uid,_.i=c))};const g=watch$1(e,t,a);return isInSSRComponentSetup&&(u?u.push(g):l&&g()),g}function instanceWatch(e,t,n){const r=this.proxy,s=isString(e)?e.includes(".")?createPathGetter(r,e):()=>r[e]:e.bind(r,r);let i;isFunction(t)?i=t:(i=t.handler,n=t);const o=setCurrentInstance(this),a=doWatch(s,i.bind(r),n);return o(),a}function createPathGetter(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const getModelModifiers=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[t+"Modifiers"]||e[camelize(t)+"Modifiers"]||e[hyphenate(t)+"Modifiers"];function emit(e,t){if(e.isUnmounted)return;const n=e.vnode.props||EMPTY_OBJ;for(var r=arguments.length,s=new Array(r>2?r-2:0),i=2;i<r;i++)s[i-2]=arguments[i];let o=s;const a=t.startsWith("update:"),l=a&&getModelModifiers(n,t.slice(7));l&&(l.trim&&(o=s.map(g=>isString(g)?g.trim():g)),l.number&&(o=s.map(looseToNumber)));let u,c=n[u=toHandlerKey(t)]||n[u=toHandlerKey(camelize(t))];!c&&a&&(c=n[u=toHandlerKey(hyphenate(t))]),c&&callWithAsyncErrorHandling(c,e,6,o);const d=n[u+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[u])return;e.emitted[u]=!0,callWithAsyncErrorHandling(d,e,6,o)}}const mixinEmitsCache=new WeakMap;function normalizeEmitsOptions(e,t,n){n===void 0&&(n=!1);const r=n?mixinEmitsCache:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!isFunction(e)){const l=u=>{const c=normalizeEmitsOptions(u,t,!0);c&&(a=!0,extend(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(isObject$1(e)&&r.set(e,null),null):(isArray(i)?i.forEach(l=>o[l]=null):extend(o,i),isObject$1(e)&&r.set(e,o),o)}function isEmitListener(e,t){return!e||!isOn(t)?!1:(t=t.slice(2).replace(/Once$/,""),hasOwn(e,t[0].toLowerCase()+t.slice(1))||hasOwn(e,hyphenate(t))||hasOwn(e,t))}function markAttrsAccessed(){}function renderComponentRoot(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:l,render:u,renderCache:c,props:d,data:g,setupState:_,ctx:$,inheritAttrs:R}=e,B=setCurrentRenderingInstance(e);let C,S;try{if(n.shapeFlag&4){const O=s||r,N=O;C=normalizeVNode(u.call(N,O,c,d,_,g,$)),S=a}else{const O=t;C=normalizeVNode(O.length>1?O(d,{attrs:a,slots:o,emit:l}):O(d,null)),S=t.props?a:getFunctionalFallthrough(a)}}catch(O){blockStack.length=0,handleError$1(O,e,1),C=createVNode(Comment)}let x=C;if(S&&R!==!1){const O=Object.keys(S),{shapeFlag:N}=x;O.length&&N&7&&(i&&O.some(isModelListener)&&(S=filterModelListeners(S,i)),x=cloneVNode(x,S,!1,!0))}return n.dirs&&(x=cloneVNode(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&setTransitionHooks(x,n.transition),C=x,setCurrentRenderingInstance(B),C}const getFunctionalFallthrough=e=>{let t;for(const n in e)(n==="class"||n==="style"||isOn(n))&&((t||(t={}))[n]=e[n]);return t},filterModelListeners=(e,t)=>{const n={};for(const r in e)(!isModelListener(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function shouldUpdateComponent(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?hasPropsChanged(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const g=c[d];if(o[g]!==r[g]&&!isEmitListener(u,g))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?hasPropsChanged(r,o,u):!0:!!o;return!1}function hasPropsChanged(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(t[i]!==e[i]&&!isEmitListener(n,i))return!0}return!1}function updateHOCHostEl(e,t){let{vnode:n,parent:r}=e;for(;r;){const s=r.subTree;if(s.suspense&&s.suspense.activeBranch===n&&(s.el=n.el),s===n)(n=r.vnode).el=t,r=r.parent;else break}}const isSuspense=e=>e.__isSuspense;function queueEffectWithSuspense(e,t){t&&t.pendingBranch?isArray(e)?t.effects.push(...e):t.effects.push(e):queuePostFlushCb(e)}const Fragment=Symbol.for("v-fgt"),Text=Symbol.for("v-txt"),Comment=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),blockStack=[];let currentBlock=null;function openBlock(e){e===void 0&&(e=!1),blockStack.push(currentBlock=e?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(e,t){t===void 0&&(t=!1),isBlockTreeEnabled+=e,e<0&&currentBlock&&t&&(currentBlock.hasOnce=!0)}function setupBlock(e){return e.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&&currentBlock&&currentBlock.push(e),e}function createElementBlock(e,t,n,r,s,i){return setupBlock(createBaseVNode(e,t,n,r,s,i,!0))}function createBlock(e,t,n,r,s){return setupBlock(createVNode(e,t,n,r,s,!0))}function isVNode(e){return e?e.__v_isVNode===!0:!1}function isSameVNodeType(e,t){return e.type===t.type&&e.key===t.key}const normalizeKey=e=>{let{key:t}=e;return t??null},normalizeRef=e=>{let{ref:t,ref_key:n,ref_for:r}=e;return typeof t=="number"&&(t=""+t),t!=null?isString(t)||isRef(t)||isFunction(t)?{i:currentRenderingInstance,r:t,k:n,f:!!r}:t:null};function createBaseVNode(e,t,n,r,s,i,o,a){t===void 0&&(t=null),n===void 0&&(n=null),r===void 0&&(r=0),s===void 0&&(s=null),i===void 0&&(i=e===Fragment?0:1),o===void 0&&(o=!1),a===void 0&&(a=!1);const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&normalizeKey(t),ref:t&&normalizeRef(t),scopeId:currentScopeId,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return a?(normalizeChildren(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=isString(n)?8:16),isBlockTreeEnabled>0&&!o&&currentBlock&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&currentBlock.push(l),l}const createVNode=_createVNode;function _createVNode(e,t,n,r,s,i){if(t===void 0&&(t=null),n===void 0&&(n=null),r===void 0&&(r=0),s===void 0&&(s=null),i===void 0&&(i=!1),(!e||e===NULL_DYNAMIC_COMPONENT)&&(e=Comment),isVNode(e)){const a=cloneVNode(e,t,!0);return n&&normalizeChildren(a,n),isBlockTreeEnabled>0&&!i&&currentBlock&&(a.shapeFlag&6?currentBlock[currentBlock.indexOf(e)]=a:currentBlock.push(a)),a.patchFlag=-2,a}if(isClassComponent(e)&&(e=e.__vccOpts),t){t=guardReactiveProps(t);let{class:a,style:l}=t;a&&!isString(a)&&(t.class=normalizeClass(a)),isObject$1(l)&&(isProxy(l)&&!isArray(l)&&(l=extend({},l)),t.style=normalizeStyle(l))}const o=isString(e)?1:isSuspense(e)?128:isTeleport(e)?64:isObject$1(e)?4:isFunction(e)?2:0;return createBaseVNode(e,t,n,r,s,o,i,!0)}function guardReactiveProps(e){return e?isProxy(e)||isInternalObject(e)?extend({},e):e:null}function cloneVNode(e,t,n,r){n===void 0&&(n=!1),r===void 0&&(r=!1);const{props:s,ref:i,patchFlag:o,children:a,transition:l}=e,u=t?mergeProps(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&normalizeKey(u),ref:t&&t.ref?n&&i?isArray(i)?i.concat(normalizeRef(t)):[i,normalizeRef(t)]:normalizeRef(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fragment?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cloneVNode(e.ssContent),ssFallback:e.ssFallback&&cloneVNode(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&setTransitionHooks(c,l.clone(c)),c}function createTextVNode(e,t){return e===void 0&&(e=" "),t===void 0&&(t=0),createVNode(Text,null,e,t)}function createCommentVNode(e,t){return t?(openBlock(),createBlock(Comment,null,e)):createVNode(Comment,null,e)}function normalizeVNode(e){return e==null||typeof e=="boolean"?createVNode(Comment):isArray(e)?createVNode(Fragment,null,e.slice()):isVNode(e)?cloneIfMounted(e):createVNode(Text,null,String(e))}function cloneIfMounted(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:cloneVNode(e)}function normalizeChildren(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(isArray(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),normalizeChildren(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!isInternalObject(t)?t._ctx=currentRenderingInstance:s===3&&currentRenderingInstance&&(currentRenderingInstance.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else isFunction(t)?(t={default:t,_ctx:currentRenderingInstance},n=32):(t=String(t),r&64?(n=16,t=[createTextVNode(t)]):n=8);e.children=t,e.shapeFlag|=n}function mergeProps(){const e={};for(let t=0;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];for(const r in n)if(r==="class")e.class!==n.class&&(e.class=normalizeClass([e.class,n.class]));else if(r==="style")e.style=normalizeStyle([e.style,n.style]);else if(isOn(r)){const s=e[r],i=n[r];i&&s!==i&&!(isArray(s)&&s.includes(i))&&(e[r]=s?[].concat(s,i):i)}else r!==""&&(e[r]=n[r])}return e}function invokeVNodeHook(e,t,n,r){r===void 0&&(r=null),callWithAsyncErrorHandling(e,t,7,[n,r])}const emptyAppContext=createAppContext();let uid=0;function createComponentInstance(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||emptyAppContext,i={uid:uid++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(r,s),emitsOptions:normalizeEmitsOptions(r,s),emit:null,emitted:null,propsDefaults:EMPTY_OBJ,inheritAttrs:r.inheritAttrs,ctx:EMPTY_OBJ,data:EMPTY_OBJ,props:EMPTY_OBJ,attrs:EMPTY_OBJ,slots:EMPTY_OBJ,refs:EMPTY_OBJ,setupState:EMPTY_OBJ,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=emit.bind(null,i),e.ce&&e.ce(i),i}let currentInstance=null;const getCurrentInstance=()=>currentInstance||currentRenderingInstance;let internalSetCurrentInstance,setInSSRSetupState;{const e=getGlobalThis(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};internalSetCurrentInstance=t("__VUE_INSTANCE_SETTERS__",n=>currentInstance=n),setInSSRSetupState=t("__VUE_SSR_SETTERS__",n=>isInSSRComponentSetup=n)}const setCurrentInstance=e=>{const t=currentInstance;return internalSetCurrentInstance(e),e.scope.on(),()=>{e.scope.off(),internalSetCurrentInstance(t)}},unsetCurrentInstance=()=>{currentInstance&&currentInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(e){return e.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1),t&&setInSSRSetupState(t);const{props:r,children:s}=e.vnode,i=isStatefulComponent(e);initProps(e,r,i,t),initSlots(e,s,n||t);const o=i?setupStatefulComponent(e,t):void 0;return t&&setInSSRSetupState(!1),o}function setupStatefulComponent(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,PublicInstanceProxyHandlers);const{setup:r}=n;if(r){pauseTracking();const s=e.setupContext=r.length>1?createSetupContext(e):null,i=setCurrentInstance(e),o=callWithErrorHandling(r,e,0,[e.props,s]),a=isPromise$1(o);if(resetTracking(),i(),(a||e.sp)&&!isAsyncWrapper(e)&&markAsyncBoundary(e),a){if(o.then(unsetCurrentInstance,unsetCurrentInstance),t)return o.then(l=>{handleSetupResult(e,l,t)}).catch(l=>{handleError$1(l,e,0)});e.asyncDep=o}else handleSetupResult(e,o,t)}else finishComponentSetup(e,t)}function handleSetupResult(e,t,n){isFunction(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:isObject$1(t)&&(e.setupState=proxyRefs(t)),finishComponentSetup(e,n)}let compile;function finishComponentSetup(e,t,n){const r=e.type;if(!e.render){if(!t&&compile&&!r.render){const s=r.template||resolveMergedOptions(e).template;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,u=extend(extend({isCustomElement:i,delimiters:a},o),l);r.render=compile(s,u)}}e.render=r.render||NOOP}{const s=setCurrentInstance(e);pauseTracking();try{applyOptions(e)}finally{resetTracking(),s()}}}const attrsProxyHandlers={get(e,t){return track(e,"get",""),e[t]}};function createSetupContext(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,attrsProxyHandlers),slots:e.slots,emit:e.emit,expose:t}}function getComponentPublicInstance(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(proxyRefs(markRaw(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in publicPropertiesMap)return publicPropertiesMap[n](e)},has(t,n){return n in t||n in publicPropertiesMap}})):e.proxy}const classifyRE=/(?:^|[-_])\w/g,classify=e=>e.replace(classifyRE,t=>t.toUpperCase()).replace(/[-_]/g,"");function getComponentName(e,t){return t===void 0&&(t=!0),isFunction(e)?e.displayName||e.name:e.name||t&&e.__name}function formatComponentName(e,t,n){n===void 0&&(n=!1);let r=getComponentName(t);if(!r&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(r=s[1])}if(!r&&e&&e.parent){const s=i=>{for(const o in i)if(i[o]===t)return o};r=s(e.components||e.parent.type.components)||s(e.appContext.components)}return r?classify(r):n?"App":"Anonymous"}function isClassComponent(e){return isFunction(e)&&"__vccOpts"in e}const computed=(e,t)=>computed$1(e,t,isInSSRComponentSetup);function h(e,t,n){try{setBlockTracking(-1);const r=arguments.length;return r===2?isObject$1(t)&&!isArray(t)?isVNode(t)?createVNode(e,null,[t]):createVNode(e,t):createVNode(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&isVNode(n)&&(n=[n]),createVNode(e,t,n))}finally{setBlockTracking(1)}}const version="3.5.22";/**
* @vue/runtime-dom v3.5.22
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let policy;const tt=typeof window<"u"&&window.trustedTypes;if(tt)try{policy=tt.createPolicy("vue",{createHTML:e=>e})}catch{}const unsafeToTrustedHTML=policy?e=>policy.createHTML(e):e=>e,svgNS="http://www.w3.org/2000/svg",mathmlNS="http://www.w3.org/1998/Math/MathML",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?doc.createElementNS(svgNS,e):t==="mathml"?doc.createElementNS(mathmlNS,e):n?doc.createElement(e,{is:n}):doc.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>doc.createTextNode(e),createComment:e=>doc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>doc.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{templateContainer.innerHTML=unsafeToTrustedHTML(r==="svg"?"<svg>"+e+"</svg>":r==="mathml"?"<math>"+e+"</math>":e);const a=templateContainer.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=extend({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),decorate$1=e=>(e.displayName="Transition",e.props=TransitionPropsValidators,e),Transition=decorate$1((e,t)=>{let{slots:n}=t;return h(BaseTransition,resolveTransitionProps(e),n)}),callHook=function(t,n){n===void 0&&(n=[]),isArray(t)?t.forEach(r=>r(...n)):t&&t(...n)},hasExplicitCallback=e=>e?isArray(e)?e.some(t=>t.length>1):e.length>1:!1;function resolveTransitionProps(e){const t={};for(const F in e)F in DOMTransitionPropsValidators||(t[F]=e[F]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:i=n+"-enter-from",enterActiveClass:o=n+"-enter-active",enterToClass:a=n+"-enter-to",appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=a,leaveFromClass:d=n+"-leave-from",leaveActiveClass:g=n+"-leave-active",leaveToClass:_=n+"-leave-to"}=e,$=normalizeDuration(s),R=$&&$[0],B=$&&$[1],{onBeforeEnter:C,onEnter:S,onEnterCancelled:x,onLeave:O,onLeaveCancelled:N,onBeforeAppear:q=C,onAppear:Q=S,onAppearCancelled:Z=x}=t,k=(F,W,X,J)=>{F._enterCancelled=J,removeTransitionClass(F,W?c:a),removeTransitionClass(F,W?u:o),X&&X()},H=(F,W)=>{F._isLeaving=!1,removeTransitionClass(F,d),removeTransitionClass(F,_),removeTransitionClass(F,g),W&&W()},z=F=>(W,X)=>{const J=F?Q:S,K=()=>k(W,F,X);callHook(J,[W,K]),nextFrame(()=>{removeTransitionClass(W,F?l:i),addTransitionClass(W,F?c:a),hasExplicitCallback(J)||whenTransitionEnds(W,r,R,K)})};return extend(t,{onBeforeEnter(F){callHook(C,[F]),addTransitionClass(F,i),addTransitionClass(F,o)},onBeforeAppear(F){callHook(q,[F]),addTransitionClass(F,l),addTransitionClass(F,u)},onEnter:z(!1),onAppear:z(!0),onLeave(F,W){F._isLeaving=!0;const X=()=>H(F,W);addTransitionClass(F,d),F._enterCancelled?(addTransitionClass(F,g),forceReflow(F)):(forceReflow(F),addTransitionClass(F,g)),nextFrame(()=>{F._isLeaving&&(removeTransitionClass(F,d),addTransitionClass(F,_),hasExplicitCallback(O)||whenTransitionEnds(F,r,B,X))}),callHook(O,[F,X])},onEnterCancelled(F){k(F,!1,void 0,!0),callHook(x,[F])},onAppearCancelled(F){k(F,!0,void 0,!0),callHook(Z,[F])},onLeaveCancelled(F){H(F),callHook(N,[F])}})}function normalizeDuration(e){if(e==null)return null;if(isObject$1(e))return[NumberOf(e.enter),NumberOf(e.leave)];{const t=NumberOf(e);return[t,t]}}function NumberOf(e){return toNumber(e)}function addTransitionClass(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[vtcKey]||(e[vtcKey]=new Set)).add(t)}function removeTransitionClass(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[vtcKey];n&&(n.delete(t),n.size||(e[vtcKey]=void 0))}function nextFrame(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let endId=0;function whenTransitionEnds(e,t,n,r){const s=e._endId=++endId,i=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:a,propCount:l}=getTransitionInfo(e,t);if(!o)return r();const u=o+"end";let c=0;const d=()=>{e.removeEventListener(u,g),i()},g=_=>{_.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},a+1),e.addEventListener(u,g)}function getTransitionInfo(e,t){const n=window.getComputedStyle(e),r=$=>(n[$]||"").split(", "),s=r(TRANSITION+"Delay"),i=r(TRANSITION+"Duration"),o=getTimeout(s,i),a=r(ANIMATION+"Delay"),l=r(ANIMATION+"Duration"),u=getTimeout(a,l);let c=null,d=0,g=0;t===TRANSITION?o>0&&(c=TRANSITION,d=o,g=i.length):t===ANIMATION?u>0&&(c=ANIMATION,d=u,g=l.length):(d=Math.max(o,u),c=d>0?o>u?TRANSITION:ANIMATION:null,g=c?c===TRANSITION?i.length:l.length:0);const _=c===TRANSITION&&/\b(?:transform|all)(?:,|$)/.test(r(TRANSITION+"Property").toString());return{type:c,timeout:d,propCount:g,hasTransform:_}}function getTimeout(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>toMs(n)+toMs(e[r])))}function toMs(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function forceReflow(e){return(e?e.ownerDocument:document).body.offsetHeight}function patchClass(e,t,n){const r=e[vtcKey];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const vShowOriginalDisplay=Symbol("_vod"),vShowHidden=Symbol("_vsh"),vShow={name:"show",beforeMount(e,t,n){let{value:r}=t,{transition:s}=n;e[vShowOriginalDisplay]=e.style.display==="none"?"":e.style.display,s&&r?s.beforeEnter(e):setDisplay(e,r)},mounted(e,t,n){let{value:r}=t,{transition:s}=n;s&&r&&s.enter(e)},updated(e,t,n){let{value:r,oldValue:s}=t,{transition:i}=n;!r!=!s&&(i?r?(i.beforeEnter(e),setDisplay(e,!0),i.enter(e)):i.leave(e,()=>{setDisplay(e,!1)}):setDisplay(e,r))},beforeUnmount(e,t){let{value:n}=t;setDisplay(e,n)}};function setDisplay(e,t){e.style.display=t?e[vShowOriginalDisplay]:"none",e[vShowHidden]=!t}const CSS_VAR_TEXT=Symbol(""),displayRE=/(?:^|;)\s*display\s*:/;function patchStyle(e,t,n){const r=e.style,s=isString(n);let i=!1;if(n&&!s){if(t)if(isString(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&setStyle(r,a,"")}else for(const o in t)n[o]==null&&setStyle(r,o,"");for(const o in n)o==="display"&&(i=!0),setStyle(r,o,n[o])}else if(s){if(t!==n){const o=r[CSS_VAR_TEXT];o&&(n+=";"+o),r.cssText=n,i=displayRE.test(n)}}else t&&e.removeAttribute("style");vShowOriginalDisplay in e&&(e[vShowOriginalDisplay]=i?r.display:"",e[vShowHidden]&&(r.display="none"))}const importantRE=/\s*!important$/;function setStyle(e,t,n){if(isArray(n))n.forEach(r=>setStyle(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=autoPrefix(e,t);importantRE.test(n)?e.setProperty(hyphenate(r),n.replace(importantRE,""),"important"):e[r]=n}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(e,t){const n=prefixCache[t];if(n)return n;let r=camelize(t);if(r!=="filter"&&r in e)return prefixCache[t]=r;r=capitalize(r);for(let s=0;s<prefixes.length;s++){const i=prefixes[s]+r;if(i in e)return prefixCache[t]=i}return t}const xlinkNS="http://www.w3.org/1999/xlink";function patchAttr(e,t,n,r,s,i){i===void 0&&(i=isSpecialBooleanAttr(t)),r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(xlinkNS,t.slice(6,t.length)):e.setAttributeNS(xlinkNS,t,n):n==null||i&&!includeBooleanAttr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":isSymbol(n)?String(n):n)}function patchDOMProp(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?unsafeToTrustedHTML(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=includeBooleanAttr(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(s||t)}function addEventListener(e,t,n,r){e.addEventListener(t,n,r)}function removeEventListener(e,t,n,r){e.removeEventListener(t,n,r)}const veiKey=Symbol("_vei");function patchEvent(e,t,n,r,s){s===void 0&&(s=null);const i=e[veiKey]||(e[veiKey]={}),o=i[t];if(r&&o)o.value=r;else{const[a,l]=parseName(t);if(r){const u=i[t]=createInvoker(r,s);addEventListener(e,a,u,l)}else o&&(removeEventListener(e,a,o,l),i[t]=void 0)}}const optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName(e){let t;if(optionsModifierRE.test(e)){t={};let r;for(;r=e.match(optionsModifierRE);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):hyphenate(e.slice(2)),t]}let cachedNow=0;const p=Promise.resolve(),getNow=()=>cachedNow||(p.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(r,n.value),t,5,[r])};return n.value=e,n.attached=getNow(),n}function patchStopImmediatePropagation(e,t){if(isArray(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const isNativeOn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,patchProp=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?patchClass(e,r,o):t==="style"?patchStyle(e,n,r):isOn(t)?isModelListener(t)||patchEvent(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):shouldSetAsProp(e,t,r,o))?(patchDOMProp(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&patchAttr(e,t,r,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!isString(r))?patchDOMProp(e,camelize(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),patchAttr(e,t,r,o))};function shouldSetAsProp(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&isNativeOn(t)&&isFunction(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return isNativeOn(t)&&isString(n)?!1:t in e}const getModelAssigner=e=>{const t=e.props["onUpdate:modelValue"]||!1;return isArray(t)?n=>invokeArrayFns(t,n):t};function onCompositionStart(e){e.target.composing=!0}function onCompositionEnd(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const assignKey=Symbol("_assign"),vModelText={created(e,t,n){let{modifiers:{lazy:r,trim:s,number:i}}=t;e[assignKey]=getModelAssigner(n);const o=i||n.props&&n.props.type==="number";addEventListener(e,r?"change":"input",a=>{if(a.target.composing)return;let l=e.value;s&&(l=l.trim()),o&&(l=looseToNumber(l)),e[assignKey](l)}),s&&addEventListener(e,"change",()=>{e.value=e.value.trim()}),r||(addEventListener(e,"compositionstart",onCompositionStart),addEventListener(e,"compositionend",onCompositionEnd),addEventListener(e,"change",onCompositionEnd))},mounted(e,t){let{value:n}=t;e.value=n??""},beforeUpdate(e,t,n){let{value:r,oldValue:s,modifiers:{lazy:i,trim:o,number:a}}=t;if(e[assignKey]=getModelAssigner(n),e.composing)return;const l=(a||e.type==="number")&&!/^0\d/.test(e.value)?looseToNumber(e.value):e.value,u=r??"";l!==u&&(document.activeElement===e&&e.type!=="range"&&(i&&r===s||o&&e.value.trim()===u)||(e.value=u))}},systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={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)=>systemModifiers.some(n=>e[n+"Key"]&&!t.includes(n))},withModifiers=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=function(s){for(let l=0;l<t.length;l++){const u=modifierGuards[t[l]];if(u&&u(s,t))return}for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return e(s,...o)})},keyNames={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},withKeys=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const i=hyphenate(s.key);if(t.some(o=>o===i||keyNames[o]===i))return e(s)})},rendererOptions=extend({patchProp},nodeOps);let renderer;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}const createApp=function(){const t=ensureRenderer().createApp(...arguments),{mount:n}=t;return t.mount=r=>{const s=normalizeContainer(r);if(!s)return;const i=t._component;!isFunction(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,resolveRootNamespace(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t};function resolveRootNamespace(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function normalizeContainer(e){return isString(e)?document.querySelector(e):e}const SET_IS_LOADING="SET_IS_LOADING",SELECT_DIRECTORY="SELECT_DIRECTORY",SELECT_BROWSER_ITEM="SELECT_BROWSER_ITEM",SELECT_BROWSER_ITEMS="SELECT_BROWSER_ITEMS",UNSELECT_BROWSER_ITEM="UNSELECT_BROWSER_ITEM",UNSELECT_ALL_BROWSER_ITEMS="UNSELECT_ALL_BROWSER_ITEMS",INCREASE_GRID_SIZE="INCREASE_GRID_SIZE",DECREASE_GRID_SIZE="DECREASE_GRID_SIZE",LOAD_CONTENTS_SUCCESS="LOAD_CONTENTS_SUCCESS",LOAD_FULL_CONTENTS_SUCCESS="LOAD_FULL_CONTENTS_SUCCESS",CREATE_DIRECTORY_SUCCESS="CREATE_DIRECTORY_SUCCESS",UPLOAD_SUCCESS="UPLOAD_SUCCESS",SHOW_CREATE_FOLDER_MODAL="SHOW_CREATE_FOLDER_MODAL",HIDE_CREATE_FOLDER_MODAL="HIDE_CREATE_FOLDER_MODAL",SHOW_CONFIRM_DELETE_MODAL="SHOW_CONFIRM_DELETE_MODAL",HIDE_CONFIRM_DELETE_MODAL="HIDE_CONFIRM_DELETE_MODAL",SHOW_INFOBAR="SHOW_INFOBAR",HIDE_INFOBAR="HIDE_INFOBAR",DELETE_SUCCESS="DELETE_SUCCESS",CHANGE_LIST_VIEW="CHANGE_LIST_VIEW",SHOW_PREVIEW_MODAL="SHOW_PREVIEW_MODAL",HIDE_PREVIEW_MODAL="HIDE_PREVIEW_MODAL",SHOW_RENAME_MODAL="SHOW_RENAME_MODAL",HIDE_RENAME_MODAL="HIDE_RENAME_MODAL",RENAME_SUCCESS="RENAME_SUCCESS",SHOW_SHARE_MODAL="SHOW_SHARE_MODAL",HIDE_SHARE_MODAL="HIDE_SHARE_MODAL",SET_SEARCH_QUERY="SET_SEARCH_QUERY",UPDATE_ITEM_PROPERTIES="UPDATE_ITEM_PROPERTIES",UPDATE_SORT_BY="UPDATE_SORT_BY",UPDATE_SORT_DIRECTION="UPDATE_SORT_DIRECTION";function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_extends.apply(null,arguments)}function _notify(e,t){let n;t.type==="message"&&(n=3e3),Joomla.renderMessages({[t.type]:[Joomla.Text._(e)]},void 0,!0,n)}const notifications={success:(e,t)=>{_notify(e,_extends({type:"message",dismiss:!0},t))},error:(e,t)=>{_notify(e,_extends({type:"error",dismiss:!0},t))},notify:(e,t)=>{_notify(e,_extends({type:"message",dismiss:!0},t))},ask:e=>window.confirm(e)},dirname=e=>{if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e));if(e.length===0)return".";let t=e.charCodeAt(0);const n=t===47;let r=-1,s=!0;for(let i=e.length-1;i>=1;--i)if(t=e.charCodeAt(i),t===47){if(!s){r=i;break}}else s=!1;return r===-1?n?"/":".":n&&r===1?"//":e.slice(0,r)};function normalizeItem(e){return e.type==="dir"&&(e.directories=[],e.files=[]),e.directory=dirname(e.path),e.directory.indexOf(":",e.directory.length-1)!==-1&&(e.directory+="/"),e}function normalizeArray(e){const t=e.filter(r=>r.type==="dir").map(r=>normalizeItem(r)),n=e.filter(r=>r.type==="file").map(r=>normalizeItem(r));return{directories:t,files:n}}function handleError(e){const t=JSON.parse(e.response);if(t.message)notifications.error(t.message),t.messages&&Object.keys(t.messages).forEach(n=>{t.messages[n].forEach(r=>{n==="error"?notifications.error(r):notifications.notify(r)})});else switch(e.status){case 409:break;case 404:notifications.error("COM_MEDIA_ERROR_NOT_FOUND");break;case 401:notifications.error("COM_MEDIA_ERROR_NOT_AUTHENTICATED");break;case 403:notifications.error("COM_MEDIA_ERROR_NOT_AUTHORIZED");break;case 500:notifications.error("COM_MEDIA_SERVER_ERROR");break;default:notifications.error("COM_MEDIA_ERROR")}throw e}class Api{constructor(){const t=Joomla.getOptions("com_media",{});if(t.apiBaseUrl===void 0)throw new TypeError("Media api baseUrl is not defined");if(t.csrfToken===void 0)throw new TypeError("Media api csrf token is not defined");this.baseUrl=t.apiBaseUrl,this.csrfToken=Joomla.getOptions("csrf.token"),this.imagesExtensions=t.imagesExtensions,this.audioExtensions=t.audioExtensions,this.videoExtensions=t.videoExtensions,this.documentExtensions=t.documentExtensions,this.mediaVersion=new Date().getTime().toString(),this.canCreate=t.canCreate||!1,this.canEdit=t.canEdit||!1,this.canDelete=t.canDelete||!1}getContents(t,n,r){return n===void 0&&(n=!1),r===void 0&&(r=!1),new Promise((s,i)=>{const o=new URL(this.baseUrl+"&task=api.files&path="+encodeURIComponent(t));n&&o.searchParams.append("url",n),r&&o.searchParams.append("content",r),Joomla.request({url:o.toString(),method:"GET",headers:{"Content-Type":"application/json"},onSuccess:a=>{s(normalizeArray(JSON.parse(a).data))},onError:a=>{i(a)}})}).catch(handleError)}createDirectory(t,n){return new Promise((r,s)=>{const i=new URL(this.baseUrl+"&task=api.files&path="+encodeURIComponent(n)),o={[this.csrfToken]:"1",name:t};Joomla.request({url:i.toString(),method:"POST",data:JSON.stringify(o),headers:{"Content-Type":"application/json"},onSuccess:a=>{notifications.success("COM_MEDIA_CREATE_NEW_FOLDER_SUCCESS"),r(normalizeItem(JSON.parse(a).data))},onError:a=>{notifications.error("COM_MEDIA_CREATE_NEW_FOLDER_ERROR"),s(a)}})}).catch(handleError)}upload(t,n,r,s){return new Promise((i,o)=>{const a=new URL(this.baseUrl+"&task=api.files&path="+encodeURIComponent(n)),l={[this.csrfToken]:"1",name:t,content:r};s===!0&&(l.override=!0),Joomla.request({url:a.toString(),method:"POST",data:JSON.stringify(l),headers:{"Content-Type":"application/json"},onSuccess:u=>{notifications.success("COM_MEDIA_UPLOAD_SUCCESS"),i(normalizeItem(JSON.parse(u).data))},onError:u=>{o(u)}})}).catch(handleError)}rename(t,n){return new Promise((r,s)=>{const i=new URL(this.baseUrl+"&task=api.files&path="+encodeURIComponent(t)),o={[this.csrfToken]:"1",newPath:n};Joomla.request({url:i.toString(),method:"PUT",data:JSON.stringify(o),headers:{"Content-Type":"application/json"},onSuccess:a=>{notifications.success("COM_MEDIA_RENAME_SUCCESS"),r(normalizeItem(JSON.parse(a).data))},onError:a=>{notifications.error("COM_MEDIA_RENAME_ERROR"),s(a)}})}).catch(handleError)}delete(t){return new Promise((n,r)=>{const s=new URL(this.baseUrl+"&task=api.files&path="+encodeURIComponent(t)),i={[this.csrfToken]:"1"};Joomla.request({url:s.toString(),method:"DELETE",data:JSON.stringify(i),headers:{"Content-Type":"application/json"},onSuccess:()=>{notifications.success("COM_MEDIA_DELETE_SUCCESS"),n()},onError:o=>{notifications.error("COM_MEDIA_DELETE_ERROR"),r(o)}})}).catch(handleError)}}const api=new Api;var navigable={methods:{navigateTo(e){this.$store.dispatch("getContents",e,!1,!1)}}};function onItemClick(e,t){if(t.item.path&&t.item.type==="file"&&window.parent.document.dispatchEvent(new CustomEvent("onMediaFileSelected",{bubbles:!0,cancelable:!1,detail:{type:t.item.type,name:t.item.name,path:t.item.path,thumb:t.item.thumb,fileType:t.item.mime_type?t.item.mime_type:!1,extension:t.item.extension?t.item.extension:!1,width:t.item.width?t.item.width:0,height:t.item.height?t.item.height:0}})),t.item.type==="dir"&&window.parent.document.dispatchEvent(new CustomEvent("onMediaFileSelected",{bubbles:!0,cancelable:!1,detail:{type:t.item.type,name:t.item.name,path:t.item.path}})),!t.isSelected()){if(e[/Mac|Mac OS|MacIntel/gi.test(window.navigator.userAgent)?"metaKey":"ctrlKey"]||e.keyCode===17){t.$store.commit(SELECT_BROWSER_ITEM,t.item);return}if(!e.shiftKey&&e.keyCode!==13){t.$store.commit(UNSELECT_ALL_BROWSER_ITEMS),t.$store.commit(SELECT_BROWSER_ITEM,t.item);return}const n=t.localItems.indexOf(t.$store.state.selectedItems[0]),r=t.localItems.indexOf(t.item);if(n<r){t.localItems.slice(n,r+1).forEach(s=>t.$store.commit(SELECT_BROWSER_ITEM,s));return}t.localItems.slice(r,n).forEach(s=>t.$store.commit(SELECT_BROWSER_ITEM,s));return}t.$store.dispatch("toggleBrowserItemSelect",t.item),window.parent.document.dispatchEvent(new CustomEvent("onMediaFileSelected",{bubbles:!0,cancelable:!1,detail:{}})),t.$store.state.selectedItems.length>1&&(t.$store.commit(UNSELECT_ALL_BROWSER_ITEMS),t.$store.commit(SELECT_BROWSER_ITEM,t.item))}var script$v={name:"MediaBrowserItemRow",mixins:[navigable],props:{item:{type:Object,default:()=>{}},localItems:{type:Array,default:()=>[]}},computed:{dimension(){return this.item.width?`${this.item.width}px * ${this.item.height}px`:""},isDir(){return this.item.type==="dir"},size(){return this.item.size?`${(this.item.size/1024).toFixed(2)}`:""},selected(){return!!this.isSelected()}},methods:{getURL(){return this.item.thumb_path?this.item.thumb_path.split(Joomla.getOptions("system.paths").rootFull).length>1?`${this.item.thumb_path}?${this.item.modified_date?new Date(this.item.modified_date).valueOf():api.mediaVersion}`:`${this.item.thumb_path}`:""},width(){return this.item.naturalWidth?this.item.naturalWidth:300},height(){return this.item.naturalHeight?this.item.naturalHeight:150},setSize(e){if(this.item.mime_type==="image/svg+xml"){const t=e.target;this.$store.dispatch("updateItemProperties",{item:this.item,width:t.naturalWidth?t.naturalWidth:300,height:t.naturalHeight?t.naturalHeight:150})}},onDblClick(){if(this.isDir){this.navigateTo(this.item.path);return}const e=["jpg","jpeg","png","gif","webp","avif","mp4","mp3","pdf"];this.item.extension&&e.includes(this.item.extension.toLowerCase())&&(this.$store.commit(SHOW_PREVIEW_MODAL),this.$store.dispatch("getFullContents",this.item))},isSelected(){return this.$store.state.selectedItems.some(e=>e.path===this.item.path)},onClick(e){return onItemClick(e,this)}}};const _hoisted_1$v={key:0},_hoisted_2$k=["src","width","height"],_hoisted_3$h=["data-type"],_hoisted_4$b={scope:"row",class:"name"},_hoisted_5$a={class:"size"},_hoisted_6$9={key:0},_hoisted_7$6={class:"dimension"},_hoisted_8$4={class:"created"},_hoisted_9$2={class:"modified"};function render$v(e,t,n,r,s,i){return openBlock(),createElementBlock("tr",{class:normalizeClass(["media-browser-item",{selected:i.selected}]),onDblclick:t[1]||(t[1]=withModifiers(o=>i.onDblClick(),["stop","prevent"])),onClick:t[2]||(t[2]=(...o)=>i.onClick&&i.onClick(...o))},[n.item.mime_type==="image/svg+xml"&&i.getURL()?(openBlock(),createElementBlock("td",_hoisted_1$v,[createBaseVNode("img",{src:i.getURL(),width:n.item.width,height:n.item.height,alt:"",style:{width:"100%",height:"auto"},onLoad:t[0]||(t[0]=(...o)=>i.setSize&&i.setSize(...o))},null,40,_hoisted_2$k)])):(openBlock(),createElementBlock("td",{key:1,class:"type","data-type":n.item.extension},null,8,_hoisted_3$h)),createBaseVNode("th",_hoisted_4$b,toDisplayString(n.item.name),1),createBaseVNode("td",_hoisted_5$a,[createTextVNode(toDisplayString(i.size),1),i.size!==""?(openBlock(),createElementBlock("span",_hoisted_6$9,"KB")):createCommentVNode("v-if",!0)]),createBaseVNode("td",_hoisted_7$6,toDisplayString(i.dimension),1),createBaseVNode("td",_hoisted_8$4,toDisplayString(n.item.create_date_formatted),1),createBaseVNode("td",_hoisted_9$2,toDisplayString(n.item.modified_date_formatted),1)],34)}script$v.render=render$v,script$v.__file="administrator/components/com_media/resources/scripts/components/browser/table/row.vue";var script$u={name:"MediaBrowserTable",components:{MediaBrowserItemRow:script$v},props:{localItems:{type:Object,default:()=>{}},currentDirectory:{type:String,default:""}},methods:{changeOrder(e){this.$store.commit(UPDATE_SORT_BY,e),this.$store.commit(UPDATE_SORT_DIRECTION,this.$store.state.sortDirection==="asc"?"desc":"asc")}}};const _hoisted_1$u={class:"table media-browser-table"},_hoisted_2$j={class:"visually-hidden"},_hoisted_3$g={class:"media-browser-table-head"},_hoisted_4$a={class:"name",scope:"col"},_hoisted_5$9={class:"size",scope:"col"},_hoisted_6$8={class:"dimension",scope:"col"},_hoisted_7$5={class:"created",scope:"col"},_hoisted_8$3={class:"modified",scope:"col"};function render$u(e,t,n,r,s,i){const o=resolveComponent("MediaBrowserItemRow");return openBlock(),createElementBlock("table",_hoisted_1$u,[createBaseVNode("caption",_hoisted_2$j,toDisplayString(e.sprintf("COM_MEDIA_BROWSER_TABLE_CAPTION",n.currentDirectory)),1),createBaseVNode("thead",_hoisted_3$g,[createBaseVNode("tr",null,[t[5]||(t[5]=createBaseVNode("th",{class:"type",scope:"col"},null,-1)),createBaseVNode("th",_hoisted_4$a,[createBaseVNode("button",{class:"btn btn-link",onClick:t[0]||(t[0]=a=>i.changeOrder("name"))},[createTextVNode(toDisplayString(e.translate("COM_MEDIA_MEDIA_NAME"))+" ",1),createBaseVNode("span",{class:normalizeClass(["ms-1",{"icon-sort":e.$store.state.sortBy!=="name","icon-caret-up":e.$store.state.sortBy==="name"&&e.$store.state.sortDirection==="asc","icon-caret-down":e.$store.state.sortBy==="name"&&e.$store.state.sortDirection==="desc"}]),"aria-hidden":"true"},null,2)])]),createBaseVNode("th",_hoisted_5$9,[createBaseVNode("button",{class:"btn btn-link",onClick:t[1]||(t[1]=a=>i.changeOrder("size"))},[createTextVNode(toDisplayString(e.translate("COM_MEDIA_MEDIA_SIZE"))+" ",1),createBaseVNode("span",{class:normalizeClass(["ms-1",{"icon-sort":e.$store.state.sortBy!=="size","icon-caret-up":e.$store.state.sortBy==="size"&&e.$store.state.sortDirection==="asc","icon-caret-down":e.$store.state.sortBy==="size"&&e.$store.state.sortDirection==="desc"}]),"aria-hidden":"true"},null,2)])]),createBaseVNode("th",_hoisted_6$8,[createBaseVNode("button",{class:"btn btn-link",onClick:t[2]||(t[2]=a=>i.changeOrder("dimension"))},[createTextVNode(toDisplayString(e.translate("COM_MEDIA_MEDIA_DIMENSION"))+" ",1),createBaseVNode("span",{class:normalizeClass(["ms-1",{"icon-sort":e.$store.state.sortBy!=="dimension","icon-caret-up":e.$store.state.sortBy==="dimension"&&e.$store.state.sortDirection==="asc","icon-caret-down":e.$store.state.sortBy==="dimension"&&e.$store.state.sortDirection==="desc"}]),"aria-hidden":"true"},null,2)])]),createBaseVNode("th",_hoisted_7$5,[createBaseVNode("button",{class:"btn btn-link",onClick:t[3]||(t[3]=a=>i.changeOrder("date_created"))},[createTextVNode(toDisplayString(e.translate("COM_MEDIA_MEDIA_DATE_CREATED"))+" ",1),createBaseVNode("span",{class:normalizeClass(["ms-1",{"icon-sort":e.$store.state.sortBy!=="date_created","icon-caret-up":e.$store.state.sortBy==="date_created"&&e.$store.state.sortDirection==="asc","icon-caret-down":e.$store.state.sortBy==="date_created"&&e.$store.state.sortDirection==="desc"}]),"aria-hidden":"true"},null,2)])]),createBaseVNode("th",_hoisted_8$3,[createBaseVNode("button",{class:"btn btn-link",onClick:t[4]||(t[4]=a=>i.changeOrder("date_modified"))},[createTextVNode(toDisplayString(e.translate("COM_MEDIA_MEDIA_DATE_MODIFIED"))+" ",1),createBaseVNode("span",{class:normalizeClass(["ms-1",{"icon-sort":e.$store.state.sortBy!=="date_modified","icon-caret-up":e.$store.state.sortBy==="date_modified"&&e.$store.state.sortDirection==="asc","icon-caret-down":e.$store.state.sortBy==="date_modified"&&e.$store.state.sortDirection==="desc"}]),"aria-hidden":"true"},null,2)])])])]),createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.localItems,a=>(openBlock(),createBlock(o,{key:a.path,item:a,"local-items":n.localItems},null,8,["item","local-items"]))),128))])])}script$u.render=render$u,script$u.__file="administrator/components/com_media/resources/scripts/components/browser/table/table.vue";var script$t={name:"MediaBrowserActionItemEdit",props:{onFocused:{type:Function,default:()=>{}},mainAction:{type:Function,default:()=>{}},closingAction:{type:Function,default:()=>{}}},methods:{openRenameModal(){this.mainAction()},hideActions(){this.closingAction()},focused(e){this.onFocused(e)},editItem(){this.mainAction()}}};const _hoisted_1$t={class:"action-text"};function render$t(e,t,n,r,s,i){return openBlock(),createElementBlock("button",{type:"button",class:"action-edit",onKeyup:[t[0]||(t[0]=withKeys(o=>i.editItem(),["enter"])),t[1]||(t[1]=withKeys(o=>i.editItem(),["space"])),t[5]||(t[5]=withKeys(o=>i.hideActions(),["esc"]))],onClick:t[2]||(t[2]=withModifiers(o=>i.editItem(),["stop"])),onFocus:t[3]||(t[3]=o=>i.focused(!0)),onBlur:t[4]||(t[4]=o=>i.focused(!1))},[t[6]||(t[6]=createBaseVNode("span",{class:"image-browser-action icon-pencil-alt","aria-hidden":"true"},null,-1)),createBaseVNode("span",_hoisted_1$t,toDisplayString(e.translate("COM_MEDIA_ACTION_EDIT")),1)],32)}script$t.render=render$t,script$t.__file="administrator/components/com_media/resources/scripts/components/browser/actionItems/edit.vue";var script$s={name:"MediaBrowserActionItemDelete",props:{onFocused:{type:Function,default:()=>{}},mainAction:{type:Function,default:()=>{}},closingAction:{type:Function,default:()=>{}}},methods:{openConfirmDeleteModal(){this.mainAction()},hideActions(){this.hideActions()},focused(e){this.onFocused(e)}}};const _hoisted_1$s={class:"action-text"};function render$s(e,t,n,r,s,i){return openBlock(),createElementBlock("button",{type:"button",class:"action-delete",onKeyup:[t[0]||(t[0]=withKeys(o=>i.openConfirmDeleteModal(),["enter"])),t[1]||(t[1]=withKeys(o=>i.openConfirmDeleteModal(),["space"])),t[4]||(t[4]=withKeys(o=>i.hideActions(),["esc"]))],onFocus:t[2]||(t[2]=o=>i.focused(!0)),onBlur:t[3]||(t[3]=o=>i.focused(!1)),onClick:t[5]||(t[5]=withModifiers(o=>i.openConfirmDeleteModal(),["stop"]))},[t[6]||(t[6]=createBaseVNode("span",{class:"image-browser-action icon-trash","aria-hidden":"true"},null,-1)),createBaseVNode("span",_hoisted_1$s,toDisplayString(e.translate("COM_MEDIA_ACTION_DELETE")),1)],32)}script$s.render=render$s,script$s.__file="administrator/components/com_media/resources/scripts/components/browser/actionItems/delete.vue";var script$r={name:"MediaBrowserActionItemDownload",props:{onFocused:{type:Function,default:()=>{}},mainAction:{type:Function,default:()=>{}},closingAction:{type:Function,default:()=>{}}},methods:{download(){this.mainAction()},hideActions(){this.closingAction()},focused(e){this.onFocused(e)}}};const _hoisted_1$r={class:"action-text"};function render$r(e,t,n,r,s,i){return openBlock(),createElementBlock("button",{type:"button",class:"action-download",onKeyup:[t[0]||(t[0]=withKeys(o=>i.download(),["enter"])),t[1]||(t[1]=withKeys(o=>i.download(),["space"])),t[5]||(t[5]=withKeys(o=>i.hideActions(),["esc"]))],onClick:t[2]||(t[2]=withModifiers(o=>i.download(),["stop"])),onFocus:t[3]||(t[3]=o=>i.focused(!0)),onBlur:t[4]||(t[4]=o=>i.focused(!1))},[t[6]||(t[6]=createBaseVNode("span",{class:"image-browser-action icon-download","aria-hidden":"true"},null,-1)),createBaseVNode("span",_hoisted_1$r,toDisplayString(e.translate("COM_MEDIA_ACTION_DOWNLOAD")),1)],32)}script$r.render=render$r,script$r.__file="administrator/components/com_media/resources/scripts/components/browser/actionItems/download.vue";var script$q={name:"MediaBrowserActionItemPreview",props:{onFocused:{type:Function,default:()=>{}},mainAction:{type:Function,default:()=>{}},closingAction:{type:Function,default:()=>{}}},methods:{openPreview(){this.mainAction()},hideActions(){this.closingAction()},focused(e){this.onFocused(e)}}};const _hoisted_1$q={class:"action-text"};function render$q(e,t,n,r,s,i){return openBlock(),createElementBlock("button",{type:"button",class:"action-preview",onClick:t[0]||(t[0]=withModifiers(o=>i.openPreview(),["stop"])),onKeyup:[t[1]||(t[1]=withKeys(o=>i.openPreview(),["enter"])),t[2]||(t[2]=withKeys(o=>i.openPreview(),["space"])),t[5]||(t[5]=withKeys(o=>i.hideActions(),["esc"]))],onFocus:t[3]||(t[3]=o=>i.focused(!0)),onBlur:t[4]||(t[4]=o=>i.focused(!1))},[t[6]||(t[6]=createBaseVNode("span",{class:"image-browser-action icon-search-plus","aria-hidden":"true"},null,-1)),createBaseVNode("span",_hoisted_1$q,toDisplayString(e.translate("COM_MEDIA_ACTION_PREVIEW")),1)],32)}script$q.render=render$q,script$q.__file="administrator/components/com_media/resources/scripts/components/browser/actionItems/preview.vue";var script$p={name:"MediaBrowserActionItemRename",props:{onFocused:{type:Function,default:()=>{}},mainAction:{type:Function,default:()=>{}},closingAction:{type:Function,default:()=>{}}},methods:{openRenameModal(){this.mainAction()},hideActions(){this.closingAction()},focused(e){this.onFocused(e)}}};const _hoisted_1$p={class:"action-text"};function render$p(e,t,n,r,s,i){return openBlock(),createElementBlock("button",{ref:"actionRenameButton",type:"button",class:"action-rename",onClick:t[0]||(t[0]=withModifiers(o=>i.openRenameModal(),["stop"])),onKeyup:[t[1]||(t[1]=withKeys(o=>i.openRenameModal(),["enter"])),t[2]||(t[2]=withKeys(o=>i.openRenameModal(),["space"])),t[5]||(t[5]=withKeys(o=>i.hideActions(),["esc"]))],onFocus:t[3]||(t[3]=o=>i.focused(!0)),onBlur:t[4]||(t[4]=o=>i.focused(!1))},[t[6]||(t[6]=createBaseVNode("span",{class:"image-browser-action fa fa-i-cursor","aria-hidden":"true"},null,-1)),createBaseVNode("span",_hoisted_1$p,toDisplayString(e.translate("COM_MEDIA_ACTION_RENAME")),1)],544)}script$p.render=render$p,script$p.__file="administrator/components/com_media/resources/scripts/components/browser/actionItems/rename.vue";var script$o={name:"MediaBrowserActionItemShare",props:{onFocused:{type:Function,default:()=>{}},mainAction:{type:Function,default:()=>{}},closingAction:{type:Function,default:()=>{}}},methods:{openShareUrlModal(){this.mainAction()},hideActions(){this.closingAction()},focused(e){this.onFocused(e)}}};const _hoisted_1$o={class:"action-text"};function render$o(e,t,n,r,s,i){return openBlock(),createElementBlock("button",{type:"button",class:"action-url",onClick:t[0]||(t[0]=withModifiers(o=>i.openShareUrlModal(),["stop"])),onKeyup:[t[1]||(t[1]=withKeys(o=>i.openShareUrlModal(),["enter"])),t[2]||(t[2]=withKeys(o=>i.openShareUrlModal(),["space"])),t[5]||(t[5]=withKeys(o=>i.hideActions(),["esc"]))],onFocus:t[3]||(t[3]=o=>i.focused(!0)),onBlur:t[4]||(t[4]=o=>i.focused(!1))},[t[6]||(t[6]=createBaseVNode("span",{class:"image-browser-action icon-link","aria-hidden":"true"},null,-1)),createBaseVNode("span",_hoisted_1$o,toDisplayString(e.translate("COM_MEDIA_ACTION_SHARE")),1)],32)}script$o.render=render$o,script$o.__file="administrator/components/com_media/resources/scripts/components/browser/actionItems/share.vue";var script$n={name:"MediaBrowserActionItemToggle",props:{mainAction:{type:Function,default:()=>{}}},emits:["on-focused"],methods:{openActions(){this.mainAction()},focused(e){this.$emit("on-focused",e)}}};const _hoisted_1$n=["aria-label","title"];function render$n(e,t,n,r,s,i){return openBlock(),createElementBlock("button",{type:"button",class:"action-toggle","aria-label":e.sprintf("COM_MEDIA_MANAGE_ITEM",e.$parent.$props.item.name),title:e.sprintf("COM_MEDIA_MANAGE_ITEM",e.$parent.$props.item.name),onKeyup:[t[1]||(t[1]=withKeys(o=>i.openActions(),["enter"])),t[4]||(t[4]=withKeys(o=>i.openActions(),["space"]))],onFocus:t[2]||(t[2]=o=>i.focused(!0)),onBlur:t[3]||(t[3]=o=>i.focused(!1))},[createBaseVNode("span",{class:"image-browser-action icon-ellipsis-h","aria-hidden":"true",onClick:t[0]||(t[0]=withModifiers(o=>i.openActions(),["stop"]))})],40,_hoisted_1$n)}script$n.render=render$n,script$n.__file="administrator/components/com_media/resources/scripts/components/browser/actionItems/toggle.vue";var script$m={name:"MediaBrowserActionItemsContainer",components:{MediaBrowserActionItemEdit:script$t,MediaBrowserActionItemDelete:script$s,MediaBrowserActionItemDownload:script$r,MediaBrowserActionItemPreview:script$q,MediaBrowserActionItemRename:script$p,MediaBrowserActionItemShare:script$o,MediaBrowserActionItemToggle:script$n},props:{item:{type:Object,default:()=>{}},edit:{type:Function,default:()=>{}},previewable:{type:Boolean,default:!1},downloadable:{type:Boolean,default:!1},shareable:{type:Boolean,default:!1}},emits:["toggle-settings"],data(){return{showActions:!1}},computed:{canEdit(){return api.canEdit&&(typeof this.item.canEdit<"u"?this.item.canEdit:!0)},canDelete(){return api.canDelete&&(typeof this.item.canDelete<"u"?this.item.canDelete:!0)},canOpenEditView(){return["jpg","jpeg","png"].includes(this.item.extension.toLowerCase())}},watch:{"$store.state.showRenameModal":function(e){!e&&this.$refs.actionToggle&&this.$store.state.selectedItems.find(t=>t.name===this.item.name)!==void 0&&this.$refs.actionToggle.$el.focus()}},methods:{hideActions(){this.showActions=!1,this.$parent.$parent.$data.actionsActive=!1},openPreview(){this.$store.commit(SHOW_PREVIEW_MODAL),this.$store.dispatch("getFullContents",this.item)},download(){this.$store.dispatch("download",this.item)},openConfirmDeleteModal(){this.$store.commit(UNSELECT_ALL_BROWSER_ITEMS),this.$store.commit(SELECT_BROWSER_ITEM,this.item),this.$store.commit(SHOW_CONFIRM_DELETE_MODAL)},openRenameModal(){this.hideActions(),this.$store.commit(SELECT_BROWSER_ITEM,this.item),this.$store.commit(SHOW_RENAME_MODAL)},openShareUrlModal(){this.$store.commit(SELECT_BROWSER_ITEM,this.item),this.$store.commit(SHOW_SHARE_MODAL)},openActions(){this.showActions=!0,this.$parent.$parent.$data.actionsActive=!0;const e=[...this.$el.parentElement.querySelectorAll(".media-browser-actions-list button")];e.length&&(e.forEach((t,n)=>{n===0?t.tabIndex=0:t.tabIndex=-1}),e[0].focus())},openLastActions(){this.showActions=!0,this.$parent.$parent.$data.actionsActive=!0;const e=[...this.$el.parentElement.querySelectorAll(".media-browser-actions-list button")];e.length&&(e.forEach((t,n)=>{n===e.length?t.tabIndex=0:t.tabIndex=-1}),this.$nextTick(()=>e[e.length-1].focus()))},focusNext(e){const t=e.target,n=[...t.parentElement.querySelectorAll("button")],r=n[n.length-1];t.tabIndex=-1,t===r?(n[0].focus(),n[0].tabIndex=0):(t.nextElementSibling.focus(),t.nextElementSibling.tabIndex=0)},focusPrev(e){const t=e.target,n=[...t.parentElement.querySelectorAll("button")],r=n[0];t.tabIndex=-1,t===r?(n[n.length-1].focus(),n[n.length-1].tabIndex=0):(t.previousElementSibling.focus(),t.previousElementSibling.tabIndex=0)},focusFirst(e){const n=[...e.target.parentElement.querySelectorAll("button")];n[0].focus(),n.forEach((r,s)=>{s===0?r.tabIndex=0:r.tabIndex=-1})},focusLast(e){const n=[...e.target.parentElement.querySelectorAll("button")];n[n.length-1].focus(),n.forEach((r,s)=>{s===n.length?r.tabIndex=0:r.tabIndex=-1})},editItem(){this.edit()},focused(e){this.$emit("toggle-settings",e)}}};const _hoisted_1$m=["aria-label","title"],_hoisted_2$i=["aria-label"],_hoisted_3$f={"aria-hidden":"true",class:"media-browser-actions-item-name"};function render$m(e,t,n,r,s,i){const o=resolveComponent("MediaBrowserActionItemToggle"),a=resolveComponent("MediaBrowserActionItemPreview"),l=resolveComponent("MediaBrowserActionItemDownload"),u=resolveComponent("MediaBrowserActionItemRename"),c=resolveComponent("MediaBrowserActionItemEdit"),d=resolveComponent("MediaBrowserActionItemShare"),g=resolveComponent("MediaBrowserActionItemDelete");return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("span",{class:"media-browser-select","aria-label":e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM"),title:e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM"),tabindex:"0",onFocusin:t[0]||(t[0]=_=>i.focused(!0)),onFocusout:t[1]||(t[1]=_=>i.focused(!1))},null,40,_hoisted_1$m),createBaseVNode("div",{class:normalizeClass(["media-browser-actions",{active:s.showActions}])},[createVNode(o,{ref:"actionToggle","main-action":i.openActions,onOnFocused:i.focused,onKeyup:[t[2]||(t[2]=withKeys(_=>i.openLastActions(),["up"])),t[3]||(t[3]=withKeys(_=>i.openActions(),["down"])),t[4]||(t[4]=withKeys(_=>i.openLastActions(),["end"])),t[5]||(t[5]=withKeys(_=>i.openActions(),["home"]))],onKeydown:[t[6]||(t[6]=withKeys(withModifiers(()=>{},["prevent"]),["up"])),t[7]||(t[7]=withKeys(withModifiers(()=>{},["prevent"]),["down"])),t[8]||(t[8]=withKeys(withModifiers(()=>{},["prevent"]),["home"])),t[9]||(t[9]=withKeys(withModifiers(()=>{},["prevent"]),["end"]))]},null,8,["main-action","onOnFocused"]),s.showActions?(openBlock(),createElementBlock("div",{key:0,ref:"actionList",class:"media-browser-actions-list",role:"toolbar","aria-orientation":"vertical","aria-label":e.sprintf("COM_MEDIA_ACTIONS_TOOLBAR_LABEL",e.$parent.$props.item.name)},[createBaseVNode("span",_hoisted_3$f,[createBaseVNode("strong",null,toDisplayString(e.$parent.$props.item.name),1)]),n.previewable?(openBlock(),createBlock(a,{key:0,ref:"actionPreview","on-focused":i.focused,"main-action":i.openPreview,"closing-action":i.hideActions,onKeydown:[t[10]||(t[10]=withKeys(withModifiers(()=>{},["prevent"]),["up"])),t[11]||(t[11]=withKeys(withModifiers(()=>{},["prevent"]),["down"])),t[12]||(t[12]=withKeys(withModifiers(()=>{},["prevent"]),["home"])),t[13]||(t[13]=withKeys(withModifiers(()=>{},["prevent"]),["end"])),withKeys(i.hideActions,["tab"])],onKeyup:[withKeys(i.focusPrev,["up"]),withKeys(i.focusNext,["down"]),withKeys(i.focusLast,["end"]),withKeys(i.focusFirst,["home"]),withKeys(i.hideActions,["esc"])]},null,8,["on-focused","main-action","closing-action","onKeyup","onKeydown"])):createCommentVNode("v-if",!0),n.downloadable?(openBlock(),createBlock(l,{key:1,ref:"actionDownload","on-focused":i.focused,"main-action":i.download,"closing-action":i.hideActions,onKeydown:[t[14]||(t[14]=withKeys(withModifiers(()=>{},["prevent"]),["up"])),t[15]||(t[15]=withKeys(withModifiers(()=>{},["prevent"]),["down"])),withKeys(i.hideActions,["tab"]),t[16]||(t[16]=withKeys(withModifiers(()=>{},["prevent"]),["home"])),t[17]||(t[17]=withKeys(withModifiers(()=>{},["prevent"]),["end"]))],onKeyup:[withKeys(i.focusPrev,["up"]),withKeys(i.focusNext,["down"]),withKeys(i.hideActions,["esc"]),withKeys(i.focusLast,["end"]),withKeys(i.focusFirst,["home"])]},null,8,["on-focused","main-action","closing-action","onKeyup","onKeydown"])):createCommentVNode("v-if",!0),i.canEdit?(openBlock(),createBlock(u,{key:2,ref:"actionRename","on-focused":i.focused,"main-action":i.openRenameModal,"closing-action":i.hideActions,onKeydown:[t[18]||(t[18]=withKeys(withModifiers(()=>{},["prevent"]),["up"])),t[19]||(t[19]=withKeys(withModifiers(()=>{},["prevent"]),["down"])),withKeys(i.hideActions,["tab"]),t[20]||(t[20]=withKeys(withModifiers(()=>{},["prevent"]),["home"])),t[21]||(t[21]=withKeys(withModifiers(()=>{},["prevent"]),["end"]))],onKeyup:[withKeys(i.focusPrev,["up"]),withKeys(i.focusNext,["down"]),withKeys(i.hideActions,["esc"]),withKeys(i.focusLast,["end"]),withKeys(i.focusFirst,["home"])]},null,8,["on-focused","main-action","closing-action","onKeyup","onKeydown"])):createCommentVNode("v-if",!0),i.canEdit&&i.canOpenEditView?(openBlock(),createBlock(c,{key:3,ref:"actionEdit","on-focused":i.focused,"main-action":i.editItem,"closing-action":i.hideActions,onKeydown:[t[22]||(t[22]=withKeys(withModifiers(()=>{},["prevent"]),["up"])),t[23]||(t[23]=withKeys(withModifiers(()=>{},["prevent"]),["down"])),withKeys(i.hideActions,["tab"]),t[24]||(t[24]=withKeys(withModifiers(()=>{},["prevent"]),["home"])),t[25]||(t[25]=withKeys(withModifiers(()=>{},["prevent"]),["end"]))],onKeyup:[withKeys(i.focusPrev,["up"]),withKeys(i.focusNext,["down"]),withKeys(i.hideActions,["esc"]),withKeys(i.focusLast,["end"]),withKeys(i.focusFirst,["home"])]},null,8,["on-focused","main-action","closing-action","onKeyup","onKeydown"])):createCommentVNode("v-if",!0),n.shareable?(openBlock(),createBlock(d,{key:4,ref:"actionShare","on-focused":i.focused,"main-action":i.openShareUrlModal,"closing-action":i.hideActions,onKeydown:[t[26]||(t[26]=withKeys(withModifiers(()=>{},["prevent"]),["up"])),t[27]||(t[27]=withKeys(withModifiers(()=>{},["prevent"]),["down"])),withKeys(i.hideActions,["tab"]),t[28]||(t[28]=withKeys(withModifiers(()=>{},["prevent"]),["home"])),t[29]||(t[29]=withKeys(withModifiers(()=>{},["prevent"]),["end"]))],onKeyup:[withKeys(i.focusPrev,["up"]),withKeys(i.focusNext,["down"]),withKeys(i.hideActions,["esc"]),withKeys(i.focusLast,["end"]),withKeys(i.focusFirst,["home"])]},null,8,["on-focused","main-action","closing-action","onKeyup","onKeydown"])):createCommentVNode("v-if",!0),i.canDelete?(openBlock(),createBlock(g,{key:5,ref:"actionDelete","on-focused":i.focused,"main-action":i.openConfirmDeleteModal,"hide-actions":i.hideActions,onKeydown:[t[30]||(t[30]=withKeys(withModifiers(()=>{},["prevent"]),["up"])),t[31]||(t[31]=withKeys(withModifiers(()=>{},["prevent"]),["down"])),withKeys(i.hideActions,["tab"]),t[32]||(t[32]=withKeys(withModifiers(()=>{},["prevent"]),["home"])),t[33]||(t[33]=withKeys(withModifiers(()=>{},["prevent"]),["end"]))],onKeyup:[withKeys(i.focusPrev,["up"]),withKeys(i.focusNext,["down"]),withKeys(i.hideActions,["esc"]),withKeys(i.focusLast,["end"]),withKeys(i.focusFirst,["home"])]},null,8,["on-focused","main-action","hide-actions","onKeyup","onKeydown"])):createCommentVNode("v-if",!0)],8,_hoisted_2$i)):createCommentVNode("v-if",!0)],2)],64)}script$m.render=render$m,script$m.__file="administrator/components/com_media/resources/scripts/components/browser/actionItems/actionItemsContainer.vue";var script$l={name:"MediaBrowserItemDirectory",components:{MediaBrowserActionItemsContainer:script$m},mixins:[navigable],props:{item:{type:Object,default:()=>{}}},emits:["toggle-settings"],data(){return{showActions:!1}},methods:{onPreviewDblClick(){this.navigateTo(this.item.path),window.parent.document.dispatchEvent(new CustomEvent("onMediaFileSelected",{bubbles:!0,cancelable:!1,detail:{type:this.item.type,name:this.item.name,path:this.item.path}}))},hideActions(){this.$refs.container&&this.$refs.container.hideActions()},toggleSettings(e){this.$emit("toggle-settings",e)}}};const _hoisted_1$l={class:"media-browser-item-info"};function render$l(e,t,n,r,s,i){const o=resolveComponent("MediaBrowserActionItemsContainer");return openBlock(),createElementBlock("div",{class:"media-browser-item-directory",onMouseleave:t[2]||(t[2]=a=>i.hideActions())},[createBaseVNode("div",{class:"media-browser-item-preview",tabindex:"0",onDblclick:t[0]||(t[0]=withModifiers(a=>i.onPreviewDblClick(),["stop","prevent"])),onKeyup:t[1]||(t[1]=withKeys(a=>i.onPreviewDblClick(),["enter"]))},[...t[3]||(t[3]=[createBaseVNode("div",{class:"file-background"},[createBaseVNode("div",{class:"folder-icon"},[createBaseVNode("span",{class:"icon-folder"})])],-1)])],32),createBaseVNode("div",_hoisted_1$l,toDisplayString(n.item.name),1),createVNode(o,{ref:"container",item:n.item,onToggleSettings:i.toggleSettings},null,8,["item","onToggleSettings"])],32)}script$l.render=render$l,script$l.__file="administrator/components/com_media/resources/scripts/components/browser/items/directory.vue";var script$k={name:"MediaBrowserItemFile",components:{MediaBrowserActionItemsContainer:script$m},props:{item:{type:Object,default:()=>{}},focused:{type:Boolean,default:!1}},emits:["toggle-settings"],data(){return{showActions:!1}},methods:{hideActions(){this.$refs.container&&this.$refs.container.hideActions()},openPreview(){this.$refs.container.openPreview()},toggleSettings(e){this.$emit("toggle-settings",e)}}};const _hoisted_1$k={class:"media-browser-item-info"},_hoisted_2$h=["aria-label","title"];function render$k(e,t,n,r,s,i){const o=resolveComponent("MediaBrowserActionItemsContainer");return openBlock(),createElementBlock("div",{class:"media-browser-item-file",onMouseleave:t[0]||(t[0]=a=>i.hideActions())},[t[1]||(t[1]=createBaseVNode("div",{class:"media-browser-item-preview"},[createBaseVNode("div",{class:"file-background"},[createBaseVNode("div",{class:"file-icon"},[createBaseVNode("span",{class:"icon-file-alt"})])])],-1)),createBaseVNode("div",_hoisted_1$k,toDisplayString(n.item.name)+" "+toDisplayString(n.item.filetype),1),createBaseVNode("span",{class:"media-browser-select","aria-label":e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM"),title:e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM")},null,8,_hoisted_2$h),createVNode(o,{ref:"container",item:n.item,previewable:!0,downloadable:!0,shareable:!0,onToggleSettings:i.toggleSettings},null,8,["item","onToggleSettings"])],32)}script$k.render=render$k,script$k.__file="administrator/components/com_media/resources/scripts/components/browser/items/file.vue";var script$j={name:"MediaBrowserItemImage",components:{MediaBrowserActionItemsContainer:script$m},props:{item:{type:Object,required:!0},focused:{type:Boolean,required:!0,default:!1}},emits:["toggle-settings"],data(){return{showActions:{type:Boolean,default:!1}}},computed:{getURL(){return this.item.thumb_path?this.item.thumb_path.split(Joomla.getOptions("system.paths").rootFull).length>1?`${this.item.thumb_path}?${this.item.modified_date?new Date(this.item.modified_date).valueOf():api.mediaVersion}`:`${this.item.thumb_path}`:""},width(){return this.item.width>0?this.item.width:null},height(){return this.item.height>0?this.item.height:null},loading(){return this.item.width>0?"lazy":null},altTag(){return this.item.name}},methods:{canEdit(){return["jpg","jpeg","png"].includes(this.item.extension.toLowerCase())},hideActions(){this.$refs.container&&this.$refs.container.hideActions()},openPreview(){this.$refs.container.openPreview()},editItem(){const e=`${Joomla.getOptions("com_media").editViewUrl}&path=`;window.location.href=e+this.item.path},toggleSettings(e){this.$emit("toggle-settings",e)},setSize(e){if(this.item.mime_type==="image/svg+xml"){const t=e.target;this.$store.dispatch("updateItemProperties",{item:this.item,width:t.naturalWidth?t.naturalWidth:300,height:t.naturalHeight?t.naturalHeight:150})}}}};const _hoisted_1$j=["title"],_hoisted_2$g={class:"image-background"},_hoisted_3$e=["src","alt","loading","width","height"],_hoisted_4$9={key:1,class:"icon-eye-slash image-placeholder","aria-hidden":"true"},_hoisted_5$8=["title"],_hoisted_6$7=["aria-label","title"];function render$j(e,t,n,r,s,i){const o=resolveComponent("MediaBrowserActionItemsContainer");return openBlock(),createElementBlock("div",{class:"media-browser-image",tabindex:"0",onDblclick:t[1]||(t[1]=a=>i.openPreview()),onMouseleave:t[2]||(t[2]=a=>i.hideActions()),onKeyup:t[3]||(t[3]=withKeys(a=>i.openPreview(),["enter"]))},[createBaseVNode("div",{class:"media-browser-item-preview",title:n.item.name},[createBaseVNode("div",_hoisted_2$g,[i.getURL?(openBlock(),createElementBlock("img",{key:0,class:"image-cropped",src:i.getURL,alt:i.altTag,loading:i.loading,width:i.width,height:i.height,onLoad:t[0]||(t[0]=(...a)=>i.setSize&&i.setSize(...a))},null,40,_hoisted_3$e)):createCommentVNode("v-if",!0),i.getURL?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",_hoisted_4$9))])],8,_hoisted_1$j),createBaseVNode("div",{class:"media-browser-item-info",title:n.item.name},toDisplayString(n.item.name)+" "+toDisplayString(n.item.filetype),9,_hoisted_5$8),createBaseVNode("span",{class:"media-browser-select","aria-label":e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM"),title:e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM")},null,8,_hoisted_6$7),createVNode(o,{ref:"container",item:n.item,edit:i.editItem,previewable:!0,downloadable:!0,shareable:!0,onToggleSettings:i.toggleSettings},null,8,["item","edit","onToggleSettings"])],32)}script$j.render=render$j,script$j.__file="administrator/components/com_media/resources/scripts/components/browser/items/image.vue";var script$i={name:"MediaBrowserItemVideo",components:{MediaBrowserActionItemsContainer:script$m},props:{item:{type:Object,default:()=>{}},focused:{type:Boolean,default:!1}},emits:["toggle-settings"],data(){return{showActions:!1}},methods:{hideActions(){this.$refs.container&&this.$refs.container.hideActions()},openPreview(){this.$refs.container.openPreview()},toggleSettings(e){this.$emit("toggle-settings",e)}}};const _hoisted_1$i={class:"media-browser-item-info"};function render$i(e,t,n,r,s,i){const o=resolveComponent("MediaBrowserActionItemsContainer");return openBlock(),createElementBlock("div",{class:"media-browser-image",onDblclick:t[0]||(t[0]=a=>i.openPreview()),onMouseleave:t[1]||(t[1]=a=>i.hideActions())},[t[2]||(t[2]=createBaseVNode("div",{class:"media-browser-item-preview"},[createBaseVNode("div",{class:"file-background"},[createBaseVNode("div",{class:"file-icon"},[createBaseVNode("span",{class:"fas fa-file-video"})])])],-1)),createBaseVNode("div",_hoisted_1$i,toDisplayString(n.item.name)+" "+toDisplayString(n.item.filetype),1),createVNode(o,{ref:"container",item:n.item,previewable:!0,downloadable:!0,shareable:!0,onToggleSettings:i.toggleSettings},null,8,["item","onToggleSettings"])],32)}script$i.render=render$i,script$i.__file="administrator/components/com_media/resources/scripts/components/browser/items/video.vue";var script$h={name:"MediaBrowserItemAudio",components:{MediaBrowserActionItemsContainer:script$m},props:{item:{type:Object,default:()=>{}},focused:{type:Boolean,default:!1}},emits:["toggle-settings"],data(){return{showActions:!1}},methods:{hideActions(){this.$refs.container&&this.$refs.container.hideActions()},openPreview(){this.$refs.container.openPreview()},toggleSettings(e){this.$emit("toggle-settings",e)}}};const _hoisted_1$h={class:"media-browser-item-info"};function render$h(e,t,n,r,s,i){const o=resolveComponent("MediaBrowserActionItemsContainer");return openBlock(),createElementBlock("div",{class:"media-browser-audio",tabindex:"0",onDblclick:t[0]||(t[0]=a=>i.openPreview()),onMouseleave:t[1]||(t[1]=a=>i.hideActions()),onKeyup:t[2]||(t[2]=withKeys(a=>i.openPreview(),["enter"]))},[t[3]||(t[3]=createBaseVNode("div",{class:"media-browser-item-preview"},[createBaseVNode("div",{class:"file-background"},[createBaseVNode("div",{class:"file-icon"},[createBaseVNode("span",{class:"fas fa-file-audio"})])])],-1)),createBaseVNode("div",_hoisted_1$h,toDisplayString(n.item.name)+" "+toDisplayString(n.item.filetype),1),createVNode(o,{ref:"container",item:n.item,previewable:!0,downloadable:!0,shareable:!0,onToggleSettings:i.toggleSettings},null,8,["item","onToggleSettings"])],32)}script$h.render=render$h,script$h.__file="administrator/components/com_media/resources/scripts/components/browser/items/audio.vue";var script$g={name:"MediaBrowserItemDocument",components:{MediaBrowserActionItemsContainer:script$m},props:{item:{type:Object,default:()=>{}},focused:{type:Boolean,default:!1}},emits:["toggle-settings"],data(){return{showActions:!1}},methods:{hideActions(){this.$refs.container&&this.$refs.container.hideActions()},openPreview(){this.$refs.container.openPreview()},toggleSettings(e){this.$emit("toggle-settings",e)}}};const _hoisted_1$g={class:"media-browser-item-info"},_hoisted_2$f=["aria-label","title"];function render$g(e,t,n,r,s,i){const o=resolveComponent("MediaBrowserActionItemsContainer");return openBlock(),createElementBlock("div",{class:"media-browser-doc",onDblclick:t[0]||(t[0]=a=>i.openPreview()),onMouseleave:t[1]||(t[1]=a=>i.hideActions())},[t[2]||(t[2]=createBaseVNode("div",{class:"media-browser-item-preview"},[createBaseVNode("div",{class:"file-background"},[createBaseVNode("div",{class:"file-icon"},[createBaseVNode("span",{class:"fas fa-file"})])])],-1)),createBaseVNode("div",_hoisted_1$g,toDisplayString(n.item.name)+" "+toDisplayString(n.item.filetype),1),createBaseVNode("span",{class:"media-browser-select","aria-label":e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM"),title:e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM")},null,8,_hoisted_2$f),createVNode(o,{ref:"container",item:n.item,previewable:!0,downloadable:!0,shareable:!0,onToggleSettings:i.toggleSettings},null,8,["item","onToggleSettings"])],32)}script$g.render=render$g,script$g.__file="administrator/components/com_media/resources/scripts/components/browser/items/document.vue";var MediaBrowserItem={props:{item:{type:Object,default:()=>{}},localItems:{type:Array,default:()=>[]}},data(){return{hoverActive:!1,actionsActive:!1}},methods:{itemType(){return this.item.type==="dir"?script$l:this.item.extension&&api.imagesExtensions.includes(this.item.extension.toLowerCase())?script$j:this.item.extension&&api.videoExtensions.includes(this.item.extension.toLowerCase())?script$i:this.item.extension&&api.audioExtensions.includes(this.item.extension.toLowerCase())?script$h:this.item.extension&&api.documentExtensions.includes(this.item.extension.toLowerCase())?script$g:script$k},styles(){return{width:"calc("+this.$store.state.gridSize+"% - 20px)"}},isSelected(){return this.$store.state.selectedItems.some(e=>e.path===this.item.path)},isHoverActive(){return this.hoverActive},hasActions(){return this.actionsActive},mouseover(){this.hoverActive=!0},mouseleave(){this.hoverActive=!1},handleClick(e){return onItemClick(e,this)},toggleSettings(e){this["mouse"+(e?"over":"leave")]()}},render(){return h("div",{class:{"media-browser-item":!0,selected:this.isSelected(),active:this.isHoverActive(),actions:this.hasActions()},onClick:this.handleClick,onMouseover:this.mouseover,onMouseleave:this.mouseleave},[h(this.itemType(),{item:this.item,onToggleSettings:this.toggleSettings,focused:!1})])}},script$f={name:"MediaInfobar",computed:{item(){const{selectedItems:e}=this.$store.state;return e.length===1?e[0]:e.length>1?e.slice(-1)[0]:this.$store.getters.getSelectedDirectory},showInfoBar(){return this.$store.state.showInfoBar}},methods:{hideInfoBar(){this.$store.commit(HIDE_INFOBAR)}}};const _hoisted_1$f={key:0,class:"media-infobar"},_hoisted_2$e={class:"media-infobar-inner"},_hoisted_3$d={key:0,class:"text-center"},_hoisted_4$8={key:1},_hoisted_5$7={key:0},_hoisted_6$6={key:1},_hoisted_7$4={key:2},_hoisted_8$2={key:3},_hoisted_9$1={key:4},_hoisted_10$1={key:5},_hoisted_11$1={key:6};function render$f(e,t,n,r,s,i){return openBlock(),createBlock(Transition,{name:"infobar"},{default:withCtx(()=>[i.showInfoBar&&i.item?(openBlock(),createElementBlock("div",_hoisted_1$f,[createBaseVNode("div",_hoisted_2$e,[createBaseVNode("span",{class:"infobar-close",onClick:t[0]||(t[0]=o=>i.hideInfoBar())},"\xD7"),createBaseVNode("h2",null,toDisplayString(i.item.name),1),i.item.path==="/"?(openBlock(),createElementBlock("div",_hoisted_3$d,[...t[1]||(t[1]=[createBaseVNode("span",{class:"icon-file placeholder-icon"},null,-1),createTextVNode(" Select file or folder to view its details. ",-1)])])):(openBlock(),createElementBlock("dl",_hoisted_4$8,[createBaseVNode("dt",null,toDisplayString(e.translate("COM_MEDIA_FOLDER")),1),createBaseVNode("dd",null,toDisplayString(i.item.directory),1),createBaseVNode("dt",null,toDisplayString(e.translate("COM_MEDIA_MEDIA_TYPE")),1),i.item.type==="file"?(openBlock(),createElementBlock("dd",_hoisted_5$7,toDisplayString(e.translate("COM_MEDIA_FILE")),1)):i.item.type==="dir"?(openBlock(),createElementBlock("dd",_hoisted_6$6,toDisplayString(e.translate("COM_MEDIA_FOLDER")),1)):(openBlock(),createElementBlock("dd",_hoisted_7$4," - ")),createBaseVNode("dt",null,toDisplayString(e.translate("COM_MEDIA_MEDIA_DATE_CREATED")),1),createBaseVNode("dd",null,toDisplayString(i.item.create_date_formatted),1),createBaseVNode("dt",null,toDisplayString(e.translate("COM_MEDIA_MEDIA_DATE_MODIFIED")),1),createBaseVNode("dd",null,toDisplayString(i.item.modified_date_formatted),1),createBaseVNode("dt",null,toDisplayString(e.translate("COM_MEDIA_MEDIA_DIMENSION")),1),i.item.width||i.item.height?(openBlock(),createElementBlock("dd",_hoisted_8$2,toDisplayString(i.item.width)+"px * "+toDisplayString(i.item.height)+"px ",1)):(openBlock(),createElementBlock("dd",_hoisted_9$1," - ")),createBaseVNode("dt",null,toDisplayString(e.translate("COM_MEDIA_MEDIA_SIZE")),1),i.item.size?(openBlock(),createElementBlock("dd",_hoisted_10$1,toDisplayString((i.item.size/1024).toFixed(2))+" KB ",1)):(openBlock(),createElementBlock("dd",_hoisted_11$1," - ")),createBaseVNode("dt",null,toDisplayString(e.translate("COM_MEDIA_MEDIA_MIME_TYPE")),1),createBaseVNode("dd",null,toDisplayString(i.item.mime_type),1),createBaseVNode("dt",null,toDisplayString(e.translate("COM_MEDIA_MEDIA_EXTENSION")),1),createBaseVNode("dd",null,toDisplayString(i.item.extension||"-"),1)]))])])):createCommentVNode("v-if",!0)]),_:1})}script$f.render=render$f,script$f.__file="administrator/components/com_media/resources/scripts/components/infobar/infobar.vue";function sortArray(e,t,n){return e.sort((r,s)=>t==="name"?n==="asc"?r.name.toUpperCase().localeCompare(s.name.toUpperCase(),"en",{sensitivity:"base"}):s.name.toUpperCase().localeCompare(r.name.toUpperCase(),"en",{sensitivity:"base"}):t==="size"?n==="asc"?parseInt(r.size,10)-parseInt(s.size,10):parseInt(s.size,10)-parseInt(r.size,10):t==="dimension"?n==="asc"?parseInt(r.width,10)*parseInt(r.height,10)-parseInt(s.width,10)*parseInt(s.height,10):parseInt(s.width,10)*parseInt(s.height,10)-parseInt(r.width,10)*parseInt(r.height,10):t==="date_created"?n==="asc"?new Date(r.create_date)-new Date(s.create_date):new Date(s.create_date)-new Date(r.create_date):t==="date_modified"?n==="asc"?new Date(r.modified_date)-new Date(s.modified_date):new Date(s.modified_date)-new Date(r.modified_date):e)}var script$e={name:"MediaBrowser",components:{MediaBrowserTable:script$u,MediaInfobar:script$f,MediaBrowserItem},computed:{localItems(){const e=sortArray(this.$store.getters.getSelectedDirectoryDirectories.slice(0),this.$store.state.sortBy,this.$store.state.sortDirection),t=sortArray(this.$store.getters.getSelectedDirectoryFiles.slice(0),this.$store.state.sortBy,this.$store.state.sortDirection);return[...e.filter(n=>n.name.toLowerCase().includes(this.$store.state.search.toLowerCase())),...t.filter(n=>n.name.toLowerCase().includes(this.$store.state.search.toLowerCase()))]},getHeight(){return{height:this.$store.state.listView==="table"&&!this.isEmpty?"unset":"100%"}},mediaBrowserStyles(){return{width:this.$store.state.showInfoBar?"75%":"100%",height:this.$store.state.listView==="table"&&!this.isEmpty?"unset":"100%"}},isEmptySearch(){return this.$store.state.search!==""&&this.localItems.length===0},isEmpty(){return!this.localItems.length&&!this.$store.state.isLoading},listView(){return this.$store.state.listView},mediaBrowserGridItemsClass(){return{[`media-browser-items-${this.$store.state.gridSize}`]:!0}},isModal(){return Joomla.getOptions("com_media",{}).isModal},currentDirectory(){const e=this.$store.state.selectedDirectory.split("/").filter(n=>n.length!==0);if(e.length!==1)return e[e.length-1];let t="";return this.$store.state.disks.forEach(n=>{n.drives.forEach(r=>{r.root===`${e[0]}/`&&(t=r.displayName)})}),t}},created(){document.body.addEventListener("click",this.unselectAllBrowserItems,!1)},beforeUnmount(){document.body.removeEventListener("click",this.unselectAllBrowserItems,!1)},methods:{unselectAllBrowserItems(e){const t=e.target.id!==void 0&&e.target.id==="mediaDelete",n=this.$refs.browserItems&&!this.$refs.browserItems.contains(e.target)||e.target===this.$refs.browserItems,r=this.$refs.infobar!==void 0&&!this.$refs.infobar.$el.contains(e.target);n&&r&&!t&&(this.$store.commit(UNSELECT_ALL_BROWSER_ITEMS),window.parent.document.dispatchEvent(new CustomEvent("onMediaFileSelected",{bubbles:!0,cancelable:!1,detail:{name:"",path:"",thumb:!1,fileType:!1,extension:!1}})))},onDragEnter(e){return e.stopPropagation(),!1},onDragOver(e){return e.preventDefault(),document.querySelector(".media-dragoutline").classList.add("active"),!1},upload(e){const t=new FileReader;t.onload=n=>{const{result:r}=n.target,s=r.indexOf("base64")+7,i=r.slice(s,r.length);this.$store.dispatch("uploadFile",{name:e.name,parent:this.$store.state.selectedDirectory,content:i})},t.readAsDataURL(e)},onDrop(e){e.preventDefault(),e.dataTransfer&&e.dataTransfer.files&&e.dataTransfer.files.length>0&&Array.from(e.dataTransfer.files).forEach(t=>{document.querySelector(".media-dragoutline").classList.remove("active"),this.upload(t)}),document.querySelector(".media-dragoutline").classList.remove("active")},onDragLeave(e){return e.stopPropagation(),e.preventDefault(),document.querySelector(".media-dragoutline").classList.remove("active"),!1}}};const _hoisted_1$e={key:0,class:"pt-1"},_hoisted_2$d={class:"alert alert-info m-3"},_hoisted_3$c={class:"visually-hidden"},_hoisted_4$7={key:1,class:"text-center",style:{display:"grid","justify-content":"center","align-content":"center",color:"var(--gray-200)",height:"100%"}},_hoisted_5$6={class:"media-dragoutline"},_hoisted_6$5={key:3,class:"media-browser-grid"};function render$e(e,t,n,r,s,i){const o=resolveComponent("MediaBrowserTable"),a=resolveComponent("MediaBrowserItem"),l=resolveComponent("MediaInfobar");return openBlock(),createElementBlock("div",{ref:"browserItems",class:"media-browser",style:normalizeStyle(i.getHeight),onDragenter:t[0]||(t[0]=(...u)=>i.onDragEnter&&i.onDragEnter(...u)),onDrop:t[1]||(t[1]=(...u)=>i.onDrop&&i.onDrop(...u)),onDragover:t[2]||(t[2]=(...u)=>i.onDragOver&&i.onDragOver(...u)),onDragleave:t[3]||(t[3]=(...u)=>i.onDragLeave&&i.onDragLeave(...u))},[i.isEmptySearch?(openBlock(),createElementBlock("div",_hoisted_1$e,[createBaseVNode("div",_hoisted_2$d,[t[4]||(t[4]=createBaseVNode("span",{class:"icon-info-circle","aria-hidden":"true"},null,-1)),createBaseVNode("span",_hoisted_3$c,toDisplayString(e.translate("NOTICE")),1),createTextVNode(" "+toDisplayString(e.translate("JGLOBAL_NO_MATCHING_RESULTS")),1)])])):createCommentVNode("v-if",!0),i.isEmpty?(openBlock(),createElementBlock("div",_hoisted_4$7,[t[5]||(t[5]=createBaseVNode("span",{class:"fa-8x icon-cloud-upload upload-icon","aria-hidden":"true"},null,-1)),createBaseVNode("p",null,toDisplayString(e.translate("COM_MEDIA_DROP_FILE")),1)])):createCommentVNode("v-if",!0),createBaseVNode("div",_hoisted_5$6,[t[6]||(t[6]=createBaseVNode("span",{class:"icon-cloud-upload upload-icon","aria-hidden":"true"},null,-1)),createBaseVNode("p",null,toDisplayString(e.translate("COM_MEDIA_DROP_FILE")),1)]),i.listView==="table"&&!i.isEmpty&&!i.isEmptySearch?(openBlock(),createBlock(o,{key:2,"local-items":i.localItems,"current-directory":i.currentDirectory,style:normalizeStyle(i.mediaBrowserStyles)},null,8,["local-items","current-directory","style"])):createCommentVNode("v-if",!0),i.listView==="grid"&&!i.isEmpty?(openBlock(),createElementBlock("div",_hoisted_6$5,[createBaseVNode("div",{class:normalizeClass(["media-browser-items",i.mediaBrowserGridItemsClass]),style:normalizeStyle(i.mediaBrowserStyles)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(i.localItems,u=>(openBlock(),createBlock(a,{key:u.path,item:u,"local-items":i.localItems},null,8,["item","local-items"]))),128))],6)])):createCommentVNode("v-if",!0),createVNode(l,{ref:"infobar"},null,512)],36)}script$e.render=render$e,script$e.__file="administrator/components/com_media/resources/scripts/components/browser/browser.vue";var script$d={name:"MediaTree",mixins:[navigable],props:{root:{type:String,required:!0},level:{type:Number,required:!0},parentIndex:{type:Number,required:!0}},emits:["move-focus-to-parent"],computed:{directories(){return this.$store.state.directories.filter(e=>e.directory===this.root).sort((e,t)=>e.name.toUpperCase()<t.name.toUpperCase()?-1:1)}},methods:{isActive(e){return e.path===this.$store.state.selectedDirectory},getTabindex(e){return this.isActive(e)?0:-1},onItemClick(e){this.navigateTo(e.path),window.parent.document.dispatchEvent(new CustomEvent("onMediaFileSelected",{bubbles:!0,cancelable:!1,detail:{type:e.type,name:e.name,path:e.path}}))},hasChildren(e){return e.directories.length>0},isOpen(e){return this.$store.state.selectedDirectory.includes(e.path)},iconClass(e){return{fas:!1,"icon-folder":!this.isOpen(e),"icon-folder-open":this.isOpen(e)}},setFocusToFirstChild(){this.$refs[`${this.root}0`][0].focus()},moveFocusToNextElement(e){e+1!==this.directories.length&&this.$refs[this.root+(e+1)][0].focus()},moveFocusToPreviousElement(e){e!==0&&this.$refs[this.root+(e-1)][0].focus()},moveFocusToChildElement(e){this.hasChildren(e)&&this.$refs[e.path][0].setFocusToFirstChild()},moveFocusToParentElement(){this.$emit("move-focus-to-parent",this.parentIndex)},restoreFocus(e){this.$refs[this.root+e][0].focus()}}};const _hoisted_1$d={class:"media-tree",role:"group"},_hoisted_2$c=["aria-level","aria-setsize","aria-posinset","tabindex","onClick","onKeyup"],_hoisted_3$b={class:"item-icon"},_hoisted_4$6={class:"item-name"};function render$d(e,t,n,r,s,i){const o=resolveComponent("MediaTree");return openBlock(),createElementBlock("ul",_hoisted_1$d,[(openBlock(!0),createElementBlock(Fragment,null,renderList(i.directories,(a,l)=>(openBlock(),createElementBlock("li",{key:a.path,class:normalizeClass(["media-tree-item",{active:i.isActive(a)}]),role:"none"},[createBaseVNode("a",{ref_for:!0,ref:n.root+l,role:"treeitem","aria-level":n.level,"aria-setsize":i.directories.length,"aria-posinset":l,tabindex:i.getTabindex(a),onClick:withModifiers(u=>i.onItemClick(a),["stop","prevent"]),onKeyup:[withKeys(u=>i.moveFocusToPreviousElement(l),["up"]),withKeys(u=>i.moveFocusToNextElement(l),["down"]),withKeys(u=>i.onItemClick(a),["enter"]),withKeys(u=>i.moveFocusToChildElement(a),["right"]),t[0]||(t[0]=withKeys(u=>i.moveFocusToParentElement(),["left"]))]},[createBaseVNode("span",_hoisted_3$b,[createBaseVNode("span",{class:normalizeClass(i.iconClass(a))},null,2)]),createBaseVNode("span",_hoisted_4$6,toDisplayString(a.name),1)],40,_hoisted_2$c),createVNode(Transition,{name:"slide-fade"},{default:withCtx(()=>[i.hasChildren(a)?withDirectives((openBlock(),createBlock(o,{key:0,ref_for:!0,ref:a.path,"aria-expanded":i.isOpen(a)?"true":"false",root:a.path,level:n.level+1,"parent-index":l,onMoveFocusToParent:i.restoreFocus},null,8,["aria-expanded","root","level","parent-index","onMoveFocusToParent"])),[[vShow,i.isOpen(a)]]):createCommentVNode("v-if",!0)]),_:2},1024)],2))),128))])}script$d.render=render$d,script$d.__file="administrator/components/com_media/resources/scripts/components/tree/tree.vue";var script$c={name:"MediaDrive",components:{MediaTree:script$d},mixins:[navigable],props:{drive:{type:Object,default:()=>{}},total:{type:Number,default:0},diskId:{type:String,default:""},counter:{type:Number,default:0}},computed:{isActive(){return this.$store.state.selectedDirectory===this.drive.root},getTabindex(){return this.isActive?0:-1}},methods:{onDriveClick(){this.navigateTo(this.drive.root),window.parent.document.dispatchEvent(new CustomEvent("onMediaFileSelected",{bubbles:!0,cancelable:!1,detail:{type:"dir",path:this.drive.root}}))},moveFocusToChildElement(e){this.$refs[e].setFocusToFirstChild()},restoreFocus(){this.$refs["drive-root"].focus()}}};const _hoisted_1$c=["aria-labelledby"],_hoisted_2$b=["aria-setsize","tabindex"],_hoisted_3$a={class:"item-name"};function render$c(e,t,n,r,s,i){const o=resolveComponent("MediaTree");return openBlock(),createElementBlock("div",{class:"media-drive",onClick:t[2]||(t[2]=withModifiers(a=>i.onDriveClick(),["stop","prevent"]))},[createBaseVNode("ul",{class:"media-tree",role:"tree","aria-labelledby":n.diskId},[createBaseVNode("li",{class:normalizeClass({active:i.isActive,"media-tree-item":!0,"media-drive-name":!0}),role:"none"},[createBaseVNode("a",{ref:"drive-root",role:"treeitem","aria-level":"1","aria-setsize":n.counter,"aria-posinset":1,tabindex:i.getTabindex,onKeyup:[t[0]||(t[0]=withKeys(a=>i.moveFocusToChildElement(n.drive.root),["right"])),t[1]||(t[1]=withKeys((...a)=>i.onDriveClick&&i.onDriveClick(...a),["enter"]))]},[createBaseVNode("span",_hoisted_3$a,toDisplayString(n.drive.displayName),1)],40,_hoisted_2$b),createVNode(o,{ref:n.drive.root,root:n.drive.root,level:2,"parent-index":0,onMoveFocusToParent:i.restoreFocus},null,8,["root","onMoveFocusToParent"])],2)],8,_hoisted_1$c)])}script$c.render=render$c,script$c.__file="administrator/components/com_media/resources/scripts/components/tree/drive.vue";var script$b={name:"MediaDisk",components:{MediaDrive:script$c},props:{disk:{type:Object,default:()=>{}},uid:{type:String,default:""}},computed:{diskId(){return`disk-${this.uid+1}`}}};const _hoisted_1$b={class:"media-disk"},_hoisted_2$a={open:""},_hoisted_3$9=["id"];function render$b(e,t,n,r,s,i){const o=resolveComponent("MediaDrive");return openBlock(),createElementBlock("div",_hoisted_1$b,[createBaseVNode("details",_hoisted_2$a,[createBaseVNode("summary",null,[createBaseVNode("h2",{id:i.diskId,class:"media-disk-name"},toDisplayString(n.disk.displayName),9,_hoisted_3$9)]),(openBlock(!0),createElementBlock(Fragment,null,renderList(n.disk.drives,(a,l)=>(openBlock(),createBlock(o,{key:l,"disk-id":i.diskId,counter:l,drive:a,total:n.disk.drives.length},null,8,["disk-id","counter","drive","total"]))),128))])])}script$b.render=render$b,script$b.__file="administrator/components/com_media/resources/scripts/components/tree/disk.vue";var script$a={name:"MediaBreadcrumb",mixins:[navigable],computed:{crumbs(){const e=[],t=this.$store.state.selectedDirectory.split(":/");if(t.length){const n=this.findDrive(t[0]);if(!n)return[];e.push(n);let r=`${t[0]}:`;t[1].split("/").filter(s=>s.length!==0).forEach((s,i)=>{r=`${r}/${s}`,e.push({name:s,index:i+1,path:r})})}return e},isLast(e){return this.crumbs.indexOf(e)===this.crumbs.length-1}},methods:{onCrumbClick(e){const t=this.crumbs.find(n=>n.index===e);t&&(this.navigateTo(t.path),window.parent.document.dispatchEvent(new CustomEvent("onMediaFileSelected",{bubbles:!0,cancelable:!1,detail:{type:"dir",name:t.name,path:t.path}})))},findDrive(e){let t=null;return this.$store.state.disks.forEach(n=>{n.drives.forEach(r=>{r.root.startsWith(e)&&(t={name:r.displayName,path:r.root,index:0})})}),t}}};const _hoisted_1$a=["aria-label"],_hoisted_2$9=["aria-current","onClick"];function render$a(e,t,n,r,s,i){return openBlock(),createElementBlock("nav",{class:"media-breadcrumb","aria-label":e.translate("COM_MEDIA_BREADCRUMB_LABEL")},[createBaseVNode("ol",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(i.crumbs,(o,a)=>(openBlock(),createElementBlock("li",{key:a,class:"media-breadcrumb-item"},[createBaseVNode("a",{href:"#","aria-current":a===Object.keys(i.crumbs).length-1?"page":void 0,onClick:withModifiers(l=>i.onCrumbClick(a),["stop","prevent"])},toDisplayString(o.name),9,_hoisted_2$9)]))),128))])],8,_hoisted_1$a)}script$a.render=render$a,script$a.__file="administrator/components/com_media/resources/scripts/components/breadcrumb/breadcrumb.vue";var script$9={name:"MediaToolbar",components:{MediaBreadcrumb:script$a},data(){return{sortingOptions:!1}},computed:{toggleListViewBtnIcon(){return this.isGridView?"icon-list":"icon-th"},isLoading(){return this.$store.state.isLoading},atLeastOneItemSelected(){return this.$store.state.selectedItems.length>0},isGridView(){return this.$store.state.listView==="grid"},allItemsSelected(){return this.$store.getters.getSelectedDirectoryContents.length===this.$store.state.selectedItems.length},search(){return this.$store.state.search}},watch:{"$store.state.selectedItems":function(){this.allItemsSelected||(this.$refs.mediaToolbarSelectAll.checked=!1)}},methods:{toggleInfoBar(){this.$store.state.showInfoBar?this.$store.commit(HIDE_INFOBAR):this.$store.commit(SHOW_INFOBAR)},decreaseGridSize(){this.isGridSize("sm")||this.$store.commit(DECREASE_GRID_SIZE)},increaseGridSize(){this.isGridSize("xl")||this.$store.commit(INCREASE_GRID_SIZE)},changeListView(){this.$store.state.listView==="grid"?this.$store.commit(CHANGE_LIST_VIEW,"table"):this.$store.commit(CHANGE_LIST_VIEW,"grid")},toggleSelectAll(){this.allItemsSelected?this.$store.commit(UNSELECT_ALL_BROWSER_ITEMS):(this.$store.commit(SELECT_BROWSER_ITEMS,this.$store.getters.getSelectedDirectoryContents),window.parent.document.dispatchEvent(new CustomEvent("onMediaFileSelected",{bubbles:!0,cancelable:!1,detail:{}})))},isGridSize(e){return this.$store.state.gridSize===e},changeSearch(e){this.$store.commit(SET_SEARCH_QUERY,e.target.value)},showSortOptions(){this.sortingOptions=!this.sortingOptions},changeOrderDirection(){this.$store.commit(UPDATE_SORT_DIRECTION,this.$refs.orderdirection.value)},changeOrderBy(){this.$store.commit(UPDATE_SORT_BY,this.$refs.orderby.value)}}};const _hoisted_1$9=["aria-label"],_hoisted_2$8={key:0,class:"media-loader"},_hoisted_3$8={class:"media-view-icons"},_hoisted_4$5=["aria-label"],_hoisted_5$5={class:"media-view-search-input",role:"search"},_hoisted_6$4={for:"media_search",class:"visually-hidden"},_hoisted_7$3=["placeholder","value"],_hoisted_8$1={class:"media-view-icons"},_hoisted_9=["aria-label"],_hoisted_10=["aria-label"],_hoisted_11=["aria-label"],_hoisted_12=["aria-label"],_hoisted_13=["aria-label"],_hoisted_14={key:0,class:"row g-3 pt-2 pb-2 pe-3 justify-content-end",style:{"border-inline-start":"1px solid var(--template-bg-dark-7)","margin-left":"0"}},_hoisted_15={class:"col-3"},_hoisted_16=["aria-label","value"],_hoisted_17={value:"name"},_hoisted_18={value:"size"},_hoisted_19={value:"dimension"},_hoisted_20={value:"date_created"},_hoisted_21={value:"date_modified"},_hoisted_22={class:"col-3"},_hoisted_23=["aria-label","value"],_hoisted_24={value:"asc"},_hoisted_25={value:"desc"};function render$9(e,t,n,r,s,i){const o=resolveComponent("MediaBreadcrumb");return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",{class:"media-toolbar",role:"toolbar","aria-label":e.translate("COM_MEDIA_TOOLBAR_LABEL")},[i.isLoading?(openBlock(),createElementBlock("div",_hoisted_2$8)):createCommentVNode("v-if",!0),createBaseVNode("div",_hoisted_3$8,[createBaseVNode("input",{ref:"mediaToolbarSelectAll",type:"checkbox",class:"media-toolbar-icon media-toolbar-select-all","aria-label":e.translate("COM_MEDIA_SELECT_ALL"),onClick:t[0]||(t[0]=withModifiers((...a)=>i.toggleSelectAll&&i.toggleSelectAll(...a),["stop"]))},null,8,_hoisted_4$5)]),createVNode(o),createBaseVNode("div",_hoisted_5$5,[createBaseVNode("label",_hoisted_6$4,toDisplayString(e.translate("COM_MEDIA_SEARCH")),1),createBaseVNode("input",{id:"media_search",class:"form-control",type:"text",placeholder:e.translate("COM_MEDIA_SEARCH"),value:i.search,onInput:t[1]||(t[1]=(...a)=>i.changeSearch&&i.changeSearch(...a))},null,40,_hoisted_7$3)]),createBaseVNode("div",_hoisted_8$1,[i.isGridView?(openBlock(),createElementBlock("button",{key:0,type:"button",class:normalizeClass(["media-toolbar-icon",{active:s.sortingOptions}]),"aria-label":e.translate("COM_MEDIA_CHANGE_ORDERING"),onClick:t[2]||(t[2]=a=>i.showSortOptions())},[...t[9]||(t[9]=[createBaseVNode("span",{class:"fas fa-sort-amount-down-alt","aria-hidden":"true"},null,-1)])],10,_hoisted_9)):createCommentVNode("v-if",!0),i.isGridView?(openBlock(),createElementBlock("button",{key:1,type:"button",class:normalizeClass(["media-toolbar-icon media-toolbar-decrease-grid-size",{disabled:i.isGridSize("sm")}]),"aria-label":e.translate("COM_MEDIA_DECREASE_GRID"),onClick:t[3]||(t[3]=withModifiers(a=>i.decreaseGridSize(),["stop","prevent"]))},[...t[10]||(t[10]=[createBaseVNode("span",{class:"icon-search-minus","aria-hidden":"true"},null,-1)])],10,_hoisted_10)):createCommentVNode("v-if",!0),i.isGridView?(openBlock(),createElementBlock("button",{key:2,type:"button",class:normalizeClass(["media-toolbar-icon media-toolbar-increase-grid-size",{disabled:i.isGridSize("xl")}]),"aria-label":e.translate("COM_MEDIA_INCREASE_GRID"),onClick:t[4]||(t[4]=withModifiers(a=>i.increaseGridSize(),["stop","prevent"]))},[...t[11]||(t[11]=[createBaseVNode("span",{class:"icon-search-plus","aria-hidden":"true"},null,-1)])],10,_hoisted_11)):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button",class:"media-toolbar-icon media-toolbar-list-view","aria-label":e.translate("COM_MEDIA_TOGGLE_LIST_VIEW"),onClick:t[5]||(t[5]=withModifiers(a=>i.changeListView(),["stop","prevent"]))},[createBaseVNode("span",{class:normalizeClass(i.toggleListViewBtnIcon),"aria-hidden":"true"},null,2)],8,_hoisted_12),createBaseVNode("button",{type:"button",class:"media-toolbar-icon media-toolbar-info","aria-label":e.translate("COM_MEDIA_TOGGLE_INFO"),onClick:t[6]||(t[6]=withModifiers((...a)=>i.toggleInfoBar&&i.toggleInfoBar(...a),["stop","prevent"]))},[...t[12]||(t[12]=[createBaseVNode("span",{class:"icon-info","aria-hidden":"true"},null,-1)])],8,_hoisted_13)])],8,_hoisted_1$9),i.isGridView&&s.sortingOptions?(openBlock(),createElementBlock("div",_hoisted_14,[createBaseVNode("div",_hoisted_15,[createBaseVNode("select",{ref:"orderby",class:"form-select","aria-label":e.translate("COM_MEDIA_ORDER_BY"),value:e.$store.state.sortBy,onChange:t[7]||(t[7]=a=>i.changeOrderBy())},[createBaseVNode("option",_hoisted_17,toDisplayString(e.translate("COM_MEDIA_MEDIA_NAME")),1),createBaseVNode("option",_hoisted_18,toDisplayString(e.translate("COM_MEDIA_MEDIA_SIZE")),1),createBaseVNode("option",_hoisted_19,toDisplayString(e.translate("COM_MEDIA_MEDIA_DIMENSION")),1),createBaseVNode("option",_hoisted_20,toDisplayString(e.translate("COM_MEDIA_MEDIA_DATE_CREATED")),1),createBaseVNode("option",_hoisted_21,toDisplayString(e.translate("COM_MEDIA_MEDIA_DATE_MODIFIED")),1)],40,_hoisted_16)]),createBaseVNode("div",_hoisted_22,[createBaseVNode("select",{ref:"orderdirection",class:"form-select","aria-label":e.translate("COM_MEDIA_ORDER_DIRECTION"),value:e.$store.state.sortDirection,onChange:t[8]||(t[8]=a=>i.changeOrderDirection())},[createBaseVNode("option",_hoisted_24,toDisplayString(e.translate("COM_MEDIA_ORDER_ASC")),1),createBaseVNode("option",_hoisted_25,toDisplayString(e.translate("COM_MEDIA_ORDER_DESC")),1)],40,_hoisted_23)])])):createCommentVNode("v-if",!0)],64)}script$9.render=render$9,script$9.__file="administrator/components/com_media/resources/scripts/components/toolbar/toolbar.vue";var script$8={name:"MediaUpload",props:{accept:{type:String,default:""},extensions:{type:Function,default:()=>[]},name:{type:String,default:"file"},multiple:{type:Boolean,default:!0}},created(){MediaManager.Event.listen("onClickUpload",()=>this.chooseFiles())},methods:{chooseFiles(){this.$refs.fileInput.click()},upload(e){e.preventDefault();const{files:t}=e.target;Array.from(t).forEach(n=>{const r=new FileReader;r.onload=s=>{const{result:i}=s.target,o=i.indexOf("base64")+7,a=i.slice(o,i.length);this.$store.dispatch("uploadFile",{name:n.name,parent:this.$store.state.selectedDirectory,content:a})},r.readAsDataURL(n)})}}};const _hoisted_1$8=["name","multiple","accept"];function render$8(e,t,n,r,s,i){return openBlock(),createElementBlock("input",{ref:"fileInput",type:"file",class:"hidden",name:n.name,multiple:n.multiple,accept:n.accept,onChange:t[0]||(t[0]=(...o)=>i.upload&&i.upload(...o))},null,40,_hoisted_1$8)}script$8.render=render$8,script$8.__file="administrator/components/com_media/resources/scripts/components/upload/upload.vue";var FOCUS_GROUP="data-focus-lock",FOCUS_DISABLED="data-focus-lock-disabled",FOCUS_ALLOW="data-no-focus-lock",FOCUS_AUTO="data-autofocus-inside",FOCUS_NO_AUTOFOCUS="data-no-autofocus",allConstants=Object.freeze({__proto__:null,FOCUS_ALLOW,FOCUS_AUTO,FOCUS_DISABLED,FOCUS_GROUP,FOCUS_NO_AUTOFOCUS}),toArray=function(t){for(var n=Array(t.length),r=0;r<t.length;++r)n[r]=t[r];return n},asArray=function(t){return Array.isArray(t)?t:[t]},getFirst=function(t){return Array.isArray(t)?t[0]:t},isElementHidden=function(t){if(t.nodeType!==Node.ELEMENT_NODE)return!1;var n=window.getComputedStyle(t,null);return!n||!n.getPropertyValue?!1:n.getPropertyValue("display")==="none"||n.getPropertyValue("visibility")==="hidden"},getParentNode=function(t){return t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t.parentNode.host:t.parentNode},isTopNode=function(t){return t===document||t&&t.nodeType===Node.DOCUMENT_NODE},isInert=function(t){return t.hasAttribute("inert")},isVisibleUncached=function(t,n){return!t||isTopNode(t)||!isElementHidden(t)&&!isInert(t)&&n(getParentNode(t))},_isVisibleCached=function(t,n){var r=t.get(n);if(r!==void 0)return r;var s=isVisibleUncached(n,_isVisibleCached.bind(void 0,t));return t.set(n,s),s},isAutoFocusAllowedUncached=function(t,n){return t&&!isTopNode(t)?isAutoFocusAllowed(t)?n(getParentNode(t)):!1:!0},_isAutoFocusAllowedCached=function(t,n){var r=t.get(n);if(r!==void 0)return r;var s=isAutoFocusAllowedUncached(n,_isAutoFocusAllowedCached.bind(void 0,t));return t.set(n,s),s},getDataset=function(t){return t.dataset},isHTMLButtonElement=function(t){return t.tagName==="BUTTON"},isHTMLInputElement=function(t){return t.tagName==="INPUT"},isRadioElement=function(t){return isHTMLInputElement(t)&&t.type==="radio"},notHiddenInput=function(t){return!((isHTMLInputElement(t)||isHTMLButtonElement(t))&&(t.type==="hidden"||t.disabled))},isAutoFocusAllowed=function(t){var n=t.getAttribute(FOCUS_NO_AUTOFOCUS);return![!0,"true",""].includes(n)},isGuard=function(t){var n;return!!(t&&(!((n=getDataset(t))===null||n===void 0)&&n.focusGuard))},isNotAGuard=function(t){return!isGuard(t)},isDefined=function(t){return!!t},tabSort=function(t,n){var r=Math.max(0,t.tabIndex),s=Math.max(0,n.tabIndex),i=r-s,o=t.index-n.index;if(i){if(!r)return 1;if(!s)return-1}return i||o},getTabIndex=function(t){return t.tabIndex<0&&!t.hasAttribute("tabindex")?0:t.tabIndex},orderByTabIndex=function(t,n,r){return toArray(t).map(function(s,i){var o=getTabIndex(s);return{node:s,index:i,tabIndex:o}}).filter(function(s){return!0}).sort(tabSort)},tabbables=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],queryTabbables=tabbables.join(","),_getFocusablesWithShadowDom=function(t,n){return toArray((t.shadowRoot||t).children).reduce(function(r,s){return r.concat(s.matches(queryTabbables)?[s]:[],_getFocusablesWithShadowDom(s))},[])},getFocusablesWithIFrame=function(t,n){var r;return t instanceof HTMLIFrameElement&&(!((r=t.contentDocument)===null||r===void 0)&&r.body)?getFocusables([t.contentDocument.body]):[t]},getFocusables=function(t,n){return t.reduce(function(r,s){var i,o=_getFocusablesWithShadowDom(s),a=(i=[]).concat.apply(i,o.map(function(l){return getFocusablesWithIFrame(l)}));return r.concat(a,s.parentNode?toArray(s.parentNode.querySelectorAll(queryTabbables)).filter(function(l){return l===s}):[])},[])},getParentAutofocusables=function(t){var n=t.querySelectorAll("[".concat(FOCUS_AUTO,"]"));return toArray(n).map(function(r){return getFocusables([r])}).reduce(function(r,s){return r.concat(s)},[])},filterFocusable=function(t,n){return toArray(t).filter(function(r){return _isVisibleCached(n,r)}).filter(function(r){return notHiddenInput(r)})},filterAutoFocusable=function(t,n){return n===void 0&&(n=new Map),toArray(t).filter(function(r){return _isAutoFocusAllowedCached(n,r)})},getFocusableNodes=function(t,n){return orderByTabIndex(filterFocusable(getFocusables(t),n))},parentAutofocusables=function(t,n){return filterFocusable(getParentAutofocusables(t),n)},_contains=function(t,n){return t.shadowRoot?_contains(t.shadowRoot,n):Object.getPrototypeOf(t).contains!==void 0&&Object.getPrototypeOf(t).contains.call(t,n)?!0:toArray(t.children).some(function(r){var s;if(r instanceof HTMLIFrameElement){var i=(s=r.contentDocument)===null||s===void 0?void 0:s.body;return i?_contains(i,n):!1}return _contains(r,n)})},filterNested=function(t){for(var n=new Set,r=t.length,s=0;s<r;s+=1)for(var i=s+1;i<r;i+=1){var o=t[s].compareDocumentPosition(t[i]);(o&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&n.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&n.add(s)}return t.filter(function(a,l){return!n.has(l)})},_getTopParent=function(t){return t.parentNode?_getTopParent(t.parentNode):t},getAllAffectedNodes=function(t){var n=asArray(t);return n.filter(Boolean).reduce(function(r,s){var i=s.getAttribute(FOCUS_GROUP);return r.push.apply(r,i?filterNested(toArray(_getTopParent(s).querySelectorAll("[".concat(FOCUS_GROUP,'="').concat(i,'"]:not([').concat(FOCUS_DISABLED,'="disabled"])')))):[s]),r},[])},safeProbe=function(t){try{return t()}catch{return}},_getActiveElement=function(t){if(t===void 0&&(t=document),!(!t||!t.activeElement)){var n=t.activeElement;return n.shadowRoot?_getActiveElement(n.shadowRoot):n instanceof HTMLIFrameElement&&safeProbe(function(){return n.contentWindow.document})?_getActiveElement(n.contentWindow.document):n}},focusInFrame=function(t,n){return t===n},focusInsideIframe=function(t,n){return!!toArray(t.querySelectorAll("iframe")).some(function(r){return focusInFrame(r,n)})},focusInside=function(t,n){return n===void 0&&(n=_getActiveElement(getFirst(t).ownerDocument)),!n||n.dataset&&n.dataset.focusGuard?!1:getAllAffectedNodes(t).some(function(r){return _contains(r,n)||focusInsideIframe(r,n)})},focusIsHidden=function(t){t===void 0&&(t=document);var n=_getActiveElement(t);return n?toArray(t.querySelectorAll("[".concat(FOCUS_ALLOW,"]"))).some(function(r){return _contains(r,n)}):!1},findSelectedRadio=function(t,n){return n.filter(isRadioElement).filter(function(r){return r.name===t.name}).filter(function(r){return r.checked})[0]||t},correctNode=function(t,n){return isRadioElement(t)&&t.name?findSelectedRadio(t,n):t},correctNodes=function(t){var n=new Set;return t.forEach(function(r){return n.add(correctNode(r,t))}),t.filter(function(r){return n.has(r)})},pickFirstFocus=function(t){return t[0]&&t.length>1?correctNode(t[0],t):t[0]},pickFocusable=function(t,n){return t.indexOf(correctNode(n,t))},NEW_FOCUS="NEW_FOCUS",newFocus=function(t,n,r,s,i){var o=t.length,a=t[0],l=t[o-1],u=isGuard(s);if(!(s&&t.indexOf(s)>=0)){var c=s!==void 0?r.indexOf(s):-1,d=i?r.indexOf(i):c,g=i?t.indexOf(i):-1;if(c===-1)return g!==-1?g:NEW_FOCUS;if(g===-1)return NEW_FOCUS;var _=c-d,$=r.indexOf(a),R=r.indexOf(l),B=correctNodes(r),C=s!==void 0?B.indexOf(s):-1,S=i?B.indexOf(i):C,x=B.filter(function(k){return k.tabIndex>=0}),O=s!==void 0?x.indexOf(s):-1,N=i?x.indexOf(i):O,q=O>=0&&N>=0?N-O:S-C;if(!_&&g>=0||n.length===0)return g;var Q=pickFocusable(t,n[0]),Z=pickFocusable(t,n[n.length-1]);if(c<=$&&u&&Math.abs(_)>1)return Z;if(c>=R&&u&&Math.abs(_)>1)return Q;if(_&&Math.abs(q)>1)return g;if(c<=$)return Z;if(c>R)return Q;if(_)return Math.abs(_)>1?g:(o+g+_)%o}},findAutoFocused=function(t){return function(n){var r,s=(r=getDataset(n))===null||r===void 0?void 0:r.autofocus;return n.autofocus||s!==void 0&&s!=="false"||t.indexOf(n)>=0}},pickAutofocus=function(t,n,r){var s=t.map(function(o){var a=o.node;return a}),i=filterAutoFocusable(s.filter(findAutoFocused(r)));return i&&i.length?pickFirstFocus(i):pickFirstFocus(filterAutoFocusable(n))},_getParents=function(t,n){return n===void 0&&(n=[]),n.push(t),t.parentNode&&_getParents(t.parentNode.host||t.parentNode,n),n},getCommonParent=function(t,n){for(var r=_getParents(t),s=_getParents(n),i=0;i<r.length;i+=1){var o=r[i];if(s.indexOf(o)>=0)return o}return!1},getTopCommonParent=function(t,n,r){var s=asArray(t),i=asArray(n),o=s[0],a=!1;return i.filter(Boolean).forEach(function(l){a=getCommonParent(a||l,l)||a,r.filter(Boolean).forEach(function(u){var c=getCommonParent(o,u);c&&(!a||_contains(c,a)?a=c:a=getCommonParent(c,a))})}),a},allParentAutofocusables=function(t,n){return t.reduce(function(r,s){return r.concat(parentAutofocusables(s,n))},[])},reorderNodes=function(t,n){var r=new Map;return n.forEach(function(s){return r.set(s.node,s)}),t.map(function(s){return r.get(s)}).filter(isDefined)},focusSolver=function(t,n){var r=_getActiveElement(asArray(t).length>0?document:getFirst(t).ownerDocument),s=getAllAffectedNodes(t).filter(isNotAGuard),i=getTopCommonParent(r||t,t,s),o=new Map,a=getFocusableNodes(s,o),l=a.filter(function(R){var B=R.node;return isNotAGuard(B)});if(l[0]){var u=getFocusableNodes([i],o).map(function(R){var B=R.node;return B}),c=reorderNodes(u,l),d=c.map(function(R){var B=R.node;return B}),g=c.filter(function(R){var B=R.tabIndex;return B>=0}).map(function(R){var B=R.node;return B}),_=newFocus(d,g,u,r,n);if(_===NEW_FOCUS){var $=pickAutofocus(a,g,allParentAutofocusables(s,o))||pickAutofocus(a,d,allParentAutofocusables(s,o));if($)return{node:$};console.warn("focus-lock: cannot find any node to move focus into");return}return _===void 0?_:c[_]}},focusOn=function(t,n){t&&("focus"in t&&t.focus(n),"contentWindow"in t&&t.contentWindow&&t.contentWindow.focus())},guardCount=0,lockDisabled=!1,moveFocusInside=function(t,n,r){r===void 0&&(r={});var s=focusSolver(t,n);if(!lockDisabled&&s){if(guardCount>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),lockDisabled=!0,setTimeout(function(){lockDisabled=!1},1);return}guardCount++,focusOn(s.node,r.focusOptions),guardCount--}},constants=allConstants,deprecated_default_moveFocusInside=moveFocusInside;function deferAction(e){const t=window.setImmediate;typeof t<"u"?t(e):setTimeout(e,1)}let lastActiveTrap=0,lastActiveFocus=null,focusWasOutsideWindow=!1;const focusOnBody=()=>document&&document.activeElement===document.body,isFreeFocus=()=>focusOnBody()||focusIsHidden(),activateTrap=()=>{let e=!1;if(lastActiveTrap){const{observed:t,onActivation:n}=lastActiveTrap;(focusWasOutsideWindow||!isFreeFocus()||!lastActiveFocus)&&(t&&!focusInside(t)&&(n(),e=deprecated_default_moveFocusInside(t,lastActiveFocus)),focusWasOutsideWindow=!1,lastActiveFocus=document&&document.activeElement)}return e},reducePropsToState=e=>e.filter(({disabled:t})=>!t).slice(-1)[0],handleStateChangeOnClient=e=>{lastActiveTrap!==e&&(lastActiveTrap=null),lastActiveTrap=e,e&&(activateTrap(),deferAction(activateTrap))};let instances=[];const emitChange=()=>{handleStateChangeOnClient(reducePropsToState(instances))},onTrap=e=>{activateTrap()&&e&&(e.stopPropagation(),e.preventDefault())},onBlur=()=>{deferAction(activateTrap)},onWindowBlur=()=>{focusWasOutsideWindow=!0},attachHandler=()=>{document.addEventListener("focusin",onTrap,!0),document.addEventListener("focusout",onBlur),window.addEventListener("blur",onWindowBlur)},detachHandler=()=>{document.removeEventListener("focusin",onTrap,!0),document.removeEventListener("focusout",onBlur),window.removeEventListener("blur",onWindowBlur)};var script$7={name:"Lock",props:{returnFocus:{type:Boolean},disabled:{type:Boolean},noFocusGuards:{type:[Boolean,String],default:!1},group:{type:String}},setup(e){const{returnFocus:t,disabled:n,noFocusGuards:r,group:s}=toRefs(e),i=ref(null),o=ref({}),a=ref(""),l=computed(()=>({[constants.FOCUS_GROUP]:s.value})),u=computed(()=>r.value!==!0),c=computed(()=>u.value&&r.value!=="tail");watch(n,()=>{o.value.disabled=n.value,emitChange()});let d;return onMounted(()=>{const g=getCurrentInstance();g&&(o.value.instance=g.proxy,o.value.observed=i.value.querySelector("[data-lock]"),o.value.disabled=n.value,o.value.onActivation=()=>{d=d||document&&document.activeElement},instances.length||attachHandler(),instances.push(o.value),emitChange())}),onUnmounted(()=>{const g=getCurrentInstance();g&&(instances=instances.filter(({instance:_})=>_!==g.proxy),instances.length||detachHandler(),t.value&&d&&d.focus&&d.focus(),emitChange())}),{groupAttr:l,hasLeadingGuards:u,hasTailingGuards:c,hidden:a,onBlur:()=>deferAction(emitChange),rootEl:i}}};const _hoisted_1$7={ref:"rootEl"},_hoisted_2$7=["tabIndex"],_hoisted_3$7=["tabIndex"];function render$7(e,t,n,r,s,i){return openBlock(),createElementBlock("div",_hoisted_1$7,[r.hasLeadingGuards?(openBlock(),createElementBlock("div",{key:0,tabIndex:n.disabled?-1:0,style:normalizeStyle(r.hidden),"aria-hidden":"true","data-focus-guard":""},null,12,_hoisted_2$7)):createCommentVNode("v-if",!0),createBaseVNode("div",mergeProps(r.groupAttr,{"data-lock":"",onFocusout:t[0]||(t[0]=(...o)=>r.onBlur&&r.onBlur(...o))}),[renderSlot(e.$slots,"default")],16),r.hasTailingGuards?(openBlock(),createElementBlock("div",{key:1,tabIndex:n.disabled?-1:0,style:normalizeStyle(r.hidden),"aria-hidden":"true","data-focus-guard":""},null,12,_hoisted_3$7)):createCommentVNode("v-if",!0)],512)}script$7.render=render$7,script$7.__file="node_modules/vue-focus-lock/src/Lock.vue";var script$6={name:"MediaModal",components:{Lock:script$7},props:{showClose:{type:Boolean,default:!0},size:{type:String,default:""},labelElement:{type:String,required:!0}},emits:["close"],computed:{modalClass(){return{"modal-sm":this.size==="sm"}}},mounted(){document.addEventListener("keydown",this.onKeyDown)},beforeUnmount(){document.removeEventListener("keydown",this.onKeyDown)},methods:{close(){this.$emit("close")},onKeyDown(e){e.keyCode===27&&this.close()}}};const _hoisted_1$6=["aria-labelledby"],_hoisted_2$6={class:"modal-content"},_hoisted_3$6={class:"modal-header"},_hoisted_4$4={class:"modal-body"},_hoisted_5$4={class:"modal-footer"};function render$6(e,t,n,r,s,i){const o=resolveComponent("Lock");return openBlock(),createElementBlock("div",{class:"media-modal-backdrop",onClick:t[2]||(t[2]=a=>i.close())},[createBaseVNode("div",{class:"modal",style:{display:"flex"},onClick:t[1]||(t[1]=withModifiers(()=>{},["stop"]))},[createVNode(o,null,{default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(["modal-dialog",i.modalClass]),role:"dialog","aria-labelledby":n.labelElement},[createBaseVNode("div",_hoisted_2$6,[createBaseVNode("div",_hoisted_3$6,[renderSlot(e.$slots,"header"),renderSlot(e.$slots,"backdrop-close"),n.showClose?(openBlock(),createElementBlock("button",{key:0,type:"button",class:"btn-close","aria-label":"Close",onClick:t[0]||(t[0]=a=>i.close())})):createCommentVNode("v-if",!0)]),createBaseVNode("div",_hoisted_4$4,[renderSlot(e.$slots,"body")]),createBaseVNode("div",_hoisted_5$4,[renderSlot(e.$slots,"footer")])])],10,_hoisted_1$6)]),_:3})])])}script$6.render=render$6,script$6.__file="administrator/components/com_media/resources/scripts/components/modals/modal.vue";var script$5={name:"MediaCreateFolderModal",components:{MediaModal:script$6},data(){return{folder:""}},computed:{items(){const e=this.$store.getters.getSelectedDirectoryDirectories,t=this.$store.getters.getSelectedDirectoryFiles;return[...e,...t]}},watch:{"$store.state.showCreateFolderModal":function(e){this.$nextTick(()=>{e&&this.$refs.input&&this.$refs.input.focus()})}},methods:{isValid(){return this.folder},isValidName(){return this.folder.includes("..")?1:this.items.filter(e=>e.name.toLowerCase()===this.folder.toLowerCase()).length!==0?2:/^[\p{L}\p{N}\-_. ]+$/u.test(this.folder)?0:3},close(){this.reset(),this.$store.commit(HIDE_CREATE_FOLDER_MODAL)},save(){this.isValid()&&(this.$store.dispatch("createDirectory",{name:this.folder,parent:this.$store.state.selectedDirectory}),this.reset())},reset(){this.folder=""}}};const _hoisted_1$5={id:"createFolderTitle",class:"modal-title"},_hoisted_2$5={class:"p-3"},_hoisted_3$5={class:"form-group"},_hoisted_4$3={for:"folder"},_hoisted_5$3={key:0,id:"folderFeedback",class:"invalid-feedback"},_hoisted_6$3={key:1,id:"folderFeedback",class:"invalid-feedback"},_hoisted_7$2={key:2,id:"folderFeedback",class:"invalid-feedback"},_hoisted_8=["disabled"];function render$5(e,t,n,r,s,i){const o=resolveComponent("MediaModal");return e.$store.state.showCreateFolderModal?(openBlock(),createBlock(o,{key:0,size:"md","label-element":"createFolderTitle",onClose:t[5]||(t[5]=a=>i.close())},{header:withCtx(()=>[createBaseVNode("h3",_hoisted_1$5,toDisplayString(e.translate("COM_MEDIA_CREATE_NEW_FOLDER")),1)]),body:withCtx(()=>[createBaseVNode("div",_hoisted_2$5,[createBaseVNode("form",{class:"form",novalidate:"",onSubmit:t[2]||(t[2]=withModifiers((...a)=>i.save&&i.save(...a),["prevent"]))},[createBaseVNode("div",_hoisted_3$5,[createBaseVNode("label",_hoisted_4$3,toDisplayString(e.translate("COM_MEDIA_FOLDER_NAME")),1),withDirectives(createBaseVNode("input",{id:"folder",ref:"input","onUpdate:modelValue":t[0]||(t[0]=a=>s.folder=a),class:normalizeClass(["form-control",i.isValidName()!==0&&i.isValid()?"is-invalid":""]),type:"text",required:"",autocomplete:"off","aria-describedby":"folderFeedback",onInput:t[1]||(t[1]=a=>s.folder=a.target.value)},null,34),[[vModelText,s.folder,void 0,{trim:!0}]]),i.isValidName()===1?(openBlock(),createElementBlock("div",_hoisted_5$3,toDisplayString(e.translate("COM_MEDIA_CREATE_NEW_FOLDER_RELATIVE_PATH_ERROR")),1)):createCommentVNode("v-if",!0),i.isValidName()===2?(openBlock(),createElementBlock("div",_hoisted_6$3,toDisplayString(e.translate("COM_MEDIA_CREATE_NEW_FOLDER_EXISTING_FOLDER_ERROR")),1)):createCommentVNode("v-if",!0),i.isValidName()===3&&i.isValid()?(openBlock(),createElementBlock("div",_hoisted_7$2,toDisplayString(e.translate("COM_MEDIA_CREATE_NEW_FOLDER_UNEXPECTED_CHARACTER")),1)):createCommentVNode("v-if",!0)])],32)])]),footer:withCtx(()=>[createBaseVNode("div",null,[createBaseVNode("button",{class:"btn btn-secondary",onClick:t[3]||(t[3]=a=>i.close())},toDisplayString(e.translate("JCANCEL")),1),createBaseVNode("button",{class:"btn btn-success",disabled:!i.isValid()||i.isValidName()!==0,onClick:t[4]||(t[4]=a=>i.save())},toDisplayString(e.translate("JACTION_CREATE")),9,_hoisted_8)])]),_:1})):createCommentVNode("v-if",!0)}script$5.render=render$5,script$5.__file="administrator/components/com_media/resources/scripts/components/modals/create-folder-modal.vue";var script$4={name:"MediaPreviewModal",components:{MediaModal:script$6},computed:{item(){return this.$store.state.selectedItem?this.$store.state.selectedItem:this.$store.state.previewItem},getHashedURL(){return this.item.adapter.startsWith("local-")?`${this.item.url}?${api.mediaVersion}`:this.item.url},style(){return this.item.mime_type!=="image/svg+xml"?null:"width: clamp(300px, 1000px, 75vw)"}},methods:{close(){this.$store.commit(HIDE_PREVIEW_MODAL)},isImage(){return this.item.mime_type.indexOf("image/")===0},isVideo(){return this.item.mime_type.indexOf("video/")===0},isAudio(){return this.item.mime_type.indexOf("audio/")===0},isDoc(){return this.item.mime_type.indexOf("application/")===0}}};const _hoisted_1$4={id:"previewTitle",class:"modal-title text-light"},_hoisted_2$4={class:"image-background"},_hoisted_3$4=["src"],_hoisted_4$2={key:1,controls:""},_hoisted_5$2=["src","type"],_hoisted_6$2=["type","data"],_hoisted_7$1=["src","type"];function render$4(e,t,n,r,s,i){const o=resolveComponent("MediaModal");return e.$store.state.showPreviewModal&&i.item?(openBlock(),createBlock(o,{key:0,size:"md",class:"media-preview-modal","label-element":"previewTitle","show-close":!1,onClose:t[1]||(t[1]=a=>i.close())},{header:withCtx(()=>[createBaseVNode("h3",_hoisted_1$4,toDisplayString(i.item.name),1)]),body:withCtx(()=>[createBaseVNode("div",_hoisted_2$4,[i.isAudio()?(openBlock(),createElementBlock("audio",{key:0,controls:"",src:i.item.url},null,8,_hoisted_3$4)):createCommentVNode("v-if",!0),i.isVideo()?(openBlock(),createElementBlock("video",_hoisted_4$2,[createBaseVNode("source",{src:i.item.url,type:i.item.mime_type},null,8,_hoisted_5$2)])):createCommentVNode("v-if",!0),i.isDoc()?(openBlock(),createElementBlock("object",{key:2,type:i.item.mime_type,data:i.item.url,width:"800",height:"600"},null,8,_hoisted_6$2)):createCommentVNode("v-if",!0),i.isImage()?(openBlock(),createElementBlock("img",{key:3,src:i.getHashedURL,type:i.item.mime_type,style:normalizeStyle(i.style)},null,12,_hoisted_7$1)):createCommentVNode("v-if",!0)])]),"backdrop-close":withCtx(()=>[createBaseVNode("button",{type:"button",class:"media-preview-close",onClick:t[0]||(t[0]=a=>i.close())},[...t[2]||(t[2]=[createBaseVNode("span",{class:"icon-times"},null,-1)])])]),_:1})):createCommentVNode("v-if",!0)}script$4.render=render$4,script$4.__file="administrator/components/com_media/resources/scripts/components/modals/preview-modal.vue";var script$3={name:"MediaRenameModal",components:{MediaModal:script$6},computed:{item(){return this.$store.state.selectedItems[this.$store.state.selectedItems.length-1]},name(){return this.item.name.replace(`.${this.item.extension}`,"")},extension(){return this.item.extension}},updated(){this.$nextTick(()=>this.$refs.nameField?this.$refs.nameField.focus():null)},methods:{isValid(){return this.item.name.length>0},close(){this.$store.commit(HIDE_RENAME_MODAL)},save(){if(!this.isValid())return;let e=this.$refs.nameField.value;this.extension.length&&(e+=`.${this.item.extension}`);let t=this.item.directory;t.substr(-1)!=="/"&&(t+="/"),this.$store.dispatch("renameItem",{item:this.item,newPath:t+e,newName:e})}}};const _hoisted_1$3={id:"renameTitle",class:"modal-title"},_hoisted_2$3={class:"form-group p-3"},_hoisted_3$3={for:"name"},_hoisted_4$1=["placeholder","value"],_hoisted_5$1={key:0,class:"input-group-text"},_hoisted_6$1=["disabled"];function render$3(e,t,n,r,s,i){const o=resolveComponent("MediaModal");return e.$store.state.showRenameModal?(openBlock(),createBlock(o,{key:0,size:"sm","show-close":!1,"label-element":"renameTitle",onClose:t[5]||(t[5]=a=>i.close())},{header:withCtx(()=>[createBaseVNode("h3",_hoisted_1$3,toDisplayString(e.translate("COM_MEDIA_RENAME")),1)]),body:withCtx(()=>[createBaseVNode("div",null,[createBaseVNode("form",{class:"form",novalidate:"",onSubmit:t[0]||(t[0]=withModifiers((...a)=>i.save&&i.save(...a),["prevent"]))},[createBaseVNode("div",_hoisted_2$3,[createBaseVNode("label",_hoisted_3$3,toDisplayString(e.translate("COM_MEDIA_NAME")),1),createBaseVNode("div",{class:normalizeClass({"input-group":i.extension.length})},[createBaseVNode("input",{id:"name",ref:"nameField",class:"form-control",type:"text",placeholder:e.translate("COM_MEDIA_NAME"),value:i.name,required:"",autocomplete:"off"},null,8,_hoisted_4$1),i.extension.length?(openBlock(),createElementBlock("span",_hoisted_5$1,toDisplayString(i.extension),1)):createCommentVNode("v-if",!0)],2)])],32)])]),footer:withCtx(()=>[createBaseVNode("div",null,[createBaseVNode("button",{type:"button",class:"btn btn-secondary",onClick:t[1]||(t[1]=a=>i.close()),onKeyup:t[2]||(t[2]=withKeys(a=>i.close(),["enter"]))},toDisplayString(e.translate("JCANCEL")),33),createBaseVNode("button",{type:"button",class:"btn btn-success",disabled:!i.isValid(),onClick:t[3]||(t[3]=a=>i.save()),onKeyup:t[4]||(t[4]=withKeys(a=>i.save(),["enter"]))},toDisplayString(e.translate("JAPPLY")),41,_hoisted_6$1)])]),_:1})):createCommentVNode("v-if",!0)}script$3.render=render$3,script$3.__file="administrator/components/com_media/resources/scripts/components/modals/rename-modal.vue";const Translate={translate:e=>Joomla.Text._(e,e),sprintf:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];const i=Translate.translate(t);let o=0;return i.replace(/%((%)|s|d)/g,a=>{let l=r[o];return a==="%d"&&(l=parseFloat(l),Number.isNaN(l)&&(l=0)),o+=1,l})},install:e=>e.mixin({methods:{translate(t){return Translate.translate(t)},sprintf(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return Translate.sprintf(t,r)}}})};var script$2={name:"MediaShareModal",components:{MediaModal:script$6},computed:{item(){return this.$store.state.selectedItems[this.$store.state.selectedItems.length-1]},url(){return this.$store.state.previewItem&&Object.prototype.hasOwnProperty.call(this.$store.state.previewItem,"url")?this.$store.state.previewItem.url:null}},methods:{close(){this.$store.commit(HIDE_SHARE_MODAL),this.$store.commit(LOAD_FULL_CONTENTS_SUCCESS,null)},generateUrl(){this.$store.dispatch("getFullContents",this.item)},copyToClipboard(){this.$refs.urlText.focus(),this.$refs.urlText.select();try{document.execCommand("copy")}catch{window.alert(Translate("COM_MEDIA_SHARE_COPY_FAILED_ERROR"))}}}};const _hoisted_1$2={id:"shareTitle",class:"modal-title"},_hoisted_2$2={class:"p-3"},_hoisted_3$2={class:"desc"},_hoisted_4={key:0,class:"control"},_hoisted_5={key:1,class:"control"},_hoisted_6={class:"input-group"},_hoisted_7=["title"];function render$2(e,t,n,r,s,i){const o=resolveComponent("MediaModal");return e.$store.state.showShareModal?(openBlock(),createBlock(o,{key:0,size:"md","show-close":!1,"label-element":"shareTitle",onClose:t[4]||(t[4]=a=>i.close())},{header:withCtx(()=>[createBaseVNode("h3",_hoisted_1$2,toDisplayString(e.translate("COM_MEDIA_SHARE")),1)]),body:withCtx(()=>[createBaseVNode("div",_hoisted_2$2,[createBaseVNode("div",_hoisted_3$2,[createTextVNode(toDisplayString(e.translate("COM_MEDIA_SHARE_DESC"))+" ",1),i.url?(openBlock(),createElementBlock("div",_hoisted_5,[createBaseVNode("span",_hoisted_6,[withDirectives(createBaseVNode("input",{id:"url",ref:"urlText","onUpdate:modelValue":t[1]||(t[1]=a=>i.url=a),readonly:"",type:"url",class:"form-control input-xxlarge",placeholder:"URL",autocomplete:"off"},null,512),[[vModelText,i.url]]),createBaseVNode("button",{class:"btn btn-secondary",type:"button",title:e.translate("COM_MEDIA_SHARE_COPY"),onClick:t[2]||(t[2]=(...a)=>i.copyToClipboard&&i.copyToClipboard(...a))},[...t[5]||(t[5]=[createBaseVNode("span",{class:"icon-clipboard","aria-hidden":"true"},null,-1)])],8,_hoisted_7)])])):(openBlock(),createElementBlock("div",_hoisted_4,[createBaseVNode("button",{class:"btn btn-success w-100",type:"button",onClick:t[0]||(t[0]=(...a)=>i.generateUrl&&i.generateUrl(...a))},toDisplayString(e.translate("COM_MEDIA_ACTION_SHARE")),1)]))])])]),footer:withCtx(()=>[createBaseVNode("div",null,[createBaseVNode("button",{class:"btn btn-secondary",onClick:t[3]||(t[3]=a=>i.close())},toDisplayString(e.translate("JCANCEL")),1)])]),_:1})):createCommentVNode("v-if",!0)}script$2.render=render$2,script$2.__file="administrator/components/com_media/resources/scripts/components/modals/share-modal.vue";var script$1={name:"MediaShareModal",components:{MediaModal:script$6},computed:{item(){return this.$store.state.selectedItems[this.$store.state.selectedItems.length-1]}},methods:{deleteItem(){this.$store.dispatch("deleteSelectedItems"),this.$store.commit(HIDE_CONFIRM_DELETE_MODAL)},close(){this.$store.commit(HIDE_CONFIRM_DELETE_MODAL)}}};const _hoisted_1$1={id:"confirmDeleteTitle",class:"modal-title"},_hoisted_2$1={class:"p-3"},_hoisted_3$1={class:"desc"};function render$1(e,t,n,r,s,i){const o=resolveComponent("MediaModal");return e.$store.state.showConfirmDeleteModal?(openBlock(),createBlock(o,{key:0,size:"md","show-close":!1,"label-element":"confirmDeleteTitle",onClose:t[2]||(t[2]=a=>i.close())},{header:withCtx(()=>[createBaseVNode("h3",_hoisted_1$1,toDisplayString(e.translate("COM_MEDIA_CONFIRM_DELETE_MODAL_HEADING")),1)]),body:withCtx(()=>[createBaseVNode("div",_hoisted_2$1,[createBaseVNode("div",_hoisted_3$1,toDisplayString(e.translate("COM_MEDIA_DELETE")),1)])]),footer:withCtx(()=>[createBaseVNode("div",null,[createBaseVNode("button",{class:"btn btn-success",onClick:t[0]||(t[0]=a=>i.close())},toDisplayString(e.translate("JCANCEL")),1),createBaseVNode("button",{id:"media-delete-item",class:"btn btn-danger",onClick:t[1]||(t[1]=a=>i.deleteItem())},toDisplayString(e.translate("COM_MEDIA_CONFIRM_DELETE_MODAL")),1)])]),_:1})):createCommentVNode("v-if",!0)}script$1.render=render$1,script$1.__file="administrator/components/com_media/resources/scripts/components/modals/confirm-delete-modal.vue";var script={name:"MediaApp",components:{MediaBrowser:script$e,MediaDisk:script$b,MediaToolbar:script$9,MediaUpload:script$8,MediaCreateFolderModal:script$5,MediaPreviewModal:script$4,MediaRenameModal:script$3,MediaShareModal:script$2,MediaConfirmDeleteModal:script$1},data(){return{fullHeight:""}},computed:{disks(){return this.$store.state.disks}},created(){MediaManager.Event.listen("onClickCreateFolder",()=>this.$store.commit(SHOW_CREATE_FOLDER_MODAL)),MediaManager.Event.listen("onClickDelete",()=>{this.$store.state.selectedItems.length>0?this.$store.commit(SHOW_CONFIRM_DELETE_MODAL):notifications.error("COM_MEDIA_PLEASE_SELECT_ITEM")})},mounted(){this.$nextTick(()=>{this.setFullHeight(),window.addEventListener("resize",this.setFullHeight)}),this.$store.dispatch("getContents",this.$store.state.selectedDirectory,!1,!1)},beforeUnmount(){window.removeEventListener("resize",this.setFullHeight)},methods:{setFullHeight(){this.fullHeight=`${window.innerHeight-this.$el.getBoundingClientRect().top}px`}}};const _hoisted_1={class:"media-container"},_hoisted_2={class:"media-sidebar"},_hoisted_3={class:"media-main"};function render(e,t,n,r,s,i){const o=resolveComponent("MediaDisk"),a=resolveComponent("MediaToolbar"),l=resolveComponent("MediaBrowser"),u=resolveComponent("MediaUpload"),c=resolveComponent("MediaCreateFolderModal"),d=resolveComponent("MediaPreviewModal"),g=resolveComponent("MediaRenameModal"),_=resolveComponent("MediaShareModal"),$=resolveComponent("MediaConfirmDeleteModal");return openBlock(),createElementBlock("div",_hoisted_1,[createBaseVNode("div",_hoisted_2,[(openBlock(!0),createElementBlock(Fragment,null,renderList(i.disks,(R,B)=>(openBlock(),createBlock(o,{key:B.toString(),uid:B.toString(),disk:R},null,8,["uid","disk"]))),128))]),createBaseVNode("div",_hoisted_3,[createVNode(a),createVNode(l)]),createVNode(u),createVNode(c),createVNode(d),createVNode(g),createVNode(_),createVNode($)])}script.render=render,script.__file="administrator/components/com_media/resources/scripts/components/app.vue";let Event$1=class{constructor(){this.events={}}fire(t,n){n===void 0&&(n=null),this.events[t]&&this.events[t].forEach(r=>r(n))}listen(t,n){this.events[t]=this.events[t]||[],this.events[t].push(n)}};function getDevtoolsGlobalHook(){return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__}function getTarget(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const isProxyAvailable=typeof Proxy=="function",HOOK_SETUP="devtools-plugin:setup",HOOK_PLUGIN_SETTINGS_SET="plugin:settings:set";let supported,perf;function isPerformanceSupported(){var e;return supported!==void 0||(typeof window<"u"&&window.performance?(supported=!0,perf=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(supported=!0,perf=globalThis.perf_hooks.performance):supported=!1),supported}function now(){return isPerformanceSupported()?perf.now():Date.now()}class ApiProxy{constructor(t,n){var r=this;this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const s={};if(t.settings)for(const a in t.settings){const l=t.settings[a];s[a]=l.defaultValue}const i="__vue-devtools-plugin-settings__"+t.id;let o=Object.assign({},s);try{const a=localStorage.getItem(i),l=JSON.parse(a);Object.assign(o,l)}catch{}this.fallbacks={getSettings(){return o},setSettings(a){try{localStorage.setItem(i,JSON.stringify(a))}catch{}o=a},now(){return now()}},n&&n.on(HOOK_PLUGIN_SETTINGS_SET,(a,l)=>{a===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(a,l)=>this.target?this.target.on[l]:function(){for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];r.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(a,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?function(){for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];return r.targetQueue.push({method:l,args:c,resolve:()=>{}}),r.fallbacks[l](...c)}:function(){for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];return new Promise(g=>{r.targetQueue.push({method:l,args:c,resolve:g})})}})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function setupDevtoolsPlugin(e,t){const n=e,r=getTarget(),s=getDevtoolsGlobalHook(),i=isProxyAvailable&&n.enableEarlyProxy;if(s&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))s.emit(HOOK_SETUP,e,t);else{const o=i?new ApiProxy(n,s):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*!
 * vuex v4.1.0
 * (c) 2022 Evan You
 * @license MIT
 */var storeKey="store";function forEachValue(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function isObject(e){return e!==null&&typeof e=="object"}function isPromise(e){return e&&typeof e.then=="function"}function partial(e,t){return function(){return e(t)}}function genericSubscribe(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function resetStore(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;installModule(e,n,[],e._modules.root,!0),resetStoreState(e,n,t)}function resetStoreState(e,t,n){var r=e._state,s=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={},a={},l=effectScope(!0);l.run(function(){forEachValue(i,function(u,c){o[c]=partial(u,e),a[c]=computed(function(){return o[c]()}),Object.defineProperty(e.getters,c,{get:function(){return a[c].value},enumerable:!0})})}),e._state=reactive({data:t}),e._scope=l,e.strict&&enableStrictMode(e),r&&n&&e._withCommit(function(){r.data=null}),s&&s.stop()}function installModule(e,t,n,r,s){var i=!n.length,o=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=r),!i&&!s){var a=getNestedState(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){a[l]=r.state})}var u=r.context=makeLocalContext(e,o,n);r.forEachMutation(function(c,d){var g=o+d;registerMutation(e,g,c,u)}),r.forEachAction(function(c,d){var g=c.root?d:o+d,_=c.handler||c;registerAction(e,g,_,u)}),r.forEachGetter(function(c,d){var g=o+d;registerGetter(e,g,c,u)}),r.forEachChild(function(c,d){installModule(e,t,n.concat(d),c,s)})}function makeLocalContext(e,t,n){var r=t==="",s={dispatch:r?e.dispatch:function(i,o,a){var l=unifyObjectStyle(i,o,a),u=l.payload,c=l.options,d=l.type;return(!c||!c.root)&&(d=t+d),e.dispatch(d,u)},commit:r?e.commit:function(i,o,a){var l=unifyObjectStyle(i,o,a),u=l.payload,c=l.options,d=l.type;(!c||!c.root)&&(d=t+d),e.commit(d,u,c)}};return Object.defineProperties(s,{getters:{get:r?function(){return e.getters}:function(){return makeLocalGetters(e,t)}},state:{get:function(){return getNestedState(e.state,n)}}}),s}function makeLocalGetters(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(s){if(s.slice(0,r)===t){var i=s.slice(r);Object.defineProperty(n,i,{get:function(){return e.getters[s]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function registerMutation(e,t,n,r){var s=e._mutations[t]||(e._mutations[t]=[]);s.push(function(o){n.call(e,r.state,o)})}function registerAction(e,t,n,r){var s=e._actions[t]||(e._actions[t]=[]);s.push(function(o){var a=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},o);return isPromise(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(l){throw e._devtoolHook.emit("vuex:error",l),l}):a})}function registerGetter(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(i){return n(r.state,r.getters,i.state,i.getters)})}function enableStrictMode(e){watch(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function getNestedState(e,t){return t.reduce(function(n,r){return n[r]},e)}function unifyObjectStyle(e,t,n){return isObject(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var LABEL_VUEX_BINDINGS="vuex bindings",MUTATIONS_LAYER_ID="vuex:mutations",ACTIONS_LAYER_ID="vuex:actions",INSPECTOR_ID="vuex",actionId=0;function addDevtools(e,t){setupDevtoolsPlugin({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[LABEL_VUEX_BINDINGS]},function(n){n.addTimelineLayer({id:MUTATIONS_LAYER_ID,label:"Vuex Mutations",color:COLOR_LIME_500}),n.addTimelineLayer({id:ACTIONS_LAYER_ID,label:"Vuex Actions",color:COLOR_LIME_500}),n.addInspector({id:INSPECTOR_ID,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(r){if(r.app===e&&r.inspectorId===INSPECTOR_ID)if(r.filter){var s=[];flattenStoreForInspectorTree(s,t._modules.root,r.filter,""),r.rootNodes=s}else r.rootNodes=[formatStoreForInspectorTree(t._modules.root,"")]}),n.on.getInspectorState(function(r){if(r.app===e&&r.inspectorId===INSPECTOR_ID){var s=r.nodeId;makeLocalGetters(t,s),r.state=formatStoreForInspectorState(getStoreModule(t._modules,s),s==="root"?t.getters:t._makeLocalGettersCache,s)}}),n.on.editInspectorState(function(r){if(r.app===e&&r.inspectorId===INSPECTOR_ID){var s=r.nodeId,i=r.path;s!=="root"&&(i=s.split("/").filter(Boolean).concat(i)),t._withCommit(function(){r.set(t._state.data,i,r.state.value)})}}),t.subscribe(function(r,s){var i={};r.payload&&(i.payload=r.payload),i.state=s,n.notifyComponentUpdate(),n.sendInspectorTree(INSPECTOR_ID),n.sendInspectorState(INSPECTOR_ID),n.addTimelineEvent({layerId:MUTATIONS_LAYER_ID,event:{time:Date.now(),title:r.type,data:i}})}),t.subscribeAction({before:function(s,i){var o={};s.payload&&(o.payload=s.payload),s._id=actionId++,s._time=Date.now(),o.state=i,n.addTimelineEvent({layerId:ACTIONS_LAYER_ID,event:{time:s._time,title:s.type,groupId:s._id,subtitle:"start",data:o}})},after:function(s,i){var o={},a=Date.now()-s._time;o.duration={_custom:{type:"duration",display:a+"ms",tooltip:"Action duration",value:a}},s.payload&&(o.payload=s.payload),o.state=i,n.addTimelineEvent({layerId:ACTIONS_LAYER_ID,event:{time:Date.now(),title:s.type,groupId:s._id,subtitle:"end",data:o}})}})})}var COLOR_LIME_500=8702998,COLOR_DARK=6710886,COLOR_WHITE=16777215,TAG_NAMESPACED={label:"namespaced",textColor:COLOR_WHITE,backgroundColor:COLOR_DARK};function extractNameFromPath(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function formatStoreForInspectorTree(e,t){return{id:t||"root",label:extractNameFromPath(t),tags:e.namespaced?[TAG_NAMESPACED]:[],children:Object.keys(e._children).map(function(n){return formatStoreForInspectorTree(e._children[n],t+n+"/")})}}function flattenStoreForInspectorTree(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[TAG_NAMESPACED]:[]}),Object.keys(t._children).forEach(function(s){flattenStoreForInspectorTree(e,t._children[s],n,r+s+"/")})}function formatStoreForInspectorState(e,t,n){t=n==="root"?t:t[n];var r=Object.keys(t),s={state:Object.keys(e.state).map(function(o){return{key:o,editable:!0,value:e.state[o]}})};if(r.length){var i=transformPathsToObjectTree(t);s.getters=Object.keys(i).map(function(o){return{key:o.endsWith("/")?extractNameFromPath(o):o,editable:!1,value:canThrow(function(){return i[o]})}})}return s}function transformPathsToObjectTree(e){var t={};return Object.keys(e).forEach(function(n){var r=n.split("/");if(r.length>1){var s=t,i=r.pop();r.forEach(function(o){s[o]||(s[o]={_custom:{value:{},display:o,tooltip:"Module",abstract:!0}}),s=s[o]._custom.value}),s[i]=canThrow(function(){return e[n]})}else t[n]=canThrow(function(){return e[n]})}),t}function getStoreModule(e,t){var n=t.split("/").filter(function(r){return r});return n.reduce(function(r,s,i){var o=r[s];if(!o)throw new Error('Missing module "'+s+'" for path "'+t+'".');return i===n.length-1?o:o._children},t==="root"?e:e.root._children)}function canThrow(e){try{return e()}catch(t){return t}}var Module=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=(typeof r=="function"?r():r)||{}},prototypeAccessors$1={namespaced:{configurable:!0}};prototypeAccessors$1.namespaced.get=function(){return!!this._rawModule.namespaced},Module.prototype.addChild=function(t,n){this._children[t]=n},Module.prototype.removeChild=function(t){delete this._children[t]},Module.prototype.getChild=function(t){return this._children[t]},Module.prototype.hasChild=function(t){return t in this._children},Module.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},Module.prototype.forEachChild=function(t){forEachValue(this._children,t)},Module.prototype.forEachGetter=function(t){this._rawModule.getters&&forEachValue(this._rawModule.getters,t)},Module.prototype.forEachAction=function(t){this._rawModule.actions&&forEachValue(this._rawModule.actions,t)},Module.prototype.forEachMutation=function(t){this._rawModule.mutations&&forEachValue(this._rawModule.mutations,t)},Object.defineProperties(Module.prototype,prototypeAccessors$1);var ModuleCollection=function(t){this.register([],t,!1)};ModuleCollection.prototype.get=function(t){return t.reduce(function(n,r){return n.getChild(r)},this.root)},ModuleCollection.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(r,s){return n=n.getChild(s),r+(n.namespaced?s+"/":"")},"")},ModuleCollection.prototype.update=function(t){update([],this.root,t)},ModuleCollection.prototype.register=function(t,n,r){var s=this;r===void 0&&(r=!0);var i=new Module(n,r);if(t.length===0)this.root=i;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],i)}n.modules&&forEachValue(n.modules,function(a,l){s.register(t.concat(l),a,r)})},ModuleCollection.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1],s=n.getChild(r);s&&s.runtime&&n.removeChild(r)},ModuleCollection.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1];return n?n.hasChild(r):!1};function update(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return;update(e.concat(r),t.getChild(r),n.modules[r])}}function createStore(e){return new Store(e)}var Store=function(t){var n=this;t===void 0&&(t={});var r=t.plugins;r===void 0&&(r=[]);var s=t.strict;s===void 0&&(s=!1);var i=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ModuleCollection(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=i;var o=this,a=this,l=a.dispatch,u=a.commit;this.dispatch=function(g,_){return l.call(o,g,_)},this.commit=function(g,_,$){return u.call(o,g,_,$)},this.strict=s;var c=this._modules.root.state;installModule(this,c,[],this._modules.root),resetStoreState(this,c),r.forEach(function(d){return d(n)})},prototypeAccessors={state:{configurable:!0}};Store.prototype.install=function(t,n){t.provide(n||storeKey,this),t.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:!1;r&&addDevtools(t,this)},prototypeAccessors.state.get=function(){return this._state.data},prototypeAccessors.state.set=function(e){},Store.prototype.commit=function(t,n,r){var s=this,i=unifyObjectStyle(t,n,r),o=i.type,a=i.payload,l={type:o,payload:a},u=this._mutations[o];u&&(this._withCommit(function(){u.forEach(function(d){d(a)})}),this._subscribers.slice().forEach(function(c){return c(l,s.state)}))},Store.prototype.dispatch=function(t,n){var r=this,s=unifyObjectStyle(t,n),i=s.type,o=s.payload,a={type:i,payload:o},l=this._actions[i];if(l){try{this._actionSubscribers.slice().filter(function(c){return c.before}).forEach(function(c){return c.before(a,r.state)})}catch{}var u=l.length>1?Promise.all(l.map(function(c){return c(o)})):l[0](o);return new Promise(function(c,d){u.then(function(g){try{r._actionSubscribers.filter(function(_){return _.after}).forEach(function(_){return _.after(a,r.state)})}catch{}c(g)},function(g){try{r._actionSubscribers.filter(function(_){return _.error}).forEach(function(_){return _.error(a,r.state,g)})}catch{}d(g)})})}},Store.prototype.subscribe=function(t,n){return genericSubscribe(t,this._subscribers,n)},Store.prototype.subscribeAction=function(t,n){var r=typeof t=="function"?{before:t}:t;return genericSubscribe(r,this._actionSubscribers,n)},Store.prototype.watch=function(t,n,r){var s=this;return watch(function(){return t(s.state,s.getters)},n,Object.assign({},r))},Store.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})},Store.prototype.registerModule=function(t,n,r){r===void 0&&(r={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),installModule(this,this.state,t,this._modules.get(t),r.preserveState),resetStoreState(this,this.state)},Store.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var r=getNestedState(n.state,t.slice(0,-1));delete r[t[t.length-1]]}),resetStore(this)},Store.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)},Store.prototype.hotUpdate=function(t){this._modules.update(t),resetStore(this,!0)},Store.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n},Object.defineProperties(Store.prototype,prototypeAccessors);function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cjs,hasRequiredCjs;function requireCjs(){if(hasRequiredCjs)return cjs;hasRequiredCjs=1;var e=function(S){return t(S)&&!n(S)};function t(C){return!!C&&typeof C=="object"}function n(C){var S=Object.prototype.toString.call(C);return S==="[object RegExp]"||S==="[object Date]"||i(C)}var r=typeof Symbol=="function"&&Symbol.for,s=r?Symbol.for("react.element"):60103;function i(C){return C.$$typeof===s}function o(C){return Array.isArray(C)?[]:{}}function a(C,S){return S.clone!==!1&&S.isMergeableObject(C)?R(o(C),C,S):C}function l(C,S,x){return C.concat(S).map(function(O){return a(O,x)})}function u(C,S){if(!S.customMerge)return R;var x=S.customMerge(C);return typeof x=="function"?x:R}function c(C){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(C).filter(function(S){return Object.propertyIsEnumerable.call(C,S)}):[]}function d(C){return Object.keys(C).concat(c(C))}function g(C,S){try{return S in C}catch{return!1}}function _(C,S){return g(C,S)&&!(Object.hasOwnProperty.call(C,S)&&Object.propertyIsEnumerable.call(C,S))}function $(C,S,x){var O={};return x.isMergeableObject(C)&&d(C).forEach(function(N){O[N]=a(C[N],x)}),d(S).forEach(function(N){_(C,N)||(g(C,N)&&x.isMergeableObject(S[N])?O[N]=u(N,x)(C[N],S[N],x):O[N]=a(S[N],x))}),O}function R(C,S,x){x=x||{},x.arrayMerge=x.arrayMerge||l,x.isMergeableObject=x.isMergeableObject||e,x.cloneUnlessOtherwiseSpecified=a;var O=Array.isArray(S),N=Array.isArray(C),q=O===N;return q?O?x.arrayMerge(C,S,x):$(C,S,x):a(S,x)}R.all=function(S,x){if(!Array.isArray(S))throw new Error("first argument should be an array");return S.reduce(function(O,N){return R(O,N,x)},{})};var B=R;return cjs=B,cjs}var cjsExports=requireCjs(),deepmerge=getDefaultExportFromCjs(cjsExports);let MockStorage;MockStorage=class{get length(){return Object.keys(this).length}key(e){return Object.keys(this)[e]}setItem(e,t){this[e]=t.toString()}getItem(e){return this[e]}removeItem(e){delete this[e]}clear(){for(let e of Object.keys(this))delete this[e]}};class SimplePromiseQueue{constructor(){this._queue=[],this._flushing=!1}enqueue(t){return this._queue.push(t),this._flushing?Promise.resolve():this.flushQueue()}flushQueue(){this._flushing=!0;const t=()=>{const n=this._queue.shift();if(n)return n.then(t);this._flushing=!1};return Promise.resolve(t())}}const options$1={replaceArrays:{arrayMerge:(e,t,n)=>t},concatArrays:{arrayMerge:(e,t,n)=>e.concat(...t)}};function merge(e,t,n){return deepmerge(e,t,options$1[n])}let FlattedJSON=JSON;class VuexPersistence{constructor(t){this._mutex=new SimplePromiseQueue,this.subscriber=r=>s=>r.subscribe(s),typeof t>"u"&&(t={}),this.key=t.key!=null?t.key:"vuex",this.subscribed=!1,this.supportCircular=t.supportCircular||!1,this.supportCircular&&(FlattedJSON=require("flatted")),this.mergeOption=t.mergeOption||"replaceArrays";let n=!0;try{window.localStorage.getItem("")}catch{n=!1}if(t.storage)this.storage=t.storage;else if(n)this.storage=window.localStorage;else if(MockStorage)this.storage=new MockStorage;else throw new Error("Neither 'window' is defined, nor 'MockStorage' is available");this.reducer=t.reducer!=null?t.reducer:t.modules==null?r=>r:r=>t.modules.reduce((s,i)=>merge(s,{[i]:r[i]},this.mergeOption),{}),this.filter=t.filter||(r=>!0),this.strictMode=t.strictMode||!1,this.RESTORE_MUTATION=function(s,i){const o=merge(s,i||{},this.mergeOption);for(const a of Object.keys(o))this._vm.$set(s,a,o[a])},this.asyncStorage=t.asyncStorage||!1,this.asyncStorage?(this.restoreState=t.restoreState!=null?t.restoreState:(r,s)=>s.getItem(r).then(i=>typeof i=="string"?this.supportCircular?FlattedJSON.parse(i||"{}"):JSON.parse(i||"{}"):i||{}),this.saveState=t.saveState!=null?t.saveState:(r,s,i)=>i.setItem(r,this.asyncStorage?merge({},s||{},this.mergeOption):this.supportCircular?FlattedJSON.stringify(s):JSON.stringify(s)),this.plugin=r=>{r.restored=this.restoreState(this.key,this.storage).then(s=>{this.strictMode?r.commit("RESTORE_MUTATION",s):r.replaceState(merge(r.state,s||{},this.mergeOption)),this.subscriber(r)((i,o)=>{this.filter(i)&&this._mutex.enqueue(this.saveState(this.key,this.reducer(o),this.storage))}),this.subscribed=!0})}):(this.restoreState=t.restoreState!=null?t.restoreState:(r,s)=>{const i=s.getItem(r);return typeof i=="string"?this.supportCircular?FlattedJSON.parse(i||"{}"):JSON.parse(i||"{}"):i||{}},this.saveState=t.saveState!=null?t.saveState:(r,s,i)=>i.setItem(r,this.supportCircular?FlattedJSON.stringify(s):JSON.stringify(s)),this.plugin=r=>{const s=this.restoreState(this.key,this.storage);this.strictMode?r.commit("RESTORE_MUTATION",s):r.replaceState(merge(r.state,s||{},this.mergeOption)),this.subscriber(r)((i,o)=>{this.filter(i)&&this.saveState(this.key,this.reducer(o),this.storage)}),this.subscribed=!0})}}const persistedStateOptions={storage:window.sessionStorage,key:"joomla.mediamanager",reducer:e=>({selectedDirectory:e.selectedDirectory,showInfoBar:e.showInfoBar,listView:e.listView,gridSize:e.gridSize,search:e.search,sortBy:e.sortBy,sortDirection:e.sortDirection})},options=Joomla.getOptions("com_media",{});if(options.providers===void 0||options.providers.length===0)throw new TypeError("Media providers are not defined.");const getDrives=(e,t)=>e.map(n=>({root:t+"-"+n+":/",displayName:n})),loadedDisks=options.providers.map(e=>({displayName:e.displayName,drives:getDrives(e.adapterNames,e.name)})),defaultDisk=loadedDisks.find(e=>e.drives.length>0&&e.drives[0]!==void 0);if(!defaultDisk)throw new TypeError("No default media drive was found");const storedState=JSON.parse(persistedStateOptions.storage.getItem(persistedStateOptions.key));function setSession(e){persistedStateOptions.storage.setItem(persistedStateOptions.key,JSON.stringify(_extends({},storedState,{selectedDirectory:e})))}function getCurrentPath(){let e=options.currentPath;if(!e&&storedState&&storedState.selectedDirectory&&(e=storedState.selectedDirectory),!e)return setSession(defaultDisk.drives[0].root),defaultDisk.drives[0].root;const t=e.split(":/");return!t.length||!Object.values(loadedDisks).map(r=>r.drives).flat().find(r=>r.root.startsWith(t[0]))?(setSession(defaultDisk.drives[0].root),defaultDisk.drives[0].root):(setSession(e),e)}var state={isLoading:!1,disks:loadedDisks,directories:loadedDisks.map(()=>({path:defaultDisk.drives[0].root,name:defaultDisk.displayName,directories:[],files:[],directory:null})),files:[],selectedDirectory:getCurrentPath(),selectedItems:[],showInfoBar:!1,listView:"grid",gridSize:"md",showConfirmDeleteModal:!1,showCreateFolderModal:!1,showPreviewModal:!1,showShareModal:!1,showRenameModal:!1,previewItem:null,search:"",sortBy:storedState&&storedState.sortBy?storedState.sortBy:"name",sortDirection:storedState&&storedState.sortDirection?storedState.sortDirection:"asc"};const getSelectedDirectory=e=>e.directories.find(t=>t.path===e.selectedDirectory),getSelectedDirectoryDirectories=e=>e.directories.filter(t=>t.directory===e.selectedDirectory),getSelectedDirectoryFiles=e=>e.files.filter(t=>t.directory===e.selectedDirectory),getSelectedDirectoryContents=(e,t)=>[...t.getSelectedDirectoryDirectories,...t.getSelectedDirectoryFiles];var getters=Object.freeze({__proto__:null,getSelectedDirectory,getSelectedDirectoryContents,getSelectedDirectoryDirectories,getSelectedDirectoryFiles});const updateUrlPath=e=>{const t=e===null?"":e,n=new URL(window.location.href);n.searchParams.has("path")?window.history.pushState(null,"",n.href.replace(/\b(path=).*?(&|$)/,"$1"+t+"$2")):window.history.pushState(null,"",n.href+(n.href.indexOf("?")>0?"&":"?")+"path="+t)},getContents=(e,t)=>{updateUrlPath(t),e.commit(SET_IS_LOADING,!0),api.getContents(t,!1,!1).then(n=>{e.commit(LOAD_CONTENTS_SUCCESS,n),e.commit(UNSELECT_ALL_BROWSER_ITEMS),e.commit(SELECT_DIRECTORY,t),e.commit(SET_IS_LOADING,!1)}).catch(n=>{throw e.commit(SET_IS_LOADING,!1),new Error(n)})},getFullContents=(e,t)=>{e.commit(SET_IS_LOADING,!0),api.getContents(t.path,!0,!0).then(n=>{e.commit(LOAD_FULL_CONTENTS_SUCCESS,n.files[0]),e.commit(SET_IS_LOADING,!1)}).catch(n=>{throw e.commit(SET_IS_LOADING,!1),new Error(n)})},download=(e,t)=>{api.getContents(t.path,!1,!0).then(n=>{const r=n.files[0],s=document.createElement("a");s.href="data:"+r.mime_type+";base64,"+r.content,s.download=r.name,document.body.appendChild(s),s.click(),document.body.removeChild(s)}).catch(n=>{throw new Error(n)})},toggleBrowserItemSelect=(e,t)=>{const n=t;e.state.selectedItems.some(s=>s.path===n.path)?e.commit(UNSELECT_BROWSER_ITEM,n):e.commit(SELECT_BROWSER_ITEM,n)},createDirectory=(e,t)=>{api.canCreate&&(e.commit(SET_IS_LOADING,!0),api.createDirectory(t.name,t.parent).then(n=>{e.commit(CREATE_DIRECTORY_SUCCESS,n),e.commit(HIDE_CREATE_FOLDER_MODAL),e.commit(SET_IS_LOADING,!1)}).catch(n=>{throw e.commit(SET_IS_LOADING,!1),new Error(n)}))},uploadFile=(e,t)=>{api.canCreate&&(e.commit(SET_IS_LOADING,!0),api.upload(t.name,t.parent,t.content,t.override||!1).then(n=>{e.commit(UPLOAD_SUCCESS,n),e.commit(SET_IS_LOADING,!1)}).catch(n=>{e.commit(SET_IS_LOADING,!1),n.status===409&&notifications.ask(Translate.sprintf("COM_MEDIA_FILE_EXISTS_AND_OVERRIDE",t.name),{})&&(t.override=!0,uploadFile(e,t))}))},renameItem=(e,t)=>{api.canEdit&&(typeof t.item.canEdit<"u"&&t.item.canEdit===!1||(e.commit(SET_IS_LOADING,!0),api.rename(t.item.path,t.newPath).then(n=>{e.commit(RENAME_SUCCESS,{item:n,oldPath:t.item.path,newName:t.newName}),e.commit(HIDE_RENAME_MODAL),e.commit(SET_IS_LOADING,!1)}).catch(n=>{throw e.commit(SET_IS_LOADING,!1),new Error(n)})))},deleteSelectedItems=e=>{if(!api.canDelete)return;e.commit(SET_IS_LOADING,!0);const{selectedItems:t,search:n}=e.state;t.length>0&&t.forEach(r=>{typeof r.canDelete<"u"&&r.canDelete===!1||n&&!r.name.toLowerCase().includes(n.toLowerCase())||api.delete(r.path).then(()=>{e.commit(DELETE_SUCCESS,r),e.commit(UNSELECT_ALL_BROWSER_ITEMS),e.commit(SET_IS_LOADING,!1)}).catch(s=>{throw e.commit(SET_IS_LOADING,!1),new Error(s)})})},updateItemProperties=(e,t)=>e.commit(UPDATE_ITEM_PROPERTIES,t);var actions=Object.freeze({__proto__:null,createDirectory,deleteSelectedItems,download,getContents,getFullContents,renameItem,toggleBrowserItemSelect,updateItemProperties,uploadFile});const gridItemSizes=["sm","md","lg","xl"];var mutations={[SELECT_DIRECTORY]:(e,t)=>{e.selectedDirectory=t,e.search=""},[LOAD_CONTENTS_SUCCESS]:(e,t)=>{function n(o){const a=o.split("/");let l=dirname(o);return l.indexOf(":",l.length-1)!==-1&&(l+="/"),{path:o,name:a[a.length-1],directories:[],files:[],directory:l!=="."?l:null,type:"dir",mime_type:"directory"}}function r(o){if(!e.directories.some(l=>l.path===o)){const l=n(o);l.directories=e.directories.filter(u=>u.directory===l.path).map(u=>u.path),e.directories.push(l),l.directory&&r(l.directory)}}function s(o,a){const l=e.directories.find(d=>d.path===a.directory),u=e.directories.indexOf(l);let c=e.directories.findIndex(d=>d.path===a.path);c===-1&&(c=e.directories.length),e.directories.splice(c,1,a),u!==-1&&e.directories.splice(u,1,_extends({},l,{directories:[...l.directories,a.path]}))}function i(o,a){const l=e.directories.find(d=>d.path===a.directory),u=e.directories.indexOf(l);let c=e.files.findIndex(d=>d.path===a.path);c===-1&&(c=e.files.length),e.files.splice(c,1,a),u!==-1&&e.directories.splice(u,1,_extends({},l,{files:[...l.files,a.path]}))}r(e.selectedDirectory),t.directories.forEach(o=>s(null,o)),t.files.forEach(o=>i(null,o))},[UPLOAD_SUCCESS]:(e,t)=>{const n=t;if(!e.files.some(i=>i.path===n.path)){const i=e.directories.find(a=>a.path===n.directory),o=e.directories.indexOf(i);e.files.push(n),e.directories.splice(o,1,_extends({},i,{files:[...i.files,n.path]}))}if(window.location===window.parent.location||!e.files.length)return;const s=e.files.find(i=>i.name===n.name);s&&(e.selectedItems=[s],window.parent.document.dispatchEvent(new CustomEvent("onMediaFileSelected",{bubbles:!0,cancelable:!1,detail:{type:s.type,name:s.name,path:s.path,thumb:s.thumb,fileType:s.mime_type?s.mime_type:!1,extension:s.extension?s.extension:!1,width:s.width?s.width:0,height:s.height?s.height:0}})))},[CREATE_DIRECTORY_SUCCESS]:(e,t)=>{const n=t;if(!e.directories.some(s=>s.path===n.path)){const s=e.directories.find(o=>o.path===n.directory),i=e.directories.indexOf(s);e.directories.push(n),e.directories.splice(i,1,_extends({},s,{directories:[...s.directories,n.path]}))}},[RENAME_SUCCESS]:(e,t)=>{e.selectedItems[e.selectedItems.length-1].name=t.newName;const{item:n}=t,{oldPath:r}=t;if(n.type==="file"){const s=e.files.findIndex(i=>i.path===r);e.files.splice(s,1,n)}else{const s=e.directories.findIndex(i=>i.path===r);e.directories.splice(s,1,n)}},[DELETE_SUCCESS]:(e,t)=>{const n=t;n.type==="file"&&e.files.splice(e.files.findIndex(r=>r.path===n.path),1),n.type==="dir"&&e.directories.splice(e.directories.findIndex(r=>r.path===n.path),1)},[SELECT_BROWSER_ITEM]:(e,t)=>{e.selectedItems.push(t)},[SELECT_BROWSER_ITEMS]:(e,t)=>{e.selectedItems=t},[UNSELECT_BROWSER_ITEM]:(e,t)=>{const n=t;e.selectedItems.splice(e.selectedItems.findIndex(r=>r.path===n.path),1)},[UNSELECT_ALL_BROWSER_ITEMS]:e=>{e.selectedItems=[]},[SHOW_CREATE_FOLDER_MODAL]:e=>{e.showCreateFolderModal=!0},[HIDE_CREATE_FOLDER_MODAL]:e=>{e.showCreateFolderModal=!1},[SHOW_INFOBAR]:e=>{e.showInfoBar=!0},[HIDE_INFOBAR]:e=>{e.showInfoBar=!1},[CHANGE_LIST_VIEW]:(e,t)=>{e.listView=t},[LOAD_FULL_CONTENTS_SUCCESS]:(e,t)=>{e.previewItem=t},[SHOW_PREVIEW_MODAL]:e=>{e.showPreviewModal=!0},[HIDE_PREVIEW_MODAL]:e=>{e.showPreviewModal=!1},[SET_IS_LOADING]:(e,t)=>{e.isLoading=t},[SHOW_RENAME_MODAL]:e=>{e.showRenameModal=!0},[HIDE_RENAME_MODAL]:e=>{e.showRenameModal=!1},[SHOW_SHARE_MODAL]:e=>{e.showShareModal=!0},[HIDE_SHARE_MODAL]:e=>{e.showShareModal=!1},[INCREASE_GRID_SIZE]:e=>{const t=gridItemSizes.indexOf(e.gridSize);t>=0&&t<gridItemSizes.length-1&&(e.gridSize=gridItemSizes[t+1])},[DECREASE_GRID_SIZE]:e=>{const t=gridItemSizes.indexOf(e.gridSize);t>0&&t<gridItemSizes.length&&(e.gridSize=gridItemSizes[t-1])},[SET_SEARCH_QUERY]:(e,t)=>{e.search=t},[SHOW_CONFIRM_DELETE_MODAL]:e=>{e.showConfirmDeleteModal=!0},[HIDE_CONFIRM_DELETE_MODAL]:e=>{e.showConfirmDeleteModal=!1},[UPDATE_ITEM_PROPERTIES]:(e,t)=>{const{item:n,width:r,height:s}=t,i=e.files.findIndex(o=>o.path===n.path);e.files[i].width=r,e.files[i].height=s},[UPDATE_SORT_BY]:(e,t)=>{e.sortBy=t},[UPDATE_SORT_DIRECTION]:(e,t)=>{e.sortDirection=t==="asc"?"asc":"desc"}},store=createStore({state,getters,actions,mutations,plugins:[new VuexPersistence(persistedStateOptions).plugin],strict:!1});window.MediaManager=window.MediaManager||{},window.MediaManager.Event=new Event$1,createApp(script).use(store).use(Translate).mount("#com-media");

Filemanager

Name Type Size Permission Actions
edit-images.js File 9.47 KB 0664
edit-images.min.js File 6.18 KB 0664
edit-images.min.js.gz File 2.09 KB 0664
media-manager.js File 442.14 KB 0664
media-manager.min.js File 219.74 KB 0664
media-manager.min.js.gz File 60.05 KB 0664
Filemanager