diff --git a/dist/js/tool.js b/dist/js/tool.js index f8c73e9..cd4baed 100644 --- a/dist/js/tool.js +++ b/dist/js/tool.js @@ -1,4 +1,4 @@ -(function(o,oa){typeof exports=="object"&&typeof module<"u"?oa(require("vue")):typeof define=="function"&&define.amd?define(["vue"],oa):(o=typeof globalThis<"u"?globalThis:o||self,oa(o.Vue))})(this,function(o){"use strict";var oa=!1,cl={GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_8df45352-2442-42b9-bd08-59b02c7e4f14",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v18.20.5 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_8df45352-2442-42b9-bd08-59b02c7e4f14",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/18.20.5/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/nova-file-manager/nova-file-manager/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"oneduo",GRADLE_HOME:"/usr/share/gradle-8.12",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"113685820",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu22",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/nova-file-manager/nova-file-manager",SYSTEMD_EXEC_PID:"605",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250105.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.10/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.4/x64",JOURNAL_STREAM:"8:19651",GITHUB_WORKFLOW:"Update Assets",_:"/opt/hostedtoolcache/node/18.20.5/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/18.20.5/x64",npm_config_npm_version:"10.8.2",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"12678171174",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"ef07c4c3c7035eecc91a563bbcc42ce64816e8a1",GITHUB_BASE_REF:"",ImageOS:"ubuntu22",GITHUB_WORKFLOW_REF:"oneduo/nova-file-manager/.github/workflows/update-assets.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/nova-file-manager/nova-file-manager/node_modules/.bin:/home/runner/work/nova-file-manager/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/nova-file-manager/nova-file-manager/node_modules/.bin:/home/runner/work/nova-file-manager/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_7d0c5ee4-463b-4122-b3c3-68dc5015064c",INVOCATION_ID:"db736f8e4407420d9d772be88c4fa0db",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/18.20.5/x64/bin/node",npm_package_name:"nova-file-manager",GITHUB_ACTION:"__run",GITHUB_RUN_NUMBER:"708",GITHUB_TRIGGERING_ACTOR:"mikaelpopowicz",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 17",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"oneduo/nova-file-manager",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"505375003",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"0.8.0",npm_lifecycle_event:"build",GITHUB_REF_PROTECTED:"false",GITHUB_WORKSPACE:"/home/runner/work/nova-file-manager/nova-file-manager",ACCEPT_EULA:"Y",GITHUB_JOB:"update",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"ef07c4c3c7035eecc91a563bbcc42ce64816e8a1",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"mikaelpopowicz",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",LEIN_HOME:"/usr/local/lib/lein",npm_config_globalconfig:"/opt/hostedtoolcache/node/18.20.5/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_8df45352-2442-42b9-bd08-59b02c7e4f14",JAVA_HOME:"/usr/lib/jvm/temurin-11-jdk-amd64",PWD:"/home/runner/work/nova-file-manager/nova-file-manager",GITHUB_ACTOR_ID:"5689944",RUNNER_WORKSPACE:"/home/runner/work/nova-file-manager",npm_execpath:"/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",LEIN_JAR:"/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_8df45352-2442-42b9-bd08-59b02c7e4f14",npm_config_global_prefix:"/opt/hostedtoolcache/node/18.20.5/x64",TAILWIND_MODE:"build",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_8df45352-2442-42b9-bd08-59b02c7e4f14",INIT_CWD:"/home/runner/work/nova-file-manager/nova-file-manager",EDITOR:"vi",NODE_ENV:"production"};let dl;const Qa=e=>dl=e,ul=Symbol();function es(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var aa;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(aa||(aa={}));function Wf(){const e=o.effectScope(!0),t=e.run(()=>o.ref({}));let n=[],a=[];const r=o.markRaw({install(i){Qa(r),r._a=i,i.provide(ul,r),i.config.globalProperties.$pinia=r,a.forEach(s=>n.push(s)),a=[]},use(i){return!this._a&&!oa?a.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const fl=()=>{};function pl(e,t,n,a=fl){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),a())};return!n&&o.getCurrentScope()&&o.onScopeDispose(r),r}function wo(e,...t){e.slice().forEach(n=>{n(...t)})}function ts(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,a)=>e.set(a,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const a=t[n],r=e[n];es(r)&&es(a)&&e.hasOwnProperty(n)&&!o.isRef(a)&&!o.isReactive(a)?e[n]=ts(r,a):e[n]=a}return e}const Kf=Symbol();function Xf(e){return!es(e)||!e.hasOwnProperty(Kf)}const{assign:xn}=Object;function Yf(e){return!!(o.isRef(e)&&e.effect)}function Jf(e,t,n,a){const{state:r,actions:i,getters:s}=t,l=n.state.value[e];let c;function d(){!l&&cl.NODE_ENV==="production"&&(n.state.value[e]=r?r():{});const f=o.toRefs(n.state.value[e]);return xn(f,i,Object.keys(s||{}).reduce((p,h)=>(p[h]=o.markRaw(o.computed(()=>{Qa(n);const v=n._s.get(e);return s[h].call(v,v)})),p),{}))}return c=hl(e,d,t,n,a,!0),c}function hl(e,t,n={},a,r,i){let s;const l=xn({actions:{}},n),c={deep:!0};let d,f,p=o.markRaw([]),h=o.markRaw([]),v;const u=a.state.value[e];!i&&!u&&cl.NODE_ENV==="production"&&(a.state.value[e]={}),o.ref({});let m;function y(I){let _;d=f=!1,typeof I=="function"?(I(a.state.value[e]),_={type:aa.patchFunction,storeId:e,events:v}):(ts(a.state.value[e],I),_={type:aa.patchObject,payload:I,storeId:e,events:v});const A=m=Symbol();o.nextTick().then(()=>{m===A&&(d=!0)}),f=!0,wo(p,_,a.state.value[e])}const b=i?function(){const{state:_}=n,A=_?_():{};this.$patch(D=>{xn(D,A)})}:fl;function g(){s.stop(),p=[],h=[],a._s.delete(e)}function T(I,_){return function(){Qa(a);const A=Array.from(arguments),D=[],M=[];function K(H){D.push(H)}function B(H){M.push(H)}wo(h,{args:A,name:I,store:S,after:K,onError:B});let j;try{j=_.apply(this&&this.$id===e?this:S,A)}catch(H){throw wo(M,H),H}return j instanceof Promise?j.then(H=>(wo(D,H),H)).catch(H=>(wo(M,H),Promise.reject(H))):(wo(D,j),j)}}const O={_p:a,$id:e,$onAction:pl.bind(null,h),$patch:y,$reset:b,$subscribe(I,_={}){const A=pl(p,I,_.detached,()=>D()),D=s.run(()=>o.watch(()=>a.state.value[e],M=>{(_.flush==="sync"?f:d)&&I({storeId:e,type:aa.direct,events:v},M)},xn({},c,_)));return A},$dispose:g},S=o.reactive(O);a._s.set(e,S);const N=a._e.run(()=>(s=o.effectScope(),s.run(()=>t())));for(const I in N){const _=N[I];if(o.isRef(_)&&!Yf(_)||o.isReactive(_))i||(u&&Xf(_)&&(o.isRef(_)?_.value=u[I]:ts(_,u[I])),a.state.value[e][I]=_);else if(typeof _=="function"){const A=T(I,_);N[I]=A,l.actions[I]=_}}return xn(S,N),xn(o.toRaw(S),N),Object.defineProperty(S,"$state",{get:()=>a.state.value[e],set:I=>{y(_=>{xn(_,I)})}}),a._p.forEach(I=>{xn(S,s.run(()=>I({store:S,app:a._a,pinia:a,options:l})))}),u&&i&&n.hydrate&&n.hydrate(S.$state,u),d=!0,f=!0,S}function ns(e,t,n){let a,r;const i=typeof t=="function";typeof e=="string"?(a=e,r=i?n:t):(r=e,a=e.id);function s(l,c){const d=o.getCurrentInstance();return l=l||d&&o.inject(ul,null),l&&Qa(l),l=dl,l._s.has(a)||(i?hl(a,t,r,l):Jf(a,r,l)),l._s.get(a)}return s.$id=a,s}function Qf(e,t){return Array.isArray(t)?t.reduce((n,a)=>(n[a]=function(){return e(this.$pinia)[a]},n),{}):Object.keys(t).reduce((n,a)=>(n[a]=function(){const r=e(this.$pinia),i=t[a];return typeof i=="function"?i.call(this,r):r[i]},n),{})}function Zf(e,t){return Array.isArray(t)?t.reduce((n,a)=>(n[a]=function(...r){return e(this.$pinia)[a](...r)},n),{}):Object.keys(t).reduce((n,a)=>(n[a]=function(...r){return e(this.$pinia)[t[a]](...r)},n),{})}function qf(e){{e=o.toRaw(e);const t={};for(const n in e){const a=e[n];(o.isRef(a)||o.isReactive(a))&&(t[n]=o.toRef(e,n))}return t}}function $f(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"})])}function ep(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 6H5.25A2.25 2.25 0 003 8.25v10.5A2.25 2.25 0 005.25 21h10.5A2.25 2.25 0 0018 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})])}function Za(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12.75l6 6 9-13.5"})])}function ml(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})])}function os(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})])}function tp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 00-3.375-3.375h-1.5a1.125 1.125 0 01-1.125-1.125v-1.5A3.375 3.375 0 006.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0015 2.25h-1.5a2.251 2.251 0 00-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 00-9-9z"})])}function np(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9.75v6.75m0 0l-3-3m3 3l3-3m-8.25 6a4.5 4.5 0 01-1.41-8.775 5.25 5.25 0 0110.233-2.33 3 3 0 013.758 3.848A3.752 3.752 0 0118 19.5H6.75z"})])}function as(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 16.5V9.75m0 0l3 3m-3-3l-3 3M6.75 19.5a4.5 4.5 0 01-1.41-8.775 5.25 5.25 0 0110.233-2.33 3 3 0 013.758 3.848A3.752 3.752 0 0118 19.5H6.75z"})])}function op(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 15a4.5 4.5 0 004.5 4.5H18a3.75 3.75 0 001.332-7.257 3 3 0 00-3.758-3.848 5.25 5.25 0 00-10.233 2.33A4.502 4.502 0 002.25 15z"})])}function ra(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})])}function vl(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"})])}function gl(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})])}function ap(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 10.5v6m3-3H9m4.06-7.19l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"})])}function rs(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"})])}function rp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})])}function sp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.712 4.33a9.027 9.027 0 011.652 1.306c.51.51.944 1.064 1.306 1.652M16.712 4.33l-3.448 4.138m3.448-4.138a9.014 9.014 0 00-9.424 0M19.67 7.288l-4.138 3.448m4.138-3.448a9.014 9.014 0 010 9.424m-4.138-5.976a3.736 3.736 0 00-.88-1.388 3.737 3.737 0 00-1.388-.88m2.268 2.268a3.765 3.765 0 010 2.528m-2.268-4.796a3.765 3.765 0 00-2.528 0m4.796 4.796c-.181.506-.475.982-.88 1.388a3.736 3.736 0 01-1.388.88m2.268-2.268l4.138 3.448m0 0a9.027 9.027 0 01-1.306 1.652c-.51.51-1.064.944-1.652 1.306m0 0l-3.448-4.138m3.448 4.138a9.014 9.014 0 01-9.424 0m5.976-4.138a3.765 3.765 0 01-2.528 0m0 0a3.736 3.736 0 01-1.388-.88 3.737 3.737 0 01-.88-1.388m2.268 2.268L7.288 19.67m0 0a9.024 9.024 0 01-1.652-1.306 9.027 9.027 0 01-1.306-1.652m0 0l4.138-3.448M4.33 16.712a9.014 9.014 0 010-9.424m4.138 5.976a3.765 3.765 0 010-2.528m0 0c.181-.506.475-.982.88-1.388a3.736 3.736 0 011.388-.88m-2.268 2.268L4.33 7.288m6.406 1.18L7.288 4.33m0 0a9.024 9.024 0 00-1.652 1.306A9.025 9.025 0 004.33 7.288"})])}function ip(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})])}function lp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"})])}function cp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 12h16.5m-16.5 3.75h16.5M3.75 19.5h16.5M5.625 4.5h12.75a1.875 1.875 0 010 3.75H5.625a1.875 1.875 0 010-3.75z"})])}function dp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6zM3.75 15.75A2.25 2.25 0 016 13.5h2.25a2.25 2.25 0 012.25 2.25V18a2.25 2.25 0 01-2.25 2.25H6A2.25 2.25 0 013.75 18v-2.25zM13.5 6a2.25 2.25 0 012.25-2.25H18A2.25 2.25 0 0120.25 6v2.25A2.25 2.25 0 0118 10.5h-2.25a2.25 2.25 0 01-2.25-2.25V6zM13.5 15.75a2.25 2.25 0 012.25-2.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-2.25A2.25 2.25 0 0113.5 18v-2.25z"})])}function bl(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"})])}function ss(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])}function yl(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z","clip-rule":"evenodd"})])}function up(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z","clip-rule":"evenodd"})])}function fp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M12.53 16.28a.75.75 0 01-1.06 0l-7.5-7.5a.75.75 0 011.06-1.06L12 14.69l6.97-6.97a.75.75 0 111.06 1.06l-7.5 7.5z","clip-rule":"evenodd"})])}function pp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M7.72 12.53a.75.75 0 010-1.06l7.5-7.5a.75.75 0 111.06 1.06L9.31 12l6.97 6.97a.75.75 0 11-1.06 1.06l-7.5-7.5z","clip-rule":"evenodd"})])}function hp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M16.28 11.47a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 01-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 011.06-1.06l7.5 7.5z","clip-rule":"evenodd"})])}function mp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.5 12a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm6 0a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm6 0a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0z","clip-rule":"evenodd"})])}function vp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M10.5 6a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm0 6a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm0 6a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0z","clip-rule":"evenodd"})])}function El(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"})])}function gp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"})])}function bp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.5 5.653c0-1.426 1.529-2.33 2.779-1.643l11.54 6.348c1.295.712 1.295 2.573 0 3.285L7.28 19.991c-1.25.687-2.779-.217-2.779-1.643V5.653z","clip-rule":"evenodd"})])}function yp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zm-1.72 6.97a.75.75 0 10-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 101.06 1.06L12 13.06l1.72 1.72a.75.75 0 101.06-1.06L13.06 12l1.72-1.72a.75.75 0 10-1.06-1.06L12 10.94l-1.72-1.72z","clip-rule":"evenodd"})])}const is=(e,t)=>{const n=e.__vccOpts||e;for(const[a,r]of t)n[a]=r;return n},Ep={},wp={class:"text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",fill:"none",viewBox:"0 0 100 101",xmlns:"http://www.w3.org/2000/svg"},xp=[o.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"},null,-1),o.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"},null,-1)];function Sp(e,t){return o.openBlock(),o.createElementBlock("svg",wp,xp)}const xo=is(Ep,[["render",Sp]]),wl=o.defineComponent({__name:"ImageLoader",props:{src:{},alt:{},isThumbnail:{type:Boolean,default:!0}},emits:["missing"],setup(e,{emit:t}){const n=e,a=t,r=o.ref(!0),i=o.ref(!1),s=o.ref();return o.onMounted(()=>{new Promise((l,c)=>{let d=new Image;d.addEventListener("load",()=>l(d)),d.addEventListener("error",f=>c(f)),d.src=n.src}).then(l=>{l.className="pointer-events-none w-full h-full",l.classList.add(n.isThumbnail?"object-cover":"object-contain"),l.draggable=!1,s.value?.appendChild(l)}).catch(()=>{i.value=!0,a("missing",!0)}).finally(()=>{r.value=!1})}),(l,c)=>(o.openBlock(),o.createElementBlock("div",{class:"flex justify-center items-center h-full max-h-[80vh]",ref_key:"card",ref:s},[r.value?(o.openBlock(),o.createBlock(xo,{key:0,class:"w-6 h-6"})):o.createCommentVNode("",!0)],512))}}),Op=["title"],Tp={key:0,class:"absolute z-40 inset-0 flex justify-center items-center w-full h-full"},Cp={key:1,class:"absolute inset-0 w-full h-full bg-gray-100/50 dark:bg-gray-800/50"},Np={key:2,class:"absolute inset-0 flex flex-row items-center justify-center text-sm font-bold text-gray-600 dark:text-gray-100"},kp={class:"m-auto z-20 flex h-full items-center justify-center select-none"},Ip={key:0,class:"m-auto flex h-full w-full items-center justify-center bg-gray-50 dark:bg-gray-900 text-red-500"},_p={key:0,class:"m-auto flex h-full w-full items-center justify-center bg-gray-50 dark:bg-gray-900 text-gray-500 dark:text-gray-600"},Ap={class:"pointer-events-none w-full h-full object-cover"},Dp=["src"],Rp={key:0,class:"absolute m-auto flex items-center justify-center bg-transparent"},Pp={key:3,class:"absolute right-1 top-1"},Bp=["title"],Mp={key:1,class:"text-sm text-red-500 font-semibold text-left break-all"},Fp={class:"gap-x-0.5 inline-flex flex-wrap items-center text-xs pointer-events-none block font-medium text-gray-500 text-left break-all"},Lp={key:0},jp={key:1,class:"ml-0.5"},Vp={key:2,class:"absolute top-1 right-1"},ls=o.defineComponent({__name:"File",props:{file:{},isUploading:{type:Boolean},isUploaded:{type:Boolean},uploadRatio:{},selected:{type:Boolean,default:!1},onDeselect:{},singleDisk:{type:Boolean},fieldMode:{type:Boolean}},setup(e){const t=e,n=o.computed(()=>t.file.type==="image"),a=o.computed(()=>t.file.type==="video"),r=o.computed(()=>t.file.type!=="image"&&t.file.type!=="video"),i=o.computed(()=>!t.file.exists),s=o.computed(()=>i.value?t.file.path:t.file.name);return(l,c)=>(o.openBlock(),o.createElementBlock("button",{class:"relative cursor-pointer group focus-visible:outline-none flex flex-col items-start",title:s.value},[o.createElementVNode("div",{class:o.normalizeClass(["relative block aspect-square w-full h-full overflow-hidden rounded-lg hover:shadow-md hover:opacity-75 border border-gray-200/50 dark:border-gray-700/50 text-left","group-focus-visible:outline group-focus-visible:outline-2 group-focus-visible:outline-black dark:group-focus-visible:outline-white",l.selected?"outline outline-2 outline-blue-500 group-focus-visible:outline-blue-500":""])},[l.isUploading?(o.openBlock(),o.createElementBlock("div",Tp,[l.isUploaded===null?(o.openBlock(),o.createBlock(xo,{key:0,class:"w-16 h-16"})):l.isUploaded===!1?(o.openBlock(),o.createBlock(o.unref(El),{key:1,class:"w-16 h-16 text-red-500"})):l.isUploaded===!0?(o.openBlock(),o.createBlock(o.unref(yl),{key:2,class:"w-16 h-16 text-green-500"})):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),l.isUploading?(o.openBlock(),o.createElementBlock("div",Cp)):o.createCommentVNode("",!0),l.isUploading&&l.isUploaded===null?(o.openBlock(),o.createElementBlock("div",Np,[o.createElementVNode("span",null,o.toDisplayString(l.uploadRatio)+"%",1)])):o.createCommentVNode("",!0),o.createElementVNode("div",kp,[i.value&&!l.isUploading?(o.openBlock(),o.createElementBlock("div",Ip,[o.createVNode(o.unref(gp),{class:"w-16 h-16"})])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[r.value?(o.openBlock(),o.createElementBlock("div",_p,[l.isUploading?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(ra),{key:0,class:"w-16 h-16"}))])):o.createCommentVNode("",!0),n.value?(o.openBlock(),o.createBlock(wl,{key:1,src:l.file.url,alt:l.file.name},null,8,["src","alt"])):o.createCommentVNode("",!0),a.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createElementVNode("video",Ap,[o.createElementVNode("source",{src:l.file.url},null,8,Dp),o.createTextVNode(" "+o.toDisplayString(l.__("Sorry, your browser doesn't support embedded videos.")),1)]),l.isUploading?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Rp,[o.createVNode(o.unref(bp),{class:"h-16 w-16 text-white/60"})]))],64)):o.createCommentVNode("",!0)],64))]),l.onDeselect?(o.openBlock(),o.createElementBlock("div",Pp,[l.onDeselect?(o.openBlock(),o.createElementBlock("button",{key:0,onClick:c[0]||(c[0]=d=>l.onDeselect(l.file)),class:"text-red-500 hover:text-red-600 rounded-full"},[o.createVNode(o.unref(yp),{class:"h-6 w-6"})])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],2),!i.value||l.isUploading?(o.openBlock(),o.createElementBlock("p",{key:0,class:o.normalizeClass(["pointer-events-none mt-2 block truncate font-medium text-gray-900 dark:text-gray-50 text-left w-full",l.isUploading||l.onDeselect?"text-xs":"text-sm"]),title:l.isUploading?l.file.name:s.value},o.toDisplayString(l.isUploading?l.file.name:s.value),11,Bp)):o.createCommentVNode("",!0),i.value&&!l.isUploading?(o.openBlock(),o.createElementBlock("p",Mp,o.toDisplayString(l.__("NovaFileManager.fileMissing",{path:l.file.path})),1)):o.createCommentVNode("",!0),o.createElementVNode("div",Fp,[l.file.size?(o.openBlock(),o.createElementBlock("span",Lp,o.toDisplayString(l.file.size),1)):o.createCommentVNode("",!0),l.fieldMode&&!l.singleDisk&&l.file.disk?.length>0?(o.openBlock(),o.createElementBlock("span",jp,"ยท "+o.toDisplayString(l.file.disk),1)):o.createCommentVNode("",!0)]),l.selected?(o.openBlock(),o.createElementBlock("span",Vp,[o.createVNode(o.unref(yl),{class:"h-5 w-5 text-blue-500","aria-hidden":"true"})])):o.createCommentVNode("",!0)],8,Op))}});var So=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Up(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function a(){return this instanceof a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}),n}var Hp=Math.ceil,zp=Math.max;function Gp(e,t,n,a){for(var r=-1,i=zp(Hp((t-e)/(n||1)),0),s=Array(i);i--;)s[a?i:++r]=e,e+=n;return s}var Wp=Gp;function Kp(e,t){return e===t||e!==e&&t!==t}var cs=Kp,Xp=typeof So=="object"&&So&&So.Object===Object&&So,xl=Xp,Yp=xl,Jp=typeof self=="object"&&self&&self.Object===Object&&self,Qp=Yp||Jp||Function("return this")(),Vt=Qp,Zp=Vt,qp=Zp.Symbol,sa=qp,Sl=sa,Ol=Object.prototype,$p=Ol.hasOwnProperty,eh=Ol.toString,ia=Sl?Sl.toStringTag:void 0;function th(e){var t=$p.call(e,ia),n=e[ia];try{e[ia]=void 0;var a=!0}catch{}var r=eh.call(e);return a&&(t?e[ia]=n:delete e[ia]),r}var nh=th,oh=Object.prototype,ah=oh.toString;function rh(e){return ah.call(e)}var sh=rh,Tl=sa,ih=nh,lh=sh,ch="[object Null]",dh="[object Undefined]",Cl=Tl?Tl.toStringTag:void 0;function uh(e){return e==null?e===void 0?dh:ch:Cl&&Cl in Object(e)?ih(e):lh(e)}var Oo=uh;function fh(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var On=fh,ph=Oo,hh=On,mh="[object AsyncFunction]",vh="[object Function]",gh="[object GeneratorFunction]",bh="[object Proxy]";function yh(e){if(!hh(e))return!1;var t=ph(e);return t==vh||t==gh||t==mh||t==bh}var Nl=yh,Eh=9007199254740991;function wh(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Eh}var kl=wh,xh=Nl,Sh=kl;function Oh(e){return e!=null&&Sh(e.length)&&!xh(e)}var ds=Oh,Th=9007199254740991,Ch=/^(?:0|[1-9]\d*)$/;function Nh(e,t){var n=typeof e;return t=t??Th,!!t&&(n=="number"||n!="symbol"&&Ch.test(e))&&e>-1&&e%1==0&&e0){var _=!1;for(var A in b.fileType){var D="."+b.fileType[A];if(I.toLowerCase().indexOf(D.toLowerCase(),I.length-D.length)!==-1){_=!0;break}}if(!_)return b.fileTypeErrorCallback(N,y++),!1}if(typeof b.minFileSize<"u"&&N.sizeb.maxFileSize)return b.maxFileSizeErrorCallback(N,y++),!1;function M(B){a.getFromUniqueIdentifier(B)?T.push(N):function(){N.uniqueIdentifier=B;var j=new h(a,N,B);a.files.push(j),g.push(j),j.container=typeof m<"u"?m.srcElement:null,window.setTimeout(function(){a.fire("fileAdded",j,m)},0)}(),S()}var K=r.generateUniqueIdentifier(N,m);K&&typeof K.then=="function"?K.then(function(B){M(B)},function(){S()}):M(K)})};function h(u,m,y){var b=this;b.opts={},b.getOpt=u.getOpt,b._prevProgress=0,b.resumableObj=u,b.file=m,b.fileName=m.fileName||m.name,b.size=m.size,b.relativePath=m.relativePath||m.webkitRelativePath||b.fileName,b.uniqueIdentifier=y,b._pause=!1,b.container="";var g=y!==void 0,T=function(O,S){switch(O){case"progress":b.resumableObj.fire("fileProgress",b,S);break;case"error":b.abort(),g=!0,b.chunks=[],b.resumableObj.fire("fileError",b,S);break;case"success":if(g)return;b.resumableObj.fire("fileProgress",b),b.isComplete()&&b.resumableObj.fire("fileSuccess",b,S);break;case"retry":b.resumableObj.fire("fileRetry",b);break}};return b.chunks=[],b.abort=function(){var O=0;r.each(b.chunks,function(S){S.status()=="uploading"&&(S.abort(),O++)}),O>0&&b.resumableObj.fire("fileProgress",b)},b.cancel=function(){var O=b.chunks;b.chunks=[],r.each(O,function(S){S.status()=="uploading"&&(S.abort(),b.resumableObj.uploadNextChunk())}),b.resumableObj.removeFile(b),b.resumableObj.fire("fileProgress",b)},b.retry=function(){b.bootstrap();var O=!1;b.resumableObj.on("chunkingComplete",function(){O||b.resumableObj.upload(),O=!0})},b.bootstrap=function(){b.abort(),g=!1,b.chunks=[],b._prevProgress=0;for(var O=b.getOpt("forceChunkSize")?Math.ceil:Math.floor,S=Math.max(O(b.file.size/b.getOpt("chunkSize")),1),N=0;N.99999?1:O,O=Math.max(b._prevProgress,O),b._prevProgress=O,O},b.isUploading=function(){var O=!1;return r.each(b.chunks,function(S){if(S.status()=="uploading")return O=!0,!1}),O},b.isComplete=function(){var O=!1;return r.each(b.chunks,function(S){var N=S.status();if(N=="pending"||N=="uploading"||S.preprocessState===1)return O=!0,!1}),!O},b.pause=function(O){typeof O>"u"?b._pause=!b._pause:b._pause=O},b.isPaused=function(){return b._pause},b.resumableObj.fire("chunkingStart",b),b.bootstrap(),this}function v(u,m,y,b){var g=this;g.opts={},g.getOpt=u.getOpt,g.resumableObj=u,g.fileObj=m,g.fileObjSize=m.size,g.fileObjType=m.file.type,g.offset=y,g.callback=b,g.lastProgressCallback=new Date,g.tested=!1,g.retries=0,g.pendingRetry=!1,g.preprocessState=0;var T=g.getOpt("chunkSize");return g.loaded=0,g.startByte=g.offset*T,g.endByte=Math.min(g.fileObjSize,(g.offset+1)*T),g.fileObjSize-g.endByteg.getOpt("throttleProgressCallbacks")*1e3&&(g.callback("progress"),g.lastProgressCallback=new Date),g.loaded=Q.loaded||0},!1),g.loaded=0,g.pendingRetry=!1,g.callback("progress");var S=function(Q){var ne=g.status();if(ne=="success"||ne=="error")g.callback(ne,g.message()),g.resumableObj.uploadNextChunk();else{g.callback("retry",g.message()),g.abort(),g.retries++;var we=g.getOpt("chunkRetryInterval");we!==void 0?(g.pendingRetry=!0,setTimeout(g.send,we)):g.send()}};g.xhr.addEventListener("load",S,!1),g.xhr.addEventListener("error",S,!1),g.xhr.addEventListener("timeout",S,!1);var N=[["chunkNumberParameterName",g.offset+1],["chunkSizeParameterName",g.getOpt("chunkSize")],["currentChunkSizeParameterName",g.endByte-g.startByte],["totalSizeParameterName",g.fileObjSize],["typeParameterName",g.fileObjType],["identifierParameterName",g.fileObj.uniqueIdentifier],["fileNameParameterName",g.fileObj.fileName],["relativePathParameterName",g.fileObj.relativePath],["totalChunksParameterName",g.fileObj.chunks.length]].filter(function(Q){return g.getOpt(Q[0])}).reduce(function(Q,ne){return Q[g.getOpt(ne[0])]=ne[1],Q},{}),I=g.getOpt("query");typeof I=="function"&&(I=I(g.fileObj,g)),r.each(I,function(Q,ne){N[Q]=ne});var _=g.fileObj.file.slice?"slice":g.fileObj.file.mozSlice?"mozSlice":g.fileObj.file.webkitSlice?"webkitSlice":"slice",A=g.fileObj.file[_](g.startByte,g.endByte,g.getOpt("setChunkTypeFromFile")?g.fileObj.file.type:""),D=null,M=[],K=g.getOpt("parameterNamespace");if(g.getOpt("method")==="octet")D=A,r.each(N,function(Q,ne){M.push([encodeURIComponent(K+Q),encodeURIComponent(ne)].join("="))});else if(D=new FormData,r.each(N,function(Q,ne){D.append(K+Q,ne),M.push([encodeURIComponent(K+Q),encodeURIComponent(ne)].join("="))}),g.getOpt("chunkFormat")=="blob")D.append(K+g.getOpt("fileParameterName"),A,g.fileObj.fileName);else if(g.getOpt("chunkFormat")=="base64"){var B=new FileReader;B.onload=function(Q){D.append(K+g.getOpt("fileParameterName"),B.result),g.xhr.send(D)},B.readAsDataURL(A)}var j=r.getTarget("upload",M),H=g.getOpt("uploadMethod");g.xhr.open(H,j),g.getOpt("method")==="octet"&&g.xhr.setRequestHeader("Content-Type","application/octet-stream"),g.xhr.timeout=g.getOpt("xhrTimeout"),g.xhr.withCredentials=g.getOpt("withCredentials");var W=g.getOpt("headers");typeof W=="function"&&(W=W(g.fileObj,g)),r.each(W,function(Q,ne){g.xhr.setRequestHeader(Q,ne)}),g.getOpt("chunkFormat")=="blob"&&g.xhr.send(D)},g.abort=function(){g.xhr&&g.xhr.abort(),g.xhr=null},g.status=function(){return g.pendingRetry?"uploading":g.xhr?g.xhr.readyState<4?"uploading":g.xhr.status==200||g.xhr.status==201?"success":r.contains(g.getOpt("permanentErrors"),g.xhr.status)||g.retries>=g.getOpt("maxChunkRetries")?"error":(g.abort(),"pending"):"pending"},g.message=function(){return g.xhr?g.xhr.responseText:""},g.progress=function(O){typeof O>"u"&&(O=!1);var S=O?(g.endByte-g.startByte)/g.fileObjSize:1;if(g.pendingRetry)return 0;(!g.xhr||!g.xhr.status)&&(S*=.95);var N=g.status();switch(N){case"success":case"error":return 1*S;case"pending":return 0*S;default:return g.loaded/(g.endByte-g.startByte)*S}},this}return a.uploadNextChunk=function(){var u=!1;if(a.getOpt("prioritizeFirstAndLastChunk")&&(r.each(a.files,function(y){if(y.chunks.length&&y.chunks[0].status()=="pending"&&y.chunks[0].preprocessState===0)return y.chunks[0].send(),u=!0,!1;if(y.chunks.length>1&&y.chunks[y.chunks.length-1].status()=="pending"&&y.chunks[y.chunks.length-1].preprocessState===0)return y.chunks[y.chunks.length-1].send(),u=!0,!1}),u)||(r.each(a.files,function(y){if(y.isPaused()===!1&&r.each(y.chunks,function(b){if(b.status()=="pending"&&b.preprocessState===0)return b.send(),u=!0,!1}),u)return!1}),u))return!0;var m=!1;return r.each(a.files,function(y){if(!y.isComplete())return m=!0,!1}),m||a.fire("complete"),!1},a.assignBrowse=function(u,m){typeof u.length>"u"&&(u=[u]),r.each(u,function(y){var b;y.tagName==="INPUT"&&y.type==="file"?b=y:(b=document.createElement("input"),b.setAttribute("type","file"),b.style.display="none",y.addEventListener("click",function(){b.style.opacity=0,b.style.display="block",b.focus(),b.click(),b.style.display="none"},!1),y.appendChild(b));var g=a.getOpt("maxFiles");typeof g>"u"||g!=1?b.setAttribute("multiple","multiple"):b.removeAttribute("multiple"),m?b.setAttribute("webkitdirectory","webkitdirectory"):b.removeAttribute("webkitdirectory");var T=a.getOpt("fileType");typeof T<"u"&&T.length>=1?b.setAttribute("accept",T.map(function(O){return"."+O}).join(",")):b.removeAttribute("accept"),b.addEventListener("change",function(O){p(O.target.files,O);var S=a.getOpt("clearInput");S&&(O.target.value="")},!1)})},a.assignDrop=function(u){typeof u.length>"u"&&(u=[u]),r.each(u,function(m){m.addEventListener("dragover",s,!1),m.addEventListener("dragenter",s,!1),m.addEventListener("drop",i,!1)})},a.unAssignDrop=function(u){typeof u.length>"u"&&(u=[u]),r.each(u,function(m){m.removeEventListener("dragover",s),m.removeEventListener("dragenter",s),m.removeEventListener("drop",i)})},a.isUploading=function(){var u=!1;return r.each(a.files,function(m){if(m.isUploading())return u=!0,!1}),u},a.upload=function(){if(!a.isUploading()){a.fire("uploadStart");for(var u=1;u<=a.getOpt("simultaneousUploads");u++)a.uploadNextChunk()}},a.pause=function(){r.each(a.files,function(u){u.abort()}),a.fire("pause")},a.cancel=function(){a.fire("beforeCancel");for(var u=a.files.length-1;u>=0;u--)a.files[u].cancel();a.fire("cancel")},a.progress=function(){var u=0,m=0;return r.each(a.files,function(y){u+=y.progress()*y.size,m+=y.size}),m>0?u/m:0},a.addFile=function(u,m){p([u],m)},a.addFiles=function(u,m){p(u,m)},a.removeFile=function(u){for(var m=a.files.length-1;m>=0;m--)a.files[m]===u&&a.files.splice(m,1)},a.getFromUniqueIdentifier=function(u){var m=!1;return r.each(a.files,function(y){y.uniqueIdentifier==u&&(m=y)}),m},a.getSize=function(){var u=0;return r.each(a.files,function(m){u+=m.size}),u},a.handleDropEvent=function(u){i(u)},a.handleChangeEvent=function(u){p(u.target.files,u),u.target.value=""},a.updateQuery=function(u){a.opts.query=u},this};e.exports=t})()})(Pl);var dm=Pl.exports;const um=Sn(dm),la="queue",ps="preview",fm="upload",Tn="upload-crop",hs="browser",pm="folder",hm="KeyK",ms={folders:"#",files:">",help:"?"},mm=["setDisk","setPath","setPerPage","setPage","setSearch","upload","renameFile","deleteFiles","unzipFile","createFolder","renameFolder","deleteFolder"],Qt={CREATE_FOLDER:"createFolder",RENAME_FOLDER:"renameFolder",DELETE_FOLDER:"deleteFolder",RENAME_FILE:"renameFile",DELETE_FILE:"deleteFile",UNZIP_FILE:"unzipFile"},Ut={CREATE_FOLDER:"createFolder",DELETE_FILES:"deleteFiles",DELETE_FOLDER:"deleteFolder",RENAME_FILE:"renameFile",RENAME_FOLDER:"renameFolder",UNZIP_FILE:"unzipFile"},ln={CREATE_FOLDER:"/folders/create",DELETE_FILE:"/files/delete",DELETE_FOLDER:"/folders/delete",DISKS:"/disks",DOWNLOAD_FILE:"/files/download",RENAME_FILE:"/files/rename",RENAME_FOLDER:"/folders/rename",UNZIP_FILE:"/files/unzip",UPLOAD:"/nova-vendor/nova-file-manager/files/upload"};async function To({operation:e,endpoint:t,data:n,modal:a,callback:r}){const i=Re(),s=i.post,l=i.setError,c=i.resetError,d=i.closeModal;try{i.loadingOperation=e;const f=await s({path:t,data:n});c(),window.Nova.success(f.data.message),r&&r(f),a&&d({name:a})}catch(f){i.loadingOperation=void 0;const p=f.response?.data;window.Nova.error(p?.message||"An error occurred"),l({attribute:e,bag:p})}}function Bl(e,t){return function(){return e.apply(t,arguments)}}const{toString:vm}=Object.prototype,{getPrototypeOf:vs}=Object,$a=(e=>t=>{const n=vm.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Zt=e=>(e=e.toLowerCase(),t=>$a(t)===e),er=e=>t=>typeof t===e,{isArray:Co}=Array,ca=er("undefined");function gm(e){return e!==null&&!ca(e)&&e.constructor!==null&&!ca(e.constructor)&&It(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ml=Zt("ArrayBuffer");function bm(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ml(e.buffer),t}const ym=er("string"),It=er("function"),Fl=er("number"),tr=e=>e!==null&&typeof e=="object",Em=e=>e===!0||e===!1,nr=e=>{if($a(e)!=="object")return!1;const t=vs(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},wm=Zt("Date"),xm=Zt("File"),Sm=Zt("Blob"),Om=Zt("FileList"),Tm=e=>tr(e)&&It(e.pipe),Cm=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||It(e.append)&&((t=$a(e))==="formdata"||t==="object"&&It(e.toString)&&e.toString()==="[object FormData]"))},Nm=Zt("URLSearchParams"),km=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function da(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let a,r;if(typeof e!="object"&&(e=[e]),Co(e))for(a=0,r=e.length;a0;)if(r=n[a],t===r.toLowerCase())return r;return null}const jl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Vl=e=>!ca(e)&&e!==jl;function gs(){const{caseless:e}=Vl(this)&&this||{},t={},n=(a,r)=>{const i=e&&Ll(t,r)||r;nr(t[i])&&nr(a)?t[i]=gs(t[i],a):nr(a)?t[i]=gs({},a):Co(a)?t[i]=a.slice():t[i]=a};for(let a=0,r=arguments.length;a(da(t,(r,i)=>{n&&It(r)?e[i]=Bl(r,n):e[i]=r},{allOwnKeys:a}),e),_m=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Am=(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Dm=(e,t,n,a)=>{let r,i,s;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)s=r[i],(!a||a(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&vs(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Rm=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return a!==-1&&a===n},Pm=e=>{if(!e)return null;if(Co(e))return e;let t=e.length;if(!Fl(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Bm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&vs(Uint8Array)),Mm=(e,t)=>{const a=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=a.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},Fm=(e,t)=>{let n;const a=[];for(;(n=e.exec(t))!==null;)a.push(n);return a},Lm=Zt("HTMLFormElement"),jm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,a,r){return a.toUpperCase()+r}),Ul=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Vm=Zt("RegExp"),Hl=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};da(n,(r,i)=>{let s;(s=t(r,i,e))!==!1&&(a[i]=s||r)}),Object.defineProperties(e,a)},Um=e=>{Hl(e,(t,n)=>{if(It(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const a=e[n];if(It(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Hm=(e,t)=>{const n={},a=r=>{r.forEach(i=>{n[i]=!0})};return Co(e)?a(e):a(String(e).split(t)),n},zm=()=>{},Gm=(e,t)=>(e=+e,Number.isFinite(e)?e:t),bs="abcdefghijklmnopqrstuvwxyz",zl="0123456789",Gl={DIGIT:zl,ALPHA:bs,ALPHA_DIGIT:bs+bs.toUpperCase()+zl},Wm=(e=16,t=Gl.ALPHA_DIGIT)=>{let n="";const{length:a}=t;for(;e--;)n+=t[Math.random()*a|0];return n};function Km(e){return!!(e&&It(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Xm=e=>{const t=new Array(10),n=(a,r)=>{if(tr(a)){if(t.indexOf(a)>=0)return;if(!("toJSON"in a)){t[r]=a;const i=Co(a)?[]:{};return da(a,(s,l)=>{const c=n(s,r+1);!ca(c)&&(i[l]=c)}),t[r]=void 0,i}}return a};return n(e,0)},Ym=Zt("AsyncFunction"),X={isArray:Co,isArrayBuffer:Ml,isBuffer:gm,isFormData:Cm,isArrayBufferView:bm,isString:ym,isNumber:Fl,isBoolean:Em,isObject:tr,isPlainObject:nr,isUndefined:ca,isDate:wm,isFile:xm,isBlob:Sm,isRegExp:Vm,isFunction:It,isStream:Tm,isURLSearchParams:Nm,isTypedArray:Bm,isFileList:Om,forEach:da,merge:gs,extend:Im,trim:km,stripBOM:_m,inherits:Am,toFlatObject:Dm,kindOf:$a,kindOfTest:Zt,endsWith:Rm,toArray:Pm,forEachEntry:Mm,matchAll:Fm,isHTMLForm:Lm,hasOwnProperty:Ul,hasOwnProp:Ul,reduceDescriptors:Hl,freezeMethods:Um,toObjectSet:Hm,toCamelCase:jm,noop:zm,toFiniteNumber:Gm,findKey:Ll,global:jl,isContextDefined:Vl,ALPHABET:Gl,generateString:Wm,isSpecCompliantForm:Km,toJSONObject:Xm,isAsyncFn:Ym,isThenable:e=>e&&(tr(e)||It(e))&&It(e.then)&&It(e.catch)};function Ce(e,t,n,a,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),a&&(this.request=a),r&&(this.response=r)}X.inherits(Ce,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:X.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Wl=Ce.prototype,Kl={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Kl[e]={value:e}}),Object.defineProperties(Ce,Kl),Object.defineProperty(Wl,"isAxiosError",{value:!0}),Ce.from=(e,t,n,a,r,i)=>{const s=Object.create(Wl);return X.toFlatObject(e,s,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),Ce.call(s,e.message,t,n,a,r),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Jm=null;function ys(e){return X.isPlainObject(e)||X.isArray(e)}function Xl(e){return X.endsWith(e,"[]")?e.slice(0,-2):e}function Yl(e,t,n){return e?e.concat(t).map(function(r,i){return r=Xl(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function Qm(e){return X.isArray(e)&&!e.some(ys)}const Zm=X.toFlatObject(X,{},null,function(t){return/^is[A-Z]/.test(t)});function or(e,t,n){if(!X.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=X.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,y){return!X.isUndefined(y[m])});const a=n.metaTokens,r=n.visitor||f,i=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&X.isSpecCompliantForm(t);if(!X.isFunction(r))throw new TypeError("visitor must be a function");function d(u){if(u===null)return"";if(X.isDate(u))return u.toISOString();if(!c&&X.isBlob(u))throw new Ce("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(u)||X.isTypedArray(u)?c&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function f(u,m,y){let b=u;if(u&&!y&&typeof u=="object"){if(X.endsWith(m,"{}"))m=a?m:m.slice(0,-2),u=JSON.stringify(u);else if(X.isArray(u)&&Qm(u)||(X.isFileList(u)||X.endsWith(m,"[]"))&&(b=X.toArray(u)))return m=Xl(m),b.forEach(function(T,O){!(X.isUndefined(T)||T===null)&&t.append(s===!0?Yl([m],O,i):s===null?m:m+"[]",d(T))}),!1}return ys(u)?!0:(t.append(Yl(y,m,i),d(u)),!1)}const p=[],h=Object.assign(Zm,{defaultVisitor:f,convertValue:d,isVisitable:ys});function v(u,m){if(!X.isUndefined(u)){if(p.indexOf(u)!==-1)throw Error("Circular reference detected in "+m.join("."));p.push(u),X.forEach(u,function(b,g){(!(X.isUndefined(b)||b===null)&&r.call(t,b,X.isString(g)?g.trim():g,m,h))===!0&&v(b,m?m.concat(g):[g])}),p.pop()}}if(!X.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Jl(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function Es(e,t){this._pairs=[],e&&or(e,this,t)}const Ql=Es.prototype;Ql.append=function(t,n){this._pairs.push([t,n])},Ql.toString=function(t){const n=t?function(a){return t.call(this,a,Jl)}:Jl;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function qm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zl(e,t,n){if(!t)return e;const a=n&&n.encode||qm,r=n&&n.serialize;let i;if(r?i=r(t,n):i=X.isURLSearchParams(t)?t.toString():new Es(t,n).toString(a),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class ql{constructor(){this.handlers=[]}use(t,n,a){return this.handlers.push({fulfilled:t,rejected:n,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){X.forEach(this.handlers,function(a){a!==null&&t(a)})}}const $l={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$m={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Es,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ec=typeof window<"u"&&typeof document<"u",ev=(e=>ec&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),tv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ec,hasStandardBrowserEnv:ev,hasStandardBrowserWebWorkerEnv:tv},Symbol.toStringTag,{value:"Module"})),...$m};function nv(e,t){return or(e,new qt.classes.URLSearchParams,Object.assign({visitor:function(n,a,r,i){return qt.isNode&&X.isBuffer(n)?(this.append(a,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function ov(e){return X.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function av(e){const t={},n=Object.keys(e);let a;const r=n.length;let i;for(a=0;a=n.length;return s=!s&&X.isArray(r)?r.length:s,c?(X.hasOwnProp(r,s)?r[s]=[r[s],a]:r[s]=a,!l):((!r[s]||!X.isObject(r[s]))&&(r[s]=[]),t(n,a,r[s],i)&&X.isArray(r[s])&&(r[s]=av(r[s])),!l)}if(X.isFormData(e)&&X.isFunction(e.entries)){const n={};return X.forEachEntry(e,(a,r)=>{t(ov(a),r,n,0)}),n}return null}function rv(e,t,n){if(X.isString(e))try{return(t||JSON.parse)(e),X.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(0,JSON.stringify)(e)}const ua={transitional:$l,adapter:["xhr","http"],transformRequest:[function(t,n){const a=n.getContentType()||"",r=a.indexOf("application/json")>-1,i=X.isObject(t);if(i&&X.isHTMLForm(t)&&(t=new FormData(t)),X.isFormData(t))return r?JSON.stringify(tc(t)):t;if(X.isArrayBuffer(t)||X.isBuffer(t)||X.isStream(t)||X.isFile(t)||X.isBlob(t))return t;if(X.isArrayBufferView(t))return t.buffer;if(X.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(a.indexOf("application/x-www-form-urlencoded")>-1)return nv(t,this.formSerializer).toString();if((l=X.isFileList(t))||a.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return or(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),rv(t)):t}],transformResponse:[function(t){const n=this.transitional||ua.transitional,a=n&&n.forcedJSONParsing,r=this.responseType==="json";if(t&&X.isString(t)&&(a&&!this.responseType||r)){const s=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?Ce.from(l,Ce.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qt.classes.FormData,Blob:qt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],e=>{ua.headers[e]={}});const sv=X.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),iv=e=>{const t={};let n,a,r;return e&&e.split(` +(function(o,oa){typeof exports=="object"&&typeof module<"u"?oa(require("vue")):typeof define=="function"&&define.amd?define(["vue"],oa):(o=typeof globalThis<"u"?globalThis:o||self,oa(o.Vue))})(this,function(o){"use strict";var oa=!1,cl={GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_3146d294-8692-4e27-9f26-e034b6790067",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v18.20.5 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_3146d294-8692-4e27-9f26-e034b6790067",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/18.20.5/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/nova-file-manager/nova-file-manager/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"oneduo",GRADLE_HOME:"/usr/share/gradle-8.12",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"113685820",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu22",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/nova-file-manager/nova-file-manager",SYSTEMD_EXEC_PID:"602",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250105.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.10/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.4/x64",JOURNAL_STREAM:"8:19547",GITHUB_WORKFLOW:"Update Assets",_:"/opt/hostedtoolcache/node/18.20.5/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/18.20.5/x64",npm_config_npm_version:"10.8.2",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"12678367062",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"ff15776b270606fa2130806a97192b92cef4c9b5",GITHUB_BASE_REF:"",ImageOS:"ubuntu22",GITHUB_WORKFLOW_REF:"oneduo/nova-file-manager/.github/workflows/update-assets.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/nova-file-manager/nova-file-manager/node_modules/.bin:/home/runner/work/nova-file-manager/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/nova-file-manager/nova-file-manager/node_modules/.bin:/home/runner/work/nova-file-manager/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_f2d29651-7625-4d56-beca-0b3a5e6d1de5",INVOCATION_ID:"6ac8096a4217431f8bc56d5c0bd63cb5",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/18.20.5/x64/bin/node",npm_package_name:"nova-file-manager",GITHUB_ACTION:"__run",GITHUB_RUN_NUMBER:"710",GITHUB_TRIGGERING_ACTOR:"mikaelpopowicz",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 5",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"oneduo/nova-file-manager",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"505375003",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"0.8.0",npm_lifecycle_event:"build",GITHUB_REF_PROTECTED:"false",GITHUB_WORKSPACE:"/home/runner/work/nova-file-manager/nova-file-manager",ACCEPT_EULA:"Y",GITHUB_JOB:"update",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"ff15776b270606fa2130806a97192b92cef4c9b5",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"mikaelpopowicz",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",LEIN_HOME:"/usr/local/lib/lein",npm_config_globalconfig:"/opt/hostedtoolcache/node/18.20.5/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_3146d294-8692-4e27-9f26-e034b6790067",JAVA_HOME:"/usr/lib/jvm/temurin-11-jdk-amd64",PWD:"/home/runner/work/nova-file-manager/nova-file-manager",GITHUB_ACTOR_ID:"5689944",RUNNER_WORKSPACE:"/home/runner/work/nova-file-manager",npm_execpath:"/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",LEIN_JAR:"/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_3146d294-8692-4e27-9f26-e034b6790067",npm_config_global_prefix:"/opt/hostedtoolcache/node/18.20.5/x64",TAILWIND_MODE:"build",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_3146d294-8692-4e27-9f26-e034b6790067",INIT_CWD:"/home/runner/work/nova-file-manager/nova-file-manager",EDITOR:"vi",NODE_ENV:"production"};let dl;const Qa=e=>dl=e,ul=Symbol();function es(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var aa;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(aa||(aa={}));function Wf(){const e=o.effectScope(!0),t=e.run(()=>o.ref({}));let n=[],a=[];const r=o.markRaw({install(i){Qa(r),r._a=i,i.provide(ul,r),i.config.globalProperties.$pinia=r,a.forEach(s=>n.push(s)),a=[]},use(i){return!this._a&&!oa?a.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const fl=()=>{};function pl(e,t,n,a=fl){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),a())};return!n&&o.getCurrentScope()&&o.onScopeDispose(r),r}function wo(e,...t){e.slice().forEach(n=>{n(...t)})}function ts(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,a)=>e.set(a,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const a=t[n],r=e[n];es(r)&&es(a)&&e.hasOwnProperty(n)&&!o.isRef(a)&&!o.isReactive(a)?e[n]=ts(r,a):e[n]=a}return e}const Kf=Symbol();function Xf(e){return!es(e)||!e.hasOwnProperty(Kf)}const{assign:xn}=Object;function Yf(e){return!!(o.isRef(e)&&e.effect)}function Jf(e,t,n,a){const{state:r,actions:i,getters:s}=t,l=n.state.value[e];let c;function d(){!l&&cl.NODE_ENV==="production"&&(n.state.value[e]=r?r():{});const f=o.toRefs(n.state.value[e]);return xn(f,i,Object.keys(s||{}).reduce((p,h)=>(p[h]=o.markRaw(o.computed(()=>{Qa(n);const v=n._s.get(e);return s[h].call(v,v)})),p),{}))}return c=hl(e,d,t,n,a,!0),c}function hl(e,t,n={},a,r,i){let s;const l=xn({actions:{}},n),c={deep:!0};let d,f,p=o.markRaw([]),h=o.markRaw([]),v;const u=a.state.value[e];!i&&!u&&cl.NODE_ENV==="production"&&(a.state.value[e]={}),o.ref({});let m;function y(I){let _;d=f=!1,typeof I=="function"?(I(a.state.value[e]),_={type:aa.patchFunction,storeId:e,events:v}):(ts(a.state.value[e],I),_={type:aa.patchObject,payload:I,storeId:e,events:v});const A=m=Symbol();o.nextTick().then(()=>{m===A&&(d=!0)}),f=!0,wo(p,_,a.state.value[e])}const b=i?function(){const{state:_}=n,A=_?_():{};this.$patch(D=>{xn(D,A)})}:fl;function g(){s.stop(),p=[],h=[],a._s.delete(e)}function T(I,_){return function(){Qa(a);const A=Array.from(arguments),D=[],M=[];function K(H){D.push(H)}function B(H){M.push(H)}wo(h,{args:A,name:I,store:S,after:K,onError:B});let j;try{j=_.apply(this&&this.$id===e?this:S,A)}catch(H){throw wo(M,H),H}return j instanceof Promise?j.then(H=>(wo(D,H),H)).catch(H=>(wo(M,H),Promise.reject(H))):(wo(D,j),j)}}const O={_p:a,$id:e,$onAction:pl.bind(null,h),$patch:y,$reset:b,$subscribe(I,_={}){const A=pl(p,I,_.detached,()=>D()),D=s.run(()=>o.watch(()=>a.state.value[e],M=>{(_.flush==="sync"?f:d)&&I({storeId:e,type:aa.direct,events:v},M)},xn({},c,_)));return A},$dispose:g},S=o.reactive(O);a._s.set(e,S);const N=a._e.run(()=>(s=o.effectScope(),s.run(()=>t())));for(const I in N){const _=N[I];if(o.isRef(_)&&!Yf(_)||o.isReactive(_))i||(u&&Xf(_)&&(o.isRef(_)?_.value=u[I]:ts(_,u[I])),a.state.value[e][I]=_);else if(typeof _=="function"){const A=T(I,_);N[I]=A,l.actions[I]=_}}return xn(S,N),xn(o.toRaw(S),N),Object.defineProperty(S,"$state",{get:()=>a.state.value[e],set:I=>{y(_=>{xn(_,I)})}}),a._p.forEach(I=>{xn(S,s.run(()=>I({store:S,app:a._a,pinia:a,options:l})))}),u&&i&&n.hydrate&&n.hydrate(S.$state,u),d=!0,f=!0,S}function ns(e,t,n){let a,r;const i=typeof t=="function";typeof e=="string"?(a=e,r=i?n:t):(r=e,a=e.id);function s(l,c){const d=o.getCurrentInstance();return l=l||d&&o.inject(ul,null),l&&Qa(l),l=dl,l._s.has(a)||(i?hl(a,t,r,l):Jf(a,r,l)),l._s.get(a)}return s.$id=a,s}function Qf(e,t){return Array.isArray(t)?t.reduce((n,a)=>(n[a]=function(){return e(this.$pinia)[a]},n),{}):Object.keys(t).reduce((n,a)=>(n[a]=function(){const r=e(this.$pinia),i=t[a];return typeof i=="function"?i.call(this,r):r[i]},n),{})}function Zf(e,t){return Array.isArray(t)?t.reduce((n,a)=>(n[a]=function(...r){return e(this.$pinia)[a](...r)},n),{}):Object.keys(t).reduce((n,a)=>(n[a]=function(...r){return e(this.$pinia)[t[a]](...r)},n),{})}function qf(e){{e=o.toRaw(e);const t={};for(const n in e){const a=e[n];(o.isRef(a)||o.isReactive(a))&&(t[n]=o.toRef(e,n))}return t}}function $f(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"})])}function ep(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 6H5.25A2.25 2.25 0 003 8.25v10.5A2.25 2.25 0 005.25 21h10.5A2.25 2.25 0 0018 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})])}function Za(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12.75l6 6 9-13.5"})])}function ml(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})])}function os(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})])}function tp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 00-3.375-3.375h-1.5a1.125 1.125 0 01-1.125-1.125v-1.5A3.375 3.375 0 006.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0015 2.25h-1.5a2.251 2.251 0 00-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 00-9-9z"})])}function np(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9.75v6.75m0 0l-3-3m3 3l3-3m-8.25 6a4.5 4.5 0 01-1.41-8.775 5.25 5.25 0 0110.233-2.33 3 3 0 013.758 3.848A3.752 3.752 0 0118 19.5H6.75z"})])}function as(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 16.5V9.75m0 0l3 3m-3-3l-3 3M6.75 19.5a4.5 4.5 0 01-1.41-8.775 5.25 5.25 0 0110.233-2.33 3 3 0 013.758 3.848A3.752 3.752 0 0118 19.5H6.75z"})])}function op(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 15a4.5 4.5 0 004.5 4.5H18a3.75 3.75 0 001.332-7.257 3 3 0 00-3.758-3.848 5.25 5.25 0 00-10.233 2.33A4.502 4.502 0 002.25 15z"})])}function ra(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})])}function vl(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"})])}function gl(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})])}function ap(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 10.5v6m3-3H9m4.06-7.19l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"})])}function rs(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"})])}function rp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})])}function sp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.712 4.33a9.027 9.027 0 011.652 1.306c.51.51.944 1.064 1.306 1.652M16.712 4.33l-3.448 4.138m3.448-4.138a9.014 9.014 0 00-9.424 0M19.67 7.288l-4.138 3.448m4.138-3.448a9.014 9.014 0 010 9.424m-4.138-5.976a3.736 3.736 0 00-.88-1.388 3.737 3.737 0 00-1.388-.88m2.268 2.268a3.765 3.765 0 010 2.528m-2.268-4.796a3.765 3.765 0 00-2.528 0m4.796 4.796c-.181.506-.475.982-.88 1.388a3.736 3.736 0 01-1.388.88m2.268-2.268l4.138 3.448m0 0a9.027 9.027 0 01-1.306 1.652c-.51.51-1.064.944-1.652 1.306m0 0l-3.448-4.138m3.448 4.138a9.014 9.014 0 01-9.424 0m5.976-4.138a3.765 3.765 0 01-2.528 0m0 0a3.736 3.736 0 01-1.388-.88 3.737 3.737 0 01-.88-1.388m2.268 2.268L7.288 19.67m0 0a9.024 9.024 0 01-1.652-1.306 9.027 9.027 0 01-1.306-1.652m0 0l4.138-3.448M4.33 16.712a9.014 9.014 0 010-9.424m4.138 5.976a3.765 3.765 0 010-2.528m0 0c.181-.506.475-.982.88-1.388a3.736 3.736 0 011.388-.88m-2.268 2.268L4.33 7.288m6.406 1.18L7.288 4.33m0 0a9.024 9.024 0 00-1.652 1.306A9.025 9.025 0 004.33 7.288"})])}function ip(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})])}function lp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"})])}function cp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 12h16.5m-16.5 3.75h16.5M3.75 19.5h16.5M5.625 4.5h12.75a1.875 1.875 0 010 3.75H5.625a1.875 1.875 0 010-3.75z"})])}function dp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6zM3.75 15.75A2.25 2.25 0 016 13.5h2.25a2.25 2.25 0 012.25 2.25V18a2.25 2.25 0 01-2.25 2.25H6A2.25 2.25 0 013.75 18v-2.25zM13.5 6a2.25 2.25 0 012.25-2.25H18A2.25 2.25 0 0120.25 6v2.25A2.25 2.25 0 0118 10.5h-2.25a2.25 2.25 0 01-2.25-2.25V6zM13.5 15.75a2.25 2.25 0 012.25-2.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-2.25A2.25 2.25 0 0113.5 18v-2.25z"})])}function bl(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"})])}function ss(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])}function yl(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z","clip-rule":"evenodd"})])}function up(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z","clip-rule":"evenodd"})])}function fp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M12.53 16.28a.75.75 0 01-1.06 0l-7.5-7.5a.75.75 0 011.06-1.06L12 14.69l6.97-6.97a.75.75 0 111.06 1.06l-7.5 7.5z","clip-rule":"evenodd"})])}function pp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M7.72 12.53a.75.75 0 010-1.06l7.5-7.5a.75.75 0 111.06 1.06L9.31 12l6.97 6.97a.75.75 0 11-1.06 1.06l-7.5-7.5z","clip-rule":"evenodd"})])}function hp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M16.28 11.47a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 01-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 011.06-1.06l7.5 7.5z","clip-rule":"evenodd"})])}function mp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.5 12a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm6 0a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm6 0a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0z","clip-rule":"evenodd"})])}function vp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M10.5 6a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm0 6a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm0 6a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0z","clip-rule":"evenodd"})])}function El(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"})])}function gp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"})])}function bp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.5 5.653c0-1.426 1.529-2.33 2.779-1.643l11.54 6.348c1.295.712 1.295 2.573 0 3.285L7.28 19.991c-1.25.687-2.779-.217-2.779-1.643V5.653z","clip-rule":"evenodd"})])}function yp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zm-1.72 6.97a.75.75 0 10-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 101.06 1.06L12 13.06l1.72 1.72a.75.75 0 101.06-1.06L13.06 12l1.72-1.72a.75.75 0 10-1.06-1.06L12 10.94l-1.72-1.72z","clip-rule":"evenodd"})])}const is=(e,t)=>{const n=e.__vccOpts||e;for(const[a,r]of t)n[a]=r;return n},Ep={},wp={class:"text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",fill:"none",viewBox:"0 0 100 101",xmlns:"http://www.w3.org/2000/svg"},xp=[o.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"},null,-1),o.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"},null,-1)];function Sp(e,t){return o.openBlock(),o.createElementBlock("svg",wp,xp)}const xo=is(Ep,[["render",Sp]]),wl=o.defineComponent({__name:"ImageLoader",props:{src:{},alt:{},isThumbnail:{type:Boolean,default:!0}},emits:["missing"],setup(e,{emit:t}){const n=e,a=t,r=o.ref(!0),i=o.ref(!1),s=o.ref();return o.onMounted(()=>{new Promise((l,c)=>{let d=new Image;d.addEventListener("load",()=>l(d)),d.addEventListener("error",f=>c(f)),d.src=n.src}).then(l=>{l.className="pointer-events-none w-full h-full",l.classList.add(n.isThumbnail?"object-cover":"object-contain"),l.draggable=!1,s.value?.appendChild(l)}).catch(()=>{i.value=!0,a("missing",!0)}).finally(()=>{r.value=!1})}),(l,c)=>(o.openBlock(),o.createElementBlock("div",{class:"flex justify-center items-center h-full max-h-[80vh]",ref_key:"card",ref:s},[r.value?(o.openBlock(),o.createBlock(xo,{key:0,class:"w-6 h-6"})):o.createCommentVNode("",!0)],512))}}),Op=["title"],Tp={key:0,class:"absolute z-40 inset-0 flex justify-center items-center w-full h-full"},Cp={key:1,class:"absolute inset-0 w-full h-full bg-gray-100/50 dark:bg-gray-800/50"},Np={key:2,class:"absolute inset-0 flex flex-row items-center justify-center text-sm font-bold text-gray-600 dark:text-gray-100"},kp={class:"m-auto z-20 flex h-full items-center justify-center select-none"},Ip={key:0,class:"m-auto flex h-full w-full items-center justify-center bg-gray-50 dark:bg-gray-900 text-red-500"},_p={key:0,class:"m-auto flex h-full w-full items-center justify-center bg-gray-50 dark:bg-gray-900 text-gray-500 dark:text-gray-600"},Ap={class:"pointer-events-none w-full h-full object-cover"},Dp=["src"],Rp={key:0,class:"absolute m-auto flex items-center justify-center bg-transparent"},Pp={key:3,class:"absolute right-1 top-1"},Bp=["title"],Mp={key:1,class:"text-sm text-red-500 font-semibold text-left break-all"},Fp={class:"gap-x-0.5 inline-flex flex-wrap items-center text-xs pointer-events-none block font-medium text-gray-500 text-left break-all"},Lp={key:0},jp={key:1,class:"ml-0.5"},Vp={key:2,class:"absolute top-1 right-1"},ls=o.defineComponent({__name:"File",props:{file:{},isUploading:{type:Boolean},isUploaded:{type:Boolean},uploadRatio:{},selected:{type:Boolean,default:!1},onDeselect:{},singleDisk:{type:Boolean},fieldMode:{type:Boolean}},setup(e){const t=e,n=o.computed(()=>t.file.type==="image"),a=o.computed(()=>t.file.type==="video"),r=o.computed(()=>t.file.type!=="image"&&t.file.type!=="video"),i=o.computed(()=>!t.file.exists),s=o.computed(()=>i.value?t.file.path:t.file.name);return(l,c)=>(o.openBlock(),o.createElementBlock("button",{class:"relative cursor-pointer group focus-visible:outline-none flex flex-col items-start",title:s.value},[o.createElementVNode("div",{class:o.normalizeClass(["relative block aspect-square w-full h-full overflow-hidden rounded-lg hover:shadow-md hover:opacity-75 border border-gray-200/50 dark:border-gray-700/50 text-left","group-focus-visible:outline group-focus-visible:outline-2 group-focus-visible:outline-black dark:group-focus-visible:outline-white",l.selected?"outline outline-2 outline-blue-500 group-focus-visible:outline-blue-500":""])},[l.isUploading?(o.openBlock(),o.createElementBlock("div",Tp,[l.isUploaded===null?(o.openBlock(),o.createBlock(xo,{key:0,class:"w-16 h-16"})):l.isUploaded===!1?(o.openBlock(),o.createBlock(o.unref(El),{key:1,class:"w-16 h-16 text-red-500"})):l.isUploaded===!0?(o.openBlock(),o.createBlock(o.unref(yl),{key:2,class:"w-16 h-16 text-green-500"})):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),l.isUploading?(o.openBlock(),o.createElementBlock("div",Cp)):o.createCommentVNode("",!0),l.isUploading&&l.isUploaded===null?(o.openBlock(),o.createElementBlock("div",Np,[o.createElementVNode("span",null,o.toDisplayString(l.uploadRatio)+"%",1)])):o.createCommentVNode("",!0),o.createElementVNode("div",kp,[i.value&&!l.isUploading?(o.openBlock(),o.createElementBlock("div",Ip,[o.createVNode(o.unref(gp),{class:"w-16 h-16"})])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[r.value?(o.openBlock(),o.createElementBlock("div",_p,[l.isUploading?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(ra),{key:0,class:"w-16 h-16"}))])):o.createCommentVNode("",!0),n.value?(o.openBlock(),o.createBlock(wl,{key:1,src:l.file.url,alt:l.file.name},null,8,["src","alt"])):o.createCommentVNode("",!0),a.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createElementVNode("video",Ap,[o.createElementVNode("source",{src:l.file.url},null,8,Dp),o.createTextVNode(" "+o.toDisplayString(l.__("Sorry, your browser doesn't support embedded videos.")),1)]),l.isUploading?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Rp,[o.createVNode(o.unref(bp),{class:"h-16 w-16 text-white/60"})]))],64)):o.createCommentVNode("",!0)],64))]),l.onDeselect?(o.openBlock(),o.createElementBlock("div",Pp,[l.onDeselect?(o.openBlock(),o.createElementBlock("button",{key:0,onClick:c[0]||(c[0]=d=>l.onDeselect(l.file)),class:"text-red-500 hover:text-red-600 rounded-full"},[o.createVNode(o.unref(yp),{class:"h-6 w-6"})])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],2),!i.value||l.isUploading?(o.openBlock(),o.createElementBlock("p",{key:0,class:o.normalizeClass(["pointer-events-none mt-2 block truncate font-medium text-gray-900 dark:text-gray-50 text-left w-full",l.isUploading||l.onDeselect?"text-xs":"text-sm"]),title:l.isUploading?l.file.name:s.value},o.toDisplayString(l.isUploading?l.file.name:s.value),11,Bp)):o.createCommentVNode("",!0),i.value&&!l.isUploading?(o.openBlock(),o.createElementBlock("p",Mp,o.toDisplayString(l.__("NovaFileManager.fileMissing",{path:l.file.path})),1)):o.createCommentVNode("",!0),o.createElementVNode("div",Fp,[l.file.size?(o.openBlock(),o.createElementBlock("span",Lp,o.toDisplayString(l.file.size),1)):o.createCommentVNode("",!0),l.fieldMode&&!l.singleDisk&&l.file.disk?.length>0?(o.openBlock(),o.createElementBlock("span",jp,"ยท "+o.toDisplayString(l.file.disk),1)):o.createCommentVNode("",!0)]),l.selected?(o.openBlock(),o.createElementBlock("span",Vp,[o.createVNode(o.unref(yl),{class:"h-5 w-5 text-blue-500","aria-hidden":"true"})])):o.createCommentVNode("",!0)],8,Op))}});var So=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Up(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function a(){return this instanceof a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}),n}var Hp=Math.ceil,zp=Math.max;function Gp(e,t,n,a){for(var r=-1,i=zp(Hp((t-e)/(n||1)),0),s=Array(i);i--;)s[a?i:++r]=e,e+=n;return s}var Wp=Gp;function Kp(e,t){return e===t||e!==e&&t!==t}var cs=Kp,Xp=typeof So=="object"&&So&&So.Object===Object&&So,xl=Xp,Yp=xl,Jp=typeof self=="object"&&self&&self.Object===Object&&self,Qp=Yp||Jp||Function("return this")(),Vt=Qp,Zp=Vt,qp=Zp.Symbol,sa=qp,Sl=sa,Ol=Object.prototype,$p=Ol.hasOwnProperty,eh=Ol.toString,ia=Sl?Sl.toStringTag:void 0;function th(e){var t=$p.call(e,ia),n=e[ia];try{e[ia]=void 0;var a=!0}catch{}var r=eh.call(e);return a&&(t?e[ia]=n:delete e[ia]),r}var nh=th,oh=Object.prototype,ah=oh.toString;function rh(e){return ah.call(e)}var sh=rh,Tl=sa,ih=nh,lh=sh,ch="[object Null]",dh="[object Undefined]",Cl=Tl?Tl.toStringTag:void 0;function uh(e){return e==null?e===void 0?dh:ch:Cl&&Cl in Object(e)?ih(e):lh(e)}var Oo=uh;function fh(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var On=fh,ph=Oo,hh=On,mh="[object AsyncFunction]",vh="[object Function]",gh="[object GeneratorFunction]",bh="[object Proxy]";function yh(e){if(!hh(e))return!1;var t=ph(e);return t==vh||t==gh||t==mh||t==bh}var Nl=yh,Eh=9007199254740991;function wh(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Eh}var kl=wh,xh=Nl,Sh=kl;function Oh(e){return e!=null&&Sh(e.length)&&!xh(e)}var ds=Oh,Th=9007199254740991,Ch=/^(?:0|[1-9]\d*)$/;function Nh(e,t){var n=typeof e;return t=t??Th,!!t&&(n=="number"||n!="symbol"&&Ch.test(e))&&e>-1&&e%1==0&&e0){var _=!1;for(var A in b.fileType){var D="."+b.fileType[A];if(I.toLowerCase().indexOf(D.toLowerCase(),I.length-D.length)!==-1){_=!0;break}}if(!_)return b.fileTypeErrorCallback(N,y++),!1}if(typeof b.minFileSize<"u"&&N.sizeb.maxFileSize)return b.maxFileSizeErrorCallback(N,y++),!1;function M(B){a.getFromUniqueIdentifier(B)?T.push(N):function(){N.uniqueIdentifier=B;var j=new h(a,N,B);a.files.push(j),g.push(j),j.container=typeof m<"u"?m.srcElement:null,window.setTimeout(function(){a.fire("fileAdded",j,m)},0)}(),S()}var K=r.generateUniqueIdentifier(N,m);K&&typeof K.then=="function"?K.then(function(B){M(B)},function(){S()}):M(K)})};function h(u,m,y){var b=this;b.opts={},b.getOpt=u.getOpt,b._prevProgress=0,b.resumableObj=u,b.file=m,b.fileName=m.fileName||m.name,b.size=m.size,b.relativePath=m.relativePath||m.webkitRelativePath||b.fileName,b.uniqueIdentifier=y,b._pause=!1,b.container="";var g=y!==void 0,T=function(O,S){switch(O){case"progress":b.resumableObj.fire("fileProgress",b,S);break;case"error":b.abort(),g=!0,b.chunks=[],b.resumableObj.fire("fileError",b,S);break;case"success":if(g)return;b.resumableObj.fire("fileProgress",b),b.isComplete()&&b.resumableObj.fire("fileSuccess",b,S);break;case"retry":b.resumableObj.fire("fileRetry",b);break}};return b.chunks=[],b.abort=function(){var O=0;r.each(b.chunks,function(S){S.status()=="uploading"&&(S.abort(),O++)}),O>0&&b.resumableObj.fire("fileProgress",b)},b.cancel=function(){var O=b.chunks;b.chunks=[],r.each(O,function(S){S.status()=="uploading"&&(S.abort(),b.resumableObj.uploadNextChunk())}),b.resumableObj.removeFile(b),b.resumableObj.fire("fileProgress",b)},b.retry=function(){b.bootstrap();var O=!1;b.resumableObj.on("chunkingComplete",function(){O||b.resumableObj.upload(),O=!0})},b.bootstrap=function(){b.abort(),g=!1,b.chunks=[],b._prevProgress=0;for(var O=b.getOpt("forceChunkSize")?Math.ceil:Math.floor,S=Math.max(O(b.file.size/b.getOpt("chunkSize")),1),N=0;N.99999?1:O,O=Math.max(b._prevProgress,O),b._prevProgress=O,O},b.isUploading=function(){var O=!1;return r.each(b.chunks,function(S){if(S.status()=="uploading")return O=!0,!1}),O},b.isComplete=function(){var O=!1;return r.each(b.chunks,function(S){var N=S.status();if(N=="pending"||N=="uploading"||S.preprocessState===1)return O=!0,!1}),!O},b.pause=function(O){typeof O>"u"?b._pause=!b._pause:b._pause=O},b.isPaused=function(){return b._pause},b.resumableObj.fire("chunkingStart",b),b.bootstrap(),this}function v(u,m,y,b){var g=this;g.opts={},g.getOpt=u.getOpt,g.resumableObj=u,g.fileObj=m,g.fileObjSize=m.size,g.fileObjType=m.file.type,g.offset=y,g.callback=b,g.lastProgressCallback=new Date,g.tested=!1,g.retries=0,g.pendingRetry=!1,g.preprocessState=0;var T=g.getOpt("chunkSize");return g.loaded=0,g.startByte=g.offset*T,g.endByte=Math.min(g.fileObjSize,(g.offset+1)*T),g.fileObjSize-g.endByteg.getOpt("throttleProgressCallbacks")*1e3&&(g.callback("progress"),g.lastProgressCallback=new Date),g.loaded=Q.loaded||0},!1),g.loaded=0,g.pendingRetry=!1,g.callback("progress");var S=function(Q){var ne=g.status();if(ne=="success"||ne=="error")g.callback(ne,g.message()),g.resumableObj.uploadNextChunk();else{g.callback("retry",g.message()),g.abort(),g.retries++;var we=g.getOpt("chunkRetryInterval");we!==void 0?(g.pendingRetry=!0,setTimeout(g.send,we)):g.send()}};g.xhr.addEventListener("load",S,!1),g.xhr.addEventListener("error",S,!1),g.xhr.addEventListener("timeout",S,!1);var N=[["chunkNumberParameterName",g.offset+1],["chunkSizeParameterName",g.getOpt("chunkSize")],["currentChunkSizeParameterName",g.endByte-g.startByte],["totalSizeParameterName",g.fileObjSize],["typeParameterName",g.fileObjType],["identifierParameterName",g.fileObj.uniqueIdentifier],["fileNameParameterName",g.fileObj.fileName],["relativePathParameterName",g.fileObj.relativePath],["totalChunksParameterName",g.fileObj.chunks.length]].filter(function(Q){return g.getOpt(Q[0])}).reduce(function(Q,ne){return Q[g.getOpt(ne[0])]=ne[1],Q},{}),I=g.getOpt("query");typeof I=="function"&&(I=I(g.fileObj,g)),r.each(I,function(Q,ne){N[Q]=ne});var _=g.fileObj.file.slice?"slice":g.fileObj.file.mozSlice?"mozSlice":g.fileObj.file.webkitSlice?"webkitSlice":"slice",A=g.fileObj.file[_](g.startByte,g.endByte,g.getOpt("setChunkTypeFromFile")?g.fileObj.file.type:""),D=null,M=[],K=g.getOpt("parameterNamespace");if(g.getOpt("method")==="octet")D=A,r.each(N,function(Q,ne){M.push([encodeURIComponent(K+Q),encodeURIComponent(ne)].join("="))});else if(D=new FormData,r.each(N,function(Q,ne){D.append(K+Q,ne),M.push([encodeURIComponent(K+Q),encodeURIComponent(ne)].join("="))}),g.getOpt("chunkFormat")=="blob")D.append(K+g.getOpt("fileParameterName"),A,g.fileObj.fileName);else if(g.getOpt("chunkFormat")=="base64"){var B=new FileReader;B.onload=function(Q){D.append(K+g.getOpt("fileParameterName"),B.result),g.xhr.send(D)},B.readAsDataURL(A)}var j=r.getTarget("upload",M),H=g.getOpt("uploadMethod");g.xhr.open(H,j),g.getOpt("method")==="octet"&&g.xhr.setRequestHeader("Content-Type","application/octet-stream"),g.xhr.timeout=g.getOpt("xhrTimeout"),g.xhr.withCredentials=g.getOpt("withCredentials");var W=g.getOpt("headers");typeof W=="function"&&(W=W(g.fileObj,g)),r.each(W,function(Q,ne){g.xhr.setRequestHeader(Q,ne)}),g.getOpt("chunkFormat")=="blob"&&g.xhr.send(D)},g.abort=function(){g.xhr&&g.xhr.abort(),g.xhr=null},g.status=function(){return g.pendingRetry?"uploading":g.xhr?g.xhr.readyState<4?"uploading":g.xhr.status==200||g.xhr.status==201?"success":r.contains(g.getOpt("permanentErrors"),g.xhr.status)||g.retries>=g.getOpt("maxChunkRetries")?"error":(g.abort(),"pending"):"pending"},g.message=function(){return g.xhr?g.xhr.responseText:""},g.progress=function(O){typeof O>"u"&&(O=!1);var S=O?(g.endByte-g.startByte)/g.fileObjSize:1;if(g.pendingRetry)return 0;(!g.xhr||!g.xhr.status)&&(S*=.95);var N=g.status();switch(N){case"success":case"error":return 1*S;case"pending":return 0*S;default:return g.loaded/(g.endByte-g.startByte)*S}},this}return a.uploadNextChunk=function(){var u=!1;if(a.getOpt("prioritizeFirstAndLastChunk")&&(r.each(a.files,function(y){if(y.chunks.length&&y.chunks[0].status()=="pending"&&y.chunks[0].preprocessState===0)return y.chunks[0].send(),u=!0,!1;if(y.chunks.length>1&&y.chunks[y.chunks.length-1].status()=="pending"&&y.chunks[y.chunks.length-1].preprocessState===0)return y.chunks[y.chunks.length-1].send(),u=!0,!1}),u)||(r.each(a.files,function(y){if(y.isPaused()===!1&&r.each(y.chunks,function(b){if(b.status()=="pending"&&b.preprocessState===0)return b.send(),u=!0,!1}),u)return!1}),u))return!0;var m=!1;return r.each(a.files,function(y){if(!y.isComplete())return m=!0,!1}),m||a.fire("complete"),!1},a.assignBrowse=function(u,m){typeof u.length>"u"&&(u=[u]),r.each(u,function(y){var b;y.tagName==="INPUT"&&y.type==="file"?b=y:(b=document.createElement("input"),b.setAttribute("type","file"),b.style.display="none",y.addEventListener("click",function(){b.style.opacity=0,b.style.display="block",b.focus(),b.click(),b.style.display="none"},!1),y.appendChild(b));var g=a.getOpt("maxFiles");typeof g>"u"||g!=1?b.setAttribute("multiple","multiple"):b.removeAttribute("multiple"),m?b.setAttribute("webkitdirectory","webkitdirectory"):b.removeAttribute("webkitdirectory");var T=a.getOpt("fileType");typeof T<"u"&&T.length>=1?b.setAttribute("accept",T.map(function(O){return"."+O}).join(",")):b.removeAttribute("accept"),b.addEventListener("change",function(O){p(O.target.files,O);var S=a.getOpt("clearInput");S&&(O.target.value="")},!1)})},a.assignDrop=function(u){typeof u.length>"u"&&(u=[u]),r.each(u,function(m){m.addEventListener("dragover",s,!1),m.addEventListener("dragenter",s,!1),m.addEventListener("drop",i,!1)})},a.unAssignDrop=function(u){typeof u.length>"u"&&(u=[u]),r.each(u,function(m){m.removeEventListener("dragover",s),m.removeEventListener("dragenter",s),m.removeEventListener("drop",i)})},a.isUploading=function(){var u=!1;return r.each(a.files,function(m){if(m.isUploading())return u=!0,!1}),u},a.upload=function(){if(!a.isUploading()){a.fire("uploadStart");for(var u=1;u<=a.getOpt("simultaneousUploads");u++)a.uploadNextChunk()}},a.pause=function(){r.each(a.files,function(u){u.abort()}),a.fire("pause")},a.cancel=function(){a.fire("beforeCancel");for(var u=a.files.length-1;u>=0;u--)a.files[u].cancel();a.fire("cancel")},a.progress=function(){var u=0,m=0;return r.each(a.files,function(y){u+=y.progress()*y.size,m+=y.size}),m>0?u/m:0},a.addFile=function(u,m){p([u],m)},a.addFiles=function(u,m){p(u,m)},a.removeFile=function(u){for(var m=a.files.length-1;m>=0;m--)a.files[m]===u&&a.files.splice(m,1)},a.getFromUniqueIdentifier=function(u){var m=!1;return r.each(a.files,function(y){y.uniqueIdentifier==u&&(m=y)}),m},a.getSize=function(){var u=0;return r.each(a.files,function(m){u+=m.size}),u},a.handleDropEvent=function(u){i(u)},a.handleChangeEvent=function(u){p(u.target.files,u),u.target.value=""},a.updateQuery=function(u){a.opts.query=u},this};e.exports=t})()})(Pl);var dm=Pl.exports;const um=Sn(dm),la="queue",ps="preview",fm="upload",Tn="upload-crop",hs="browser",pm="folder",hm="KeyK",ms={folders:"#",files:">",help:"?"},mm=["setDisk","setPath","setPerPage","setPage","setSearch","upload","renameFile","deleteFiles","unzipFile","createFolder","renameFolder","deleteFolder"],Qt={CREATE_FOLDER:"createFolder",RENAME_FOLDER:"renameFolder",DELETE_FOLDER:"deleteFolder",RENAME_FILE:"renameFile",DELETE_FILE:"deleteFile",UNZIP_FILE:"unzipFile"},Ut={CREATE_FOLDER:"createFolder",DELETE_FILES:"deleteFiles",DELETE_FOLDER:"deleteFolder",RENAME_FILE:"renameFile",RENAME_FOLDER:"renameFolder",UNZIP_FILE:"unzipFile"},ln={CREATE_FOLDER:"/folders/create",DELETE_FILE:"/files/delete",DELETE_FOLDER:"/folders/delete",DISKS:"/disks",DOWNLOAD_FILE:"/files/download",RENAME_FILE:"/files/rename",RENAME_FOLDER:"/folders/rename",UNZIP_FILE:"/files/unzip",UPLOAD:"/nova-vendor/nova-file-manager/files/upload"};async function To({operation:e,endpoint:t,data:n,modal:a,callback:r}){const i=Re(),s=i.post,l=i.setError,c=i.resetError,d=i.closeModal;try{i.loadingOperation=e;const f=await s({path:t,data:n});c(),window.Nova.success(f.data.message),r&&r(f),a&&d({name:a})}catch(f){i.loadingOperation=void 0;const p=f.response?.data;window.Nova.error(p?.message||"An error occurred"),l({attribute:e,bag:p})}}function Bl(e,t){return function(){return e.apply(t,arguments)}}const{toString:vm}=Object.prototype,{getPrototypeOf:vs}=Object,$a=(e=>t=>{const n=vm.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Zt=e=>(e=e.toLowerCase(),t=>$a(t)===e),er=e=>t=>typeof t===e,{isArray:Co}=Array,ca=er("undefined");function gm(e){return e!==null&&!ca(e)&&e.constructor!==null&&!ca(e.constructor)&&It(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ml=Zt("ArrayBuffer");function bm(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ml(e.buffer),t}const ym=er("string"),It=er("function"),Fl=er("number"),tr=e=>e!==null&&typeof e=="object",Em=e=>e===!0||e===!1,nr=e=>{if($a(e)!=="object")return!1;const t=vs(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},wm=Zt("Date"),xm=Zt("File"),Sm=Zt("Blob"),Om=Zt("FileList"),Tm=e=>tr(e)&&It(e.pipe),Cm=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||It(e.append)&&((t=$a(e))==="formdata"||t==="object"&&It(e.toString)&&e.toString()==="[object FormData]"))},Nm=Zt("URLSearchParams"),km=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function da(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let a,r;if(typeof e!="object"&&(e=[e]),Co(e))for(a=0,r=e.length;a0;)if(r=n[a],t===r.toLowerCase())return r;return null}const jl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Vl=e=>!ca(e)&&e!==jl;function gs(){const{caseless:e}=Vl(this)&&this||{},t={},n=(a,r)=>{const i=e&&Ll(t,r)||r;nr(t[i])&&nr(a)?t[i]=gs(t[i],a):nr(a)?t[i]=gs({},a):Co(a)?t[i]=a.slice():t[i]=a};for(let a=0,r=arguments.length;a(da(t,(r,i)=>{n&&It(r)?e[i]=Bl(r,n):e[i]=r},{allOwnKeys:a}),e),_m=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Am=(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Dm=(e,t,n,a)=>{let r,i,s;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)s=r[i],(!a||a(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&vs(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Rm=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return a!==-1&&a===n},Pm=e=>{if(!e)return null;if(Co(e))return e;let t=e.length;if(!Fl(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Bm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&vs(Uint8Array)),Mm=(e,t)=>{const a=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=a.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},Fm=(e,t)=>{let n;const a=[];for(;(n=e.exec(t))!==null;)a.push(n);return a},Lm=Zt("HTMLFormElement"),jm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,a,r){return a.toUpperCase()+r}),Ul=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Vm=Zt("RegExp"),Hl=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};da(n,(r,i)=>{let s;(s=t(r,i,e))!==!1&&(a[i]=s||r)}),Object.defineProperties(e,a)},Um=e=>{Hl(e,(t,n)=>{if(It(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const a=e[n];if(It(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Hm=(e,t)=>{const n={},a=r=>{r.forEach(i=>{n[i]=!0})};return Co(e)?a(e):a(String(e).split(t)),n},zm=()=>{},Gm=(e,t)=>(e=+e,Number.isFinite(e)?e:t),bs="abcdefghijklmnopqrstuvwxyz",zl="0123456789",Gl={DIGIT:zl,ALPHA:bs,ALPHA_DIGIT:bs+bs.toUpperCase()+zl},Wm=(e=16,t=Gl.ALPHA_DIGIT)=>{let n="";const{length:a}=t;for(;e--;)n+=t[Math.random()*a|0];return n};function Km(e){return!!(e&&It(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Xm=e=>{const t=new Array(10),n=(a,r)=>{if(tr(a)){if(t.indexOf(a)>=0)return;if(!("toJSON"in a)){t[r]=a;const i=Co(a)?[]:{};return da(a,(s,l)=>{const c=n(s,r+1);!ca(c)&&(i[l]=c)}),t[r]=void 0,i}}return a};return n(e,0)},Ym=Zt("AsyncFunction"),X={isArray:Co,isArrayBuffer:Ml,isBuffer:gm,isFormData:Cm,isArrayBufferView:bm,isString:ym,isNumber:Fl,isBoolean:Em,isObject:tr,isPlainObject:nr,isUndefined:ca,isDate:wm,isFile:xm,isBlob:Sm,isRegExp:Vm,isFunction:It,isStream:Tm,isURLSearchParams:Nm,isTypedArray:Bm,isFileList:Om,forEach:da,merge:gs,extend:Im,trim:km,stripBOM:_m,inherits:Am,toFlatObject:Dm,kindOf:$a,kindOfTest:Zt,endsWith:Rm,toArray:Pm,forEachEntry:Mm,matchAll:Fm,isHTMLForm:Lm,hasOwnProperty:Ul,hasOwnProp:Ul,reduceDescriptors:Hl,freezeMethods:Um,toObjectSet:Hm,toCamelCase:jm,noop:zm,toFiniteNumber:Gm,findKey:Ll,global:jl,isContextDefined:Vl,ALPHABET:Gl,generateString:Wm,isSpecCompliantForm:Km,toJSONObject:Xm,isAsyncFn:Ym,isThenable:e=>e&&(tr(e)||It(e))&&It(e.then)&&It(e.catch)};function Ce(e,t,n,a,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),a&&(this.request=a),r&&(this.response=r)}X.inherits(Ce,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:X.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Wl=Ce.prototype,Kl={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Kl[e]={value:e}}),Object.defineProperties(Ce,Kl),Object.defineProperty(Wl,"isAxiosError",{value:!0}),Ce.from=(e,t,n,a,r,i)=>{const s=Object.create(Wl);return X.toFlatObject(e,s,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),Ce.call(s,e.message,t,n,a,r),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Jm=null;function ys(e){return X.isPlainObject(e)||X.isArray(e)}function Xl(e){return X.endsWith(e,"[]")?e.slice(0,-2):e}function Yl(e,t,n){return e?e.concat(t).map(function(r,i){return r=Xl(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function Qm(e){return X.isArray(e)&&!e.some(ys)}const Zm=X.toFlatObject(X,{},null,function(t){return/^is[A-Z]/.test(t)});function or(e,t,n){if(!X.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=X.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,y){return!X.isUndefined(y[m])});const a=n.metaTokens,r=n.visitor||f,i=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&X.isSpecCompliantForm(t);if(!X.isFunction(r))throw new TypeError("visitor must be a function");function d(u){if(u===null)return"";if(X.isDate(u))return u.toISOString();if(!c&&X.isBlob(u))throw new Ce("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(u)||X.isTypedArray(u)?c&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function f(u,m,y){let b=u;if(u&&!y&&typeof u=="object"){if(X.endsWith(m,"{}"))m=a?m:m.slice(0,-2),u=JSON.stringify(u);else if(X.isArray(u)&&Qm(u)||(X.isFileList(u)||X.endsWith(m,"[]"))&&(b=X.toArray(u)))return m=Xl(m),b.forEach(function(T,O){!(X.isUndefined(T)||T===null)&&t.append(s===!0?Yl([m],O,i):s===null?m:m+"[]",d(T))}),!1}return ys(u)?!0:(t.append(Yl(y,m,i),d(u)),!1)}const p=[],h=Object.assign(Zm,{defaultVisitor:f,convertValue:d,isVisitable:ys});function v(u,m){if(!X.isUndefined(u)){if(p.indexOf(u)!==-1)throw Error("Circular reference detected in "+m.join("."));p.push(u),X.forEach(u,function(b,g){(!(X.isUndefined(b)||b===null)&&r.call(t,b,X.isString(g)?g.trim():g,m,h))===!0&&v(b,m?m.concat(g):[g])}),p.pop()}}if(!X.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Jl(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function Es(e,t){this._pairs=[],e&&or(e,this,t)}const Ql=Es.prototype;Ql.append=function(t,n){this._pairs.push([t,n])},Ql.toString=function(t){const n=t?function(a){return t.call(this,a,Jl)}:Jl;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function qm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zl(e,t,n){if(!t)return e;const a=n&&n.encode||qm,r=n&&n.serialize;let i;if(r?i=r(t,n):i=X.isURLSearchParams(t)?t.toString():new Es(t,n).toString(a),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class ql{constructor(){this.handlers=[]}use(t,n,a){return this.handlers.push({fulfilled:t,rejected:n,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){X.forEach(this.handlers,function(a){a!==null&&t(a)})}}const $l={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$m={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Es,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ec=typeof window<"u"&&typeof document<"u",ev=(e=>ec&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),tv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ec,hasStandardBrowserEnv:ev,hasStandardBrowserWebWorkerEnv:tv},Symbol.toStringTag,{value:"Module"})),...$m};function nv(e,t){return or(e,new qt.classes.URLSearchParams,Object.assign({visitor:function(n,a,r,i){return qt.isNode&&X.isBuffer(n)?(this.append(a,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function ov(e){return X.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function av(e){const t={},n=Object.keys(e);let a;const r=n.length;let i;for(a=0;a=n.length;return s=!s&&X.isArray(r)?r.length:s,c?(X.hasOwnProp(r,s)?r[s]=[r[s],a]:r[s]=a,!l):((!r[s]||!X.isObject(r[s]))&&(r[s]=[]),t(n,a,r[s],i)&&X.isArray(r[s])&&(r[s]=av(r[s])),!l)}if(X.isFormData(e)&&X.isFunction(e.entries)){const n={};return X.forEachEntry(e,(a,r)=>{t(ov(a),r,n,0)}),n}return null}function rv(e,t,n){if(X.isString(e))try{return(t||JSON.parse)(e),X.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(0,JSON.stringify)(e)}const ua={transitional:$l,adapter:["xhr","http"],transformRequest:[function(t,n){const a=n.getContentType()||"",r=a.indexOf("application/json")>-1,i=X.isObject(t);if(i&&X.isHTMLForm(t)&&(t=new FormData(t)),X.isFormData(t))return r?JSON.stringify(tc(t)):t;if(X.isArrayBuffer(t)||X.isBuffer(t)||X.isStream(t)||X.isFile(t)||X.isBlob(t))return t;if(X.isArrayBufferView(t))return t.buffer;if(X.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(a.indexOf("application/x-www-form-urlencoded")>-1)return nv(t,this.formSerializer).toString();if((l=X.isFileList(t))||a.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return or(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),rv(t)):t}],transformResponse:[function(t){const n=this.transitional||ua.transitional,a=n&&n.forcedJSONParsing,r=this.responseType==="json";if(t&&X.isString(t)&&(a&&!this.responseType||r)){const s=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?Ce.from(l,Ce.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qt.classes.FormData,Blob:qt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],e=>{ua.headers[e]={}});const sv=X.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),iv=e=>{const t={};let n,a,r;return e&&e.split(` `).forEach(function(s){r=s.indexOf(":"),n=s.substring(0,r).trim().toLowerCase(),a=s.substring(r+1).trim(),!(!n||t[n]&&sv[n])&&(n==="set-cookie"?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t},nc=Symbol("internals");function fa(e){return e&&String(e).trim().toLowerCase()}function ar(e){return e===!1||e==null?e:X.isArray(e)?e.map(ar):String(e)}function lv(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}const cv=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ws(e,t,n,a,r){if(X.isFunction(a))return a.call(this,t,n);if(r&&(t=n),!!X.isString(t)){if(X.isString(a))return t.indexOf(a)!==-1;if(X.isRegExp(a))return a.test(t)}}function dv(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,a)=>n.toUpperCase()+a)}function uv(e,t){const n=X.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{value:function(r,i,s){return this[a].call(this,t,r,i,s)},configurable:!0})})}class _t{constructor(t){t&&this.set(t)}set(t,n,a){const r=this;function i(l,c,d){const f=fa(c);if(!f)throw new Error("header name must be a non-empty string");const p=X.findKey(r,f);(!p||r[p]===void 0||d===!0||d===void 0&&r[p]!==!1)&&(r[p||c]=ar(l))}const s=(l,c)=>X.forEach(l,(d,f)=>i(d,f,c));return X.isPlainObject(t)||t instanceof this.constructor?s(t,n):X.isString(t)&&(t=t.trim())&&!cv(t)?s(iv(t),n):t!=null&&i(n,t,a),this}get(t,n){if(t=fa(t),t){const a=X.findKey(this,t);if(a){const r=this[a];if(!n)return r;if(n===!0)return lv(r);if(X.isFunction(n))return n.call(this,r,a);if(X.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=fa(t),t){const a=X.findKey(this,t);return!!(a&&this[a]!==void 0&&(!n||ws(this,this[a],a,n)))}return!1}delete(t,n){const a=this;let r=!1;function i(s){if(s=fa(s),s){const l=X.findKey(a,s);l&&(!n||ws(a,a[l],l,n))&&(delete a[l],r=!0)}}return X.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let a=n.length,r=!1;for(;a--;){const i=n[a];(!t||ws(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,a={};return X.forEach(this,(r,i)=>{const s=X.findKey(a,i);if(s){n[s]=ar(r),delete n[i];return}const l=t?dv(i):String(i).trim();l!==i&&delete n[i],n[l]=ar(r),a[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return X.forEach(this,(a,r)=>{a!=null&&a!==!1&&(n[r]=t&&X.isArray(a)?a.join(", "):a)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const a=new this(t);return n.forEach(r=>a.set(r)),a}static accessor(t){const a=(this[nc]=this[nc]={accessors:{}}).accessors,r=this.prototype;function i(s){const l=fa(s);a[l]||(uv(r,s),a[l]=!0)}return X.isArray(t)?t.forEach(i):i(t),this}}_t.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),X.reduceDescriptors(_t.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[n]=a}}}),X.freezeMethods(_t);function xs(e,t){const n=this||ua,a=t||n,r=_t.from(a.headers);let i=a.data;return X.forEach(e,function(l){i=l.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function oc(e){return!!(e&&e.__CANCEL__)}function pa(e,t,n){Ce.call(this,e??"canceled",Ce.ERR_CANCELED,t,n),this.name="CanceledError"}X.inherits(pa,Ce,{__CANCEL__:!0});function fv(e,t,n){const a=n.config.validateStatus;!n.status||!a||a(n.status)?e(n):t(new Ce("Request failed with status code "+n.status,[Ce.ERR_BAD_REQUEST,Ce.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const pv=qt.hasStandardBrowserEnv?{write(e,t,n,a,r,i){const s=[e+"="+encodeURIComponent(t)];X.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),X.isString(a)&&s.push("path="+a),X.isString(r)&&s.push("domain="+r),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function hv(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mv(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ac(e,t){return e&&!hv(t)?mv(e,t):t}const vv=qt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let a;function r(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return a=r(window.location.href),function(s){const l=X.isString(s)?r(s):s;return l.protocol===a.protocol&&l.host===a.host}}():function(){return function(){return!0}}();function gv(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function bv(e,t){e=e||10;const n=new Array(e),a=new Array(e);let r=0,i=0,s;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),f=a[i];s||(s=d),n[r]=c,a[r]=d;let p=i,h=0;for(;p!==r;)h+=n[p++],p=p%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),d-s{const i=r.loaded,s=r.lengthComputable?r.total:void 0,l=i-n,c=a(l),d=i<=s;n=i;const f={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&d?(s-i)/c:void 0,event:r};f[t?"download":"upload"]=!0,e(f)}}const Ss={http:Jm,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,a){let r=e.data;const i=_t.from(e.headers).normalize();let{responseType:s,withXSRFToken:l}=e,c;function d(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let f;if(X.isFormData(r)){if(qt.hasStandardBrowserEnv||qt.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((f=i.getContentType())!==!1){const[m,...y]=f?f.split(";").map(b=>b.trim()).filter(Boolean):[];i.setContentType([m||"multipart/form-data",...y].join("; "))}}let p=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(m+":"+y))}const h=ac(e.baseURL,e.url);p.open(e.method.toUpperCase(),Zl(h,e.params,e.paramsSerializer),!0),p.timeout=e.timeout;function v(){if(!p)return;const m=_t.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),b={data:!s||s==="text"||s==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:m,config:e,request:p};fv(function(T){n(T),d()},function(T){a(T),d()},b),p=null}if("onloadend"in p?p.onloadend=v:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(v)},p.onabort=function(){p&&(a(new Ce("Request aborted",Ce.ECONNABORTED,e,p)),p=null)},p.onerror=function(){a(new Ce("Network Error",Ce.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||$l;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),a(new Ce(y,b.clarifyTimeoutError?Ce.ETIMEDOUT:Ce.ECONNABORTED,e,p)),p=null},qt.hasStandardBrowserEnv&&(l&&X.isFunction(l)&&(l=l(e)),l||l!==!1&&vv(h))){const m=e.xsrfHeaderName&&e.xsrfCookieName&&pv.read(e.xsrfCookieName);m&&i.set(e.xsrfHeaderName,m)}r===void 0&&i.setContentType(null),"setRequestHeader"in p&&X.forEach(i.toJSON(),function(y,b){p.setRequestHeader(b,y)}),X.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),s&&s!=="json"&&(p.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&p.addEventListener("progress",rc(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&p.upload&&p.upload.addEventListener("progress",rc(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=m=>{p&&(a(!m||m.type?new pa(null,e,p):m),p.abort(),p=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const u=gv(h);if(u&&qt.protocols.indexOf(u)===-1){a(new Ce("Unsupported protocol "+u+":",Ce.ERR_BAD_REQUEST,e));return}p.send(r||null)})}};X.forEach(Ss,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const sc=e=>`- ${e}`,yv=e=>X.isFunction(e)||e===null||e===!1,ic={getAdapter:e=>{e=X.isArray(e)?e:[e];const{length:t}=e;let n,a;const r={};for(let i=0;i`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since : `+i.map(sc).join(` @@ -6,10 +6,10 @@ `+i):a.stack=i}throw a}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=No(this.defaults,n);const{transitional:a,paramsSerializer:r,headers:i}=n;a!==void 0&&Cs.assertOptions(a,{silentJSONParsing:Cn.transitional(Cn.boolean),forcedJSONParsing:Cn.transitional(Cn.boolean),clarifyTimeoutError:Cn.transitional(Cn.boolean)},!1),r!=null&&(X.isFunction(r)?n.paramsSerializer={serialize:r}:Cs.assertOptions(r,{encode:Cn.function,serialize:Cn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&X.merge(i.common,i[n.method]);i&&X.forEach(["delete","get","head","post","put","patch","common"],u=>{delete i[u]}),n.headers=_t.concat(s,i);const l=[];let c=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(c=c&&m.synchronous,l.unshift(m.fulfilled,m.rejected))});const d=[];this.interceptors.response.forEach(function(m){d.push(m.fulfilled,m.rejected)});let f,p=0,h;if(!c){const u=[lc.bind(this),void 0];for(u.unshift.apply(u,l),u.push.apply(u,d),h=u.length,f=Promise.resolve(n);p{if(!a._listeners)return;let i=a._listeners.length;for(;i-- >0;)a._listeners[i](r);a._listeners=null}),this.promise.then=r=>{let i;const s=new Promise(l=>{a.subscribe(l),i=l}).then(r);return s.cancel=function(){a.unsubscribe(i)},s},t(function(i,s,l){a.reason||(a.reason=new pa(i,s,l),n(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Ns(function(r){t=r}),cancel:t}}}function wv(e){return function(n){return e.apply(null,n)}}function xv(e){return X.isObject(e)&&e.isAxiosError===!0}const ks={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ks).forEach(([e,t])=>{ks[t]=e});function fc(e){const t=new Xn(e),n=Bl(Xn.prototype.request,t);return X.extend(n,Xn.prototype,t,{allOwnKeys:!0}),X.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return fc(No(e,r))},n}const We=fc(ua);We.Axios=Xn,We.CanceledError=pa,We.CancelToken=Ns,We.isCancel=oc,We.VERSION=dc,We.toFormData=or,We.AxiosError=Ce,We.Cancel=We.CanceledError,We.all=function(t){return Promise.all(t)},We.spread=wv,We.isAxiosError=xv,We.mergeConfig=No,We.AxiosHeaders=_t,We.formToJSON=e=>tc(X.isHTMLForm(e)?new FormData(e):e),We.getAdapter=ic.getAdapter,We.HttpStatusCode=ks,We.default=We;function Sv(e){return e==null}var Ov=Sv;const Tv=Sn(Ov);function pc(){return document.head.querySelector('meta[name="csrf-token"]')?.content??!1}function hc(){const e=We.create();return e.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",e.defaults.headers.common["X-CSRF-TOKEN"]=pc(),e.interceptors.response.use(t=>t,t=>{if(We.isCancel(t))return Promise.reject(t);const n=t.response,{status:a,data:{redirect:r}}=n;if(a>=500&&window.Nova.$emit("error",t.response.data.message),a===401){if(!Tv(r)){location.href=r;return}window.Nova.redirectToLogin()}return a===403&&window.Nova.visit("/403"),a===419&&window.Nova.$emit("token-expired"),Promise.reject(t)}),e}function Cv(e){return function(t){return e?.[t]}}var Nv=Cv,kv=Nv,Iv={"&":"&","<":"<",">":">",'"':""","'":"'"},_v=kv(Iv),Av=_v;function Dv(e,t){for(var n=-1,a=e==null?0:e.length,r=Array(a);++n"']/g,zv=RegExp(wc.source);function Gv(e){return e=Hv(e),e&&zv.test(e)?e.replace(wc,Uv):e}var Wv=Gv;const Kv=Sn(Wv);function Nn(e,t){if(e==null)return e;let n=t?.escape?Kv(e):e;return n=n.trim().replace(/ /g," ").replace(/\/{2,}/g,"/"),n}const Re=ns("nova-file-manager/browser",{state:()=>({path:void 0,disk:void 0,disks:void 0,page:void 0,search:void 0,perPage:10,perPageOptions:fs(10,60,10),view:"grid",modals:[],callback:()=>{},files:void 0,folders:void 0,breadcrumbs:void 0,pagination:void 0,error:void 0,selection:void 0,preview:void 0,limit:void 0,wrapper:void 0,queue:[],multiple:void 0,ready:!1,isField:!1,isFetchingDisks:!1,isFetchingData:!1,isUploading:!1,loadingOperation:void 0,dark:void 0,tour:!1,resource:void 0,resourceId:void 0,attribute:void 0,singleDisk:!1,flexibleGroup:[],fieldInit:void 0,permissions:{folder:{create:!0,rename:!0,delete:!0},file:{upload:!0,rename:!0,edit:!0,delete:!0,unzip:!0}},chunkSize:50*1024*1024,usePintura:!1,pinturaOptions:{},cropperOptions:{}}),actions:{init(){this.ready||(this.syncDarkMode(),this.loadFromLocalStorage(),this.loadFromQueryString(),this.ready=!0)},syncDarkMode(){this.dark===void 0&&(this.dark=document.documentElement.classList.contains("dark")),window.Nova.$on("nova-theme-switched",({theme:e})=>{this.dark=e==="dark"})},loadFromLocalStorage(){if(this.isField)return;["perPage","view","disk"].forEach(t=>{const n=window?.localStorage.getItem(`nova-file-manager/${t}`);n&&n.length&&this.$patch({[t]:n})})},loadFromQueryString(){if(this.isField)return;const e=Object.fromEntries(new URLSearchParams(window?.location.search).entries());for(const[t,n]of Object.entries(e))["path","disk","page","perPage"].includes(t)&&this.$patch({[t]:n});window.location.href.includes("?")||(this.path="/")},saveToLocalStorage({values:e}){if(!(this.isField||!e))for(const[t,n]of Object.entries(e))n&&window?.localStorage.setItem(`nova-file-manager/${t}`,n.toString())},selectFile({file:e}){if(!this.selection){this.selection=[e];return}this.selection.push(e)},deselectFile({file:e}){this.selection=this.selection?.filter(t=>t.id!==e.id)},setSelection({files:e}){this.selection=e},clearSelection(){this.setSelection({files:void 0})},toggleSelection({file:e}){if(this.isSelected(e)){this.deselectFile({file:e});return}this.multiple||this.clearSelection(),this.selectFile({file:e})},openModal({name:e}){this.modals.unshift(e)},closeModal({name:e}){e===ps&&(this.preview=void 0),this.modals=this.modals.filter(t=>t!==e),this.resetError(),this.fixPortal()},setError({attribute:e,bag:t}){this.error={attribute:e,bag:t}},resetError(){this.error=void 0},queueFile({file:e}){this.queue.push({id:e.name,ratio:0,status:null,file:e,isImage:e.type.includes("image")??!1})},clearQueue(){this.queue=[]},updateQueue({id:e,ratio:t=100,status:n=null}){this.queue=this.queue.map(r=>r.id===e?{...r,status:n,ratio:t}:r),this.queue.reduce((r,i)=>r&&i.ratio===100,!0)&&this.queue.length&&setTimeout(async()=>{this.closeModal({name:fm}),this.closeModal({name:la}),this.clearQueue(),this.isUploading=!1,await this.data()},1e3)},fixPortal(){this.modals.length||this.preview||setTimeout(()=>{document.documentElement.style.removeProperty("overflow"),document.documentElement.style.removeProperty("padding-right")},200)},setQueryString({parameters:e}){if(this.isField)return;const t=new URLSearchParams(window.location.search),n={url:`${window.location.pathname}${window.location.search}`};for(const[a,r]of Object.entries(e)){const i=r?.toString();if(!i){t.delete(a);continue}i?.length>0&&t.set(a,i)}if(n.url!==`${window.location.pathname}?${t}`){n.url=`${window.location.pathname}?${t}`;const a=t.toString().length>0?"?":"";window.history.pushState(n,"",`${window.location.pathname}${a}${t}`)}},reset(){["page","search","path"].forEach(t=>{this.$patch({[t]:null})})},async setPath({path:e}){this.reset(),this.path=e,this.setQueryString({parameters:{page:null,search:null,path:e}})},async setDisk({disk:e}){this.reset(),this.disk=e,this.setQueryString({parameters:{disk:e}}),this.saveToLocalStorage({values:{disk:e,page:null,search:null,path:null}})},async setPerPage({perPage:e}){this.perPage=e,this.page=1,this.setQueryString({parameters:{perPage:e}}),this.saveToLocalStorage({values:{perPage:e}})},async setPage({page:e}){this.page=e,this.setQueryString({parameters:{page:e}})},setView({view:e}){this.view=e,this.saveToLocalStorage({values:{view:e}})},setSearch({search:e}){this.search=e,this.setQueryString({parameters:{search:e}})},setPreview({preview:e}){this.preview=e},async deleteSelectedFiles(){await this.deleteFiles({paths:this.selection?.map(e=>e.path)??[]})},async data(){this.isFetchingData=!0;const{data:e}=await this.get({params:this.payload({path:this.path,page:this.page,perPage:this.perPage,search:this.search})});this.disk=e.disk,this.folders=e.folders,this.breadcrumbs=e.breadcrumbs,this.files=e.files,this.pagination=e.pagination,this.isFetchingData=!1},async getDisks(){this.isFetchingDisks=!0;const{data:e}=await this.get({path:ln.DISKS});this.disks=e,this.isFetchingDisks=!1},async createFolder({path:e}){await To({operation:Qt.CREATE_FOLDER,modal:Ut.CREATE_FOLDER,endpoint:ln.CREATE_FOLDER,data:this.payload({path:Nn(`${this.path??""}/${Nn(e)}`,{escape:!1})})})},async renameFolder({id:e,from:t,to:n}){await To({operation:Qt.RENAME_FOLDER,modal:`${Ut.RENAME_FOLDER}-${e}`,endpoint:ln.RENAME_FOLDER,data:this.payload({path:this.path,from:Nn(t,{escape:!1}),to:Nn(`${this.path??""}/${Nn(n)}`,{escape:!1})})})},async deleteFolder({id:e,path:t}){await To({operation:Qt.DELETE_FOLDER,modal:`${Ut.DELETE_FOLDER}-${e}`,endpoint:ln.DELETE_FOLDER,data:this.payload({path:t})})},upload({files:e}){this.isUploading=!0;const t=new um({permanentErrors:[400,404,409,415,419,422,500,501],chunkSize:this.chunkSize,maxChunkRetries:5,chunkRetryInterval:1e3,simultaneousUploads:1,testChunks:!1,target:this.url(ln.UPLOAD),query:this.payload({path:this.path??"/"}),headers:{Accept:"application/json","X-CSRF-TOKEN":pc()}});e.forEach(n=>{t.addFile(n),this.queueFile({file:n})}),t.on("fileAdded",()=>t.upload()),t.on("fileSuccess",n=>{this.updateQueue({id:n.fileName,status:!0})}),t.on("fileProgress",n=>{this.updateQueue({id:n.fileName,ratio:Math.floor(n.progress(!1)*100)})}),t.on("fileError",(n,a)=>{this.updateQueue({id:n.fileName,status:!1}),window.Nova.error(JSON.parse(a).message)})},async renameFile({id:e,from:t,to:n}){await To({operation:Qt.RENAME_FILE,modal:`${Ut.RENAME_FILE}-${e}`,endpoint:ln.RENAME_FILE,data:this.payload({path:this.path,from:Nn(t,{escape:!1}),to:Nn(`${this.path??""}/${Nn(n)}`,{escape:!1})})})},async deleteFiles({paths:e}){e.length!==0&&await To({operation:Qt.DELETE_FILE,modal:Ut.DELETE_FILES,endpoint:ln.DELETE_FILE,data:this.payload({paths:e}),callback:()=>{this.preview=void 0,this.clearSelection()}})},async unzipFile({path:e}){await To({operation:Qt.UNZIP_FILE,endpoint:ln.UNZIP_FILE,data:this.payload({path:e}),callback:()=>{this.preview=void 0,this.clearSelection()}})},downloadUrl(e){return this.url(`/nova-vendor/nova-file-manager/${ln.DOWNLOAD_FILE}?disk=${e.disk}&path=${e.path}`)},async get({path:e,params:t,options:n={}}){return await hc().get(this.url(`/nova-vendor/nova-file-manager${e??""}`),{params:t,...n})},async post({path:e,data:t}){return await hc().post(this.url(`/nova-vendor/nova-file-manager${e??""}`),t)},payload(e){let t={...e,attribute:this.attribute,resource:this.resource,fieldMode:this.isField};if(this.component?.length&&["Nova.Create","Nova.Update"].includes(this.component)){let n;switch(this.component){case"Nova.Create":n="create";break;case"Nova.Update":n="update";break}t={...t,editing:!0,editMode:n}}return this.wrapper?.length&&(t={...t,wrapper:this.wrapper}),this.resourceId&&(t={...t,resourceId:this.resourceId}),this.singleDisk||(t={...t,disk:this.disk}),this.isField&&this.flexibleGroup?.length&&(t={...t,flexible:this.flexibleGroup.join(".")}),t},url(e){const t=this.isField?`/${this.resource}`:"";return`${e}${t}`.replace("//","/")},openBrowser({initialFiles:e,multiple:t,limit:n,wrapper:a,resource:r,resourceId:i,attribute:s,singleDisk:l,permissions:c,flexibleGroup:d,callback:f,usePintura:p,pinturaOptions:h,cropperOptions:v,paginationOptions:u,component:m}){this.isField=!0,this.multiple=t,this.limit=n,this.wrapper=a,this.resource=r,this.resourceId=i,this.attribute=s,this.singleDisk=l,this.flexibleGroup=d,this.callback=f,this.usePintura=p,this.pinturaOptions=h,this.cropperOptions=v,this.perPageOptions=u??this.perPageOptions,this.error=void 0,this.permissions=c,this.disk=void 0,this.component=m,this.openModal({name:hs}),this.setSelection({files:[...e]})},closeBrowser(){this.isField=!1,this.multiple=void 0,this.limit=void 0,this.wrapper=void 0,this.resource=void 0,this.resourceId=void 0,this.attribute=void 0,this.singleDisk=!1,this.flexibleGroup=[],this.callback=void 0,this.usePintura=!1,this.pinturaOptions={},this.cropperOptions={},this.perPage=10,this.perPageOptions=fs(10,60,10),this.error=void 0,this.permissions=void 0,this.disk=void 0,this.setSelection({files:[]}),this.closeModal({name:hs})},confirm(){this.callback&&this.callback(this.selection),this.closeBrowser()},prepareTool({singleDisk:e,permissions:t,tour:n,usePintura:a,pinturaOptions:r,cropperOptions:i,paginationOptions:s}){this.init(),this.clearSelection(),this.limit=void 0,this.isField=!1,this.multiple=!0,this.singleDisk=e,this.permissions=t,this.tour=n,this.usePintura=a,this.pinturaOptions=r,this.cropperOptions=i,this.perPageOptions=s??this.perPageOptions,this.error=void 0}},getters:{isOpen(){return e=>e===ps?!!this.preview:this.modals.includes(e)},isSelected(){return e=>!!this.selection?.find(t=>t.id===e.id)},isBrowserOpen(e){return e.modals.includes(hs)}}}),xc=o.defineComponent({__name:"FieldCard",props:{file:{},detail:{type:Boolean,default:!1},field:{},onDeselect:{}},setup(e){const t=Re(),n=e,a=o.computed(()=>t.singleDisk),r=s=>t.preview=s,i=s=>{n.detail&&s.exists&&r(s)};return(s,l)=>(o.openBlock(),o.createBlock(ls,{file:s.file,selected:!1,"on-deselect":s.onDeselect,"single-disk":a.value,"field-mode":!0,onClick:l[0]||(l[0]=o.withModifiers(c=>i(s.file),["prevent","stop"]))},null,8,["file","on-deselect","single-disk"]))}});function ko(e,t,n){let a=n.initialDeps??[],r;return()=>{var i,s,l,c;let d;n.key&&((i=n.debug)!=null&&i.call(n))&&(d=Date.now());const f=e();if(!(f.length!==a.length||f.some((v,u)=>a[u]!==v)))return r;a=f;let h;if(n.key&&((s=n.debug)!=null&&s.call(n))&&(h=Date.now()),r=t(...f),n.key&&((l=n.debug)!=null&&l.call(n))){const v=Math.round((Date.now()-d)*100)/100,u=Math.round((Date.now()-h)*100)/100,m=u/16,y=(b,g)=>{for(b=String(b);b.lengthMath.abs(e-t)<1;var ha={GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_8df45352-2442-42b9-bd08-59b02c7e4f14",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v18.20.5 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_8df45352-2442-42b9-bd08-59b02c7e4f14",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/18.20.5/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/nova-file-manager/nova-file-manager/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"oneduo",GRADLE_HOME:"/usr/share/gradle-8.12",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"113685820",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu22",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/nova-file-manager/nova-file-manager",SYSTEMD_EXEC_PID:"605",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250105.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.10/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.4/x64",JOURNAL_STREAM:"8:19651",GITHUB_WORKFLOW:"Update Assets",_:"/opt/hostedtoolcache/node/18.20.5/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/18.20.5/x64",npm_config_npm_version:"10.8.2",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"12678171174",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"ef07c4c3c7035eecc91a563bbcc42ce64816e8a1",GITHUB_BASE_REF:"",ImageOS:"ubuntu22",GITHUB_WORKFLOW_REF:"oneduo/nova-file-manager/.github/workflows/update-assets.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/nova-file-manager/nova-file-manager/node_modules/.bin:/home/runner/work/nova-file-manager/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/nova-file-manager/nova-file-manager/node_modules/.bin:/home/runner/work/nova-file-manager/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_7d0c5ee4-463b-4122-b3c3-68dc5015064c",INVOCATION_ID:"db736f8e4407420d9d772be88c4fa0db",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/18.20.5/x64/bin/node",npm_package_name:"nova-file-manager",GITHUB_ACTION:"__run",GITHUB_RUN_NUMBER:"708",GITHUB_TRIGGERING_ACTOR:"mikaelpopowicz",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 17",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"oneduo/nova-file-manager",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"505375003",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"0.8.0",npm_lifecycle_event:"build",GITHUB_REF_PROTECTED:"false",GITHUB_WORKSPACE:"/home/runner/work/nova-file-manager/nova-file-manager",ACCEPT_EULA:"Y",GITHUB_JOB:"update",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"ef07c4c3c7035eecc91a563bbcc42ce64816e8a1",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"mikaelpopowicz",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",LEIN_HOME:"/usr/local/lib/lein",npm_config_globalconfig:"/opt/hostedtoolcache/node/18.20.5/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_8df45352-2442-42b9-bd08-59b02c7e4f14",JAVA_HOME:"/usr/lib/jvm/temurin-11-jdk-amd64",PWD:"/home/runner/work/nova-file-manager/nova-file-manager",GITHUB_ACTOR_ID:"5689944",RUNNER_WORKSPACE:"/home/runner/work/nova-file-manager",npm_execpath:"/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",LEIN_JAR:"/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_8df45352-2442-42b9-bd08-59b02c7e4f14",npm_config_global_prefix:"/opt/hostedtoolcache/node/18.20.5/x64",TAILWIND_MODE:"build",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_8df45352-2442-42b9-bd08-59b02c7e4f14",INIT_CWD:"/home/runner/work/nova-file-manager/nova-file-manager",EDITOR:"vi",NODE_ENV:"production"};const Yv=e=>e,Jv=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),a=[];for(let r=t;r<=n;r++)a.push(r);return a},Qv=(e,t)=>{const n=e.scrollElement;if(!n)return;const a=i=>{const{width:s,height:l}=i;t({width:Math.round(s),height:Math.round(l)})};if(a(n.getBoundingClientRect()),typeof ResizeObserver>"u")return()=>{};const r=new ResizeObserver(i=>{const s=i[0];if(s?.borderBoxSize){const l=s.borderBoxSize[0];if(l){a({width:l.inlineSize,height:l.blockSize});return}}a(n.getBoundingClientRect())});return r.observe(n,{box:"border-box"}),()=>{r.unobserve(n)}},Zv=(e,t)=>{const n=e.scrollElement;if(!n)return;const a=()=>{t(n[e.options.horizontal?"scrollLeft":"scrollTop"])};return a(),n.addEventListener("scroll",a,{passive:!0}),()=>{n.removeEventListener("scroll",a)}},qv=(e,t,n)=>{if(t?.borderBoxSize){const a=t.borderBoxSize[0];if(a)return Math.round(a[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},$v=(e,{adjustments:t=0,behavior:n},a)=>{var r,i;const s=e+t;(i=(r=a.scrollElement)==null?void 0:r.scrollTo)==null||i.call(r,{[a.options.horizontal?"left":"top"]:s,behavior:n})};class eg{constructor(t){this.unsubs=[],this.scrollElement=null,this.isScrolling=!1,this.isScrollingTimeoutId=null,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=(()=>{let n=null;const a=()=>n||(typeof ResizeObserver<"u"?n=new ResizeObserver(r=>{r.forEach(i=>{this._measureElement(i.target,i)})}):null);return{disconnect:()=>{var r;return(r=a())==null?void 0:r.disconnect()},observe:r=>{var i;return(i=a())==null?void 0:i.observe(r,{box:"border-box"})},unobserve:r=>{var i;return(i=a())==null?void 0:i.unobserve(r)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([a,r])=>{typeof r>"u"&&delete n[a]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Yv,rangeExtractor:Jv,onChange:()=>{},measureElement:qv,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,...n}},this.notify=n=>{var a,r;(r=(a=this.options).onChange)==null||r.call(a,this,n)},this.maybeNotify=ko(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:ha.NODE_ENV!=="production",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.scrollElement=null},this._didMount=()=>(this.measureElementCache.forEach(this.observer.observe),()=>{this.observer.disconnect(),this.cleanup()}),this._willUpdate=()=>{const n=this.options.getScrollElement();this.scrollElement!==n&&(this.cleanup(),this.scrollElement=n,this._scrollToOffset(this.scrollOffset,{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,a=>{this.scrollAdjustments=0,this.scrollOffset!==a&&(this.isScrollingTimeoutId!==null&&(clearTimeout(this.isScrollingTimeoutId),this.isScrollingTimeoutId=null),this.isScrolling=!0,this.scrollDirection=this.scrollOffset{this.isScrollingTimeoutId=null,this.isScrolling=!1,this.scrollDirection=null,this.maybeNotify()},this.options.scrollingDelay))})))},this.getSize=()=>this.scrollRect[this.options.horizontal?"width":"height"],this.memoOptions=ko(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey],(n,a,r,i)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:a,scrollMargin:r,getItemKey:i}),{key:!1}),this.getFurthestMeasurement=(n,a)=>{const r=new Map,i=new Map;for(let s=a-1;s>=0;s--){const l=n[s];if(r.has(l.lane))continue;const c=i.get(l.lane);if(c==null||l.end>c.end?i.set(l.lane,l):l.ends.end===l.end?s.index-l.index:s.end-l.end)[0]:void 0},this.getMeasurements=ko(()=>[this.memoOptions(),this.itemSizeCache],({count:n,paddingStart:a,scrollMargin:r,getItemKey:i},s)=>{const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,l);for(let d=l;dthis.options.debug}),this.calculateRange=ko(()=>[this.getMeasurements(),this.getSize(),this.scrollOffset],(n,a,r)=>this.range=n.length>0&&a>0?tg({measurements:n,outerSize:a,scrollOffset:r}):null,{key:ha.NODE_ENV!=="production",debug:()=>this.options.debug}),this.getIndexes=ko(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(n,a,r,i)=>a===null?[]:n({...a,overscan:r,count:i}),{key:ha.NODE_ENV!=="production",debug:()=>this.options.debug}),this.indexFromElement=n=>{const a=this.options.indexAttribute,r=n.getAttribute(a);return r?parseInt(r,10):(console.warn(`Missing attribute name '${a}={index}' on measured element.`),-1)},this._measureElement=(n,a)=>{const r=this.measurementsCache[this.indexFromElement(n)];if(!r||!n.isConnected){this.measureElementCache.forEach((l,c)=>{l===n&&(this.observer.unobserve(n),this.measureElementCache.delete(c))});return}const i=this.measureElementCache.get(r.key);i!==n&&(i&&this.observer.unobserve(i),this.observer.observe(n),this.measureElementCache.set(r.key,n));const s=this.options.measureElement(n,a,this);this.resizeItem(r,s)},this.resizeItem=(n,a)=>{const r=this.itemSizeCache.get(n.key)??n.size,i=a-r;i!==0&&(n.start{n&&this._measureElement(n,void 0)},this.getVirtualItems=ko(()=>[this.getIndexes(),this.getMeasurements()],(n,a)=>{const r=[];for(let i=0,s=n.length;ithis.options.debug}),this.getVirtualItemForOffset=n=>{const a=this.getMeasurements();return Is(a[Sc(0,a.length-1,r=>Is(a[r]).start,n)])},this.getOffsetForAlignment=(n,a)=>{const r=this.getSize();a==="auto"&&(n<=this.scrollOffset?a="start":n>=this.scrollOffset+r?a="end":a="start"),a==="start"?n=n:a==="end"?n=n-r:a==="center"&&(n=n-r/2);const i=this.options.horizontal?"scrollWidth":"scrollHeight",l=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-this.getSize();return Math.max(Math.min(l,n),0)},this.getOffsetForIndex=(n,a="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const r=Is(this.getMeasurements()[n]);if(a==="auto")if(r.end>=this.scrollOffset+this.getSize()-this.options.scrollPaddingEnd)a="end";else if(r.start<=this.scrollOffset+this.options.scrollPaddingStart)a="start";else return[this.scrollOffset,a];const i=a==="end"?r.end+this.options.scrollPaddingEnd:r.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,a),a]},this.isDynamicMode=()=>this.measureElementCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&(clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:a="start",behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,a),{adjustments:void 0,behavior:r})},this.scrollToIndex=(n,{align:a="auto",behavior:r}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const[i,s]=this.getOffsetForIndex(n,a);this._scrollToOffset(i,{adjustments:void 0,behavior:r}),r!=="smooth"&&this.isDynamicMode()&&(this.scrollToIndexTimeoutId=setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.measureElementCache.has(this.options.getItemKey(n))){const[c]=this.getOffsetForIndex(n,s);Xv(c,this.scrollOffset)||this.scrollToIndex(n,{align:s,behavior:r})}else this.scrollToIndex(n,{align:s,behavior:r})}))},this.scrollBy=(n,{behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.scrollOffset+n,{adjustments:void 0,behavior:a})},this.getTotalSize=()=>{var n;const a=this.getMeasurements();let r;return a.length===0?r=this.options.paddingStart:r=this.options.lanes===1?((n=a[a.length-1])==null?void 0:n.end)??0:Math.max(...a.slice(-this.options.lanes).map(i=>i.end)),r-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(n,{adjustments:a,behavior:r})=>{this.options.scrollToFn(n,{behavior:r,adjustments:a},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(n=>{this.itemSizeCache.set(n.key,n.size)}),this.maybeNotify()}}const Sc=(e,t,n,a)=>{for(;e<=t;){const r=(e+t)/2|0,i=n(r);if(ia)t=r-1;else return r}return e>0?e-1:0};function tg({measurements:e,outerSize:t,scrollOffset:n}){const a=e.length-1,i=Sc(0,a,l=>e[l].start,n);let s=i;for(;so.unref(e).getScrollElement(),r=>{r&&t._willUpdate()},{immediate:!0}),o.watch(()=>o.unref(e),r=>{t.setOptions({...r,onChange:(i,s)=>{var l;o.triggerRef(n),(l=r.onChange)==null||l.call(r,i,s)}}),t._willUpdate(),o.triggerRef(n)},{immediate:!0}),o.onScopeDispose(a),n}function og(e){return ng(o.computed(()=>({observeElementRect:Qv,observeElementOffset:Zv,scrollToFn:$v,...o.unref(e)})))}function ag(e,t,n){let a=o.ref(n?.value),r=o.computed(()=>e.value!==void 0);return[o.computed(()=>r.value?e.value:a.value),function(i){return r.value||(a.value=i),t?.(i)}]}function _s(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function kn(){let e=[],t={addEventListener(n,a,r,i){return n.addEventListener(a,r,i),t.add(()=>n.removeEventListener(a,r,i))},requestAnimationFrame(...n){let a=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(a))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let a=setTimeout(...n);t.add(()=>clearTimeout(a))},microTask(...n){let a={current:!0};return _s(()=>{a.current&&n[0]()}),t.add(()=>{a.current=!1})},style(n,a,r){let i=n.style.getPropertyValue(a);return Object.assign(n.style,{[a]:r}),this.add(()=>{Object.assign(n.style,{[a]:i})})},group(n){let a=kn();return n(a),this.add(()=>a.dispose())},add(n){return e.push(n),()=>{let a=e.indexOf(n);if(a>=0)for(let r of e.splice(a,1))r()}},dispose(){for(let n of e.splice(0))n()}};return t}function rg(){let e=kn();return o.onUnmounted(()=>e.dispose()),e}function sg(){let e=rg();return t=>{e.dispose(),e.nextFrame(t)}}let ig=Symbol("headlessui.useid"),lg=0;function dt(){return o.inject(ig,()=>`${++lg}`)()}function ae(e){var t;if(e==null||e.value==null)return null;let n=(t=e.value.$el)!=null?t:e.value;return n instanceof Node?n:null}function tt(e,t,...n){if(e in t){let r=t[e];return typeof r=="function"?r(...n):r}let a=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(a,tt),a}var cg=Object.defineProperty,dg=(e,t,n)=>t in e?cg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Oc=(e,t,n)=>(dg(e,typeof t!="symbol"?t+"":t,n),n);let ug=class{constructor(){Oc(this,"current",this.detect()),Oc(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},ma=new ug;function cn(e){if(ma.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=ae(e);if(t)return t.ownerDocument}return document}let As=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var $t=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))($t||{}),Tc=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Tc||{}),fg=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(fg||{});function Cc(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(As)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Ds=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ds||{});function Rs(e,t=0){var n;return e===((n=cn(e))==null?void 0:n.body)?!1:tt(t,{0(){return e.matches(As)},1(){let a=e;for(;a!==null;){if(a.matches(As))return!0;a=a.parentElement}return!1}})}function Nc(e){let t=cn(e);o.nextTick(()=>{t&&!Rs(t.activeElement,0)&&In(e)})}var pg=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(pg||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function In(e){e?.focus({preventScroll:!0})}let hg=["textarea","input"].join(",");function mg(e){var t,n;return(n=(t=e?.matches)==null?void 0:t.call(e,hg))!=null?n:!1}function Ps(e,t=n=>n){return e.slice().sort((n,a)=>{let r=t(n),i=t(a);if(r===null||i===null)return 0;let s=r.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function vg(e,t){return va(Cc(),t,{relativeTo:e})}function va(e,t,{sorted:n=!0,relativeTo:a=null,skipElements:r=[]}={}){var i;let s=(i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e?.ownerDocument)!=null?i:document,l=Array.isArray(e)?n?Ps(e):e:Cc(e);r.length>0&&l.length>1&&(l=l.filter(u=>!r.includes(u))),a=a??s.activeElement;let c=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(a))-1;if(t&4)return Math.max(0,l.indexOf(a))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=t&32?{preventScroll:!0}:{},p=0,h=l.length,v;do{if(p>=h||p+h<=0)return 0;let u=d+p;if(t&16)u=(u+h)%h;else{if(u<0)return 3;if(u>=h)return 1}v=l[u],v?.focus(f),p+=c}while(v!==s.activeElement);return t&6&&mg(v)&&v.select(),2}function kc(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function gg(){return/Android/gi.test(window.navigator.userAgent)}function Ic(){return kc()||gg()}function rr(e,t,n){ma.isServer||o.watchEffect(a=>{document.addEventListener(e,t,n),a(()=>document.removeEventListener(e,t,n))})}function _c(e,t,n){ma.isServer||o.watchEffect(a=>{window.addEventListener(e,t,n),a(()=>window.removeEventListener(e,t,n))})}function Bs(e,t,n=o.computed(()=>!0)){function a(i,s){if(!n.value||i.defaultPrevented)return;let l=s(i);if(l===null||!l.getRootNode().contains(l))return;let c=function d(f){return typeof f=="function"?d(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e);for(let d of c){if(d===null)continue;let f=d instanceof HTMLElement?d:ae(d);if(f!=null&&f.contains(l)||i.composed&&i.composedPath().includes(f))return}return!Rs(l,Ds.Loose)&&l.tabIndex!==-1&&i.preventDefault(),t(i,l)}let r=o.ref(null);rr("pointerdown",i=>{var s,l;n.value&&(r.value=((l=(s=i.composedPath)==null?void 0:s.call(i))==null?void 0:l[0])||i.target)},!0),rr("mousedown",i=>{var s,l;n.value&&(r.value=((l=(s=i.composedPath)==null?void 0:s.call(i))==null?void 0:l[0])||i.target)},!0),rr("click",i=>{Ic()||r.value&&(a(i,()=>r.value),r.value=null)},!0),rr("touchend",i=>a(i,()=>i.target instanceof HTMLElement?i.target:null),!0),_c("blur",i=>a(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Ac(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Ms(e,t){let n=o.ref(Ac(e.value.type,e.value.as));return o.onMounted(()=>{n.value=Ac(e.value.type,e.value.as)}),o.watchEffect(()=>{var a;n.value||ae(t)&&ae(t)instanceof HTMLButtonElement&&!((a=ae(t))!=null&&a.hasAttribute("type"))&&(n.value="button")}),n}function Dc(e){return[e.screenX,e.screenY]}function Rc(){let e=o.ref([-1,-1]);return{wasMoved(t){let n=Dc(t);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(t){e.value=Dc(t)}}}function Pc({container:e,accept:t,walk:n,enabled:a}){o.watchEffect(()=>{let r=e.value;if(!r||a!==void 0&&!a.value)return;let i=cn(e);if(!i)return;let s=Object.assign(c=>t(c),{acceptNode:t}),l=i.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)n(l.currentNode)})}var At=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(At||{}),_n=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(_n||{});function Be({visible:e=!0,features:t=0,ourProps:n,theirProps:a,...r}){var i;let s=Mc(a,n),l=Object.assign(r,{props:s});if(e||t&2&&s.static)return Fs(l);if(t&1){let c=(i=s.unmount)==null||i?0:1;return tt(c,{0(){return null},1(){return Fs({...r,props:{...s,hidden:!0,style:{display:"none"}}})}})}return Fs(l)}function Fs({props:e,attrs:t,slots:n,slot:a,name:r}){var i,s;let{as:l,...c}=ga(e,["unmount","static"]),d=(i=n.default)==null?void 0:i.call(n,a),f={};if(a){let p=!1,h=[];for(let[v,u]of Object.entries(a))typeof u=="boolean"&&(p=!0),u===!0&&h.push(v);p&&(f["data-headlessui-state"]=h.join(" "))}if(l==="template"){if(d=Bc(d??[]),Object.keys(c).length>0||Object.keys(t).length>0){let[p,...h]=d??[];if(!yg(p)||h.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${r} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(t)).map(m=>m.trim()).filter((m,y,b)=>b.indexOf(m)===y).sort((m,y)=>m.localeCompare(y)).map(m=>` - ${m}`).join(` + color: hsl(${Math.max(0,Math.min(120-120*m,120))}deg 100% 31%);`,n?.key)}return(c=n?.onChange)==null||c.call(n,r),r}}function Is(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const Xv=(e,t)=>Math.abs(e-t)<1;var ha={GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_3146d294-8692-4e27-9f26-e034b6790067",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v18.20.5 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_3146d294-8692-4e27-9f26-e034b6790067",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/18.20.5/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/nova-file-manager/nova-file-manager/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"oneduo",GRADLE_HOME:"/usr/share/gradle-8.12",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"113685820",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu22",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/nova-file-manager/nova-file-manager",SYSTEMD_EXEC_PID:"602",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250105.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.10/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.4/x64",JOURNAL_STREAM:"8:19547",GITHUB_WORKFLOW:"Update Assets",_:"/opt/hostedtoolcache/node/18.20.5/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/18.20.5/x64",npm_config_npm_version:"10.8.2",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"12678367062",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"ff15776b270606fa2130806a97192b92cef4c9b5",GITHUB_BASE_REF:"",ImageOS:"ubuntu22",GITHUB_WORKFLOW_REF:"oneduo/nova-file-manager/.github/workflows/update-assets.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/nova-file-manager/nova-file-manager/node_modules/.bin:/home/runner/work/nova-file-manager/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/nova-file-manager/nova-file-manager/node_modules/.bin:/home/runner/work/nova-file-manager/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_f2d29651-7625-4d56-beca-0b3a5e6d1de5",INVOCATION_ID:"6ac8096a4217431f8bc56d5c0bd63cb5",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/18.20.5/x64/bin/node",npm_package_name:"nova-file-manager",GITHUB_ACTION:"__run",GITHUB_RUN_NUMBER:"710",GITHUB_TRIGGERING_ACTOR:"mikaelpopowicz",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 5",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"oneduo/nova-file-manager",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"505375003",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"0.8.0",npm_lifecycle_event:"build",GITHUB_REF_PROTECTED:"false",GITHUB_WORKSPACE:"/home/runner/work/nova-file-manager/nova-file-manager",ACCEPT_EULA:"Y",GITHUB_JOB:"update",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"ff15776b270606fa2130806a97192b92cef4c9b5",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"mikaelpopowicz",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",LEIN_HOME:"/usr/local/lib/lein",npm_config_globalconfig:"/opt/hostedtoolcache/node/18.20.5/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_3146d294-8692-4e27-9f26-e034b6790067",JAVA_HOME:"/usr/lib/jvm/temurin-11-jdk-amd64",PWD:"/home/runner/work/nova-file-manager/nova-file-manager",GITHUB_ACTOR_ID:"5689944",RUNNER_WORKSPACE:"/home/runner/work/nova-file-manager",npm_execpath:"/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",LEIN_JAR:"/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_3146d294-8692-4e27-9f26-e034b6790067",npm_config_global_prefix:"/opt/hostedtoolcache/node/18.20.5/x64",TAILWIND_MODE:"build",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_3146d294-8692-4e27-9f26-e034b6790067",INIT_CWD:"/home/runner/work/nova-file-manager/nova-file-manager",EDITOR:"vi",NODE_ENV:"production"};const Yv=e=>e,Jv=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),a=[];for(let r=t;r<=n;r++)a.push(r);return a},Qv=(e,t)=>{const n=e.scrollElement;if(!n)return;const a=i=>{const{width:s,height:l}=i;t({width:Math.round(s),height:Math.round(l)})};if(a(n.getBoundingClientRect()),typeof ResizeObserver>"u")return()=>{};const r=new ResizeObserver(i=>{const s=i[0];if(s?.borderBoxSize){const l=s.borderBoxSize[0];if(l){a({width:l.inlineSize,height:l.blockSize});return}}a(n.getBoundingClientRect())});return r.observe(n,{box:"border-box"}),()=>{r.unobserve(n)}},Zv=(e,t)=>{const n=e.scrollElement;if(!n)return;const a=()=>{t(n[e.options.horizontal?"scrollLeft":"scrollTop"])};return a(),n.addEventListener("scroll",a,{passive:!0}),()=>{n.removeEventListener("scroll",a)}},qv=(e,t,n)=>{if(t?.borderBoxSize){const a=t.borderBoxSize[0];if(a)return Math.round(a[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},$v=(e,{adjustments:t=0,behavior:n},a)=>{var r,i;const s=e+t;(i=(r=a.scrollElement)==null?void 0:r.scrollTo)==null||i.call(r,{[a.options.horizontal?"left":"top"]:s,behavior:n})};class eg{constructor(t){this.unsubs=[],this.scrollElement=null,this.isScrolling=!1,this.isScrollingTimeoutId=null,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=(()=>{let n=null;const a=()=>n||(typeof ResizeObserver<"u"?n=new ResizeObserver(r=>{r.forEach(i=>{this._measureElement(i.target,i)})}):null);return{disconnect:()=>{var r;return(r=a())==null?void 0:r.disconnect()},observe:r=>{var i;return(i=a())==null?void 0:i.observe(r,{box:"border-box"})},unobserve:r=>{var i;return(i=a())==null?void 0:i.unobserve(r)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([a,r])=>{typeof r>"u"&&delete n[a]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Yv,rangeExtractor:Jv,onChange:()=>{},measureElement:qv,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,...n}},this.notify=n=>{var a,r;(r=(a=this.options).onChange)==null||r.call(a,this,n)},this.maybeNotify=ko(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:ha.NODE_ENV!=="production",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.scrollElement=null},this._didMount=()=>(this.measureElementCache.forEach(this.observer.observe),()=>{this.observer.disconnect(),this.cleanup()}),this._willUpdate=()=>{const n=this.options.getScrollElement();this.scrollElement!==n&&(this.cleanup(),this.scrollElement=n,this._scrollToOffset(this.scrollOffset,{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,a=>{this.scrollAdjustments=0,this.scrollOffset!==a&&(this.isScrollingTimeoutId!==null&&(clearTimeout(this.isScrollingTimeoutId),this.isScrollingTimeoutId=null),this.isScrolling=!0,this.scrollDirection=this.scrollOffset{this.isScrollingTimeoutId=null,this.isScrolling=!1,this.scrollDirection=null,this.maybeNotify()},this.options.scrollingDelay))})))},this.getSize=()=>this.scrollRect[this.options.horizontal?"width":"height"],this.memoOptions=ko(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey],(n,a,r,i)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:a,scrollMargin:r,getItemKey:i}),{key:!1}),this.getFurthestMeasurement=(n,a)=>{const r=new Map,i=new Map;for(let s=a-1;s>=0;s--){const l=n[s];if(r.has(l.lane))continue;const c=i.get(l.lane);if(c==null||l.end>c.end?i.set(l.lane,l):l.ends.end===l.end?s.index-l.index:s.end-l.end)[0]:void 0},this.getMeasurements=ko(()=>[this.memoOptions(),this.itemSizeCache],({count:n,paddingStart:a,scrollMargin:r,getItemKey:i},s)=>{const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,l);for(let d=l;dthis.options.debug}),this.calculateRange=ko(()=>[this.getMeasurements(),this.getSize(),this.scrollOffset],(n,a,r)=>this.range=n.length>0&&a>0?tg({measurements:n,outerSize:a,scrollOffset:r}):null,{key:ha.NODE_ENV!=="production",debug:()=>this.options.debug}),this.getIndexes=ko(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(n,a,r,i)=>a===null?[]:n({...a,overscan:r,count:i}),{key:ha.NODE_ENV!=="production",debug:()=>this.options.debug}),this.indexFromElement=n=>{const a=this.options.indexAttribute,r=n.getAttribute(a);return r?parseInt(r,10):(console.warn(`Missing attribute name '${a}={index}' on measured element.`),-1)},this._measureElement=(n,a)=>{const r=this.measurementsCache[this.indexFromElement(n)];if(!r||!n.isConnected){this.measureElementCache.forEach((l,c)=>{l===n&&(this.observer.unobserve(n),this.measureElementCache.delete(c))});return}const i=this.measureElementCache.get(r.key);i!==n&&(i&&this.observer.unobserve(i),this.observer.observe(n),this.measureElementCache.set(r.key,n));const s=this.options.measureElement(n,a,this);this.resizeItem(r,s)},this.resizeItem=(n,a)=>{const r=this.itemSizeCache.get(n.key)??n.size,i=a-r;i!==0&&(n.start{n&&this._measureElement(n,void 0)},this.getVirtualItems=ko(()=>[this.getIndexes(),this.getMeasurements()],(n,a)=>{const r=[];for(let i=0,s=n.length;ithis.options.debug}),this.getVirtualItemForOffset=n=>{const a=this.getMeasurements();return Is(a[Sc(0,a.length-1,r=>Is(a[r]).start,n)])},this.getOffsetForAlignment=(n,a)=>{const r=this.getSize();a==="auto"&&(n<=this.scrollOffset?a="start":n>=this.scrollOffset+r?a="end":a="start"),a==="start"?n=n:a==="end"?n=n-r:a==="center"&&(n=n-r/2);const i=this.options.horizontal?"scrollWidth":"scrollHeight",l=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-this.getSize();return Math.max(Math.min(l,n),0)},this.getOffsetForIndex=(n,a="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const r=Is(this.getMeasurements()[n]);if(a==="auto")if(r.end>=this.scrollOffset+this.getSize()-this.options.scrollPaddingEnd)a="end";else if(r.start<=this.scrollOffset+this.options.scrollPaddingStart)a="start";else return[this.scrollOffset,a];const i=a==="end"?r.end+this.options.scrollPaddingEnd:r.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,a),a]},this.isDynamicMode=()=>this.measureElementCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&(clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:a="start",behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,a),{adjustments:void 0,behavior:r})},this.scrollToIndex=(n,{align:a="auto",behavior:r}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const[i,s]=this.getOffsetForIndex(n,a);this._scrollToOffset(i,{adjustments:void 0,behavior:r}),r!=="smooth"&&this.isDynamicMode()&&(this.scrollToIndexTimeoutId=setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.measureElementCache.has(this.options.getItemKey(n))){const[c]=this.getOffsetForIndex(n,s);Xv(c,this.scrollOffset)||this.scrollToIndex(n,{align:s,behavior:r})}else this.scrollToIndex(n,{align:s,behavior:r})}))},this.scrollBy=(n,{behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.scrollOffset+n,{adjustments:void 0,behavior:a})},this.getTotalSize=()=>{var n;const a=this.getMeasurements();let r;return a.length===0?r=this.options.paddingStart:r=this.options.lanes===1?((n=a[a.length-1])==null?void 0:n.end)??0:Math.max(...a.slice(-this.options.lanes).map(i=>i.end)),r-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(n,{adjustments:a,behavior:r})=>{this.options.scrollToFn(n,{behavior:r,adjustments:a},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(n=>{this.itemSizeCache.set(n.key,n.size)}),this.maybeNotify()}}const Sc=(e,t,n,a)=>{for(;e<=t;){const r=(e+t)/2|0,i=n(r);if(ia)t=r-1;else return r}return e>0?e-1:0};function tg({measurements:e,outerSize:t,scrollOffset:n}){const a=e.length-1,i=Sc(0,a,l=>e[l].start,n);let s=i;for(;so.unref(e).getScrollElement(),r=>{r&&t._willUpdate()},{immediate:!0}),o.watch(()=>o.unref(e),r=>{t.setOptions({...r,onChange:(i,s)=>{var l;o.triggerRef(n),(l=r.onChange)==null||l.call(r,i,s)}}),t._willUpdate(),o.triggerRef(n)},{immediate:!0}),o.onScopeDispose(a),n}function og(e){return ng(o.computed(()=>({observeElementRect:Qv,observeElementOffset:Zv,scrollToFn:$v,...o.unref(e)})))}function ag(e,t,n){let a=o.ref(n?.value),r=o.computed(()=>e.value!==void 0);return[o.computed(()=>r.value?e.value:a.value),function(i){return r.value||(a.value=i),t?.(i)}]}function _s(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function kn(){let e=[],t={addEventListener(n,a,r,i){return n.addEventListener(a,r,i),t.add(()=>n.removeEventListener(a,r,i))},requestAnimationFrame(...n){let a=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(a))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let a=setTimeout(...n);t.add(()=>clearTimeout(a))},microTask(...n){let a={current:!0};return _s(()=>{a.current&&n[0]()}),t.add(()=>{a.current=!1})},style(n,a,r){let i=n.style.getPropertyValue(a);return Object.assign(n.style,{[a]:r}),this.add(()=>{Object.assign(n.style,{[a]:i})})},group(n){let a=kn();return n(a),this.add(()=>a.dispose())},add(n){return e.push(n),()=>{let a=e.indexOf(n);if(a>=0)for(let r of e.splice(a,1))r()}},dispose(){for(let n of e.splice(0))n()}};return t}function rg(){let e=kn();return o.onUnmounted(()=>e.dispose()),e}function sg(){let e=rg();return t=>{e.dispose(),e.nextFrame(t)}}let ig=Symbol("headlessui.useid"),lg=0;function dt(){return o.inject(ig,()=>`${++lg}`)()}function ae(e){var t;if(e==null||e.value==null)return null;let n=(t=e.value.$el)!=null?t:e.value;return n instanceof Node?n:null}function tt(e,t,...n){if(e in t){let r=t[e];return typeof r=="function"?r(...n):r}let a=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(a,tt),a}var cg=Object.defineProperty,dg=(e,t,n)=>t in e?cg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Oc=(e,t,n)=>(dg(e,typeof t!="symbol"?t+"":t,n),n);let ug=class{constructor(){Oc(this,"current",this.detect()),Oc(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},ma=new ug;function cn(e){if(ma.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=ae(e);if(t)return t.ownerDocument}return document}let As=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var $t=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))($t||{}),Tc=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Tc||{}),fg=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(fg||{});function Cc(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(As)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Ds=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ds||{});function Rs(e,t=0){var n;return e===((n=cn(e))==null?void 0:n.body)?!1:tt(t,{0(){return e.matches(As)},1(){let a=e;for(;a!==null;){if(a.matches(As))return!0;a=a.parentElement}return!1}})}function Nc(e){let t=cn(e);o.nextTick(()=>{t&&!Rs(t.activeElement,0)&&In(e)})}var pg=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(pg||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function In(e){e?.focus({preventScroll:!0})}let hg=["textarea","input"].join(",");function mg(e){var t,n;return(n=(t=e?.matches)==null?void 0:t.call(e,hg))!=null?n:!1}function Ps(e,t=n=>n){return e.slice().sort((n,a)=>{let r=t(n),i=t(a);if(r===null||i===null)return 0;let s=r.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function vg(e,t){return va(Cc(),t,{relativeTo:e})}function va(e,t,{sorted:n=!0,relativeTo:a=null,skipElements:r=[]}={}){var i;let s=(i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e?.ownerDocument)!=null?i:document,l=Array.isArray(e)?n?Ps(e):e:Cc(e);r.length>0&&l.length>1&&(l=l.filter(u=>!r.includes(u))),a=a??s.activeElement;let c=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(a))-1;if(t&4)return Math.max(0,l.indexOf(a))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=t&32?{preventScroll:!0}:{},p=0,h=l.length,v;do{if(p>=h||p+h<=0)return 0;let u=d+p;if(t&16)u=(u+h)%h;else{if(u<0)return 3;if(u>=h)return 1}v=l[u],v?.focus(f),p+=c}while(v!==s.activeElement);return t&6&&mg(v)&&v.select(),2}function kc(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function gg(){return/Android/gi.test(window.navigator.userAgent)}function Ic(){return kc()||gg()}function rr(e,t,n){ma.isServer||o.watchEffect(a=>{document.addEventListener(e,t,n),a(()=>document.removeEventListener(e,t,n))})}function _c(e,t,n){ma.isServer||o.watchEffect(a=>{window.addEventListener(e,t,n),a(()=>window.removeEventListener(e,t,n))})}function Bs(e,t,n=o.computed(()=>!0)){function a(i,s){if(!n.value||i.defaultPrevented)return;let l=s(i);if(l===null||!l.getRootNode().contains(l))return;let c=function d(f){return typeof f=="function"?d(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e);for(let d of c){if(d===null)continue;let f=d instanceof HTMLElement?d:ae(d);if(f!=null&&f.contains(l)||i.composed&&i.composedPath().includes(f))return}return!Rs(l,Ds.Loose)&&l.tabIndex!==-1&&i.preventDefault(),t(i,l)}let r=o.ref(null);rr("pointerdown",i=>{var s,l;n.value&&(r.value=((l=(s=i.composedPath)==null?void 0:s.call(i))==null?void 0:l[0])||i.target)},!0),rr("mousedown",i=>{var s,l;n.value&&(r.value=((l=(s=i.composedPath)==null?void 0:s.call(i))==null?void 0:l[0])||i.target)},!0),rr("click",i=>{Ic()||r.value&&(a(i,()=>r.value),r.value=null)},!0),rr("touchend",i=>a(i,()=>i.target instanceof HTMLElement?i.target:null),!0),_c("blur",i=>a(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Ac(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Ms(e,t){let n=o.ref(Ac(e.value.type,e.value.as));return o.onMounted(()=>{n.value=Ac(e.value.type,e.value.as)}),o.watchEffect(()=>{var a;n.value||ae(t)&&ae(t)instanceof HTMLButtonElement&&!((a=ae(t))!=null&&a.hasAttribute("type"))&&(n.value="button")}),n}function Dc(e){return[e.screenX,e.screenY]}function Rc(){let e=o.ref([-1,-1]);return{wasMoved(t){let n=Dc(t);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(t){e.value=Dc(t)}}}function Pc({container:e,accept:t,walk:n,enabled:a}){o.watchEffect(()=>{let r=e.value;if(!r||a!==void 0&&!a.value)return;let i=cn(e);if(!i)return;let s=Object.assign(c=>t(c),{acceptNode:t}),l=i.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)n(l.currentNode)})}var At=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(At||{}),_n=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(_n||{});function Be({visible:e=!0,features:t=0,ourProps:n,theirProps:a,...r}){var i;let s=Mc(a,n),l=Object.assign(r,{props:s});if(e||t&2&&s.static)return Fs(l);if(t&1){let c=(i=s.unmount)==null||i?0:1;return tt(c,{0(){return null},1(){return Fs({...r,props:{...s,hidden:!0,style:{display:"none"}}})}})}return Fs(l)}function Fs({props:e,attrs:t,slots:n,slot:a,name:r}){var i,s;let{as:l,...c}=ga(e,["unmount","static"]),d=(i=n.default)==null?void 0:i.call(n,a),f={};if(a){let p=!1,h=[];for(let[v,u]of Object.entries(a))typeof u=="boolean"&&(p=!0),u===!0&&h.push(v);p&&(f["data-headlessui-state"]=h.join(" "))}if(l==="template"){if(d=Bc(d??[]),Object.keys(c).length>0||Object.keys(t).length>0){let[p,...h]=d??[];if(!yg(p)||h.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${r} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(t)).map(m=>m.trim()).filter((m,y,b)=>b.indexOf(m)===y).sort((m,y)=>m.localeCompare(y)).map(m=>` - ${m}`).join(` `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(m=>` - ${m}`).join(` `)].join(` -`));let v=Mc((s=p.props)!=null?s:{},c,f),u=o.cloneVNode(p,v,!0);for(let m in v)m.startsWith("on")&&(u.props||(u.props={}),u.props[m]=v[m]);return u}return Array.isArray(d)&&d.length===1?d[0]:d}return o.h(l,Object.assign({},c,f),{default:()=>d})}function Bc(e){return e.flatMap(t=>t.type===o.Fragment?Bc(t.children):[t])}function Mc(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let a of e)for(let r in a)r.startsWith("on")&&typeof a[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(a[r])):t[r]=a[r];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(a=>[a,void 0])));for(let a in n)Object.assign(t,{[a](r,...i){let s=n[a];for(let l of s){if(r instanceof Event&&r.defaultPrevented)return;l(r,...i)}}});return t}function bg(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function ga(e,t=[]){let n=Object.assign({},e);for(let a of t)a in n&&delete n[a];return n}function yg(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var ba=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ba||{});let sr=o.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{var a;let{features:r,...i}=e,s={"aria-hidden":(r&2)===2?!0:(a=i["aria-hidden"])!=null?a:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Be({ourProps:s,theirProps:i,slot:{},attrs:n,slots:t,name:"Hidden"})}}}),Fc=Symbol("Context");var Ve=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ve||{});function Eg(){return Io()!==null}function Io(){return o.inject(Fc,null)}function ir(e){o.provide(Fc,e)}var Oe=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Oe||{}),Lc=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(Lc||{});function wg(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let dn=[];wg(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&dn[0]!==t.target&&(dn.unshift(t.target),dn=dn.filter(n=>n!=null&&n.isConnected),dn.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function xg(e){throw new Error("Unexpected object: "+e)}var Ae=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Ae||{});function Ls(e,t){let n=t.resolveItems();if(n.length<=0)return null;let a=t.resolveActiveIndex(),r=a??-1;switch(e.focus){case 0:{for(let i=0;i=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return a}case 2:{for(let i=r+1;i=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return a}case 4:{for(let i=0;i(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Tg||{}),Cg=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Cg||{}),Ng=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(Ng||{});let Hc=Symbol("ComboboxContext");function Jn(e){let t=o.inject(Hc,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Jn),n}return t}let zc=Symbol("VirtualContext"),kg=o.defineComponent({name:"VirtualProvider",setup(e,{slots:t}){let n=Jn("VirtualProvider"),a=o.computed(()=>{let l=ae(n.optionsRef);if(!l)return{start:0,end:0};let c=window.getComputedStyle(l);return{start:parseFloat(c.paddingBlockStart||c.paddingTop),end:parseFloat(c.paddingBlockEnd||c.paddingBottom)}}),r=og(o.computed(()=>({scrollPaddingStart:a.value.start,scrollPaddingEnd:a.value.end,count:n.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return ae(n.optionsRef)},overscan:12}))),i=o.computed(()=>{var l;return(l=n.virtual.value)==null?void 0:l.options}),s=o.ref(0);return o.watch([i],()=>{s.value+=1}),o.provide(zc,n.virtual.value?r:null),()=>[o.h("div",{style:{position:"relative",width:"100%",height:`${r.value.getTotalSize()}px`},ref:l=>{if(l){if(typeof process<"u"&&Sg.JEST_WORKER_ID!==void 0||n.activationTrigger.value===0)return;n.activeOptionIndex.value!==null&&n.virtual.value.options.length>n.activeOptionIndex.value&&r.value.scrollToIndex(n.activeOptionIndex.value)}}},r.value.getVirtualItems().map(l=>o.cloneVNode(t.default({option:n.virtual.value.options[l.index],open:n.comboboxState.value===0})[0],{key:`${s.value}-${l.index}`,"data-index":l.index,"aria-setsize":n.virtual.value.options.length,"aria-posinset":l.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${l.start}px)`,overflowAnchor:"none"}})))]}}),Ig=o.defineComponent({name:"Combobox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:a}){let r=o.ref(1),i=o.ref(null),s=o.ref(null),l=o.ref(null),c=o.ref(null),d=o.ref({static:!1,hold:!1}),f=o.ref([]),p=o.ref(null),h=o.ref(2),v=o.ref(!1);function u(D=M=>M){let M=p.value!==null?f.value[p.value]:null,K=D(f.value.slice()),B=K.length>0&&K[0].dataRef.order.value!==null?K.sort((H,W)=>H.dataRef.order.value-W.dataRef.order.value):Ps(K,H=>ae(H.dataRef.domRef)),j=M?B.indexOf(M):null;return j===-1&&(j=null),{options:B,activeOptionIndex:j}}let m=o.computed(()=>e.multiple?1:0),y=o.computed(()=>e.nullable),[b,g]=ag(o.computed(()=>e.modelValue),D=>a("update:modelValue",D),o.computed(()=>e.defaultValue)),T=o.computed(()=>b.value===void 0?tt(m.value,{1:[],0:void 0}):b.value),O=null,S=null;function N(D){return tt(m.value,{0(){return g?.(D)},1:()=>{let M=o.toRaw(_.value.value).slice(),K=o.toRaw(D),B=M.findIndex(j=>_.compare(K,o.toRaw(j)));return B===-1?M.push(K):M.splice(B,1),g?.(M)}})}let I=o.computed(()=>{});o.watch([I],([D],[M])=>{if(_.virtual.value&&D&&M&&p.value!==null){let K=D.indexOf(M[p.value]);K!==-1?p.value=K:p.value=null}});let _={comboboxState:r,value:T,mode:m,compare(D,M){if(typeof e.by=="string"){let K=e.by;return D?.[K]===M?.[K]}return e.by===null?Og(D,M):e.by(D,M)},calculateIndex(D){return _.virtual.value?e.by===null?_.virtual.value.options.indexOf(D):_.virtual.value.options.findIndex(M=>_.compare(M,D)):f.value.findIndex(M=>_.compare(M.dataRef.value,D))},defaultValue:o.computed(()=>e.defaultValue),nullable:y,immediate:o.computed(()=>!1),virtual:o.computed(()=>null),inputRef:s,labelRef:i,buttonRef:l,optionsRef:c,disabled:o.computed(()=>e.disabled),options:f,change(D){g(D)},activeOptionIndex:o.computed(()=>{if(v.value&&p.value===null&&(_.virtual.value?_.virtual.value.options.length>0:f.value.length>0)){if(_.virtual.value){let M=_.virtual.value.options.findIndex(K=>{var B;return!((B=_.virtual.value)!=null&&B.disabled(K))});if(M!==-1)return M}let D=f.value.findIndex(M=>!M.dataRef.disabled);if(D!==-1)return D}return p.value}),activationTrigger:h,optionsPropsRef:d,closeCombobox(){v.value=!1,!e.disabled&&r.value!==1&&(r.value=1,p.value=null)},openCombobox(){if(v.value=!0,!e.disabled&&r.value!==0){if(_.value.value){let D=_.calculateIndex(_.value.value);D!==-1&&(p.value=D)}r.value=0}},setActivationTrigger(D){h.value=D},goToOption(D,M,K){v.value=!1,O!==null&&cancelAnimationFrame(O),O=requestAnimationFrame(()=>{if(e.disabled||c.value&&!d.value.static&&r.value===1)return;if(_.virtual.value){p.value=D===Ae.Specific?M:Ls({focus:D},{resolveItems:()=>_.virtual.value.options,resolveActiveIndex:()=>{var H,W;return(W=(H=_.activeOptionIndex.value)!=null?H:_.virtual.value.options.findIndex(Q=>{var ne;return!((ne=_.virtual.value)!=null&&ne.disabled(Q))}))!=null?W:null},resolveDisabled:H=>_.virtual.value.disabled(H),resolveId(){throw new Error("Function not implemented.")}}),h.value=K??2;return}let B=u();if(B.activeOptionIndex===null){let H=B.options.findIndex(W=>!W.dataRef.disabled);H!==-1&&(B.activeOptionIndex=H)}let j=D===Ae.Specific?M:Ls({focus:D},{resolveItems:()=>B.options,resolveActiveIndex:()=>B.activeOptionIndex,resolveId:H=>H.id,resolveDisabled:H=>H.dataRef.disabled});p.value=j,h.value=K??2,f.value=B.options})},selectOption(D){let M=f.value.find(B=>B.id===D);if(!M)return;let{dataRef:K}=M;N(K.value)},selectActiveOption(){if(_.activeOptionIndex.value!==null){if(_.virtual.value)N(_.virtual.value.options[_.activeOptionIndex.value]);else{let{dataRef:D}=f.value[_.activeOptionIndex.value];N(D.value)}_.goToOption(Ae.Specific,_.activeOptionIndex.value)}},registerOption(D,M){let K=o.reactive({id:D,dataRef:M});if(_.virtual.value){f.value.push(K);return}S&&cancelAnimationFrame(S);let B=u(j=>(j.push(K),j));p.value===null&&_.isSelected(M.value.value)&&(B.activeOptionIndex=B.options.indexOf(K)),f.value=B.options,p.value=B.activeOptionIndex,h.value=2,B.options.some(j=>!ae(j.dataRef.domRef))&&(S=requestAnimationFrame(()=>{let j=u();f.value=j.options,p.value=j.activeOptionIndex}))},unregisterOption(D,M){if(O!==null&&cancelAnimationFrame(O),M&&(v.value=!0),_.virtual.value){f.value=f.value.filter(B=>B.id!==D);return}let K=u(B=>{let j=B.findIndex(H=>H.id===D);return j!==-1&&B.splice(j,1),B});f.value=K.options,p.value=K.activeOptionIndex,h.value=2},isSelected(D){return tt(m.value,{0:()=>_.compare(o.toRaw(_.value.value),o.toRaw(D)),1:()=>o.toRaw(_.value.value).some(M=>_.compare(o.toRaw(M),o.toRaw(D)))})},isActive(D){return p.value===_.calculateIndex(D)}};Bs([s,l,c],()=>_.closeCombobox(),o.computed(()=>r.value===0)),o.provide(Hc,_),ir(o.computed(()=>tt(r.value,{0:Ve.Open,1:Ve.Closed})));let A=o.computed(()=>{var D;return(D=ae(s))==null?void 0:D.closest("form")});return o.onMounted(()=>{o.watch([A],()=>{if(!A.value||e.defaultValue===void 0)return;function D(){_.change(e.defaultValue)}return A.value.addEventListener("reset",D),()=>{var M;(M=A.value)==null||M.removeEventListener("reset",D)}},{immediate:!0})}),()=>{var D,M,K;let{name:B,disabled:j,form:H,...W}=e,Q={open:r.value===0,disabled:j,activeIndex:_.activeOptionIndex.value,activeOption:_.activeOptionIndex.value===null?null:_.virtual.value?_.virtual.value.options[(D=_.activeOptionIndex.value)!=null?D:0]:(K=(M=_.options.value[_.activeOptionIndex.value])==null?void 0:M.dataRef.value)!=null?K:null,value:T.value};return o.h(o.Fragment,[...B!=null&&T.value!=null?jc({[B]:T.value}).map(([ne,we])=>o.h(sr,bg({features:ba.Hidden,key:ne,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:H,disabled:j,name:ne,value:we}))):[],Be({theirProps:{...n,...ga(W,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:Q,slots:t,attrs:n,name:"Combobox"})])}}});o.defineComponent({name:"ComboboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var a;let r=(a=e.id)!=null?a:`headlessui-combobox-label-${dt()}`,i=Jn("ComboboxLabel");function s(){var l;(l=ae(i.inputRef))==null||l.focus({preventScroll:!0})}return()=>{let l={open:i.comboboxState.value===0,disabled:i.disabled.value},{...c}=e,d={id:r,ref:i.labelRef,onClick:s};return Be({ourProps:d,theirProps:c,slot:l,attrs:t,slots:n,name:"ComboboxLabel"})}}}),o.defineComponent({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){var r;let i=(r=e.id)!=null?r:`headlessui-combobox-button-${dt()}`,s=Jn("ComboboxButton");a({el:s.buttonRef,$el:s.buttonRef});function l(f){s.disabled.value||(s.comboboxState.value===0?s.closeCombobox():(f.preventDefault(),s.openCombobox()),o.nextTick(()=>{var p;return(p=ae(s.inputRef))==null?void 0:p.focus({preventScroll:!0})}))}function c(f){switch(f.key){case Oe.ArrowDown:f.preventDefault(),f.stopPropagation(),s.comboboxState.value===1&&s.openCombobox(),o.nextTick(()=>{var p;return(p=s.inputRef.value)==null?void 0:p.focus({preventScroll:!0})});return;case Oe.ArrowUp:f.preventDefault(),f.stopPropagation(),s.comboboxState.value===1&&(s.openCombobox(),o.nextTick(()=>{s.value.value||s.goToOption(Ae.Last)})),o.nextTick(()=>{var p;return(p=s.inputRef.value)==null?void 0:p.focus({preventScroll:!0})});return;case Oe.Escape:if(s.comboboxState.value!==0)return;f.preventDefault(),s.optionsRef.value&&!s.optionsPropsRef.value.static&&f.stopPropagation(),s.closeCombobox(),o.nextTick(()=>{var p;return(p=s.inputRef.value)==null?void 0:p.focus({preventScroll:!0})});return}}let d=Ms(o.computed(()=>({as:e.as,type:t.type})),s.buttonRef);return()=>{var f,p;let h={open:s.comboboxState.value===0,disabled:s.disabled.value,value:s.value.value},{...v}=e,u={ref:s.buttonRef,id:i,type:d.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(f=ae(s.optionsRef))==null?void 0:f.id,"aria-expanded":s.comboboxState.value===0,"aria-labelledby":s.labelRef.value?[(p=ae(s.labelRef))==null?void 0:p.id,i].join(" "):void 0,disabled:s.disabled.value===!0?!0:void 0,onKeydown:c,onClick:l};return Be({ourProps:u,theirProps:v,slot:h,attrs:t,slots:n,name:"ComboboxButton"})}}});let _g=o.defineComponent({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:e=>!0},setup(e,{emit:t,attrs:n,slots:a,expose:r}){var i;let s=(i=e.id)!=null?i:`headlessui-combobox-input-${dt()}`,l=Jn("ComboboxInput"),c=o.computed(()=>cn(ae(l.inputRef))),d={value:!1};r({el:l.inputRef,$el:l.inputRef});function f(){l.change(null);let S=ae(l.optionsRef);S&&(S.scrollTop=0),l.goToOption(Ae.Nothing)}let p=o.computed(()=>{var S;let N=l.value.value;return ae(l.inputRef)?typeof e.displayValue<"u"&&N!==void 0?(S=e.displayValue(N))!=null?S:"":typeof N=="string"?N:"":""});o.onMounted(()=>{o.watch([p,l.comboboxState,c],([S,N],[I,_])=>{if(d.value)return;let A=ae(l.inputRef);A&&((_===0&&N===1||S!==I)&&(A.value=S),requestAnimationFrame(()=>{var D;if(d.value||!A||((D=c.value)==null?void 0:D.activeElement)!==A)return;let{selectionStart:M,selectionEnd:K}=A;Math.abs((K??0)-(M??0))===0&&M===0&&A.setSelectionRange(A.value.length,A.value.length)}))},{immediate:!0}),o.watch([l.comboboxState],([S],[N])=>{if(S===0&&N===1){if(d.value)return;let I=ae(l.inputRef);if(!I)return;let _=I.value,{selectionStart:A,selectionEnd:D,selectionDirection:M}=I;I.value="",I.value=_,M!==null?I.setSelectionRange(A,D,M):I.setSelectionRange(A,D)}})});let h=o.ref(!1);function v(){h.value=!0}function u(){kn().nextFrame(()=>{h.value=!1})}let m=sg();function y(S){switch(d.value=!0,m(()=>{d.value=!1}),S.key){case Oe.Enter:if(d.value=!1,l.comboboxState.value!==0||h.value)return;if(S.preventDefault(),S.stopPropagation(),l.activeOptionIndex.value===null){l.closeCombobox();return}l.selectActiveOption(),l.mode.value===0&&l.closeCombobox();break;case Oe.ArrowDown:return d.value=!1,S.preventDefault(),S.stopPropagation(),tt(l.comboboxState.value,{0:()=>l.goToOption(Ae.Next),1:()=>l.openCombobox()});case Oe.ArrowUp:return d.value=!1,S.preventDefault(),S.stopPropagation(),tt(l.comboboxState.value,{0:()=>l.goToOption(Ae.Previous),1:()=>{l.openCombobox(),o.nextTick(()=>{l.value.value||l.goToOption(Ae.Last)})}});case Oe.Home:if(S.shiftKey)break;return d.value=!1,S.preventDefault(),S.stopPropagation(),l.goToOption(Ae.First);case Oe.PageUp:return d.value=!1,S.preventDefault(),S.stopPropagation(),l.goToOption(Ae.First);case Oe.End:if(S.shiftKey)break;return d.value=!1,S.preventDefault(),S.stopPropagation(),l.goToOption(Ae.Last);case Oe.PageDown:return d.value=!1,S.preventDefault(),S.stopPropagation(),l.goToOption(Ae.Last);case Oe.Escape:if(d.value=!1,l.comboboxState.value!==0)return;S.preventDefault(),l.optionsRef.value&&!l.optionsPropsRef.value.static&&S.stopPropagation(),l.nullable.value&&l.mode.value===0&&l.value.value===null&&f(),l.closeCombobox();break;case Oe.Tab:if(d.value=!1,l.comboboxState.value!==0)return;l.mode.value===0&&l.activationTrigger.value!==1&&l.selectActiveOption(),l.closeCombobox();break}}function b(S){t("change",S),l.nullable.value&&l.mode.value===0&&S.target.value===""&&f(),l.openCombobox()}function g(S){var N,I,_;let A=(N=S.relatedTarget)!=null?N:dn.find(D=>D!==S.currentTarget);if(d.value=!1,!((I=ae(l.optionsRef))!=null&&I.contains(A))&&!((_=ae(l.buttonRef))!=null&&_.contains(A))&&l.comboboxState.value===0)return S.preventDefault(),l.mode.value===0&&(l.nullable.value&&l.value.value===null?f():l.activationTrigger.value!==1&&l.selectActiveOption()),l.closeCombobox()}function T(S){var N,I,_;let A=(N=S.relatedTarget)!=null?N:dn.find(D=>D!==S.currentTarget);(I=ae(l.buttonRef))!=null&&I.contains(A)||(_=ae(l.optionsRef))!=null&&_.contains(A)||l.disabled.value||l.immediate.value&&l.comboboxState.value!==0&&(l.openCombobox(),kn().nextFrame(()=>{l.setActivationTrigger(1)}))}let O=o.computed(()=>{var S,N,I,_;return(_=(I=(N=e.defaultValue)!=null?N:l.defaultValue.value!==void 0?(S=e.displayValue)==null?void 0:S.call(e,l.defaultValue.value):null)!=null?I:l.defaultValue.value)!=null?_:""});return()=>{var S,N,I,_,A,D,M;let K={open:l.comboboxState.value===0},{displayValue:B,onChange:j,...H}=e,W={"aria-controls":(S=l.optionsRef.value)==null?void 0:S.id,"aria-expanded":l.comboboxState.value===0,"aria-activedescendant":l.activeOptionIndex.value===null?void 0:l.virtual.value?(N=l.options.value.find(Q=>!l.virtual.value.disabled(Q.dataRef.value)&&l.compare(Q.dataRef.value,l.virtual.value.options[l.activeOptionIndex.value])))==null?void 0:N.id:(I=l.options.value[l.activeOptionIndex.value])==null?void 0:I.id,"aria-labelledby":(D=(_=ae(l.labelRef))==null?void 0:_.id)!=null?D:(A=ae(l.buttonRef))==null?void 0:A.id,"aria-autocomplete":"list",id:s,onCompositionstart:v,onCompositionend:u,onKeydown:y,onInput:b,onFocus:T,onBlur:g,role:"combobox",type:(M=n.type)!=null?M:"text",tabIndex:0,ref:l.inputRef,defaultValue:O.value,disabled:l.disabled.value===!0?!0:void 0};return Be({ourProps:W,theirProps:H,slot:K,attrs:n,slots:a,features:At.RenderStrategy|At.Static,name:"ComboboxInput"})}}}),Ag=o.defineComponent({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:t,slots:n,expose:a}){let r=Jn("ComboboxOptions"),i=`headlessui-combobox-options-${dt()}`;a({el:r.optionsRef,$el:r.optionsRef}),o.watchEffect(()=>{r.optionsPropsRef.value.static=e.static}),o.watchEffect(()=>{r.optionsPropsRef.value.hold=e.hold});let s=Io(),l=o.computed(()=>s!==null?(s.value&Ve.Open)===Ve.Open:r.comboboxState.value===0);Pc({container:o.computed(()=>ae(r.optionsRef)),enabled:o.computed(()=>r.comboboxState.value===0),accept(d){return d.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:d.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(d){d.setAttribute("role","none")}});function c(d){d.preventDefault()}return()=>{var d,f,p;let h={open:r.comboboxState.value===0},v={"aria-labelledby":(p=(d=ae(r.labelRef))==null?void 0:d.id)!=null?p:(f=ae(r.buttonRef))==null?void 0:f.id,id:i,ref:r.optionsRef,role:"listbox","aria-multiselectable":r.mode.value===1?!0:void 0,onMousedown:c},u=ga(e,["hold"]);return Be({ourProps:v,theirProps:u,slot:h,attrs:t,slots:r.virtual.value&&r.comboboxState.value===0?{...n,default:()=>[o.h(kg,{},n.default)]}:n,features:At.RenderStrategy|At.Static,visible:l.value,name:"ComboboxOptions"})}}}),Gc=o.defineComponent({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(e,{slots:t,attrs:n,expose:a}){let r=Jn("ComboboxOption"),i=`headlessui-combobox-option-${dt()}`,s=o.ref(null),l=o.computed(()=>e.disabled);a({el:s,$el:s});let c=o.computed(()=>{var g;return r.virtual.value?r.activeOptionIndex.value===r.calculateIndex(e.value):r.activeOptionIndex.value===null?!1:((g=r.options.value[r.activeOptionIndex.value])==null?void 0:g.id)===i}),d=o.computed(()=>r.isSelected(e.value)),f=o.inject(zc,null),p=o.computed(()=>({disabled:e.disabled,value:e.value,domRef:s,order:o.computed(()=>e.order)}));o.onMounted(()=>r.registerOption(i,p)),o.onUnmounted(()=>r.unregisterOption(i,c.value)),o.watchEffect(()=>{let g=ae(s);g&&f?.value.measureElement(g)}),o.watchEffect(()=>{r.comboboxState.value===0&&c.value&&(r.virtual.value||r.activationTrigger.value!==0&&o.nextTick(()=>{var g,T;return(T=(g=ae(s))==null?void 0:g.scrollIntoView)==null?void 0:T.call(g,{block:"nearest"})}))});function h(g){g.preventDefault(),g.button===Lc.Left&&(l.value||(r.selectOption(i),Ic()||requestAnimationFrame(()=>{var T;return(T=ae(r.inputRef))==null?void 0:T.focus({preventScroll:!0})}),r.mode.value===0&&r.closeCombobox()))}function v(){var g;if(e.disabled||(g=r.virtual.value)!=null&&g.disabled(e.value))return r.goToOption(Ae.Nothing);let T=r.calculateIndex(e.value);r.goToOption(Ae.Specific,T)}let u=Rc();function m(g){u.update(g)}function y(g){var T;if(!u.wasMoved(g)||e.disabled||(T=r.virtual.value)!=null&&T.disabled(e.value)||c.value)return;let O=r.calculateIndex(e.value);r.goToOption(Ae.Specific,O,0)}function b(g){var T;u.wasMoved(g)&&(e.disabled||(T=r.virtual.value)!=null&&T.disabled(e.value)||c.value&&(r.optionsPropsRef.value.hold||r.goToOption(Ae.Nothing)))}return()=>{let{disabled:g}=e,T={active:c.value,selected:d.value,disabled:g},O={id:i,ref:s,role:"option",tabIndex:g===!0?void 0:-1,"aria-disabled":g===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onMousedown:h,onFocus:v,onPointerenter:m,onMouseenter:m,onPointermove:y,onMousemove:y,onPointerleave:b,onMouseleave:b},S=ga(e,["order","value"]);return Be({ourProps:O,theirProps:S,slot:T,attrs:n,slots:t,name:"ComboboxOption"})}}});function Wc(e,t,n,a){ma.isServer||o.watchEffect(r=>{e=e??window,e.addEventListener(t,n,a),r(()=>e.removeEventListener(t,n,a))})}var ya=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(ya||{});function Dg(){let e=o.ref(0);return _c("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function Kc(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let a=ae(n);a instanceof HTMLElement&&t.add(a)}return t}var Xc=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Xc||{});let Ea=Object.assign(o.defineComponent({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:o.ref(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:a}){let r=o.ref(null);a({el:r,$el:r});let i=o.computed(()=>cn(r)),s=o.ref(!1);o.onMounted(()=>s.value=!0),o.onUnmounted(()=>s.value=!1),Pg({ownerDocument:i},o.computed(()=>s.value&&!!(e.features&16)));let l=Bg({ownerDocument:i,container:r,initialFocus:o.computed(()=>e.initialFocus)},o.computed(()=>s.value&&!!(e.features&2)));Mg({ownerDocument:i,container:r,containers:e.containers,previousActiveElement:l},o.computed(()=>s.value&&!!(e.features&8)));let c=Dg();function d(v){let u=ae(r);u&&(m=>m())(()=>{tt(c.value,{[ya.Forwards]:()=>{va(u,$t.First,{skipElements:[v.relatedTarget]})},[ya.Backwards]:()=>{va(u,$t.Last,{skipElements:[v.relatedTarget]})}})})}let f=o.ref(!1);function p(v){v.key==="Tab"&&(f.value=!0,requestAnimationFrame(()=>{f.value=!1}))}function h(v){if(!s.value)return;let u=Kc(e.containers);ae(r)instanceof HTMLElement&&u.add(ae(r));let m=v.relatedTarget;m instanceof HTMLElement&&m.dataset.headlessuiFocusGuard!=="true"&&(Yc(u,m)||(f.value?va(ae(r),tt(c.value,{[ya.Forwards]:()=>$t.Next,[ya.Backwards]:()=>$t.Previous})|$t.WrapAround,{relativeTo:v.target}):v.target instanceof HTMLElement&&In(v.target)))}return()=>{let v={},u={ref:r,onKeydown:p,onFocusout:h},{features:m,initialFocus:y,containers:b,...g}=e;return o.h(o.Fragment,[!!(m&4)&&o.h(sr,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:ba.Focusable}),Be({ourProps:u,theirProps:{...t,...g},slot:v,attrs:t,slots:n,name:"FocusTrap"}),!!(m&4)&&o.h(sr,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:ba.Focusable})])}}}),{features:Xc});function Rg(e){let t=o.ref(dn.slice());return o.watch([e],([n],[a])=>{a===!0&&n===!1?_s(()=>{t.value.splice(0)}):a===!1&&n===!0&&(t.value=dn.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(a=>a!=null&&a.isConnected))!=null?n:null}}function Pg({ownerDocument:e},t){let n=Rg(t);o.onMounted(()=>{o.watchEffect(()=>{var a,r;t.value||((a=e.value)==null?void 0:a.activeElement)===((r=e.value)==null?void 0:r.body)&&In(n())},{flush:"post"})}),o.onUnmounted(()=>{t.value&&In(n())})}function Bg({ownerDocument:e,container:t,initialFocus:n},a){let r=o.ref(null),i=o.ref(!1);return o.onMounted(()=>i.value=!0),o.onUnmounted(()=>i.value=!1),o.onMounted(()=>{o.watch([t,n,a],(s,l)=>{if(s.every((d,f)=>l?.[f]===d)||!a.value)return;let c=ae(t);c&&_s(()=>{var d,f;if(!i.value)return;let p=ae(n),h=(d=e.value)==null?void 0:d.activeElement;if(p){if(p===h){r.value=h;return}}else if(c.contains(h)){r.value=h;return}p?In(p):va(c,$t.First|$t.NoScroll)===Tc.Error&&console.warn("There are no focusable elements inside the "),r.value=(f=e.value)==null?void 0:f.activeElement})},{immediate:!0,flush:"post"})}),r}function Mg({ownerDocument:e,container:t,containers:n,previousActiveElement:a},r){var i;Wc((i=e.value)==null?void 0:i.defaultView,"focus",s=>{if(!r.value)return;let l=Kc(n);ae(t)instanceof HTMLElement&&l.add(ae(t));let c=a.value;if(!c)return;let d=s.target;d&&d instanceof HTMLElement?Yc(l,d)?(a.value=d,In(d)):(s.preventDefault(),s.stopPropagation(),In(c)):In(a.value)},!0)}function Yc(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function Fg(e){let t=o.shallowRef(e.getSnapshot());return o.onUnmounted(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function Lg(e,t){let n=e(),a=new Set;return{getSnapshot(){return n},subscribe(r){return a.add(r),()=>a.delete(r)},dispatch(r,...i){let s=t[r].call(n,...i);s&&(n=s,a.forEach(l=>l()))}}}function jg(){let e;return{before({doc:t}){var n;let a=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-a.clientWidth},after({doc:t,d:n}){let a=t.documentElement,r=a.clientWidth-a.offsetWidth,i=e-r;n.style(a,"paddingRight",`${i}px`)}}}function Vg(){return kc()?{before({doc:e,d:t,meta:n}){function a(r){return n.containers.flatMap(i=>i()).some(i=>i.contains(r))}t.microTask(()=>{var r;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let l=kn();l.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>l.dispose()))}let i=(r=window.scrollY)!=null?r:window.pageYOffset,s=null;t.addEventListener(e,"click",l=>{if(l.target instanceof HTMLElement)try{let c=l.target.closest("a");if(!c)return;let{hash:d}=new URL(c.href),f=e.querySelector(d);f&&!a(f)&&(s=f)}catch{}},!0),t.addEventListener(e,"touchstart",l=>{if(l.target instanceof HTMLElement)if(a(l.target)){let c=l.target;for(;c.parentElement&&a(c.parentElement);)c=c.parentElement;t.style(c,"overscrollBehavior","contain")}else t.style(l.target,"touchAction","none")}),t.addEventListener(e,"touchmove",l=>{if(l.target instanceof HTMLElement){if(l.target.tagName==="INPUT")return;if(a(l.target)){let c=l.target;for(;c.parentElement&&c.dataset.headlessuiPortal!==""&&!(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth);)c=c.parentElement;c.dataset.headlessuiPortal===""&&l.preventDefault()}else l.preventDefault()}},{passive:!1}),t.add(()=>{var l;let c=(l=window.scrollY)!=null?l:window.pageYOffset;i!==c&&window.scrollTo(0,i),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function Ug(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Hg(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Qn=Lg(()=>new Map,{PUSH(e,t){var n;let a=(n=this.get(e))!=null?n:{doc:e,count:0,d:kn(),meta:new Set};return a.count++,a.meta.add(t),this.set(e,a),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let a={doc:e,d:t,meta:Hg(n)},r=[Vg(),jg(),Ug()];r.forEach(({before:i})=>i?.(a)),r.forEach(({after:i})=>i?.(a))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Qn.subscribe(()=>{let e=Qn.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let a=t.get(n.doc)==="hidden",r=n.count!==0;(r&&!a||!r&&a)&&Qn.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Qn.dispatch("TEARDOWN",n)}});function zg(e,t,n){let a=Fg(Qn),r=o.computed(()=>{let i=e.value?a.value.get(e.value):void 0;return i?i.count>0:!1});return o.watch([e,t],([i,s],[l],c)=>{if(!i||!s)return;Qn.dispatch("PUSH",i,n);let d=!1;c(()=>{d||(Qn.dispatch("POP",l??i,n),d=!0)})},{immediate:!0}),r}let js=new Map,wa=new Map;function Jc(e,t=o.ref(!0)){o.watchEffect(n=>{var a;if(!t.value)return;let r=ae(e);if(!r)return;n(function(){var s;if(!r)return;let l=(s=wa.get(r))!=null?s:1;if(l===1?wa.delete(r):wa.set(r,l-1),l!==1)return;let c=js.get(r);c&&(c["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",c["aria-hidden"]),r.inert=c.inert,js.delete(r))});let i=(a=wa.get(r))!=null?a:0;wa.set(r,i+1),i===0&&(js.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0)})}function Gg({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let a=o.ref(null),r=cn(a);function i(){var s,l,c;let d=[];for(let f of e)f!==null&&(f instanceof HTMLElement?d.push(f):"value"in f&&f.value instanceof HTMLElement&&d.push(f.value));if(t!=null&&t.value)for(let f of t.value)d.push(f);for(let f of(s=r?.querySelectorAll("html > *, body > *"))!=null?s:[])f!==document.body&&f!==document.head&&f instanceof HTMLElement&&f.id!=="headlessui-portal-root"&&(f.contains(ae(a))||f.contains((c=(l=ae(a))==null?void 0:l.getRootNode())==null?void 0:c.host)||d.some(p=>f.contains(p))||d.push(f));return d}return{resolveContainers:i,contains(s){return i().some(l=>l.contains(s))},mainTreeNodeRef:a,MainTreeNode(){return n!=null?null:o.h(sr,{features:ba.Hidden,ref:a})}}}let Qc=Symbol("ForcePortalRootContext");function Wg(){return o.inject(Qc,!1)}let Vs=o.defineComponent({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return o.provide(Qc,e.force),()=>{let{force:a,...r}=e;return Be({theirProps:r,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}}),Zc=Symbol("StackContext");var Us=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Us||{});function Kg(){return o.inject(Zc,()=>{})}function Xg({type:e,enabled:t,element:n,onUpdate:a}){let r=Kg();function i(...s){a?.(...s),r(...s)}o.onMounted(()=>{o.watch(t,(s,l)=>{s?i(0,e,n):l===!0&&i(1,e,n)},{immediate:!0,flush:"sync"})}),o.onUnmounted(()=>{t.value&&i(1,e,n)}),o.provide(Zc,i)}let qc=Symbol("DescriptionContext");function Yg(){let e=o.inject(qc,null);if(e===null)throw new Error("Missing parent");return e}function Jg({slot:e=o.ref({}),name:t="Description",props:n={}}={}){let a=o.ref([]);function r(i){return a.value.push(i),()=>{let s=a.value.indexOf(i);s!==-1&&a.value.splice(s,1)}}return o.provide(qc,{register:r,slot:e,name:t,props:n}),o.computed(()=>a.value.length>0?a.value.join(" "):void 0)}o.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var a;let r=(a=e.id)!=null?a:`headlessui-description-${dt()}`,i=Yg();return o.onMounted(()=>o.onUnmounted(i.register(r))),()=>{let{name:s="Description",slot:l=o.ref({}),props:c={}}=i,{...d}=e,f={...Object.entries(c).reduce((p,[h,v])=>Object.assign(p,{[h]:o.unref(v)}),{}),id:r};return Be({ourProps:f,theirProps:d,slot:l.value,attrs:t,slots:n,name:s})}}});function Qg(e){let t=cn(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let a=t.createElement("div");return a.setAttribute("id","headlessui-portal-root"),t.body.appendChild(a)}const Hs=new WeakMap;function Zg(e){var t;return(t=Hs.get(e))!=null?t:0}function $c(e,t){let n=t(Zg(e));return n<=0?Hs.delete(e):Hs.set(e,n),n}let ed=o.defineComponent({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let a=o.ref(null),r=o.computed(()=>cn(a)),i=Wg(),s=o.inject(td,null),l=o.ref(i===!0||s==null?Qg(a.value):s.resolveTarget());l.value&&$c(l.value,h=>h+1);let c=o.ref(!1);o.onMounted(()=>{c.value=!0}),o.watchEffect(()=>{i||s!=null&&(l.value=s.resolveTarget())});let d=o.inject(zs,null),f=!1,p=o.getCurrentInstance();return o.watch(a,()=>{if(f||!d)return;let h=ae(a);h&&(o.onUnmounted(d.register(h),p),f=!0)}),o.onUnmounted(()=>{var h,v;let u=(h=r.value)==null?void 0:h.getElementById("headlessui-portal-root");!u||l.value!==u||$c(l.value,m=>m-1)||l.value.children.length>0||(v=l.value.parentElement)==null||v.removeChild(l.value)}),()=>{if(!c.value||l.value===null)return null;let h={ref:a,"data-headlessui-portal":""};return o.h(o.Teleport,{to:l.value},Be({ourProps:h,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),zs=Symbol("PortalParentContext");function qg(){let e=o.inject(zs,null),t=o.ref([]);function n(i){return t.value.push(i),e&&e.register(i),()=>a(i)}function a(i){let s=t.value.indexOf(i);s!==-1&&t.value.splice(s,1),e&&e.unregister(i)}let r={register:n,unregister:a,portals:t};return[t,o.defineComponent({name:"PortalWrapper",setup(i,{slots:s}){return o.provide(zs,r),()=>{var l;return(l=s.default)==null?void 0:l.call(s)}}})]}let td=Symbol("PortalGroupContext"),$g=o.defineComponent({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let a=o.reactive({resolveTarget(){return e.target}});return o.provide(td,a),()=>{let{target:r,...i}=e;return Be({theirProps:i,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}});var eb=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(eb||{});let Gs=Symbol("DialogContext");function xa(e){let t=o.inject(Gs,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,xa),n}return t}let lr="DC8F892D-2EBD-447C-A4C8-A03058436FF4",cr=o.defineComponent({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:lr},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:a,expose:r}){var i,s;let l=(i=e.id)!=null?i:`headlessui-dialog-${dt()}`,c=o.ref(!1);o.onMounted(()=>{c.value=!0});let d=!1,f=o.computed(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(d||(d=!0,console.warn(`Invalid role [${f}] passed to . Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),p=o.ref(0),h=Io(),v=o.computed(()=>e.open===lr&&h!==null?(h.value&Ve.Open)===Ve.Open:e.open),u=o.ref(null),m=o.computed(()=>cn(u));if(r({el:u,$el:u}),!(e.open!==lr||h!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof v.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${v.value===lr?void 0:e.open}`);let y=o.computed(()=>c.value&&v.value?0:1),b=o.computed(()=>y.value===0),g=o.computed(()=>p.value>1),T=o.inject(Gs,null)!==null,[O,S]=qg(),{resolveContainers:N,mainTreeNodeRef:I,MainTreeNode:_}=Gg({portals:O,defaultContainers:[o.computed(()=>{var se;return(se=Q.panelRef.value)!=null?se:u.value})]}),A=o.computed(()=>g.value?"parent":"leaf"),D=o.computed(()=>h!==null?(h.value&Ve.Closing)===Ve.Closing:!1),M=o.computed(()=>T||D.value?!1:b.value),K=o.computed(()=>{var se,fe,ye;return(ye=Array.from((fe=(se=m.value)==null?void 0:se.querySelectorAll("body > *"))!=null?fe:[]).find(Se=>Se.id==="headlessui-portal-root"?!1:Se.contains(ae(I))&&Se instanceof HTMLElement))!=null?ye:null});Jc(K,M);let B=o.computed(()=>g.value?!0:b.value),j=o.computed(()=>{var se,fe,ye;return(ye=Array.from((fe=(se=m.value)==null?void 0:se.querySelectorAll("[data-headlessui-portal]"))!=null?fe:[]).find(Se=>Se.contains(ae(I))&&Se instanceof HTMLElement))!=null?ye:null});Jc(j,B),Xg({type:"Dialog",enabled:o.computed(()=>y.value===0),element:u,onUpdate:(se,fe)=>{if(fe==="Dialog")return tt(se,{[Us.Add]:()=>p.value+=1,[Us.Remove]:()=>p.value-=1})}});let H=Jg({name:"DialogDescription",slot:o.computed(()=>({open:v.value}))}),W=o.ref(null),Q={titleId:W,panelRef:o.ref(null),dialogState:y,setTitleId(se){W.value!==se&&(W.value=se)},close(){t("close",!1)}};o.provide(Gs,Q);let ne=o.computed(()=>!(!b.value||g.value));Bs(N,(se,fe)=>{se.preventDefault(),Q.close(),o.nextTick(()=>fe?.focus())},ne);let we=o.computed(()=>!(g.value||y.value!==0));Wc((s=m.value)==null?void 0:s.defaultView,"keydown",se=>{we.value&&(se.defaultPrevented||se.key===Oe.Escape&&(se.preventDefault(),se.stopPropagation(),Q.close()))});let Ze=o.computed(()=>!(D.value||y.value!==0||T));return zg(m,Ze,se=>{var fe;return{containers:[...(fe=se.containers)!=null?fe:[],N]}}),o.watchEffect(se=>{if(y.value!==0)return;let fe=ae(u);if(!fe)return;let ye=new ResizeObserver(Se=>{for(let Pe of Se){let ke=Pe.target.getBoundingClientRect();ke.x===0&&ke.y===0&&ke.width===0&&ke.height===0&&Q.close()}});ye.observe(fe),se(()=>ye.disconnect())}),()=>{let{open:se,initialFocus:fe,...ye}=e,Se={...n,ref:u,id:l,role:f.value,"aria-modal":y.value===0?!0:void 0,"aria-labelledby":W.value,"aria-describedby":H.value},Pe={open:y.value===0};return o.h(Vs,{force:!0},()=>[o.h(ed,()=>o.h($g,{target:u.value},()=>o.h(Vs,{force:!1},()=>o.h(Ea,{initialFocus:fe,containers:N,features:b.value?tt(A.value,{parent:Ea.features.RestoreFocus,leaf:Ea.features.All&~Ea.features.FocusLock}):Ea.features.None},()=>o.h(S,{},()=>Be({ourProps:Se,theirProps:{...ye,...n},slot:Pe,attrs:n,slots:a,visible:y.value===0,features:At.RenderStrategy|At.Static,name:"Dialog"})))))),o.h(_)])}}});o.defineComponent({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var a;let r=(a=e.id)!=null?a:`headlessui-dialog-overlay-${dt()}`,i=xa("DialogOverlay");function s(l){l.target===l.currentTarget&&(l.preventDefault(),l.stopPropagation(),i.close())}return()=>{let{...l}=e;return Be({ourProps:{id:r,"aria-hidden":!0,onClick:s},theirProps:l,slot:{open:i.dialogState.value===0},attrs:t,slots:n,name:"DialogOverlay"})}}}),o.defineComponent({name:"DialogBackdrop",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:a}){var r;let i=(r=e.id)!=null?r:`headlessui-dialog-backdrop-${dt()}`,s=xa("DialogBackdrop"),l=o.ref(null);return a({el:l,$el:l}),o.onMounted(()=>{if(s.panelRef.value===null)throw new Error("A component is being used, but a component is missing.")}),()=>{let{...c}=e,d={id:i,ref:l,"aria-hidden":!0};return o.h(Vs,{force:!0},()=>o.h(ed,()=>Be({ourProps:d,theirProps:{...t,...c},slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogBackdrop"})))}}});let un=o.defineComponent({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){var r;let i=(r=e.id)!=null?r:`headlessui-dialog-panel-${dt()}`,s=xa("DialogPanel");a({el:s.panelRef,$el:s.panelRef});function l(c){c.stopPropagation()}return()=>{let{...c}=e,d={id:i,ref:s.panelRef,onClick:l};return Be({ourProps:d,theirProps:c,slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}}),nd=o.defineComponent({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var a;let r=(a=e.id)!=null?a:`headlessui-dialog-title-${dt()}`,i=xa("DialogTitle");return o.onMounted(()=>{i.setTitleId(r),o.onUnmounted(()=>i.setTitleId(null))}),()=>{let{...s}=e;return Be({ourProps:{id:r},theirProps:s,slot:{open:i.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}});var tb=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(tb||{});let od=Symbol("DisclosureContext");function Ws(e){let t=o.inject(od,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ws),n}return t}let ad=Symbol("DisclosurePanelContext");function nb(){return o.inject(ad,null)}let rd=o.defineComponent({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup(e,{slots:t,attrs:n}){let a=o.ref(e.defaultOpen?0:1),r=o.ref(null),i=o.ref(null),s={buttonId:o.ref(`headlessui-disclosure-button-${dt()}`),panelId:o.ref(`headlessui-disclosure-panel-${dt()}`),disclosureState:a,panel:r,button:i,toggleDisclosure(){a.value=tt(a.value,{0:1,1:0})},closeDisclosure(){a.value!==1&&(a.value=1)},close(l){s.closeDisclosure();let c=l?l instanceof HTMLElement?l:l.value instanceof HTMLElement?ae(l):ae(s.button):ae(s.button);c?.focus()}};return o.provide(od,s),ir(o.computed(()=>tt(a.value,{0:Ve.Open,1:Ve.Closed}))),()=>{let{defaultOpen:l,...c}=e,d={open:a.value===0,close:s.close};return Be({theirProps:c,ourProps:{},slot:d,slots:t,attrs:n,name:"Disclosure"})}}}),sd=o.defineComponent({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){let r=Ws("DisclosureButton"),i=nb(),s=o.computed(()=>i===null?!1:i.value===r.panelId.value);o.onMounted(()=>{s.value||e.id!==null&&(r.buttonId.value=e.id)}),o.onUnmounted(()=>{s.value||(r.buttonId.value=null)});let l=o.ref(null);a({el:l,$el:l}),s.value||o.watchEffect(()=>{r.button.value=l.value});let c=Ms(o.computed(()=>({as:e.as,type:t.type})),l);function d(){var h;e.disabled||(s.value?(r.toggleDisclosure(),(h=ae(r.button))==null||h.focus()):r.toggleDisclosure())}function f(h){var v;if(!e.disabled)if(s.value)switch(h.key){case Oe.Space:case Oe.Enter:h.preventDefault(),h.stopPropagation(),r.toggleDisclosure(),(v=ae(r.button))==null||v.focus();break}else switch(h.key){case Oe.Space:case Oe.Enter:h.preventDefault(),h.stopPropagation(),r.toggleDisclosure();break}}function p(h){switch(h.key){case Oe.Space:h.preventDefault();break}}return()=>{var h;let v={open:r.disclosureState.value===0},{id:u,...m}=e,y=s.value?{ref:l,type:c.value,onClick:d,onKeydown:f}:{id:(h=r.buttonId.value)!=null?h:u,ref:l,type:c.value,"aria-expanded":r.disclosureState.value===0,"aria-controls":r.disclosureState.value===0||ae(r.panel)?r.panelId.value:void 0,disabled:e.disabled?!0:void 0,onClick:d,onKeydown:f,onKeyup:p};return Be({ourProps:y,theirProps:m,slot:v,attrs:t,slots:n,name:"DisclosureButton"})}}}),id=o.defineComponent({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){let r=Ws("DisclosurePanel");o.onMounted(()=>{e.id!==null&&(r.panelId.value=e.id)}),o.onUnmounted(()=>{r.panelId.value=null}),a({el:r.panel,$el:r.panel}),o.provide(ad,r.panelId);let i=Io(),s=o.computed(()=>i!==null?(i.value&Ve.Open)===Ve.Open:r.disclosureState.value===0);return()=>{var l;let c={open:r.disclosureState.value===0,close:r.close},{id:d,...f}=e,p={id:(l=r.panelId.value)!=null?l:d,ref:r.panel};return Be({ourProps:p,theirProps:f,slot:c,attrs:t,slots:n,features:At.RenderStrategy|At.Static,visible:s.value,name:"DisclosurePanel"})}}}),ld=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function cd(e){var t,n;let a=(t=e.innerText)!=null?t:"",r=e.cloneNode(!0);if(!(r instanceof HTMLElement))return a;let i=!1;for(let l of r.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))l.remove(),i=!0;let s=i?(n=r.innerText)!=null?n:"":a;return ld.test(s)&&(s=s.replace(ld,"")),s}function ob(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let a=n.split(" ").map(r=>{let i=document.getElementById(r);if(i){let s=i.getAttribute("aria-label");return typeof s=="string"?s.trim():cd(i).trim()}return null}).filter(Boolean);if(a.length>0)return a.join(", ")}return cd(e).trim()}function ab(e){let t=o.ref(""),n=o.ref("");return()=>{let a=ae(e);if(!a)return"";let r=a.innerText;if(t.value===r)return n.value;let i=ob(a).trim().toLowerCase();return t.value=r,n.value=i,i}}var rb=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(rb||{}),sb=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(sb||{});function ib(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let dd=Symbol("MenuContext");function dr(e){let t=o.inject(dd,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,dr),n}return t}let Ks=o.defineComponent({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:n}){let a=o.ref(1),r=o.ref(null),i=o.ref(null),s=o.ref([]),l=o.ref(""),c=o.ref(null),d=o.ref(1);function f(h=v=>v){let v=c.value!==null?s.value[c.value]:null,u=Ps(h(s.value.slice()),y=>ae(y.dataRef.domRef)),m=v?u.indexOf(v):null;return m===-1&&(m=null),{items:u,activeItemIndex:m}}let p={menuState:a,buttonRef:r,itemsRef:i,items:s,searchQuery:l,activeItemIndex:c,activationTrigger:d,closeMenu:()=>{a.value=1,c.value=null},openMenu:()=>a.value=0,goToItem(h,v,u){let m=f(),y=Ls(h===Ae.Specific?{focus:Ae.Specific,id:v}:{focus:h},{resolveItems:()=>m.items,resolveActiveIndex:()=>m.activeItemIndex,resolveId:b=>b.id,resolveDisabled:b=>b.dataRef.disabled});l.value="",c.value=y,d.value=u??1,s.value=m.items},search(h){let v=l.value!==""?0:1;l.value+=h.toLowerCase();let u=(c.value!==null?s.value.slice(c.value+v).concat(s.value.slice(0,c.value+v)):s.value).find(y=>y.dataRef.textValue.startsWith(l.value)&&!y.dataRef.disabled),m=u?s.value.indexOf(u):-1;m===-1||m===c.value||(c.value=m,d.value=1)},clearSearch(){l.value=""},registerItem(h,v){let u=f(m=>[...m,{id:h,dataRef:v}]);s.value=u.items,c.value=u.activeItemIndex,d.value=1},unregisterItem(h){let v=f(u=>{let m=u.findIndex(y=>y.id===h);return m!==-1&&u.splice(m,1),u});s.value=v.items,c.value=v.activeItemIndex,d.value=1}};return Bs([r,i],(h,v)=>{var u;p.closeMenu(),Rs(v,Ds.Loose)||(h.preventDefault(),(u=ae(r))==null||u.focus())},o.computed(()=>a.value===0)),o.provide(dd,p),ir(o.computed(()=>tt(a.value,{0:Ve.Open,1:Ve.Closed}))),()=>{let h={open:a.value===0,close:p.closeMenu};return Be({ourProps:{},theirProps:e,slot:h,slots:t,attrs:n,name:"Menu"})}}}),Xs=o.defineComponent({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){var r;let i=(r=e.id)!=null?r:`headlessui-menu-button-${dt()}`,s=dr("MenuButton");a({el:s.buttonRef,$el:s.buttonRef});function l(p){switch(p.key){case Oe.Space:case Oe.Enter:case Oe.ArrowDown:p.preventDefault(),p.stopPropagation(),s.openMenu(),o.nextTick(()=>{var h;(h=ae(s.itemsRef))==null||h.focus({preventScroll:!0}),s.goToItem(Ae.First)});break;case Oe.ArrowUp:p.preventDefault(),p.stopPropagation(),s.openMenu(),o.nextTick(()=>{var h;(h=ae(s.itemsRef))==null||h.focus({preventScroll:!0}),s.goToItem(Ae.Last)});break}}function c(p){switch(p.key){case Oe.Space:p.preventDefault();break}}function d(p){e.disabled||(s.menuState.value===0?(s.closeMenu(),o.nextTick(()=>{var h;return(h=ae(s.buttonRef))==null?void 0:h.focus({preventScroll:!0})})):(p.preventDefault(),s.openMenu(),ib(()=>{var h;return(h=ae(s.itemsRef))==null?void 0:h.focus({preventScroll:!0})})))}let f=Ms(o.computed(()=>({as:e.as,type:t.type})),s.buttonRef);return()=>{var p;let h={open:s.menuState.value===0},{...v}=e,u={ref:s.buttonRef,id:i,type:f.value,"aria-haspopup":"menu","aria-controls":(p=ae(s.itemsRef))==null?void 0:p.id,"aria-expanded":s.menuState.value===0,onKeydown:l,onKeyup:c,onClick:d};return Be({ourProps:u,theirProps:v,slot:h,attrs:t,slots:n,name:"MenuButton"})}}}),Ys=o.defineComponent({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){var r;let i=(r=e.id)!=null?r:`headlessui-menu-items-${dt()}`,s=dr("MenuItems"),l=o.ref(null);a({el:s.itemsRef,$el:s.itemsRef}),Pc({container:o.computed(()=>ae(s.itemsRef)),enabled:o.computed(()=>s.menuState.value===0),accept(h){return h.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:h.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(h){h.setAttribute("role","none")}});function c(h){var v;switch(l.value&&clearTimeout(l.value),h.key){case Oe.Space:if(s.searchQuery.value!=="")return h.preventDefault(),h.stopPropagation(),s.search(h.key);case Oe.Enter:if(h.preventDefault(),h.stopPropagation(),s.activeItemIndex.value!==null){let u=s.items.value[s.activeItemIndex.value];(v=ae(u.dataRef.domRef))==null||v.click()}s.closeMenu(),Nc(ae(s.buttonRef));break;case Oe.ArrowDown:return h.preventDefault(),h.stopPropagation(),s.goToItem(Ae.Next);case Oe.ArrowUp:return h.preventDefault(),h.stopPropagation(),s.goToItem(Ae.Previous);case Oe.Home:case Oe.PageUp:return h.preventDefault(),h.stopPropagation(),s.goToItem(Ae.First);case Oe.End:case Oe.PageDown:return h.preventDefault(),h.stopPropagation(),s.goToItem(Ae.Last);case Oe.Escape:h.preventDefault(),h.stopPropagation(),s.closeMenu(),o.nextTick(()=>{var u;return(u=ae(s.buttonRef))==null?void 0:u.focus({preventScroll:!0})});break;case Oe.Tab:h.preventDefault(),h.stopPropagation(),s.closeMenu(),o.nextTick(()=>vg(ae(s.buttonRef),h.shiftKey?$t.Previous:$t.Next));break;default:h.key.length===1&&(s.search(h.key),l.value=setTimeout(()=>s.clearSearch(),350));break}}function d(h){switch(h.key){case Oe.Space:h.preventDefault();break}}let f=Io(),p=o.computed(()=>f!==null?(f.value&Ve.Open)===Ve.Open:s.menuState.value===0);return()=>{var h,v;let u={open:s.menuState.value===0},{...m}=e,y={"aria-activedescendant":s.activeItemIndex.value===null||(h=s.items.value[s.activeItemIndex.value])==null?void 0:h.id,"aria-labelledby":(v=ae(s.buttonRef))==null?void 0:v.id,id:i,onKeydown:c,onKeyup:d,role:"menu",tabIndex:0,ref:s.itemsRef};return Be({ourProps:y,theirProps:m,slot:u,attrs:t,slots:n,features:At.RenderStrategy|At.Static,visible:p.value,name:"MenuItems"})}}}),Sa=o.defineComponent({name:"MenuItem",inheritAttrs:!1,props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n,expose:a}){var r;let i=(r=e.id)!=null?r:`headlessui-menu-item-${dt()}`,s=dr("MenuItem"),l=o.ref(null);a({el:l,$el:l});let c=o.computed(()=>s.activeItemIndex.value!==null?s.items.value[s.activeItemIndex.value].id===i:!1),d=ab(l),f=o.computed(()=>({disabled:e.disabled,get textValue(){return d()},domRef:l}));o.onMounted(()=>s.registerItem(i,f)),o.onUnmounted(()=>s.unregisterItem(i)),o.watchEffect(()=>{s.menuState.value===0&&c.value&&s.activationTrigger.value!==0&&o.nextTick(()=>{var b,g;return(g=(b=ae(l))==null?void 0:b.scrollIntoView)==null?void 0:g.call(b,{block:"nearest"})})});function p(b){if(e.disabled)return b.preventDefault();s.closeMenu(),Nc(ae(s.buttonRef))}function h(){if(e.disabled)return s.goToItem(Ae.Nothing);s.goToItem(Ae.Specific,i)}let v=Rc();function u(b){v.update(b)}function m(b){v.wasMoved(b)&&(e.disabled||c.value||s.goToItem(Ae.Specific,i,0))}function y(b){v.wasMoved(b)&&(e.disabled||c.value&&s.goToItem(Ae.Nothing))}return()=>{let{disabled:b,...g}=e,T={active:c.value,disabled:b,close:s.closeMenu};return Be({ourProps:{id:i,ref:l,role:"menuitem",tabIndex:b===!0?void 0:-1,"aria-disabled":b===!0?!0:void 0,onClick:p,onFocus:h,onPointerenter:u,onMouseenter:u,onPointermove:m,onMousemove:m,onPointerleave:y,onMouseleave:y},theirProps:{...n,...g},slot:T,attrs:n,slots:t,name:"MenuItem"})}}});function lb(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Js(e,...t){e&&t.length>0&&e.classList.add(...t)}function ur(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Qs=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(Qs||{});function cb(e,t){let n=kn();if(!e)return n.dispose;let{transitionDuration:a,transitionDelay:r}=getComputedStyle(e),[i,s]=[a,r].map(l=>{let[c=0]=l.split(",").filter(Boolean).map(d=>d.includes("ms")?parseFloat(d):parseFloat(d)*1e3).sort((d,f)=>f-d);return c});return i!==0?n.setTimeout(()=>t("finished"),i+s):t("finished"),n.add(()=>t("cancelled")),n.dispose}function ud(e,t,n,a,r,i){let s=kn(),l=i!==void 0?lb(i):()=>{};return ur(e,...r),Js(e,...t,...n),s.nextFrame(()=>{ur(e,...n),Js(e,...a),s.add(cb(e,c=>(ur(e,...a,...t),Js(e,...r),l(c))))}),s.add(()=>ur(e,...t,...n,...a,...r)),s.add(()=>l("cancelled")),s.dispose}function Zn(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Zs=Symbol("TransitionContext");var db=(e=>(e.Visible="visible",e.Hidden="hidden",e))(db||{});function ub(){return o.inject(Zs,null)!==null}function fb(){let e=o.inject(Zs,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}function pb(){let e=o.inject(qs,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}let qs=Symbol("NestingContext");function fr(e){return"children"in e?fr(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function fd(e){let t=o.ref([]),n=o.ref(!1);o.onMounted(()=>n.value=!0),o.onUnmounted(()=>n.value=!1);function a(i,s=_n.Hidden){let l=t.value.findIndex(({id:c})=>c===i);l!==-1&&(tt(s,{[_n.Unmount](){t.value.splice(l,1)},[_n.Hidden](){t.value[l].state="hidden"}}),!fr(t)&&n.value&&e?.())}function r(i){let s=t.value.find(({id:l})=>l===i);return s?s.state!=="visible"&&(s.state="visible"):t.value.push({id:i,state:"visible"}),()=>a(i,_n.Unmount)}return{children:t,register:r,unregister:a}}let pd=At.RenderStrategy,An=o.defineComponent({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:a,expose:r}){let i=o.ref(0);function s(){i.value|=Ve.Opening,t("beforeEnter")}function l(){i.value&=~Ve.Opening,t("afterEnter")}function c(){i.value|=Ve.Closing,t("beforeLeave")}function d(){i.value&=~Ve.Closing,t("afterLeave")}if(!ub()&&Eg())return()=>o.h(Oa,{...e,onBeforeEnter:s,onAfterEnter:l,onBeforeLeave:c,onAfterLeave:d},a);let f=o.ref(null),p=o.computed(()=>e.unmount?_n.Unmount:_n.Hidden);r({el:f,$el:f});let{show:h,appear:v}=fb(),{register:u,unregister:m}=pb(),y=o.ref(h.value?"visible":"hidden"),b={value:!0},g=dt(),T={value:!1},O=fd(()=>{!T.value&&y.value!=="hidden"&&(y.value="hidden",m(g),d())});o.onMounted(()=>{let B=u(g);o.onUnmounted(B)}),o.watchEffect(()=>{if(p.value===_n.Hidden&&g){if(h.value&&y.value!=="visible"){y.value="visible";return}tt(y.value,{hidden:()=>m(g),visible:()=>u(g)})}});let S=Zn(e.enter),N=Zn(e.enterFrom),I=Zn(e.enterTo),_=Zn(e.entered),A=Zn(e.leave),D=Zn(e.leaveFrom),M=Zn(e.leaveTo);o.onMounted(()=>{o.watchEffect(()=>{if(y.value==="visible"){let B=ae(f);if(B instanceof Comment&&B.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function K(B){let j=b.value&&!v.value,H=ae(f);!H||!(H instanceof HTMLElement)||j||(T.value=!0,h.value&&s(),h.value||c(),B(h.value?ud(H,S,N,I,_,W=>{T.value=!1,W===Qs.Finished&&l()}):ud(H,A,D,M,_,W=>{T.value=!1,W===Qs.Finished&&(fr(O)||(y.value="hidden",m(g),d()))})))}return o.onMounted(()=>{o.watch([h],(B,j,H)=>{K(H),b.value=!1},{immediate:!0})}),o.provide(qs,O),ir(o.computed(()=>tt(y.value,{visible:Ve.Open,hidden:Ve.Closed})|i.value)),()=>{let{appear:B,show:j,enter:H,enterFrom:W,enterTo:Q,entered:ne,leave:we,leaveFrom:Ze,leaveTo:se,...fe}=e,ye={ref:f},Se={...fe,...v.value&&h.value&&ma.isServer?{class:o.normalizeClass([n.class,fe.class,...S,...N])}:{}};return Be({theirProps:Se,ourProps:ye,slot:{},slots:a,attrs:n,features:pd,visible:y.value==="visible",name:"TransitionChild"})}}}),hb=An,Oa=o.defineComponent({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:a}){let r=Io(),i=o.computed(()=>e.show===null&&r!==null?(r.value&Ve.Open)===Ve.Open:e.show);o.watchEffect(()=>{if(![!0,!1].includes(i.value))throw new Error('A is used but it is missing a `:show="true | false"` prop.')});let s=o.ref(i.value?"visible":"hidden"),l=fd(()=>{s.value="hidden"}),c=o.ref(!0),d={show:i,appear:o.computed(()=>e.appear||!c.value)};return o.onMounted(()=>{o.watchEffect(()=>{c.value=!1,i.value?s.value="visible":fr(l)||(s.value="hidden")})}),o.provide(qs,l),o.provide(Zs,d),()=>{let f=ga(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),p={unmount:e.unmount};return Be({ourProps:{...p,as:"template"},theirProps:{},slot:{},slots:{...a,default:()=>[o.h(hb,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...p,...f},a.default)]},attrs:{},features:pd,visible:s.value==="visible",name:"Transition"})}}});const mb={},vb={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},gb=[o.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),o.createElementVNode("path",{d:"M8 5v10a1 1 0 0 0 1 1h10"},null,-1),o.createElementVNode("path",{d:"M5 8h10a1 1 0 0 1 1 1v10"},null,-1)];function bb(e,t){return o.openBlock(),o.createElementBlock("svg",vb,gb)}const hd=is(mb,[["render",bb]]),it=o.defineComponent({__name:"IconButton",props:{variant:{default:"secondary"},type:{default:"button"},asAnchor:{type:Boolean,default:!1},download:{}},setup(e){const t={primary:"bg-blue-500 text-white focus:outline-blue-500",secondary:"bg-gray-300 dark:bg-gray-700 text-gray-800 dark:text-gray-200 focus:outline-blue-500",danger:"bg-red-500 text-white focus:outline-red-500",success:"bg-green-500 text-white focus:outline-green-500",transparent:"bg-transparent text-gray-800 dark:text-gray-100"},n=e,a=o.computed(()=>t[n.variant]);return(r,i)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(r.asAnchor?"a":"button"),{class:o.normalizeClass(`inline-flex items-center rounded-full border-0 p-2 shadow-sm focus:outline-none focus:ring-1 hover:opacity-75 disabled:opacity-25 ${a.value}`),type:r.asAnchor?void 0:r.type??"button",download:r.download??null},{default:o.withCtx(()=>[o.renderSlot(r.$slots,"default")]),_:3},8,["class","type","download"]))}}),yb=o.createElementVNode("div",{class:"fixed inset-0 bg-gray-800/20 backdrop-blur-sm transition-opacity"},null,-1),Eb={class:"flex items-end sm:items-center justify-center min-h-full p-0 md:p-4"},_o=o.defineComponent({__name:"BaseModal",props:{name:{},initialFocusRef:{}},setup(e){const t=e;o.onBeforeUnmount(()=>{r.value&&i()});const n=Re(),a=o.computed(()=>n.dark),r=o.computed(()=>n.isOpen(t.name)),i=()=>{n.closeModal({name:t.name})};return(s,l)=>(o.openBlock(),o.createBlock(o.unref(Oa),{show:r.value,as:"template",class:"nova-file-manager"},{default:o.withCtx(()=>[o.createVNode(o.unref(cr),{as:"div",class:"relative z-[60]",style:{"z-index":"999"},onClose:i,"initial-focus":s.initialFocusRef},{default:o.withCtx(()=>[o.createVNode(o.unref(An),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:o.withCtx(()=>[yb]),_:1}),o.createElementVNode("div",{class:o.normalizeClass([{dark:a.value},"fixed z-10 inset-0 overflow-y-auto"])},[o.createElementVNode("div",Eb,[o.createVNode(o.unref(An),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:o.withCtx(()=>[o.renderSlot(s.$slots,"default",{close:i,isOpen:r.value,dark:a.value})]),_:3})])],2)]),_:3},8,["initial-focus"])]),_:3},8,["show"]))}});var md={},vd={exports:{}};/*! +`));let v=Mc((s=p.props)!=null?s:{},c,f),u=o.cloneVNode(p,v,!0);for(let m in v)m.startsWith("on")&&(u.props||(u.props={}),u.props[m]=v[m]);return u}return Array.isArray(d)&&d.length===1?d[0]:d}return o.h(l,Object.assign({},c,f),{default:()=>d})}function Bc(e){return e.flatMap(t=>t.type===o.Fragment?Bc(t.children):[t])}function Mc(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let a of e)for(let r in a)r.startsWith("on")&&typeof a[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(a[r])):t[r]=a[r];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(a=>[a,void 0])));for(let a in n)Object.assign(t,{[a](r,...i){let s=n[a];for(let l of s){if(r instanceof Event&&r.defaultPrevented)return;l(r,...i)}}});return t}function bg(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function ga(e,t=[]){let n=Object.assign({},e);for(let a of t)a in n&&delete n[a];return n}function yg(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var ba=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ba||{});let sr=o.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{var a;let{features:r,...i}=e,s={"aria-hidden":(r&2)===2?!0:(a=i["aria-hidden"])!=null?a:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Be({ourProps:s,theirProps:i,slot:{},attrs:n,slots:t,name:"Hidden"})}}}),Fc=Symbol("Context");var Ve=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ve||{});function Eg(){return Io()!==null}function Io(){return o.inject(Fc,null)}function ir(e){o.provide(Fc,e)}var Oe=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Oe||{}),Lc=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(Lc||{});function wg(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let dn=[];wg(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&dn[0]!==t.target&&(dn.unshift(t.target),dn=dn.filter(n=>n!=null&&n.isConnected),dn.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function xg(e){throw new Error("Unexpected object: "+e)}var Ae=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Ae||{});function Ls(e,t){let n=t.resolveItems();if(n.length<=0)return null;let a=t.resolveActiveIndex(),r=a??-1;switch(e.focus){case 0:{for(let i=0;i=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return a}case 2:{for(let i=r+1;i=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return a}case 4:{for(let i=0;i(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Tg||{}),Cg=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Cg||{}),Ng=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(Ng||{});let Hc=Symbol("ComboboxContext");function Jn(e){let t=o.inject(Hc,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Jn),n}return t}let zc=Symbol("VirtualContext"),kg=o.defineComponent({name:"VirtualProvider",setup(e,{slots:t}){let n=Jn("VirtualProvider"),a=o.computed(()=>{let l=ae(n.optionsRef);if(!l)return{start:0,end:0};let c=window.getComputedStyle(l);return{start:parseFloat(c.paddingBlockStart||c.paddingTop),end:parseFloat(c.paddingBlockEnd||c.paddingBottom)}}),r=og(o.computed(()=>({scrollPaddingStart:a.value.start,scrollPaddingEnd:a.value.end,count:n.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return ae(n.optionsRef)},overscan:12}))),i=o.computed(()=>{var l;return(l=n.virtual.value)==null?void 0:l.options}),s=o.ref(0);return o.watch([i],()=>{s.value+=1}),o.provide(zc,n.virtual.value?r:null),()=>[o.h("div",{style:{position:"relative",width:"100%",height:`${r.value.getTotalSize()}px`},ref:l=>{if(l){if(typeof process<"u"&&Sg.JEST_WORKER_ID!==void 0||n.activationTrigger.value===0)return;n.activeOptionIndex.value!==null&&n.virtual.value.options.length>n.activeOptionIndex.value&&r.value.scrollToIndex(n.activeOptionIndex.value)}}},r.value.getVirtualItems().map(l=>o.cloneVNode(t.default({option:n.virtual.value.options[l.index],open:n.comboboxState.value===0})[0],{key:`${s.value}-${l.index}`,"data-index":l.index,"aria-setsize":n.virtual.value.options.length,"aria-posinset":l.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${l.start}px)`,overflowAnchor:"none"}})))]}}),Ig=o.defineComponent({name:"Combobox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:a}){let r=o.ref(1),i=o.ref(null),s=o.ref(null),l=o.ref(null),c=o.ref(null),d=o.ref({static:!1,hold:!1}),f=o.ref([]),p=o.ref(null),h=o.ref(2),v=o.ref(!1);function u(D=M=>M){let M=p.value!==null?f.value[p.value]:null,K=D(f.value.slice()),B=K.length>0&&K[0].dataRef.order.value!==null?K.sort((H,W)=>H.dataRef.order.value-W.dataRef.order.value):Ps(K,H=>ae(H.dataRef.domRef)),j=M?B.indexOf(M):null;return j===-1&&(j=null),{options:B,activeOptionIndex:j}}let m=o.computed(()=>e.multiple?1:0),y=o.computed(()=>e.nullable),[b,g]=ag(o.computed(()=>e.modelValue),D=>a("update:modelValue",D),o.computed(()=>e.defaultValue)),T=o.computed(()=>b.value===void 0?tt(m.value,{1:[],0:void 0}):b.value),O=null,S=null;function N(D){return tt(m.value,{0(){return g?.(D)},1:()=>{let M=o.toRaw(_.value.value).slice(),K=o.toRaw(D),B=M.findIndex(j=>_.compare(K,o.toRaw(j)));return B===-1?M.push(K):M.splice(B,1),g?.(M)}})}let I=o.computed(()=>{});o.watch([I],([D],[M])=>{if(_.virtual.value&&D&&M&&p.value!==null){let K=D.indexOf(M[p.value]);K!==-1?p.value=K:p.value=null}});let _={comboboxState:r,value:T,mode:m,compare(D,M){if(typeof e.by=="string"){let K=e.by;return D?.[K]===M?.[K]}return e.by===null?Og(D,M):e.by(D,M)},calculateIndex(D){return _.virtual.value?e.by===null?_.virtual.value.options.indexOf(D):_.virtual.value.options.findIndex(M=>_.compare(M,D)):f.value.findIndex(M=>_.compare(M.dataRef.value,D))},defaultValue:o.computed(()=>e.defaultValue),nullable:y,immediate:o.computed(()=>!1),virtual:o.computed(()=>null),inputRef:s,labelRef:i,buttonRef:l,optionsRef:c,disabled:o.computed(()=>e.disabled),options:f,change(D){g(D)},activeOptionIndex:o.computed(()=>{if(v.value&&p.value===null&&(_.virtual.value?_.virtual.value.options.length>0:f.value.length>0)){if(_.virtual.value){let M=_.virtual.value.options.findIndex(K=>{var B;return!((B=_.virtual.value)!=null&&B.disabled(K))});if(M!==-1)return M}let D=f.value.findIndex(M=>!M.dataRef.disabled);if(D!==-1)return D}return p.value}),activationTrigger:h,optionsPropsRef:d,closeCombobox(){v.value=!1,!e.disabled&&r.value!==1&&(r.value=1,p.value=null)},openCombobox(){if(v.value=!0,!e.disabled&&r.value!==0){if(_.value.value){let D=_.calculateIndex(_.value.value);D!==-1&&(p.value=D)}r.value=0}},setActivationTrigger(D){h.value=D},goToOption(D,M,K){v.value=!1,O!==null&&cancelAnimationFrame(O),O=requestAnimationFrame(()=>{if(e.disabled||c.value&&!d.value.static&&r.value===1)return;if(_.virtual.value){p.value=D===Ae.Specific?M:Ls({focus:D},{resolveItems:()=>_.virtual.value.options,resolveActiveIndex:()=>{var H,W;return(W=(H=_.activeOptionIndex.value)!=null?H:_.virtual.value.options.findIndex(Q=>{var ne;return!((ne=_.virtual.value)!=null&&ne.disabled(Q))}))!=null?W:null},resolveDisabled:H=>_.virtual.value.disabled(H),resolveId(){throw new Error("Function not implemented.")}}),h.value=K??2;return}let B=u();if(B.activeOptionIndex===null){let H=B.options.findIndex(W=>!W.dataRef.disabled);H!==-1&&(B.activeOptionIndex=H)}let j=D===Ae.Specific?M:Ls({focus:D},{resolveItems:()=>B.options,resolveActiveIndex:()=>B.activeOptionIndex,resolveId:H=>H.id,resolveDisabled:H=>H.dataRef.disabled});p.value=j,h.value=K??2,f.value=B.options})},selectOption(D){let M=f.value.find(B=>B.id===D);if(!M)return;let{dataRef:K}=M;N(K.value)},selectActiveOption(){if(_.activeOptionIndex.value!==null){if(_.virtual.value)N(_.virtual.value.options[_.activeOptionIndex.value]);else{let{dataRef:D}=f.value[_.activeOptionIndex.value];N(D.value)}_.goToOption(Ae.Specific,_.activeOptionIndex.value)}},registerOption(D,M){let K=o.reactive({id:D,dataRef:M});if(_.virtual.value){f.value.push(K);return}S&&cancelAnimationFrame(S);let B=u(j=>(j.push(K),j));p.value===null&&_.isSelected(M.value.value)&&(B.activeOptionIndex=B.options.indexOf(K)),f.value=B.options,p.value=B.activeOptionIndex,h.value=2,B.options.some(j=>!ae(j.dataRef.domRef))&&(S=requestAnimationFrame(()=>{let j=u();f.value=j.options,p.value=j.activeOptionIndex}))},unregisterOption(D,M){if(O!==null&&cancelAnimationFrame(O),M&&(v.value=!0),_.virtual.value){f.value=f.value.filter(B=>B.id!==D);return}let K=u(B=>{let j=B.findIndex(H=>H.id===D);return j!==-1&&B.splice(j,1),B});f.value=K.options,p.value=K.activeOptionIndex,h.value=2},isSelected(D){return tt(m.value,{0:()=>_.compare(o.toRaw(_.value.value),o.toRaw(D)),1:()=>o.toRaw(_.value.value).some(M=>_.compare(o.toRaw(M),o.toRaw(D)))})},isActive(D){return p.value===_.calculateIndex(D)}};Bs([s,l,c],()=>_.closeCombobox(),o.computed(()=>r.value===0)),o.provide(Hc,_),ir(o.computed(()=>tt(r.value,{0:Ve.Open,1:Ve.Closed})));let A=o.computed(()=>{var D;return(D=ae(s))==null?void 0:D.closest("form")});return o.onMounted(()=>{o.watch([A],()=>{if(!A.value||e.defaultValue===void 0)return;function D(){_.change(e.defaultValue)}return A.value.addEventListener("reset",D),()=>{var M;(M=A.value)==null||M.removeEventListener("reset",D)}},{immediate:!0})}),()=>{var D,M,K;let{name:B,disabled:j,form:H,...W}=e,Q={open:r.value===0,disabled:j,activeIndex:_.activeOptionIndex.value,activeOption:_.activeOptionIndex.value===null?null:_.virtual.value?_.virtual.value.options[(D=_.activeOptionIndex.value)!=null?D:0]:(K=(M=_.options.value[_.activeOptionIndex.value])==null?void 0:M.dataRef.value)!=null?K:null,value:T.value};return o.h(o.Fragment,[...B!=null&&T.value!=null?jc({[B]:T.value}).map(([ne,we])=>o.h(sr,bg({features:ba.Hidden,key:ne,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:H,disabled:j,name:ne,value:we}))):[],Be({theirProps:{...n,...ga(W,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:Q,slots:t,attrs:n,name:"Combobox"})])}}});o.defineComponent({name:"ComboboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var a;let r=(a=e.id)!=null?a:`headlessui-combobox-label-${dt()}`,i=Jn("ComboboxLabel");function s(){var l;(l=ae(i.inputRef))==null||l.focus({preventScroll:!0})}return()=>{let l={open:i.comboboxState.value===0,disabled:i.disabled.value},{...c}=e,d={id:r,ref:i.labelRef,onClick:s};return Be({ourProps:d,theirProps:c,slot:l,attrs:t,slots:n,name:"ComboboxLabel"})}}}),o.defineComponent({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){var r;let i=(r=e.id)!=null?r:`headlessui-combobox-button-${dt()}`,s=Jn("ComboboxButton");a({el:s.buttonRef,$el:s.buttonRef});function l(f){s.disabled.value||(s.comboboxState.value===0?s.closeCombobox():(f.preventDefault(),s.openCombobox()),o.nextTick(()=>{var p;return(p=ae(s.inputRef))==null?void 0:p.focus({preventScroll:!0})}))}function c(f){switch(f.key){case Oe.ArrowDown:f.preventDefault(),f.stopPropagation(),s.comboboxState.value===1&&s.openCombobox(),o.nextTick(()=>{var p;return(p=s.inputRef.value)==null?void 0:p.focus({preventScroll:!0})});return;case Oe.ArrowUp:f.preventDefault(),f.stopPropagation(),s.comboboxState.value===1&&(s.openCombobox(),o.nextTick(()=>{s.value.value||s.goToOption(Ae.Last)})),o.nextTick(()=>{var p;return(p=s.inputRef.value)==null?void 0:p.focus({preventScroll:!0})});return;case Oe.Escape:if(s.comboboxState.value!==0)return;f.preventDefault(),s.optionsRef.value&&!s.optionsPropsRef.value.static&&f.stopPropagation(),s.closeCombobox(),o.nextTick(()=>{var p;return(p=s.inputRef.value)==null?void 0:p.focus({preventScroll:!0})});return}}let d=Ms(o.computed(()=>({as:e.as,type:t.type})),s.buttonRef);return()=>{var f,p;let h={open:s.comboboxState.value===0,disabled:s.disabled.value,value:s.value.value},{...v}=e,u={ref:s.buttonRef,id:i,type:d.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(f=ae(s.optionsRef))==null?void 0:f.id,"aria-expanded":s.comboboxState.value===0,"aria-labelledby":s.labelRef.value?[(p=ae(s.labelRef))==null?void 0:p.id,i].join(" "):void 0,disabled:s.disabled.value===!0?!0:void 0,onKeydown:c,onClick:l};return Be({ourProps:u,theirProps:v,slot:h,attrs:t,slots:n,name:"ComboboxButton"})}}});let _g=o.defineComponent({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:e=>!0},setup(e,{emit:t,attrs:n,slots:a,expose:r}){var i;let s=(i=e.id)!=null?i:`headlessui-combobox-input-${dt()}`,l=Jn("ComboboxInput"),c=o.computed(()=>cn(ae(l.inputRef))),d={value:!1};r({el:l.inputRef,$el:l.inputRef});function f(){l.change(null);let S=ae(l.optionsRef);S&&(S.scrollTop=0),l.goToOption(Ae.Nothing)}let p=o.computed(()=>{var S;let N=l.value.value;return ae(l.inputRef)?typeof e.displayValue<"u"&&N!==void 0?(S=e.displayValue(N))!=null?S:"":typeof N=="string"?N:"":""});o.onMounted(()=>{o.watch([p,l.comboboxState,c],([S,N],[I,_])=>{if(d.value)return;let A=ae(l.inputRef);A&&((_===0&&N===1||S!==I)&&(A.value=S),requestAnimationFrame(()=>{var D;if(d.value||!A||((D=c.value)==null?void 0:D.activeElement)!==A)return;let{selectionStart:M,selectionEnd:K}=A;Math.abs((K??0)-(M??0))===0&&M===0&&A.setSelectionRange(A.value.length,A.value.length)}))},{immediate:!0}),o.watch([l.comboboxState],([S],[N])=>{if(S===0&&N===1){if(d.value)return;let I=ae(l.inputRef);if(!I)return;let _=I.value,{selectionStart:A,selectionEnd:D,selectionDirection:M}=I;I.value="",I.value=_,M!==null?I.setSelectionRange(A,D,M):I.setSelectionRange(A,D)}})});let h=o.ref(!1);function v(){h.value=!0}function u(){kn().nextFrame(()=>{h.value=!1})}let m=sg();function y(S){switch(d.value=!0,m(()=>{d.value=!1}),S.key){case Oe.Enter:if(d.value=!1,l.comboboxState.value!==0||h.value)return;if(S.preventDefault(),S.stopPropagation(),l.activeOptionIndex.value===null){l.closeCombobox();return}l.selectActiveOption(),l.mode.value===0&&l.closeCombobox();break;case Oe.ArrowDown:return d.value=!1,S.preventDefault(),S.stopPropagation(),tt(l.comboboxState.value,{0:()=>l.goToOption(Ae.Next),1:()=>l.openCombobox()});case Oe.ArrowUp:return d.value=!1,S.preventDefault(),S.stopPropagation(),tt(l.comboboxState.value,{0:()=>l.goToOption(Ae.Previous),1:()=>{l.openCombobox(),o.nextTick(()=>{l.value.value||l.goToOption(Ae.Last)})}});case Oe.Home:if(S.shiftKey)break;return d.value=!1,S.preventDefault(),S.stopPropagation(),l.goToOption(Ae.First);case Oe.PageUp:return d.value=!1,S.preventDefault(),S.stopPropagation(),l.goToOption(Ae.First);case Oe.End:if(S.shiftKey)break;return d.value=!1,S.preventDefault(),S.stopPropagation(),l.goToOption(Ae.Last);case Oe.PageDown:return d.value=!1,S.preventDefault(),S.stopPropagation(),l.goToOption(Ae.Last);case Oe.Escape:if(d.value=!1,l.comboboxState.value!==0)return;S.preventDefault(),l.optionsRef.value&&!l.optionsPropsRef.value.static&&S.stopPropagation(),l.nullable.value&&l.mode.value===0&&l.value.value===null&&f(),l.closeCombobox();break;case Oe.Tab:if(d.value=!1,l.comboboxState.value!==0)return;l.mode.value===0&&l.activationTrigger.value!==1&&l.selectActiveOption(),l.closeCombobox();break}}function b(S){t("change",S),l.nullable.value&&l.mode.value===0&&S.target.value===""&&f(),l.openCombobox()}function g(S){var N,I,_;let A=(N=S.relatedTarget)!=null?N:dn.find(D=>D!==S.currentTarget);if(d.value=!1,!((I=ae(l.optionsRef))!=null&&I.contains(A))&&!((_=ae(l.buttonRef))!=null&&_.contains(A))&&l.comboboxState.value===0)return S.preventDefault(),l.mode.value===0&&(l.nullable.value&&l.value.value===null?f():l.activationTrigger.value!==1&&l.selectActiveOption()),l.closeCombobox()}function T(S){var N,I,_;let A=(N=S.relatedTarget)!=null?N:dn.find(D=>D!==S.currentTarget);(I=ae(l.buttonRef))!=null&&I.contains(A)||(_=ae(l.optionsRef))!=null&&_.contains(A)||l.disabled.value||l.immediate.value&&l.comboboxState.value!==0&&(l.openCombobox(),kn().nextFrame(()=>{l.setActivationTrigger(1)}))}let O=o.computed(()=>{var S,N,I,_;return(_=(I=(N=e.defaultValue)!=null?N:l.defaultValue.value!==void 0?(S=e.displayValue)==null?void 0:S.call(e,l.defaultValue.value):null)!=null?I:l.defaultValue.value)!=null?_:""});return()=>{var S,N,I,_,A,D,M;let K={open:l.comboboxState.value===0},{displayValue:B,onChange:j,...H}=e,W={"aria-controls":(S=l.optionsRef.value)==null?void 0:S.id,"aria-expanded":l.comboboxState.value===0,"aria-activedescendant":l.activeOptionIndex.value===null?void 0:l.virtual.value?(N=l.options.value.find(Q=>!l.virtual.value.disabled(Q.dataRef.value)&&l.compare(Q.dataRef.value,l.virtual.value.options[l.activeOptionIndex.value])))==null?void 0:N.id:(I=l.options.value[l.activeOptionIndex.value])==null?void 0:I.id,"aria-labelledby":(D=(_=ae(l.labelRef))==null?void 0:_.id)!=null?D:(A=ae(l.buttonRef))==null?void 0:A.id,"aria-autocomplete":"list",id:s,onCompositionstart:v,onCompositionend:u,onKeydown:y,onInput:b,onFocus:T,onBlur:g,role:"combobox",type:(M=n.type)!=null?M:"text",tabIndex:0,ref:l.inputRef,defaultValue:O.value,disabled:l.disabled.value===!0?!0:void 0};return Be({ourProps:W,theirProps:H,slot:K,attrs:n,slots:a,features:At.RenderStrategy|At.Static,name:"ComboboxInput"})}}}),Ag=o.defineComponent({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:t,slots:n,expose:a}){let r=Jn("ComboboxOptions"),i=`headlessui-combobox-options-${dt()}`;a({el:r.optionsRef,$el:r.optionsRef}),o.watchEffect(()=>{r.optionsPropsRef.value.static=e.static}),o.watchEffect(()=>{r.optionsPropsRef.value.hold=e.hold});let s=Io(),l=o.computed(()=>s!==null?(s.value&Ve.Open)===Ve.Open:r.comboboxState.value===0);Pc({container:o.computed(()=>ae(r.optionsRef)),enabled:o.computed(()=>r.comboboxState.value===0),accept(d){return d.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:d.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(d){d.setAttribute("role","none")}});function c(d){d.preventDefault()}return()=>{var d,f,p;let h={open:r.comboboxState.value===0},v={"aria-labelledby":(p=(d=ae(r.labelRef))==null?void 0:d.id)!=null?p:(f=ae(r.buttonRef))==null?void 0:f.id,id:i,ref:r.optionsRef,role:"listbox","aria-multiselectable":r.mode.value===1?!0:void 0,onMousedown:c},u=ga(e,["hold"]);return Be({ourProps:v,theirProps:u,slot:h,attrs:t,slots:r.virtual.value&&r.comboboxState.value===0?{...n,default:()=>[o.h(kg,{},n.default)]}:n,features:At.RenderStrategy|At.Static,visible:l.value,name:"ComboboxOptions"})}}}),Gc=o.defineComponent({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(e,{slots:t,attrs:n,expose:a}){let r=Jn("ComboboxOption"),i=`headlessui-combobox-option-${dt()}`,s=o.ref(null),l=o.computed(()=>e.disabled);a({el:s,$el:s});let c=o.computed(()=>{var g;return r.virtual.value?r.activeOptionIndex.value===r.calculateIndex(e.value):r.activeOptionIndex.value===null?!1:((g=r.options.value[r.activeOptionIndex.value])==null?void 0:g.id)===i}),d=o.computed(()=>r.isSelected(e.value)),f=o.inject(zc,null),p=o.computed(()=>({disabled:e.disabled,value:e.value,domRef:s,order:o.computed(()=>e.order)}));o.onMounted(()=>r.registerOption(i,p)),o.onUnmounted(()=>r.unregisterOption(i,c.value)),o.watchEffect(()=>{let g=ae(s);g&&f?.value.measureElement(g)}),o.watchEffect(()=>{r.comboboxState.value===0&&c.value&&(r.virtual.value||r.activationTrigger.value!==0&&o.nextTick(()=>{var g,T;return(T=(g=ae(s))==null?void 0:g.scrollIntoView)==null?void 0:T.call(g,{block:"nearest"})}))});function h(g){g.preventDefault(),g.button===Lc.Left&&(l.value||(r.selectOption(i),Ic()||requestAnimationFrame(()=>{var T;return(T=ae(r.inputRef))==null?void 0:T.focus({preventScroll:!0})}),r.mode.value===0&&r.closeCombobox()))}function v(){var g;if(e.disabled||(g=r.virtual.value)!=null&&g.disabled(e.value))return r.goToOption(Ae.Nothing);let T=r.calculateIndex(e.value);r.goToOption(Ae.Specific,T)}let u=Rc();function m(g){u.update(g)}function y(g){var T;if(!u.wasMoved(g)||e.disabled||(T=r.virtual.value)!=null&&T.disabled(e.value)||c.value)return;let O=r.calculateIndex(e.value);r.goToOption(Ae.Specific,O,0)}function b(g){var T;u.wasMoved(g)&&(e.disabled||(T=r.virtual.value)!=null&&T.disabled(e.value)||c.value&&(r.optionsPropsRef.value.hold||r.goToOption(Ae.Nothing)))}return()=>{let{disabled:g}=e,T={active:c.value,selected:d.value,disabled:g},O={id:i,ref:s,role:"option",tabIndex:g===!0?void 0:-1,"aria-disabled":g===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onMousedown:h,onFocus:v,onPointerenter:m,onMouseenter:m,onPointermove:y,onMousemove:y,onPointerleave:b,onMouseleave:b},S=ga(e,["order","value"]);return Be({ourProps:O,theirProps:S,slot:T,attrs:n,slots:t,name:"ComboboxOption"})}}});function Wc(e,t,n,a){ma.isServer||o.watchEffect(r=>{e=e??window,e.addEventListener(t,n,a),r(()=>e.removeEventListener(t,n,a))})}var ya=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(ya||{});function Dg(){let e=o.ref(0);return _c("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function Kc(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let a=ae(n);a instanceof HTMLElement&&t.add(a)}return t}var Xc=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Xc||{});let Ea=Object.assign(o.defineComponent({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:o.ref(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:a}){let r=o.ref(null);a({el:r,$el:r});let i=o.computed(()=>cn(r)),s=o.ref(!1);o.onMounted(()=>s.value=!0),o.onUnmounted(()=>s.value=!1),Pg({ownerDocument:i},o.computed(()=>s.value&&!!(e.features&16)));let l=Bg({ownerDocument:i,container:r,initialFocus:o.computed(()=>e.initialFocus)},o.computed(()=>s.value&&!!(e.features&2)));Mg({ownerDocument:i,container:r,containers:e.containers,previousActiveElement:l},o.computed(()=>s.value&&!!(e.features&8)));let c=Dg();function d(v){let u=ae(r);u&&(m=>m())(()=>{tt(c.value,{[ya.Forwards]:()=>{va(u,$t.First,{skipElements:[v.relatedTarget]})},[ya.Backwards]:()=>{va(u,$t.Last,{skipElements:[v.relatedTarget]})}})})}let f=o.ref(!1);function p(v){v.key==="Tab"&&(f.value=!0,requestAnimationFrame(()=>{f.value=!1}))}function h(v){if(!s.value)return;let u=Kc(e.containers);ae(r)instanceof HTMLElement&&u.add(ae(r));let m=v.relatedTarget;m instanceof HTMLElement&&m.dataset.headlessuiFocusGuard!=="true"&&(Yc(u,m)||(f.value?va(ae(r),tt(c.value,{[ya.Forwards]:()=>$t.Next,[ya.Backwards]:()=>$t.Previous})|$t.WrapAround,{relativeTo:v.target}):v.target instanceof HTMLElement&&In(v.target)))}return()=>{let v={},u={ref:r,onKeydown:p,onFocusout:h},{features:m,initialFocus:y,containers:b,...g}=e;return o.h(o.Fragment,[!!(m&4)&&o.h(sr,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:ba.Focusable}),Be({ourProps:u,theirProps:{...t,...g},slot:v,attrs:t,slots:n,name:"FocusTrap"}),!!(m&4)&&o.h(sr,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:ba.Focusable})])}}}),{features:Xc});function Rg(e){let t=o.ref(dn.slice());return o.watch([e],([n],[a])=>{a===!0&&n===!1?_s(()=>{t.value.splice(0)}):a===!1&&n===!0&&(t.value=dn.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(a=>a!=null&&a.isConnected))!=null?n:null}}function Pg({ownerDocument:e},t){let n=Rg(t);o.onMounted(()=>{o.watchEffect(()=>{var a,r;t.value||((a=e.value)==null?void 0:a.activeElement)===((r=e.value)==null?void 0:r.body)&&In(n())},{flush:"post"})}),o.onUnmounted(()=>{t.value&&In(n())})}function Bg({ownerDocument:e,container:t,initialFocus:n},a){let r=o.ref(null),i=o.ref(!1);return o.onMounted(()=>i.value=!0),o.onUnmounted(()=>i.value=!1),o.onMounted(()=>{o.watch([t,n,a],(s,l)=>{if(s.every((d,f)=>l?.[f]===d)||!a.value)return;let c=ae(t);c&&_s(()=>{var d,f;if(!i.value)return;let p=ae(n),h=(d=e.value)==null?void 0:d.activeElement;if(p){if(p===h){r.value=h;return}}else if(c.contains(h)){r.value=h;return}p?In(p):va(c,$t.First|$t.NoScroll)===Tc.Error&&console.warn("There are no focusable elements inside the "),r.value=(f=e.value)==null?void 0:f.activeElement})},{immediate:!0,flush:"post"})}),r}function Mg({ownerDocument:e,container:t,containers:n,previousActiveElement:a},r){var i;Wc((i=e.value)==null?void 0:i.defaultView,"focus",s=>{if(!r.value)return;let l=Kc(n);ae(t)instanceof HTMLElement&&l.add(ae(t));let c=a.value;if(!c)return;let d=s.target;d&&d instanceof HTMLElement?Yc(l,d)?(a.value=d,In(d)):(s.preventDefault(),s.stopPropagation(),In(c)):In(a.value)},!0)}function Yc(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function Fg(e){let t=o.shallowRef(e.getSnapshot());return o.onUnmounted(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function Lg(e,t){let n=e(),a=new Set;return{getSnapshot(){return n},subscribe(r){return a.add(r),()=>a.delete(r)},dispatch(r,...i){let s=t[r].call(n,...i);s&&(n=s,a.forEach(l=>l()))}}}function jg(){let e;return{before({doc:t}){var n;let a=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-a.clientWidth},after({doc:t,d:n}){let a=t.documentElement,r=a.clientWidth-a.offsetWidth,i=e-r;n.style(a,"paddingRight",`${i}px`)}}}function Vg(){return kc()?{before({doc:e,d:t,meta:n}){function a(r){return n.containers.flatMap(i=>i()).some(i=>i.contains(r))}t.microTask(()=>{var r;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let l=kn();l.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>l.dispose()))}let i=(r=window.scrollY)!=null?r:window.pageYOffset,s=null;t.addEventListener(e,"click",l=>{if(l.target instanceof HTMLElement)try{let c=l.target.closest("a");if(!c)return;let{hash:d}=new URL(c.href),f=e.querySelector(d);f&&!a(f)&&(s=f)}catch{}},!0),t.addEventListener(e,"touchstart",l=>{if(l.target instanceof HTMLElement)if(a(l.target)){let c=l.target;for(;c.parentElement&&a(c.parentElement);)c=c.parentElement;t.style(c,"overscrollBehavior","contain")}else t.style(l.target,"touchAction","none")}),t.addEventListener(e,"touchmove",l=>{if(l.target instanceof HTMLElement){if(l.target.tagName==="INPUT")return;if(a(l.target)){let c=l.target;for(;c.parentElement&&c.dataset.headlessuiPortal!==""&&!(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth);)c=c.parentElement;c.dataset.headlessuiPortal===""&&l.preventDefault()}else l.preventDefault()}},{passive:!1}),t.add(()=>{var l;let c=(l=window.scrollY)!=null?l:window.pageYOffset;i!==c&&window.scrollTo(0,i),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function Ug(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Hg(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Qn=Lg(()=>new Map,{PUSH(e,t){var n;let a=(n=this.get(e))!=null?n:{doc:e,count:0,d:kn(),meta:new Set};return a.count++,a.meta.add(t),this.set(e,a),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let a={doc:e,d:t,meta:Hg(n)},r=[Vg(),jg(),Ug()];r.forEach(({before:i})=>i?.(a)),r.forEach(({after:i})=>i?.(a))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Qn.subscribe(()=>{let e=Qn.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let a=t.get(n.doc)==="hidden",r=n.count!==0;(r&&!a||!r&&a)&&Qn.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Qn.dispatch("TEARDOWN",n)}});function zg(e,t,n){let a=Fg(Qn),r=o.computed(()=>{let i=e.value?a.value.get(e.value):void 0;return i?i.count>0:!1});return o.watch([e,t],([i,s],[l],c)=>{if(!i||!s)return;Qn.dispatch("PUSH",i,n);let d=!1;c(()=>{d||(Qn.dispatch("POP",l??i,n),d=!0)})},{immediate:!0}),r}let js=new Map,wa=new Map;function Jc(e,t=o.ref(!0)){o.watchEffect(n=>{var a;if(!t.value)return;let r=ae(e);if(!r)return;n(function(){var s;if(!r)return;let l=(s=wa.get(r))!=null?s:1;if(l===1?wa.delete(r):wa.set(r,l-1),l!==1)return;let c=js.get(r);c&&(c["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",c["aria-hidden"]),r.inert=c.inert,js.delete(r))});let i=(a=wa.get(r))!=null?a:0;wa.set(r,i+1),i===0&&(js.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0)})}function Gg({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let a=o.ref(null),r=cn(a);function i(){var s,l,c;let d=[];for(let f of e)f!==null&&(f instanceof HTMLElement?d.push(f):"value"in f&&f.value instanceof HTMLElement&&d.push(f.value));if(t!=null&&t.value)for(let f of t.value)d.push(f);for(let f of(s=r?.querySelectorAll("html > *, body > *"))!=null?s:[])f!==document.body&&f!==document.head&&f instanceof HTMLElement&&f.id!=="headlessui-portal-root"&&(f.contains(ae(a))||f.contains((c=(l=ae(a))==null?void 0:l.getRootNode())==null?void 0:c.host)||d.some(p=>f.contains(p))||d.push(f));return d}return{resolveContainers:i,contains(s){return i().some(l=>l.contains(s))},mainTreeNodeRef:a,MainTreeNode(){return n!=null?null:o.h(sr,{features:ba.Hidden,ref:a})}}}let Qc=Symbol("ForcePortalRootContext");function Wg(){return o.inject(Qc,!1)}let Vs=o.defineComponent({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return o.provide(Qc,e.force),()=>{let{force:a,...r}=e;return Be({theirProps:r,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}}),Zc=Symbol("StackContext");var Us=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Us||{});function Kg(){return o.inject(Zc,()=>{})}function Xg({type:e,enabled:t,element:n,onUpdate:a}){let r=Kg();function i(...s){a?.(...s),r(...s)}o.onMounted(()=>{o.watch(t,(s,l)=>{s?i(0,e,n):l===!0&&i(1,e,n)},{immediate:!0,flush:"sync"})}),o.onUnmounted(()=>{t.value&&i(1,e,n)}),o.provide(Zc,i)}let qc=Symbol("DescriptionContext");function Yg(){let e=o.inject(qc,null);if(e===null)throw new Error("Missing parent");return e}function Jg({slot:e=o.ref({}),name:t="Description",props:n={}}={}){let a=o.ref([]);function r(i){return a.value.push(i),()=>{let s=a.value.indexOf(i);s!==-1&&a.value.splice(s,1)}}return o.provide(qc,{register:r,slot:e,name:t,props:n}),o.computed(()=>a.value.length>0?a.value.join(" "):void 0)}o.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var a;let r=(a=e.id)!=null?a:`headlessui-description-${dt()}`,i=Yg();return o.onMounted(()=>o.onUnmounted(i.register(r))),()=>{let{name:s="Description",slot:l=o.ref({}),props:c={}}=i,{...d}=e,f={...Object.entries(c).reduce((p,[h,v])=>Object.assign(p,{[h]:o.unref(v)}),{}),id:r};return Be({ourProps:f,theirProps:d,slot:l.value,attrs:t,slots:n,name:s})}}});function Qg(e){let t=cn(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let a=t.createElement("div");return a.setAttribute("id","headlessui-portal-root"),t.body.appendChild(a)}const Hs=new WeakMap;function Zg(e){var t;return(t=Hs.get(e))!=null?t:0}function $c(e,t){let n=t(Zg(e));return n<=0?Hs.delete(e):Hs.set(e,n),n}let ed=o.defineComponent({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let a=o.ref(null),r=o.computed(()=>cn(a)),i=Wg(),s=o.inject(td,null),l=o.ref(i===!0||s==null?Qg(a.value):s.resolveTarget());l.value&&$c(l.value,h=>h+1);let c=o.ref(!1);o.onMounted(()=>{c.value=!0}),o.watchEffect(()=>{i||s!=null&&(l.value=s.resolveTarget())});let d=o.inject(zs,null),f=!1,p=o.getCurrentInstance();return o.watch(a,()=>{if(f||!d)return;let h=ae(a);h&&(o.onUnmounted(d.register(h),p),f=!0)}),o.onUnmounted(()=>{var h,v;let u=(h=r.value)==null?void 0:h.getElementById("headlessui-portal-root");!u||l.value!==u||$c(l.value,m=>m-1)||l.value.children.length>0||(v=l.value.parentElement)==null||v.removeChild(l.value)}),()=>{if(!c.value||l.value===null)return null;let h={ref:a,"data-headlessui-portal":""};return o.h(o.Teleport,{to:l.value},Be({ourProps:h,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),zs=Symbol("PortalParentContext");function qg(){let e=o.inject(zs,null),t=o.ref([]);function n(i){return t.value.push(i),e&&e.register(i),()=>a(i)}function a(i){let s=t.value.indexOf(i);s!==-1&&t.value.splice(s,1),e&&e.unregister(i)}let r={register:n,unregister:a,portals:t};return[t,o.defineComponent({name:"PortalWrapper",setup(i,{slots:s}){return o.provide(zs,r),()=>{var l;return(l=s.default)==null?void 0:l.call(s)}}})]}let td=Symbol("PortalGroupContext"),$g=o.defineComponent({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let a=o.reactive({resolveTarget(){return e.target}});return o.provide(td,a),()=>{let{target:r,...i}=e;return Be({theirProps:i,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}});var eb=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(eb||{});let Gs=Symbol("DialogContext");function xa(e){let t=o.inject(Gs,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,xa),n}return t}let lr="DC8F892D-2EBD-447C-A4C8-A03058436FF4",cr=o.defineComponent({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:lr},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:a,expose:r}){var i,s;let l=(i=e.id)!=null?i:`headlessui-dialog-${dt()}`,c=o.ref(!1);o.onMounted(()=>{c.value=!0});let d=!1,f=o.computed(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(d||(d=!0,console.warn(`Invalid role [${f}] passed to . Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),p=o.ref(0),h=Io(),v=o.computed(()=>e.open===lr&&h!==null?(h.value&Ve.Open)===Ve.Open:e.open),u=o.ref(null),m=o.computed(()=>cn(u));if(r({el:u,$el:u}),!(e.open!==lr||h!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof v.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${v.value===lr?void 0:e.open}`);let y=o.computed(()=>c.value&&v.value?0:1),b=o.computed(()=>y.value===0),g=o.computed(()=>p.value>1),T=o.inject(Gs,null)!==null,[O,S]=qg(),{resolveContainers:N,mainTreeNodeRef:I,MainTreeNode:_}=Gg({portals:O,defaultContainers:[o.computed(()=>{var se;return(se=Q.panelRef.value)!=null?se:u.value})]}),A=o.computed(()=>g.value?"parent":"leaf"),D=o.computed(()=>h!==null?(h.value&Ve.Closing)===Ve.Closing:!1),M=o.computed(()=>T||D.value?!1:b.value),K=o.computed(()=>{var se,fe,ye;return(ye=Array.from((fe=(se=m.value)==null?void 0:se.querySelectorAll("body > *"))!=null?fe:[]).find(Se=>Se.id==="headlessui-portal-root"?!1:Se.contains(ae(I))&&Se instanceof HTMLElement))!=null?ye:null});Jc(K,M);let B=o.computed(()=>g.value?!0:b.value),j=o.computed(()=>{var se,fe,ye;return(ye=Array.from((fe=(se=m.value)==null?void 0:se.querySelectorAll("[data-headlessui-portal]"))!=null?fe:[]).find(Se=>Se.contains(ae(I))&&Se instanceof HTMLElement))!=null?ye:null});Jc(j,B),Xg({type:"Dialog",enabled:o.computed(()=>y.value===0),element:u,onUpdate:(se,fe)=>{if(fe==="Dialog")return tt(se,{[Us.Add]:()=>p.value+=1,[Us.Remove]:()=>p.value-=1})}});let H=Jg({name:"DialogDescription",slot:o.computed(()=>({open:v.value}))}),W=o.ref(null),Q={titleId:W,panelRef:o.ref(null),dialogState:y,setTitleId(se){W.value!==se&&(W.value=se)},close(){t("close",!1)}};o.provide(Gs,Q);let ne=o.computed(()=>!(!b.value||g.value));Bs(N,(se,fe)=>{se.preventDefault(),Q.close(),o.nextTick(()=>fe?.focus())},ne);let we=o.computed(()=>!(g.value||y.value!==0));Wc((s=m.value)==null?void 0:s.defaultView,"keydown",se=>{we.value&&(se.defaultPrevented||se.key===Oe.Escape&&(se.preventDefault(),se.stopPropagation(),Q.close()))});let Ze=o.computed(()=>!(D.value||y.value!==0||T));return zg(m,Ze,se=>{var fe;return{containers:[...(fe=se.containers)!=null?fe:[],N]}}),o.watchEffect(se=>{if(y.value!==0)return;let fe=ae(u);if(!fe)return;let ye=new ResizeObserver(Se=>{for(let Pe of Se){let ke=Pe.target.getBoundingClientRect();ke.x===0&&ke.y===0&&ke.width===0&&ke.height===0&&Q.close()}});ye.observe(fe),se(()=>ye.disconnect())}),()=>{let{open:se,initialFocus:fe,...ye}=e,Se={...n,ref:u,id:l,role:f.value,"aria-modal":y.value===0?!0:void 0,"aria-labelledby":W.value,"aria-describedby":H.value},Pe={open:y.value===0};return o.h(Vs,{force:!0},()=>[o.h(ed,()=>o.h($g,{target:u.value},()=>o.h(Vs,{force:!1},()=>o.h(Ea,{initialFocus:fe,containers:N,features:b.value?tt(A.value,{parent:Ea.features.RestoreFocus,leaf:Ea.features.All&~Ea.features.FocusLock}):Ea.features.None},()=>o.h(S,{},()=>Be({ourProps:Se,theirProps:{...ye,...n},slot:Pe,attrs:n,slots:a,visible:y.value===0,features:At.RenderStrategy|At.Static,name:"Dialog"})))))),o.h(_)])}}});o.defineComponent({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var a;let r=(a=e.id)!=null?a:`headlessui-dialog-overlay-${dt()}`,i=xa("DialogOverlay");function s(l){l.target===l.currentTarget&&(l.preventDefault(),l.stopPropagation(),i.close())}return()=>{let{...l}=e;return Be({ourProps:{id:r,"aria-hidden":!0,onClick:s},theirProps:l,slot:{open:i.dialogState.value===0},attrs:t,slots:n,name:"DialogOverlay"})}}}),o.defineComponent({name:"DialogBackdrop",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:a}){var r;let i=(r=e.id)!=null?r:`headlessui-dialog-backdrop-${dt()}`,s=xa("DialogBackdrop"),l=o.ref(null);return a({el:l,$el:l}),o.onMounted(()=>{if(s.panelRef.value===null)throw new Error("A component is being used, but a component is missing.")}),()=>{let{...c}=e,d={id:i,ref:l,"aria-hidden":!0};return o.h(Vs,{force:!0},()=>o.h(ed,()=>Be({ourProps:d,theirProps:{...t,...c},slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogBackdrop"})))}}});let un=o.defineComponent({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){var r;let i=(r=e.id)!=null?r:`headlessui-dialog-panel-${dt()}`,s=xa("DialogPanel");a({el:s.panelRef,$el:s.panelRef});function l(c){c.stopPropagation()}return()=>{let{...c}=e,d={id:i,ref:s.panelRef,onClick:l};return Be({ourProps:d,theirProps:c,slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}}),nd=o.defineComponent({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var a;let r=(a=e.id)!=null?a:`headlessui-dialog-title-${dt()}`,i=xa("DialogTitle");return o.onMounted(()=>{i.setTitleId(r),o.onUnmounted(()=>i.setTitleId(null))}),()=>{let{...s}=e;return Be({ourProps:{id:r},theirProps:s,slot:{open:i.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}});var tb=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(tb||{});let od=Symbol("DisclosureContext");function Ws(e){let t=o.inject(od,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ws),n}return t}let ad=Symbol("DisclosurePanelContext");function nb(){return o.inject(ad,null)}let rd=o.defineComponent({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup(e,{slots:t,attrs:n}){let a=o.ref(e.defaultOpen?0:1),r=o.ref(null),i=o.ref(null),s={buttonId:o.ref(`headlessui-disclosure-button-${dt()}`),panelId:o.ref(`headlessui-disclosure-panel-${dt()}`),disclosureState:a,panel:r,button:i,toggleDisclosure(){a.value=tt(a.value,{0:1,1:0})},closeDisclosure(){a.value!==1&&(a.value=1)},close(l){s.closeDisclosure();let c=l?l instanceof HTMLElement?l:l.value instanceof HTMLElement?ae(l):ae(s.button):ae(s.button);c?.focus()}};return o.provide(od,s),ir(o.computed(()=>tt(a.value,{0:Ve.Open,1:Ve.Closed}))),()=>{let{defaultOpen:l,...c}=e,d={open:a.value===0,close:s.close};return Be({theirProps:c,ourProps:{},slot:d,slots:t,attrs:n,name:"Disclosure"})}}}),sd=o.defineComponent({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){let r=Ws("DisclosureButton"),i=nb(),s=o.computed(()=>i===null?!1:i.value===r.panelId.value);o.onMounted(()=>{s.value||e.id!==null&&(r.buttonId.value=e.id)}),o.onUnmounted(()=>{s.value||(r.buttonId.value=null)});let l=o.ref(null);a({el:l,$el:l}),s.value||o.watchEffect(()=>{r.button.value=l.value});let c=Ms(o.computed(()=>({as:e.as,type:t.type})),l);function d(){var h;e.disabled||(s.value?(r.toggleDisclosure(),(h=ae(r.button))==null||h.focus()):r.toggleDisclosure())}function f(h){var v;if(!e.disabled)if(s.value)switch(h.key){case Oe.Space:case Oe.Enter:h.preventDefault(),h.stopPropagation(),r.toggleDisclosure(),(v=ae(r.button))==null||v.focus();break}else switch(h.key){case Oe.Space:case Oe.Enter:h.preventDefault(),h.stopPropagation(),r.toggleDisclosure();break}}function p(h){switch(h.key){case Oe.Space:h.preventDefault();break}}return()=>{var h;let v={open:r.disclosureState.value===0},{id:u,...m}=e,y=s.value?{ref:l,type:c.value,onClick:d,onKeydown:f}:{id:(h=r.buttonId.value)!=null?h:u,ref:l,type:c.value,"aria-expanded":r.disclosureState.value===0,"aria-controls":r.disclosureState.value===0||ae(r.panel)?r.panelId.value:void 0,disabled:e.disabled?!0:void 0,onClick:d,onKeydown:f,onKeyup:p};return Be({ourProps:y,theirProps:m,slot:v,attrs:t,slots:n,name:"DisclosureButton"})}}}),id=o.defineComponent({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){let r=Ws("DisclosurePanel");o.onMounted(()=>{e.id!==null&&(r.panelId.value=e.id)}),o.onUnmounted(()=>{r.panelId.value=null}),a({el:r.panel,$el:r.panel}),o.provide(ad,r.panelId);let i=Io(),s=o.computed(()=>i!==null?(i.value&Ve.Open)===Ve.Open:r.disclosureState.value===0);return()=>{var l;let c={open:r.disclosureState.value===0,close:r.close},{id:d,...f}=e,p={id:(l=r.panelId.value)!=null?l:d,ref:r.panel};return Be({ourProps:p,theirProps:f,slot:c,attrs:t,slots:n,features:At.RenderStrategy|At.Static,visible:s.value,name:"DisclosurePanel"})}}}),ld=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function cd(e){var t,n;let a=(t=e.innerText)!=null?t:"",r=e.cloneNode(!0);if(!(r instanceof HTMLElement))return a;let i=!1;for(let l of r.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))l.remove(),i=!0;let s=i?(n=r.innerText)!=null?n:"":a;return ld.test(s)&&(s=s.replace(ld,"")),s}function ob(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let a=n.split(" ").map(r=>{let i=document.getElementById(r);if(i){let s=i.getAttribute("aria-label");return typeof s=="string"?s.trim():cd(i).trim()}return null}).filter(Boolean);if(a.length>0)return a.join(", ")}return cd(e).trim()}function ab(e){let t=o.ref(""),n=o.ref("");return()=>{let a=ae(e);if(!a)return"";let r=a.innerText;if(t.value===r)return n.value;let i=ob(a).trim().toLowerCase();return t.value=r,n.value=i,i}}var rb=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(rb||{}),sb=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(sb||{});function ib(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let dd=Symbol("MenuContext");function dr(e){let t=o.inject(dd,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,dr),n}return t}let Ks=o.defineComponent({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:n}){let a=o.ref(1),r=o.ref(null),i=o.ref(null),s=o.ref([]),l=o.ref(""),c=o.ref(null),d=o.ref(1);function f(h=v=>v){let v=c.value!==null?s.value[c.value]:null,u=Ps(h(s.value.slice()),y=>ae(y.dataRef.domRef)),m=v?u.indexOf(v):null;return m===-1&&(m=null),{items:u,activeItemIndex:m}}let p={menuState:a,buttonRef:r,itemsRef:i,items:s,searchQuery:l,activeItemIndex:c,activationTrigger:d,closeMenu:()=>{a.value=1,c.value=null},openMenu:()=>a.value=0,goToItem(h,v,u){let m=f(),y=Ls(h===Ae.Specific?{focus:Ae.Specific,id:v}:{focus:h},{resolveItems:()=>m.items,resolveActiveIndex:()=>m.activeItemIndex,resolveId:b=>b.id,resolveDisabled:b=>b.dataRef.disabled});l.value="",c.value=y,d.value=u??1,s.value=m.items},search(h){let v=l.value!==""?0:1;l.value+=h.toLowerCase();let u=(c.value!==null?s.value.slice(c.value+v).concat(s.value.slice(0,c.value+v)):s.value).find(y=>y.dataRef.textValue.startsWith(l.value)&&!y.dataRef.disabled),m=u?s.value.indexOf(u):-1;m===-1||m===c.value||(c.value=m,d.value=1)},clearSearch(){l.value=""},registerItem(h,v){let u=f(m=>[...m,{id:h,dataRef:v}]);s.value=u.items,c.value=u.activeItemIndex,d.value=1},unregisterItem(h){let v=f(u=>{let m=u.findIndex(y=>y.id===h);return m!==-1&&u.splice(m,1),u});s.value=v.items,c.value=v.activeItemIndex,d.value=1}};return Bs([r,i],(h,v)=>{var u;p.closeMenu(),Rs(v,Ds.Loose)||(h.preventDefault(),(u=ae(r))==null||u.focus())},o.computed(()=>a.value===0)),o.provide(dd,p),ir(o.computed(()=>tt(a.value,{0:Ve.Open,1:Ve.Closed}))),()=>{let h={open:a.value===0,close:p.closeMenu};return Be({ourProps:{},theirProps:e,slot:h,slots:t,attrs:n,name:"Menu"})}}}),Xs=o.defineComponent({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){var r;let i=(r=e.id)!=null?r:`headlessui-menu-button-${dt()}`,s=dr("MenuButton");a({el:s.buttonRef,$el:s.buttonRef});function l(p){switch(p.key){case Oe.Space:case Oe.Enter:case Oe.ArrowDown:p.preventDefault(),p.stopPropagation(),s.openMenu(),o.nextTick(()=>{var h;(h=ae(s.itemsRef))==null||h.focus({preventScroll:!0}),s.goToItem(Ae.First)});break;case Oe.ArrowUp:p.preventDefault(),p.stopPropagation(),s.openMenu(),o.nextTick(()=>{var h;(h=ae(s.itemsRef))==null||h.focus({preventScroll:!0}),s.goToItem(Ae.Last)});break}}function c(p){switch(p.key){case Oe.Space:p.preventDefault();break}}function d(p){e.disabled||(s.menuState.value===0?(s.closeMenu(),o.nextTick(()=>{var h;return(h=ae(s.buttonRef))==null?void 0:h.focus({preventScroll:!0})})):(p.preventDefault(),s.openMenu(),ib(()=>{var h;return(h=ae(s.itemsRef))==null?void 0:h.focus({preventScroll:!0})})))}let f=Ms(o.computed(()=>({as:e.as,type:t.type})),s.buttonRef);return()=>{var p;let h={open:s.menuState.value===0},{...v}=e,u={ref:s.buttonRef,id:i,type:f.value,"aria-haspopup":"menu","aria-controls":(p=ae(s.itemsRef))==null?void 0:p.id,"aria-expanded":s.menuState.value===0,onKeydown:l,onKeyup:c,onClick:d};return Be({ourProps:u,theirProps:v,slot:h,attrs:t,slots:n,name:"MenuButton"})}}}),Ys=o.defineComponent({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){var r;let i=(r=e.id)!=null?r:`headlessui-menu-items-${dt()}`,s=dr("MenuItems"),l=o.ref(null);a({el:s.itemsRef,$el:s.itemsRef}),Pc({container:o.computed(()=>ae(s.itemsRef)),enabled:o.computed(()=>s.menuState.value===0),accept(h){return h.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:h.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(h){h.setAttribute("role","none")}});function c(h){var v;switch(l.value&&clearTimeout(l.value),h.key){case Oe.Space:if(s.searchQuery.value!=="")return h.preventDefault(),h.stopPropagation(),s.search(h.key);case Oe.Enter:if(h.preventDefault(),h.stopPropagation(),s.activeItemIndex.value!==null){let u=s.items.value[s.activeItemIndex.value];(v=ae(u.dataRef.domRef))==null||v.click()}s.closeMenu(),Nc(ae(s.buttonRef));break;case Oe.ArrowDown:return h.preventDefault(),h.stopPropagation(),s.goToItem(Ae.Next);case Oe.ArrowUp:return h.preventDefault(),h.stopPropagation(),s.goToItem(Ae.Previous);case Oe.Home:case Oe.PageUp:return h.preventDefault(),h.stopPropagation(),s.goToItem(Ae.First);case Oe.End:case Oe.PageDown:return h.preventDefault(),h.stopPropagation(),s.goToItem(Ae.Last);case Oe.Escape:h.preventDefault(),h.stopPropagation(),s.closeMenu(),o.nextTick(()=>{var u;return(u=ae(s.buttonRef))==null?void 0:u.focus({preventScroll:!0})});break;case Oe.Tab:h.preventDefault(),h.stopPropagation(),s.closeMenu(),o.nextTick(()=>vg(ae(s.buttonRef),h.shiftKey?$t.Previous:$t.Next));break;default:h.key.length===1&&(s.search(h.key),l.value=setTimeout(()=>s.clearSearch(),350));break}}function d(h){switch(h.key){case Oe.Space:h.preventDefault();break}}let f=Io(),p=o.computed(()=>f!==null?(f.value&Ve.Open)===Ve.Open:s.menuState.value===0);return()=>{var h,v;let u={open:s.menuState.value===0},{...m}=e,y={"aria-activedescendant":s.activeItemIndex.value===null||(h=s.items.value[s.activeItemIndex.value])==null?void 0:h.id,"aria-labelledby":(v=ae(s.buttonRef))==null?void 0:v.id,id:i,onKeydown:c,onKeyup:d,role:"menu",tabIndex:0,ref:s.itemsRef};return Be({ourProps:y,theirProps:m,slot:u,attrs:t,slots:n,features:At.RenderStrategy|At.Static,visible:p.value,name:"MenuItems"})}}}),Sa=o.defineComponent({name:"MenuItem",inheritAttrs:!1,props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n,expose:a}){var r;let i=(r=e.id)!=null?r:`headlessui-menu-item-${dt()}`,s=dr("MenuItem"),l=o.ref(null);a({el:l,$el:l});let c=o.computed(()=>s.activeItemIndex.value!==null?s.items.value[s.activeItemIndex.value].id===i:!1),d=ab(l),f=o.computed(()=>({disabled:e.disabled,get textValue(){return d()},domRef:l}));o.onMounted(()=>s.registerItem(i,f)),o.onUnmounted(()=>s.unregisterItem(i)),o.watchEffect(()=>{s.menuState.value===0&&c.value&&s.activationTrigger.value!==0&&o.nextTick(()=>{var b,g;return(g=(b=ae(l))==null?void 0:b.scrollIntoView)==null?void 0:g.call(b,{block:"nearest"})})});function p(b){if(e.disabled)return b.preventDefault();s.closeMenu(),Nc(ae(s.buttonRef))}function h(){if(e.disabled)return s.goToItem(Ae.Nothing);s.goToItem(Ae.Specific,i)}let v=Rc();function u(b){v.update(b)}function m(b){v.wasMoved(b)&&(e.disabled||c.value||s.goToItem(Ae.Specific,i,0))}function y(b){v.wasMoved(b)&&(e.disabled||c.value&&s.goToItem(Ae.Nothing))}return()=>{let{disabled:b,...g}=e,T={active:c.value,disabled:b,close:s.closeMenu};return Be({ourProps:{id:i,ref:l,role:"menuitem",tabIndex:b===!0?void 0:-1,"aria-disabled":b===!0?!0:void 0,onClick:p,onFocus:h,onPointerenter:u,onMouseenter:u,onPointermove:m,onMousemove:m,onPointerleave:y,onMouseleave:y},theirProps:{...n,...g},slot:T,attrs:n,slots:t,name:"MenuItem"})}}});function lb(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Js(e,...t){e&&t.length>0&&e.classList.add(...t)}function ur(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Qs=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(Qs||{});function cb(e,t){let n=kn();if(!e)return n.dispose;let{transitionDuration:a,transitionDelay:r}=getComputedStyle(e),[i,s]=[a,r].map(l=>{let[c=0]=l.split(",").filter(Boolean).map(d=>d.includes("ms")?parseFloat(d):parseFloat(d)*1e3).sort((d,f)=>f-d);return c});return i!==0?n.setTimeout(()=>t("finished"),i+s):t("finished"),n.add(()=>t("cancelled")),n.dispose}function ud(e,t,n,a,r,i){let s=kn(),l=i!==void 0?lb(i):()=>{};return ur(e,...r),Js(e,...t,...n),s.nextFrame(()=>{ur(e,...n),Js(e,...a),s.add(cb(e,c=>(ur(e,...a,...t),Js(e,...r),l(c))))}),s.add(()=>ur(e,...t,...n,...a,...r)),s.add(()=>l("cancelled")),s.dispose}function Zn(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Zs=Symbol("TransitionContext");var db=(e=>(e.Visible="visible",e.Hidden="hidden",e))(db||{});function ub(){return o.inject(Zs,null)!==null}function fb(){let e=o.inject(Zs,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}function pb(){let e=o.inject(qs,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}let qs=Symbol("NestingContext");function fr(e){return"children"in e?fr(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function fd(e){let t=o.ref([]),n=o.ref(!1);o.onMounted(()=>n.value=!0),o.onUnmounted(()=>n.value=!1);function a(i,s=_n.Hidden){let l=t.value.findIndex(({id:c})=>c===i);l!==-1&&(tt(s,{[_n.Unmount](){t.value.splice(l,1)},[_n.Hidden](){t.value[l].state="hidden"}}),!fr(t)&&n.value&&e?.())}function r(i){let s=t.value.find(({id:l})=>l===i);return s?s.state!=="visible"&&(s.state="visible"):t.value.push({id:i,state:"visible"}),()=>a(i,_n.Unmount)}return{children:t,register:r,unregister:a}}let pd=At.RenderStrategy,An=o.defineComponent({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:a,expose:r}){let i=o.ref(0);function s(){i.value|=Ve.Opening,t("beforeEnter")}function l(){i.value&=~Ve.Opening,t("afterEnter")}function c(){i.value|=Ve.Closing,t("beforeLeave")}function d(){i.value&=~Ve.Closing,t("afterLeave")}if(!ub()&&Eg())return()=>o.h(Oa,{...e,onBeforeEnter:s,onAfterEnter:l,onBeforeLeave:c,onAfterLeave:d},a);let f=o.ref(null),p=o.computed(()=>e.unmount?_n.Unmount:_n.Hidden);r({el:f,$el:f});let{show:h,appear:v}=fb(),{register:u,unregister:m}=pb(),y=o.ref(h.value?"visible":"hidden"),b={value:!0},g=dt(),T={value:!1},O=fd(()=>{!T.value&&y.value!=="hidden"&&(y.value="hidden",m(g),d())});o.onMounted(()=>{let B=u(g);o.onUnmounted(B)}),o.watchEffect(()=>{if(p.value===_n.Hidden&&g){if(h.value&&y.value!=="visible"){y.value="visible";return}tt(y.value,{hidden:()=>m(g),visible:()=>u(g)})}});let S=Zn(e.enter),N=Zn(e.enterFrom),I=Zn(e.enterTo),_=Zn(e.entered),A=Zn(e.leave),D=Zn(e.leaveFrom),M=Zn(e.leaveTo);o.onMounted(()=>{o.watchEffect(()=>{if(y.value==="visible"){let B=ae(f);if(B instanceof Comment&&B.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function K(B){let j=b.value&&!v.value,H=ae(f);!H||!(H instanceof HTMLElement)||j||(T.value=!0,h.value&&s(),h.value||c(),B(h.value?ud(H,S,N,I,_,W=>{T.value=!1,W===Qs.Finished&&l()}):ud(H,A,D,M,_,W=>{T.value=!1,W===Qs.Finished&&(fr(O)||(y.value="hidden",m(g),d()))})))}return o.onMounted(()=>{o.watch([h],(B,j,H)=>{K(H),b.value=!1},{immediate:!0})}),o.provide(qs,O),ir(o.computed(()=>tt(y.value,{visible:Ve.Open,hidden:Ve.Closed})|i.value)),()=>{let{appear:B,show:j,enter:H,enterFrom:W,enterTo:Q,entered:ne,leave:we,leaveFrom:Ze,leaveTo:se,...fe}=e,ye={ref:f},Se={...fe,...v.value&&h.value&&ma.isServer?{class:o.normalizeClass([n.class,fe.class,...S,...N])}:{}};return Be({theirProps:Se,ourProps:ye,slot:{},slots:a,attrs:n,features:pd,visible:y.value==="visible",name:"TransitionChild"})}}}),hb=An,Oa=o.defineComponent({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:a}){let r=Io(),i=o.computed(()=>e.show===null&&r!==null?(r.value&Ve.Open)===Ve.Open:e.show);o.watchEffect(()=>{if(![!0,!1].includes(i.value))throw new Error('A is used but it is missing a `:show="true | false"` prop.')});let s=o.ref(i.value?"visible":"hidden"),l=fd(()=>{s.value="hidden"}),c=o.ref(!0),d={show:i,appear:o.computed(()=>e.appear||!c.value)};return o.onMounted(()=>{o.watchEffect(()=>{c.value=!1,i.value?s.value="visible":fr(l)||(s.value="hidden")})}),o.provide(qs,l),o.provide(Zs,d),()=>{let f=ga(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),p={unmount:e.unmount};return Be({ourProps:{...p,as:"template"},theirProps:{},slot:{},slots:{...a,default:()=>[o.h(hb,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...p,...f},a.default)]},attrs:{},features:pd,visible:s.value==="visible",name:"Transition"})}}});const mb={},vb={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},gb=[o.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),o.createElementVNode("path",{d:"M8 5v10a1 1 0 0 0 1 1h10"},null,-1),o.createElementVNode("path",{d:"M5 8h10a1 1 0 0 1 1 1v10"},null,-1)];function bb(e,t){return o.openBlock(),o.createElementBlock("svg",vb,gb)}const hd=is(mb,[["render",bb]]),it=o.defineComponent({__name:"IconButton",props:{variant:{default:"secondary"},type:{default:"button"},asAnchor:{type:Boolean,default:!1},download:{}},setup(e){const t={primary:"bg-blue-500 text-white focus:outline-blue-500",secondary:"bg-gray-300 dark:bg-gray-700 text-gray-800 dark:text-gray-200 focus:outline-blue-500",danger:"bg-red-500 text-white focus:outline-red-500",success:"bg-green-500 text-white focus:outline-green-500",transparent:"bg-transparent text-gray-800 dark:text-gray-100"},n=e,a=o.computed(()=>t[n.variant]);return(r,i)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(r.asAnchor?"a":"button"),{class:o.normalizeClass(`inline-flex items-center rounded-full border-0 p-2 shadow-sm focus:outline-none focus:ring-1 hover:opacity-75 disabled:opacity-25 ${a.value}`),type:r.asAnchor?void 0:r.type??"button",download:r.download??null},{default:o.withCtx(()=>[o.renderSlot(r.$slots,"default")]),_:3},8,["class","type","download"]))}}),yb=o.createElementVNode("div",{class:"fixed inset-0 bg-gray-800/20 backdrop-blur-sm transition-opacity"},null,-1),Eb={class:"flex items-end sm:items-center justify-center min-h-full p-0 md:p-4"},_o=o.defineComponent({__name:"BaseModal",props:{name:{},initialFocusRef:{}},setup(e){const t=e;o.onBeforeUnmount(()=>{r.value&&i()});const n=Re(),a=o.computed(()=>n.dark),r=o.computed(()=>n.isOpen(t.name)),i=()=>{n.closeModal({name:t.name})};return(s,l)=>(o.openBlock(),o.createBlock(o.unref(Oa),{show:r.value,as:"template",class:"nova-file-manager"},{default:o.withCtx(()=>[o.createVNode(o.unref(cr),{as:"div",class:"relative z-[60]",style:{"z-index":"999"},onClose:i,"initial-focus":s.initialFocusRef},{default:o.withCtx(()=>[o.createVNode(o.unref(An),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:o.withCtx(()=>[yb]),_:1}),o.createElementVNode("div",{class:o.normalizeClass([{dark:a.value},"fixed z-10 inset-0 overflow-y-auto"])},[o.createElementVNode("div",Eb,[o.createVNode(o.unref(An),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:o.withCtx(()=>[o.renderSlot(s.$slots,"default",{close:i,isOpen:r.value,dark:a.value})]),_:3})])],2)]),_:3},8,["initial-focus"])]),_:3},8,["show"]))}});var md={},vd={exports:{}};/*! * Cropper.js v1.5.12 * https://fengyuanchen.github.io/cropperjs *