芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/media.5/com_media/js/media-manager.min.js
function makeMap(e,t){const o=Object.create(null),n=e.split(",");for(let e=0;e
!!o[e.toLowerCase()]:e=>!!o[e]}const GLOBALS_WHITE_LISTED="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",isGloballyWhitelisted=makeMap(GLOBALS_WHITE_LISTED),specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function normalizeStyle(e){if(isArray(e)){const t={};for(let o=0;o
{if(e){const o=e.split(propertyDelimiterRE);o.length>1&&(t[o[0].trim()]=o[1].trim())}})),t}function normalizeClass(e){let t="";if(isString(e))t=e;else if(isArray(e))for(let o=0;o
null==e?"":isObject$1(e)?JSON.stringify(e,replacer,2):String(e),replacer=(e,t)=>isMap(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,o])=>(e[`${t} =>`]=o,e)),{})}:isSet(t)?{[`Set(${t.size})`]:[...t.values()]}:!isObject$1(t)||isArray(t)||isPlainObject(t)?t:String(t),EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,onRE=/^on[^a-z]/,isOn=e=>onRE.test(e),isModelListener=e=>e.startsWith("onUpdate:"),extend=Object.assign,remove=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},hasOwnProperty=Object.prototype.hasOwnProperty,hasOwn=(e,t)=>hasOwnProperty.call(e,t),isArray=Array.isArray,isMap=e=>"[object Map]"===toTypeString(e),isSet=e=>"[object Set]"===toTypeString(e),isFunction=e=>"function"==typeof e,isString=e=>"string"==typeof e,isSymbol=e=>"symbol"==typeof e,isObject$1=e=>null!==e&&"object"==typeof e,isPromise$1=e=>isObject$1(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=>"[object Object]"===toTypeString(e),isIntegerKey=e=>isString(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,isReservedProp=makeMap(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction((e=>e.replace(camelizeRE,((e,t)=>t?t.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)=>e!==t&&(e==e||t==t),invokeArrayFns=(e,t)=>{for(let o=0;o
{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:o})},toNumber=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),targetMap=new WeakMap,effectStack=[];let activeEffect;const ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol("");function isEffect(e){return e&&!0===e._isEffect}function effect(e,t=EMPTY_OBJ){isEffect(e)&&(e=e.raw);const o=createReactiveEffect(e,t);return t.lazy||o(),o}function stop(e){e.active&&(cleanup(e),e.options.onStop&&e.options.onStop(),e.active=!1)}let uid$2=0;function createReactiveEffect(e,t){const o=function(){if(!o.active)return e();if(!effectStack.includes(o)){cleanup(o);try{return enableTracking(),effectStack.push(o),activeEffect=o,e()}finally{effectStack.pop(),resetTracking(),activeEffect=effectStack[effectStack.length-1]}}};return o.id=uid$2++,o.allowRecurse=!!t.allowRecurse,o._isEffect=!0,o.active=!0,o.raw=e,o.deps=[],o.options=t,o}function cleanup(e){const{deps:t}=e;if(t.length){for(let o=0;o
{e&&e.forEach((e=>{(e!==activeEffect||e.allowRecurse)&&a.add(e)}))};if("clear"===t)s.forEach(c);else if("length"===o&&isArray(e))s.forEach(((e,t)=>{("length"===t||t>=n)&&c(e)}));else switch(void 0!==o&&c(s.get(o)),t){case"add":isArray(e)?isIntegerKey(o)&&c(s.get("length")):(c(s.get(ITERATE_KEY)),isMap(e)&&c(s.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray(e)||(c(s.get(ITERATE_KEY)),isMap(e)&&c(s.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(e)&&c(s.get(ITERATE_KEY))}a.forEach((e=>{e.options.scheduler?e.options.scheduler(e):e()}))}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(isSymbol)),get=createGetter(),shallowGet=createGetter(!1,!0),readonlyGet=createGetter(!0),shallowReadonlyGet=createGetter(!0,!0),arrayInstrumentations={};function createGetter(e=!1,t=!1){return function(o,n,i){if("__v_isReactive"===n)return!e;if("__v_isReadonly"===n)return e;if("__v_raw"===n&&i===(e?t?shallowReadonlyMap:readonlyMap:t?shallowReactiveMap:reactiveMap).get(o))return o;const r=isArray(o);if(!e&&r&&hasOwn(arrayInstrumentations,n))return Reflect.get(arrayInstrumentations,n,i);const s=Reflect.get(o,n,i);if(isSymbol(n)?builtInSymbols.has(n):isNonTrackableKeys(n))return s;if(e||track(o,"get",n),t)return s;if(isRef(s)){return!r||!isIntegerKey(n)?s.value:s}return isObject$1(s)?e?readonly(s):reactive(s):s}}["includes","indexOf","lastIndexOf"].forEach((e=>{const t=Array.prototype[e];arrayInstrumentations[e]=function(...e){const o=toRaw(this);for(let e=0,t=this.length;e
{const t=Array.prototype[e];arrayInstrumentations[e]=function(...e){pauseTracking();const o=t.apply(this,e);return resetTracking(),o}}));const set=createSetter(),shallowSet=createSetter(!0);function createSetter(e=!1){return function(t,o,n,i){let r=t[o];if(!e&&(n=toRaw(n),r=toRaw(r),!isArray(t)&&isRef(r)&&!isRef(n)))return r.value=n,!0;const s=isArray(t)&&isIntegerKey(o)?Number(o)
!0,deleteProperty:(e,t)=>!0},shallowReactiveHandlers=extend({},mutableHandlers,{get:shallowGet,set:shallowSet});extend({},readonlyHandlers,{get:shallowReadonlyGet});const toReactive=e=>isObject$1(e)?reactive(e):e,toReadonly=e=>isObject$1(e)?readonly(e):e,toShallow=e=>e,getProto=e=>Reflect.getPrototypeOf(e);function get$1(e,t,o=!1,n=!1){const i=toRaw(e=e.__v_raw),r=toRaw(t);t!==r&&!o&&track(i,"get",t),!o&&track(i,"get",r);const{has:s}=getProto(i),a=n?toShallow:o?toReadonly:toReactive;return s.call(i,t)?a(e.get(t)):s.call(i,r)?a(e.get(r)):void(e!==i&&e.get(t))}function has$1(e,t=!1){const o=this.__v_raw,n=toRaw(o),i=toRaw(e);return e!==i&&!t&&track(n,"has",e),!t&&track(n,"has",i),e===i?o.has(e):o.has(e)||o.has(i)}function size(e,t=!1){return e=e.__v_raw,!t&&track(toRaw(e),"iterate",ITERATE_KEY),Reflect.get(e,"size",e)}function add(e){e=toRaw(e);const t=toRaw(this);return getProto(t).has.call(t,e)||(t.add(e),trigger$1(t,"add",e,e)),this}function set$1(e,t){t=toRaw(t);const o=toRaw(this),{has:n,get:i}=getProto(o);let r=n.call(o,e);r||(e=toRaw(e),r=n.call(o,e));const s=i.call(o,e);return o.set(e,t),r?hasChanged(t,s)&&trigger$1(o,"set",e,t):trigger$1(o,"add",e,t),this}function deleteEntry(e){const t=toRaw(this),{has:o,get:n}=getProto(t);let i=o.call(t,e);i||(e=toRaw(e),i=o.call(t,e)),n&&n.call(t,e);const r=t.delete(e);return i&&trigger$1(t,"delete",e,void 0),r}function clear(){const e=toRaw(this),t=0!==e.size,o=e.clear();return t&&trigger$1(e,"clear",void 0,void 0),o}function createForEach(e,t){return function(o,n){const i=this,r=i.__v_raw,s=toRaw(r),a=t?toShallow:e?toReadonly:toReactive;return!e&&track(s,"iterate",ITERATE_KEY),r.forEach(((e,t)=>o.call(n,a(e),a(t),i)))}}function createIterableMethod(e,t,o){return function(...n){const i=this.__v_raw,r=toRaw(i),s=isMap(r),a="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,l=i[e](...n),d=o?toShallow:t?toReadonly:toReactive;return!t&&track(r,"iterate",c?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:a?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(e){return function(...t){return"delete"!==e&&this}}const mutableInstrumentations={get(e){return get$1(this,e)},get size(){return size(this)},has:has$1,add:add,set:set$1,delete:deleteEntry,clear:clear,forEach:createForEach(!1,!1)},shallowInstrumentations={get(e){return get$1(this,e,!1,!0)},get size(){return size(this)},has:has$1,add:add,set:set$1,delete:deleteEntry,clear:clear,forEach:createForEach(!1,!0)},readonlyInstrumentations={get(e){return get$1(this,e,!0)},get size(){return size(this,!0)},has(e){return has$1.call(this,e,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},shallowReadonlyInstrumentations={get(e){return get$1(this,e,!0,!0)},get size(){return size(this,!0)},has(e){return has$1.call(this,e,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)},iteratorMethods=["keys","values","entries",Symbol.iterator];function createInstrumentationGetter(e,t){const o=t?e?shallowReadonlyInstrumentations:shallowInstrumentations:e?readonlyInstrumentations:mutableInstrumentations;return(t,n,i)=>"__v_isReactive"===n?!e:"__v_isReadonly"===n?e:"__v_raw"===n?t:Reflect.get(hasOwn(o,n)&&n in t?o:t,n,i)}iteratorMethods.forEach((e=>{mutableInstrumentations[e]=createIterableMethod(e,!1,!1),readonlyInstrumentations[e]=createIterableMethod(e,!0,!1),shallowInstrumentations[e]=createIterableMethod(e,!1,!0),shallowReadonlyInstrumentations[e]=createIterableMethod(e,!0,!0)}));const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},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 e&&e.__v_isReadonly?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 createReactiveObject(e,t,o,n,i){if(!isObject$1(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const s=getTargetType(e);if(0===s)return e;const a=new Proxy(e,2===s?n:o);return i.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 isProxy(e){return isReactive(e)||isReadonly(e)}function toRaw(e){return e&&toRaw(e.__v_raw)||e}function markRaw(e){return def(e,"__v_skip",!0),e}function isRef(e){return Boolean(e&&!0===e.__v_isRef)}function unref(e){return isRef(e)?e.value:e}const shallowUnwrapHandlers={get:(e,t,o)=>unref(Reflect.get(e,t,o)),set:(e,t,o,n)=>{const i=e[t];return isRef(i)&&!isRef(o)?(i.value=o,!0):Reflect.set(e,t,o,n)}};function proxyRefs(e){return isReactive(e)?e:new Proxy(e,shallowUnwrapHandlers)}class ObjectRefImpl{constructor(e,t){this._object=e,this._key=t,this.__v_isRef=!0}get value(){return this._object[this._key]}set value(e){this._object[this._key]=e}}function toRef(e,t){return isRef(e[t])?e[t]:new ObjectRefImpl(e,t)}class ComputedRefImpl{constructor(e,t,o){this._setter=t,this._dirty=!0,this.__v_isRef=!0,this.effect=effect(e,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,trigger$1(toRaw(this),"set","value"))}}),this.__v_isReadonly=o}get value(){const e=toRaw(this);return e._dirty&&(e._value=this.effect(),e._dirty=!1),track(e,"get","value"),e._value}set value(e){this._setter(e)}}function computed$1(e){let t,o;return isFunction(e)?(t=e,o=NOOP):(t=e.get,o=e.set),new ComputedRefImpl(t,o,isFunction(e)||!e.set)}const stack=[];function warn(e,...t){pauseTracking();const o=stack.length?stack[stack.length-1].component:null,n=o&&o.appContext.config.warnHandler,i=getComponentTrace();if(n)callWithErrorHandling(n,o,11,[e+t.join(""),o&&o.proxy,i.map((({vnode:e})=>`at <${formatComponentName(o,e.type)}>`)).join("\n"),i]);else{const o=[`[Vue warn]: ${e}`,...t];i.length&&o.push("\n",...formatTrace(i)),console.warn(...o)}resetTracking()}function getComponentTrace(){let e=stack[stack.length-1];if(!e)return[];const t=[];for(;e;){const o=t[0];o&&o.vnode===e?o.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}function formatTrace(e){const t=[];return e.forEach(((e,o)=>{t.push(...0===o?[]:["\n"],...formatTraceEntry(e))})),t}function formatTraceEntry({vnode:e,recurseCount:t}){const o=t>0?`... (${t} recursive calls)`:"",n=!!e.component&&null==e.component.parent,i=` at <${formatComponentName(e.component,e.type,n)}`,r=">"+o;return e.props?[i,...formatProps(e.props),r]:[i+r]}function formatProps(e){const t=[],o=Object.keys(e);return o.slice(0,3).forEach((o=>{t.push(...formatProp(o,e[o]))})),o.length>3&&t.push(" ..."),t}function formatProp(e,t,o){return isString(t)?(t=JSON.stringify(t),o?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?o?t:[`${e}=${t}`]:isRef(t)?(t=formatProp(e,toRaw(t.value),!0),o?t:[`${e}=Ref<`,t,">"]):isFunction(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=toRaw(t),o?t:[`${e}=`,t])}function callWithErrorHandling(e,t,o,n){let i;try{i=n?e(...n):e()}catch(e){handleError(e,t,o)}return i}function callWithAsyncErrorHandling(e,t,o,n){if(isFunction(e)){const i=callWithErrorHandling(e,t,o,n);return i&&isPromise$1(i)&&i.catch((e=>{handleError(e,t,o)})),i}const i=[];for(let r=0;r
>>1;getId(queue[e])
-1?queue.splice(t,0,e):queue.push(e),queueFlush()}}function queueFlush(){isFlushing||isFlushPending||(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function invalidateJob(e){const t=queue.indexOf(e);t>flushIndex&&queue.splice(t,1)}function queueCb(e,t,o,n){isArray(e)?o.push(...e):t&&t.includes(e,e.allowRecurse?n+1:n)||o.push(e),queueFlush()}function queuePreFlushCb(e){queueCb(e,activePreFlushCbs,pendingPreFlushCbs,preFlushIndex)}function queuePostFlushCb(e){queueCb(e,activePostFlushCbs,pendingPostFlushCbs,postFlushIndex)}function flushPreFlushCbs(e,t=null){if(pendingPreFlushCbs.length){for(currentPreFlushParentJob=t,activePreFlushCbs=[...new Set(pendingPreFlushCbs)],pendingPreFlushCbs.length=0,preFlushIndex=0;preFlushIndex
getId(e)-getId(t))),postFlushIndex=0;postFlushIndex
null==e.id?1/0:e.id;function flushJobs(e){isFlushPending=!1,isFlushing=!0,flushPreFlushCbs(e),queue.sort(((e,t)=>getId(e)-getId(t)));try{for(flushIndex=0;flushIndex
100){const e=t.ownerInstance,o=e&&getComponentName(e.type);return warn(`Maximum recursive updates exceeded${o?` in component <${o}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}e.set(t,o+1)}else e.set(t,1)}let devtools;function setDevtoolsHook(e){devtools=e}function devtoolsInitApp(e,t){devtools&&devtools.emit("app:init",e,t,{Fragment:Fragment,Text:Text,Comment:Comment$1,Static:Static})}function devtoolsUnmountApp(e){devtools&&devtools.emit("app:unmount",e)}const devtoolsComponentAdded=createDevtoolsComponentHook("component:added"),devtoolsComponentUpdated=createDevtoolsComponentHook("component:updated"),devtoolsComponentRemoved=createDevtoolsComponentHook("component:removed");function createDevtoolsComponentHook(e){return t=>{devtools&&devtools.emit(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function devtoolsComponentEmit(e,t,o){devtools&&devtools.emit("component:emit",e.appContext.app,e,t,o)}const globalCompatConfig={MODE:2};function getCompatConfigForKey(e,t){const o=t&&t.type.compatConfig;return o&&e in o?o[e]:globalCompatConfig[e]}function isCompatEnabled(e,t,o=!1){if(!o&&t&&t.type.__isBuiltIn)return!1;const n=getCompatConfigForKey("MODE",t)||2,i=getCompatConfigForKey(e,t);return 2===(isFunction(n)?n(t&&t.type):n)?!1!==i:!0===i||"suppress-warning"===i}function emit(e,t,...o){const n=e.vnode.props||EMPTY_OBJ;let i=o;const r=t.startsWith("update:"),s=r&&t.slice(7);if(s&&s in n){const e=`${"modelValue"===s?"model":s}Modifiers`,{number:t,trim:r}=n[e]||EMPTY_OBJ;r?i=o.map((e=>e.trim())):t&&(i=o.map(toNumber))}let a;__VUE_PROD_DEVTOOLS__&&devtoolsComponentEmit(e,t,i);let c=n[a=toHandlerKey(t)]||n[a=toHandlerKey(camelize(t))];!c&&r&&(c=n[a=toHandlerKey(hyphenate(t))]),c&&callWithAsyncErrorHandling(c,e,6,i);const l=n[a+"Once"];if(l){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,callWithAsyncErrorHandling(l,e,6,i)}}function normalizeEmitsOptions(e,t,o=!1){const n=t.emitsCache,i=n.get(e);if(void 0!==i)return i;const r=e.emits;let s={},a=!1;if(__VUE_OPTIONS_API__&&!isFunction(e)){const n=e=>{const o=normalizeEmitsOptions(e,t,!0);o&&(a=!0,extend(s,o))};!o&&t.mixins.length&&t.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}return r||a?(isArray(r)?r.forEach((e=>s[e]=null)):extend(s,r),n.set(e,s),s):(n.set(e,null),null)}function isEmitListener(e,t){return!(!e||!isOn(t))&&(t=t.slice(2).replace(/Once$/,""),hasOwn(e,t[0].toLowerCase()+t.slice(1))||hasOwn(e,hyphenate(t))||hasOwn(e,t))}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=currentRenderingInstance,o){if(!t)return e;if(e._n)return e;const n=(...o)=>{n._d&&setBlockTracking(-1);const i=setCurrentRenderingInstance(t),r=e(...o);return setCurrentRenderingInstance(i),n._d&&setBlockTracking(1),__VUE_PROD_DEVTOOLS__&&devtoolsComponentUpdated(t),r};return n._n=!0,n._c=!0,n._d=!0,n}let accessedAttrs=!1;function markAttrsAccessed(){accessedAttrs=!0}function renderComponentRoot(e){const{type:t,vnode:o,proxy:n,withProxy:i,props:r,propsOptions:[s],slots:a,attrs:c,emit:l,render:d,renderCache:u,data:p,setupState:h,ctx:m,inheritAttrs:f}=e;let _;const E=setCurrentRenderingInstance(e);try{let e;if(4&o.shapeFlag){const t=i||n;_=normalizeVNode(d.call(t,t,u,r,h,p,m)),e=c}else{const o=t;0,_=normalizeVNode(o.length>1?o(r,{attrs:c,slots:a,emit:l}):o(r,null)),e=t.props?c:getFunctionalFallthrough(c)}let E=_;if(e&&!1!==f){const t=Object.keys(e),{shapeFlag:o}=E;t.length&&(1&o||6&o)&&(s&&t.some(isModelListener)&&(e=filterModelListeners(e,s)),E=cloneVNode(E,e))}0,o.dirs&&(E.dirs=E.dirs?E.dirs.concat(o.dirs):o.dirs),o.transition&&(E.transition=o.transition),_=E}catch(t){blockStack.length=0,handleError(t,e,1),_=createVNode(Comment$1)}return setCurrentRenderingInstance(E),_}const getChildRoot=e=>{const t=e.children,o=e.dynamicChildren,n=filterSingleRoot(t);if(!n)return[e,void 0];const i=t.indexOf(n),r=o?o.indexOf(n):-1;return[normalizeVNode(n),n=>{t[i]=n,o&&(r>-1?o[r]=n:n.patchFlag>0&&(e.dynamicChildren=[...o,n]))}]};function filterSingleRoot(e){let t;for(let o=0;o
{let t;for(const o in e)("class"===o||"style"===o||isOn(o))&&((t||(t={}))[o]=e[o]);return t},filterModelListeners=(e,t)=>{const o={};for(const n in e)isModelListener(n)&&n.slice(9)in t||(o[n]=e[n]);return o},isElementRoot=e=>6&e.shapeFlag||1&e.shapeFlag||e.type===Comment$1;function shouldUpdateComponent(e,t,o){const{props:n,children:i,component:r}=e,{props:s,children:a,patchFlag:c}=t,l=r.emitsOptions;if(t.dirs||t.transition)return!0;if(!(o&&c>=0))return!(!i&&!a||a&&a.$stable)||n!==s&&(n?!s||hasPropsChanged(n,s,l):!!s);if(1024&c)return!0;if(16&c)return n?hasPropsChanged(n,s,l):!!s;if(8&c){const e=t.dynamicProps;for(let t=0;t
e.__isSuspense;function queueEffectWithSuspense(e,t){t&&t.pendingBranch?isArray(e)?t.effects.push(...e):t.effects.push(e):queuePostFlushCb(e)}function provide(e,t){if(currentInstance){let o=currentInstance.provides;const n=currentInstance.parent&¤tInstance.parent.provides;n===o&&(o=currentInstance.provides=Object.create(n)),o[e]=t}else;}function inject(e,t,o=!1){const n=currentInstance||currentRenderingInstance;if(n){const i=null==n.parent?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return o&&isFunction(t)?t.call(n.proxy):t}}const INITIAL_WATCHER_VALUE={};function watch(e,t,o){return doWatch(e,t,o)}function doWatch(e,t,{immediate:o,deep:n,flush:i,onTrack:r,onTrigger:s}=EMPTY_OBJ,a=currentInstance){let c,l,d=!1,u=!1;if(isRef(e)?(c=()=>e.value,d=!!e._shallow):isReactive(e)?(c=()=>e,n=!0):isArray(e)?(u=!0,d=e.some(isReactive),c=()=>e.map((e=>isRef(e)?e.value:isReactive(e)?traverse(e):isFunction(e)?callWithErrorHandling(e,a,2):void 0))):c=isFunction(e)?t?()=>callWithErrorHandling(e,a,2):()=>{if(!a||!a.isUnmounted)return l&&l(),callWithAsyncErrorHandling(e,a,3,[p])}:NOOP,t&&n){const e=c;c=()=>traverse(e())}let p=e=>{l=_.options.onStop=()=>{callWithErrorHandling(e,a,4)}},h=u?[]:INITIAL_WATCHER_VALUE;const m=()=>{if(_.active)if(t){const e=_();(n||d||(u?e.some(((e,t)=>hasChanged(e,h[t]))):hasChanged(e,h)))&&(l&&l(),callWithAsyncErrorHandling(t,a,3,[e,h===INITIAL_WATCHER_VALUE?void 0:h,p]),h=e)}else _()};let f;m.allowRecurse=!!t,f="sync"===i?m:"post"===i?()=>queuePostRenderEffect(m,a&&a.suspense):()=>{!a||a.isMounted?queuePreFlushCb(m):m()};const _=effect(c,{lazy:!0,onTrack:r,onTrigger:s,scheduler:f});return recordInstanceBoundEffect(_,a),t?o?m():h=_():"post"===i?queuePostRenderEffect(_,a&&a.suspense):_(),()=>{stop(_),a&&remove(a.effects,_)}}function instanceWatch(e,t,o){const n=this.proxy,i=isString(e)?e.includes(".")?createPathGetter(n,e):()=>n[e]:e.bind(n,n);let r;return isFunction(t)?r=t:(r=t.handler,o=t),doWatch(i,r.bind(n),o,this)}function createPathGetter(e,t){const o=t.split(".");return()=>{let t=e;for(let e=0;e
{traverse(e,t)}));else if(isPlainObject(e))for(const o in e)traverse(e[o],t);return e}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],BaseTransitionImpl={name:"BaseTransition",props:{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},setup(e,{slots:t}){const o=getCurrentInstance(),n=useTransitionState();let i;return()=>{const r=t.default&&getTransitionRawChildren(t.default(),!0);if(!r||!r.length)return;const s=toRaw(e),{mode:a}=s,c=r[0];if(n.isLeaving)return emptyPlaceholder(c);const l=getKeepAliveChild(c);if(!l)return emptyPlaceholder(c);const d=resolveTransitionHooks(l,s,n,o);setTransitionHooks(l,d);const u=o.subTree,p=u&&getKeepAliveChild(u);let h=!1;const{getTransitionKey:m}=l.type;if(m){const e=m();void 0===i?i=e:e!==i&&(i=e,h=!0)}if(p&&p.type!==Comment$1&&(!isSameVNodeType(l,p)||h)){const e=resolveTransitionHooks(p,s,n,o);if(setTransitionHooks(p,e),"out-in"===a)return n.isLeaving=!0,e.afterLeave=()=>{n.isLeaving=!1,o.update()},emptyPlaceholder(c);"in-out"===a&&l.type!==Comment$1&&(e.delayLeave=(e,t,o)=>{getLeavingNodesForType(n,p)[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=o})}return c}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(e,t){const{leavingVNodes:o}=e;let n=o.get(t.type);return n||(n=Object.create(null),o.set(t.type,n)),n}function resolveTransitionHooks(e,t,o,n){const{appear:i,mode:r,persisted:s=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:l,onEnterCancelled:d,onBeforeLeave:u,onLeave:p,onAfterLeave:h,onLeaveCancelled:m,onBeforeAppear:f,onAppear:_,onAfterAppear:E,onAppearCancelled:g}=t,y=String(e.key),v=getLeavingNodesForType(o,e),C=(e,t)=>{e&&callWithAsyncErrorHandling(e,n,9,t)},S={mode:r,persisted:s,beforeEnter(t){let n=a;if(!o.isMounted){if(!i)return;n=f||a}t._leaveCb&&t._leaveCb(!0);const r=v[y];r&&isSameVNodeType(e,r)&&r.el._leaveCb&&r.el._leaveCb(),C(n,[t])},enter(e){let t=c,n=l,r=d;if(!o.isMounted){if(!i)return;t=_||c,n=E||l,r=g||d}let s=!1;const a=e._enterCb=t=>{s||(s=!0,C(t?r:n,[e]),S.delayedLeave&&S.delayedLeave(),e._enterCb=void 0)};t?(t(e,a),t.length<=1&&a()):a()},leave(t,n){const i=String(e.key);if(t._enterCb&&t._enterCb(!0),o.isUnmounting)return n();C(u,[t]);let r=!1;const s=t._leaveCb=o=>{r||(r=!0,n(),C(o?m:h,[t]),t._leaveCb=void 0,v[i]===e&&delete v[i])};v[i]=e,p?(p(t,s),p.length<=1&&s()):s()},clone:e=>resolveTransitionHooks(e,t,o,n)};return S}function emptyPlaceholder(e){if(isKeepAlive(e))return(e=cloneVNode(e)).children=null,e}function getKeepAliveChild(e){return isKeepAlive(e)?e.children?e.children[0]:void 0:e}function setTransitionHooks(e,t){6&e.shapeFlag&&e.component?setTransitionHooks(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function getTransitionRawChildren(e,t=!1){let o=[],n=0;for(let i=0;i
1)for(let e=0;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,o=currentInstance){const n=e.__wdc||(e.__wdc=()=>{let t=o;for(;t;){if(t.isDeactivated)return;t=t.parent}e()});if(injectHook(t,n,o),o){let e=o.parent;for(;e&&e.parent;)isKeepAlive(e.parent.vnode)&&injectToKeepAliveRoot(n,t,o,e),e=e.parent}}function injectToKeepAliveRoot(e,t,o,n){const i=injectHook(t,e,n,!0);onUnmounted((()=>{remove(n[t],i)}),o)}function injectHook(e,t,o=currentInstance,n=!1){if(o){const i=o[e]||(o[e]=[]),r=t.__weh||(t.__weh=(...n)=>{if(o.isUnmounted)return;pauseTracking(),setCurrentInstance(o);const i=callWithAsyncErrorHandling(t,o,e,n);return setCurrentInstance(null),resetTracking(),i});return n?i.unshift(r):i.push(r),r}}const createHook=e=>(t,o=currentInstance)=>(!isInSSRComponentSetup||"sp"===e)&&injectHook(e,t,o),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=currentInstance){injectHook("ec",e,t)}let shouldCacheAccess=!0;function applyOptions(e){const t=resolveMergedOptions(e),o=e.proxy,n=e.ctx;shouldCacheAccess=!1,t.beforeCreate&&callHook$1(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:s,watch:a,provide:c,inject:l,created:d,beforeMount:u,mounted:p,beforeUpdate:h,updated:m,activated:f,deactivated:_,beforeDestroy:E,beforeUnmount:g,destroyed:y,unmounted:v,render:C,renderTracked:S,renderTriggered:b,errorCaptured:w,serverPrefetch:O,expose:M,inheritAttrs:I,components:A,directives:T,filters:N}=t;if(l&&resolveInjections(l,n,null),s)for(const e in s){const t=s[e];isFunction(t)&&(n[e]=t.bind(o))}if(i){const t=i.call(o,o);isObject$1(t)&&(e.data=reactive(t))}if(shouldCacheAccess=!0,r)for(const e in r){const t=r[e],i=computed({get:isFunction(t)?t.bind(o,o):isFunction(t.get)?t.get.bind(o,o):NOOP,set:!isFunction(t)&&isFunction(t.set)?t.set.bind(o):NOOP});Object.defineProperty(n,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(a)for(const e in a)createWatcher(a[e],n,o,e);if(c){const e=isFunction(c)?c.call(o):c;Reflect.ownKeys(e).forEach((t=>{provide(t,e[t])}))}function D(e,t){isArray(t)?t.forEach((t=>e(t.bind(o)))):t&&e(t.bind(o))}if(d&&callHook$1(d,e,"c"),D(onBeforeMount,u),D(onMounted,p),D(onBeforeUpdate,h),D(onUpdated,m),D(onActivated,f),D(onDeactivated,_),D(onErrorCaptured,w),D(onRenderTracked,S),D(onRenderTriggered,b),D(onBeforeUnmount,g),D(onUnmounted,v),D(onServerPrefetch,O),isArray(M))if(M.length){const t=e.exposed||(e.exposed=proxyRefs({}));M.forEach((e=>{t[e]=toRef(o,e)}))}else e.exposed||(e.exposed=EMPTY_OBJ);C&&e.render===NOOP&&(e.render=C),null!=I&&(e.inheritAttrs=I),A&&(e.components=A),T&&(e.directives=T)}function resolveInjections(e,t,o=NOOP){isArray(e)&&(e=normalizeInject(e));for(const o in e){const n=e[o];isObject$1(n)?t[o]="default"in n?inject(n.from||o,n.default,!0):inject(n.from||o):t[o]=inject(n)}}function callHook$1(e,t,o){callWithAsyncErrorHandling(isArray(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,o)}function createWatcher(e,t,o,n){const i=n.includes(".")?createPathGetter(o,n):()=>o[n];if(isString(e)){const o=t[e];isFunction(o)&&watch(i,o)}else if(isFunction(e))watch(i,e.bind(o));else if(isObject$1(e))if(isArray(e))e.forEach((e=>createWatcher(e,t,o,n)));else{const n=isFunction(e.handler)?e.handler.bind(o):t[e.handler];isFunction(n)&&watch(i,n,e)}}function resolveMergedOptions(e){const t=e.type,{mixins:o,extends:n}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,a=r.get(t);let c;return a?c=a:i.length||o||n?(c={},i.length&&i.forEach((e=>mergeOptions(c,e,s,!0))),mergeOptions(c,t,s)):c=t,r.set(t,c),c}function mergeOptions(e,t,o,n=!1){const{mixins:i,extends:r}=t;r&&mergeOptions(e,r,o,!0),i&&i.forEach((t=>mergeOptions(e,t,o,!0)));for(const i in t)if(n&&"expose"===i);else{const n=internalOptionMergeStrats[i]||o&&o[i];e[i]=n?n(e[i],t[i]):t[i]}return e}const internalOptionMergeStrats={data:mergeDataFn,props:mergeObjectOptions,emits:mergeObjectOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,destroyed: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 o=0;o
0)||16&s){let n;setFullProps(e,t,i,r)&&(l=!0);for(const r in a)t&&(hasOwn(t,r)||(n=hyphenate(r))!==r&&hasOwn(t,n))||(c?!o||void 0===o[r]&&void 0===o[n]||(i[r]=resolvePropValue(c,a,r,void 0,e,!0)):delete i[r]);if(r!==a)for(const e in r)t&&hasOwn(t,e)||(delete r[e],l=!0)}else if(8&s){const o=e.vnode.dynamicProps;for(let n=0;n
{c=!0;const[o,n]=normalizePropsOptions(e,t,!0);extend(s,o),n&&a.push(...n)};!o&&t.mixins.length&&t.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}if(!r&&!c)return n.set(e,EMPTY_ARR),EMPTY_ARR;if(isArray(r))for(let e=0;e
-1,n[1]=o<0||e
-1||hasOwn(n,"default"))&&a.push(t)}}}const l=[s,a];return n.set(e,l),l}function validatePropName(e){return"$"!==e[0]}function getType(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function isSameType(e,t){return getType(e)===getType(t)}function getTypeIndex(e,t){return isArray(t)?t.findIndex((t=>isSameType(t,e))):isFunction(t)&&isSameType(t,e)?0:-1}const isInternalKey=e=>"_"===e[0]||"$stable"===e,normalizeSlotValue=e=>isArray(e)?e.map(normalizeVNode):[normalizeVNode(e)],normalizeSlot=(e,t,o)=>{const n=withCtx((e=>normalizeSlotValue(t(e))),o);return n._c=!1,n},normalizeObjectSlots=(e,t,o)=>{const n=e._ctx;for(const o in e){if(isInternalKey(o))continue;const i=e[o];if(isFunction(i))t[o]=normalizeSlot(0,i,n);else if(null!=i){const e=normalizeSlotValue(i);t[o]=()=>e}}},normalizeVNodeSlots=(e,t)=>{const o=normalizeSlotValue(t);e.slots.default=()=>o},initSlots=(e,t)=>{if(32&e.vnode.shapeFlag){const o=t._;o?(e.slots=toRaw(t),def(t,"_",o)):normalizeObjectSlots(t,e.slots={})}else e.slots={},t&&normalizeVNodeSlots(e,t);def(e.slots,InternalObjectKey,1)},updateSlots=(e,t,o)=>{const{vnode:n,slots:i}=e;let r=!0,s=EMPTY_OBJ;if(32&n.shapeFlag){const e=t._;e?o&&1===e?r=!1:(extend(i,t),o||1!==e||delete i._):(r=!t.$stable,normalizeObjectSlots(t,i)),s=t}else t&&(normalizeVNodeSlots(e,t),s={default:1});if(r)for(const e in i)isInternalKey(e)||e in s||delete i[e]};function withDirectives(e,t){if(null===currentRenderingInstance)return e;const o=currentRenderingInstance.proxy,n=e.dirs||(e.dirs=[]);for(let e=0;e
(r.has(e)||(e&&isFunction(e.install)?(r.add(e),e.install(a,...t)):isFunction(e)&&(r.add(e),e(a,...t))),a),mixin:e=>(__VUE_OPTIONS_API__&&(i.mixins.includes(e)||i.mixins.push(e)),a),component:(e,t)=>t?(i.components[e]=t,a):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,a):i.directives[e],mount(r,c,l){if(!s){const d=createVNode(o,n);return d.appContext=i,c&&t?t(d,r):e(d,r,l),s=!0,a._container=r,r.__vue_app__=a,__VUE_PROD_DEVTOOLS__&&(a._instance=d.component,devtoolsInitApp(a,version)),d.component.proxy}},unmount(){s&&(e(null,a._container),__VUE_PROD_DEVTOOLS__&&(a._instance=null,devtoolsUnmountApp(a)),delete a._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,a)};return a}}function initFeatureFlags(){"boolean"!=typeof __VUE_OPTIONS_API__&&(getGlobalThis().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&(getGlobalThis().__VUE_PROD_DEVTOOLS__=!1)}const prodEffectOptions={scheduler:queueJob,allowRecurse:!0},queuePostRenderEffect=queueEffectWithSuspense,setRef=(e,t,o,n,i=!1)=>{if(isArray(e))return void e.forEach(((e,r)=>setRef(e,t&&(isArray(t)?t[r]:t),o,n,i)));if(isAsyncWrapper(n)&&!i)return;const r=4&n.shapeFlag?n.component.exposed||n.component.proxy:n.el,s=i?null:r,{i:a,r:c}=e,l=t&&t.r,d=a.refs===EMPTY_OBJ?a.refs={}:a.refs,u=a.setupState;if(null!=l&&l!==c&&(isString(l)?(d[l]=null,hasOwn(u,l)&&(u[l]=null)):isRef(l)&&(l.value=null)),isString(c)){const e=()=>{d[c]=s,hasOwn(u,c)&&(u[c]=s)};s?(e.id=-1,queuePostRenderEffect(e,o)):e()}else if(isRef(c)){const e=()=>{c.value=s};s?(e.id=-1,queuePostRenderEffect(e,o)):e()}else isFunction(c)&&callWithErrorHandling(c,a,12,[s,d])};function createRenderer(e){return baseCreateRenderer(e)}function baseCreateRenderer(e,t){if(initFeatureFlags(),__VUE_PROD_DEVTOOLS__){const e=getGlobalThis();e.__VUE__=!0,setDevtoolsHook(e.__VUE_DEVTOOLS_GLOBAL_HOOK__)}const{insert:o,remove:n,patchProp:i,forcePatchProp:r,createElement:s,createText:a,createComment:c,setText:l,setElementText:d,parentNode:u,nextSibling:p,setScopeId:h=NOOP,cloneNode:m,insertStaticContent:f}=e,_=(e,t,o,n=null,i=null,r=null,s=!1,a=null,c=!1)=>{e&&!isSameVNodeType(e,t)&&(n=K(e),P(e,i,r,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:l,ref:d,shapeFlag:u}=t;switch(l){case Text:E(e,t,o,n);break;case Comment$1:g(e,t,o,n);break;case Static:null==e&&y(t,o,n,s);break;case Fragment:I(e,t,o,n,i,r,s,a,c);break;default:1&u?v(e,t,o,n,i,r,s,a,c):6&u?A(e,t,o,n,i,r,s,a,c):(64&u||128&u)&&l.process(e,t,o,n,i,r,s,a,c,W)}null!=d&&i&&setRef(d,e&&e.ref,r,t||e,!t)},E=(e,t,n,i)=>{if(null==e)o(t.el=a(t.children),n,i);else{const o=t.el=e.el;t.children!==e.children&&l(o,t.children)}},g=(e,t,n,i)=>{null==e?o(t.el=c(t.children||""),n,i):t.el=e.el},y=(e,t,o,n)=>{[e.el,e.anchor]=f(e.children,t,o,n,e.el&&[e.el,e.anchor])},v=(e,t,o,n,i,r,s,a,c)=>{s=s||"svg"===t.type,null==e?C(t,o,n,i,r,s,a,c):w(e,t,i,r,s,a,c)},C=(e,t,n,r,a,c,l,u)=>{let p,h;const{type:f,props:_,shapeFlag:E,transition:g,patchFlag:y,dirs:v}=e;if(e.el&&void 0!==m&&-1===y)p=e.el=m(e.el);else{if(p=e.el=s(e.type,c,_&&_.is,_),8&E?d(p,e.children):16&E&&b(e.children,p,null,r,a,c&&"foreignObject"!==f,l,u||!!e.dynamicChildren),v&&invokeDirectiveHook(e,null,r,"created"),_){for(const t in _)isReservedProp(t)||i(p,t,null,_[t],c,e.children,r,a,H);(h=_.onVnodeBeforeMount)&&invokeVNodeHook(h,r,e)}S(p,e,e.scopeId,l,r)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(p,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(p,"__vueParentComponent",{value:r,enumerable:!1})),v&&invokeDirectiveHook(e,null,r,"beforeMount");const C=(!a||a&&!a.pendingBranch)&&g&&!g.persisted;C&&g.beforeEnter(p),o(p,t,n),((h=_&&_.onVnodeMounted)||C||v)&&queuePostRenderEffect((()=>{h&&invokeVNodeHook(h,r,e),C&&g.enter(p),v&&invokeDirectiveHook(e,null,r,"mounted")}),a)},S=(e,t,o,n,i)=>{if(o&&h(e,o),n)for(let t=0;t
{for(let l=c;l
{const l=t.el=e.el;let{patchFlag:u,dynamicChildren:p,dirs:h}=t;u|=16&e.patchFlag;const m=e.props||EMPTY_OBJ,f=t.props||EMPTY_OBJ;let _;if((_=f.onVnodeBeforeUpdate)&&invokeVNodeHook(_,o,t,e),h&&invokeDirectiveHook(t,e,o,"beforeUpdate"),u>0){if(16&u)M(l,t,m,f,o,n,s);else if(2&u&&m.class!==f.class&&i(l,"class",null,f.class,s),4&u&&i(l,"style",m.style,f.style,s),8&u){const a=t.dynamicProps;for(let t=0;t
{_&&invokeVNodeHook(_,o,t,e),h&&invokeDirectiveHook(t,e,o,"updated")}),n)},O=(e,t,o,n,i,r,s)=>{for(let a=0;a
{if(o!==n){for(const l in n){if(isReservedProp(l))continue;const d=n[l],u=o[l];(d!==u||r&&r(e,l))&&i(e,l,u,d,c,t.children,s,a,H)}if(o!==EMPTY_OBJ)for(const r in o)isReservedProp(r)||r in n||i(e,r,o[r],null,c,t.children,s,a,H)}},I=(e,t,n,i,r,s,c,l,d)=>{const u=t.el=e?e.el:a(""),p=t.anchor=e?e.anchor:a("");let{patchFlag:h,dynamicChildren:m,slotScopeIds:f}=t;m&&(d=!0),f&&(l=l?l.concat(f):f),null==e?(o(u,n,i),o(p,n,i),b(t.children,n,p,r,s,c,l,d)):h>0&&64&h&&m&&e.dynamicChildren?(O(e.dynamicChildren,m,n,r,s,c,l),(null!=t.key||r&&t===r.subTree)&&traverseStaticChildren(e,t,!0)):$(e,t,n,p,r,s,c,l,d)},A=(e,t,o,n,i,r,s,a,c)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?i.ctx.activate(t,o,n,s,c):T(t,o,n,i,r,s,c):N(e,t,c)},T=(e,t,o,n,i,r,s)=>{const a=e.component=createComponentInstance(e,n,i);if(isKeepAlive(e)&&(a.ctx.renderer=W),setupComponent(a),a.asyncDep){if(i&&i.registerDep(a,D),!e.el){const e=a.subTree=createVNode(Comment$1);g(null,e,t,o)}}else D(a,e,t,o,i,r,s)},N=(e,t,o)=>{const n=t.component=e.component;if(shouldUpdateComponent(e,t,o)){if(n.asyncDep&&!n.asyncResolved)return void R(n,t,o);n.next=t,invalidateJob(n.update),n.update()}else t.component=e.component,t.el=e.el,n.vnode=t},D=(e,t,o,n,i,r,s)=>{e.update=effect((function(){if(e.isMounted){let t,{next:o,bu:n,u:a,parent:c,vnode:l}=e,d=o;o?(o.el=l.el,R(e,o,s)):o=l,n&&invokeArrayFns(n),(t=o.props&&o.props.onVnodeBeforeUpdate)&&invokeVNodeHook(t,c,o,l);const p=renderComponentRoot(e),h=e.subTree;e.subTree=p,_(h,p,u(h.el),K(h),e,i,r),o.el=p.el,null===d&&updateHOCHostEl(e,p.el),a&&queuePostRenderEffect(a,i),(t=o.props&&o.props.onVnodeUpdated)&&queuePostRenderEffect((()=>invokeVNodeHook(t,c,o,l)),i),__VUE_PROD_DEVTOOLS__&&devtoolsComponentUpdated(e)}else{let s;const{el:a,props:c}=t,{bm:l,m:d,parent:u}=e;if(l&&invokeArrayFns(l),(s=c&&c.onVnodeBeforeMount)&&invokeVNodeHook(s,u,t),a&&z){const o=()=>{e.subTree=renderComponentRoot(e),z(a,e.subTree,e,i,null)};isAsyncWrapper(t)?t.type.__asyncLoader().then((()=>!e.isUnmounted&&o())):o()}else{const s=e.subTree=renderComponentRoot(e);_(null,s,o,n,e,i,r),t.el=s.el}if(d&&queuePostRenderEffect(d,i),s=c&&c.onVnodeMounted){const e=t;queuePostRenderEffect((()=>invokeVNodeHook(s,u,e)),i)}256&t.shapeFlag&&e.a&&queuePostRenderEffect(e.a,i),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&devtoolsComponentAdded(e),t=o=n=null}}),prodEffectOptions)},R=(e,t,o)=>{t.component=e;const n=e.vnode.props;e.vnode=t,e.next=null,updateProps(e,t.props,n,o),updateSlots(e,t.children,o),pauseTracking(),flushPreFlushCbs(void 0,e.update),resetTracking()},$=(e,t,o,n,i,r,s,a,c=!1)=>{const l=e&&e.children,u=e?e.shapeFlag:0,p=t.children,{patchFlag:h,shapeFlag:m}=t;if(h>0){if(128&h)return void V(l,p,o,n,i,r,s,a,c);if(256&h)return void k(l,p,o,n,i,r,s,a,c)}8&m?(16&u&&H(l,i,r),p!==l&&d(o,p)):16&u?16&m?V(l,p,o,n,i,r,s,a,c):H(l,i,r,!0):(8&u&&d(o,""),16&m&&b(p,o,n,i,r,s,a,c))},k=(e,t,o,n,i,r,s,a,c)=>{t=t||EMPTY_ARR;const l=(e=e||EMPTY_ARR).length,d=t.length,u=Math.min(l,d);let p;for(p=0;p
d?H(e,i,r,!0,!1,u):b(t,o,n,i,r,s,a,c,u)},V=(e,t,o,n,i,r,s,a,c)=>{let l=0;const d=t.length;let u=e.length-1,p=d-1;for(;l<=u&&l<=p;){const n=e[l],d=t[l]=c?cloneIfMounted(t[l]):normalizeVNode(t[l]);if(!isSameVNodeType(n,d))break;_(n,d,o,null,i,r,s,a,c),l++}for(;l<=u&&l<=p;){const n=e[u],l=t[p]=c?cloneIfMounted(t[p]):normalizeVNode(t[p]);if(!isSameVNodeType(n,l))break;_(n,l,o,null,i,r,s,a,c),u--,p--}if(l>u){if(l<=p){const e=p+1,u=e
p)for(;l<=u;)P(e[l],i,r,!0),l++;else{const h=l,m=l,f=new Map;for(l=m;l<=p;l++){const e=t[l]=c?cloneIfMounted(t[l]):normalizeVNode(t[l]);null!=e.key&&f.set(e.key,l)}let E,g=0;const y=p-m+1;let v=!1,C=0;const S=new Array(y);for(l=0;l
=y){P(n,i,r,!0);continue}let d;if(null!=n.key)d=f.get(n.key);else for(E=m;E<=p;E++)if(0===S[E-m]&&isSameVNodeType(n,t[E])){d=E;break}void 0===d?P(n,i,r,!0):(S[d-m]=l+1,d>=C?C=d:v=!0,_(n,t[d],o,null,i,r,s,a,c),g++)}const b=v?getSequence(S):EMPTY_ARR;for(E=b.length-1,l=y-1;l>=0;l--){const e=m+l,u=t[e],p=e+1
{const{el:s,type:a,transition:c,children:l,shapeFlag:d}=e;if(6&d)return void L(e.component.subTree,t,n,i);if(128&d)return void e.suspense.move(t,n,i);if(64&d)return void a.move(e,t,n,W);if(a===Fragment){o(s,t,n);for(let e=0;e
{let r;for(;e&&e!==t;)r=p(e),o(e,n,i),e=r;o(t,n,i)})(e,t,n);if(2!==i&&1&d&&c)if(0===i)c.beforeEnter(s),o(s,t,n),queuePostRenderEffect((()=>c.enter(s)),r);else{const{leave:e,delayLeave:i,afterLeave:r}=c,a=()=>o(s,t,n),l=()=>{e(s,(()=>{a(),r&&r()}))};i?i(s,a,l):l()}else o(s,t,n)},P=(e,t,o,n=!1,i=!1)=>{const{type:r,props:s,ref:a,children:c,dynamicChildren:l,shapeFlag:d,patchFlag:u,dirs:p}=e;if(null!=a&&setRef(a,null,o,e,!0),256&d)return void t.ctx.deactivate(e);const h=1&d&&p;let m;if((m=s&&s.onVnodeBeforeUnmount)&&invokeVNodeHook(m,t,e),6&d)F(e.component,o,n);else{if(128&d)return void e.suspense.unmount(o,n);h&&invokeDirectiveHook(e,null,t,"beforeUnmount"),64&d?e.type.remove(e,t,o,i,W,n):l&&(r!==Fragment||u>0&&64&u)?H(l,t,o,!1,!0):(r===Fragment&&(128&u||256&u)||!i&&16&d)&&H(c,t,o),n&&x(e)}((m=s&&s.onVnodeUnmounted)||h)&&queuePostRenderEffect((()=>{m&&invokeVNodeHook(m,t,e),h&&invokeDirectiveHook(e,null,t,"unmounted")}),o)},x=e=>{const{type:t,el:o,anchor:i,transition:r}=e;if(t===Fragment)return void B(o,i);if(t===Static)return void(({el:e,anchor:t})=>{let o;for(;e&&e!==t;)o=p(e),n(e),e=o;n(t)})(e);const s=()=>{n(o),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:n}=r,i=()=>t(o,s);n?n(e.el,s,i):i()}else s()},B=(e,t)=>{let o;for(;e!==t;)o=p(e),n(e),e=o;n(t)},F=(e,t,o)=>{const{bum:n,effects:i,update:r,subTree:s,um:a}=e;if(n&&invokeArrayFns(n),i)for(let e=0;e
{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve()),__VUE_PROD_DEVTOOLS__&&devtoolsComponentRemoved(e)},H=(e,t,o,n=!1,i=!1,r=0)=>{for(let s=r;s
6&e.shapeFlag?K(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),U=(e,t,o)=>{null==e?t._vnode&&P(t._vnode,null,null,!0):_(t._vnode||null,e,t,null,null,null,o),flushPostFlushCbs(),t._vnode=e},W={p:_,um:P,m:L,r:x,mt:T,mc:b,pc:$,pbc:O,n:K,o:e};let j,z;return t&&([j,z]=t(W)),{render:U,hydrate:j,createApp:createAppAPI(U,j)}}function invokeVNodeHook(e,t,o,n=null){callWithAsyncErrorHandling(e,t,7,[o,n])}function traverseStaticChildren(e,t,o=!1){const n=e.children,i=t.children;if(isArray(n)&&isArray(i))for(let e=0;e
0&&(t[n]=o[r-1]),o[r]=n)}}for(r=o.length,s=o[r-1];r-- >0;)o[r]=s,s=t[s];return o}const isTeleport=e=>e.__isTeleport,COMPONENTS="components";function resolveComponent(e,t){return resolveAsset(COMPONENTS,e,!0,t)||e}const NULL_DYNAMIC_COMPONENT=Symbol();function resolveAsset(e,t,o=!0,n=!1){const i=currentRenderingInstance||currentInstance;if(i){const o=i.type;if(e===COMPONENTS){const e=getComponentName(o);if(e&&(e===t||e===camelize(t)||e===capitalize(camelize(t))))return o}const r=resolve(i[e]||o[e],t)||resolve(i.appContext[e],t);return!r&&n?o:r}}function resolve(e,t){return e&&(e[t]||e[camelize(t)]||e[capitalize(camelize(t))])}const Fragment=Symbol(void 0),Text=Symbol(void 0),Comment$1=Symbol(void 0),Static=Symbol(void 0),blockStack=[];let currentBlock=null;function openBlock(e=!1){blockStack.push(currentBlock=e?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(e){isBlockTreeEnabled+=e}function createBlock(e,t,o,n,i){const r=createVNode(e,t,o,n,i,!0);return r.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(r),r}function isVNode(e){return!!e&&!0===e.__v_isVNode}function isSameVNodeType(e,t){return e.type===t.type&&e.key===t.key}const InternalObjectKey="__vInternal",normalizeKey=({key:e})=>null!=e?e:null,normalizeRef=({ref:e})=>null!=e?isString(e)||isRef(e)||isFunction(e)?{i:currentRenderingInstance,r:e}:e:null,createVNode=_createVNode;function _createVNode(e,t=null,o=null,n=0,i=null,r=!1){if(e&&e!==NULL_DYNAMIC_COMPONENT||(e=Comment$1),isVNode(e)){const n=cloneVNode(e,t,!0);return o&&normalizeChildren(n,o),n}if(isClassComponent(e)&&(e=e.__vccOpts),t){(isProxy(t)||InternalObjectKey in t)&&(t=extend({},t));let{class:e,style:o}=t;e&&!isString(e)&&(t.class=normalizeClass(e)),isObject$1(o)&&(isProxy(o)&&!isArray(o)&&(o=extend({},o)),t.style=normalizeStyle(o))}const s=isString(e)?1:isSuspense(e)?128:isTeleport(e)?64:isObject$1(e)?4:isFunction(e)?2:0,a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&normalizeKey(t),ref:t&&normalizeRef(t),scopeId:currentScopeId,slotScopeIds:null,children:null,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null};return normalizeChildren(a,o),128&s&&e.normalize(a),isBlockTreeEnabled>0&&!r&¤tBlock&&(n>0||6&s)&&32!==n&¤tBlock.push(a),a}function cloneVNode(e,t,o=!1){const{props:n,ref:i,patchFlag:r,children:s}=e,a=t?mergeProps(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&normalizeKey(a),ref:t&&t.ref?o&&i?isArray(i)?i.concat(normalizeRef(t)):[i,normalizeRef(t)]:normalizeRef(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fragment?-1===r?16:16|r:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cloneVNode(e.ssContent),ssFallback:e.ssFallback&&cloneVNode(e.ssFallback),el:e.el,anchor:e.anchor}}function createTextVNode(e=" ",t=0){return createVNode(Text,null,e,t)}function createCommentVNode(e="",t=!1){return t?(openBlock(),createBlock(Comment$1,null,e)):createVNode(Comment$1,null,e)}function normalizeVNode(e){return null==e||"boolean"==typeof e?createVNode(Comment$1):isArray(e)?createVNode(Fragment,null,e.slice()):"object"==typeof e?cloneIfMounted(e):createVNode(Text,null,String(e))}function cloneIfMounted(e){return null===e.el?e:cloneVNode(e)}function normalizeChildren(e,t){let o=0;const{shapeFlag:n}=e;if(null==t)t=null;else if(isArray(t))o=16;else if("object"==typeof t){if(1&n||64&n){const o=t.default;return void(o&&(o._c&&(o._d=!1),normalizeChildren(e,o()),o._c&&(o._d=!0)))}{o=32;const n=t._;n||InternalObjectKey in t?3===n&¤tRenderingInstance&&(1===currentRenderingInstance.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=currentRenderingInstance}}else isFunction(t)?(t={default:t,_ctx:currentRenderingInstance},o=32):(t=String(t),64&n?(o=16,t=[createTextVNode(t)]):o=8);e.children=t,e.shapeFlag|=o}function mergeProps(...e){const t=extend({},e[0]);for(let o=1;o
!isVNode(e)||e.type!==Comment$1&&!(e.type===Fragment&&!ensureValidVNode(e.children))))?e:null}const getPublicInstance=e=>e?isStatefulComponent(e)?e.exposed?e.exposed:e.proxy: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),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?resolveMergedOptions(e):e.type,$forceUpdate:e=>()=>queueJob(e.update),$nextTick:e=>nextTick.bind(e.proxy),$watch:e=>__VUE_OPTIONS_API__?instanceWatch.bind(e):NOOP}),PublicInstanceProxyHandlers={get({_:e},t){const{ctx:o,setupState:n,data:i,props:r,accessCache:s,type:a,appContext:c}=e;let l;if("$"!==t[0]){const a=s[t];if(void 0!==a)switch(a){case 0:return n[t];case 1:return i[t];case 3:return o[t];case 2:return r[t]}else{if(n!==EMPTY_OBJ&&hasOwn(n,t))return s[t]=0,n[t];if(i!==EMPTY_OBJ&&hasOwn(i,t))return s[t]=1,i[t];if((l=e.propsOptions[0])&&hasOwn(l,t))return s[t]=2,r[t];if(o!==EMPTY_OBJ&&hasOwn(o,t))return s[t]=3,o[t];__VUE_OPTIONS_API__&&!shouldCacheAccess||(s[t]=4)}}const d=publicPropertiesMap[t];let u,p;return d?("$attrs"===t&&track(e,"get",t),d(e)):(u=a.__cssModules)&&(u=u[t])?u:o!==EMPTY_OBJ&&hasOwn(o,t)?(s[t]=3,o[t]):(p=c.config.globalProperties,hasOwn(p,t)?p[t]:void 0)},set({_:e},t,o){const{data:n,setupState:i,ctx:r}=e;if(i!==EMPTY_OBJ&&hasOwn(i,t))i[t]=o;else if(n!==EMPTY_OBJ&&hasOwn(n,t))n[t]=o;else if(hasOwn(e.props,t))return!1;return("$"!==t[0]||!(t.slice(1)in e))&&(r[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:n,appContext:i,propsOptions:r}},s){let a;return void 0!==o[s]||e!==EMPTY_OBJ&&hasOwn(e,s)||t!==EMPTY_OBJ&&hasOwn(t,s)||(a=r[0])&&hasOwn(a,s)||hasOwn(n,s)||hasOwn(publicPropertiesMap,s)||hasOwn(i.config.globalProperties,s)}},RuntimeCompiledPublicInstanceProxyHandlers=extend({},PublicInstanceProxyHandlers,{get(e,t){if(t!==Symbol.unscopables)return PublicInstanceProxyHandlers.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!isGloballyWhitelisted(t)}),emptyAppContext=createAppContext();let uid$1=0;function createComponentInstance(e,t,o){const n=e.type,i=(t?t.appContext:e.appContext)||emptyAppContext,r={uid:uid$1++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,update:null,render:null,proxy:null,exposed:null,withProxy:null,effects:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(n,i),emitsOptions:normalizeEmitsOptions(n,i),emit:null,emitted:null,propsDefaults:EMPTY_OBJ,inheritAttrs:n.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:o,suspenseId:o?o.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=emit.bind(null,r),r}let currentInstance=null;const getCurrentInstance=()=>currentInstance||currentRenderingInstance,setCurrentInstance=e=>{currentInstance=e};function isStatefulComponent(e){return 4&e.vnode.shapeFlag}let isInSSRComponentSetup=!1;function setupComponent(e,t=!1){isInSSRComponentSetup=t;const{props:o,children:n}=e.vnode,i=isStatefulComponent(e);initProps(e,o,i,t),initSlots(e,n);const r=i?setupStatefulComponent(e,t):void 0;return isInSSRComponentSetup=!1,r}function setupStatefulComponent(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=markRaw(new Proxy(e.ctx,PublicInstanceProxyHandlers));const{setup:n}=o;if(n){const o=e.setupContext=n.length>1?createSetupContext(e):null;currentInstance=e,pauseTracking();const i=callWithErrorHandling(n,e,0,[e.props,o]);if(resetTracking(),currentInstance=null,isPromise$1(i)){if(t)return i.then((t=>{handleSetupResult(e,t)})).catch((t=>{handleError(t,e,0)}));e.asyncDep=i}else handleSetupResult(e,i)}else finishComponentSetup(e)}function handleSetupResult(e,t,o){isFunction(t)?e.render=t:isObject$1(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=proxyRefs(t)),finishComponentSetup(e)}function finishComponentSetup(e,t,o){const n=e.type;e.render||(e.render=n.render||NOOP,e.render._rc&&(e.withProxy=new Proxy(e.ctx,RuntimeCompiledPublicInstanceProxyHandlers))),__VUE_OPTIONS_API__&&(currentInstance=e,pauseTracking(),applyOptions(e),resetTracking(),currentInstance=null)}function createSetupContext(e){const t=t=>{e.exposed=proxyRefs(t)};return{attrs:e.attrs,slots:e.slots,emit:e.emit,expose:t}}function recordInstanceBoundEffect(e,t=currentInstance){t&&(t.effects||(t.effects=[])).push(e)}const classifyRE=/(?:^|[-_])(\w)/g,classify=e=>e.replace(classifyRE,(e=>e.toUpperCase())).replace(/[-_]/g,"");function getComponentName(e){return isFunction(e)&&e.displayName||e.name}function formatComponentName(e,t,o=!1){let n=getComponentName(t);if(!n&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(n=e[1])}if(!n&&e&&e.parent){const o=e=>{for(const o in e)if(e[o]===t)return o};n=o(e.components||e.parent.type.components)||o(e.appContext.components)}return n?n.replace(classifyRE,(e=>e.toUpperCase())).replace(/[-_]/g,""):o?"App":"Anonymous"}function isClassComponent(e){return isFunction(e)&&"__vccOpts"in e}function computed(e){const t=computed$1(e);return recordInstanceBoundEffect(t.effect),t}function h(e,t,o){const n=arguments.length;return 2===n?isObject$1(t)&&!isArray(t)?isVNode(t)?createVNode(e,null,[t]):createVNode(e,t):createVNode(e,null,t):(n>3?o=Array.prototype.slice.call(arguments,2):3===n&&isVNode(o)&&(o=[o]),createVNode(e,t,o))}const version="3.1.2",svgNS="http://www.w3.org/2000/svg",doc="undefined"!=typeof document?document:null,nodeOps={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,n)=>{const i=t?doc.createElementNS(svgNS,e):doc.createElement(e,o?{is:o}:void 0);return"select"===e&&n&&null!=n.multiple&&i.setAttribute("multiple",n.multiple),i},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,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,o,n,i){if(i){let e,n,[r,s]=i;for(;;){let i=r.cloneNode(!0);if(e||(e=i),t.insertBefore(i,o),r===s){n=i;break}r=r.nextSibling}return[e,n]}const r=o?o.previousSibling:t.lastChild;if(o){let i,r=!1;o instanceof Element?i=o:(r=!0,i=n?doc.createElementNS(svgNS,"g"):doc.createElement("div"),t.insertBefore(i,o)),i.insertAdjacentHTML("beforebegin",e),r&&t.removeChild(i)}else t.insertAdjacentHTML("beforeend",e);return[r?r.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}};function patchClass(e,t,o){if(null==t&&(t=""),o)e.setAttribute("class",t);else{const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),e.className=t}}function patchStyle(e,t,o){const n=e.style;if(o)if(isString(o)){if(t!==o){const t=n.display;n.cssText=o,"_vod"in e&&(n.display=t)}}else{for(const e in o)setStyle(n,e,o[e]);if(t&&!isString(t))for(const e in t)null==o[e]&&setStyle(n,e,"")}else e.removeAttribute("style")}const importantRE=/\s*!important$/;function setStyle(e,t,o){if(isArray(o))o.forEach((o=>setStyle(e,t,o)));else if(t.startsWith("--"))e.setProperty(t,o);else{const n=autoPrefix(e,t);importantRE.test(o)?e.setProperty(hyphenate(n),o.replace(importantRE,""),"important"):e[n]=o}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(e,t){const o=prefixCache[t];if(o)return o;let n=camelize(t);if("filter"!==n&&n in e)return prefixCache[t]=n;n=capitalize(n);for(let o=0;o
document.createEvent("Event").timeStamp&&(_getNow=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);skipTimestampCheck=!!(e&&Number(e[1])<=53)}let cachedNow=0;const p=Promise.resolve(),reset=()=>{cachedNow=0},getNow=()=>cachedNow||(p.then(reset),cachedNow=_getNow());function addEventListener(e,t,o,n){e.addEventListener(t,o,n)}function removeEventListener(e,t,o,n){e.removeEventListener(t,o,n)}function patchEvent(e,t,o,n,i=null){const r=e._vei||(e._vei={}),s=r[t];if(n&&s)s.value=n;else{const[o,a]=parseName(t);if(n){addEventListener(e,o,r[t]=createInvoker(n,i),a)}else s&&(removeEventListener(e,o,s,a),r[t]=void 0)}}const optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName(e){let t;if(optionsModifierRE.test(e)){let o;for(t={};o=e.match(optionsModifierRE);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[hyphenate(e.slice(2)),t]}function createInvoker(e,t){const o=e=>{const n=e.timeStamp||_getNow();(skipTimestampCheck||n>=o.attached-1)&&callWithAsyncErrorHandling(patchStopImmediatePropagation(e,o.value),t,5,[e])};return o.value=e,o.attached=cachedNow||(p.then(reset),cachedNow=_getNow()),o}function patchStopImmediatePropagation(e,t){if(isArray(t)){const o=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{o.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}const nativeOnRE=/^on[a-z]/,forcePatchProp=(e,t)=>"value"===t,patchProp=(e,t,o,n,i=!1,r,s,a,c)=>{switch(t){case"class":patchClass(e,n,i);break;case"style":patchStyle(e,o,n);break;default:isOn(t)?isModelListener(t)||patchEvent(e,t,o,n,s):shouldSetAsProp(e,t,n,i)?patchDOMProp(e,t,n,r,s,a,c):("true-value"===t?e._trueValue=n:"false-value"===t&&(e._falseValue=n),patchAttr(e,t,n,i))}};function shouldSetAsProp(e,t,o,n){return n?"innerHTML"===t||!!(t in e&&nativeOnRE.test(t)&&isFunction(o)):"spellcheck"!==t&&"draggable"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!nativeOnRE.test(t)||!isString(o))&&t in e))))}const TRANSITION="transition",ANIMATION="animation",Transition=(e,{slots:t})=>h(BaseTransition,resolveTransitionProps(e),t);Transition.displayName="Transition";const 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};Transition.props=extend({},BaseTransition.props,DOMTransitionPropsValidators);const callHook=(e,t=[])=>{isArray(e)?e.forEach((e=>e(...t))):e&&e(...t)},hasExplicitCallback=e=>!!e&&(isArray(e)?e.some((e=>e.length>1)):e.length>1);function resolveTransitionProps(e){const t={};for(const o in e)o in DOMTransitionPropsValidators||(t[o]=e[o]);if(!1===e.css)return t;const{name:o="v",type:n,duration:i,enterFromClass:r=`${o}-enter-from`,enterActiveClass:s=`${o}-enter-active`,enterToClass:a=`${o}-enter-to`,appearFromClass:c=r,appearActiveClass:l=s,appearToClass:d=a,leaveFromClass:u=`${o}-leave-from`,leaveActiveClass:p=`${o}-leave-active`,leaveToClass:h=`${o}-leave-to`}=e,m=normalizeDuration(i),f=m&&m[0],_=m&&m[1],{onBeforeEnter:E,onEnter:g,onEnterCancelled:y,onLeave:v,onLeaveCancelled:C,onBeforeAppear:S=E,onAppear:b=g,onAppearCancelled:w=y}=t,O=(e,t,o)=>{removeTransitionClass(e,t?d:a),removeTransitionClass(e,t?l:s),o&&o()},M=(e,t)=>{removeTransitionClass(e,h),removeTransitionClass(e,p),t&&t()},I=e=>(t,o)=>{const i=e?b:g,s=()=>O(t,e,o);callHook(i,[t,s]),nextFrame((()=>{removeTransitionClass(t,e?c:r),addTransitionClass(t,e?d:a),hasExplicitCallback(i)||whenTransitionEnds(t,n,f,s)}))};return extend(t,{onBeforeEnter(e){callHook(E,[e]),addTransitionClass(e,r),addTransitionClass(e,s)},onBeforeAppear(e){callHook(S,[e]),addTransitionClass(e,c),addTransitionClass(e,l)},onEnter:I(!1),onAppear:I(!0),onLeave(e,t){const o=()=>M(e,t);addTransitionClass(e,u),forceReflow(),addTransitionClass(e,p),nextFrame((()=>{removeTransitionClass(e,u),addTransitionClass(e,h),hasExplicitCallback(v)||whenTransitionEnds(e,n,_,o)})),callHook(v,[e,o])},onEnterCancelled(e){O(e,!1),callHook(y,[e])},onAppearCancelled(e){O(e,!0),callHook(w,[e])},onLeaveCancelled(e){M(e),callHook(C,[e])}})}function normalizeDuration(e){if(null==e)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((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function removeTransitionClass(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:o}=e;o&&(o.delete(t),o.size||(e._vtc=void 0))}function nextFrame(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let endId=0;function whenTransitionEnds(e,t,o,n){const i=e._endId=++endId,r=()=>{i===e._endId&&n()};if(o)return setTimeout(r,o);const{type:s,timeout:a,propCount:c}=getTransitionInfo(e,t);if(!s)return n();const l=s+"end";let d=0;const u=()=>{e.removeEventListener(l,p),r()},p=t=>{t.target===e&&++d>=c&&u()};setTimeout((()=>{d
(o[e]||"").split(", "),i=n("transitionDelay"),r=n("transitionDuration"),s=getTimeout(i,r),a=n("animationDelay"),c=n("animationDuration"),l=getTimeout(a,c);let d=null,u=0,p=0;t===TRANSITION?s>0&&(d=TRANSITION,u=s,p=r.length):t===ANIMATION?l>0&&(d=ANIMATION,u=l,p=c.length):(u=Math.max(s,l),d=u>0?s>l?TRANSITION:ANIMATION:null,p=d?d===TRANSITION?r.length:c.length:0);return{type:d,timeout:u,propCount:p,hasTransform:d===TRANSITION&&/\b(transform|all)(,|$)/.test(o.transitionProperty)}}function getTimeout(e,t){for(;e.length
toMs(t)+toMs(e[o]))))}function toMs(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function forceReflow(){return document.body.offsetHeight}const getModelAssigner=e=>{const t=e.props["onUpdate:modelValue"];return isArray(t)?e=>invokeArrayFns(t,e):t};function onCompositionStart(e){e.target.composing=!0}function onCompositionEnd(e){const t=e.target;t.composing&&(t.composing=!1,trigger(t,"input"))}function trigger(e,t){const o=document.createEvent("HTMLEvents");o.initEvent(t,!0,!0),e.dispatchEvent(o)}const vModelText={created(e,{modifiers:{lazy:t,trim:o,number:n}},i){e._assign=getModelAssigner(i);const r=n||"number"===e.type;addEventListener(e,t?"change":"input",(t=>{if(t.target.composing)return;let n=e.value;o?n=n.trim():r&&(n=toNumber(n)),e._assign(n)})),o&&addEventListener(e,"change",(()=>{e.value=e.value.trim()})),t||(addEventListener(e,"compositionstart",onCompositionStart),addEventListener(e,"compositionend",onCompositionEnd),addEventListener(e,"change",onCompositionEnd))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{trim:o,number:n}},i){if(e._assign=getModelAssigner(i),e.composing)return;if(document.activeElement===e){if(o&&e.value.trim()===t)return;if((n||"number"===e.type)&&toNumber(e.value)===t)return}const r=null==t?"":t;e.value!==r&&(e.value=r)}},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&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>systemModifiers.some((o=>e[`${o}Key`]&&!t.includes(o)))},withModifiers=(e,t)=>(o,...n)=>{for(let e=0;e
o=>{if(!("key"in o))return;const n=hyphenate(o.key);return t.some((e=>e===n||keyNames[e]===n))?e(o):void 0},vShow={beforeMount(e,{value:t},{transition:o}){e._vod="none"===e.style.display?"":e.style.display,o&&t?o.beforeEnter(e):setDisplay(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:n}){!t!=!o&&(n?t?(n.beforeEnter(e),setDisplay(e,!0),n.enter(e)):n.leave(e,(()=>{setDisplay(e,!1)})):setDisplay(e,t))},beforeUnmount(e,{value:t}){setDisplay(e,t)}};function setDisplay(e,t){e.style.display=t?e._vod:"none"}const rendererOptions=extend({patchProp:patchProp,forcePatchProp:forcePatchProp},nodeOps);let renderer;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}const createApp=(...e)=>{const t=ensureRenderer().createApp(...e),{mount:o}=t;return t.mount=e=>{const n=normalizeContainer(e);if(!n)return;const i=t._component;isFunction(i)||i.render||i.template||(i.template=n.innerHTML),n.innerHTML="";const r=o(n,!1,n instanceof SVGElement);return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),r},t};function normalizeContainer(e){if(isString(e)){return document.querySelector(e)}return e}class Event{constructor(){this.events={}}fire(e,t=null){this.events[e]&&this.events[e].forEach((e=>e(t)))}listen(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)}}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";class Notifications{success(e,t){notifications.notify(e,{type:"message",dismiss:!0,...t})}error(e,t){notifications.notify(e,{type:"error",dismiss:!0,...t})}ask(e){return window.confirm(e)}notify(e,t){let o;"message"===t.type&&(o=3e3),Joomla.renderMessages({[t.type]:[Joomla.Text._(e)]},void 0,!0,o)}}let notifications=new Notifications;var script$m={name:"MediaApp",data:()=>({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)},beforeUnmount(){window.removeEventListener("resize",this.setFullHeight)},methods:{setFullHeight(){this.fullHeight=window.innerHeight-this.$el.getBoundingClientRect().top+"px"}}};const _hoisted_1$k={class:"media-container"},_hoisted_2$h={class:"media-sidebar"},_hoisted_3$g={class:"media-main"};function render$m(e,t,o,n,i,r){const s=resolveComponent("media-disk"),a=resolveComponent("media-toolbar"),c=resolveComponent("media-browser"),l=resolveComponent("media-upload"),d=resolveComponent("media-create-folder-modal"),u=resolveComponent("media-preview-modal"),p=resolveComponent("media-rename-modal"),h=resolveComponent("media-share-modal"),m=resolveComponent("media-confirm-delete-modal");return openBlock(),createBlock("div",_hoisted_1$k,[createVNode("div",_hoisted_2$h,[(openBlock(!0),createBlock(Fragment,null,renderList(r.disks,((e,t)=>(openBlock(),createBlock(s,{key:t,uid:t,disk:e},null,8,["uid","disk"])))),128))]),createVNode("div",_hoisted_3$g,[createVNode(a),createVNode(c)]),createVNode(l),createVNode(d),createVNode(u),createVNode(p),createVNode(h),createVNode(m)])}script$m.render=render$m,script$m.__file="administrator/components/com_media/resources/scripts/components/app.vue";var script$l={name:"MediaDisk",props:["disk","uid"],computed:{diskId(){return`disk-${this.uid+1}`}}};const _hoisted_1$j={class:"media-disk"};function render$l(e,t,o,n,i,r){const s=resolveComponent("media-drive");return openBlock(),createBlock("div",_hoisted_1$j,[createVNode("h2",{id:r.diskId,class:"media-disk-name"},toDisplayString(o.disk.displayName),9,["id"]),(openBlock(!0),createBlock(Fragment,null,renderList(o.disk.drives,((e,t)=>(openBlock(),createBlock(s,{key:t,"disk-id":r.diskId,counter:t,drive:e,total:o.disk.drives.length},null,8,["disk-id","counter","drive","total"])))),128))])}script$l.render=render$l,script$l.__file="administrator/components/com_media/resources/scripts/components/tree/disk.vue";var navigable={methods:{navigateTo(e){this.$store.dispatch("getContents",e)}}},script$k={name:"MediaDrive",mixins:[navigable],props:["drive","total","diskId","counter"],computed:{isActive(){return this.$store.state.selectedDirectory===this.drive.root},getTabindex(){return this.isActive?0:-1}},methods:{onDriveClick(){this.navigateTo(this.drive.root)}}};const _hoisted_1$i={class:"item-name"};function render$k(e,t,o,n,i,r){const s=resolveComponent("media-tree");return openBlock(),createBlock("div",{class:"media-drive",onClick:t[1]||(t[1]=withModifiers((e=>r.onDriveClick()),["stop","prevent"]))},[createVNode("ul",{class:"media-tree",role:"tree","aria-labelledby":o.diskId},[createVNode("li",{class:{active:r.isActive,"media-tree-item":!0,"media-drive-name":!0},role:"treeitem","aria-level":"1","aria-setsize":o.counter,"aria-posinset":1,tabindex:r.getTabindex},[createVNode("a",null,[createVNode("span",_hoisted_1$i,toDisplayString(o.drive.displayName),1)]),createVNode(s,{root:o.drive.root,level:2},null,8,["root"])],10,["aria-setsize","tabindex"])],8,["aria-labelledby"])])}script$k.render=render$k,script$k.__file="administrator/components/com_media/resources/scripts/components/tree/drive.vue";var script$j={name:"MediaTree",props:{root:{type:String,required:!0},level:{type:Number,required:!0}},computed:{directories(){return this.$store.state.directories.filter((e=>e.directory===this.root)).sort(((e,t)=>e.name.toUpperCase()
(openBlock(),createBlock(s,{key:e.path,counter:t,item:e,size:r.directories.length,level:o.level},null,8,["counter","item","size","level"])))),128))])}script$j.render=render$j,script$j.__file="administrator/components/com_media/resources/scripts/components/tree/tree.vue";var script$i={name:"MediaTreeItem",mixins:[navigable],props:{item:{type:Object,required:!0},level:{type:Number,required:!0},counter:{type:Number,required:!0},size:{type:Number,required:!0}},computed:{isActive(){return this.item.path===this.$store.state.selectedDirectory},isOpen(){return this.$store.state.selectedDirectory.includes(this.item.path)},hasChildren(){return this.item.directories.length>0},iconClass(){return{fas:!1,"icon-folder":!this.isOpen,"icon-folder-open":this.isOpen}},getTabindex(){return this.isActive?0:-1}},methods:{onItemClick(){this.navigateTo(this.item.path),window.parent.document.dispatchEvent(new CustomEvent("onMediaFileSelected",{bubbles:!0,cancelable:!1,detail:{}}))}}};const _hoisted_1$g={class:"item-icon"},_hoisted_2$g={class:"item-name"};function render$i(e,t,o,n,i,r){const s=resolveComponent("media-tree");return openBlock(),createBlock("li",{class:["media-tree-item",{active:r.isActive}],role:"treeitem","aria-level":o.level,"aria-setsize":o.size,"aria-posinset":o.counter,tabindex:r.getTabindex},[createVNode("a",{onClick:t[1]||(t[1]=withModifiers((e=>r.onItemClick()),["stop","prevent"]))},[createVNode("span",_hoisted_1$g,[createVNode("span",{class:r.iconClass},null,2)]),createVNode("span",_hoisted_2$g,toDisplayString(o.item.name),1)]),createVNode(Transition,{name:"slide-fade"},{default:withCtx((()=>[r.hasChildren?withDirectives((openBlock(),createBlock(s,{key:0,"aria-expanded":r.isOpen?"true":"false",root:o.item.path,level:o.level+1},null,8,["aria-expanded","root","level"])),[[vShow,r.isOpen]]):createCommentVNode("v-if",!0)])),_:1})],10,["aria-level","aria-setsize","aria-posinset","tabindex"])}script$i.render=render$i,script$i.__file="administrator/components/com_media/resources/scripts/components/tree/item.vue";var script$h={name:"MediaToolbar",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"grid"===this.$store.state.listView},allItemsSelected(){return this.$store.getters.getSelectedDirectoryContents.length===this.$store.state.selectedItems.length}},watch:{"$store.state.selectedItems"(){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(){"grid"===this.$store.state.listView?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)}}};const _hoisted_1$f={key:0,class:"media-loader"},_hoisted_2$f={class:"media-view-icons"},_hoisted_3$f={class:"media-view-search-input",role:"search"},_hoisted_4$9={for:"media_search",class:"visually-hidden"},_hoisted_5$5={class:"media-view-icons"},_hoisted_6$3=createVNode("span",{class:"icon-search-minus","aria-hidden":"true"},null,-1),_hoisted_7$3=createVNode("span",{class:"icon-search-plus","aria-hidden":"true"},null,-1),_hoisted_8$2=createVNode("span",{class:"icon-info","aria-hidden":"true"},null,-1);function render$h(e,t,o,n,i,r){const s=resolveComponent("media-breadcrumb");return openBlock(),createBlock("div",{class:"media-toolbar",role:"toolbar","aria-label":e.translate("COM_MEDIA_TOOLBAR_LABEL")},[r.isLoading?(openBlock(),createBlock("div",_hoisted_1$f)):createCommentVNode("v-if",!0),createVNode("div",_hoisted_2$f,[createVNode("input",{ref:"mediaToolbarSelectAll",type:"checkbox",class:"media-toolbar-icon media-toolbar-select-all","aria-label":e.translate("COM_MEDIA_SELECT_ALL"),onClick:t[1]||(t[1]=withModifiers(((...e)=>r.toggleSelectAll&&r.toggleSelectAll(...e)),["stop"]))},null,8,["aria-label"])]),createVNode(s),createVNode("div",_hoisted_3$f,[createVNode("label",_hoisted_4$9,toDisplayString(e.translate("COM_MEDIA_SEARCH")),1),createVNode("input",{id:"media_search",class:"form-control",type:"text",placeholder:e.translate("COM_MEDIA_SEARCH"),onInput:t[2]||(t[2]=(...e)=>r.changeSearch&&r.changeSearch(...e))},null,40,["placeholder"])]),createVNode("div",_hoisted_5$5,[r.isGridView?(openBlock(),createBlock("button",{key:0,type:"button",class:["media-toolbar-icon media-toolbar-decrease-grid-size",{disabled:r.isGridSize("sm")}],"aria-label":e.translate("COM_MEDIA_DECREASE_GRID"),onClick:t[3]||(t[3]=withModifiers((e=>r.decreaseGridSize()),["stop","prevent"]))},[_hoisted_6$3],10,["aria-label"])):createCommentVNode("v-if",!0),r.isGridView?(openBlock(),createBlock("button",{key:1,type:"button",class:["media-toolbar-icon media-toolbar-increase-grid-size",{disabled:r.isGridSize("xl")}],"aria-label":e.translate("COM_MEDIA_INCREASE_GRID"),onClick:t[4]||(t[4]=withModifiers((e=>r.increaseGridSize()),["stop","prevent"]))},[_hoisted_7$3],10,["aria-label"])):createCommentVNode("v-if",!0),createVNode("button",{type:"button",href:"#",class:"media-toolbar-icon media-toolbar-list-view","aria-label":e.translate("COM_MEDIA_TOGGLE_LIST_VIEW"),onClick:t[5]||(t[5]=withModifiers((e=>r.changeListView()),["stop","prevent"]))},[createVNode("span",{class:r.toggleListViewBtnIcon,"aria-hidden":"true"},null,2)],8,["aria-label"]),createVNode("button",{type:"button",href:"#",class:"media-toolbar-icon media-toolbar-info","aria-label":e.translate("COM_MEDIA_TOGGLE_INFO"),onClick:t[6]||(t[6]=withModifiers(((...e)=>r.toggleInfoBar&&r.toggleInfoBar(...e)),["stop","prevent"]))},[_hoisted_8$2],8,["aria-label"])])],8,["aria-label"])}script$h.render=render$h,script$h.__file="administrator/components/com_media/resources/scripts/components/toolbar/toolbar.vue";var script$g={name:"MediaBreadcrumb",mixins:[navigable],computed:{crumbs(){const e=[],t=this.$store.state.selectedDirectory.split("/");if(t){const o=this.findDrive(t[0]);o&&(e.push(o),t.shift())}return t.filter((e=>0!==e.length)).forEach((t=>{e.push({name:t,path:this.$store.state.selectedDirectory.split(t)[0]+t})})),e},isLast(e){return this.crumbs.indexOf(e)===this.crumbs.length-1}},methods:{onCrumbClick(e){this.navigateTo(e.path),window.parent.document.dispatchEvent(new CustomEvent("onMediaFileSelected",{bubbles:!0,cancelable:!1,detail:{}}))},findDrive(e){let t=null;return this.$store.state.disks.forEach((o=>{o.drives.forEach((o=>{o.root.startsWith(e)&&(t={name:o.displayName,path:o.root})}))})),t}}};function render$g(e,t,o,n,i,r){return openBlock(),createBlock("nav",{class:"media-breadcrumb","aria-label":e.translate("COM_MEDIA_BREADCRUMB_LABEL")},[createVNode("ol",null,[(openBlock(!0),createBlock(Fragment,null,renderList(r.crumbs,((e,t)=>(openBlock(),createBlock("li",{key:t,class:"media-breadcrumb-item"},[createVNode("a",{href:"#","aria-current":t===Object.keys(r.crumbs).length-1?"page":void 0,onClick:withModifiers((t=>r.onCrumbClick(e)),["stop","prevent"])},toDisplayString(e.name),9,["aria-current","onClick"])])))),128))])],8,["aria-label"])}script$g.render=render$g,script$g.__file="administrator/components/com_media/resources/scripts/components/breadcrumb/breadcrumb.vue";var script$f={name:"MediaBrowser",computed:{items(){return[...this.$store.getters.getSelectedDirectoryDirectories.sort(((e,t)=>e.name.toUpperCase()
e.name.toLowerCase().includes(this.$store.state.search.toLowerCase()))),...this.$store.getters.getSelectedDirectoryFiles.sort(((e,t)=>e.name.toUpperCase()
e.name.toLowerCase().includes(this.$store.state.search.toLowerCase())))]},mediaBrowserStyles(){return{width:this.$store.state.showInfoBar?"75%":"100%"}},listView(){return this.$store.state.listView},mediaBrowserGridItemsClass(){return{[`media-browser-items-${this.$store.state.gridSize}`]:!0}},isModal:()=>Joomla.getOptions("com_media",{}).isModal,currentDirectory(){const e=this.$store.state.selectedDirectory.split("/").filter((e=>0!==e.length));if(1!==e.length)return e[e.length-1];let t="";return this.$store.state.disks.forEach((o=>{o.drives.forEach((o=>{o.root===`${e[0]}/`&&(t=o.displayName)}))})),t}},created(){document.body.addEventListener("click",this.unselectAllBrowserItems,!1)},beforeUnmount(){document.body.removeEventListener("click",this.unselectAllBrowserItems,!1)},methods:{unselectAllBrowserItems(e){const t=!(void 0===e.target.id||"mediaDelete"!==e.target.id),o=this.$refs.browserItems&&!this.$refs.browserItems.contains(e.target)||e.target===this.$refs.browserItems,n=void 0!==this.$refs.infobar&&!this.$refs.infobar.$el.contains(e.target);o&&n&&!t&&(this.$store.commit(UNSELECT_ALL_BROWSER_ITEMS),window.parent.document.dispatchEvent(new CustomEvent("onMediaFileSelected",{bubbles:!0,cancelable:!1,detail:{path:"",thumb:!1,fileType:!1,extension:!1}})))},onDragEnter:e=>(e.stopPropagation(),!1),onDragOver:e=>(e.preventDefault(),document.querySelector(".media-dragoutline").classList.add("active"),!1),upload(e){const t=new FileReader;t.onload=t=>{const{result:o}=t.target,n=o.indexOf("base64")+7,i=o.slice(n,o.length);this.$store.dispatch("uploadFile",{name:e.name,parent:this.$store.state.selectedDirectory,content:i})},t.readAsDataURL(e)},onDrop(e){if(e.preventDefault(),e.dataTransfer&&e.dataTransfer.files&&e.dataTransfer.files.length>0)for(let t,o=0;t=e.dataTransfer.files[o];o++)document.querySelector(".media-dragoutline").classList.remove("active"),this.upload(t);document.querySelector(".media-dragoutline").classList.remove("active")},onDragLeave:e=>(e.stopPropagation(),e.preventDefault(),document.querySelector(".media-dragoutline").classList.remove("active"),!1)}};const _hoisted_1$e={class:"media-dragoutline"},_hoisted_2$e=createVNode("span",{class:"icon-cloud-upload upload-icon","aria-hidden":"true"},null,-1),_hoisted_3$e={key:0,class:"table media-browser-table"},_hoisted_4$8={class:"visually-hidden"},_hoisted_5$4={class:"media-browser-table-head"},_hoisted_6$2=createVNode("th",{class:"type",scope:"col"},null,-1),_hoisted_7$2={class:"name",scope:"col"},_hoisted_8$1={class:"size",scope:"col"},_hoisted_9$1={class:"dimension",scope:"col"},_hoisted_10$1={class:"created",scope:"col"},_hoisted_11$1={class:"modified",scope:"col"},_hoisted_12$1={key:1,class:"media-browser-grid"};function render$f(e,t,o,n,i,r){const s=resolveComponent("media-browser-item-row"),a=resolveComponent("media-browser-item"),c=resolveComponent("media-infobar");return openBlock(),createBlock("div",null,[createVNode("div",{ref:"browserItems",class:"media-browser",style:r.mediaBrowserStyles,onDragenter:t[1]||(t[1]=(...e)=>r.onDragEnter&&r.onDragEnter(...e)),onDrop:t[2]||(t[2]=(...e)=>r.onDrop&&r.onDrop(...e)),onDragover:t[3]||(t[3]=(...e)=>r.onDragOver&&r.onDragOver(...e)),onDragleave:t[4]||(t[4]=(...e)=>r.onDragLeave&&r.onDragLeave(...e))},[createVNode("div",_hoisted_1$e,[_hoisted_2$e,createVNode("p",null,toDisplayString(e.translate("COM_MEDIA_DROP_FILE")),1)]),"table"===r.listView?(openBlock(),createBlock("table",_hoisted_3$e,[createVNode("caption",_hoisted_4$8,toDisplayString(e.sprintf("COM_MEDIA_BROWSER_TABLE_CAPTION",r.currentDirectory)),1),createVNode("thead",_hoisted_5$4,[createVNode("tr",null,[_hoisted_6$2,createVNode("th",_hoisted_7$2,toDisplayString(e.translate("COM_MEDIA_MEDIA_NAME")),1),createVNode("th",_hoisted_8$1,toDisplayString(e.translate("COM_MEDIA_MEDIA_SIZE")),1),createVNode("th",_hoisted_9$1,toDisplayString(e.translate("COM_MEDIA_MEDIA_DIMENSION")),1),createVNode("th",_hoisted_10$1,toDisplayString(e.translate("COM_MEDIA_MEDIA_DATE_CREATED")),1),createVNode("th",_hoisted_11$1,toDisplayString(e.translate("COM_MEDIA_MEDIA_DATE_MODIFIED")),1)])]),createVNode("tbody",null,[(openBlock(!0),createBlock(Fragment,null,renderList(r.items,(e=>(openBlock(),createBlock(s,{key:e.path,item:e},null,8,["item"])))),128))])])):"grid"===r.listView?(openBlock(),createBlock("div",_hoisted_12$1,[createVNode("div",{class:["media-browser-items",r.mediaBrowserGridItemsClass]},[(openBlock(!0),createBlock(Fragment,null,renderList(r.items,(e=>(openBlock(),createBlock(a,{key:e.path,item:e},null,8,["item"])))),128))],2)])):createCommentVNode("v-if",!0)],36),createVNode(c,{ref:"infobar"},null,512)])}script$f.render=render$f,script$f.__file="administrator/components/com_media/resources/scripts/components/browser/browser.vue";var script$e={name:"MediaBrowserItemDirectory",mixins:[navigable],props:["item","focused"],data:()=>({showActions:!1}),methods:{onPreviewDblClick(){this.navigateTo(this.item.path)},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.$store.commit(SELECT_BROWSER_ITEM,this.item),this.$store.commit(SHOW_RENAME_MODAL)},openActions(){this.showActions=!0,this.$nextTick((()=>this.$refs.actionRename.focus()))},openLastActions(){this.showActions=!0,this.$nextTick((()=>this.$refs.actionDelete.focus()))},hideActions(){this.showActions=!1,this.$nextTick((()=>{this.$refs.actionToggle&&this.$refs.actionToggle.focus()}))}}};const _hoisted_1$d=createVNode("div",{class:"file-background"},[createVNode("div",{class:"folder-icon"},[createVNode("span",{class:"icon-folder"})])],-1),_hoisted_2$d={class:"media-browser-item-info"},_hoisted_3$d={key:0,class:"media-browser-actions-list"};function render$e(e,t,o,n,i,r){return openBlock(),createBlock("div",{class:"media-browser-item-directory",onMouseleave:t[25]||(t[25]=e=>r.hideActions())},[createVNode("div",{class:"media-browser-item-preview",onDblclick:t[1]||(t[1]=withModifiers((e=>r.onPreviewDblClick()),["stop","prevent"]))},[_hoisted_1$d],32),createVNode("div",_hoisted_2$d,toDisplayString(o.item.name),1),createVNode("span",{class:"media-browser-select","aria-label":e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM"),title:e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM")},null,8,["aria-label","title"]),createVNode("div",{class:["media-browser-actions",{active:i.showActions}]},[createVNode("button",{ref:"actionToggle",class:"action-toggle",type:"button","aria-label":e.translate("COM_MEDIA_OPEN_ITEM_ACTIONS"),title:e.translate("COM_MEDIA_OPEN_ITEM_ACTIONS"),onKeyup:[t[3]||(t[3]=withKeys((e=>r.openActions()),["enter"])),t[6]||(t[6]=withKeys((e=>r.openActions()),["space"])),t[7]||(t[7]=withKeys((e=>r.openActions()),["down"])),t[8]||(t[8]=withKeys((e=>r.openLastActions()),["up"]))],onFocus:t[4]||(t[4]=e=>o.focused(!0)),onBlur:t[5]||(t[5]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-ellipsis-h","aria-hidden":"true",onClick:t[2]||(t[2]=withModifiers((e=>r.openActions()),["stop"]))})],40,["aria-label","title"]),i.showActions?(openBlock(),createBlock("div",_hoisted_3$d,[createVNode("ul",null,[createVNode("li",null,[createVNode("button",{ref:"actionRename",type:"button",class:"action-rename","aria-label":e.translate("COM_MEDIA_ACTION_RENAME"),title:e.translate("COM_MEDIA_ACTION_RENAME"),onKeyup:[t[10]||(t[10]=withKeys((e=>r.openRenameModal()),["enter"])),t[11]||(t[11]=withKeys((e=>r.openRenameModal()),["space"])),t[14]||(t[14]=withKeys((e=>r.hideActions()),["esc"])),t[15]||(t[15]=withKeys((t=>e.$refs.actionDelete.focus()),["up"])),t[16]||(t[16]=withKeys((t=>e.$refs.actionDelete.focus()),["down"]))],onFocus:t[12]||(t[12]=e=>o.focused(!0)),onBlur:t[13]||(t[13]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-text-width","aria-hidden":"true",onClick:t[9]||(t[9]=withModifiers((e=>r.openRenameModal()),["stop"]))})],40,["aria-label","title"])]),createVNode("li",null,[createVNode("button",{ref:"actionDelete",type:"button",class:"action-delete","aria-label":e.translate("COM_MEDIA_ACTION_DELETE"),title:e.translate("COM_MEDIA_ACTION_DELETE"),onKeyup:[t[18]||(t[18]=withKeys((e=>r.openConfirmDeleteModal()),["enter"])),t[19]||(t[19]=withKeys((e=>r.openConfirmDeleteModal()),["space"])),t[22]||(t[22]=withKeys((e=>r.hideActions()),["esc"])),t[23]||(t[23]=withKeys((t=>e.$refs.actionRename.focus()),["up"])),t[24]||(t[24]=withKeys((t=>e.$refs.actionRename.focus()),["down"]))],onFocus:t[20]||(t[20]=e=>o.focused(!0)),onBlur:t[21]||(t[21]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-trash","aria-hidden":"true",onClick:t[17]||(t[17]=withModifiers((e=>r.openConfirmDeleteModal()),["stop"]))})],40,["aria-label","title"])])])])):createCommentVNode("v-if",!0)],2)],32)}script$e.render=render$e,script$e.__file="administrator/components/com_media/resources/scripts/components/browser/items/directory.vue";var script$d={name:"MediaBrowserItemFile",props:["item","focused"],data:()=>({showActions:!1}),methods:{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.$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.$nextTick((()=>this.$refs.actionDownload.focus()))},openLastActions(){this.showActions=!0,this.$nextTick((()=>this.$refs.actionDelete.focus()))},hideActions(){this.showActions=!1,this.$nextTick((()=>this.$refs.actionToggle.focus()))}}};const _hoisted_1$c=createVNode("div",{class:"media-browser-item-preview"},[createVNode("div",{class:"file-background"},[createVNode("div",{class:"file-icon"},[createVNode("span",{class:"icon-file-alt"})])])],-1),_hoisted_2$c={class:"media-browser-item-info"},_hoisted_3$c={key:0,class:"media-browser-actions-list"};function render$d(e,t,o,n,i,r){return openBlock(),createBlock("div",{class:"media-browser-item-file",onMouseleave:t[37]||(t[37]=e=>r.hideActions())},[_hoisted_1$c,createVNode("div",_hoisted_2$c,toDisplayString(o.item.name)+" "+toDisplayString(o.item.filetype),1),createVNode("span",{class:"media-browser-select","aria-label":e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM"),title:e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM")},null,8,["aria-label","title"]),createVNode("div",{class:["media-browser-actions",{active:i.showActions}]},[createVNode("button",{ref:"actionToggle",href:"#",class:"action-toggle",type:"button","aria-label":e.translate("COM_MEDIA_OPEN_ITEM_ACTIONS"),title:e.translate("COM_MEDIA_OPEN_ITEM_ACTIONS"),onKeyup:[t[2]||(t[2]=withKeys((e=>r.openActions()),["enter"])),t[5]||(t[5]=withKeys((e=>r.openActions()),["space"])),t[6]||(t[6]=withKeys((e=>r.openActions()),["down"])),t[7]||(t[7]=withKeys((e=>r.openLastActions()),["up"]))],onFocus:t[3]||(t[3]=e=>o.focused(!0)),onBlur:t[4]||(t[4]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-ellipsis-h","aria-hidden":"true",onClick:t[1]||(t[1]=withModifiers((e=>r.openActions()),["stop"]))})],40,["aria-label","title"]),i.showActions?(openBlock(),createBlock("div",_hoisted_3$c,[createVNode("ul",null,[createVNode("li",null,[createVNode("button",{ref:"actionDownload",type:"button",class:"action-download","aria-label":e.translate("COM_MEDIA_ACTION_DOWNLOAD"),title:e.translate("COM_MEDIA_ACTION_DOWNLOAD"),onKeyup:[t[9]||(t[9]=withKeys((e=>r.download()),["enter"])),t[10]||(t[10]=withKeys((e=>r.download()),["space"])),t[11]||(t[11]=withKeys((t=>e.$refs.actionDelete.focus()),["up"])),t[12]||(t[12]=withKeys((t=>e.$refs.actionRename.focus()),["down"]))]},[createVNode("span",{class:"image-browser-action icon-download","aria-hidden":"true",onClick:t[8]||(t[8]=withModifiers((e=>r.download()),["stop"]))})],40,["aria-label","title"])]),createVNode("li",null,[createVNode("button",{ref:"actionRename",type:"button",class:"action-rename","aria-label":e.translate("COM_MEDIA_ACTION_RENAME"),title:e.translate("COM_MEDIA_ACTION_RENAME"),onKeyup:[t[14]||(t[14]=withKeys((e=>r.openRenameModal()),["space"])),t[15]||(t[15]=withKeys((e=>r.openRenameModal()),["enter"])),t[18]||(t[18]=withKeys((e=>r.hideActions()),["esc"])),t[19]||(t[19]=withKeys((t=>e.$refs.actionDownload.focus()),["up"])),t[20]||(t[20]=withKeys((t=>e.$refs.actionUrl.focus()),["down"]))],onFocus:t[16]||(t[16]=e=>o.focused(!0)),onBlur:t[17]||(t[17]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-text-width","aria-hidden":"true",onClick:t[13]||(t[13]=withModifiers((e=>r.openRenameModal()),["stop"]))})],40,["aria-label","title"])]),createVNode("li",null,[createVNode("button",{ref:"actionUrl",type:"button",class:"action-url","aria-label":e.translate("COM_MEDIA_ACTION_SHARE"),title:e.translate("COM_MEDIA_ACTION_SHARE"),onKeyup:[t[22]||(t[22]=withKeys((e=>r.openShareUrlModal()),["space"])),t[23]||(t[23]=withKeys((e=>r.openShareUrlModal()),["enter"])),t[26]||(t[26]=withKeys((e=>r.hideActions()),["esc"])),t[27]||(t[27]=withKeys((t=>e.$refs.actionRename.focus()),["up"])),t[28]||(t[28]=withKeys((t=>e.$refs.actionDelete.focus()),["down"]))],onFocus:t[24]||(t[24]=e=>o.focused(!0)),onBlur:t[25]||(t[25]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-link","aria-hidden":"true",onClick:t[21]||(t[21]=withModifiers((e=>r.openShareUrlModal()),["stop"]))})],40,["aria-label","title"])]),createVNode("li",null,[createVNode("button",{ref:"actionDelete",type:"button",class:"action-delete","aria-label":e.translate("COM_MEDIA_ACTION_DELETE"),title:e.translate("COM_MEDIA_ACTION_DELETE"),onKeyup:[t[30]||(t[30]=withKeys((e=>r.openConfirmDeleteModal()),["space"])),t[31]||(t[31]=withKeys((e=>r.openConfirmDeleteModal()),["enter"])),t[34]||(t[34]=withKeys((e=>r.hideActions()),["esc"])),t[35]||(t[35]=withKeys((t=>e.$refs.actionUrl.focus()),["up"])),t[36]||(t[36]=withKeys((t=>e.$refs.actionDownload.focus()),["down"]))],onFocus:t[32]||(t[32]=e=>o.focused(!0)),onBlur:t[33]||(t[33]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-trash","aria-hidden":"true",onClick:t[29]||(t[29]=withModifiers((e=>r.openConfirmDeleteModal()),["stop"]))})],40,["aria-label","title"])])])])):createCommentVNode("v-if",!0)],2)],32)}script$d.render=render$d,script$d.__file="administrator/components/com_media/resources/scripts/components/browser/items/file.vue";const dirname=e=>{if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e));if(0===e.length)return".";let t=e.charCodeAt(0);const o=47===t;let n=-1,i=!0;for(let o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),47===t){if(!i){n=o;break}}else i=!1;return-1===n?o?"/":".":o&&1===n?"//":e.slice(0,n)};class Api{constructor(){const e=Joomla.getOptions("com_media",{});if(void 0===e.apiBaseUrl)throw new TypeError("Media api baseUrl is not defined");if(void 0===e.csrfToken)throw new TypeError("Media api csrf token is not defined");this._baseUrl=e.apiBaseUrl,this._csrfToken=Joomla.getOptions("csrf.token"),this.imagesExtensions=e.imagesExtensions,this.audioExtensions=e.audioExtensions,this.videoExtensions=e.videoExtensions,this.documentExtensions=e.documentExtensions,this.mediaVersion=(new Date).getTime().toString()}getContents(e,t,o){return new Promise(((n,i)=>{if(-1!==["0","1"].indexOf(t))throw Error("Invalid parameter: full");if(-1!==["0","1"].indexOf(o))throw Error("Invalid parameter: content");let r=`${this._baseUrl}&task=api.files&path=${e}`;t&&(r+=`&url=${t}`),o&&(r+=`&content=${o}`),Joomla.request({url:r,method:"GET",headers:{"Content-Type":"application/json"},onSuccess:e=>{n(this._normalizeArray(JSON.parse(e).data))},onError:e=>{i(e)}})})).catch(this._handleError)}createDirectory(e,t){return new Promise(((o,n)=>{const i=`${this._baseUrl}&task=api.files&path=${t}`,r={[this._csrfToken]:"1",name:e};Joomla.request({url:i,method:"POST",data:JSON.stringify(r),headers:{"Content-Type":"application/json"},onSuccess:e=>{notifications.success("COM_MEDIA_CREATE_NEW_FOLDER_SUCCESS"),o(this._normalizeItem(JSON.parse(e).data))},onError:e=>{notifications.error("COM_MEDIA_CREATE_NEW_FOLDER_ERROR"),n(e)}})})).catch(this._handleError)}upload(e,t,o,n){return new Promise(((i,r)=>{const s=`${this._baseUrl}&task=api.files&path=${t}`,a={[this._csrfToken]:"1",name:e,content:o};!0===n&&(a.override=!0),Joomla.request({url:s,method:"POST",data:JSON.stringify(a),headers:{"Content-Type":"application/json"},onSuccess:e=>{notifications.success("COM_MEDIA_UPLOAD_SUCCESS"),i(this._normalizeItem(JSON.parse(e).data))},onError:e=>{r(e)}})})).catch(this._handleError)}rename(e,t){return new Promise(((o,n)=>{const i=`${this._baseUrl}&task=api.files&path=${e}`,r={[this._csrfToken]:"1",newPath:t};Joomla.request({url:i,method:"PUT",data:JSON.stringify(r),headers:{"Content-Type":"application/json"},onSuccess:e=>{notifications.success("COM_MEDIA_RENAME_SUCCESS"),o(this._normalizeItem(JSON.parse(e).data))},onError:e=>{notifications.error("COM_MEDIA_RENAME_ERROR"),n(e)}})})).catch(this._handleError)}delete(e){return new Promise(((t,o)=>{const n=`${this._baseUrl}&task=api.files&path=${e}`,i={[this._csrfToken]:"1"};Joomla.request({url:n,method:"DELETE",data:JSON.stringify(i),headers:{"Content-Type":"application/json"},onSuccess:()=>{notifications.success("COM_MEDIA_DELETE_SUCCESS"),t()},onError:e=>{notifications.error("COM_MEDIA_DELETE_ERROR"),o(e)}})})).catch(this._handleError)}_normalizeItem(e){return"dir"===e.type&&(e.directories=[],e.files=[]),e.directory=dirname(e.path),-1!==e.directory.indexOf(":",e.directory.length-1)&&(e.directory+="/"),e}_normalizeArray(e){return{directories:e.filter((e=>"dir"===e.type)).map((e=>this._normalizeItem(e))),files:e.filter((e=>"file"===e.type)).map((e=>this._normalizeItem(e)))}}_handleError(e){const t=JSON.parse(e.response);if(t.message)notifications.error(t.message);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}}const api=new Api;var script$c={name:"MediaBrowserItemImage",props:["item","focused"],data:()=>({showActions:!1}),computed:{canEdit(){return["jpg","jpeg","png"].indexOf(this.item.extension.toLowerCase())>-1},getHashedURL(){return this.item.adapter.startsWith("local-")?`url(${this.item.thumb_path}?${api.mediaVersion})`:`url(${this.item.thumb_path})`}},methods:{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.$store.commit(SELECT_BROWSER_ITEM,this.item),this.$store.commit(SHOW_RENAME_MODAL)},editItem(){const e=`${Joomla.getOptions("com_media").editViewUrl}&path=`;window.location.href=e+this.item.path},openShareUrlModal(){this.$store.commit(SELECT_BROWSER_ITEM,this.item),this.$store.commit(SHOW_SHARE_MODAL)},openActions(){this.showActions=!0,this.$nextTick((()=>this.$refs.actionPreview.focus()))},openLastActions(){this.showActions=!0,this.$nextTick((()=>this.$refs.actionDelete.focus()))},hideActions(){this.showActions=!1,this.$nextTick((()=>this.$refs.actionToggle.focus()))}}};const _hoisted_1$b={class:"media-browser-item-preview"},_hoisted_2$b={class:"image-background"},_hoisted_3$b={class:"media-browser-item-info"},_hoisted_4$7={key:0,class:"media-browser-actions-list"},_hoisted_5$3={key:0};function render$c(e,t,o,n,i,r){return openBlock(),createBlock("div",{class:"media-browser-image",onDblclick:t[56]||(t[56]=e=>r.openPreview()),onMouseleave:t[57]||(t[57]=e=>r.hideActions())},[createVNode("div",_hoisted_1$b,[createVNode("div",_hoisted_2$b,[createVNode("div",{class:"image-cropped",style:{backgroundImage:r.getHashedURL}},null,4)])]),createVNode("div",_hoisted_3$b,toDisplayString(o.item.name)+" "+toDisplayString(o.item.filetype),1),createVNode("span",{class:"media-browser-select","aria-label":e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM"),title:e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM")},null,8,["aria-label","title"]),createVNode("div",{class:["media-browser-actions",{active:i.showActions}]},[createVNode("button",{ref:"actionToggle",type:"button",class:"action-toggle","aria-label":e.translate("COM_MEDIA_OPEN_ITEM_ACTIONS"),title:e.translate("COM_MEDIA_OPEN_ITEM_ACTIONS"),onKeyup:[t[2]||(t[2]=withKeys((e=>r.openActions()),["enter"])),t[5]||(t[5]=withKeys((e=>r.openActions()),["space"])),t[6]||(t[6]=withKeys((e=>r.openActions()),["down"])),t[7]||(t[7]=withKeys((e=>r.openLastActions()),["up"]))],onFocus:t[3]||(t[3]=e=>o.focused(!0)),onBlur:t[4]||(t[4]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-ellipsis-h","aria-hidden":"true",onClick:t[1]||(t[1]=withModifiers((e=>r.openActions()),["stop"]))})],40,["aria-label","title"]),i.showActions?(openBlock(),createBlock("div",_hoisted_4$7,[createVNode("ul",null,[createVNode("li",null,[createVNode("button",{ref:"actionPreview",type:"button",class:"action-preview","aria-label":e.translate("COM_MEDIA_ACTION_PREVIEW"),title:e.translate("COM_MEDIA_ACTION_PREVIEW"),onKeyup:[t[9]||(t[9]=withKeys((e=>r.openPreview()),["enter"])),t[10]||(t[10]=withKeys((e=>r.openPreview()),["space"])),t[13]||(t[13]=withKeys((e=>r.hideActions()),["esc"])),t[14]||(t[14]=withKeys((t=>e.$refs.actionDelete.focus()),["up"])),t[15]||(t[15]=withKeys((t=>e.$refs.actionDownload.focus()),["down"]))],onFocus:t[11]||(t[11]=e=>o.focused(!0)),onBlur:t[12]||(t[12]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-search-plus","aria-hidden":"true",onClick:t[8]||(t[8]=withModifiers((e=>r.openPreview()),["stop"]))})],40,["aria-label","title"])]),createVNode("li",null,[createVNode("button",{ref:"actionDownload",type:"button",class:"action-download","aria-label":e.translate("COM_MEDIA_ACTION_DOWNLOAD"),title:e.translate("COM_MEDIA_ACTION_DOWNLOAD"),onKeyup:[t[17]||(t[17]=withKeys((e=>r.download()),["enter"])),t[18]||(t[18]=withKeys((e=>r.download()),["space"])),t[21]||(t[21]=withKeys((e=>r.hideActions()),["esc"])),t[22]||(t[22]=withKeys((t=>e.$refs.actionPreview.focus()),["up"])),t[23]||(t[23]=withKeys((t=>e.$refs.actionRename.focus()),["down"]))],onFocus:t[19]||(t[19]=e=>o.focused(!0)),onBlur:t[20]||(t[20]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-download","aria-hidden":"true",onClick:t[16]||(t[16]=withModifiers((e=>r.download()),["stop"]))})],40,["aria-label","title"])]),createVNode("li",null,[createVNode("button",{ref:"actionRename",type:"button",class:"action-rename","aria-label":e.translate("COM_MEDIA_ACTION_RENAME"),title:e.translate("COM_MEDIA_ACTION_RENAME"),onKeyup:[t[25]||(t[25]=withKeys((e=>r.openRenameModal()),["enter"])),t[26]||(t[26]=withKeys((e=>r.openRenameModal()),["space"])),t[29]||(t[29]=withKeys((e=>r.hideActions()),["esc"])),t[30]||(t[30]=withKeys((t=>e.$refs.actionDownload.focus()),["up"])),t[31]||(t[31]=withKeys((t=>r.canEdit?e.$refs.actionEdit.focus():e.$refs.actionShare.focus()),["down"]))],onFocus:t[27]||(t[27]=e=>o.focused(!0)),onBlur:t[28]||(t[28]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-text-width","aria-hidden":"true",onClick:t[24]||(t[24]=withModifiers((e=>r.openRenameModal()),["stop"]))})],40,["aria-label","title"])]),r.canEdit?(openBlock(),createBlock("li",_hoisted_5$3,[createVNode("button",{ref:"actionEdit",type:"button",class:"action-edit","aria-label":e.translate("COM_MEDIA_ACTION_EDIT"),title:e.translate("COM_MEDIA_ACTION_EDIT"),onKeyup:[t[33]||(t[33]=withKeys((e=>r.editItem()),["enter"])),t[34]||(t[34]=withKeys((e=>r.editItem()),["space"])),t[37]||(t[37]=withKeys((e=>r.hideActions()),["esc"])),t[38]||(t[38]=withKeys((t=>e.$refs.actionRename.focus()),["up"])),t[39]||(t[39]=withKeys((t=>e.$refs.actionShare.focus()),["down"]))],onFocus:t[35]||(t[35]=e=>o.focused(!0)),onBlur:t[36]||(t[36]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-pencil-alt","aria-hidden":"true",onClick:t[32]||(t[32]=withModifiers((e=>r.editItem()),["stop"]))})],40,["aria-label","title"])])):createCommentVNode("v-if",!0),createVNode("li",null,[createVNode("button",{ref:"actionShare",type:"button",class:"action-url","aria-label":e.translate("COM_MEDIA_ACTION_SHARE"),title:e.translate("COM_MEDIA_ACTION_SHARE"),onKeyup:[t[41]||(t[41]=withKeys((e=>r.openShareUrlModal()),["enter"])),t[42]||(t[42]=withKeys((e=>r.openShareUrlModal()),["space"])),t[45]||(t[45]=withKeys((e=>r.hideActions()),["esc"])),t[46]||(t[46]=withKeys((t=>r.canEdit?e.$refs.actionEdit.focus():e.$refs.actionRename.focus()),["up"])),t[47]||(t[47]=withKeys((t=>e.$refs.actionDelete.focus()),["down"]))],onFocus:t[43]||(t[43]=e=>o.focused(!0)),onBlur:t[44]||(t[44]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-link","aria-hidden":"true",onClick:t[40]||(t[40]=withModifiers((e=>r.openShareUrlModal()),["stop"]))})],40,["aria-label","title"])]),createVNode("li",null,[createVNode("button",{ref:"actionDelete",type:"button",class:"action-delete","aria-label":e.translate("COM_MEDIA_ACTION_DELETE"),title:e.translate("COM_MEDIA_ACTION_DELETE"),onKeyup:[t[49]||(t[49]=withKeys((e=>r.openConfirmDeleteModal()),["enter"])),t[50]||(t[50]=withKeys((e=>r.openConfirmDeleteModal()),["space"])),t[53]||(t[53]=withKeys((e=>r.hideActions()),["esc"])),t[54]||(t[54]=withKeys((t=>e.$refs.actionShare.focus()),["up"])),t[55]||(t[55]=withKeys((t=>e.$refs.actionPreview.focus()),["down"]))],onFocus:t[51]||(t[51]=e=>o.focused(!0)),onBlur:t[52]||(t[52]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-trash","aria-hidden":"true",onClick:t[48]||(t[48]=withModifiers((e=>r.openConfirmDeleteModal()),["stop"]))})],40,["aria-label","title"])])])])):createCommentVNode("v-if",!0)],2)],32)}script$c.render=render$c,script$c.__file="administrator/components/com_media/resources/scripts/components/browser/items/image.vue";var script$b={name:"MediaBrowserItemVideo",props:["item","focused"],data:()=>({showActions:!1}),methods:{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.$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.$nextTick((()=>this.$refs.actionPreview.focus()))},openLastActions(){this.showActions=!0,this.$nextTick((()=>this.$refs.actionDelete.focus()))},hideActions(){this.showActions=!1,this.$nextTick((()=>this.$refs.actionToggle.focus()))}}};const _hoisted_1$a=createVNode("div",{class:"media-browser-item-preview"},[createVNode("div",{class:"file-background"},[createVNode("div",{class:"file-icon"},[createVNode("span",{class:"fas fa-file-video"})])])],-1),_hoisted_2$a={class:"media-browser-item-info"},_hoisted_3$a={key:0,class:"media-browser-actions-list"};function render$b(e,t,o,n,i,r){return openBlock(),createBlock("div",{class:"media-browser-image",onDblclick:t[48]||(t[48]=e=>r.openPreview()),onMouseleave:t[49]||(t[49]=e=>r.hideActions())},[_hoisted_1$a,createVNode("div",_hoisted_2$a,toDisplayString(o.item.name)+" "+toDisplayString(o.item.filetype),1),createVNode("span",{class:"media-browser-select","aria-label":e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM"),title:e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM")},null,8,["aria-label","title"]),createVNode("div",{class:["media-browser-actions",{active:i.showActions}]},[createVNode("button",{ref:"actionToggle",type:"button",class:"action-toggle","aria-label":e.translate("COM_MEDIA_OPEN_ITEM_ACTIONS"),title:e.translate("COM_MEDIA_OPEN_ITEM_ACTIONS"),onKeyup:[t[2]||(t[2]=withKeys((e=>r.openActions()),["enter"])),t[5]||(t[5]=withKeys((e=>r.openActions()),["space"])),t[6]||(t[6]=withKeys((e=>r.openActions()),["down"])),t[7]||(t[7]=withKeys((e=>r.openLastActions()),["up"]))],onFocus:t[3]||(t[3]=e=>o.focused(!0)),onBlur:t[4]||(t[4]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-ellipsis-h","aria-hidden":"true",onClick:t[1]||(t[1]=withModifiers((e=>r.openActions()),["stop"]))})],40,["aria-label","title"]),i.showActions?(openBlock(),createBlock("div",_hoisted_3$a,[createVNode("ul",null,[createVNode("li",null,[createVNode("button",{ref:"actionPreview",type:"button",class:"action-preview","aria-label":e.translate("COM_MEDIA_ACTION_PREVIEW"),title:e.translate("COM_MEDIA_ACTION_PREVIEW"),onKeyup:[t[9]||(t[9]=withKeys((e=>r.openPreview()),["enter"])),t[10]||(t[10]=withKeys((e=>r.openPreview()),["space"])),t[13]||(t[13]=withKeys((e=>r.hideActions()),["esc"])),t[14]||(t[14]=withKeys((t=>e.$refs.actionDelete.focus()),["up"])),t[15]||(t[15]=withKeys((t=>e.$refs.actionDownload.focus()),["down"]))],onFocus:t[11]||(t[11]=e=>o.focused(!0)),onBlur:t[12]||(t[12]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-search-plus","aria-hidden":"true",onClick:t[8]||(t[8]=withModifiers((e=>r.openPreview()),["stop"]))})],40,["aria-label","title"])]),createVNode("li",null,[createVNode("button",{ref:"actionDownload",type:"button",class:"action-download","aria-label":e.translate("COM_MEDIA_ACTION_DOWNLOAD"),title:e.translate("COM_MEDIA_ACTION_DOWNLOAD"),onKeyup:[t[17]||(t[17]=withKeys((e=>r.download()),["enter"])),t[18]||(t[18]=withKeys((e=>r.download()),["space"])),t[21]||(t[21]=withKeys((e=>r.hideActions()),["esc"])),t[22]||(t[22]=withKeys((t=>e.$refs.actionPreview.focus()),["up"])),t[23]||(t[23]=withKeys((t=>e.$refs.actionRename.focus()),["down"]))],onFocus:t[19]||(t[19]=e=>o.focused(!0)),onBlur:t[20]||(t[20]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-download","aria-hidden":"true",onClick:t[16]||(t[16]=withModifiers((e=>r.download()),["stop"]))})],40,["aria-label","title"])]),createVNode("li",null,[createVNode("button",{ref:"actionRename",type:"button",class:"action-rename","aria-label":e.translate("COM_MEDIA_ACTION_RENAME"),title:e.translate("COM_MEDIA_ACTION_RENAME"),onKeyup:[t[25]||(t[25]=withKeys((e=>r.openRenameModal()),["enter"])),t[26]||(t[26]=withKeys((e=>r.openRenameModal()),["space"])),t[29]||(t[29]=withKeys((e=>r.hideActions()),["esc"])),t[30]||(t[30]=withKeys((t=>e.$refs.actionDownload.focus()),["up"])),t[31]||(t[31]=withKeys((t=>e.$refs.actionShare.focus()),["down"]))],onFocus:t[27]||(t[27]=e=>o.focused(!0)),onBlur:t[28]||(t[28]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-text-width","aria-hidden":"true",onClick:t[24]||(t[24]=withModifiers((e=>r.openRenameModal()),["stop"]))})],40,["aria-label","title"])]),createVNode("li",null,[createVNode("button",{ref:"actionShare",type:"button",class:"action-url","aria-label":e.translate("COM_MEDIA_ACTION_SHARE"),title:e.translate("COM_MEDIA_ACTION_SHARE"),onKeyup:[t[33]||(t[33]=withKeys((e=>r.openShareUrlModal()),["enter"])),t[34]||(t[34]=withKeys((e=>r.openShareUrlModal()),["space"])),t[37]||(t[37]=withKeys((e=>r.hideActions()),["esc"])),t[38]||(t[38]=withKeys((t=>e.$refs.actionRename.focus()),["up"])),t[39]||(t[39]=withKeys((t=>e.$refs.actionDelete.focus()),["down"]))],onFocus:t[35]||(t[35]=e=>o.focused(!0)),onBlur:t[36]||(t[36]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-link","aria-hidden":"true",onClick:t[32]||(t[32]=withModifiers((e=>r.openShareUrlModal()),["stop"]))})],40,["aria-label","title"])]),createVNode("li",null,[createVNode("button",{ref:"actionDelete",type:"button",class:"action-delete","aria-label":e.translate("COM_MEDIA_ACTION_DELETE"),title:e.translate("COM_MEDIA_ACTION_DELETE"),onKeyup:[t[41]||(t[41]=withKeys((e=>r.openConfirmDeleteModal()),["enter"])),t[42]||(t[42]=withKeys((e=>r.openConfirmDeleteModal()),["space"])),t[45]||(t[45]=withKeys((e=>r.hideActions()),["esc"])),t[46]||(t[46]=withKeys((t=>e.$refs.actionShare.focus()),["up"])),t[47]||(t[47]=withKeys((t=>e.$refs.actionPreview.focus()),["down"]))],onFocus:t[43]||(t[43]=e=>o.focused(!0)),onBlur:t[44]||(t[44]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-trash","aria-hidden":"true",onClick:t[40]||(t[40]=withModifiers((e=>r.openConfirmDeleteModal()),["stop"]))})],40,["aria-label","title"])])])])):createCommentVNode("v-if",!0)],2)],32)}script$b.render=render$b,script$b.__file="administrator/components/com_media/resources/scripts/components/browser/items/video.vue";var script$a={name:"MediaBrowserItemAudio",props:["item","focused"],data:()=>({showActions:!1}),methods:{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.$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.$nextTick((()=>this.$refs.actionPreview.focus()))},openLastActions(){this.showActions=!0,this.$nextTick((()=>this.$refs.actionDelete.focus()))},hideActions(){this.showActions=!1,this.$nextTick((()=>this.$refs.actionToggle.focus()))}}};const _hoisted_1$9=createVNode("div",{class:"media-browser-item-preview"},[createVNode("div",{class:"file-background"},[createVNode("div",{class:"file-icon"},[createVNode("span",{class:"fas fa-file-audio"})])])],-1),_hoisted_2$9={class:"media-browser-item-info"},_hoisted_3$9={key:0,class:"media-browser-actions-list"};function render$a(e,t,o,n,i,r){return openBlock(),createBlock("div",{class:"media-browser-audio",onDblclick:t[48]||(t[48]=e=>r.openPreview()),onMouseleave:t[49]||(t[49]=e=>r.hideActions())},[_hoisted_1$9,createVNode("div",_hoisted_2$9,toDisplayString(o.item.name)+" "+toDisplayString(o.item.filetype),1),createVNode("span",{class:"media-browser-select","aria-label":e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM"),title:e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM")},null,8,["aria-label","title"]),createVNode("div",{class:["media-browser-actions",{active:i.showActions}]},[createVNode("button",{ref:"actionToggle",type:"button",class:"action-toggle","aria-label":e.translate("COM_MEDIA_OPEN_ITEM_ACTIONS"),title:e.translate("COM_MEDIA_OPEN_ITEM_ACTIONS"),onKeyup:[t[2]||(t[2]=withKeys((e=>r.openActions()),["enter"])),t[5]||(t[5]=withKeys((e=>r.openActions()),["space"])),t[6]||(t[6]=withKeys((e=>r.openActions()),["down"])),t[7]||(t[7]=withKeys((e=>r.openLastActions()),["up"]))],onFocus:t[3]||(t[3]=e=>o.focused(!0)),onBlur:t[4]||(t[4]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-ellipsis-h","aria-hidden":"true",onClick:t[1]||(t[1]=withModifiers((e=>r.openActions()),["stop"]))})],40,["aria-label","title"]),i.showActions?(openBlock(),createBlock("div",_hoisted_3$9,[createVNode("ul",null,[createVNode("li",null,[createVNode("button",{ref:"actionPreview",type:"button",class:"action-preview","aria-label":e.translate("COM_MEDIA_ACTION_PREVIEW"),title:e.translate("COM_MEDIA_ACTION_PREVIEW"),onKeyup:[t[9]||(t[9]=withKeys((e=>r.openPreview()),["enter"])),t[10]||(t[10]=withKeys((e=>r.openPreview()),["space"])),t[13]||(t[13]=withKeys((e=>r.hideActions()),["esc"])),t[14]||(t[14]=withKeys((t=>e.$refs.actionDelete.focus()),["up"])),t[15]||(t[15]=withKeys((t=>e.$refs.actionDownload.focus()),["down"]))],onFocus:t[11]||(t[11]=e=>o.focused(!0)),onBlur:t[12]||(t[12]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-search-plus","aria-hidden":"true",onClick:t[8]||(t[8]=withModifiers((e=>r.openPreview()),["stop"]))})],40,["aria-label","title"])]),createVNode("li",null,[createVNode("button",{ref:"actionDownload",type:"button",class:"action-download","aria-label":e.translate("COM_MEDIA_ACTION_DOWNLOAD"),title:e.translate("COM_MEDIA_ACTION_DOWNLOAD"),onKeyup:[t[17]||(t[17]=withKeys((e=>r.download()),["enter"])),t[18]||(t[18]=withKeys((e=>r.download()),["space"])),t[21]||(t[21]=withKeys((e=>r.hideActions()),["esc"])),t[22]||(t[22]=withKeys((t=>e.$refs.actionPreview.focus()),["up"])),t[23]||(t[23]=withKeys((t=>e.$refs.actionRename.focus()),["down"]))],onFocus:t[19]||(t[19]=e=>o.focused(!0)),onBlur:t[20]||(t[20]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-download","aria-hidden":"true",onClick:t[16]||(t[16]=withModifiers((e=>r.download()),["stop"]))})],40,["aria-label","title"])]),createVNode("li",null,[createVNode("button",{ref:"actionRename",type:"button",class:"action-rename","aria-label":e.translate("COM_MEDIA_ACTION_RENAME"),title:e.translate("COM_MEDIA_ACTION_RENAME"),onKeyup:[t[25]||(t[25]=withKeys((e=>r.openRenameModal()),["enter"])),t[26]||(t[26]=withKeys((e=>r.openRenameModal()),["space"])),t[29]||(t[29]=withKeys((e=>r.hideActions()),["esc"])),t[30]||(t[30]=withKeys((t=>e.$refs.actionDownload.focus()),["up"])),t[31]||(t[31]=withKeys((t=>e.$refs.actionShare.focus()),["down"]))],onFocus:t[27]||(t[27]=e=>o.focused(!0)),onBlur:t[28]||(t[28]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-text-width","aria-hidden":"true",onClick:t[24]||(t[24]=withModifiers((e=>r.openRenameModal()),["stop"]))})],40,["aria-label","title"])]),createVNode("li",null,[createVNode("button",{ref:"actionShare",type:"button",class:"action-url","aria-label":e.translate("COM_MEDIA_ACTION_SHARE"),title:e.translate("COM_MEDIA_ACTION_SHARE"),onKeyup:[t[33]||(t[33]=withKeys((e=>r.openShareUrlModal()),["enter"])),t[34]||(t[34]=withKeys((e=>r.openShareUrlModal()),["space"])),t[37]||(t[37]=withKeys((e=>r.hideActions()),["esc"])),t[38]||(t[38]=withKeys((t=>e.$refs.actionRename.focus()),["up"])),t[39]||(t[39]=withKeys((t=>e.$refs.actionDelete.focus()),["down"]))],onFocus:t[35]||(t[35]=e=>o.focused(!0)),onBlur:t[36]||(t[36]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-link","aria-hidden":"true",onClick:t[32]||(t[32]=withModifiers((e=>r.openShareUrlModal()),["stop"]))})],40,["aria-label","title"])]),createVNode("li",null,[createVNode("button",{ref:"actionDelete",type:"button",class:"action-delete","aria-label":e.translate("COM_MEDIA_ACTION_DELETE"),title:e.translate("COM_MEDIA_ACTION_DELETE"),onKeyup:[t[41]||(t[41]=withKeys((e=>r.openConfirmDeleteModal()),["enter"])),t[42]||(t[42]=withKeys((e=>r.openConfirmDeleteModal()),["space"])),t[45]||(t[45]=withKeys((e=>r.hideActions()),["esc"])),t[46]||(t[46]=withKeys((t=>e.$refs.actionShare.focus()),["up"])),t[47]||(t[47]=withKeys((t=>e.$refs.actionPreview.focus()),["down"]))],onFocus:t[43]||(t[43]=e=>o.focused(!0)),onBlur:t[44]||(t[44]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-trash","aria-hidden":"true",onClick:t[40]||(t[40]=withModifiers((e=>r.openConfirmDeleteModal()),["stop"]))})],40,["aria-label","title"])])])])):createCommentVNode("v-if",!0)],2)],32)}script$a.render=render$a,script$a.__file="administrator/components/com_media/resources/scripts/components/browser/items/audio.vue";var script$9={name:"MediaBrowserItemAudio",props:["item","focused"],data:()=>({showActions:!1}),methods:{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.$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.$nextTick((()=>this.$refs.actionPreview.focus()))},openLastActions(){this.showActions=!0,this.$nextTick((()=>this.$refs.actionDelete.focus()))},hideActions(){this.showActions=!1,this.$nextTick((()=>this.$refs.actionToggle.focus()))}}};const _hoisted_1$8=createVNode("div",{class:"media-browser-item-preview"},[createVNode("div",{class:"file-background"},[createVNode("div",{class:"file-icon"},[createVNode("span",{class:"fas fa-file-pdf"})])])],-1),_hoisted_2$8={class:"media-browser-item-info"},_hoisted_3$8={key:0,class:"media-browser-actions-list"};function render$9(e,t,o,n,i,r){return openBlock(),createBlock("div",{class:"media-browser-doc",onDblclick:t[48]||(t[48]=e=>r.openPreview()),onMouseleave:t[49]||(t[49]=e=>r.hideActions())},[_hoisted_1$8,createVNode("div",_hoisted_2$8,toDisplayString(o.item.name)+" "+toDisplayString(o.item.filetype),1),createVNode("span",{class:"media-browser-select","aria-label":e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM"),title:e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM")},null,8,["aria-label","title"]),createVNode("div",{class:["media-browser-actions",{active:i.showActions}]},[createVNode("button",{ref:"actionToggle",type:"button",class:"action-toggle","aria-label":e.translate("COM_MEDIA_OPEN_ITEM_ACTIONS"),title:e.translate("COM_MEDIA_OPEN_ITEM_ACTIONS"),onKeyup:[t[2]||(t[2]=withKeys((e=>r.openActions()),["enter"])),t[5]||(t[5]=withKeys((e=>r.openActions()),["space"])),t[6]||(t[6]=withKeys((e=>r.openActions()),["down"])),t[7]||(t[7]=withKeys((e=>r.openLastActions()),["up"]))],onFocus:t[3]||(t[3]=e=>o.focused(!0)),onBlur:t[4]||(t[4]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-ellipsis-h","aria-hidden":"true",onClick:t[1]||(t[1]=withModifiers((e=>r.openActions()),["stop"]))})],40,["aria-label","title"]),i.showActions?(openBlock(),createBlock("div",_hoisted_3$8,[createVNode("ul",null,[createVNode("li",null,[createVNode("button",{ref:"actionPreview",type:"button",class:"action-preview","aria-label":e.translate("COM_MEDIA_ACTION_PREVIEW"),title:e.translate("COM_MEDIA_ACTION_PREVIEW"),onKeyup:[t[9]||(t[9]=withKeys((e=>r.openPreview()),["enter"])),t[10]||(t[10]=withKeys((e=>r.openPreview()),["space"])),t[13]||(t[13]=withKeys((e=>r.hideActions()),["esc"])),t[14]||(t[14]=withKeys((t=>e.$refs.actionDelete.focus()),["up"])),t[15]||(t[15]=withKeys((t=>e.$refs.actionDownload.focus()),["down"]))],onFocus:t[11]||(t[11]=e=>o.focused(!0)),onBlur:t[12]||(t[12]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-search-plus","aria-hidden":"true",onClick:t[8]||(t[8]=withModifiers((e=>r.openPreview()),["stop"]))})],40,["aria-label","title"])]),createVNode("li",null,[createVNode("button",{ref:"actionDownload",type:"button",class:"action-download","aria-label":e.translate("COM_MEDIA_ACTION_DOWNLOAD"),title:e.translate("COM_MEDIA_ACTION_DOWNLOAD"),onKeyup:[t[17]||(t[17]=withKeys((e=>r.download()),["enter"])),t[18]||(t[18]=withKeys((e=>r.download()),["space"])),t[21]||(t[21]=withKeys((e=>r.hideActions()),["esc"])),t[22]||(t[22]=withKeys((t=>e.$refs.actionPreview.focus()),["up"])),t[23]||(t[23]=withKeys((t=>e.$refs.actionRename.focus()),["down"]))],onFocus:t[19]||(t[19]=e=>o.focused(!0)),onBlur:t[20]||(t[20]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-download","aria-hidden":"true",onClick:t[16]||(t[16]=withModifiers((e=>r.download()),["stop"]))})],40,["aria-label","title"])]),createVNode("li",null,[createVNode("button",{ref:"actionRename",type:"button",class:"action-rename","aria-label":e.translate("COM_MEDIA_ACTION_RENAME"),title:e.translate("COM_MEDIA_ACTION_RENAME"),onKeyup:[t[25]||(t[25]=withKeys((e=>r.openRenameModal()),["enter"])),t[26]||(t[26]=withKeys((e=>r.openRenameModal()),["space"])),t[29]||(t[29]=withKeys((e=>r.hideActions()),["esc"])),t[30]||(t[30]=withKeys((t=>e.$refs.actionDownload.focus()),["up"])),t[31]||(t[31]=withKeys((t=>e.$refs.actionShare.focus()),["down"]))],onFocus:t[27]||(t[27]=e=>o.focused(!0)),onBlur:t[28]||(t[28]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-text-width","aria-hidden":"true",onClick:t[24]||(t[24]=withModifiers((e=>r.openRenameModal()),["stop"]))})],40,["aria-label","title"])]),createVNode("li",null,[createVNode("button",{ref:"actionShare",type:"button",class:"action-url","aria-label":e.translate("COM_MEDIA_ACTION_SHARE"),title:e.translate("COM_MEDIA_ACTION_SHARE"),onKeyup:[t[33]||(t[33]=withKeys((e=>r.openShareUrlModal()),["enter"])),t[34]||(t[34]=withKeys((e=>r.openShareUrlModal()),["space"])),t[37]||(t[37]=withKeys((e=>r.hideActions()),["esc"])),t[38]||(t[38]=withKeys((t=>e.$refs.actionRename.focus()),["up"])),t[39]||(t[39]=withKeys((t=>e.$refs.actionDelete.focus()),["down"]))],onFocus:t[35]||(t[35]=e=>o.focused(!0)),onBlur:t[36]||(t[36]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-link","aria-hidden":"true",onClick:t[32]||(t[32]=withModifiers((e=>r.openShareUrlModal()),["stop"]))})],40,["aria-label","title"])]),createVNode("li",null,[createVNode("button",{ref:"actionDelete",type:"button",class:"action-delete","aria-label":e.translate("COM_MEDIA_ACTION_DELETE"),title:e.translate("COM_MEDIA_ACTION_DELETE"),onKeyup:[t[41]||(t[41]=withKeys((e=>r.openConfirmDeleteModal()),["enter"])),t[42]||(t[42]=withKeys((e=>r.openConfirmDeleteModal()),["space"])),t[45]||(t[45]=withKeys((e=>r.hideActions()),["esc"])),t[46]||(t[46]=withKeys((t=>e.$refs.actionShare.focus()),["up"])),t[47]||(t[47]=withKeys((t=>e.$refs.actionPreview.focus()),["down"]))],onFocus:t[43]||(t[43]=e=>o.focused(!0)),onBlur:t[44]||(t[44]=e=>o.focused(!1))},[createVNode("span",{class:"image-browser-action icon-trash","aria-hidden":"true",onClick:t[40]||(t[40]=withModifiers((e=>r.openConfirmDeleteModal()),["stop"]))})],40,["aria-label","title"])])])])):createCommentVNode("v-if",!0)],2)],32)}script$9.render=render$9,script$9.__file="administrator/components/com_media/resources/scripts/components/browser/items/document.vue";var BrowserItem={props:["item"],data:()=>({hoverActive:!1}),methods:{itemType(){return"dir"===this.item.type?script$e:this.item.extension&&api.imagesExtensions.includes(this.item.extension.toLowerCase())?script$c:this.item.extension&&api.videoExtensions.includes(this.item.extension.toLowerCase())?script$b:this.item.extension&&api.audioExtensions.includes(this.item.extension.toLowerCase())?script$a:this.item.extension&&api.documentExtensions.includes(this.item.extension.toLowerCase())?script$9:script$d},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},mouseover(){this.hoverActive=!0},mouseleave(){this.hoverActive=!1},handleClick(e){if(this.item.path&&"file"===this.item.type&&window.parent.document.dispatchEvent(new CustomEvent("onMediaFileSelected",{bubbles:!0,cancelable:!1,detail:{path:this.item.path,thumb:this.item.thumb,fileType:!!this.item.mime_type&&this.item.mime_type,extension:!!this.item.extension&&this.item.extension,width:this.item.width?this.item.width:0,height:this.item.height?this.item.height:0}})),"dir"===this.item.type&&window.parent.document.dispatchEvent(new CustomEvent("onMediaFileSelected",{bubbles:!0,cancelable:!1,detail:{}})),!this.isSelected())return e.shiftKey||13===e.keyCode||this.$store.commit(UNSELECT_ALL_BROWSER_ITEMS),void this.$store.commit(SELECT_BROWSER_ITEM,this.item);this.$store.dispatch("toggleBrowserItemSelect",this.item),window.parent.document.dispatchEvent(new CustomEvent("onMediaFileSelected",{bubbles:!0,cancelable:!1,detail:{}})),this.$store.state.selectedItems.length>1&&(this.$store.commit(UNSELECT_ALL_BROWSER_ITEMS),this.$store.commit(SELECT_BROWSER_ITEM,this.item))},focused(e){e?this.mouseover():this.mouseleave()}},render(){return h("div",{class:{"media-browser-item":!0,selected:this.isSelected(),active:this.isHoverActive()},onClick:this.handleClick,onMouseover:this.mouseover,onMouseleave:this.mouseleave,onFocused:this.focused},[h(this.itemType(),{item:this.item,focused:this.focused})])}},script$8={name:"MediaBrowserItemRow",mixins:[navigable],props:["item"],computed:{dimension(){return this.item.width?`${this.item.width}px * ${this.item.height}px`:""},isDir(){return"dir"===this.item.type},size(){return this.item.size?`${(this.item.size/1024).toFixed(2)} KB`:""},selected(){return!!this.isSelected()}},methods:{onDblClick(){if(this.isDir)return void this.navigateTo(this.item.path);this.item.extension&&["jpg","jpeg","png","gif","webp","mp4","mp3","pdf"].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){const t={path:!1,thumb:!1,fileType:!!this.item.mime_type&&this.item.mime_type,extension:!!this.item.extension&&this.item.extension};if("file"===this.item.type&&(t.path=this.item.path,t.thumb=!!this.item.thumb&&this.item.thumb,t.width=this.item.width?this.item.width:0,t.height=this.item.height?this.item.height:0,window.parent.document.dispatchEvent(new CustomEvent("onMediaFileSelected",{bubbles:!0,cancelable:!1,detail:t}))),!this.isSelected())return e.shiftKey||13===e.keyCode||this.$store.commit(UNSELECT_ALL_BROWSER_ITEMS),void this.$store.commit(SELECT_BROWSER_ITEM,this.item);this.$store.state.selectedItems.length>1&&(this.$store.commit(UNSELECT_ALL_BROWSER_ITEMS),this.$store.commit(SELECT_BROWSER_ITEM,this.item))}}};const _hoisted_1$7={scope:"row",class:"name"},_hoisted_2$7={class:"size"},_hoisted_3$7={class:"dimension"},_hoisted_4$6={class:"created"},_hoisted_5$2={class:"modified"};function render$8(e,t,o,n,i,r){return openBlock(),createBlock("tr",{class:["media-browser-item",{selected:r.selected}],onDblclick:t[1]||(t[1]=withModifiers((e=>r.onDblClick()),["stop","prevent"])),onClick:t[2]||(t[2]=(...e)=>r.onClick&&r.onClick(...e))},[createVNode("td",{class:"type","data-type":o.item.extension},null,8,["data-type"]),createVNode("th",_hoisted_1$7,toDisplayString(o.item.name),1),createVNode("td",_hoisted_2$7,toDisplayString(r.size),1),createVNode("td",_hoisted_3$7,toDisplayString(r.dimension),1),createVNode("td",_hoisted_4$6,toDisplayString(o.item.create_date_formatted),1),createVNode("td",_hoisted_5$2,toDisplayString(o.item.modified_date_formatted),1)],34)}script$8.render=render$8,script$8.__file="administrator/components/com_media/resources/scripts/components/browser/items/row.vue";var script$7={name:"MediaModal",props:{showClose:{type:Boolean,default:!0},size:{type:String},labelElement:{type:String,required:!0}},emits:["close"],computed:{modalClass(){return{"modal-sm":"sm"===this.size}}},mounted(){document.addEventListener("keydown",this.onKeyDown)},beforeUnmount(){document.removeEventListener("keydown",this.onKeyDown)},methods:{close(){this.$emit("close")},onKeyDown(e){27===e.keyCode&&this.close()}}};const _hoisted_1$6={class:"modal-content"},_hoisted_2$6={class:"modal-header"},_hoisted_3$6={class:"modal-body"},_hoisted_4$5={class:"modal-footer"};function render$7(e,t,o,n,i,r){const s=resolveComponent("tab-lock");return openBlock(),createBlock("div",{class:"media-modal-backdrop",onClick:t[3]||(t[3]=e=>r.close())},[createVNode("div",{class:"modal",style:{display:"flex"},onClick:t[2]||(t[2]=withModifiers((()=>{}),["stop"]))},[createVNode(s,null,{default:withCtx((()=>[createVNode("div",{class:["modal-dialog",r.modalClass],role:"dialog","aria-labelledby":o.labelElement},[createVNode("div",_hoisted_1$6,[createVNode("div",_hoisted_2$6,[renderSlot(e.$slots,"header"),renderSlot(e.$slots,"backdrop-close"),o.showClose?(openBlock(),createBlock("button",{key:0,type:"button",class:"btn-close","aria-label":"Close",onClick:t[1]||(t[1]=e=>r.close())})):createCommentVNode("v-if",!0)]),createVNode("div",_hoisted_3$6,[renderSlot(e.$slots,"body")]),createVNode("div",_hoisted_4$5,[renderSlot(e.$slots,"footer")])])],10,["aria-labelledby"])])),_:3})])])}script$7.render=render$7,script$7.__file="administrator/components/com_media/resources/scripts/components/modals/modal.vue";var script$6={name:"MediaCreateFolderModal",data:()=>({folder:""}),methods:{isValid(){return this.folder},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$4={for:"folder"};function render$6(e,t,o,n,i,r){const s=resolveComponent("media-modal");return e.$store.state.showCreateFolderModal?(openBlock(),createBlock(s,{key:0,size:"md","label-element":"createFolderTitle",onClose:t[6]||(t[6]=e=>r.close())},{header:withCtx((()=>[createVNode("h3",_hoisted_1$5,toDisplayString(e.translate("COM_MEDIA_CREATE_NEW_FOLDER")),1)])),body:withCtx((()=>[createVNode("div",_hoisted_2$5,[createVNode("form",{class:"form",novalidate:"",onSubmit:t[3]||(t[3]=withModifiers(((...e)=>r.save&&r.save(...e)),["prevent"]))},[createVNode("div",_hoisted_3$5,[createVNode("label",_hoisted_4$4,toDisplayString(e.translate("COM_MEDIA_FOLDER_NAME")),1),withDirectives(createVNode("input",{id:"folder","onUpdate:modelValue":t[1]||(t[1]=e=>i.folder=e),class:"form-control",type:"text",required:"",autocomplete:"off",onInput:t[2]||(t[2]=e=>i.folder=e.target.value)},null,544),[[vModelText,i.folder,void 0,{trim:!0}]])])],32)])])),footer:withCtx((()=>[createVNode("div",null,[createVNode("button",{class:"btn btn-secondary",onClick:t[4]||(t[4]=e=>r.close())},toDisplayString(e.translate("JCANCEL")),1),createVNode("button",{class:"btn btn-success",disabled:!r.isValid(),onClick:t[5]||(t[5]=e=>r.save())},toDisplayString(e.translate("JACTION_CREATE")),9,["disabled"])])])),_:1})):createCommentVNode("v-if",!0)}script$6.render=render$6,script$6.__file="administrator/components/com_media/resources/scripts/components/modals/create-folder-modal.vue";var script$5={name:"MediaPreviewModal",computed:{item(){return this.$store.state.previewItem},getHashedURL(){return this.item.adapter.startsWith("local-")?`${this.item.url}?${api.mediaVersion}`:this.item.url}},methods:{close(){this.$store.commit(HIDE_PREVIEW_MODAL)},isImage(){return 0===this.item.mime_type.indexOf("image/")},isVideo(){return 0===this.item.mime_type.indexOf("video/")},isAudio(){return 0===this.item.mime_type.indexOf("audio/")},isDoc(){return 0===this.item.mime_type.indexOf("application/")}}};const _hoisted_1$4={id:"previewTitle",class:"modal-title text-light"},_hoisted_2$4={class:"image-background"},_hoisted_3$4={key:1,controls:""},_hoisted_4$3=createVNode("span",{class:"icon-times"},null,-1);function render$5(e,t,o,n,i,r){const s=resolveComponent("media-modal");return e.$store.state.showPreviewModal&&r.item?(openBlock(),createBlock(s,{key:0,size:"md",class:"media-preview-modal","label-element":"previewTitle","show-close":!1,onClose:t[2]||(t[2]=e=>r.close())},{header:withCtx((()=>[createVNode("h3",_hoisted_1$4,toDisplayString(r.item.name),1)])),body:withCtx((()=>[createVNode("div",_hoisted_2$4,[r.isAudio()?(openBlock(),createBlock("audio",{key:0,controls:"",src:r.item.url},null,8,["src"])):createCommentVNode("v-if",!0),r.isVideo()?(openBlock(),createBlock("video",_hoisted_3$4,[createVNode("source",{src:r.item.url,type:r.item.mime_type},null,8,["src","type"])])):createCommentVNode("v-if",!0),r.isDoc()?(openBlock(),createBlock("object",{key:2,type:r.item.mime_type,data:r.item.url,width:"800",height:"600"},null,8,["type","data"])):createCommentVNode("v-if",!0),r.isImage()?(openBlock(),createBlock("img",{key:3,src:r.getHashedURL,type:r.item.mime_type},null,8,["src","type"])):createCommentVNode("v-if",!0)])])),"backdrop-close":withCtx((()=>[createVNode("button",{type:"button",class:"media-preview-close",onClick:t[1]||(t[1]=e=>r.close())},[_hoisted_4$3])])),_:1})):createCommentVNode("v-if",!0)}script$5.render=render$5,script$5.__file="administrator/components/com_media/resources/scripts/components/modals/preview-modal.vue";var script$4={name:"MediaRenameModal",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}},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",{path:this.item.path,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$2={key:0,class:"input-group-text"};function render$4(e,t,o,n,i,r){const s=resolveComponent("media-modal");return e.$store.state.showRenameModal?(openBlock(),createBlock(s,{key:0,size:"sm","show-close":!1,"label-element":"renameTitle",onClose:t[6]||(t[6]=e=>r.close())},{header:withCtx((()=>[createVNode("h3",_hoisted_1$3,toDisplayString(e.translate("COM_MEDIA_RENAME")),1)])),body:withCtx((()=>[createVNode("div",null,[createVNode("form",{class:"form",novalidate:"",onSubmit:t[1]||(t[1]=withModifiers(((...e)=>r.save&&r.save(...e)),["prevent"]))},[createVNode("div",_hoisted_2$3,[createVNode("label",_hoisted_3$3,toDisplayString(e.translate("COM_MEDIA_NAME")),1),createVNode("div",{class:{"input-group":r.extension.length}},[createVNode("input",{id:"name",ref:"nameField",class:"form-control",type:"text",placeholder:e.translate("COM_MEDIA_NAME"),value:r.name,required:"",autocomplete:"off"},null,8,["placeholder","value"]),r.extension.length?(openBlock(),createBlock("span",_hoisted_4$2,toDisplayString(r.extension),1)):createCommentVNode("v-if",!0)],2)])],32)])])),footer:withCtx((()=>[createVNode("div",null,[createVNode("button",{type:"button",class:"btn btn-secondary",onClick:t[2]||(t[2]=e=>r.close()),onKeyup:t[3]||(t[3]=withKeys((e=>r.close()),["enter"]))},toDisplayString(e.translate("JCANCEL")),33),createVNode("button",{type:"button",class:"btn btn-success",disabled:!r.isValid(),onClick:t[4]||(t[4]=e=>r.save()),onKeyup:t[5]||(t[5]=withKeys((e=>r.save()),["enter"]))},toDisplayString(e.translate("JAPPLY")),41,["disabled"])])])),_:1})):createCommentVNode("v-if",!0)}script$4.render=render$4,script$4.__file="administrator/components/com_media/resources/scripts/components/modals/rename-modal.vue";var script$3={name:"MediaShareModal",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(e){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$1={key:0,class:"control"},_hoisted_5$1={key:1,class:"control"},_hoisted_6$1={class:"input-group"},_hoisted_7$1=createVNode("span",{class:"icon-clipboard","aria-hidden":"true"},null,-1);function render$3(e,t,o,n,i,r){const s=resolveComponent("media-modal");return e.$store.state.showShareModal?(openBlock(),createBlock(s,{key:0,size:"md","show-close":!1,"label-element":"shareTitle",onClose:t[5]||(t[5]=e=>r.close())},{header:withCtx((()=>[createVNode("h3",_hoisted_1$2,toDisplayString(e.translate("COM_MEDIA_SHARE")),1)])),body:withCtx((()=>[createVNode("div",_hoisted_2$2,[createVNode("div",_hoisted_3$2,[createTextVNode(toDisplayString(e.translate("COM_MEDIA_SHARE_DESC"))+" ",1),r.url?(openBlock(),createBlock("div",_hoisted_5$1,[createVNode("span",_hoisted_6$1,[withDirectives(createVNode("input",{id:"url",ref:"urlText","onUpdate:modelValue":t[2]||(t[2]=e=>r.url=e),readonly:"",type:"url",class:"form-control input-xxlarge",placeholder:"URL",autocomplete:"off"},null,512),[[vModelText,r.url]]),createVNode("button",{class:"btn btn-secondary",type:"button",title:e.translate("COM_MEDIA_SHARE_COPY"),onClick:t[3]||(t[3]=(...e)=>r.copyToClipboard&&r.copyToClipboard(...e))},[_hoisted_7$1],8,["title"])])])):(openBlock(),createBlock("div",_hoisted_4$1,[createVNode("button",{class:"btn btn-success w-100",type:"button",onClick:t[1]||(t[1]=(...e)=>r.generateUrl&&r.generateUrl(...e))},toDisplayString(e.translate("COM_MEDIA_ACTION_SHARE")),1)]))])])])),footer:withCtx((()=>[createVNode("div",null,[createVNode("button",{class:"btn btn-secondary",onClick:t[4]||(t[4]=e=>r.close())},toDisplayString(e.translate("JCANCEL")),1)])])),_:1})):createCommentVNode("v-if",!0)}script$3.render=render$3,script$3.__file="administrator/components/com_media/resources/scripts/components/modals/share-modal.vue";var script$2={name:"MediaShareModal",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$2(e,t,o,n,i,r){const s=resolveComponent("media-modal");return e.$store.state.showConfirmDeleteModal?(openBlock(),createBlock(s,{key:0,size:"md","show-close":!1,"label-element":"confirmDeleteTitle",onClose:t[3]||(t[3]=e=>r.close())},{header:withCtx((()=>[createVNode("h3",_hoisted_1$1,toDisplayString(e.translate("COM_MEDIA_CONFIRM_DELETE_MODAL_HEADING")),1)])),body:withCtx((()=>[createVNode("div",_hoisted_2$1,[createVNode("div",_hoisted_3$1,toDisplayString(e.translate("JGLOBAL_CONFIRM_DELETE")),1)])])),footer:withCtx((()=>[createVNode("div",null,[createVNode("button",{class:"btn btn-success",onClick:t[1]||(t[1]=e=>r.close())},toDisplayString(e.translate("JCANCEL")),1),createVNode("button",{id:"media-delete-item",class:"btn btn-danger",onClick:t[2]||(t[2]=e=>r.deleteItem())},toDisplayString(e.translate("COM_MEDIA_CONFIRM_DELETE_MODAL")),1)])])),_:1})):createCommentVNode("v-if",!0)}script$2.render=render$2,script$2.__file="administrator/components/com_media/resources/scripts/components/modals/confirm-delete-modal.vue";var script$1={name:"MediaInfobar",computed:{item(){const{selectedItems:e}=this.$store.state;return 1===e.length?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={key:0,class:"media-infobar"},_hoisted_2={key:0,class:"text-center"},_hoisted_3=createVNode("span",{class:"icon-file placeholder-icon"},null,-1),_hoisted_4=createTextVNode(" Select file or folder to view its details. "),_hoisted_5={key:1},_hoisted_6={key:0},_hoisted_7={key:1},_hoisted_8={key:2},_hoisted_9={key:3},_hoisted_10={key:4},_hoisted_11={key:5},_hoisted_12={key:6};function render$1(e,t,o,n,i,r){return openBlock(),createBlock(Transition,{name:"infobar"},{default:withCtx((()=>[r.showInfoBar&&r.item?(openBlock(),createBlock("div",_hoisted_1,[createVNode("span",{class:"infobar-close",onClick:t[1]||(t[1]=e=>r.hideInfoBar())},"×"),createVNode("h2",null,toDisplayString(r.item.name),1),"/"===r.item.path?(openBlock(),createBlock("div",_hoisted_2,[_hoisted_3,_hoisted_4])):(openBlock(),createBlock("dl",_hoisted_5,[createVNode("dt",null,toDisplayString(e.translate("COM_MEDIA_FOLDER")),1),createVNode("dd",null,toDisplayString(r.item.directory),1),createVNode("dt",null,toDisplayString(e.translate("COM_MEDIA_MEDIA_TYPE")),1),"file"===r.item.type?(openBlock(),createBlock("dd",_hoisted_6,toDisplayString(e.translate("COM_MEDIA_FILE")),1)):"dir"===r.item.type?(openBlock(),createBlock("dd",_hoisted_7,toDisplayString(e.translate("COM_MEDIA_FOLDER")),1)):(openBlock(),createBlock("dd",_hoisted_8," - ")),createVNode("dt",null,toDisplayString(e.translate("COM_MEDIA_MEDIA_DATE_CREATED")),1),createVNode("dd",null,toDisplayString(r.item.create_date_formatted),1),createVNode("dt",null,toDisplayString(e.translate("COM_MEDIA_MEDIA_DATE_MODIFIED")),1),createVNode("dd",null,toDisplayString(r.item.modified_date_formatted),1),createVNode("dt",null,toDisplayString(e.translate("COM_MEDIA_MEDIA_DIMENSION")),1),r.item.width||r.item.height?(openBlock(),createBlock("dd",_hoisted_9,toDisplayString(r.item.width)+"px * "+toDisplayString(r.item.height)+"px ",1)):(openBlock(),createBlock("dd",_hoisted_10," - ")),createVNode("dt",null,toDisplayString(e.translate("COM_MEDIA_MEDIA_SIZE")),1),r.item.size?(openBlock(),createBlock("dd",_hoisted_11,toDisplayString((r.item.size/1024).toFixed(2))+" KB ",1)):(openBlock(),createBlock("dd",_hoisted_12," - ")),createVNode("dt",null,toDisplayString(e.translate("COM_MEDIA_MEDIA_MIME_TYPE")),1),createVNode("dd",null,toDisplayString(r.item.mime_type),1),createVNode("dt",null,toDisplayString(e.translate("COM_MEDIA_MEDIA_EXTENSION")),1),createVNode("dd",null,toDisplayString(r.item.extension||"-"),1)]))])):createCommentVNode("v-if",!0)])),_:1})}script$1.render=render$1,script$1.__file="administrator/components/com_media/resources/scripts/components/infobar/infobar.vue";var script={name:"MediaUpload",props:{accept:{type:String},extensions:{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((e=>{const t=new FileReader;t.onload=t=>{const{result:o}=t.target,n=o.indexOf("base64")+7,i=o.slice(n,o.length);this.$store.dispatch("uploadFile",{name:e.name,parent:this.$store.state.selectedDirectory,content:i})},t.readAsDataURL(e)}))}}};function render(e,t,o,n,i,r){return openBlock(),createBlock("input",{ref:"fileInput",type:"file",class:"hidden",name:o.name,multiple:o.multiple,accept:o.accept,onChange:t[1]||(t[1]=(...e)=>r.upload&&r.upload(...e))},null,40,["name","multiple","accept"])}script.render=render,script.__file="administrator/components/com_media/resources/scripts/components/upload/upload.vue";const Translate={translate:e=>Joomla.Text._(e,e),sprintf:(e,...t)=>{e=Translate.translate(e);let o=0;return e.replace(/%((%)|s|d)/g,(e=>{let n=t[o];return"%d"===e&&(n=parseFloat(n),isNaN(n)&&(n=0)),o++,n}))},install:e=>e.mixin({methods:{translate:e=>Translate.translate(e),sprintf:(e,...t)=>Translate.sprintf(e,t)}})};function getDevtoolsGlobalHook(){return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__}function getTarget(){return"undefined"!=typeof navigator?window:"undefined"!=typeof global?global:{}}const HOOK_SETUP="devtools-plugin:setup";function setupDevtoolsPlugin(e,t){const o=getDevtoolsGlobalHook();if(o)o.emit(HOOK_SETUP,e,t);else{const o=getTarget();(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:e,setupFn:t})}}var storeKey="store";function forEachValue(e,t){Object.keys(e).forEach((function(o){return t(e[o],o)}))}function isObject(e){return null!==e&&"object"==typeof e}function isPromise(e){return e&&"function"==typeof e.then}function partial(e,t){return function(){return e(t)}}function genericSubscribe(e,t,o){return t.indexOf(e)<0&&(o&&o.prepend?t.unshift(e):t.push(e)),function(){var o=t.indexOf(e);o>-1&&t.splice(o,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 o=e.state;installModule(e,o,[],e._modules.root,!0),resetStoreState(e,o,t)}function resetStoreState(e,t,o){var n=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,r={};forEachValue(i,(function(t,o){r[o]=partial(t,e),Object.defineProperty(e.getters,o,{get:function(){return r[o]()},enumerable:!0})})),e._state=reactive({data:t}),e.strict&&enableStrictMode(e),n&&o&&e._withCommit((function(){n.data=null}))}function installModule(e,t,o,n,i){var r=!o.length,s=e._modules.getNamespace(o);if(n.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=n),!r&&!i){var a=getNestedState(t,o.slice(0,-1)),c=o[o.length-1];e._withCommit((function(){a[c]=n.state}))}var l=n.context=makeLocalContext(e,s,o);n.forEachMutation((function(t,o){registerMutation(e,s+o,t,l)})),n.forEachAction((function(t,o){var n=t.root?o:s+o,i=t.handler||t;registerAction(e,n,i,l)})),n.forEachGetter((function(t,o){registerGetter(e,s+o,t,l)})),n.forEachChild((function(n,r){installModule(e,t,o.concat(r),n,i)}))}function makeLocalContext(e,t,o){var n=""===t,i={dispatch:n?e.dispatch:function(o,n,i){var r=unifyObjectStyle(o,n,i),s=r.payload,a=r.options,c=r.type;return a&&a.root||(c=t+c),e.dispatch(c,s)},commit:n?e.commit:function(o,n,i){var r=unifyObjectStyle(o,n,i),s=r.payload,a=r.options,c=r.type;a&&a.root||(c=t+c),e.commit(c,s,a)}};return Object.defineProperties(i,{getters:{get:n?function(){return e.getters}:function(){return makeLocalGetters(e,t)}},state:{get:function(){return getNestedState(e.state,o)}}}),i}function makeLocalGetters(e,t){if(!e._makeLocalGettersCache[t]){var o={},n=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,n)===t){var r=i.slice(n);Object.defineProperty(o,r,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=o}return e._makeLocalGettersCache[t]}function registerMutation(e,t,o,n){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){o.call(e,n.state,t)}))}function registerAction(e,t,o,n){(e._actions[t]||(e._actions[t]=[])).push((function(t){var i=o.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},t);return isPromise(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}function registerGetter(e,t,o,n){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return o(n.state,n.getters,e.state,e.getters)})}function enableStrictMode(e){watch((function(){return e._state.data}),(function(){}),{deep:!0,flush:"sync"})}function getNestedState(e,t){return t.reduce((function(e,t){return e[t]}),e)}function unifyObjectStyle(e,t,o){return isObject(e)&&e.type&&(o=t,t=e,e=e.type),{type:e,payload:t,options:o}}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(o){o.addTimelineLayer({id:MUTATIONS_LAYER_ID,label:"Vuex Mutations",color:COLOR_LIME_500}),o.addTimelineLayer({id:ACTIONS_LAYER_ID,label:"Vuex Actions",color:COLOR_LIME_500}),o.addInspector({id:INSPECTOR_ID,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),o.on.getInspectorTree((function(o){if(o.app===e&&o.inspectorId===INSPECTOR_ID)if(o.filter){var n=[];flattenStoreForInspectorTree(n,t._modules.root,o.filter,""),o.rootNodes=n}else o.rootNodes=[formatStoreForInspectorTree(t._modules.root,"")]})),o.on.getInspectorState((function(o){if(o.app===e&&o.inspectorId===INSPECTOR_ID){var n=o.nodeId;makeLocalGetters(t,n),o.state=formatStoreForInspectorState(getStoreModule(t._modules,n),"root"===n?t.getters:t._makeLocalGettersCache,n)}})),o.on.editInspectorState((function(o){if(o.app===e&&o.inspectorId===INSPECTOR_ID){var n=o.nodeId,i=o.path;"root"!==n&&(i=n.split("/").filter(Boolean).concat(i)),t._withCommit((function(){o.set(t._state.data,i,o.state.value)}))}})),t.subscribe((function(e,t){var n={};e.payload&&(n.payload=e.payload),n.state=t,o.notifyComponentUpdate(),o.sendInspectorTree(INSPECTOR_ID),o.sendInspectorState(INSPECTOR_ID),o.addTimelineEvent({layerId:MUTATIONS_LAYER_ID,event:{time:Date.now(),title:e.type,data:n}})})),t.subscribeAction({before:function(e,t){var n={};e.payload&&(n.payload=e.payload),e._id=actionId++,e._time=Date.now(),n.state=t,o.addTimelineEvent({layerId:ACTIONS_LAYER_ID,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:n}})},after:function(e,t){var n={},i=Date.now()-e._time;n.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},e.payload&&(n.payload=e.payload),n.state=t,o.addTimelineEvent({layerId:ACTIONS_LAYER_ID,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:n}})}})}))}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&&"root"!==e?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(o){return formatStoreForInspectorTree(e._children[o],t+o+"/")}))}}function flattenStoreForInspectorTree(e,t,o,n){n.includes(o)&&e.push({id:n||"root",label:n.endsWith("/")?n.slice(0,n.length-1):n||"Root",tags:t.namespaced?[TAG_NAMESPACED]:[]}),Object.keys(t._children).forEach((function(i){flattenStoreForInspectorTree(e,t._children[i],o,n+i+"/")}))}function formatStoreForInspectorState(e,t,o){t="root"===o?t:t[o];var n=Object.keys(t),i={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(n.length){var r=transformPathsToObjectTree(t);i.getters=Object.keys(r).map((function(e){return{key:e.endsWith("/")?extractNameFromPath(e):e,editable:!1,value:canThrow((function(){return r[e]}))}}))}return i}function transformPathsToObjectTree(e){var t={};return Object.keys(e).forEach((function(o){var n=o.split("/");if(n.length>1){var i=t,r=n.pop();n.forEach((function(e){i[e]||(i[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),i=i[e]._custom.value})),i[r]=canThrow((function(){return e[o]}))}else t[o]=canThrow((function(){return e[o]}))})),t}function getStoreModule(e,t){var o=t.split("/").filter((function(e){return e}));return o.reduce((function(e,n,i){var r=e[n];if(!r)throw new Error('Missing module "'+n+'" for path "'+t+'".');return i===o.length-1?r:r._children}),"root"===t?e:e.root._children)}function canThrow(e){try{return e()}catch(e){return e}}var Module=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var o=e.state;this.state=("function"==typeof o?o():o)||{}},prototypeAccessors$1={namespaced:{configurable:!0}};prototypeAccessors$1.namespaced.get=function(){return!!this._rawModule.namespaced},Module.prototype.addChild=function(e,t){this._children[e]=t},Module.prototype.removeChild=function(e){delete this._children[e]},Module.prototype.getChild=function(e){return this._children[e]},Module.prototype.hasChild=function(e){return e in this._children},Module.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},Module.prototype.forEachChild=function(e){forEachValue(this._children,e)},Module.prototype.forEachGetter=function(e){this._rawModule.getters&&forEachValue(this._rawModule.getters,e)},Module.prototype.forEachAction=function(e){this._rawModule.actions&&forEachValue(this._rawModule.actions,e)},Module.prototype.forEachMutation=function(e){this._rawModule.mutations&&forEachValue(this._rawModule.mutations,e)},Object.defineProperties(Module.prototype,prototypeAccessors$1);var ModuleCollection=function(e){this.register([],e,!1)};function update(e,t,o){if(t.update(o),o.modules)for(var n in o.modules){if(!t.getChild(n))return;update(e.concat(n),t.getChild(n),o.modules[n])}}function createStore(e){return new Store(e)}ModuleCollection.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},ModuleCollection.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,o){return e+((t=t.getChild(o)).namespaced?o+"/":"")}),"")},ModuleCollection.prototype.update=function(e){update([],this.root,e)},ModuleCollection.prototype.register=function(e,t,o){var n=this;void 0===o&&(o=!0);var i=new Module(t,o);0===e.length?this.root=i:this.get(e.slice(0,-1)).addChild(e[e.length-1],i);t.modules&&forEachValue(t.modules,(function(t,i){n.register(e.concat(i),t,o)}))},ModuleCollection.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),o=e[e.length-1],n=t.getChild(o);n&&n.runtime&&t.removeChild(o)},ModuleCollection.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),o=e[e.length-1];return!!t&&t.hasChild(o)};var Store=function(e){var t=this;void 0===e&&(e={});var o=e.plugins;void 0===o&&(o=[]);var n=e.strict;void 0===n&&(n=!1);var i=e.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(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=i;var r=this,s=this.dispatch,a=this.commit;this.dispatch=function(e,t){return s.call(r,e,t)},this.commit=function(e,t,o){return a.call(r,e,t,o)},this.strict=n;var c=this._modules.root.state;installModule(this,c,[],this._modules.root),resetStoreState(this,c),o.forEach((function(e){return e(t)}))},prototypeAccessors={state:{configurable:!0}};Store.prototype.install=function(e,t){e.provide(t||storeKey,this),e.config.globalProperties.$store=this,(void 0!==this._devtools?this._devtools:__VUE_PROD_DEVTOOLS__)&&addDevtools(e,this)},prototypeAccessors.state.get=function(){return this._state.data},prototypeAccessors.state.set=function(e){},Store.prototype.commit=function(e,t,o){var n=this,i=unifyObjectStyle(e,t,o),r=i.type,s=i.payload,a={type:r,payload:s},c=this._mutations[r];c&&(this._withCommit((function(){c.forEach((function(e){e(s)}))})),this._subscribers.slice().forEach((function(e){return e(a,n.state)})))},Store.prototype.dispatch=function(e,t){var o=this,n=unifyObjectStyle(e,t),i=n.type,r=n.payload,s={type:i,payload:r},a=this._actions[i];if(a){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(s,o.state)}))}catch(e){}var c=a.length>1?Promise.all(a.map((function(e){return e(r)}))):a[0](r);return new Promise((function(e,t){c.then((function(t){try{o._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(s,o.state)}))}catch(e){}e(t)}),(function(e){try{o._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(s,o.state,e)}))}catch(e){}t(e)}))}))}},Store.prototype.subscribe=function(e,t){return genericSubscribe(e,this._subscribers,t)},Store.prototype.subscribeAction=function(e,t){return genericSubscribe("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},Store.prototype.watch=function(e,t,o){var n=this;return watch((function(){return e(n.state,n.getters)}),t,Object.assign({},o))},Store.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},Store.prototype.registerModule=function(e,t,o){void 0===o&&(o={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),installModule(this,this.state,e,this._modules.get(e),o.preserveState),resetStoreState(this,this.state)},Store.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){delete getNestedState(t.state,e.slice(0,-1))[e[e.length-1]]})),resetStore(this)},Store.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},Store.prototype.hotUpdate=function(e){this._modules.update(e),resetStore(this,!0)},Store.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(Store.prototype,prototypeAccessors);var r=function(t){return function(e){return!!e&&"object"==typeof e}(t)&&!function(t){var o=Object.prototype.toString.call(t);return"[object RegExp]"===o||"[object Date]"===o||function(t){return t.$$typeof===e}(t)}(t)},e="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function t(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u(Array.isArray(e)?[]:{},e,t):e}function n(e,o,n){return e.concat(o).map((function(e){return t(e,n)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function c(e,t){try{return t in e}catch(e){return!1}}function u(e,i,s){(s=s||{}).arrayMerge=s.arrayMerge||n,s.isMergeableObject=s.isMergeableObject||r,s.cloneUnlessOtherwiseSpecified=t;var a=Array.isArray(i);return a===Array.isArray(e)?a?s.arrayMerge(e,i,s):function(e,n,i){var r={};return i.isMergeableObject(e)&&o(e).forEach((function(o){r[o]=t(e[o],i)})),o(n).forEach((function(o){(function(e,t){return c(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(r[o]=c(e,o)&&i.isMergeableObject(n[o])?function(e,t){if(!t.customMerge)return u;var o=t.customMerge(e);return"function"==typeof o?o:u}(o,i)(e[o],n[o],i):t(n[o],i))})),r}(e,i,s):t(i,s)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,o){return u(e,o,t)}),{})};var i=u;function a(e){var t=(e=e||{}).storage||window&&window.localStorage,o=e.key||"vuex";function n(e,t){var o=t.getItem(e);try{return void 0!==o?JSON.parse(o):void 0}catch(e){}}function r(){return!0}function s(e,t,o){return o.setItem(e,JSON.stringify(t))}function a(e,t){return Array.isArray(t)?t.reduce((function(t,o){return function(e,t,o,n){return!/__proto__/.test(t)&&((t=t.split?t.split("."):t.slice(0)).slice(0,-1).reduce((function(e,t){return e[t]=e[t]||{}}),e)[t.pop()]=o),e}(t,o,(n=e,void 0===(n=((i=o).split?i.split("."):i).reduce((function(e,t){return e&&e[t]}),n))?void 0:n));var n,i}),{}):e}function c(e){return function(t){return e.subscribe(t)}}(e.assertStorage||function(){t.setItem("@@",1),t.removeItem("@@")})(t);var l,d=function(){return(e.getState||n)(o,t)};return e.fetchBeforeUse&&(l=d()),function(n){e.fetchBeforeUse||(l=d()),"object"==typeof l&&null!==l&&(n.replaceState(e.overwrite?l:i(n.state,l,{arrayMerge:e.arrayMerger||function(e,t){return t},clone:!1})),(e.rehydrated||function(){})(n)),(e.subscriber||c)(n)((function(n,i){(e.filter||r)(n)&&(e.setState||s)(o,(e.reducer||a)(i,e.paths),t)}))}}const persistedStateOptions={key:"joomla.mediamanager",paths:["selectedDirectory","showInfoBar","listView","gridSize"],storage:window.sessionStorage},options=Joomla.getOptions("com_media",{});if(void 0===options.providers||0===options.providers.length)throw new TypeError("Media providers are not defined.");const getDrives=(e,t)=>{const o=[];return e.map((e=>o.push({root:`${t}-${e}:/`,displayName:e}))),o},loadedDisks=options.providers.map((e=>({displayName:e.displayName,drives:getDrives(e.adapterNames,e.name)}))),defaultDisk=loadedDisks.find((e=>e.drives.length>0&&void 0!==e.drives[0]));if(!defaultDisk)throw new TypeError("No default media drive was found");if(options.currentPath){const e=JSON.parse(persistedStateOptions.storage.getItem(persistedStateOptions.key));e&&e.selectedDirectory&&e.selectedDirectory!==options.currentPath&&(e.selectedDirectory=options.currentPath,persistedStateOptions.storage.setItem(persistedStateOptions.key,JSON.stringify(e)))}var state={isLoading:!1,disks:loadedDisks,directories:loadedDisks.map((()=>({path:defaultDisk.drives[0].root,name:defaultDisk.displayName,directories:[],files:[],directory:null}))),files:[],selectedDirectory:options.currentPath||defaultDisk.drives[0].root,selectedItems:[],showInfoBar:!1,listView:"grid",gridSize:"md",showConfirmDeleteModal:!1,showCreateFolderModal:!1,showPreviewModal:!1,showShareModal:!1,showRenameModal:!1,previewItem:null,search:""};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:getSelectedDirectory,getSelectedDirectoryDirectories:getSelectedDirectoryDirectories,getSelectedDirectoryFiles:getSelectedDirectoryFiles,getSelectedDirectoryContents:getSelectedDirectoryContents});function updateUrlPath(e){null==e&&(e="");const t=window.location.href,o=new RegExp("\\b(path=).*?(&|$)");t.search(o)>=0?history.pushState(null,"",t.replace(o,`$1${e}$2`)):history.pushState(null,"",`${t+(t.indexOf("?")>0?"&":"?")}path=${e}`)}const getContents=(e,t)=>{updateUrlPath(t),e.commit(SET_IS_LOADING,!0),api.getContents(t,0).then((o=>{e.commit(LOAD_CONTENTS_SUCCESS,o),e.commit(UNSELECT_ALL_BROWSER_ITEMS),e.commit(SELECT_DIRECTORY,t),e.commit(SET_IS_LOADING,!1)})).catch((t=>{e.commit(SET_IS_LOADING,!1),console.log("error",t)}))},getFullContents=(e,t)=>{e.commit(SET_IS_LOADING,!0),api.getContents(t.path,1).then((t=>{e.commit(LOAD_FULL_CONTENTS_SUCCESS,t.files[0]),e.commit(SET_IS_LOADING,!1)})).catch((t=>{e.commit(SET_IS_LOADING,!1),console.log("error",t)}))},download=(e,t)=>{api.getContents(t.path,0,1).then((e=>{const t=e.files[0],o=atob(t.content),n=[];for(let e=0;e
{console.log("error",e)}))},toggleBrowserItemSelect=(e,t)=>{const o=t;e.state.selectedItems.some((e=>e.path===o.path))?e.commit(UNSELECT_BROWSER_ITEM,o):e.commit(SELECT_BROWSER_ITEM,o)},createDirectory=(e,t)=>{e.commit(SET_IS_LOADING,!0),api.createDirectory(t.name,t.parent).then((t=>{e.commit(CREATE_DIRECTORY_SUCCESS,t),e.commit(HIDE_CREATE_FOLDER_MODAL),e.commit(SET_IS_LOADING,!1)})).catch((t=>{e.commit(SET_IS_LOADING,!1),console.log("error",t)}))},uploadFile=(e,t)=>{e.commit(SET_IS_LOADING,!0),api.upload(t.name,t.parent,t.content,t.override||!1).then((t=>{e.commit(UPLOAD_SUCCESS,t),e.commit(SET_IS_LOADING,!1)})).catch((o=>{e.commit(SET_IS_LOADING,!1),409===o.status&¬ifications.ask(Translate.sprintf("COM_MEDIA_FILE_EXISTS_AND_OVERRIDE",t.name),{})&&(t.override=!0,uploadFile(e,t))}))},renameItem=(e,t)=>{e.commit(SET_IS_LOADING,!0),api.rename(t.path,t.newPath).then((o=>{e.commit(RENAME_SUCCESS,{item:o,oldPath:t.path,newName:t.newName}),e.commit(HIDE_RENAME_MODAL),e.commit(SET_IS_LOADING,!1)})).catch((t=>{e.commit(SET_IS_LOADING,!1),console.log("error",t)}))},deleteSelectedItems=e=>{e.commit(SET_IS_LOADING,!0);const{selectedItems:t}=e.state;t.length>0&&t.forEach((t=>{api.delete(t.path).then((()=>{e.commit(DELETE_SUCCESS,t),e.commit(UNSELECT_ALL_BROWSER_ITEMS),e.commit(SET_IS_LOADING,!1)})).catch((t=>{e.commit(SET_IS_LOADING,!1),console.log("error",t)}))}))};var actions=Object.freeze({__proto__:null,getContents:getContents,getFullContents:getFullContents,download:download,toggleBrowserItemSelect:toggleBrowserItemSelect,createDirectory:createDirectory,uploadFile:uploadFile,renameItem:renameItem,deleteSelectedItems:deleteSelectedItems});const gridItemSizes=["sm","md","lg","xl"];var mutations={[SELECT_DIRECTORY]:(e,t)=>{e.selectedDirectory=t},[LOAD_CONTENTS_SUCCESS]:(e,t)=>{!function t(o){if(!e.directories.some((e=>e.path===o))){const n=function(e){const t=e.split("/");let o=dirname(e);-1!==o.indexOf(":",o.length-1)&&(o+="/");return{path:e,name:t[t.length-1],directories:[],files:[],directory:"."!==o?o:null,type:"dir",mime_type:"directory"}}(o);n.directories=e.directories.filter((e=>e.directory===n.path)).map((e=>e.path)),e.directories.push(n),n.directory&&t(n.directory)}}(e.selectedDirectory),t.directories.forEach((t=>{!function(e,t){const o=e.directories.find((e=>e.path===t.directory)),n=e.directories.indexOf(o);let i=e.directories.findIndex((e=>e.path===t.path));-1===i&&(i=e.directories.length),e.directories.splice(i,1,t),-1!==n&&e.directories.splice(n,1,{...o,directories:[...o.directories,t.path]})}(e,t)})),t.files.forEach((t=>{!function(e,t){const o=e.directories.find((e=>e.path===t.directory)),n=e.directories.indexOf(o);let i=e.files.findIndex((e=>e.path===t.path));-1===i&&(i=e.files.length),e.files.splice(i,1,t),-1!==n&&e.directories.splice(n,1,{...o,files:[...o.files,t.path]})}(e,t)}))},[UPLOAD_SUCCESS]:(e,t)=>{const o=t;if(!e.files.some((e=>e.path===o.path))){const t=e.directories.find((e=>e.path===o.directory)),n=e.directories.indexOf(t);e.files.push(o),e.directories.splice(n,1,{...t,files:[...t.files,o.path]})}},[CREATE_DIRECTORY_SUCCESS]:(e,t)=>{const o=t;if(!e.directories.some((e=>e.path===o.path))){const t=e.directories.find((e=>e.path===o.directory)),n=e.directories.indexOf(t);e.directories.push(o),e.directories.splice(n,1,{...t,directories:[...t.directories,o.path]})}},[RENAME_SUCCESS]:(e,t)=>{e.selectedItems[e.selectedItems.length-1].name=t.newName;const{item:o}=t,{oldPath:n}=t;if("file"===o.type){const t=e.files.findIndex((e=>e.path===n));e.files.splice(t,1,o)}else{const t=e.directories.findIndex((e=>e.path===n));e.directories.splice(t,1,o)}},[DELETE_SUCCESS]:(e,t)=>{const o=t;"file"===o.type&&e.files.splice(e.files.findIndex((e=>e.path===o.path)),1),"dir"===o.type&&e.directories.splice(e.directories.findIndex((e=>e.path===o.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 o=t;e.selectedItems.splice(e.selectedItems.findIndex((e=>e.path===o.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=>{let t=gridItemSizes.indexOf(e.gridSize);t>=0&&t
{let t=gridItemSizes.indexOf(e.gridSize);t>0&&t
{e.search=t},[SHOW_CONFIRM_DELETE_MODAL]:e=>{e.showConfirmDeleteModal=!0},[HIDE_CONFIRM_DELETE_MODAL]:e=>{e.showConfirmDeleteModal=!1}},store=createStore({state:state,getters:getters,actions:actions,mutations:mutations,plugins:[a(persistedStateOptions)],strict:!1});window.MediaManager=window.MediaManager||{},window.MediaManager.Event=new Event;const app=createApp(script$m);app.use(store),app.use(Translate),app.component("MediaDrive",script$k),app.component("MediaDisk",script$l),app.component("MediaTree",script$j),app.component("MediaTreeItem",script$i),app.component("MediaToolbar",script$h),app.component("MediaBreadcrumb",script$g),app.component("MediaBrowser",script$f),app.component("MediaBrowserItem",BrowserItem),app.component("MediaBrowserItemRow",script$8),app.component("MediaModal",script$7),app.component("MediaCreateFolderModal",script$6),app.component("MediaPreviewModal",script$5),app.component("MediaRenameModal",script$4),app.component("MediaShareModal",script$3),app.component("MediaConfirmDeleteModal",script$2),app.component("MediaInfobar",script$1),app.component("MediaUpload",script),app.mount("#com-media");