From 5536f81fd8a3f337795be8615cc9ef2732ede731 Mon Sep 17 00:00:00 2001 From: Andrea Bonomi Date: Wed, 12 Jun 2024 14:55:28 +0200 Subject: [PATCH] make prepareHref more robust --- airflow_code_editor/static/airflow_code_editor.js | 4 ++-- src/commons.js | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/airflow_code_editor/static/airflow_code_editor.js b/airflow_code_editor/static/airflow_code_editor.js index 942f45f..2b7a3d8 100644 --- a/airflow_code_editor/static/airflow_code_editor.js +++ b/airflow_code_editor/static/airflow_code_editor.js @@ -2,7 +2,7 @@ `).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&Ad[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ko=Symbol("internals");function br(e){return e&&String(e).trim().toLowerCase()}function as(e){return e===!1||e==null?e:E.isArray(e)?e.map(as):String(e)}function Md(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Fd=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ri(e,t,n,r,s){if(E.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!E.isString(t)){if(E.isString(r))return t.indexOf(r)!==-1;if(E.isRegExp(r))return r.test(t)}}function Id(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Ld(e,t){const n=E.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}class Ds{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(a,c,d){const l=br(c);if(!l)throw new Error("header name must be a non-empty string");const f=E.findKey(s,l);(!f||s[f]===void 0||d===!0||d===void 0&&s[f]!==!1)&&(s[f||c]=as(a))}const o=(a,c)=>E.forEach(a,(d,l)=>i(d,l,c));return E.isPlainObject(t)||t instanceof this.constructor?o(t,n):E.isString(t)&&(t=t.trim())&&!Fd(t)?o($d(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=br(t),t){const r=E.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Md(s);if(E.isFunction(n))return n.call(this,s,r);if(E.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=br(t),t){const r=E.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ri(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=br(o),o){const a=E.findKey(r,o);a&&(!n||ri(r,r[a],a,n))&&(delete r[a],s=!0)}}return E.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||ri(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return E.forEach(this,(s,i)=>{const o=E.findKey(r,i);if(o){n[o]=as(s),delete n[i];return}const a=t?Id(i):String(i).trim();a!==i&&delete n[i],n[a]=as(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return E.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&E.isArray(r)?r.join(", "):r)}),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 r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Ko]=this[Ko]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=br(o);r[a]||(Ld(s,o),r[a]=!0)}return E.isArray(t)?t.forEach(i):i(t),this}}Ds.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);E.reduceDescriptors(Ds.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});E.freezeMethods(Ds);const Xt=Ds;function si(e,t){const n=this||Qi,r=t||n,s=Xt.from(r.headers);let i=r.data;return E.forEach(e,function(a){i=a.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function wl(e){return!!(e&&e.__CANCEL__)}function zr(e,t,n){be.call(this,e??"canceled",be.ERR_CANCELED,t,n),this.name="CanceledError"}E.inherits(zr,be,{__CANCEL__:!0});function Ud(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new be("Request failed with status code "+n.status,[be.ERR_BAD_REQUEST,be.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const jd=Ut.isStandardBrowserEnv?function(){return{write:function(n,r,s,i,o,a){const c=[];c.push(n+"="+encodeURIComponent(r)),E.isNumber(s)&&c.push("expires="+new Date(s).toGMTString()),E.isString(i)&&c.push("path="+i),E.isString(o)&&c.push("domain="+o),a===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function zd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Hd(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function vl(e,t){return e&&!zd(t)?Hd(e,t):t}const Bd=Ut.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{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 r=s(window.location.href),function(o){const a=E.isString(o)?s(o):o;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function qd(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Vd(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),l=r[i];o||(o=d),n[s]=c,r[s]=d;let f=i,u=0;for(;f!==s;)u+=n[f++],f=f%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),d-o{const i=s.loaded,o=s.lengthComputable?s.total:void 0,a=i-n,c=r(a),d=i<=o;n=i;const l={loaded:i,total:o,progress:o?i/o:void 0,bytes:a,rate:c||void 0,estimated:c&&o&&d?(o-i)/c:void 0,event:s};l[t?"download":"upload"]=!0,e(l)}}const Wd=typeof XMLHttpRequest<"u",Kd=Wd&&function(e){return new Promise(function(n,r){let s=e.data;const i=Xt.from(e.headers).normalize(),o=e.responseType;let a;function c(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let d;E.isFormData(s)&&(Ut.isStandardBrowserEnv||Ut.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?E.isString(d=i.getContentType())&&i.setContentType(d.replace(/^\s*(multipart\/form-data);+/,"$1")):i.setContentType("multipart/form-data"));let l=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+p))}const f=vl(e.baseURL,e.url);l.open(e.method.toUpperCase(),gl(f,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function u(){if(!l)return;const g=Xt.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),x={data:!o||o==="text"||o==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:g,config:e,request:l};Ud(function(M){n(M),c()},function(M){r(M),c()},x),l=null}if("onloadend"in l?l.onloadend=u:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(u)},l.onabort=function(){l&&(r(new be("Request aborted",be.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new be("Network Error",be.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const x=e.transitional||bl;e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),r(new be(p,x.clarifyTimeoutError?be.ETIMEDOUT:be.ECONNABORTED,e,l)),l=null},Ut.isStandardBrowserEnv){const g=Bd(f)&&e.xsrfCookieName&&jd.read(e.xsrfCookieName);g&&i.set(e.xsrfHeaderName,g)}s===void 0&&i.setContentType(null),"setRequestHeader"in l&&E.forEach(i.toJSON(),function(p,x){l.setRequestHeader(x,p)}),E.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),o&&o!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",Yo(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Yo(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=g=>{l&&(r(!g||g.type?new zr(null,e,l):g),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const w=qd(f);if(w&&Ut.protocols.indexOf(w)===-1){r(new be("Unsupported protocol "+w+":",be.ERR_BAD_REQUEST,e));return}l.send(s||null)})},Ci={http:wd,xhr:Kd};E.forEach(Ci,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Go=e=>`- ${e}`,Yd=e=>E.isFunction(e)||e===null||e===!1,Cl={getAdapter:e=>{e=E.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let i=0;i`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since : `+i.map(Go).join(` -`):" "+Go(i[0]):"as no adapter specified";throw new be("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Ci};function ii(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new zr(null,e)}function Qo(e){return ii(e),e.headers=Xt.from(e.headers),e.data=si.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Cl.getAdapter(e.adapter||Qi.adapter)(e).then(function(r){return ii(e),r.data=si.call(e,e.transformResponse,r),r.headers=Xt.from(r.headers),r},function(r){return wl(r)||(ii(e),r&&r.response&&(r.response.data=si.call(e,e.transformResponse,r.response),r.response.headers=Xt.from(r.response.headers))),Promise.reject(r)})}const Jo=e=>e instanceof Xt?e.toJSON():e;function Xn(e,t){t=t||{};const n={};function r(d,l,f){return E.isPlainObject(d)&&E.isPlainObject(l)?E.merge.call({caseless:f},d,l):E.isPlainObject(l)?E.merge({},l):E.isArray(l)?l.slice():l}function s(d,l,f){if(E.isUndefined(l)){if(!E.isUndefined(d))return r(void 0,d,f)}else return r(d,l,f)}function i(d,l){if(!E.isUndefined(l))return r(void 0,l)}function o(d,l){if(E.isUndefined(l)){if(!E.isUndefined(d))return r(void 0,d)}else return r(void 0,l)}function a(d,l,f){if(f in t)return r(d,l);if(f in e)return r(void 0,d)}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(d,l)=>s(Jo(d),Jo(l),!0)};return E.forEach(Object.keys(Object.assign({},e,t)),function(l){const f=c[l]||s,u=f(e[l],t[l],l);E.isUndefined(u)&&f!==a||(n[l]=u)}),n}const _l="1.6.0",Ji={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ji[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Xo={};Ji.transitional=function(t,n,r){function s(i,o){return"[Axios v"+_l+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,a)=>{if(t===!1)throw new be(s(o," has been removed"+(n?" in "+n:"")),be.ERR_DEPRECATED);return n&&!Xo[o]&&(Xo[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,a):!0}};function Gd(e,t,n){if(typeof e!="object")throw new be("options must be an object",be.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const a=e[i],c=a===void 0||o(a,i,e);if(c!==!0)throw new be("option "+i+" must be "+c,be.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new be("Unknown option "+i,be.ERR_BAD_OPTION)}}const _i={assertOptions:Gd,validators:Ji},an=_i.validators;class hs{constructor(t){this.defaults=t,this.interceptors={request:new Wo,response:new Wo}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Xn(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&_i.assertOptions(r,{silentJSONParsing:an.transitional(an.boolean),forcedJSONParsing:an.transitional(an.boolean),clarifyTimeoutError:an.transitional(an.boolean)},!1),s!=null&&(E.isFunction(s)?n.paramsSerializer={serialize:s}:_i.assertOptions(s,{encode:an.function,serialize:an.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&E.merge(i.common,i[n.method]);i&&E.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=Xt.concat(o,i);const a=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(c=c&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const d=[];this.interceptors.response.forEach(function(p){d.push(p.fulfilled,p.rejected)});let l,f=0,u;if(!c){const g=[Qo.bind(this),void 0];for(g.unshift.apply(g,a),g.push.apply(g,d),u=g.length,l=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{r.subscribe(a),i=a}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,a){r.reason||(r.reason=new zr(i,o,a),n(r.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 Xi(function(s){t=s}),cancel:t}}}const Qd=Xi;function Jd(e){return function(n){return e.apply(null,n)}}function Xd(e){return E.isObject(e)&&e.isAxiosError===!0}const Ti={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(Ti).forEach(([e,t])=>{Ti[t]=e});const Zd=Ti;function Tl(e){const t=new ls(e),n=sl(ls.prototype.request,t);return E.extend(n,ls.prototype,t,{allOwnKeys:!0}),E.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Tl(Xn(e,s))},n}const Ye=Tl(Qi);Ye.Axios=ls;Ye.CanceledError=zr;Ye.CancelToken=Qd;Ye.isCancel=wl;Ye.VERSION=_l;Ye.toFormData=Es;Ye.AxiosError=be;Ye.Cancel=Ye.CanceledError;Ye.all=function(t){return Promise.all(t)};Ye.spread=Jd;Ye.isAxiosError=Xd;Ye.mergeConfig=Xn;Ye.AxiosHeaders=Xt;Ye.formToJSON=e=>yl(E.isHTMLForm(e)?new FormData(e):e);Ye.getAdapter=Cl.getAdapter;Ye.HttpStatusCode=Zd;Ye.default=Ye;const mt=Ye;function Zi(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s!!n[s.toLowerCase()]:s=>!!n[s]}const Re={},Wn=[],zt=()=>{},ef=()=>!1,tf=/^on[^a-z]/,Rs=e=>tf.test(e),eo=e=>e.startsWith("onUpdate:"),Ge=Object.assign,to=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},nf=Object.prototype.hasOwnProperty,ye=(e,t)=>nf.call(e,t),ee=Array.isArray,Kn=e=>Hr(e)==="[object Map]",ir=e=>Hr(e)==="[object Set]",Zo=e=>Hr(e)==="[object Date]",de=e=>typeof e=="function",qe=e=>typeof e=="string",Nr=e=>typeof e=="symbol",Ee=e=>e!==null&&typeof e=="object",Sl=e=>Ee(e)&&de(e.then)&&de(e.catch),xl=Object.prototype.toString,Hr=e=>xl.call(e),rf=e=>Hr(e).slice(8,-1),Pl=e=>Hr(e)==="[object Object]",no=e=>qe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,cs=Zi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ns=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},sf=/-(\w)/g,Ht=Ns(e=>e.replace(sf,(t,n)=>n?n.toUpperCase():"")),of=/\B([A-Z])/g,Ln=Ns(e=>e.replace(of,"-$1").toLowerCase()),As=Ns(e=>e.charAt(0).toUpperCase()+e.slice(1)),us=Ns(e=>e?`on${As(e)}`:""),Ar=(e,t)=>!Object.is(e,t),ds=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ms=e=>{const t=parseFloat(e);return isNaN(t)?e:t},af=e=>{const t=qe(e)?Number(e):NaN;return isNaN(t)?e:t};let ea;const Si=()=>ea||(ea=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Un(e){if(ee(e)){const t={};for(let n=0;n{if(n){const r=n.split(cf);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Z(e){let t="";if(qe(e))t=e;else if(ee(e))for(let n=0;nFn(n,t))}const ie=e=>qe(e)?e:e==null?"":ee(e)||Ee(e)&&(e.toString===xl||!de(e.toString))?JSON.stringify(e,Ol,2):String(e),Ol=(e,t)=>t&&t.__v_isRef?Ol(e,t.value):Kn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:ir(t)?{[`Set(${t.size})`]:[...t.values()]}:Ee(t)&&!ee(t)&&!Pl(t)?String(t):t;let Dt;class mf{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Dt,!t&&Dt&&(this.index=(Dt.scopes||(Dt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Dt;try{return Dt=this,t()}finally{Dt=n}}}on(){Dt=this}off(){Dt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},El=e=>(e.w&mn)>0,Dl=e=>(e.n&mn)>0,yf=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(l==="length"||l>=c)&&a.push(d)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":ee(e)?no(n)&&a.push(o.get("length")):(a.push(o.get(An)),Kn(e)&&a.push(o.get(Pi)));break;case"delete":ee(e)||(a.push(o.get(An)),Kn(e)&&a.push(o.get(Pi)));break;case"set":Kn(e)&&a.push(o.get(An));break}if(a.length===1)a[0]&&ki(a[0]);else{const c=[];for(const d of a)d&&c.push(...d);ki(so(c))}}function ki(e,t){const n=ee(e)?e:[...e];for(const r of n)r.computed&&na(r);for(const r of n)r.computed||na(r)}function na(e,t){(e!==Rt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function vf(e,t){var n;return(n=gs.get(e))==null?void 0:n.get(t)}const Cf=Zi("__proto__,__v_isRef,__isVue"),Al=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Nr)),_f=oo(),Tf=oo(!1,!0),Sf=oo(!0),ra=xf();function xf(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=we(this);for(let i=0,o=this.length;i{e[t]=function(...n){or();const r=we(this)[t].apply(this,n);return ar(),r}}),e}function Pf(e){const t=we(this);return yt(t,"has",e),t.hasOwnProperty(e)}function oo(e=!1,t=!1){return function(r,s,i){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&i===(e?t?Hf:Ll:t?Il:Fl).get(r))return r;const o=ee(r);if(!e){if(o&&ye(ra,s))return Reflect.get(ra,s,i);if(s==="hasOwnProperty")return Pf}const a=Reflect.get(r,s,i);return(Nr(s)?Al.has(s):Cf(s))||(e||yt(r,"get",s),t)?a:at(a)?o&&no(s)?a:a.value:Ee(a)?e?Ms(a):co(a):a}}const kf=$l(),Of=$l(!0);function $l(e=!1){return function(n,r,s,i){let o=n[r];if(Zn(o)&&at(o)&&!at(s))return!1;if(!e&&(!bs(s)&&!Zn(s)&&(o=we(o),s=we(s)),!ee(n)&&at(o)&&!at(s)))return o.value=s,!0;const a=ee(n)&&no(r)?Number(r)e,$s=e=>Reflect.getPrototypeOf(e);function Gr(e,t,n=!1,r=!1){e=e.__v_raw;const s=we(e),i=we(t);n||(t!==i&&yt(s,"get",t),yt(s,"get",i));const{has:o}=$s(s),a=r?ao:n?ho:$r;if(o.call(s,t))return a(e.get(t));if(o.call(s,i))return a(e.get(i));e!==s&&e.get(t)}function Qr(e,t=!1){const n=this.__v_raw,r=we(n),s=we(e);return t||(e!==s&&yt(r,"has",e),yt(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function Jr(e,t=!1){return e=e.__v_raw,!t&&yt(we(e),"iterate",An),Reflect.get(e,"size",e)}function sa(e){e=we(e);const t=we(this);return $s(t).has.call(t,e)||(t.add(e),en(t,"add",e,e)),this}function ia(e,t){t=we(t);const n=we(this),{has:r,get:s}=$s(n);let i=r.call(n,e);i||(e=we(e),i=r.call(n,e));const o=s.call(n,e);return n.set(e,t),i?Ar(t,o)&&en(n,"set",e,t):en(n,"add",e,t),this}function oa(e){const t=we(this),{has:n,get:r}=$s(t);let s=n.call(t,e);s||(e=we(e),s=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return s&&en(t,"delete",e,void 0),i}function aa(){const e=we(this),t=e.size!==0,n=e.clear();return t&&en(e,"clear",void 0,void 0),n}function Xr(e,t){return function(r,s){const i=this,o=i.__v_raw,a=we(o),c=t?ao:e?ho:$r;return!e&&yt(a,"iterate",An),o.forEach((d,l)=>r.call(s,c(d),c(l),i))}}function Zr(e,t,n){return function(...r){const s=this.__v_raw,i=we(s),o=Kn(i),a=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,d=s[e](...r),l=n?ao:t?ho:$r;return!t&&yt(i,"iterate",c?Pi:An),{next(){const{value:f,done:u}=d.next();return u?{value:f,done:u}:{value:a?[l(f[0]),l(f[1])]:l(f),done:u}},[Symbol.iterator](){return this}}}}function ln(e){return function(...t){return e==="delete"?!1:this}}function $f(){const e={get(i){return Gr(this,i)},get size(){return Jr(this)},has:Qr,add:sa,set:ia,delete:oa,clear:aa,forEach:Xr(!1,!1)},t={get(i){return Gr(this,i,!1,!0)},get size(){return Jr(this)},has:Qr,add:sa,set:ia,delete:oa,clear:aa,forEach:Xr(!1,!0)},n={get(i){return Gr(this,i,!0)},get size(){return Jr(this,!0)},has(i){return Qr.call(this,i,!0)},add:ln("add"),set:ln("set"),delete:ln("delete"),clear:ln("clear"),forEach:Xr(!0,!1)},r={get(i){return Gr(this,i,!0,!0)},get size(){return Jr(this,!0)},has(i){return Qr.call(this,i,!0)},add:ln("add"),set:ln("set"),delete:ln("delete"),clear:ln("clear"),forEach:Xr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Zr(i,!1,!1),n[i]=Zr(i,!0,!1),t[i]=Zr(i,!1,!0),r[i]=Zr(i,!0,!0)}),[e,n,t,r]}const[Mf,Ff,If,Lf]=$f();function lo(e,t){const n=t?e?Lf:If:e?Ff:Mf;return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(ye(n,s)&&s in r?n:r,s,i)}const Uf={get:lo(!1,!1)},jf={get:lo(!1,!0)},zf={get:lo(!0,!1)},Fl=new WeakMap,Il=new WeakMap,Ll=new WeakMap,Hf=new WeakMap;function Bf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function qf(e){return e.__v_skip||!Object.isExtensible(e)?0:Bf(rf(e))}function co(e){return Zn(e)?e:uo(e,!1,Ml,Uf,Fl)}function Vf(e){return uo(e,!1,Af,jf,Il)}function Ms(e){return uo(e,!0,Nf,zf,Ll)}function uo(e,t,n,r,s){if(!Ee(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const o=qf(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function Yn(e){return Zn(e)?Yn(e.__v_raw):!!(e&&e.__v_isReactive)}function Zn(e){return!!(e&&e.__v_isReadonly)}function bs(e){return!!(e&&e.__v_isShallow)}function Ul(e){return Yn(e)||Zn(e)}function we(e){const t=e&&e.__v_raw;return t?we(t):e}function fo(e){return ps(e,"__v_skip",!0),e}const $r=e=>Ee(e)?co(e):e,ho=e=>Ee(e)?Ms(e):e;function jl(e){hn&&Rt&&(e=we(e),Nl(e.dep||(e.dep=so())))}function zl(e,t){e=we(e);const n=e.dep;n&&ki(n)}function at(e){return!!(e&&e.__v_isRef===!0)}function We(e){return Wf(e,!1)}function Wf(e,t){return at(e)?e:new Kf(e,t)}class Kf{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:we(t),this._value=n?t:$r(t)}get value(){return jl(this),this._value}set value(t){const n=this.__v_isShallow||bs(t)||Zn(t);t=n?t:we(t),Ar(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:$r(t),zl(this))}}function S(e){return at(e)?e.value:e}const Yf={get:(e,t,n)=>S(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return at(s)&&!at(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Hl(e){return Yn(e)?e:new Proxy(e,Yf)}function Gf(e){const t=ee(e)?new Array(e.length):{};for(const n in e)t[n]=Jf(e,n);return t}class Qf{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return vf(we(this._object),this._key)}}function Jf(e,t,n){const r=e[t];return at(r)?r:new Qf(e,t,n)}class Xf{constructor(t,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new io(t,()=>{this._dirty||(this._dirty=!0,zl(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=we(this);return jl(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Zf(e,t,n=!1){let r,s;const i=de(e);return i?(r=e,s=zt):(r=e.get,s=e.set),new Xf(r,s,i||!s,n)}function pn(e,t,n,r){let s;try{s=r?e(...r):e()}catch(i){Fs(i,t,n)}return s}function Pt(e,t,n,r){if(de(e)){const i=pn(e,t,n,r);return i&&Sl(i)&&i.catch(o=>{Fs(o,t,n)}),i}const s=[];for(let i=0;i>>1;Fr(ut[r])Lt&&ut.splice(t,1)}function rh(e){ee(e)?Gn.push(...e):(!Gt||!Gt.includes(e,e.allowRecurse?En+1:En))&&Gn.push(e),ql()}function la(e,t=Mr?Lt+1:0){for(;tFr(n)-Fr(r)),En=0;Ene.id==null?1/0:e.id,sh=(e,t)=>{const n=Fr(e)-Fr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Wl(e){Oi=!1,Mr=!0,ut.sort(sh);try{for(Lt=0;Ltqe(w)?w.trim():w)),f&&(s=n.map(ms))}let a,c=r[a=us(t)]||r[a=us(Ht(t))];!c&&i&&(c=r[a=us(Ln(t))]),c&&Pt(c,e,6,s);const d=r[a+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Pt(d,e,6,s)}}function Kl(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!de(e)){const c=d=>{const l=Kl(d,t,!0);l&&(a=!0,Ge(o,l))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!a?(Ee(e)&&r.set(e,null),null):(ee(i)?i.forEach(c=>o[c]=null):Ge(o,i),Ee(e)&&r.set(e,o),o)}function Ls(e,t){return!e||!Rs(t)?!1:(t=t.slice(2).replace(/Once$/,""),ye(e,t[0].toLowerCase()+t.slice(1))||ye(e,Ln(t))||ye(e,t))}let lt=null,Yl=null;function ys(e){const t=lt;return lt=e,Yl=e&&e.type.__scopeId||null,t}function me(e,t=lt,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Ca(-1);const i=ys(t);let o;try{o=e(...s)}finally{ys(i),r._d&&Ca(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function oi(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:i,propsOptions:[o],slots:a,attrs:c,emit:d,render:l,renderCache:f,data:u,setupState:w,ctx:g,inheritAttrs:p}=e;let x,I;const M=ys(e);try{if(n.shapeFlag&4){const R=s||r;x=It(l.call(R,R,f,i,w,u,g)),I=c}else{const R=t;x=It(R.length>1?R(i,{attrs:c,slots:a,emit:d}):R(i,null)),I=t.props?c:oh(c)}}catch(R){Or.length=0,Fs(R,e,1),x=B(kt)}let D=x;if(I&&p!==!1){const R=Object.keys(I),{shapeFlag:V}=D;R.length&&V&7&&(o&&R.some(eo)&&(I=ah(I,o)),D=gn(D,I))}return n.dirs&&(D=gn(D),D.dirs=D.dirs?D.dirs.concat(n.dirs):n.dirs),n.transition&&(D.transition=n.transition),x=D,ys(M),x}const oh=e=>{let t;for(const n in e)(n==="class"||n==="style"||Rs(n))&&((t||(t={}))[n]=e[n]);return t},ah=(e,t)=>{const n={};for(const r in e)(!eo(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function lh(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:c}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?ca(r,o,d):!!o;if(c&8){const l=t.dynamicProps;for(let f=0;fe.__isSuspense;function dh(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):rh(e)}const es={};function Zt(e,t,n){return Gl(e,t,n)}function Gl(e,t,{immediate:n,deep:r,flush:s,onTrack:i,onTrigger:o}=Re){var a;const c=bf()===((a=tt)==null?void 0:a.scope)?tt:null;let d,l=!1,f=!1;if(at(e)?(d=()=>e.value,l=bs(e)):Yn(e)?(d=()=>e,r=!0):ee(e)?(f=!0,l=e.some(R=>Yn(R)||bs(R)),d=()=>e.map(R=>{if(at(R))return R.value;if(Yn(R))return Nn(R);if(de(R))return pn(R,c,2)})):de(e)?t?d=()=>pn(e,c,2):d=()=>{if(!(c&&c.isUnmounted))return u&&u(),Pt(e,c,3,[w])}:d=zt,t&&r){const R=d;d=()=>Nn(R())}let u,w=R=>{u=M.onStop=()=>{pn(R,c,4)}},g;if(Lr)if(w=zt,t?n&&Pt(t,c,3,[d(),f?[]:void 0,w]):d(),s==="sync"){const R=dp();g=R.__watcherHandles||(R.__watcherHandles=[])}else return zt;let p=f?new Array(e.length).fill(es):es;const x=()=>{if(M.active)if(t){const R=M.run();(r||l||(f?R.some((V,J)=>Ar(V,p[J])):Ar(R,p)))&&(u&&u(),Pt(t,c,3,[R,p===es?void 0:f&&p[0]===es?[]:p,w]),p=R)}else M.run()};x.allowRecurse=!!t;let I;s==="sync"?I=x:s==="post"?I=()=>gt(x,c&&c.suspense):(x.pre=!0,c&&(x.id=c.uid),I=()=>mo(x));const M=new io(d,I);t?n?x():p=M.run():s==="post"?gt(M.run.bind(M),c&&c.suspense):M.run();const D=()=>{M.stop(),c&&c.scope&&to(c.scope.effects,M)};return g&&g.push(D),D}function fh(e,t,n){const r=this.proxy,s=qe(e)?e.includes(".")?Ql(r,e):()=>r[e]:e.bind(r,r);let i;de(t)?i=t:(i=t.handler,n=t);const o=tt;er(this);const a=Gl(s,i.bind(r),n);return o?er(o):$n(),a}function Ql(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s{Nn(n,t)});else if(Pl(e))for(const n in e)Nn(e[n],t);return e}function Be(e,t){const n=lt;if(n===null)return e;const r=qs(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i{e.isMounted=!0}),tc(()=>{e.isUnmounting=!0}),e}const St=[Function,Array],Jl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:St,onEnter:St,onAfterEnter:St,onEnterCancelled:St,onBeforeLeave:St,onLeave:St,onAfterLeave:St,onLeaveCancelled:St,onBeforeAppear:St,onAppear:St,onAfterAppear:St,onAppearCancelled:St},ph={name:"BaseTransition",props:Jl,setup(e,{slots:t}){const n=rp(),r=hh();let s;return()=>{const i=t.default&&Zl(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const p of i)if(p.type!==kt){o=p;break}}const a=we(e),{mode:c}=a;if(r.isLeaving)return ai(o);const d=ua(o);if(!d)return ai(o);const l=Ei(d,a,r,n);Di(d,l);const f=n.subTree,u=f&&ua(f);let w=!1;const{getTransitionKey:g}=d.type;if(g){const p=g();s===void 0?s=p:p!==s&&(s=p,w=!0)}if(u&&u.type!==kt&&(!Dn(d,u)||w)){const p=Ei(u,a,r,n);if(Di(u,p),c==="out-in")return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},ai(o);c==="in-out"&&d.type!==kt&&(p.delayLeave=(x,I,M)=>{const D=Xl(r,u);D[String(u.key)]=u,x._leaveCb=()=>{I(),x._leaveCb=void 0,delete l.delayedLeave},l.delayedLeave=M})}return o}}},mh=ph;function Xl(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ei(e,t,n,r){const{appear:s,mode:i,persisted:o=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:d,onEnterCancelled:l,onBeforeLeave:f,onLeave:u,onAfterLeave:w,onLeaveCancelled:g,onBeforeAppear:p,onAppear:x,onAfterAppear:I,onAppearCancelled:M}=t,D=String(e.key),R=Xl(n,e),V=(Y,se)=>{Y&&Pt(Y,r,9,se)},J=(Y,se)=>{const F=se[1];V(Y,se),ee(Y)?Y.every(ve=>ve.length<=1)&&F():Y.length<=1&&F()},ae={mode:i,persisted:o,beforeEnter(Y){let se=a;if(!n.isMounted)if(s)se=p||a;else return;Y._leaveCb&&Y._leaveCb(!0);const F=R[D];F&&Dn(e,F)&&F.el._leaveCb&&F.el._leaveCb(),V(se,[Y])},enter(Y){let se=c,F=d,ve=l;if(!n.isMounted)if(s)se=x||c,F=I||d,ve=M||l;else return;let K=!1;const ge=Y._enterCb=Ie=>{K||(K=!0,Ie?V(ve,[Y]):V(F,[Y]),ae.delayedLeave&&ae.delayedLeave(),Y._enterCb=void 0)};se?J(se,[Y,ge]):ge()},leave(Y,se){const F=String(e.key);if(Y._enterCb&&Y._enterCb(!0),n.isUnmounting)return se();V(f,[Y]);let ve=!1;const K=Y._leaveCb=ge=>{ve||(ve=!0,se(),ge?V(g,[Y]):V(w,[Y]),Y._leaveCb=void 0,R[F]===e&&delete R[F])};R[F]=e,u?J(u,[Y,K]):K()},clone(Y){return Ei(Y,t,n,r)}};return ae}function ai(e){if(Us(e))return e=gn(e),e.children=null,e}function ua(e){return Us(e)?e.children?e.children[0]:void 0:e}function Di(e,t){e.shapeFlag&6&&e.component?Di(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Zl(e,t=!1,n){let r=[],s=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,Us=e=>e.type.__isKeepAlive;function gh(e,t){ec(e,"a",t)}function bh(e,t){ec(e,"da",t)}function ec(e,t,n=tt){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(js(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Us(s.parent.vnode)&&yh(r,t,n,s),s=s.parent}}function yh(e,t,n,r){const s=js(t,e,r,!0);zs(()=>{to(r[t],s)},n)}function js(e,t,n=tt,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;or(),er(n);const a=Pt(t,n,e,o);return $n(),ar(),a});return r?s.unshift(i):s.push(i),i}}const tn=e=>(t,n=tt)=>(!Lr||e==="sp")&&js(e,(...r)=>t(...r),n),wh=tn("bm"),lr=tn("m"),vh=tn("bu"),Ch=tn("u"),tc=tn("bum"),zs=tn("um"),_h=tn("sp"),Th=tn("rtg"),Sh=tn("rtc");function xh(e,t=tt){js("ec",e,t)}const go="components",Ph="directives";function te(e,t){return bo(go,e,!0,t)||e}const nc=Symbol.for("v-ndc");function kh(e){return qe(e)?bo(go,e,!1)||e:e||nc}function Oh(e){return bo(Ph,e)}function bo(e,t,n=!0,r=!1){const s=lt||tt;if(s){const i=s.type;if(e===go){const a=lp(i,!1);if(a&&(a===t||a===Ht(t)||a===As(Ht(t))))return i}const o=da(s[e]||i[e],t)||da(s.appContext[e],t);return!o&&r?i:o}}function da(e,t){return e&&(e[t]||e[Ht(t)]||e[As(Ht(t))])}function ze(e,t,n,r){let s;const i=n&&n[r];if(ee(e)||qe(e)){s=new Array(e.length);for(let o=0,a=e.length;ot(o,a,void 0,i&&i[a]));else{const o=Object.keys(e);s=new Array(o.length);for(let a=0,c=o.length;a{const i=r.fn(...s);return i&&(i.key=r.key),i}:r.fn)}return e}function pe(e,t,n={},r,s){if(lt.isCE||lt.parent&&xr(lt.parent)&<.parent.isCE)return t!=="default"&&(n.name=t),B("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),C();const o=i&&rc(i(n)),a=Qe(ue,{key:n.key||o&&o.key||`_${t}`},o||(r?r():[]),o&&e._===1?64:-2);return!s&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function rc(e){return e.some(t=>Cs(t)?!(t.type===kt||t.type===ue&&!rc(t.children)):!0)?e:null}function Eh(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:us(r)]=e[r];return n}const Ri=e=>e?pc(e)?qs(e)||e.proxy:Ri(e.parent):null,Pr=Ge(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ri(e.parent),$root:e=>Ri(e.root),$emit:e=>e.emit,$options:e=>yo(e),$forceUpdate:e=>e.f||(e.f=()=>mo(e.update)),$nextTick:e=>e.n||(e.n=Is.bind(e.proxy)),$watch:e=>fh.bind(e)}),ci=(e,t)=>e!==Re&&!e.__isScriptSetup&&ye(e,t),Dh={get({_:e},t){const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:c}=e;let d;if(t[0]!=="$"){const w=o[t];if(w!==void 0)switch(w){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(ci(r,t))return o[t]=1,r[t];if(s!==Re&&ye(s,t))return o[t]=2,s[t];if((d=e.propsOptions[0])&&ye(d,t))return o[t]=3,i[t];if(n!==Re&&ye(n,t))return o[t]=4,n[t];Ni&&(o[t]=0)}}const l=Pr[t];let f,u;if(l)return t==="$attrs"&&yt(e,"get",t),l(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==Re&&ye(n,t))return o[t]=4,n[t];if(u=c.config.globalProperties,ye(u,t))return u[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return ci(s,t)?(s[t]=n,!0):r!==Re&&ye(r,t)?(r[t]=n,!0):ye(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},o){let a;return!!n[o]||e!==Re&&ye(e,o)||ci(t,o)||(a=i[0])&&ye(a,o)||ye(r,o)||ye(Pr,o)||ye(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ye(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function fa(e){return ee(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ni=!0;function Rh(e){const t=yo(e),n=e.proxy,r=e.ctx;Ni=!1,t.beforeCreate&&ha(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:c,inject:d,created:l,beforeMount:f,mounted:u,beforeUpdate:w,updated:g,activated:p,deactivated:x,beforeDestroy:I,beforeUnmount:M,destroyed:D,unmounted:R,render:V,renderTracked:J,renderTriggered:ae,errorCaptured:Y,serverPrefetch:se,expose:F,inheritAttrs:ve,components:K,directives:ge,filters:Ie}=t;if(d&&Nh(d,r,null),o)for(const le in o){const L=o[le];de(L)&&(r[le]=L.bind(n))}if(s){const le=s.call(n,n);Ee(le)&&(e.data=co(le))}if(Ni=!0,i)for(const le in i){const L=i[le],X=de(L)?L.bind(n,n):de(L.get)?L.get.bind(n,n):zt,fe=!de(L)&&de(L.set)?L.set.bind(n):zt,ne=Pe({get:X,set:fe});Object.defineProperty(r,le,{enumerable:!0,configurable:!0,get:()=>ne.value,set:oe=>ne.value=oe})}if(a)for(const le in a)sc(a[le],r,n,le);if(c){const le=de(c)?c.call(n):c;Reflect.ownKeys(le).forEach(L=>{Lh(L,le[L])})}l&&ha(l,e,"c");function Se(le,L){ee(L)?L.forEach(X=>le(X.bind(n))):L&&le(L.bind(n))}if(Se(wh,f),Se(lr,u),Se(vh,w),Se(Ch,g),Se(gh,p),Se(bh,x),Se(xh,Y),Se(Sh,J),Se(Th,ae),Se(tc,M),Se(zs,R),Se(_h,se),ee(F))if(F.length){const le=e.exposed||(e.exposed={});F.forEach(L=>{Object.defineProperty(le,L,{get:()=>n[L],set:X=>n[L]=X})})}else e.exposed||(e.exposed={});V&&e.render===zt&&(e.render=V),ve!=null&&(e.inheritAttrs=ve),K&&(e.components=K),ge&&(e.directives=ge)}function Nh(e,t,n=zt){ee(e)&&(e=Ai(e));for(const r in e){const s=e[r];let i;Ee(s)?"default"in s?i=Qn(s.from||r,s.default,!0):i=Qn(s.from||r):i=Qn(s),at(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function ha(e,t,n){Pt(ee(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function sc(e,t,n,r){const s=r.includes(".")?Ql(n,r):()=>n[r];if(qe(e)){const i=t[e];de(i)&&Zt(s,i)}else if(de(e))Zt(s,e.bind(n));else if(Ee(e))if(ee(e))e.forEach(i=>sc(i,t,n,r));else{const i=de(e.handler)?e.handler.bind(n):t[e.handler];de(i)&&Zt(s,i,e)}}function yo(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let c;return a?c=a:!s.length&&!n&&!r?c=t:(c={},s.length&&s.forEach(d=>ws(c,d,o,!0)),ws(c,t,o)),Ee(t)&&i.set(t,c),c}function ws(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&ws(e,i,n,!0),s&&s.forEach(o=>ws(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=Ah[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Ah={data:pa,props:ma,emits:ma,methods:Sr,computed:Sr,beforeCreate:pt,created:pt,beforeMount:pt,mounted:pt,beforeUpdate:pt,updated:pt,beforeDestroy:pt,beforeUnmount:pt,destroyed:pt,unmounted:pt,activated:pt,deactivated:pt,errorCaptured:pt,serverPrefetch:pt,components:Sr,directives:Sr,watch:Mh,provide:pa,inject:$h};function pa(e,t){return t?e?function(){return Ge(de(e)?e.call(this,this):e,de(t)?t.call(this,this):t)}:t:e}function $h(e,t){return Sr(Ai(e),Ai(t))}function Ai(e){if(ee(e)){const t={};for(let n=0;n1)return n&&de(t)?t.call(r&&r.proxy):t}}function Uh(e,t,n,r=!1){const s={},i={};ps(i,Bs,1),e.propsDefaults=Object.create(null),oc(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:Vf(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function jh(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=we(s),[c]=e.propsOptions;let d=!1;if((r||o>0)&&!(o&16)){if(o&8){const l=e.vnode.dynamicProps;for(let f=0;f{c=!0;const[u,w]=ac(f,t,!0);Ge(o,u),w&&a.push(...w)};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}if(!i&&!c)return Ee(e)&&r.set(e,Wn),Wn;if(ee(i))for(let l=0;l-1,w[1]=p<0||g-1||ye(w,"default"))&&a.push(f)}}}const d=[o,a];return Ee(e)&&r.set(e,d),d}function ga(e){return e[0]!=="$"}function ba(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ya(e,t){return ba(e)===ba(t)}function wa(e,t){return ee(t)?t.findIndex(n=>ya(n,e)):de(t)&&ya(t,e)?0:-1}const lc=e=>e[0]==="_"||e==="$stable",wo=e=>ee(e)?e.map(It):[It(e)],zh=(e,t,n)=>{if(t._n)return t;const r=me((...s)=>wo(t(...s)),n);return r._c=!1,r},cc=(e,t,n)=>{const r=e._ctx;for(const s in e){if(lc(s))continue;const i=e[s];if(de(i))t[s]=zh(s,i,r);else if(i!=null){const o=wo(i);t[s]=()=>o}}},uc=(e,t)=>{const n=wo(t);e.slots.default=()=>n},Hh=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=we(t),ps(t,"_",n)):cc(t,e.slots={})}else e.slots={},t&&uc(e,t);ps(e.slots,Bs,1)},Bh=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=Re;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:(Ge(s,t),!n&&a===1&&delete s._):(i=!t.$stable,cc(t,s)),o=t}else t&&(uc(e,t),o={default:1});if(i)for(const a in s)!lc(a)&&!(a in o)&&delete s[a]};function Mi(e,t,n,r,s=!1){if(ee(e)){e.forEach((u,w)=>Mi(u,t&&(ee(t)?t[w]:t),n,r,s));return}if(xr(r)&&!s)return;const i=r.shapeFlag&4?qs(r.component)||r.component.proxy:r.el,o=s?null:i,{i:a,r:c}=e,d=t&&t.r,l=a.refs===Re?a.refs={}:a.refs,f=a.setupState;if(d!=null&&d!==c&&(qe(d)?(l[d]=null,ye(f,d)&&(f[d]=null)):at(d)&&(d.value=null)),de(c))pn(c,a,12,[o,l]);else{const u=qe(c),w=at(c);if(u||w){const g=()=>{if(e.f){const p=u?ye(f,c)?f[c]:l[c]:c.value;s?ee(p)&&to(p,i):ee(p)?p.includes(i)||p.push(i):u?(l[c]=[i],ye(f,c)&&(f[c]=l[c])):(c.value=[i],e.k&&(l[e.k]=c.value))}else u?(l[c]=o,ye(f,c)&&(f[c]=o)):w&&(c.value=o,e.k&&(l[e.k]=o))};o?(g.id=-1,gt(g,n)):g()}}}const gt=dh;function qh(e){return Vh(e)}function Vh(e,t){const n=Si();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:c,setText:d,setElementText:l,parentNode:f,nextSibling:u,setScopeId:w=zt,insertStaticContent:g}=e,p=(m,b,P,A=null,$=null,j=null,k=!1,_=null,U=!!b.dynamicChildren)=>{if(m===b)return;m&&!Dn(m,b)&&(A=nn(m),oe(m,$,j,!0),m=null),b.patchFlag===-2&&(U=!1,b.dynamicChildren=null);const{type:O,ref:q,shapeFlag:z}=b;switch(O){case Hs:x(m,b,P,A);break;case kt:I(m,b,P,A);break;case ui:m==null&&M(b,P,A,k);break;case ue:K(m,b,P,A,$,j,k,_,U);break;default:z&1?V(m,b,P,A,$,j,k,_,U):z&6?ge(m,b,P,A,$,j,k,_,U):(z&64||z&128)&&O.process(m,b,P,A,$,j,k,_,U,Ct)}q!=null&&$&&Mi(q,m&&m.ref,j,b||m,!b)},x=(m,b,P,A)=>{if(m==null)r(b.el=a(b.children),P,A);else{const $=b.el=m.el;b.children!==m.children&&d($,b.children)}},I=(m,b,P,A)=>{m==null?r(b.el=c(b.children||""),P,A):b.el=m.el},M=(m,b,P,A)=>{[m.el,m.anchor]=g(m.children,b,P,A,m.el,m.anchor)},D=({el:m,anchor:b},P,A)=>{let $;for(;m&&m!==b;)$=u(m),r(m,P,A),m=$;r(b,P,A)},R=({el:m,anchor:b})=>{let P;for(;m&&m!==b;)P=u(m),s(m),m=P;s(b)},V=(m,b,P,A,$,j,k,_,U)=>{k=k||b.type==="svg",m==null?J(b,P,A,$,j,k,_,U):se(m,b,$,j,k,_,U)},J=(m,b,P,A,$,j,k,_)=>{let U,O;const{type:q,props:z,shapeFlag:Q,transition:re,dirs:he}=m;if(U=m.el=o(m.type,j,z&&z.is,z),Q&8?l(U,m.children):Q&16&&Y(m.children,U,null,A,$,j&&q!=="foreignObject",k,_),he&&Sn(m,null,A,"created"),ae(U,m,m.scopeId,k,A),z){for(const _e in z)_e!=="value"&&!cs(_e)&&i(U,_e,null,z[_e],j,m.children,A,$,ft);"value"in z&&i(U,"value",null,z.value),(O=z.onVnodeBeforeMount)&&$t(O,A,m)}he&&Sn(m,null,A,"beforeMount");const Te=(!$||$&&!$.pendingBranch)&&re&&!re.persisted;Te&&re.beforeEnter(U),r(U,b,P),((O=z&&z.onVnodeMounted)||Te||he)&>(()=>{O&&$t(O,A,m),Te&&re.enter(U),he&&Sn(m,null,A,"mounted")},$)},ae=(m,b,P,A,$)=>{if(P&&w(m,P),A)for(let j=0;j{for(let O=U;O{const _=b.el=m.el;let{patchFlag:U,dynamicChildren:O,dirs:q}=b;U|=m.patchFlag&16;const z=m.props||Re,Q=b.props||Re;let re;P&&xn(P,!1),(re=Q.onVnodeBeforeUpdate)&&$t(re,P,b,m),q&&Sn(b,m,P,"beforeUpdate"),P&&xn(P,!0);const he=$&&b.type!=="foreignObject";if(O?F(m.dynamicChildren,O,_,P,A,he,j):k||L(m,b,_,null,P,A,he,j,!1),U>0){if(U&16)ve(_,b,z,Q,P,A,$);else if(U&2&&z.class!==Q.class&&i(_,"class",null,Q.class,$),U&4&&i(_,"style",z.style,Q.style,$),U&8){const Te=b.dynamicProps;for(let _e=0;_e{re&&$t(re,P,b,m),q&&Sn(b,m,P,"updated")},A)},F=(m,b,P,A,$,j,k)=>{for(let _=0;_{if(P!==A){if(P!==Re)for(const _ in P)!cs(_)&&!(_ in A)&&i(m,_,P[_],null,k,b.children,$,j,ft);for(const _ in A){if(cs(_))continue;const U=A[_],O=P[_];U!==O&&_!=="value"&&i(m,_,O,U,k,b.children,$,j,ft)}"value"in A&&i(m,"value",P.value,A.value)}},K=(m,b,P,A,$,j,k,_,U)=>{const O=b.el=m?m.el:a(""),q=b.anchor=m?m.anchor:a("");let{patchFlag:z,dynamicChildren:Q,slotScopeIds:re}=b;re&&(_=_?_.concat(re):re),m==null?(r(O,P,A),r(q,P,A),Y(b.children,P,q,$,j,k,_,U)):z>0&&z&64&&Q&&m.dynamicChildren?(F(m.dynamicChildren,Q,P,$,j,k,_),(b.key!=null||$&&b===$.subTree)&&vo(m,b,!0)):L(m,b,P,q,$,j,k,_,U)},ge=(m,b,P,A,$,j,k,_,U)=>{b.slotScopeIds=_,m==null?b.shapeFlag&512?$.ctx.activate(b,P,A,k,U):Ie(b,P,A,$,j,k,U):rt(m,b,U)},Ie=(m,b,P,A,$,j,k)=>{const _=m.component=np(m,A,$);if(Us(m)&&(_.ctx.renderer=Ct),sp(_),_.asyncDep){if($&&$.registerDep(_,Se),!m.el){const U=_.subTree=B(kt);I(null,U,b,P)}return}Se(_,m,b,P,$,j,k)},rt=(m,b,P)=>{const A=b.component=m.component;if(lh(m,b,P))if(A.asyncDep&&!A.asyncResolved){le(A,b,P);return}else A.next=b,nh(A.update),A.update();else b.el=m.el,A.vnode=b},Se=(m,b,P,A,$,j,k)=>{const _=()=>{if(m.isMounted){let{next:q,bu:z,u:Q,parent:re,vnode:he}=m,Te=q,_e;xn(m,!1),q?(q.el=he.el,le(m,q,k)):q=he,z&&ds(z),(_e=q.props&&q.props.onVnodeBeforeUpdate)&&$t(_e,re,q,he),xn(m,!0);const Ae=oi(m),Le=m.subTree;m.subTree=Ae,p(Le,Ae,f(Le.el),nn(Le),m,$,j),q.el=Ae.el,Te===null&&ch(m,Ae.el),Q&>(Q,$),(_e=q.props&&q.props.onVnodeUpdated)&>(()=>$t(_e,re,q,he),$)}else{let q;const{el:z,props:Q}=b,{bm:re,m:he,parent:Te}=m,_e=xr(b);if(xn(m,!1),re&&ds(re),!_e&&(q=Q&&Q.onVnodeBeforeMount)&&$t(q,Te,b),xn(m,!0),z&&Vt){const Ae=()=>{m.subTree=oi(m),Vt(z,m.subTree,m,$,null)};_e?b.type.__asyncLoader().then(()=>!m.isUnmounted&&Ae()):Ae()}else{const Ae=m.subTree=oi(m);p(null,Ae,P,A,m,$,j),b.el=Ae.el}if(he&>(he,$),!_e&&(q=Q&&Q.onVnodeMounted)){const Ae=b;gt(()=>$t(q,Te,Ae),$)}(b.shapeFlag&256||Te&&xr(Te.vnode)&&Te.vnode.shapeFlag&256)&&m.a&>(m.a,$),m.isMounted=!0,b=P=A=null}},U=m.effect=new io(_,()=>mo(O),m.scope),O=m.update=()=>U.run();O.id=m.uid,xn(m,!0),O()},le=(m,b,P)=>{b.component=m;const A=m.vnode.props;m.vnode=b,m.next=null,jh(m,b.props,A,P),Bh(m,b.children,P),or(),la(),ar()},L=(m,b,P,A,$,j,k,_,U=!1)=>{const O=m&&m.children,q=m?m.shapeFlag:0,z=b.children,{patchFlag:Q,shapeFlag:re}=b;if(Q>0){if(Q&128){fe(O,z,P,A,$,j,k,_,U);return}else if(Q&256){X(O,z,P,A,$,j,k,_,U);return}}re&8?(q&16&&ft(O,$,j),z!==O&&l(P,z)):q&16?re&16?fe(O,z,P,A,$,j,k,_,U):ft(O,$,j,!0):(q&8&&l(P,""),re&16&&Y(z,P,A,$,j,k,_,U))},X=(m,b,P,A,$,j,k,_,U)=>{m=m||Wn,b=b||Wn;const O=m.length,q=b.length,z=Math.min(O,q);let Q;for(Q=0;Qq?ft(m,$,j,!0,!1,z):Y(b,P,A,$,j,k,_,U,z)},fe=(m,b,P,A,$,j,k,_,U)=>{let O=0;const q=b.length;let z=m.length-1,Q=q-1;for(;O<=z&&O<=Q;){const re=m[O],he=b[O]=U?fn(b[O]):It(b[O]);if(Dn(re,he))p(re,he,P,null,$,j,k,_,U);else break;O++}for(;O<=z&&O<=Q;){const re=m[z],he=b[Q]=U?fn(b[Q]):It(b[Q]);if(Dn(re,he))p(re,he,P,null,$,j,k,_,U);else break;z--,Q--}if(O>z){if(O<=Q){const re=Q+1,he=reQ)for(;O<=z;)oe(m[O],$,j,!0),O++;else{const re=O,he=O,Te=new Map;for(O=he;O<=Q;O++){const Ze=b[O]=U?fn(b[O]):It(b[O]);Ze.key!=null&&Te.set(Ze.key,O)}let _e,Ae=0;const Le=Q-he+1;let Wt=!1,ur=0;const yn=new Array(Le);for(O=0;O=Le){oe(Ze,$,j,!0);continue}let wt;if(Ze.key!=null)wt=Te.get(Ze.key);else for(_e=he;_e<=Q;_e++)if(yn[_e-he]===0&&Dn(Ze,b[_e])){wt=_e;break}wt===void 0?oe(Ze,$,j,!0):(yn[wt-he]=O+1,wt>=ur?ur=wt:Wt=!0,p(Ze,b[wt],P,null,$,j,k,_,U),Ae++)}const dr=Wt?Wh(yn):Wn;for(_e=dr.length-1,O=Le-1;O>=0;O--){const Ze=he+O,wt=b[Ze],fr=Ze+1{const{el:j,type:k,transition:_,children:U,shapeFlag:O}=m;if(O&6){ne(m.component.subTree,b,P,A);return}if(O&128){m.suspense.move(b,P,A);return}if(O&64){k.move(m,b,P,Ct);return}if(k===ue){r(j,b,P);for(let z=0;z_.enter(j),$);else{const{leave:z,delayLeave:Q,afterLeave:re}=_,he=()=>r(j,b,P),Te=()=>{z(j,()=>{he(),re&&re()})};Q?Q(j,he,Te):Te()}else r(j,b,P)},oe=(m,b,P,A=!1,$=!1)=>{const{type:j,props:k,ref:_,children:U,dynamicChildren:O,shapeFlag:q,patchFlag:z,dirs:Q}=m;if(_!=null&&Mi(_,null,P,m,!0),q&256){b.ctx.deactivate(m);return}const re=q&1&&Q,he=!xr(m);let Te;if(he&&(Te=k&&k.onVnodeBeforeUnmount)&&$t(Te,b,m),q&6)Ce(m.component,P,A);else{if(q&128){m.suspense.unmount(P,A);return}re&&Sn(m,null,b,"beforeUnmount"),q&64?m.type.remove(m,b,P,$,Ct,A):O&&(j!==ue||z>0&&z&64)?ft(O,b,P,!1,!0):(j===ue&&z&384||!$&&q&16)&&ft(U,b,P),A&&Xe(m)}(he&&(Te=k&&k.onVnodeUnmounted)||re)&>(()=>{Te&&$t(Te,b,m),re&&Sn(m,null,b,"unmounted")},P)},Xe=m=>{const{type:b,el:P,anchor:A,transition:$}=m;if(b===ue){At(P,A);return}if(b===ui){R(m);return}const j=()=>{s(P),$&&!$.persisted&&$.afterLeave&&$.afterLeave()};if(m.shapeFlag&1&&$&&!$.persisted){const{leave:k,delayLeave:_}=$,U=()=>k(P,j);_?_(m.el,j,U):U()}else j()},At=(m,b)=>{let P;for(;m!==b;)P=u(m),s(m),m=P;s(b)},Ce=(m,b,P)=>{const{bum:A,scope:$,update:j,subTree:k,um:_}=m;A&&ds(A),$.stop(),j&&(j.active=!1,oe(k,m,b,P)),_&>(_,b),gt(()=>{m.isUnmounted=!0},b),b&&b.pendingBranch&&!b.isUnmounted&&m.asyncDep&&!m.asyncResolved&&m.suspenseId===b.pendingId&&(b.deps--,b.deps===0&&b.resolve())},ft=(m,b,P,A=!1,$=!1,j=0)=>{for(let k=j;km.shapeFlag&6?nn(m.component.subTree):m.shapeFlag&128?m.suspense.next():u(m.anchor||m.el),ht=(m,b,P)=>{m==null?b._vnode&&oe(b._vnode,null,null,!0):p(b._vnode||null,m,b,null,null,null,P),la(),Vl(),b._vnode=m},Ct={p,um:oe,m:ne,r:Xe,mt:Ie,mc:Y,pc:L,pbc:F,n:nn,o:e};let qt,Vt;return t&&([qt,Vt]=t(Ct)),{render:ht,hydrate:qt,createApp:Ih(ht,qt)}}function xn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function vo(e,t,n=!1){const r=e.children,s=t.children;if(ee(r)&&ee(s))for(let i=0;i>1,e[n[a]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}const Kh=e=>e.__isTeleport,kr=e=>e&&(e.disabled||e.disabled===""),va=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Fi=(e,t)=>{const n=e&&e.to;return qe(n)?t?t(n):null:n},Yh={__isTeleport:!0,process(e,t,n,r,s,i,o,a,c,d){const{mc:l,pc:f,pbc:u,o:{insert:w,querySelector:g,createText:p,createComment:x}}=d,I=kr(t.props);let{shapeFlag:M,children:D,dynamicChildren:R}=t;if(e==null){const V=t.el=p(""),J=t.anchor=p("");w(V,n,r),w(J,n,r);const ae=t.target=Fi(t.props,g),Y=t.targetAnchor=p("");ae&&(w(Y,ae),o=o||va(ae));const se=(F,ve)=>{M&16&&l(D,F,ve,s,i,o,a,c)};I?se(n,J):ae&&se(ae,Y)}else{t.el=e.el;const V=t.anchor=e.anchor,J=t.target=e.target,ae=t.targetAnchor=e.targetAnchor,Y=kr(e.props),se=Y?n:J,F=Y?V:ae;if(o=o||va(J),R?(u(e.dynamicChildren,R,se,s,i,o,a),vo(e,t,!0)):c||f(e,t,se,F,s,i,o,a,!1),I)Y||ts(t,n,V,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ve=t.target=Fi(t.props,g);ve&&ts(t,ve,null,d,0)}else Y&&ts(t,J,ae,d,1)}dc(t)},remove(e,t,n,r,{um:s,o:{remove:i}},o){const{shapeFlag:a,children:c,anchor:d,targetAnchor:l,target:f,props:u}=e;if(f&&i(l),(o||!kr(u))&&(i(d),a&16))for(let w=0;w0?Nt||Wn:null,Jh(),Ir>0&&Nt&&Nt.push(e),e}function T(e,t,n,r,s,i){return fc(y(e,t,n,r,s,i,!0))}function Qe(e,t,n,r,s){return fc(B(e,t,n,r,s,!0))}function Cs(e){return e?e.__v_isVNode===!0:!1}function Dn(e,t){return e.type===t.type&&e.key===t.key}const Bs="__vInternal",hc=({key:e})=>e??null,fs=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?qe(e)||at(e)||de(e)?{i:lt,r:e,k:t,f:!!n}:e:null);function y(e,t=null,n=null,r=0,s=null,i=e===ue?0:1,o=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&hc(t),ref:t&&fs(t),scopeId:Yl,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:lt};return a?(Co(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=qe(n)?8:16),Ir>0&&!o&&Nt&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Nt.push(c),c}const B=Xh;function Xh(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===nc)&&(e=kt),Cs(e)){const a=gn(e,t,!0);return n&&Co(a,n),Ir>0&&!i&&Nt&&(a.shapeFlag&6?Nt[Nt.indexOf(e)]=a:Nt.push(a)),a.patchFlag|=-2,a}if(cp(e)&&(e=e.__vccOpts),t){t=Zh(t);let{class:a,style:c}=t;a&&!qe(a)&&(t.class=Z(a)),Ee(c)&&(Ul(c)&&!ee(c)&&(c=Ge({},c)),t.style=Un(c))}const o=qe(e)?1:uh(e)?128:Kh(e)?64:Ee(e)?4:de(e)?2:0;return y(e,t,n,r,s,o,i,!0)}function Zh(e){return e?Ul(e)||Bs in e?Ge({},e):e:null}function gn(e,t,n=!1){const{props:r,ref:s,patchFlag:i,children:o}=e,a=t?Ii(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&hc(a),ref:t&&t.ref?n&&s?ee(s)?s.concat(fs(t)):[s,fs(t)]:fs(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ue?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&gn(e.ssContent),ssFallback:e.ssFallback&&gn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Oe(e=" ",t=0){return B(Hs,null,e,t)}function H(e="",t=!1){return t?(C(),Qe(kt,null,e)):B(kt,null,e)}function It(e){return e==null||typeof e=="boolean"?B(kt):ee(e)?B(ue,null,e.slice()):typeof e=="object"?fn(e):B(Hs,null,String(e))}function fn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:gn(e)}function Co(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ee(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Co(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(Bs in t)?t._ctx=lt:s===3&<&&(lt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else de(t)?(t={default:t,_ctx:lt},n=32):(t=String(t),r&64?(n=16,t=[Oe(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ii(...e){const t={};for(let n=0;ntt||lt;let _o,Bn,_a="__VUE_INSTANCE_SETTERS__";(Bn=Si()[_a])||(Bn=Si()[_a]=[]),Bn.push(e=>tt=e),_o=e=>{Bn.length>1?Bn.forEach(t=>t(e)):Bn[0](e)};const er=e=>{_o(e),e.scope.on()},$n=()=>{tt&&tt.scope.off(),_o(null)};function pc(e){return e.vnode.shapeFlag&4}let Lr=!1;function sp(e,t=!1){Lr=t;const{props:n,children:r}=e.vnode,s=pc(e);Uh(e,n,s,t),Hh(e,r);const i=s?ip(e,t):void 0;return Lr=!1,i}function ip(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=fo(new Proxy(e.ctx,Dh));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?ap(e):null;er(e),or();const i=pn(r,e,0,[e.props,s]);if(ar(),$n(),Sl(i)){if(i.then($n,$n),t)return i.then(o=>{Ta(e,o,t)}).catch(o=>{Fs(o,e,0)});e.asyncDep=i}else Ta(e,i,t)}else mc(e,t)}function Ta(e,t,n){de(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ee(t)&&(e.setupState=Hl(t)),mc(e,n)}let Sa;function mc(e,t,n){const r=e.type;if(!e.render){if(!t&&Sa&&!r.render){const s=r.template||yo(e).template;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:c}=r,d=Ge(Ge({isCustomElement:i,delimiters:a},o),c);r.render=Sa(s,d)}}e.render=r.render||zt}er(e),or(),Rh(e),ar(),$n()}function op(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return yt(e,"get","$attrs"),t[n]}}))}function ap(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return op(e)},slots:e.slots,emit:e.emit,expose:t}}function qs(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Hl(fo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Pr)return Pr[n](e)},has(t,n){return n in t||n in Pr}}))}function lp(e,t=!0){return de(e)?e.displayName||e.name:e.name||t&&e.__name}function cp(e){return de(e)&&"__vccOpts"in e}const Pe=(e,t)=>Zf(e,t,Lr);function gc(e,t,n){const r=arguments.length;return r===2?Ee(t)&&!ee(t)?Cs(t)?B(e,null,[t]):B(e,t):B(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Cs(n)&&(n=[n]),B(e,t,n))}const up=Symbol.for("v-scx"),dp=()=>Qn(up),fp="3.3.4",hp="http://www.w3.org/2000/svg",Rn=typeof document<"u"?document:null,xa=Rn&&Rn.createElement("template"),pp={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t?Rn.createElementNS(hp,e):Rn.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Rn.createTextNode(e),createComment:e=>Rn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Rn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{xa.innerHTML=r?`${e}`:e;const a=xa.content;if(r){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function mp(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function gp(e,t,n){const r=e.style,s=qe(n);if(n&&!s){if(t&&!qe(t))for(const i in t)n[i]==null&&Li(r,i,"");for(const i in n)Li(r,i,n[i])}else{const i=r.display;s?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const Pa=/\s*!important$/;function Li(e,t,n){if(ee(n))n.forEach(r=>Li(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=bp(e,t);Pa.test(n)?e.setProperty(Ln(r),n.replace(Pa,""),"important"):e[r]=n}}const ka=["Webkit","Moz","ms"],di={};function bp(e,t){const n=di[t];if(n)return n;let r=Ht(t);if(r!=="filter"&&r in e)return di[t]=r;r=As(r);for(let s=0;sfi||(Tp.then(()=>fi=0),fi=Date.now());function xp(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Pt(Pp(r,n.value),t,5,[r])};return n.value=e,n.attached=Sp(),n}function Pp(e,t){if(ee(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Da=/^on[a-z]/,kp=(e,t,n,r,s=!1,i,o,a,c)=>{t==="class"?mp(e,r,s):t==="style"?gp(e,n,r):Rs(t)?eo(t)||Cp(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Op(e,t,r,s))?wp(e,t,r,i,o,a,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),yp(e,t,r,s))};function Op(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Da.test(t)&&de(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Da.test(t)&&qe(n)?!1:t in e}const cn="transition",yr="animation",To=(e,{slots:t})=>gc(mh,Ep(e),t);To.displayName="Transition";const bc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};To.props=Ge({},Jl,bc);const Pn=(e,t=[])=>{ee(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ra=e=>e?ee(e)?e.some(t=>t.length>1):e.length>1:!1;function Ep(e){const t={};for(const K in e)K in bc||(t[K]=e[K]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:d=o,appearToClass:l=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:u=`${n}-leave-active`,leaveToClass:w=`${n}-leave-to`}=e,g=Dp(s),p=g&&g[0],x=g&&g[1],{onBeforeEnter:I,onEnter:M,onEnterCancelled:D,onLeave:R,onLeaveCancelled:V,onBeforeAppear:J=I,onAppear:ae=M,onAppearCancelled:Y=D}=t,se=(K,ge,Ie)=>{kn(K,ge?l:a),kn(K,ge?d:o),Ie&&Ie()},F=(K,ge)=>{K._isLeaving=!1,kn(K,f),kn(K,w),kn(K,u),ge&&ge()},ve=K=>(ge,Ie)=>{const rt=K?ae:M,Se=()=>se(ge,K,Ie);Pn(rt,[ge,Se]),Na(()=>{kn(ge,K?c:i),un(ge,K?l:a),Ra(rt)||Aa(ge,r,p,Se)})};return Ge(t,{onBeforeEnter(K){Pn(I,[K]),un(K,i),un(K,o)},onBeforeAppear(K){Pn(J,[K]),un(K,c),un(K,d)},onEnter:ve(!1),onAppear:ve(!0),onLeave(K,ge){K._isLeaving=!0;const Ie=()=>F(K,ge);un(K,f),Ap(),un(K,u),Na(()=>{K._isLeaving&&(kn(K,f),un(K,w),Ra(R)||Aa(K,r,x,Ie))}),Pn(R,[K,Ie])},onEnterCancelled(K){se(K,!1),Pn(D,[K])},onAppearCancelled(K){se(K,!0),Pn(Y,[K])},onLeaveCancelled(K){F(K),Pn(V,[K])}})}function Dp(e){if(e==null)return null;if(Ee(e))return[hi(e.enter),hi(e.leave)];{const t=hi(e);return[t,t]}}function hi(e){return af(e)}function un(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function kn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Na(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Rp=0;function Aa(e,t,n,r){const s=e._endId=++Rp,i=()=>{s===e._endId&&r()};if(n)return setTimeout(i,n);const{type:o,timeout:a,propCount:c}=Np(e,t);if(!o)return r();const d=o+"end";let l=0;const f=()=>{e.removeEventListener(d,u),i()},u=w=>{w.target===e&&++l>=c&&f()};setTimeout(()=>{l(n[g]||"").split(", "),s=r(`${cn}Delay`),i=r(`${cn}Duration`),o=$a(s,i),a=r(`${yr}Delay`),c=r(`${yr}Duration`),d=$a(a,c);let l=null,f=0,u=0;t===cn?o>0&&(l=cn,f=o,u=i.length):t===yr?d>0&&(l=yr,f=d,u=c.length):(f=Math.max(o,d),l=f>0?o>d?cn:yr:null,u=l?l===cn?i.length:c.length:0);const w=l===cn&&/\b(transform|all)(,|$)/.test(r(`${cn}Property`).toString());return{type:l,timeout:f,propCount:u,hasTransform:w}}function $a(e,t){for(;e.lengthMa(n)+Ma(e[r])))}function Ma(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Ap(){return document.body.offsetHeight}const bn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?n=>ds(t,n):t};function $p(e){e.target.composing=!0}function Fa(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Vs={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e._assign=bn(s);const i=r||s.props&&s.props.type==="number";Qt(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=ms(a)),e._assign(a)}),n&&Qt(e,"change",()=>{e.value=e.value.trim()}),t||(Qt(e,"compositionstart",$p),Qt(e,"compositionend",Fa),Qt(e,"change",Fa))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:s}},i){if(e._assign=bn(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(s||e.type==="number")&&ms(e.value)===t))return;const o=t??"";e.value!==o&&(e.value=o)}},Mp={deep:!0,created(e,t,n){e._assign=bn(n),Qt(e,"change",()=>{const r=e._modelValue,s=tr(e),i=e.checked,o=e._assign;if(ee(r)){const a=ro(r,s),c=a!==-1;if(i&&!c)o(r.concat(s));else if(!i&&c){const d=[...r];d.splice(a,1),o(d)}}else if(ir(r)){const a=new Set(r);i?a.add(s):a.delete(s),o(a)}else o(yc(e,i))})},mounted:Ia,beforeUpdate(e,t,n){e._assign=bn(n),Ia(e,t,n)}};function Ia(e,{value:t,oldValue:n},r){e._modelValue=t,ee(t)?e.checked=ro(t,r.props.value)>-1:ir(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Fn(t,yc(e,!0)))}const Fp={created(e,{value:t},n){e.checked=Fn(t,n.props.value),e._assign=bn(n),Qt(e,"change",()=>{e._assign(tr(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=bn(r),t!==n&&(e.checked=Fn(t,r.props.value))}},Ui={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=ir(t);Qt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?ms(tr(o)):tr(o));e._assign(e.multiple?s?new Set(i):i:i[0])}),e._assign=bn(r)},mounted(e,{value:t}){La(e,t)},beforeUpdate(e,t,n){e._assign=bn(n)},updated(e,{value:t}){La(e,t)}};function La(e,t){const n=e.multiple;if(!(n&&!ee(t)&&!ir(t))){for(let r=0,s=e.options.length;r-1:i.selected=t.has(o);else if(Fn(tr(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function tr(e){return"_value"in e?e._value:e.value}function yc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ip=["ctrl","shift","alt","meta"],Lp={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Ip.some(n=>e[`${n}Key`]&&!t.includes(n))},ke=(e,t)=>(n,...r)=>{for(let s=0;sn=>{if(!("key"in n))return;const r=Ln(n.key);if(t.some(s=>s===r||Up[s]===r))return e(n)},Ot={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):wr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),wr(e,!0),r.enter(e)):r.leave(e,()=>{wr(e,!1)}):wr(e,t))},beforeUnmount(e,{value:t}){wr(e,t)}};function wr(e,t){e.style.display=t?e._vod:"none"}const jp=Ge({patchProp:kp},pp);let Ua;function zp(){return Ua||(Ua=qh(jp))}const Hp=(...e)=>{const t=zp().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Bp(r);if(!s)return;const i=t._component;!de(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const o=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t};function Bp(e){return qe(e)?document.querySelector(e):e}let ns;const qp=new Uint8Array(16);function Vp(){if(!ns&&(ns=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ns))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ns(qp)}const it=[];for(let e=0;e<256;++e)it.push((e+256).toString(16).slice(1));function Wp(e,t=0){return(it[e[t+0]]+it[e[t+1]]+it[e[t+2]]+it[e[t+3]]+"-"+it[e[t+4]]+it[e[t+5]]+"-"+it[e[t+6]]+it[e[t+7]]+"-"+it[e[t+8]]+it[e[t+9]]+"-"+it[e[t+10]]+it[e[t+11]]+it[e[t+12]]+it[e[t+13]]+it[e[t+14]]+it[e[t+15]]).toLowerCase()}const Kp=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ja={randomUUID:Kp};function Yp(e,t,n){if(ja.randomUUID&&!t&&!e)return ja.randomUUID();e=e||{};const r=e.random||(e.rng||Vp)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let s=0;s<16;++s)t[n+s]=r[s];return t}return Wp(r)}const So={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let n=0;this.panes=this.panes.map((r,s)=>(r.size=s===t?r.max:r.min,s!==t&&(n+=r.min),r)),this.panes[t].size-=n,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:n,clientY:r}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-t.left,y:r-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const r=0+(this.pushOtherPanes?0:n.prevPanesSize),s=100-(this.pushOtherPanes?0:n.nextPanesSize),i=Math.max(Math.min(this.getCurrentDragPercentage(e),s),r);let o=[t,t+1],a=this.panes[o[0]]||null,c=this.panes[o[1]]||null;const d=a.max<100&&i>=a.max+n.prevPanesSize,l=c.max<100&&i<=100-(c.max+this.sumNextPanesSize(t+1));if(d||l){d?(a.size=a.max,c.size=Math.max(100-a.max-n.prevPanesSize-n.nextPanesSize,0)):(a.size=Math.max(100-c.max-n.prevPanesSize-this.sumNextPanesSize(t+1),0),c.size=c.max);return}if(this.pushOtherPanes){const f=this.doPushOtherPanes(n,i);if(!f)return;({sums:n,panesToResize:o}=f),a=this.panes[o[0]]||null,c=this.panes[o[1]]||null}a!==null&&(a.size=Math.min(Math.max(i-n.prevPanesSize-n.prevReachedMinPanes,a.min),a.max)),c!==null&&(c.size=Math.min(Math.max(100-i-n.nextPanesSize-n.nextReachedMinPanes,c.min),c.max))},doPushOtherPanes(e,t){const n=this.touch.activeSplitter,r=[n,n+1];return t{i>r[0]&&i<=n&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),e.prevPanesSize=this.sumPrevPanesSize(r[0]),r[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((s,i)=>{i>0&&i<=n&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),this.panes[r[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[r[1]].min&&(r[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,r[1]>n+1&&this.panes.forEach((s,i)=>{i>n&&i{i=n+1&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),this.panes[r[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:r}},sumPrevPanesSize(e){return this.panes.reduce((t,n,r)=>t+(rt+(r>e+1?n.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.indext.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");!t&&!n&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))})},addSplitter(e,t,n=!1){const r=e-1,s=document.createElement("div");s.classList.add("splitpanes__splitter"),n||(s.onmousedown=i=>this.onMouseDown(i,r),typeof window<"u"&&"ontouchstart"in window&&(s.ontouchstart=i=>this.onMouseDown(i,r)),s.onclick=i=>this.onSplitterClick(i,r+1)),this.dblClickSplitter&&(s.ondblclick=i=>this.onSplitterDblClick(i,r+1)),t.parentNode.insertBefore(s,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let t=0;e.forEach(n=>{n.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,n,!0):t&&this.addSplitter(t,n),t++)})},requestUpdate({target:e,...t}){const n=this.indexedPanes[e._.uid];Object.entries(t).forEach(([r,s])=>n[r]=s)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(s=>(s.className.includes("splitpanes__pane")&&t++,s===e.$el));const n=parseFloat(e.minSize),r=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(n)?0:n,max:isNaN(r)?100:r,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((s,i)=>s.index=i),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(r=>r.id===e._.uid),n=this.panes.splice(t,1)[0];this.panes.forEach((r,s)=>r.index=s),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:t}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const n=[],r=[];this.panes.forEach(s=>{s.size=Math.max(Math.min(e,s.max),s.min),t-=s.size,s.size>=s.max&&n.push(s.id),s.size<=s.min&&r.push(s.id)}),t>.1&&this.readjustSizes(t,n,r)},initialPanesSizing(){let e=100;const t=[],n=[];let r=0;this.panes.forEach(i=>{e-=i.size,i.size!==null&&r++,i.size>=i.max&&t.push(i.id),i.size<=i.min&&n.push(i.id)});let s=100;e>.1&&(this.panes.forEach(i=>{i.size===null&&(i.size=Math.max(Math.min(e/(this.panesCount-r),i.max),i.min)),s-=i.size}),s>.1&&this.readjustSizes(e,t,n))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let n=100/this.panesCount,r=0;const s=[],i=[];e&&e.givenSize!==null&&(n=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{r-=o.size,o.size>=o.max&&s.push(o.id),o.size<=o.min&&i.push(o.id)}),!(Math.abs(r)<.1)&&(this.panes.forEach(o=>{e&&e.givenSize!==null&&e.id===o.id||(o.size=Math.max(Math.min(n,o.max),o.min)),r-=o.size,o.size>=o.max&&s.push(o.id),o.size<=o.min&&i.push(o.id)}),r>.1&&this.readjustSizes(r,s,i))},readjustSizes(e,t,n){let r;e>0?r=e/(this.panesCount-t.length):r=e/(this.panesCount-n.length),this.panes.forEach((s,i)=>{if(e>0&&!t.includes(s.id)){const o=Math.max(Math.min(s.size+r,s.max),s.min),a=o-s.size;e-=a,s.size=o}else if(!n.includes(s.id)){const o=Math.max(Math.min(s.size+r,s.max),s.min),a=o-s.size;e-=a,s.size=o}s.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[s.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,n)=>{t.ondblclick=e?r=>this.onSplitterDblClick(r,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return gc("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},Gp=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Qp={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function Jp(e,t,n,r,s,i){return C(),T("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=o=>i.onPaneClick(o,e._.uid)),style:Un(e.style)},[pe(e.$slots,"default")],4)}const xo=Gp(Qp,[["render",Jp]]);var Xp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zp(e,t){return t={exports:{}},e(t,t.exports),t.exports}var em=Zp(function(e,t){(function(n,r){e.exports=r()})(Xp,function(){var n="__v-click-outside",r=typeof window<"u",s=typeof navigator<"u",i=r&&("ontouchstart"in window||s&&navigator.msMaxTouchPoints>0)?["touchstart"]:["click"],o=function(l){var f=l.event,u=l.handler;(0,l.middleware)(f)&&u(f)},a=function(l,f){var u=function(M){var D=typeof M=="function";if(!D&&typeof M!="object")throw new Error("v-click-outside: Binding value must be a function or an object");return{handler:D?M:M.handler,middleware:M.middleware||function(R){return R},events:M.events||i,isActive:M.isActive!==!1,detectIframe:M.detectIframe!==!1,capture:!!M.capture}}(f.value),w=u.handler,g=u.middleware,p=u.detectIframe,x=u.capture;if(u.isActive){if(l[n]=u.events.map(function(M){return{event:M,srcTarget:document.documentElement,handler:function(D){return function(R){var V=R.el,J=R.event,ae=R.handler,Y=R.middleware,se=J.path||J.composedPath&&J.composedPath();(se?se.indexOf(V)<0:!V.contains(J.target))&&o({event:J,handler:ae,middleware:Y})}({el:l,event:D,handler:w,middleware:g})},capture:x}}),p){var I={event:"blur",srcTarget:window,handler:function(M){return function(D){var R=D.el,V=D.event,J=D.handler,ae=D.middleware;setTimeout(function(){var Y=document.activeElement;Y&&Y.tagName==="IFRAME"&&!R.contains(Y)&&o({event:V,handler:J,middleware:ae})},0)}({el:l,event:M,handler:w,middleware:g})},capture:x};l[n]=[].concat(l[n],[I])}l[n].forEach(function(M){var D=M.event,R=M.srcTarget,V=M.handler;return setTimeout(function(){l[n]&&R.addEventListener(D,V,x)},0)})}},c=function(l){(l[n]||[]).forEach(function(f){return f.srcTarget.removeEventListener(f.event,f.handler,f.capture)}),delete l[n]},d=r?{beforeMount:a,updated:function(l,f){var u=f.value,w=f.oldValue;JSON.stringify(u)!==JSON.stringify(w)&&(c(l),a(l,{value:u}))},unmounted:c}:{};return{install:function(l){l.directive("click-outside",d)},directive:d}})}),Ws={name:"VueSimpleContextMenu",props:{elementId:{type:String,required:!0},options:{type:Array,required:!0}},emits:["menu-closed","option-clicked"],directives:{"click-outside":em.directive},data:function(){return{item:null,menuHeight:null,menuWidth:null}},methods:{showMenu:function(t,n){this.item=n;var r=document.getElementById(this.elementId);r&&((!this.menuWidth||!this.menuHeight)&&(r.style.visibility="hidden",r.style.display="block",this.menuWidth=r.offsetWidth,this.menuHeight=r.offsetHeight,r.removeAttribute("style")),this.menuWidth+t.pageX>=window.innerWidth?r.style.left=t.pageX-this.menuWidth+2+"px":r.style.left=t.pageX-2+"px",this.menuHeight+t.pageY>=window.innerHeight?r.style.top=t.pageY-this.menuHeight+2+"px":r.style.top=t.pageY-2+"px",r.classList.add("vue-simple-context-menu--active"))},hideContextMenu:function(){var t=document.getElementById(this.elementId);t&&(t.classList.remove("vue-simple-context-menu--active"),this.$emit("menu-closed"))},onClickOutside:function(){this.hideContextMenu()},optionClicked:function(t){this.hideContextMenu(),this.$emit("option-clicked",{item:this.item,option:t})},onEscKeyRelease:function(t){t.keyCode===27&&this.hideContextMenu()}},mounted:function(){document.body.addEventListener("keyup",this.onEscKeyRelease)},beforeUnmount:function(){document.removeEventListener("keyup",this.onEscKeyRelease)}},tm=["id"],nm=["onClick"],rm=["innerHTML"];function sm(e,t,n,r,s,i){var o=Oh("click-outside");return C(),T("div",null,[Be((C(),T("ul",{id:n.elementId,class:"vue-simple-context-menu"},[(C(!0),T(ue,null,ze(n.options,function(a,c){return C(),T("li",{key:c,onClick:ke(function(d){return i.optionClicked(a)},["stop"]),class:Z(["vue-simple-context-menu__item",[a.class,a.type==="divider"?"vue-simple-context-menu__divider":""]])},[y("span",{innerHTML:a.name},null,8,rm)],10,nm)}),128))],8,tm)),[[o,i.onClickOutside]])])}Ws.render=sm;Ws.__file="src/vue-simple-context-menu.vue";function ji(e){ji.installed||(ji.installed=!0,e.component("VueSimpleContextMenu",Ws))}var im={install:ji},_s=null;typeof window<"u"?_s=window.Vue:typeof global<"u"&&(_s=global.Vue);_s&&_s.use(im);const Ks=Ws,Er=Object.freeze({Checkbox:"checkbox",RadioButton:"radio"}),Je=Object.freeze({None:null,Single:"single",Multiple:"multiple",SelectionFollowsFocus:"selectionFollowsFocus"});function wc(){function e(){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let r="grt-";do r+=n.charAt(Math.floor(Math.random()*n.length));while(r.length<8||document.getElementById(r));return r}function t(n,r){let s=n.treeNodeSpec.idProperty,i=n[s],o=n[n.treeNodeSpec.childrenProperty];if(document.getElementById(`${r}-${i}`)){let a=1;for(;document.getElementById(`${r}-${i}-${a}`);)a++;n[s]=`${i}-${a}`}o.forEach(a=>t(a,r))}return{generateUniqueId:e,resolveNodeIdConflicts:t}}function om(e,t,n,r,s){const i=Ms({activateItem:[32],selectItem:[13],focusLastItem:[35],focusFirstItem:[36],collapseFocusedItem:[37],expandFocusedItem:[39],focusPreviousItem:[38],focusNextItem:[40],insertItem:[45],deleteItem:[46]}),o=We(null),a=Pe(()=>Object.assign({},i,S(t)));lr(()=>{if(e.value.length>0){let p=null;r(x=>{x.treeNodeSpec.focusable&&(o.value?x.treeNodeSpec.focusable=!1:o.value=x),n!==Je.None&&p===null&&x.treeNodeSpec.state.selected&&(p=x)}),o.value||(o.value=p||e.value[0],o.value.treeNodeSpec.focusable=!0),p===null&&o.value.treeNodeSpec.selectable&&n===Je.SelectionFollowsFocus&&(o.value.treeNodeSpec.state.selected=!0),c(n)}});function c(p){p===Je.Single?s():p===Je.SelectionFollowsFocus&&r(x=>{let I=x.treeNodeSpec.idProperty,M=o.value.treeNodeSpec.idProperty;x[I]===o.value[M]?x.treeNodeSpec.selectable&&(x.treeNodeSpec.state.selected=!0):x.treeNodeSpec.state.selected&&(x.treeNodeSpec.state.selected=!1)})}function d(p){o.value!==p&&(o.value&&(o.value.treeNodeSpec.focusable=!1),o.value=p)}function l(){e.value[0].treeNodeSpec.focusable=!0}function f(){let p=e.value[e.value.length-1],x=p[p.treeNodeSpec.childrenProperty];for(;x.length>0&&p.treeNodeSpec.state.expanded;)p=x[x.length-1],x=p[p.treeNodeSpec.childrenProperty];p.treeNodeSpec.focusable=!0}function u(p){p.treeNodeSpec.focusable&&(e.value.indexOf(p)===0?e.value.length>0&&g(p):w(p))}function w(p){let x=e.value.indexOf(p);if(x>0){let I=e.value[x-1],M=I[I.treeNodeSpec.childrenProperty];for(;M.length>0&&I.treeNodeSpec.state.expanded;)I=M[M.length-1],M=I[I.treeNodeSpec.childrenProperty];I.treeNodeSpec.focusable=!0}}function g(p,x){let I=e.value.indexOf(p),M=p[p.treeNodeSpec.childrenProperty];!x&&M.length>0&&p.treeNodeSpec.state.expanded?M[0].treeNodeSpec.focusable=!0:I-1&&e.value.splice(a,1)}function i(o){let a=o.droppedModel;if(o.isSameTree)if(o.dropEffect===vc.Move)a=r(a[a.treeNodeSpec.idProperty]),a.treeNodeSpec._.dragMoved=!0;else{let c=n(a[a.treeNodeSpec.idProperty]);a=lm(c),za(a,t.value),a.treeNodeSpec.focusable=!1}else za(a,t.value);if(a){let c=o.siblingNodeSet||e.value,d=c.indexOf(o.targetModel);switch(o.targetZone){case Vn.Before:c.splice(d,0,a);break;case Vn.After:c.splice(d+1,0,a);break;default:c.push(a);break}a.treeNodeSpec._.dragging=!1}}return{dragMoveNode:s,drop:i}}const{isProbablyObject:Ha}=Cc();function um(e,t,n,r,s,i){function o(){e.value.treeNodeSpec||(e.value.treeNodeSpec={});const l=e.value.treeNodeSpec;a(t,l),typeof l.childrenProperty!="string"&&(l.childrenProperty="children"),typeof l.idProperty!="string"&&(l.idProperty="id"),typeof l.labelProperty!="string"&&(l.labelProperty="label"),Array.isArray(n.value)||(e.value[r.value]=[]),typeof l.expandable!="boolean"&&(l.expandable=!0),typeof l.selectable!="boolean"&&(l.selectable=!1),typeof l.deletable!="boolean"&&(l.deletable=!1),typeof l.draggable!="boolean"&&(l.draggable=!1),typeof l.allowDrop!="boolean"&&(l.allowDrop=!1),typeof l.focusable!="boolean"&&(l.focusable=!1),typeof l.addChildCallback!="function"&&(l.addChildCallback=null),(typeof l.title!="string"||l.title.trim().length===0)&&(l.title=null),(typeof l.expanderTitle!="string"||l.expanderTitle.trim().length===0)&&(l.expanderTitle=null),(typeof l.addChildTitle!="string"||l.addChildTitle.trim().length===0)&&(l.addChildTitle=null),(typeof l.deleteTitle!="string"||l.deleteTitle.trim().length===0)&&(l.deleteTitle=null),(l.customizations==null||typeof l.customizations!="object")&&(l.customizations={}),typeof l.loadChildrenAsync!="function"&&(l.loadChildrenAsync=null),l._={},l._.dragging=!1,c(l),d(l),e.value.treeNodeSpec=l}function a(l,f){if(Ha(l)){const u=JSON.parse(JSON.stringify(l));Object.assign(u,f);for(const w of Object.keys(l)){const g=typeof l[w]=="function"?l[w]:u[w];Ha(g)?(f[w]=f[w]||{},a(g,f[w])):(typeof g=="function"&&f[w],f[w]=g)}}}function c(l){let f=l.input;f===null||typeof f!="object"||!Object.values(Er).includes(f.type)?l.input=null:((typeof f.name!="string"||f.name.trim().length===0)&&(f.name=null),f.type===Er.RadioButton&&((typeof f.name!="string"||f.name.trim().length===0)&&(f.name="unspecifiedRadioName"),(typeof f.value!="string"||f.value.trim().length===0)&&(f.value=s.value.replace(/[\s&<>"'\/]/g,"")),i.value.hasOwnProperty(f.name)||(i.value[f.name]=""),f.isInitialRadioGroupValue===!0&&(i.value[f.name]=f.value)))}function d(l){(l.state===null||typeof l.state!="object")&&(l.state={}),(l._.state===null||typeof l._.state!="object")&&(l._.state={});let f=l.state,u=l._.state;u.areChildrenLoaded=typeof l.loadChildrenAsync!="function",u.areChildrenLoading=!1,(typeof f.expanded!="boolean"||!u.areChildrenLoaded)&&(f.expanded=!1),typeof f.selected!="boolean"&&(f.selected=!1),l.input&&((f.input===null||typeof f.input!="object")&&(f.input={}),(f.input.disabled===null||typeof f.input.disabled!="boolean")&&(f.input.disabled=!1),l.input.type===Er.Checkbox&&typeof f.input.value!="boolean"&&(f.input.value=!1))}return{normalizeNodeData:o}}const W=Object.freeze({RootNodesLoad:"treeRootNodesLoad",Click:"treeNodeClick",DoubleClick:"treeNodeDblclick",CheckboxChange:"treeNodeCheckboxChange",ChildCheckboxChange:"treeNodeChildCheckboxChange",RadioChange:"treeNodeRadioChange",ExpandedChange:"treeNodeExpandedChange",ChildrenLoad:"treeNodeChildrenLoad",SelectedChange:"treeNodeSelectedChange",FocusableChange:"treeNodeAriaFocusableChange",RequestFirstFocus:"treeNodeAriaRequestFirstFocus",RequestLastFocus:"treeNodeAriaRequestLastFocus",RequestParentFocus:"treeNodeAriaRequestParentFocus",RequestPreviousFocus:"treeNodeAriaRequestPreviousFocus",RequestNextFocus:"treeNodeAriaRequestNextFocus",Add:"treeNodeAdd",Delete:"treeNodeDelete",DragMove:"treeNodeDragMove",Drop:"treeNodeDrop"});function dm(e,t,n,r,s,i,o,a,c,d,l){const f=t.value.treeNodeSpec,u=Pe(()=>f.focusable?0:-1);function w(){f.focusable=!0}function g(D){D.treeNodeSpec.focusable&&(n.value.length>1&&n.value.indexOf(D)===0?M(D):I(D))}function p(){f.focusable=!0}function x(D){let R=!0;if(!(D.altKey||D.ctrlKey||D.metaKey||D.shift)){if(e.activateItem.includes(D.keyCode)){if(f.input&&!f.state.input.disabled){let V=i.value.querySelector(".grtvn-self"),J=V.querySelector(".grtvn-self-input")||V.querySelector("input");if(J){let ae=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});J.dispatchEvent(ae)}}}else e.selectItem.includes(D.keyCode)?a(D):e.expandFocusedItem.includes(D.keyCode)?r&&(s.value&&!f.state.expanded?c(D):f.state.expanded&&(n.value[0].treeNodeSpec.focusable=!0)):e.collapseFocusedItem.includes(D.keyCode)?s.value&&f.state.expanded?c(D):l(W.RequestParentFocus):e.focusFirstItem.includes(D.keyCode)?l(W.RequestFirstFocus):e.focusLastItem.includes(D.keyCode)?l(W.RequestLastFocus):e.focusPreviousItem.includes(D.keyCode)?l(W.RequestPreviousFocus,t.value):e.focusNextItem.includes(D.keyCode)?l(W.RequestNextFocus,t.value,!1):e.insertItem.includes(D.keyCode)?d(D):e.deleteItem.includes(D.keyCode)?o(D):R=!1;R&&(D.stopPropagation(),D.preventDefault())}}function I(D){let R=n.value.indexOf(D);if(R===0)f.focusable=!0;else{let V=n.value[R-1],J=V[V.treeNodeSpec.childrenProperty];for(;J.length>0&&V.treeNodeSpec.state.expanded;)V=J[J.length-1];V.treeNodeSpec.focusable=!0}}function M(D,R){let V=n.value.indexOf(D),J=D.treeNodeSpec.childrenProperty;!R&&D[J].length>0&&D.treeNodeSpec.state.expanded?D[J][0].treeNodeSpec.focusable=!0:V-1&&t.value.splice(x,1)}function o(p,x){p.siblingNodeSet=p.siblingNodeSet||t.value,r(W.Drop,p,x)}function a(p){p.stopPropagation();let x=JSON.parse(JSON.stringify(e.value));x.treeNodeSpec.focusable=!1,x=JSON.stringify(x),s._.dragging=!0,p.dataTransfer.effectAllowed=am.CopyMove,p.dataTransfer.setData(vr.TreeViewNode,`{"treeId":"${n.value}","data":${x}}`),p.dataTransfer.setData(vr.Json,x),p.dataTransfer.setData(vr.PlainText,x)}function c(p){w(p)&&(g(p,!0),p.preventDefault())}function d(p){w(p)&&(g(p,!0),p.preventDefault())}function l(p){w(p)&&g(p,!1)}function f(p){const x=JSON.parse(p.dataTransfer.getData(vr.TreeViewNode)),I=p.target.classList.contains("grtvn-self-prev-target")?Vn.Before:p.target.classList.contains("grtvn-self-next-target")?Vn.After:Vn.Child,M={isSameTree:x.treeId===n.value,droppedModel:x.data,targetModel:e.value,siblingNodeSet:I===Vn.Child?t.value:null,dropEffect:p.dataTransfer.dropEffect,targetZone:I};r(W.Drop,M,p),g(p,!1),p.preventDefault()}function u(p){p.dataTransfer.dropEffect===vc.Move?s._.dragMoved?delete s._.dragMoved:r(W.DragMove,e.value,p):(g(p,!1),s._.dragging=!1)}function w(p){return s.allowDrop&&p.dataTransfer.types.includes(vr.TreeViewNode)&&!hm(p.target,".grtvn-dragging")}function g(p,x){const I=p.target.classList&&p.target.classList.contains("grtvn-self-prev-target"),M=p.target.classList&&p.target.classList.contains("grtvn-self-next-target");s._.isDropTarget=x,I?(s._.isPrevDropTarget=x,s._.isChildDropTarget=!1):M?(s._.isNextDropTarget=x,s._.isChildDropTarget=!1):s._.isChildDropTarget=x}return{dragMoveChild:i,drop:o,onDragstart:a,onDragenter:c,onDragover:d,onDragleave:l,onDrop:f,onDragend:u}}function mm(){function e(t){S(t).treeNodeSpec.focusable=!0}return{focusNode:e}}const gm=["id","tabindex","aria-expanded","aria-selected"],bm=["draggable","dragging"],ym=["id","title"],wm=["for","title"],vm=["id","disabled"],Cm=["for","title"],_m=["id","name","value","disabled"],Tm=["title"],Sm=["id","title"],xm=["id","title"],Pm=["aria-hidden"],km={__name:"TreeViewNode",props:{ariaKeyMap:{type:Object,required:!0},depth:{type:Number,required:!0},initialModel:{type:Object,required:!0},initialRadioGroupValues:{type:Object,required:!0},isMounted:{type:Boolean,required:!0},modelDefaults:{type:Object,required:!0},selectionMode:{type:String,required:!1,default:Je.None,validator:function(e){return Object.values(Je).includes(e)}},treeId:{type:String,required:!0}},emits:[W.Add,W.Click,W.CheckboxChange,W.ChildCheckboxChange,W.ChildrenLoad,W.Delete,W.DoubleClick,W.DragMove,W.Drop,W.ExpandedChange,W.FocusableChange,W.RadioChange,W.RequestFirstFocus,W.RequestLastFocus,W.RequestNextFocus,W.RequestParentFocus,W.RequestPreviousFocus,W.SelectedChange],setup(e,{emit:t}){const n=e,r="input, .grtvn-self-expander, .grtvn-self-expander *, .grtvn-self-action, .grtvn-self-action *",s=We(n.initialModel),i=We(n.initialRadioGroupValues),o=We(null),a=Pe(()=>`${se.value}-add-child`),c=Pe(()=>typeof F.value.loadChildrenAsync!="function"||F.value._.state.areChildrenLoaded),d=Pe(()=>f.value?F.value.state.expanded:null),l=Pe(()=>n.selectionMode===Je.None||!F.value.selectable?null:n.selectionMode!==Je.Multiple?F.value.state.selected?!0:null:F.value.state.selected),f=Pe(()=>Y.value&&F.value.expandable),u=Pe(()=>s.value[w.value]),w=Pe(()=>F.value.childrenProperty||"children"),g=Pe(()=>(F.value.customizations||{}).classes||{}),p=Pe(()=>`${se.value}-delete`),x=Pe(()=>`${se.value}-exp`),I=Pe(()=>u.value&&u.value.length>0),M=Pe(()=>s.value[D.value]),D=Pe(()=>F.value.idProperty||"id"),R=Pe(()=>`${se.value}-input`),V=Pe(()=>n.selectionMode!==Je.None&&F.value.selectable&&F.value.state.selected),J=Pe(()=>s.value[ae.value]),ae=Pe(()=>F.value.labelProperty||"label"),Y=Pe(()=>I.value||!c.value),se=Pe(()=>`${n.treeId}-${M.value}`),F=Pe(()=>s.value.treeNodeSpec),ve=Pe(()=>n.treeId),{normalizeNodeData:K}=um(s,n.modelDefaults,u,w,J,i);K();const{ariaTabIndex:ge,handleChildDeletion:Ie,onClick:rt,onKeyDown:Se,handlePreviousFocus:le,handleNextFocus:L}=dm(n.ariaKeyMap,s,u,Y,f,o,A,Vt,qt,P,t),{dragMoveChild:X,drop:fe,onDragstart:ne,onDragenter:oe,onDragover:Xe,onDragleave:At,onDrop:Ce,onDragend:ft}=pm(s,u,ve,t),{focusNode:nn}=mm();function ht(k){t(W.CheckboxChange,s.value,k)}function Ct(k){t(W.RadioChange,s.value,k)}async function qt(k){let _=F.value;if(_.state.expanded=!_.state.expanded,t(W.ExpandedChange,s.value,k),_.state.expanded&&!_._.state.areChildrenLoaded&&!_._.state.areChildrenLoading){_._.state.areChildrenLoading=!0;var U=await _.loadChildrenAsync(s.value);U&&(_._.state.areChildrenLoaded=!0,u.value.splice(0,u.value.length,...U),t(W.ChildrenLoad,s.value,k)),_._.state.areChildrenLoading=!1}}function Vt(k){F.value.selectable&&[Je.Single,Je.Multiple].includes(n.selectionMode)&&(F.value.state.selected=!F.value.state.selected)}function m(k){k.target.matches(r)||(t(W.Click,s.value,k),Vt()),rt()}function b(k){k.target.matches(r)||t(W.DoubleClick,s.value,k)}async function P(k){if(F.value.addChildCallback){var _=await F.value.addChildCallback(s.value);_&&(u.value.push(_),t(W.Add,_,s.value,k))}}function A(k){F.value.deletable&&t(W.Delete,s.value,k)}function $(k,_){let U=u.value.indexOf(k);U>-1&&(Ie(k),u.value.splice(U,1)),t(W.Delete,k,_)}function j(k,_){t(W.CheckboxChange,k,_),u.value.includes(k)&&t(W.ChildCheckboxChange,s.value,k,_)}return(!M.value||typeof M.value!="number"&&typeof M.value!="string")&&console.error(`initialModel id is required and must be a number or string. Expected prop ${D.value} to exist on the model.`),(!J.value||typeof J.value!="string")&&console.error(`initialModel label is required and must be a string. Expected prop ${ae.value} to exist on the model.`),Zt(()=>s.value.treeNodeSpec.state.selected,function(){t(W.SelectedChange,s.value)}),Zt(()=>F.value.focusable,function(k){k===!0&&(n.isMounted&&o.value.focus(),t(W.FocusableChange,s.value)),F.value.selectable&&n.selectionMode===Je.SelectionFollowsFocus&&(F.value.state.selected=k)}),(k,_)=>{const U=te("TreeViewNode",!0);return C(),T("li",{id:S(se),ref_key:"nodeElement",ref:o,class:Z(["grtvn",[S(g).treeViewNode,S(F)._.dragging?"grtvn-dragging":""]]),role:"treeitem",tabindex:S(ge),"aria-expanded":S(d),"aria-selected":S(l),onKeydown:_[20]||(_[20]=(...O)=>S(Se)&&S(Se)(...O))},[y("div",{class:Z(["grtvn-self",[S(g).treeViewNodeSelf,S(V)?"grtvn-self-selected":"",S(V)?S(g).treeViewNodeSelfSelected:"",S(F)._.isDropTarget?"grtvn-self-drop-target":"",S(F)._.isChildDropTarget?"grtvn-self-child-drop-target":""]]),draggable:S(F).draggable,dragging:S(F)._.dragging,onClick:m,onDblclick:b,onDragend:_[2]||(_[2]=(...O)=>S(ft)&&S(ft)(...O)),onDragenter:_[3]||(_[3]=(...O)=>S(oe)&&S(oe)(...O)),onDragleave:_[4]||(_[4]=(...O)=>S(At)&&S(At)(...O)),onDragover:_[5]||(_[5]=(...O)=>S(Xe)&&S(Xe)(...O)),onDragstart:_[6]||(_[6]=(...O)=>S(ne)&&S(ne)(...O)),onDrop:_[7]||(_[7]=(...O)=>S(Ce)&&S(Ce)(...O))},[y("div",{class:Z(["grtvn-self-sibling-drop-target grtvn-self-prev-target",[S(F)._.isPrevDropTarget?"grtvn-self-sibling-drop-target-hover":""]])},null,2),S(f)?(C(),T("button",{key:0,id:S(x),type:"button","aria-hidden":"true",tabindex:"-1",title:S(F).expanderTitle,class:Z(["grtvn-self-expander",[S(g).treeViewNodeSelfExpander,S(F).state.expanded?"grtvn-self-expanded":"",S(F).state.expanded?S(g).treeViewNodeSelfExpanded:""]]),onClick:qt},[y("i",{class:Z(["grtvn-self-expanded-indicator",S(g).treeViewNodeSelfExpandedIndicator])},null,2)],10,ym)):(C(),T("span",{key:1,class:Z(["grtvn-self-spacer",S(g).treeViewNodeSelfSpacer])},null,2)),S(F).input&&S(F).input.type==="checkbox"?pe(k.$slots,"checkbox",{key:2,model:s.value,customClasses:S(g),inputId:S(R),checkboxChangeHandler:ht},()=>[y("label",{for:S(R),title:S(F).title,class:Z(["grtvn-self-label",S(g).treeViewNodeSelfLabel])},[Be(y("input",{id:S(R),tabindex:"-1",class:Z(["grtvn-self-input grtvn-self-checkbox",[S(g).treeViewNodeSelfInput,S(g).treeViewNodeSelfCheckbox]]),type:"checkbox",disabled:S(F).state.input.disabled,"onUpdate:modelValue":_[0]||(_[0]=O=>S(F).state.input.value=O),onChange:ht},null,42,vm),[[Mp,S(F).state.input.value]]),Oe(" "+ie(S(J)),1)],10,wm)]):S(F).input&&S(F).input.type==="radio"?pe(k.$slots,"radio",{key:3,model:s.value,customClasses:S(g),inputId:S(R),radioGroupValues:i.value,radioChangeHandler:Ct},()=>[y("label",{for:S(R),title:S(F).title,class:Z(["grtvn-self-label",S(g).treeViewNodeSelfLabel])},[Be(y("input",{id:S(R),tabindex:"-1",class:Z(["grtvn-self-input grtvn-self-radio",[S(g).treeViewNodeSelfInput,S(g).treeViewNodeSelfRadio]]),type:"radio",name:S(F).input.name,value:S(F).input.value,disabled:S(F).state.input.disabled,"onUpdate:modelValue":_[1]||(_[1]=O=>i.value[S(F).input.name]=O),onChange:Ct},null,42,_m),[[Fp,i.value[S(F).input.name]]]),Oe(" "+ie(S(J)),1)],10,Cm)]):pe(k.$slots,"text",{key:4,model:s.value,customClasses:S(g)},()=>[y("span",{title:S(F).title,class:Z(["grtvn-self-text",S(g).treeViewNodeSelfText])},ie(S(J)),11,Tm)]),S(F).addChildCallback?(C(),T("button",{key:5,id:S(a),type:"button","aria-hidden":"true",tabindex:"-1",title:S(F).addChildTitle,class:Z(["grtvn-self-action",[S(g).treeViewNodeSelfAction,S(g).treeViewNodeSelfAddChild]]),onClick:P},[y("i",{class:Z(["grtvn-self-add-child-icon",S(g).treeViewNodeSelfAddChildIcon])},null,2)],10,Sm)):H("",!0),S(F).deletable?(C(),T("button",{key:6,id:S(p),type:"button","aria-hidden":"true",tabindex:"-1",title:S(F).deleteTitle,class:Z(["grtvn-self-action",[S(g).treeViewNodeSelfAction,S(g).treeViewNodeSelfDelete]]),onClick:A},[y("i",{class:Z(["grtvn-self-delete-icon",S(g).treeViewNodeSelfDeleteIcon])},null,2)],10,xm)):H("",!0),y("div",{class:Z(["grtvn-self-sibling-drop-target grtvn-self-next-target",[S(F)._.isNextDropTarget?"grtvn-self-sibling-drop-target-hover":""]])},null,2)],42,bm),y("div",{class:Z(["grtvn-children-wrapper",S(g).treeViewNodeChildrenWrapper])},[S(F).state.expanded&&!S(c)?pe(k.$slots,"loading",{key:0,model:s.value,customClasses:S(g)},()=>[y("span",{class:Z(["grtvn-loading",S(g).treeViewNodeLoading])}," ... ",2)]):H("",!0),S(I)?Be((C(),T("ul",{key:1,class:Z(["grtvn-children",S(g).treeViewNodeChildren]),role:"group","aria-hidden":!S(F).state.expanded},[(C(!0),T(ue,null,ze(S(u),O=>(C(),Qe(U,{key:O[S(F)&&S(F).idProperty?S(F).idProperty:"id"],depth:e.depth+1,"initial-model":O,"model-defaults":e.modelDefaults,"parent-id":S(M),"selection-mode":e.selectionMode,"tree-id":S(ve),"initial-radio-group-values":i.value,"aria-key-map":e.ariaKeyMap,"is-mounted":e.isMounted,onTreeNodeClick:_[8]||(_[8]=(q,z)=>k.$emit(S(W).Click,q,z)),onTreeNodeDblclick:_[9]||(_[9]=(q,z)=>k.$emit(S(W).DoubleClick,q,z)),onTreeNodeCheckboxChange:j,onTreeNodeChildCheckboxChange:_[10]||(_[10]=(q,z,Q)=>k.$emit(S(W).ChildCheckboxChange,q,z,Q)),onTreeNodeRadioChange:_[11]||(_[11]=(q,z)=>k.$emit(S(W).RadioChange,q,z)),onTreeNodeExpandedChange:_[12]||(_[12]=(q,z)=>k.$emit(S(W).ExpandedChange,q,z)),onTreeNodeChildrenLoad:_[13]||(_[13]=(q,z)=>k.$emit(S(W).ChildrenLoad,q,z)),onTreeNodeSelectedChange:_[14]||(_[14]=(q,z)=>k.$emit(S(W).SelectedChange,q,z)),onTreeNodeAdd:_[15]||(_[15]=(q,z,Q)=>k.$emit(S(W).Add,q,z,Q)),onTreeNodeDelete:$,onTreeNodeAriaFocusableChange:_[16]||(_[16]=q=>k.$emit(S(W).FocusableChange,q)),onTreeNodeAriaRequestParentFocus:_[17]||(_[17]=()=>S(nn)(s.value)),onTreeNodeAriaRequestFirstFocus:_[18]||(_[18]=()=>k.$emit(S(W).RequestFirstFocus)),onTreeNodeAriaRequestLastFocus:_[19]||(_[19]=()=>k.$emit(S(W).RequestLastFocus)),onTreeNodeAriaRequestPreviousFocus:S(le),onTreeNodeAriaRequestNextFocus:S(L),onTreeNodeDragMove:S(X),onTreeNodeDrop:S(fe)},{checkbox:me(({model:q,customClasses:z,inputId:Q,checkboxChangeHandler:re})=>[pe(k.$slots,"checkbox",{model:q,customClasses:z,inputId:Q,checkboxChangeHandler:re})]),radio:me(({model:q,customClasses:z,inputId:Q,radioGroupValues:re,radioChangeHandler:he})=>[pe(k.$slots,"radio",{model:q,customClasses:z,inputId:Q,radioGroupValues:re,radioChangeHandler:he})]),text:me(({model:q,customClasses:z})=>[pe(k.$slots,"text",{model:q,customClasses:z})]),loading:me(({model:q,customClasses:z})=>[pe(k.$slots,"loading",{model:q,customClasses:z})]),_:2},1032,["depth","initial-model","model-defaults","parent-id","selection-mode","tree-id","initial-radio-group-values","aria-key-map","is-mounted","onTreeNodeAriaRequestPreviousFocus","onTreeNodeAriaRequestNextFocus","onTreeNodeDragMove","onTreeNodeDrop"]))),128))],10,Pm)),[[Ot,S(F).state.expanded]]):H("",!0)],2)],42,gm)}}},Om=y("span",{class:"grtv-loading"}," ... ",-1),Em=["aria-multiselectable"],Dm={__name:"TreeView",props:{customAriaKeyMap:{type:Object,required:!1,default:function(){return{}},validator:function(e){for(const t in e)if(!Array.isArray(e[t])||e[t].some(n=>!Number.isInteger(n)))return console.error(`customAriaKeyMap properties must be Arrays of numbers (corresponding to keyCodes); property '${t}' fails check.`),!1;return!0}},initialModel:{type:Array,required:!1,default:function(){return[]}},loadNodesAsync:{type:Function,required:!1,default:null},modelDefaults:{type:Object,required:!1,default:function(){return{}}},selectionMode:{type:String,required:!1,default:Je.None,validator:function(e){return Object.values(Je).includes(e)}},skinClass:{type:String,required:!1,default:"grtv-default-skin",validator:function(e){return e===null||!e.match(/\s/)}}},emits:[W.Add,W.CheckboxChange,W.ChildrenLoad,W.ChildCheckboxChange,W.Click,W.Delete,W.DoubleClick,W.ExpandedChange,W.RadioChange,W.RootNodesLoad,W.SelectedChange],setup(e,{expose:t,emit:n}){const r=e,s=We(!1),i=We(!1),o=We(r.initialModel),a=We({}),c=We(""),d=We(null),{generateUniqueId:l}=wc(),{ariaKeyMap:f,enforceSelectionMode:u,handleFocusableChange:w,focusFirstNode:g,focusLastNode:p,handleNodeDeletion:x,handlePreviousFocus:I,handleNextFocus:M}=om(o,r.customAriaKeyMap,r.selectionMode,K,ge),{dragMoveNode:D,drop:R}=cm(o,c,ve,Se);Zt(()=>r.selectionMode,u);const V=Pe(()=>typeof r.loadNodesAsync!="function"||s.value),J=Pe(()=>r.selectionMode===Je.None?null:r.selectionMode===Je.Multiple);lr(async()=>{await rt(),d.value.id&&(c.value=d.value.id),Is(()=>{ge(),i.value=!0})});function ae(){return se(L=>L.treeNodeSpec.input&&L.treeNodeSpec.input.type===Er.Checkbox&&L.treeNodeSpec.state.input.value)}function Y(){return se(L=>L.treeNodeSpec.input&&L.treeNodeSpec.input.type===Er.RadioButton&&a.value[L.treeNodeSpec.input.name]===L.treeNodeSpec.input.value)}function se(L,X=0){let fe=[];return typeof L=="function"&&K(ne=>{if(L(ne))return fe.push(ne),X<1||fe.lengthL.treeNodeSpec.selectable&&L.treeNodeSpec.state.selected)}function ve(L){let X=null;return typeof L=="string"&&(X=o.value.find(fe=>fe[fe.treeNodeSpec.idProperty]===L),X||K(fe=>{if(X=fe[fe.treeNodeSpec.childrenProperty].find(ne=>ne[ne.treeNodeSpec.idProperty]===L),X)return!1})),X}function K(L){if(o.value.length===0)return;let X=o.value.slice(),fe=!0;for(;X.length>0&&fe!==!1;){let ne=X.shift(),oe=ne.treeNodeSpec.childrenProperty;Array.isArray(ne[oe])&&(X=ne[oe].concat(X)),fe=L(ne)}}function ge(){if(r.selectionMode===Je.Single){let L=!1;K(X=>{X.treeNodeSpec.state&&X.treeNodeSpec.state.selected===!0&&(L?X.treeNodeSpec.state.selected=!1:L=!0)})}}function Ie(L,X){r.selectionMode===Je.Single&&L.treeNodeSpec.state.selected&&K(fe=>fe.treeNodeSpec.state.selected&&fe.id!==L.id?(fe.treeNodeSpec.state.selected=!1,!1):!0),n(W.SelectedChange,L,X)}async function rt(){if(!V.value){var L=await r.loadNodesAsync();L&&(s.value=!0,o.value.splice(0,o.value.length,...L),n(W.RootNodesLoad,o.value))}}function Se(L){let X=null;if(typeof L=="string"){let fe=o.value.findIndex(ne=>ne[ne.treeNodeSpec.idProperty]===L);fe>-1?X=o.value.splice(fe,1)[0]:K(ne=>{let oe=ne[ne.treeNodeSpec.childrenProperty];if(fe=oe.findIndex(Xe=>Xe[Xe.treeNodeSpec.idProperty]===L),fe>-1)return X=oe.splice(fe,1)[0],!1})}return X}function le(L,X){let fe=o.value.indexOf(L);fe>-1&&(x(L),o.value.splice(fe,1)),n(W.Delete,L,X)}return c.value=l(),t({getCheckedCheckboxes:ae,getCheckedRadioButtons:Y,getMatching:se,getSelected:F}),(L,X)=>(C(),T("div",{ref_key:"treeElement",ref:d,class:Z(["grtv-wrapper",e.skinClass])},[S(V)?H("",!0):pe(L.$slots,"loading-root",{key:0},()=>[Om]),S(V)?(C(),T("ul",{key:1,class:"grtv",role:"tree","aria-multiselectable":S(J)},[(C(!0),T(ue,null,ze(o.value,fe=>(C(),Qe(km,{key:fe[fe.treeNodeSpec&&fe.treeNodeSpec.idProperty?fe.treeNodeSpec.idProperty:"id"],"aria-key-map":S(f),depth:0,"model-defaults":e.modelDefaults,"initial-model":fe,"selection-mode":e.selectionMode,"tree-id":c.value,"is-mounted":i.value,"initial-radio-group-values":a.value,onTreeNodeClick:X[0]||(X[0]=(ne,oe)=>L.$emit(S(W).Click,ne,oe)),onTreeNodeDblclick:X[1]||(X[1]=(ne,oe)=>L.$emit(S(W).DoubleClick,ne,oe)),onTreeNodeCheckboxChange:X[2]||(X[2]=(ne,oe)=>L.$emit(S(W).CheckboxChange,ne,oe)),onTreeNodeChildCheckboxChange:X[3]||(X[3]=(ne,oe,Xe)=>L.$emit(S(W).ChildCheckboxChange,ne,oe,Xe)),onTreeNodeRadioChange:X[4]||(X[4]=(ne,oe)=>L.$emit(S(W).RadioChange,ne,oe)),onTreeNodeExpandedChange:X[5]||(X[5]=(ne,oe)=>L.$emit(S(W).ExpandedChange,ne,oe)),onTreeNodeChildrenLoad:X[6]||(X[6]=(ne,oe)=>L.$emit(S(W).ChildrenLoad,ne,oe)),onTreeNodeSelectedChange:Ie,onTreeNodeAdd:X[7]||(X[7]=(ne,oe,Xe)=>L.$emit(S(W).Add,ne,oe,Xe)),onTreeNodeDelete:le,onTreeNodeAriaFocusableChange:S(w),onTreeNodeAriaRequestFirstFocus:S(g),onTreeNodeAriaRequestLastFocus:S(p),onTreeNodeAriaRequestPreviousFocus:S(I),onTreeNodeAriaRequestNextFocus:S(M),onTreeNodeDragMove:S(D),onTreeNodeDrop:S(R)},{checkbox:me(({model:ne,customClasses:oe,inputId:Xe,checkboxChangeHandler:At})=>[pe(L.$slots,"checkbox",{model:ne,customClasses:oe,inputId:Xe,checkboxChangeHandler:At})]),radio:me(({model:ne,customClasses:oe,inputId:Xe,radioGroupValues:At,radioChangeHandler:Ce})=>[pe(L.$slots,"radio",{model:ne,customClasses:oe,inputId:Xe,radioGroupValues:At,radioChangeHandler:Ce})]),text:me(({model:ne,customClasses:oe})=>[pe(L.$slots,"text",{model:ne,customClasses:oe})]),loading:me(({model:ne,customClasses:oe})=>[pe(L.$slots,"loading",{model:ne,customClasses:oe})]),_:2},1032,["aria-key-map","model-defaults","initial-model","selection-mode","tree-id","is-mounted","initial-radio-group-values","onTreeNodeAriaFocusableChange","onTreeNodeAriaRequestFirstFocus","onTreeNodeAriaRequestLastFocus","onTreeNodeAriaRequestPreviousFocus","onTreeNodeAriaRequestNextFocus","onTreeNodeDragMove","onTreeNodeDrop"]))),128))],8,Em)):H("",!0)],2))}},Rm=({modalRef:e,latest:t,show:n})=>{let r;function s(o){const a=o.target.closest(`.${zi}`);if(t.value&&(!a||a!==e.value)){if(a&&!a.classList.contains(`${zi}-show`))return;r=o.target}}function i(o){o?e.value&&e.value.focus():r&&r.focus()}lr(()=>{document.addEventListener("click",s),Zt(()=>n.value,o=>{Is(()=>i(o))},{immediate:n.value})}),zs(()=>{document.removeEventListener("click",s)})},Nm=({close:e,closeClickDimmed:t,closeKeyCode:n,latest:r})=>{let s=null;function i(c){s=c.target}function o(c){t&&s===c.target&&e.value(),s=null}function a(c){c.keyCode===n&&r.value&&e.value()}return lr(()=>{n&&document.addEventListener("keyup",a)}),zs(()=>{n&&document.removeEventListener("keyup",a)}),{onMouseDownDimmed:i,onMouseUpDimmed:o}},Am=({modalRef:e,show:t})=>{const{visibleModals:n,addVisibleModals:r,removeVisibleModals:s}=Qn(Po),i=Pe(()=>{const o=[...n.value.values()];return!o.length||!e.value?!1:o[o.length-1]===e.value});return Zt(()=>t.value,()=>{Is(()=>{e.value&&(t.value?r(e.value):s(e.value))})},{immediate:!0}),{latest:i}};var $m=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};const Mm=Ne({inheritAttrs:!1,props:{close:{type:Function,default:()=>{}},disabled:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!0},options:{type:Object,default:()=>({})}},emits:["before-enter","enter","after-enter","enter-cancelled","before-leave","leave","after-leave","leave-cancelled"],setup(e,t){const{teleportTarget:n}=Qn(Po),{close:r,disabled:s,options:i,modelValue:o}=Gf(e),a=We(o.value===void 0?!0:o.value),c=We(null),d=We(!s.value),l={transition:300,closeClickDimmed:!0,closeKeyCode:27,styleModalContent:{},...i.value};Zt([()=>o.value,()=>s.value],()=>{const x=o.value&&!s.value;d.value=x,o.value&&(a.value=o.value)},{immediate:!0});const{latest:f}=Am({modalRef:c,show:d});Rm({latest:f,modalRef:c,show:d});const{onMouseDownDimmed:u,onMouseUpDimmed:w}=Nm({close:r,closeClickDimmed:l.closeClickDimmed,closeKeyCode:l.closeKeyCode,latest:f});return{CLASS_NAME:zi,emitClose:()=>{r.value&&r.value()},inserted:a,latest:f,mergeOptions:l,modalRef:c,onMouseDownDimmed:u,onMouseUpDimmed:w,onTransitionEmit:{beforeEnter:()=>t.emit("before-enter"),enter:()=>t.emit("enter"),afterEnter:()=>t.emit("after-enter"),enterCancelled:()=>t.emit("enter-cancelled"),beforeLeave:()=>t.emit("before-leave"),leave:()=>t.emit("leave"),afterLeave:()=>{t.emit("after-leave"),o.value===!1&&(a.value=!1)},leaveCancelled:()=>t.emit("leave-cancelled")},show:d,teleportTarget:n,transition:l.transition?l.transition/1e3+"s":void 0}}});function Fm(e,t,n,r,s,i){return e.inserted?(C(),Qe(Qh,{key:0,to:e.teleportTarget,disabled:e.disabled},[B(To,Ii({appear:"",name:e.CLASS_NAME},Eh(e.onTransitionEmit)),{default:me(()=>{var o;return[Be(y("div",Ii({ref:"modalRef",role:"dialog",tabindex:"-1","aria-modal":"true","aria-label":"Modal window",class:[e.CLASS_NAME,{[`${e.CLASS_NAME}-show`]:e.show},{[`${e.CLASS_NAME}-latest`]:e.latest}],style:{transitionDuration:e.transition}},e.$attrs),[y("div",{class:Z(`${e.CLASS_NAME}-content`),style:Un({transitionDuration:e.transition,...(o=e.mergeOptions)==null?void 0:o.styleModalContent}),onMousedown:t[0]||(t[0]=ke((...a)=>e.onMouseDownDimmed&&e.onMouseDownDimmed(...a),["self"])),onMouseup:t[1]||(t[1]=(...a)=>e.onMouseUpDimmed&&e.onMouseUpDimmed(...a))},[pe(e.$slots,"default",{emitClose:e.emitClose}),pe(e.$slots,"close")],38)],16),[[Ot,e.show]])]}),_:3},16,["name"])],8,["to","disabled"])):H("",!0)}var Im=$m(Mm,[["render",Fm]]);const Po="VueUniversalModal",zi="vue-universal-modal",Lm=(e,t={})=>{const{teleportTarget:n="",teleportComponent:r="",teleportComponentId:s="",modalComponent:i="Modal"}=t;if(!n||r||s)return;const o=We(new Set),a=d=>{o.value.add(d)},c=d=>{o.value.delete(d)};e.provide(Po,{teleportTarget:n,visibleModals:Ms(o),addVisibleModals:a,removeVisibleModals:c}),e.component(i,Im)};var Um={install:Lm};const Hi=1e3*60*10,Ba=["#ffab1d","#fd8c25","#f36e4a","#fc6148","#d75ab6","#b25ade","#6575ff","#7b77e9","#4ea8ec","#00d0f5","#4eb94e","#51af23","#8b9f1c","#d0b02f","#d0853a","#a4a4a4","#ffc51f","#fe982c","#fd7854","#ff705f","#e467c3","#bd65e9","#7183ff","#8985f7","#55b6ff","#10dcff","#51cd51","#5cba2e","#9eb22f","#debe3d","#e19344","#b8b8b8","#ffd03b","#ffae38","#ff8a6a","#ff7e7e","#ef72ce","#c56df1","#8091ff","#918dff","#69caff","#3ee1ff","#72da72","#71cf43","#abbf3c","#e6c645","#eda04e","#c5c5c5","#ffd84c","#ffb946","#ff987c","#ff8f8f","#fb7eda","#ce76fa","#90a0ff","#9c98ff","#74cbff","#64e7ff","#7ce47c","#85e357","#b8cc49","#edcd4c","#f9ad58","#d0d0d0","#ffe651","#ffbf51","#ffa48b","#ff9d9e","#ff8de1","#d583ff","#97a9ff","#a7a4ff","#82d3ff","#76eaff","#85ed85","#8deb5f","#c2d653","#f5d862","#fcb75c","#d7d7d7","#fff456","#ffc66d","#ffb39e","#ffabad","#ff9de5","#da90ff","#9fb2ff","#b2afff","#8ddaff","#8bedff","#99f299","#97f569","#cde153","#fbe276","#ffc160","#e1e1e1","#fff970","#ffd587","#ffc2b2","#ffb9bd","#ffa5e7","#de9cff","#afbeff","#bbb8ff","#9fd4ff","#9aefff","#b3f7b3","#a0fe72","#dbef6c","#fcee98","#ffca69","#eaeaea","#763700","#9f241e","#982c0e","#a81300","#80035f","#650d90","#082fca","#3531a3","#1d4892","#006f84","#036b03","#236600","#445200","#544509","#702408","#343434","#9a5000","#b33a20","#b02f0f","#c8210a","#950f74","#7b23a7","#263dd4","#4642b4","#1d5cac","#00849c","#0e760e","#287800","#495600","#6c5809","#8d3a13","#4e4e4e","#c36806","#c85120","#bf3624","#df2512","#aa2288","#933bbf","#444cde","#5753c5","#1d71c6","#0099bf","#188018","#2e8c00","#607100","#907609","#ab511f","#686868","#e47b07","#e36920","#d34e2a","#ec3b24","#ba3d99","#9d45c9","#4f5aec","#615dcf","#3286cf","#00abca","#279227","#3a980c","#6c7f00","#ab8b0a","#b56427","#757575","#ff911a","#fc8120","#e7623e","#fa5236","#ca4da9","#a74fd3","#5a68ff","#6d69db","#489bd9","#00bcde","#36a436","#47a519","#798d0a","#c1a120","#bf7730","#8e8e8e"];var Ts=null,nr=null,_c=null;function bt(e,t){nr&&nr.showError(e,t)}function jm(e,t){nr&&(t=t!==void 0?t:{},t.type=t.type||"warning",nr.showError(e,t))}function Jt(e){return e[0]!="/"&&(e="/"+e),e.split(/[/]+/).join("/")}function zm(e){return e.substring(e.lastIndexOf("/")+1)}function dt(e){return document.location.pathname+e}function Tc(e){if(e){e[0]=="/"&&(e=e.substring(1));let t=e.substring(0,e.indexOf("/")),n=e.substring(e.indexOf("/")+1);return t||(t=n,n=""),[t,n]}else return["",""]}async function Bi(){try{Ts=(await mt.get(dt("ping"))).data.value,mt.defaults.headers.common["X-CSRFToken"]=Ts,setTimeout(Bi,Hi)}catch{setTimeout(Bi,Hi)}}function Hm(e){Ts=e,mt.defaults.headers.common["X-CSRFToken"]=Ts,setTimeout(Bi,Hi)}async function jt(e,t){t=t!==void 0?t:{};const n={args:[].concat.apply([],e.filter(s=>s!=null))},r=t.type=="terminal"?"$ git "+n.args.join(" ")+` +`):" "+Go(i[0]):"as no adapter specified";throw new be("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Ci};function ii(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new zr(null,e)}function Qo(e){return ii(e),e.headers=Xt.from(e.headers),e.data=si.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Cl.getAdapter(e.adapter||Qi.adapter)(e).then(function(r){return ii(e),r.data=si.call(e,e.transformResponse,r),r.headers=Xt.from(r.headers),r},function(r){return wl(r)||(ii(e),r&&r.response&&(r.response.data=si.call(e,e.transformResponse,r.response),r.response.headers=Xt.from(r.response.headers))),Promise.reject(r)})}const Jo=e=>e instanceof Xt?e.toJSON():e;function Xn(e,t){t=t||{};const n={};function r(d,l,f){return E.isPlainObject(d)&&E.isPlainObject(l)?E.merge.call({caseless:f},d,l):E.isPlainObject(l)?E.merge({},l):E.isArray(l)?l.slice():l}function s(d,l,f){if(E.isUndefined(l)){if(!E.isUndefined(d))return r(void 0,d,f)}else return r(d,l,f)}function i(d,l){if(!E.isUndefined(l))return r(void 0,l)}function o(d,l){if(E.isUndefined(l)){if(!E.isUndefined(d))return r(void 0,d)}else return r(void 0,l)}function a(d,l,f){if(f in t)return r(d,l);if(f in e)return r(void 0,d)}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(d,l)=>s(Jo(d),Jo(l),!0)};return E.forEach(Object.keys(Object.assign({},e,t)),function(l){const f=c[l]||s,u=f(e[l],t[l],l);E.isUndefined(u)&&f!==a||(n[l]=u)}),n}const _l="1.6.0",Ji={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ji[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Xo={};Ji.transitional=function(t,n,r){function s(i,o){return"[Axios v"+_l+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,a)=>{if(t===!1)throw new be(s(o," has been removed"+(n?" in "+n:"")),be.ERR_DEPRECATED);return n&&!Xo[o]&&(Xo[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,a):!0}};function Gd(e,t,n){if(typeof e!="object")throw new be("options must be an object",be.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const a=e[i],c=a===void 0||o(a,i,e);if(c!==!0)throw new be("option "+i+" must be "+c,be.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new be("Unknown option "+i,be.ERR_BAD_OPTION)}}const _i={assertOptions:Gd,validators:Ji},an=_i.validators;class hs{constructor(t){this.defaults=t,this.interceptors={request:new Wo,response:new Wo}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Xn(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&_i.assertOptions(r,{silentJSONParsing:an.transitional(an.boolean),forcedJSONParsing:an.transitional(an.boolean),clarifyTimeoutError:an.transitional(an.boolean)},!1),s!=null&&(E.isFunction(s)?n.paramsSerializer={serialize:s}:_i.assertOptions(s,{encode:an.function,serialize:an.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&E.merge(i.common,i[n.method]);i&&E.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=Xt.concat(o,i);const a=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(c=c&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const d=[];this.interceptors.response.forEach(function(p){d.push(p.fulfilled,p.rejected)});let l,f=0,u;if(!c){const g=[Qo.bind(this),void 0];for(g.unshift.apply(g,a),g.push.apply(g,d),u=g.length,l=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{r.subscribe(a),i=a}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,a){r.reason||(r.reason=new zr(i,o,a),n(r.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 Xi(function(s){t=s}),cancel:t}}}const Qd=Xi;function Jd(e){return function(n){return e.apply(null,n)}}function Xd(e){return E.isObject(e)&&e.isAxiosError===!0}const Ti={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(Ti).forEach(([e,t])=>{Ti[t]=e});const Zd=Ti;function Tl(e){const t=new ls(e),n=sl(ls.prototype.request,t);return E.extend(n,ls.prototype,t,{allOwnKeys:!0}),E.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Tl(Xn(e,s))},n}const Ye=Tl(Qi);Ye.Axios=ls;Ye.CanceledError=zr;Ye.CancelToken=Qd;Ye.isCancel=wl;Ye.VERSION=_l;Ye.toFormData=Es;Ye.AxiosError=be;Ye.Cancel=Ye.CanceledError;Ye.all=function(t){return Promise.all(t)};Ye.spread=Jd;Ye.isAxiosError=Xd;Ye.mergeConfig=Xn;Ye.AxiosHeaders=Xt;Ye.formToJSON=e=>yl(E.isHTMLForm(e)?new FormData(e):e);Ye.getAdapter=Cl.getAdapter;Ye.HttpStatusCode=Zd;Ye.default=Ye;const mt=Ye;function Zi(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s!!n[s.toLowerCase()]:s=>!!n[s]}const Re={},Wn=[],zt=()=>{},ef=()=>!1,tf=/^on[^a-z]/,Rs=e=>tf.test(e),eo=e=>e.startsWith("onUpdate:"),Ge=Object.assign,to=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},nf=Object.prototype.hasOwnProperty,ye=(e,t)=>nf.call(e,t),ee=Array.isArray,Kn=e=>Hr(e)==="[object Map]",ir=e=>Hr(e)==="[object Set]",Zo=e=>Hr(e)==="[object Date]",de=e=>typeof e=="function",qe=e=>typeof e=="string",Nr=e=>typeof e=="symbol",Ee=e=>e!==null&&typeof e=="object",Sl=e=>Ee(e)&&de(e.then)&&de(e.catch),xl=Object.prototype.toString,Hr=e=>xl.call(e),rf=e=>Hr(e).slice(8,-1),Pl=e=>Hr(e)==="[object Object]",no=e=>qe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,cs=Zi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ns=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},sf=/-(\w)/g,Ht=Ns(e=>e.replace(sf,(t,n)=>n?n.toUpperCase():"")),of=/\B([A-Z])/g,Ln=Ns(e=>e.replace(of,"-$1").toLowerCase()),As=Ns(e=>e.charAt(0).toUpperCase()+e.slice(1)),us=Ns(e=>e?`on${As(e)}`:""),Ar=(e,t)=>!Object.is(e,t),ds=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ms=e=>{const t=parseFloat(e);return isNaN(t)?e:t},af=e=>{const t=qe(e)?Number(e):NaN;return isNaN(t)?e:t};let ea;const Si=()=>ea||(ea=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Un(e){if(ee(e)){const t={};for(let n=0;n{if(n){const r=n.split(cf);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Z(e){let t="";if(qe(e))t=e;else if(ee(e))for(let n=0;nFn(n,t))}const ie=e=>qe(e)?e:e==null?"":ee(e)||Ee(e)&&(e.toString===xl||!de(e.toString))?JSON.stringify(e,Ol,2):String(e),Ol=(e,t)=>t&&t.__v_isRef?Ol(e,t.value):Kn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:ir(t)?{[`Set(${t.size})`]:[...t.values()]}:Ee(t)&&!ee(t)&&!Pl(t)?String(t):t;let Dt;class mf{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Dt,!t&&Dt&&(this.index=(Dt.scopes||(Dt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Dt;try{return Dt=this,t()}finally{Dt=n}}}on(){Dt=this}off(){Dt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},El=e=>(e.w&mn)>0,Dl=e=>(e.n&mn)>0,yf=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(l==="length"||l>=c)&&a.push(d)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":ee(e)?no(n)&&a.push(o.get("length")):(a.push(o.get(An)),Kn(e)&&a.push(o.get(Pi)));break;case"delete":ee(e)||(a.push(o.get(An)),Kn(e)&&a.push(o.get(Pi)));break;case"set":Kn(e)&&a.push(o.get(An));break}if(a.length===1)a[0]&&ki(a[0]);else{const c=[];for(const d of a)d&&c.push(...d);ki(so(c))}}function ki(e,t){const n=ee(e)?e:[...e];for(const r of n)r.computed&&na(r);for(const r of n)r.computed||na(r)}function na(e,t){(e!==Rt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function vf(e,t){var n;return(n=gs.get(e))==null?void 0:n.get(t)}const Cf=Zi("__proto__,__v_isRef,__isVue"),Al=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Nr)),_f=oo(),Tf=oo(!1,!0),Sf=oo(!0),ra=xf();function xf(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=we(this);for(let i=0,o=this.length;i{e[t]=function(...n){or();const r=we(this)[t].apply(this,n);return ar(),r}}),e}function Pf(e){const t=we(this);return yt(t,"has",e),t.hasOwnProperty(e)}function oo(e=!1,t=!1){return function(r,s,i){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&i===(e?t?Hf:Ll:t?Il:Fl).get(r))return r;const o=ee(r);if(!e){if(o&&ye(ra,s))return Reflect.get(ra,s,i);if(s==="hasOwnProperty")return Pf}const a=Reflect.get(r,s,i);return(Nr(s)?Al.has(s):Cf(s))||(e||yt(r,"get",s),t)?a:at(a)?o&&no(s)?a:a.value:Ee(a)?e?Ms(a):co(a):a}}const kf=$l(),Of=$l(!0);function $l(e=!1){return function(n,r,s,i){let o=n[r];if(Zn(o)&&at(o)&&!at(s))return!1;if(!e&&(!bs(s)&&!Zn(s)&&(o=we(o),s=we(s)),!ee(n)&&at(o)&&!at(s)))return o.value=s,!0;const a=ee(n)&&no(r)?Number(r)e,$s=e=>Reflect.getPrototypeOf(e);function Gr(e,t,n=!1,r=!1){e=e.__v_raw;const s=we(e),i=we(t);n||(t!==i&&yt(s,"get",t),yt(s,"get",i));const{has:o}=$s(s),a=r?ao:n?ho:$r;if(o.call(s,t))return a(e.get(t));if(o.call(s,i))return a(e.get(i));e!==s&&e.get(t)}function Qr(e,t=!1){const n=this.__v_raw,r=we(n),s=we(e);return t||(e!==s&&yt(r,"has",e),yt(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function Jr(e,t=!1){return e=e.__v_raw,!t&&yt(we(e),"iterate",An),Reflect.get(e,"size",e)}function sa(e){e=we(e);const t=we(this);return $s(t).has.call(t,e)||(t.add(e),en(t,"add",e,e)),this}function ia(e,t){t=we(t);const n=we(this),{has:r,get:s}=$s(n);let i=r.call(n,e);i||(e=we(e),i=r.call(n,e));const o=s.call(n,e);return n.set(e,t),i?Ar(t,o)&&en(n,"set",e,t):en(n,"add",e,t),this}function oa(e){const t=we(this),{has:n,get:r}=$s(t);let s=n.call(t,e);s||(e=we(e),s=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return s&&en(t,"delete",e,void 0),i}function aa(){const e=we(this),t=e.size!==0,n=e.clear();return t&&en(e,"clear",void 0,void 0),n}function Xr(e,t){return function(r,s){const i=this,o=i.__v_raw,a=we(o),c=t?ao:e?ho:$r;return!e&&yt(a,"iterate",An),o.forEach((d,l)=>r.call(s,c(d),c(l),i))}}function Zr(e,t,n){return function(...r){const s=this.__v_raw,i=we(s),o=Kn(i),a=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,d=s[e](...r),l=n?ao:t?ho:$r;return!t&&yt(i,"iterate",c?Pi:An),{next(){const{value:f,done:u}=d.next();return u?{value:f,done:u}:{value:a?[l(f[0]),l(f[1])]:l(f),done:u}},[Symbol.iterator](){return this}}}}function ln(e){return function(...t){return e==="delete"?!1:this}}function $f(){const e={get(i){return Gr(this,i)},get size(){return Jr(this)},has:Qr,add:sa,set:ia,delete:oa,clear:aa,forEach:Xr(!1,!1)},t={get(i){return Gr(this,i,!1,!0)},get size(){return Jr(this)},has:Qr,add:sa,set:ia,delete:oa,clear:aa,forEach:Xr(!1,!0)},n={get(i){return Gr(this,i,!0)},get size(){return Jr(this,!0)},has(i){return Qr.call(this,i,!0)},add:ln("add"),set:ln("set"),delete:ln("delete"),clear:ln("clear"),forEach:Xr(!0,!1)},r={get(i){return Gr(this,i,!0,!0)},get size(){return Jr(this,!0)},has(i){return Qr.call(this,i,!0)},add:ln("add"),set:ln("set"),delete:ln("delete"),clear:ln("clear"),forEach:Xr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Zr(i,!1,!1),n[i]=Zr(i,!0,!1),t[i]=Zr(i,!1,!0),r[i]=Zr(i,!0,!0)}),[e,n,t,r]}const[Mf,Ff,If,Lf]=$f();function lo(e,t){const n=t?e?Lf:If:e?Ff:Mf;return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(ye(n,s)&&s in r?n:r,s,i)}const Uf={get:lo(!1,!1)},jf={get:lo(!1,!0)},zf={get:lo(!0,!1)},Fl=new WeakMap,Il=new WeakMap,Ll=new WeakMap,Hf=new WeakMap;function Bf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function qf(e){return e.__v_skip||!Object.isExtensible(e)?0:Bf(rf(e))}function co(e){return Zn(e)?e:uo(e,!1,Ml,Uf,Fl)}function Vf(e){return uo(e,!1,Af,jf,Il)}function Ms(e){return uo(e,!0,Nf,zf,Ll)}function uo(e,t,n,r,s){if(!Ee(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const o=qf(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function Yn(e){return Zn(e)?Yn(e.__v_raw):!!(e&&e.__v_isReactive)}function Zn(e){return!!(e&&e.__v_isReadonly)}function bs(e){return!!(e&&e.__v_isShallow)}function Ul(e){return Yn(e)||Zn(e)}function we(e){const t=e&&e.__v_raw;return t?we(t):e}function fo(e){return ps(e,"__v_skip",!0),e}const $r=e=>Ee(e)?co(e):e,ho=e=>Ee(e)?Ms(e):e;function jl(e){hn&&Rt&&(e=we(e),Nl(e.dep||(e.dep=so())))}function zl(e,t){e=we(e);const n=e.dep;n&&ki(n)}function at(e){return!!(e&&e.__v_isRef===!0)}function We(e){return Wf(e,!1)}function Wf(e,t){return at(e)?e:new Kf(e,t)}class Kf{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:we(t),this._value=n?t:$r(t)}get value(){return jl(this),this._value}set value(t){const n=this.__v_isShallow||bs(t)||Zn(t);t=n?t:we(t),Ar(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:$r(t),zl(this))}}function S(e){return at(e)?e.value:e}const Yf={get:(e,t,n)=>S(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return at(s)&&!at(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Hl(e){return Yn(e)?e:new Proxy(e,Yf)}function Gf(e){const t=ee(e)?new Array(e.length):{};for(const n in e)t[n]=Jf(e,n);return t}class Qf{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return vf(we(this._object),this._key)}}function Jf(e,t,n){const r=e[t];return at(r)?r:new Qf(e,t,n)}class Xf{constructor(t,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new io(t,()=>{this._dirty||(this._dirty=!0,zl(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=we(this);return jl(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Zf(e,t,n=!1){let r,s;const i=de(e);return i?(r=e,s=zt):(r=e.get,s=e.set),new Xf(r,s,i||!s,n)}function pn(e,t,n,r){let s;try{s=r?e(...r):e()}catch(i){Fs(i,t,n)}return s}function Pt(e,t,n,r){if(de(e)){const i=pn(e,t,n,r);return i&&Sl(i)&&i.catch(o=>{Fs(o,t,n)}),i}const s=[];for(let i=0;i>>1;Fr(ut[r])Lt&&ut.splice(t,1)}function rh(e){ee(e)?Gn.push(...e):(!Gt||!Gt.includes(e,e.allowRecurse?En+1:En))&&Gn.push(e),ql()}function la(e,t=Mr?Lt+1:0){for(;tFr(n)-Fr(r)),En=0;Ene.id==null?1/0:e.id,sh=(e,t)=>{const n=Fr(e)-Fr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Wl(e){Oi=!1,Mr=!0,ut.sort(sh);try{for(Lt=0;Ltqe(w)?w.trim():w)),f&&(s=n.map(ms))}let a,c=r[a=us(t)]||r[a=us(Ht(t))];!c&&i&&(c=r[a=us(Ln(t))]),c&&Pt(c,e,6,s);const d=r[a+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Pt(d,e,6,s)}}function Kl(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!de(e)){const c=d=>{const l=Kl(d,t,!0);l&&(a=!0,Ge(o,l))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!a?(Ee(e)&&r.set(e,null),null):(ee(i)?i.forEach(c=>o[c]=null):Ge(o,i),Ee(e)&&r.set(e,o),o)}function Ls(e,t){return!e||!Rs(t)?!1:(t=t.slice(2).replace(/Once$/,""),ye(e,t[0].toLowerCase()+t.slice(1))||ye(e,Ln(t))||ye(e,t))}let lt=null,Yl=null;function ys(e){const t=lt;return lt=e,Yl=e&&e.type.__scopeId||null,t}function me(e,t=lt,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Ca(-1);const i=ys(t);let o;try{o=e(...s)}finally{ys(i),r._d&&Ca(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function oi(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:i,propsOptions:[o],slots:a,attrs:c,emit:d,render:l,renderCache:f,data:u,setupState:w,ctx:g,inheritAttrs:p}=e;let x,I;const M=ys(e);try{if(n.shapeFlag&4){const R=s||r;x=It(l.call(R,R,f,i,w,u,g)),I=c}else{const R=t;x=It(R.length>1?R(i,{attrs:c,slots:a,emit:d}):R(i,null)),I=t.props?c:oh(c)}}catch(R){Or.length=0,Fs(R,e,1),x=B(kt)}let D=x;if(I&&p!==!1){const R=Object.keys(I),{shapeFlag:V}=D;R.length&&V&7&&(o&&R.some(eo)&&(I=ah(I,o)),D=gn(D,I))}return n.dirs&&(D=gn(D),D.dirs=D.dirs?D.dirs.concat(n.dirs):n.dirs),n.transition&&(D.transition=n.transition),x=D,ys(M),x}const oh=e=>{let t;for(const n in e)(n==="class"||n==="style"||Rs(n))&&((t||(t={}))[n]=e[n]);return t},ah=(e,t)=>{const n={};for(const r in e)(!eo(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function lh(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:c}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?ca(r,o,d):!!o;if(c&8){const l=t.dynamicProps;for(let f=0;fe.__isSuspense;function dh(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):rh(e)}const es={};function Zt(e,t,n){return Gl(e,t,n)}function Gl(e,t,{immediate:n,deep:r,flush:s,onTrack:i,onTrigger:o}=Re){var a;const c=bf()===((a=tt)==null?void 0:a.scope)?tt:null;let d,l=!1,f=!1;if(at(e)?(d=()=>e.value,l=bs(e)):Yn(e)?(d=()=>e,r=!0):ee(e)?(f=!0,l=e.some(R=>Yn(R)||bs(R)),d=()=>e.map(R=>{if(at(R))return R.value;if(Yn(R))return Nn(R);if(de(R))return pn(R,c,2)})):de(e)?t?d=()=>pn(e,c,2):d=()=>{if(!(c&&c.isUnmounted))return u&&u(),Pt(e,c,3,[w])}:d=zt,t&&r){const R=d;d=()=>Nn(R())}let u,w=R=>{u=M.onStop=()=>{pn(R,c,4)}},g;if(Lr)if(w=zt,t?n&&Pt(t,c,3,[d(),f?[]:void 0,w]):d(),s==="sync"){const R=dp();g=R.__watcherHandles||(R.__watcherHandles=[])}else return zt;let p=f?new Array(e.length).fill(es):es;const x=()=>{if(M.active)if(t){const R=M.run();(r||l||(f?R.some((V,J)=>Ar(V,p[J])):Ar(R,p)))&&(u&&u(),Pt(t,c,3,[R,p===es?void 0:f&&p[0]===es?[]:p,w]),p=R)}else M.run()};x.allowRecurse=!!t;let I;s==="sync"?I=x:s==="post"?I=()=>gt(x,c&&c.suspense):(x.pre=!0,c&&(x.id=c.uid),I=()=>mo(x));const M=new io(d,I);t?n?x():p=M.run():s==="post"?gt(M.run.bind(M),c&&c.suspense):M.run();const D=()=>{M.stop(),c&&c.scope&&to(c.scope.effects,M)};return g&&g.push(D),D}function fh(e,t,n){const r=this.proxy,s=qe(e)?e.includes(".")?Ql(r,e):()=>r[e]:e.bind(r,r);let i;de(t)?i=t:(i=t.handler,n=t);const o=tt;er(this);const a=Gl(s,i.bind(r),n);return o?er(o):$n(),a}function Ql(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s{Nn(n,t)});else if(Pl(e))for(const n in e)Nn(e[n],t);return e}function Be(e,t){const n=lt;if(n===null)return e;const r=qs(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i{e.isMounted=!0}),tc(()=>{e.isUnmounting=!0}),e}const St=[Function,Array],Jl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:St,onEnter:St,onAfterEnter:St,onEnterCancelled:St,onBeforeLeave:St,onLeave:St,onAfterLeave:St,onLeaveCancelled:St,onBeforeAppear:St,onAppear:St,onAfterAppear:St,onAppearCancelled:St},ph={name:"BaseTransition",props:Jl,setup(e,{slots:t}){const n=rp(),r=hh();let s;return()=>{const i=t.default&&Zl(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const p of i)if(p.type!==kt){o=p;break}}const a=we(e),{mode:c}=a;if(r.isLeaving)return ai(o);const d=ua(o);if(!d)return ai(o);const l=Ei(d,a,r,n);Di(d,l);const f=n.subTree,u=f&&ua(f);let w=!1;const{getTransitionKey:g}=d.type;if(g){const p=g();s===void 0?s=p:p!==s&&(s=p,w=!0)}if(u&&u.type!==kt&&(!Dn(d,u)||w)){const p=Ei(u,a,r,n);if(Di(u,p),c==="out-in")return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},ai(o);c==="in-out"&&d.type!==kt&&(p.delayLeave=(x,I,M)=>{const D=Xl(r,u);D[String(u.key)]=u,x._leaveCb=()=>{I(),x._leaveCb=void 0,delete l.delayedLeave},l.delayedLeave=M})}return o}}},mh=ph;function Xl(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ei(e,t,n,r){const{appear:s,mode:i,persisted:o=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:d,onEnterCancelled:l,onBeforeLeave:f,onLeave:u,onAfterLeave:w,onLeaveCancelled:g,onBeforeAppear:p,onAppear:x,onAfterAppear:I,onAppearCancelled:M}=t,D=String(e.key),R=Xl(n,e),V=(Y,se)=>{Y&&Pt(Y,r,9,se)},J=(Y,se)=>{const F=se[1];V(Y,se),ee(Y)?Y.every(ve=>ve.length<=1)&&F():Y.length<=1&&F()},ae={mode:i,persisted:o,beforeEnter(Y){let se=a;if(!n.isMounted)if(s)se=p||a;else return;Y._leaveCb&&Y._leaveCb(!0);const F=R[D];F&&Dn(e,F)&&F.el._leaveCb&&F.el._leaveCb(),V(se,[Y])},enter(Y){let se=c,F=d,ve=l;if(!n.isMounted)if(s)se=x||c,F=I||d,ve=M||l;else return;let K=!1;const ge=Y._enterCb=Ie=>{K||(K=!0,Ie?V(ve,[Y]):V(F,[Y]),ae.delayedLeave&&ae.delayedLeave(),Y._enterCb=void 0)};se?J(se,[Y,ge]):ge()},leave(Y,se){const F=String(e.key);if(Y._enterCb&&Y._enterCb(!0),n.isUnmounting)return se();V(f,[Y]);let ve=!1;const K=Y._leaveCb=ge=>{ve||(ve=!0,se(),ge?V(g,[Y]):V(w,[Y]),Y._leaveCb=void 0,R[F]===e&&delete R[F])};R[F]=e,u?J(u,[Y,K]):K()},clone(Y){return Ei(Y,t,n,r)}};return ae}function ai(e){if(Us(e))return e=gn(e),e.children=null,e}function ua(e){return Us(e)?e.children?e.children[0]:void 0:e}function Di(e,t){e.shapeFlag&6&&e.component?Di(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Zl(e,t=!1,n){let r=[],s=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,Us=e=>e.type.__isKeepAlive;function gh(e,t){ec(e,"a",t)}function bh(e,t){ec(e,"da",t)}function ec(e,t,n=tt){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(js(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Us(s.parent.vnode)&&yh(r,t,n,s),s=s.parent}}function yh(e,t,n,r){const s=js(t,e,r,!0);zs(()=>{to(r[t],s)},n)}function js(e,t,n=tt,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;or(),er(n);const a=Pt(t,n,e,o);return $n(),ar(),a});return r?s.unshift(i):s.push(i),i}}const tn=e=>(t,n=tt)=>(!Lr||e==="sp")&&js(e,(...r)=>t(...r),n),wh=tn("bm"),lr=tn("m"),vh=tn("bu"),Ch=tn("u"),tc=tn("bum"),zs=tn("um"),_h=tn("sp"),Th=tn("rtg"),Sh=tn("rtc");function xh(e,t=tt){js("ec",e,t)}const go="components",Ph="directives";function te(e,t){return bo(go,e,!0,t)||e}const nc=Symbol.for("v-ndc");function kh(e){return qe(e)?bo(go,e,!1)||e:e||nc}function Oh(e){return bo(Ph,e)}function bo(e,t,n=!0,r=!1){const s=lt||tt;if(s){const i=s.type;if(e===go){const a=lp(i,!1);if(a&&(a===t||a===Ht(t)||a===As(Ht(t))))return i}const o=da(s[e]||i[e],t)||da(s.appContext[e],t);return!o&&r?i:o}}function da(e,t){return e&&(e[t]||e[Ht(t)]||e[As(Ht(t))])}function ze(e,t,n,r){let s;const i=n&&n[r];if(ee(e)||qe(e)){s=new Array(e.length);for(let o=0,a=e.length;ot(o,a,void 0,i&&i[a]));else{const o=Object.keys(e);s=new Array(o.length);for(let a=0,c=o.length;a{const i=r.fn(...s);return i&&(i.key=r.key),i}:r.fn)}return e}function pe(e,t,n={},r,s){if(lt.isCE||lt.parent&&xr(lt.parent)&<.parent.isCE)return t!=="default"&&(n.name=t),B("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),C();const o=i&&rc(i(n)),a=Qe(ue,{key:n.key||o&&o.key||`_${t}`},o||(r?r():[]),o&&e._===1?64:-2);return!s&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function rc(e){return e.some(t=>Cs(t)?!(t.type===kt||t.type===ue&&!rc(t.children)):!0)?e:null}function Eh(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:us(r)]=e[r];return n}const Ri=e=>e?pc(e)?qs(e)||e.proxy:Ri(e.parent):null,Pr=Ge(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ri(e.parent),$root:e=>Ri(e.root),$emit:e=>e.emit,$options:e=>yo(e),$forceUpdate:e=>e.f||(e.f=()=>mo(e.update)),$nextTick:e=>e.n||(e.n=Is.bind(e.proxy)),$watch:e=>fh.bind(e)}),ci=(e,t)=>e!==Re&&!e.__isScriptSetup&&ye(e,t),Dh={get({_:e},t){const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:c}=e;let d;if(t[0]!=="$"){const w=o[t];if(w!==void 0)switch(w){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(ci(r,t))return o[t]=1,r[t];if(s!==Re&&ye(s,t))return o[t]=2,s[t];if((d=e.propsOptions[0])&&ye(d,t))return o[t]=3,i[t];if(n!==Re&&ye(n,t))return o[t]=4,n[t];Ni&&(o[t]=0)}}const l=Pr[t];let f,u;if(l)return t==="$attrs"&&yt(e,"get",t),l(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==Re&&ye(n,t))return o[t]=4,n[t];if(u=c.config.globalProperties,ye(u,t))return u[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return ci(s,t)?(s[t]=n,!0):r!==Re&&ye(r,t)?(r[t]=n,!0):ye(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},o){let a;return!!n[o]||e!==Re&&ye(e,o)||ci(t,o)||(a=i[0])&&ye(a,o)||ye(r,o)||ye(Pr,o)||ye(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ye(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function fa(e){return ee(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ni=!0;function Rh(e){const t=yo(e),n=e.proxy,r=e.ctx;Ni=!1,t.beforeCreate&&ha(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:c,inject:d,created:l,beforeMount:f,mounted:u,beforeUpdate:w,updated:g,activated:p,deactivated:x,beforeDestroy:I,beforeUnmount:M,destroyed:D,unmounted:R,render:V,renderTracked:J,renderTriggered:ae,errorCaptured:Y,serverPrefetch:se,expose:F,inheritAttrs:ve,components:K,directives:ge,filters:Ie}=t;if(d&&Nh(d,r,null),o)for(const le in o){const L=o[le];de(L)&&(r[le]=L.bind(n))}if(s){const le=s.call(n,n);Ee(le)&&(e.data=co(le))}if(Ni=!0,i)for(const le in i){const L=i[le],X=de(L)?L.bind(n,n):de(L.get)?L.get.bind(n,n):zt,fe=!de(L)&&de(L.set)?L.set.bind(n):zt,ne=Pe({get:X,set:fe});Object.defineProperty(r,le,{enumerable:!0,configurable:!0,get:()=>ne.value,set:oe=>ne.value=oe})}if(a)for(const le in a)sc(a[le],r,n,le);if(c){const le=de(c)?c.call(n):c;Reflect.ownKeys(le).forEach(L=>{Lh(L,le[L])})}l&&ha(l,e,"c");function Se(le,L){ee(L)?L.forEach(X=>le(X.bind(n))):L&&le(L.bind(n))}if(Se(wh,f),Se(lr,u),Se(vh,w),Se(Ch,g),Se(gh,p),Se(bh,x),Se(xh,Y),Se(Sh,J),Se(Th,ae),Se(tc,M),Se(zs,R),Se(_h,se),ee(F))if(F.length){const le=e.exposed||(e.exposed={});F.forEach(L=>{Object.defineProperty(le,L,{get:()=>n[L],set:X=>n[L]=X})})}else e.exposed||(e.exposed={});V&&e.render===zt&&(e.render=V),ve!=null&&(e.inheritAttrs=ve),K&&(e.components=K),ge&&(e.directives=ge)}function Nh(e,t,n=zt){ee(e)&&(e=Ai(e));for(const r in e){const s=e[r];let i;Ee(s)?"default"in s?i=Qn(s.from||r,s.default,!0):i=Qn(s.from||r):i=Qn(s),at(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function ha(e,t,n){Pt(ee(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function sc(e,t,n,r){const s=r.includes(".")?Ql(n,r):()=>n[r];if(qe(e)){const i=t[e];de(i)&&Zt(s,i)}else if(de(e))Zt(s,e.bind(n));else if(Ee(e))if(ee(e))e.forEach(i=>sc(i,t,n,r));else{const i=de(e.handler)?e.handler.bind(n):t[e.handler];de(i)&&Zt(s,i,e)}}function yo(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let c;return a?c=a:!s.length&&!n&&!r?c=t:(c={},s.length&&s.forEach(d=>ws(c,d,o,!0)),ws(c,t,o)),Ee(t)&&i.set(t,c),c}function ws(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&ws(e,i,n,!0),s&&s.forEach(o=>ws(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=Ah[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Ah={data:pa,props:ma,emits:ma,methods:Sr,computed:Sr,beforeCreate:pt,created:pt,beforeMount:pt,mounted:pt,beforeUpdate:pt,updated:pt,beforeDestroy:pt,beforeUnmount:pt,destroyed:pt,unmounted:pt,activated:pt,deactivated:pt,errorCaptured:pt,serverPrefetch:pt,components:Sr,directives:Sr,watch:Mh,provide:pa,inject:$h};function pa(e,t){return t?e?function(){return Ge(de(e)?e.call(this,this):e,de(t)?t.call(this,this):t)}:t:e}function $h(e,t){return Sr(Ai(e),Ai(t))}function Ai(e){if(ee(e)){const t={};for(let n=0;n1)return n&&de(t)?t.call(r&&r.proxy):t}}function Uh(e,t,n,r=!1){const s={},i={};ps(i,Bs,1),e.propsDefaults=Object.create(null),oc(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:Vf(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function jh(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=we(s),[c]=e.propsOptions;let d=!1;if((r||o>0)&&!(o&16)){if(o&8){const l=e.vnode.dynamicProps;for(let f=0;f{c=!0;const[u,w]=ac(f,t,!0);Ge(o,u),w&&a.push(...w)};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}if(!i&&!c)return Ee(e)&&r.set(e,Wn),Wn;if(ee(i))for(let l=0;l-1,w[1]=p<0||g-1||ye(w,"default"))&&a.push(f)}}}const d=[o,a];return Ee(e)&&r.set(e,d),d}function ga(e){return e[0]!=="$"}function ba(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ya(e,t){return ba(e)===ba(t)}function wa(e,t){return ee(t)?t.findIndex(n=>ya(n,e)):de(t)&&ya(t,e)?0:-1}const lc=e=>e[0]==="_"||e==="$stable",wo=e=>ee(e)?e.map(It):[It(e)],zh=(e,t,n)=>{if(t._n)return t;const r=me((...s)=>wo(t(...s)),n);return r._c=!1,r},cc=(e,t,n)=>{const r=e._ctx;for(const s in e){if(lc(s))continue;const i=e[s];if(de(i))t[s]=zh(s,i,r);else if(i!=null){const o=wo(i);t[s]=()=>o}}},uc=(e,t)=>{const n=wo(t);e.slots.default=()=>n},Hh=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=we(t),ps(t,"_",n)):cc(t,e.slots={})}else e.slots={},t&&uc(e,t);ps(e.slots,Bs,1)},Bh=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=Re;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:(Ge(s,t),!n&&a===1&&delete s._):(i=!t.$stable,cc(t,s)),o=t}else t&&(uc(e,t),o={default:1});if(i)for(const a in s)!lc(a)&&!(a in o)&&delete s[a]};function Mi(e,t,n,r,s=!1){if(ee(e)){e.forEach((u,w)=>Mi(u,t&&(ee(t)?t[w]:t),n,r,s));return}if(xr(r)&&!s)return;const i=r.shapeFlag&4?qs(r.component)||r.component.proxy:r.el,o=s?null:i,{i:a,r:c}=e,d=t&&t.r,l=a.refs===Re?a.refs={}:a.refs,f=a.setupState;if(d!=null&&d!==c&&(qe(d)?(l[d]=null,ye(f,d)&&(f[d]=null)):at(d)&&(d.value=null)),de(c))pn(c,a,12,[o,l]);else{const u=qe(c),w=at(c);if(u||w){const g=()=>{if(e.f){const p=u?ye(f,c)?f[c]:l[c]:c.value;s?ee(p)&&to(p,i):ee(p)?p.includes(i)||p.push(i):u?(l[c]=[i],ye(f,c)&&(f[c]=l[c])):(c.value=[i],e.k&&(l[e.k]=c.value))}else u?(l[c]=o,ye(f,c)&&(f[c]=o)):w&&(c.value=o,e.k&&(l[e.k]=o))};o?(g.id=-1,gt(g,n)):g()}}}const gt=dh;function qh(e){return Vh(e)}function Vh(e,t){const n=Si();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:c,setText:d,setElementText:l,parentNode:f,nextSibling:u,setScopeId:w=zt,insertStaticContent:g}=e,p=(m,b,P,A=null,$=null,j=null,k=!1,_=null,U=!!b.dynamicChildren)=>{if(m===b)return;m&&!Dn(m,b)&&(A=nn(m),oe(m,$,j,!0),m=null),b.patchFlag===-2&&(U=!1,b.dynamicChildren=null);const{type:O,ref:q,shapeFlag:z}=b;switch(O){case Hs:x(m,b,P,A);break;case kt:I(m,b,P,A);break;case ui:m==null&&M(b,P,A,k);break;case ue:K(m,b,P,A,$,j,k,_,U);break;default:z&1?V(m,b,P,A,$,j,k,_,U):z&6?ge(m,b,P,A,$,j,k,_,U):(z&64||z&128)&&O.process(m,b,P,A,$,j,k,_,U,Ct)}q!=null&&$&&Mi(q,m&&m.ref,j,b||m,!b)},x=(m,b,P,A)=>{if(m==null)r(b.el=a(b.children),P,A);else{const $=b.el=m.el;b.children!==m.children&&d($,b.children)}},I=(m,b,P,A)=>{m==null?r(b.el=c(b.children||""),P,A):b.el=m.el},M=(m,b,P,A)=>{[m.el,m.anchor]=g(m.children,b,P,A,m.el,m.anchor)},D=({el:m,anchor:b},P,A)=>{let $;for(;m&&m!==b;)$=u(m),r(m,P,A),m=$;r(b,P,A)},R=({el:m,anchor:b})=>{let P;for(;m&&m!==b;)P=u(m),s(m),m=P;s(b)},V=(m,b,P,A,$,j,k,_,U)=>{k=k||b.type==="svg",m==null?J(b,P,A,$,j,k,_,U):se(m,b,$,j,k,_,U)},J=(m,b,P,A,$,j,k,_)=>{let U,O;const{type:q,props:z,shapeFlag:Q,transition:re,dirs:he}=m;if(U=m.el=o(m.type,j,z&&z.is,z),Q&8?l(U,m.children):Q&16&&Y(m.children,U,null,A,$,j&&q!=="foreignObject",k,_),he&&Sn(m,null,A,"created"),ae(U,m,m.scopeId,k,A),z){for(const _e in z)_e!=="value"&&!cs(_e)&&i(U,_e,null,z[_e],j,m.children,A,$,ft);"value"in z&&i(U,"value",null,z.value),(O=z.onVnodeBeforeMount)&&$t(O,A,m)}he&&Sn(m,null,A,"beforeMount");const Te=(!$||$&&!$.pendingBranch)&&re&&!re.persisted;Te&&re.beforeEnter(U),r(U,b,P),((O=z&&z.onVnodeMounted)||Te||he)&>(()=>{O&&$t(O,A,m),Te&&re.enter(U),he&&Sn(m,null,A,"mounted")},$)},ae=(m,b,P,A,$)=>{if(P&&w(m,P),A)for(let j=0;j{for(let O=U;O{const _=b.el=m.el;let{patchFlag:U,dynamicChildren:O,dirs:q}=b;U|=m.patchFlag&16;const z=m.props||Re,Q=b.props||Re;let re;P&&xn(P,!1),(re=Q.onVnodeBeforeUpdate)&&$t(re,P,b,m),q&&Sn(b,m,P,"beforeUpdate"),P&&xn(P,!0);const he=$&&b.type!=="foreignObject";if(O?F(m.dynamicChildren,O,_,P,A,he,j):k||L(m,b,_,null,P,A,he,j,!1),U>0){if(U&16)ve(_,b,z,Q,P,A,$);else if(U&2&&z.class!==Q.class&&i(_,"class",null,Q.class,$),U&4&&i(_,"style",z.style,Q.style,$),U&8){const Te=b.dynamicProps;for(let _e=0;_e{re&&$t(re,P,b,m),q&&Sn(b,m,P,"updated")},A)},F=(m,b,P,A,$,j,k)=>{for(let _=0;_{if(P!==A){if(P!==Re)for(const _ in P)!cs(_)&&!(_ in A)&&i(m,_,P[_],null,k,b.children,$,j,ft);for(const _ in A){if(cs(_))continue;const U=A[_],O=P[_];U!==O&&_!=="value"&&i(m,_,O,U,k,b.children,$,j,ft)}"value"in A&&i(m,"value",P.value,A.value)}},K=(m,b,P,A,$,j,k,_,U)=>{const O=b.el=m?m.el:a(""),q=b.anchor=m?m.anchor:a("");let{patchFlag:z,dynamicChildren:Q,slotScopeIds:re}=b;re&&(_=_?_.concat(re):re),m==null?(r(O,P,A),r(q,P,A),Y(b.children,P,q,$,j,k,_,U)):z>0&&z&64&&Q&&m.dynamicChildren?(F(m.dynamicChildren,Q,P,$,j,k,_),(b.key!=null||$&&b===$.subTree)&&vo(m,b,!0)):L(m,b,P,q,$,j,k,_,U)},ge=(m,b,P,A,$,j,k,_,U)=>{b.slotScopeIds=_,m==null?b.shapeFlag&512?$.ctx.activate(b,P,A,k,U):Ie(b,P,A,$,j,k,U):rt(m,b,U)},Ie=(m,b,P,A,$,j,k)=>{const _=m.component=np(m,A,$);if(Us(m)&&(_.ctx.renderer=Ct),sp(_),_.asyncDep){if($&&$.registerDep(_,Se),!m.el){const U=_.subTree=B(kt);I(null,U,b,P)}return}Se(_,m,b,P,$,j,k)},rt=(m,b,P)=>{const A=b.component=m.component;if(lh(m,b,P))if(A.asyncDep&&!A.asyncResolved){le(A,b,P);return}else A.next=b,nh(A.update),A.update();else b.el=m.el,A.vnode=b},Se=(m,b,P,A,$,j,k)=>{const _=()=>{if(m.isMounted){let{next:q,bu:z,u:Q,parent:re,vnode:he}=m,Te=q,_e;xn(m,!1),q?(q.el=he.el,le(m,q,k)):q=he,z&&ds(z),(_e=q.props&&q.props.onVnodeBeforeUpdate)&&$t(_e,re,q,he),xn(m,!0);const Ae=oi(m),Le=m.subTree;m.subTree=Ae,p(Le,Ae,f(Le.el),nn(Le),m,$,j),q.el=Ae.el,Te===null&&ch(m,Ae.el),Q&>(Q,$),(_e=q.props&&q.props.onVnodeUpdated)&>(()=>$t(_e,re,q,he),$)}else{let q;const{el:z,props:Q}=b,{bm:re,m:he,parent:Te}=m,_e=xr(b);if(xn(m,!1),re&&ds(re),!_e&&(q=Q&&Q.onVnodeBeforeMount)&&$t(q,Te,b),xn(m,!0),z&&Vt){const Ae=()=>{m.subTree=oi(m),Vt(z,m.subTree,m,$,null)};_e?b.type.__asyncLoader().then(()=>!m.isUnmounted&&Ae()):Ae()}else{const Ae=m.subTree=oi(m);p(null,Ae,P,A,m,$,j),b.el=Ae.el}if(he&>(he,$),!_e&&(q=Q&&Q.onVnodeMounted)){const Ae=b;gt(()=>$t(q,Te,Ae),$)}(b.shapeFlag&256||Te&&xr(Te.vnode)&&Te.vnode.shapeFlag&256)&&m.a&>(m.a,$),m.isMounted=!0,b=P=A=null}},U=m.effect=new io(_,()=>mo(O),m.scope),O=m.update=()=>U.run();O.id=m.uid,xn(m,!0),O()},le=(m,b,P)=>{b.component=m;const A=m.vnode.props;m.vnode=b,m.next=null,jh(m,b.props,A,P),Bh(m,b.children,P),or(),la(),ar()},L=(m,b,P,A,$,j,k,_,U=!1)=>{const O=m&&m.children,q=m?m.shapeFlag:0,z=b.children,{patchFlag:Q,shapeFlag:re}=b;if(Q>0){if(Q&128){fe(O,z,P,A,$,j,k,_,U);return}else if(Q&256){X(O,z,P,A,$,j,k,_,U);return}}re&8?(q&16&&ft(O,$,j),z!==O&&l(P,z)):q&16?re&16?fe(O,z,P,A,$,j,k,_,U):ft(O,$,j,!0):(q&8&&l(P,""),re&16&&Y(z,P,A,$,j,k,_,U))},X=(m,b,P,A,$,j,k,_,U)=>{m=m||Wn,b=b||Wn;const O=m.length,q=b.length,z=Math.min(O,q);let Q;for(Q=0;Qq?ft(m,$,j,!0,!1,z):Y(b,P,A,$,j,k,_,U,z)},fe=(m,b,P,A,$,j,k,_,U)=>{let O=0;const q=b.length;let z=m.length-1,Q=q-1;for(;O<=z&&O<=Q;){const re=m[O],he=b[O]=U?fn(b[O]):It(b[O]);if(Dn(re,he))p(re,he,P,null,$,j,k,_,U);else break;O++}for(;O<=z&&O<=Q;){const re=m[z],he=b[Q]=U?fn(b[Q]):It(b[Q]);if(Dn(re,he))p(re,he,P,null,$,j,k,_,U);else break;z--,Q--}if(O>z){if(O<=Q){const re=Q+1,he=reQ)for(;O<=z;)oe(m[O],$,j,!0),O++;else{const re=O,he=O,Te=new Map;for(O=he;O<=Q;O++){const Ze=b[O]=U?fn(b[O]):It(b[O]);Ze.key!=null&&Te.set(Ze.key,O)}let _e,Ae=0;const Le=Q-he+1;let Wt=!1,ur=0;const yn=new Array(Le);for(O=0;O=Le){oe(Ze,$,j,!0);continue}let wt;if(Ze.key!=null)wt=Te.get(Ze.key);else for(_e=he;_e<=Q;_e++)if(yn[_e-he]===0&&Dn(Ze,b[_e])){wt=_e;break}wt===void 0?oe(Ze,$,j,!0):(yn[wt-he]=O+1,wt>=ur?ur=wt:Wt=!0,p(Ze,b[wt],P,null,$,j,k,_,U),Ae++)}const dr=Wt?Wh(yn):Wn;for(_e=dr.length-1,O=Le-1;O>=0;O--){const Ze=he+O,wt=b[Ze],fr=Ze+1{const{el:j,type:k,transition:_,children:U,shapeFlag:O}=m;if(O&6){ne(m.component.subTree,b,P,A);return}if(O&128){m.suspense.move(b,P,A);return}if(O&64){k.move(m,b,P,Ct);return}if(k===ue){r(j,b,P);for(let z=0;z_.enter(j),$);else{const{leave:z,delayLeave:Q,afterLeave:re}=_,he=()=>r(j,b,P),Te=()=>{z(j,()=>{he(),re&&re()})};Q?Q(j,he,Te):Te()}else r(j,b,P)},oe=(m,b,P,A=!1,$=!1)=>{const{type:j,props:k,ref:_,children:U,dynamicChildren:O,shapeFlag:q,patchFlag:z,dirs:Q}=m;if(_!=null&&Mi(_,null,P,m,!0),q&256){b.ctx.deactivate(m);return}const re=q&1&&Q,he=!xr(m);let Te;if(he&&(Te=k&&k.onVnodeBeforeUnmount)&&$t(Te,b,m),q&6)Ce(m.component,P,A);else{if(q&128){m.suspense.unmount(P,A);return}re&&Sn(m,null,b,"beforeUnmount"),q&64?m.type.remove(m,b,P,$,Ct,A):O&&(j!==ue||z>0&&z&64)?ft(O,b,P,!1,!0):(j===ue&&z&384||!$&&q&16)&&ft(U,b,P),A&&Xe(m)}(he&&(Te=k&&k.onVnodeUnmounted)||re)&>(()=>{Te&&$t(Te,b,m),re&&Sn(m,null,b,"unmounted")},P)},Xe=m=>{const{type:b,el:P,anchor:A,transition:$}=m;if(b===ue){At(P,A);return}if(b===ui){R(m);return}const j=()=>{s(P),$&&!$.persisted&&$.afterLeave&&$.afterLeave()};if(m.shapeFlag&1&&$&&!$.persisted){const{leave:k,delayLeave:_}=$,U=()=>k(P,j);_?_(m.el,j,U):U()}else j()},At=(m,b)=>{let P;for(;m!==b;)P=u(m),s(m),m=P;s(b)},Ce=(m,b,P)=>{const{bum:A,scope:$,update:j,subTree:k,um:_}=m;A&&ds(A),$.stop(),j&&(j.active=!1,oe(k,m,b,P)),_&>(_,b),gt(()=>{m.isUnmounted=!0},b),b&&b.pendingBranch&&!b.isUnmounted&&m.asyncDep&&!m.asyncResolved&&m.suspenseId===b.pendingId&&(b.deps--,b.deps===0&&b.resolve())},ft=(m,b,P,A=!1,$=!1,j=0)=>{for(let k=j;km.shapeFlag&6?nn(m.component.subTree):m.shapeFlag&128?m.suspense.next():u(m.anchor||m.el),ht=(m,b,P)=>{m==null?b._vnode&&oe(b._vnode,null,null,!0):p(b._vnode||null,m,b,null,null,null,P),la(),Vl(),b._vnode=m},Ct={p,um:oe,m:ne,r:Xe,mt:Ie,mc:Y,pc:L,pbc:F,n:nn,o:e};let qt,Vt;return t&&([qt,Vt]=t(Ct)),{render:ht,hydrate:qt,createApp:Ih(ht,qt)}}function xn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function vo(e,t,n=!1){const r=e.children,s=t.children;if(ee(r)&&ee(s))for(let i=0;i>1,e[n[a]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}const Kh=e=>e.__isTeleport,kr=e=>e&&(e.disabled||e.disabled===""),va=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Fi=(e,t)=>{const n=e&&e.to;return qe(n)?t?t(n):null:n},Yh={__isTeleport:!0,process(e,t,n,r,s,i,o,a,c,d){const{mc:l,pc:f,pbc:u,o:{insert:w,querySelector:g,createText:p,createComment:x}}=d,I=kr(t.props);let{shapeFlag:M,children:D,dynamicChildren:R}=t;if(e==null){const V=t.el=p(""),J=t.anchor=p("");w(V,n,r),w(J,n,r);const ae=t.target=Fi(t.props,g),Y=t.targetAnchor=p("");ae&&(w(Y,ae),o=o||va(ae));const se=(F,ve)=>{M&16&&l(D,F,ve,s,i,o,a,c)};I?se(n,J):ae&&se(ae,Y)}else{t.el=e.el;const V=t.anchor=e.anchor,J=t.target=e.target,ae=t.targetAnchor=e.targetAnchor,Y=kr(e.props),se=Y?n:J,F=Y?V:ae;if(o=o||va(J),R?(u(e.dynamicChildren,R,se,s,i,o,a),vo(e,t,!0)):c||f(e,t,se,F,s,i,o,a,!1),I)Y||ts(t,n,V,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ve=t.target=Fi(t.props,g);ve&&ts(t,ve,null,d,0)}else Y&&ts(t,J,ae,d,1)}dc(t)},remove(e,t,n,r,{um:s,o:{remove:i}},o){const{shapeFlag:a,children:c,anchor:d,targetAnchor:l,target:f,props:u}=e;if(f&&i(l),(o||!kr(u))&&(i(d),a&16))for(let w=0;w0?Nt||Wn:null,Jh(),Ir>0&&Nt&&Nt.push(e),e}function T(e,t,n,r,s,i){return fc(y(e,t,n,r,s,i,!0))}function Qe(e,t,n,r,s){return fc(B(e,t,n,r,s,!0))}function Cs(e){return e?e.__v_isVNode===!0:!1}function Dn(e,t){return e.type===t.type&&e.key===t.key}const Bs="__vInternal",hc=({key:e})=>e??null,fs=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?qe(e)||at(e)||de(e)?{i:lt,r:e,k:t,f:!!n}:e:null);function y(e,t=null,n=null,r=0,s=null,i=e===ue?0:1,o=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&hc(t),ref:t&&fs(t),scopeId:Yl,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:lt};return a?(Co(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=qe(n)?8:16),Ir>0&&!o&&Nt&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Nt.push(c),c}const B=Xh;function Xh(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===nc)&&(e=kt),Cs(e)){const a=gn(e,t,!0);return n&&Co(a,n),Ir>0&&!i&&Nt&&(a.shapeFlag&6?Nt[Nt.indexOf(e)]=a:Nt.push(a)),a.patchFlag|=-2,a}if(cp(e)&&(e=e.__vccOpts),t){t=Zh(t);let{class:a,style:c}=t;a&&!qe(a)&&(t.class=Z(a)),Ee(c)&&(Ul(c)&&!ee(c)&&(c=Ge({},c)),t.style=Un(c))}const o=qe(e)?1:uh(e)?128:Kh(e)?64:Ee(e)?4:de(e)?2:0;return y(e,t,n,r,s,o,i,!0)}function Zh(e){return e?Ul(e)||Bs in e?Ge({},e):e:null}function gn(e,t,n=!1){const{props:r,ref:s,patchFlag:i,children:o}=e,a=t?Ii(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&hc(a),ref:t&&t.ref?n&&s?ee(s)?s.concat(fs(t)):[s,fs(t)]:fs(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ue?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&gn(e.ssContent),ssFallback:e.ssFallback&&gn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Oe(e=" ",t=0){return B(Hs,null,e,t)}function H(e="",t=!1){return t?(C(),Qe(kt,null,e)):B(kt,null,e)}function It(e){return e==null||typeof e=="boolean"?B(kt):ee(e)?B(ue,null,e.slice()):typeof e=="object"?fn(e):B(Hs,null,String(e))}function fn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:gn(e)}function Co(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ee(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Co(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(Bs in t)?t._ctx=lt:s===3&<&&(lt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else de(t)?(t={default:t,_ctx:lt},n=32):(t=String(t),r&64?(n=16,t=[Oe(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ii(...e){const t={};for(let n=0;ntt||lt;let _o,Bn,_a="__VUE_INSTANCE_SETTERS__";(Bn=Si()[_a])||(Bn=Si()[_a]=[]),Bn.push(e=>tt=e),_o=e=>{Bn.length>1?Bn.forEach(t=>t(e)):Bn[0](e)};const er=e=>{_o(e),e.scope.on()},$n=()=>{tt&&tt.scope.off(),_o(null)};function pc(e){return e.vnode.shapeFlag&4}let Lr=!1;function sp(e,t=!1){Lr=t;const{props:n,children:r}=e.vnode,s=pc(e);Uh(e,n,s,t),Hh(e,r);const i=s?ip(e,t):void 0;return Lr=!1,i}function ip(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=fo(new Proxy(e.ctx,Dh));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?ap(e):null;er(e),or();const i=pn(r,e,0,[e.props,s]);if(ar(),$n(),Sl(i)){if(i.then($n,$n),t)return i.then(o=>{Ta(e,o,t)}).catch(o=>{Fs(o,e,0)});e.asyncDep=i}else Ta(e,i,t)}else mc(e,t)}function Ta(e,t,n){de(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ee(t)&&(e.setupState=Hl(t)),mc(e,n)}let Sa;function mc(e,t,n){const r=e.type;if(!e.render){if(!t&&Sa&&!r.render){const s=r.template||yo(e).template;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:c}=r,d=Ge(Ge({isCustomElement:i,delimiters:a},o),c);r.render=Sa(s,d)}}e.render=r.render||zt}er(e),or(),Rh(e),ar(),$n()}function op(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return yt(e,"get","$attrs"),t[n]}}))}function ap(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return op(e)},slots:e.slots,emit:e.emit,expose:t}}function qs(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Hl(fo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Pr)return Pr[n](e)},has(t,n){return n in t||n in Pr}}))}function lp(e,t=!0){return de(e)?e.displayName||e.name:e.name||t&&e.__name}function cp(e){return de(e)&&"__vccOpts"in e}const Pe=(e,t)=>Zf(e,t,Lr);function gc(e,t,n){const r=arguments.length;return r===2?Ee(t)&&!ee(t)?Cs(t)?B(e,null,[t]):B(e,t):B(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Cs(n)&&(n=[n]),B(e,t,n))}const up=Symbol.for("v-scx"),dp=()=>Qn(up),fp="3.3.4",hp="http://www.w3.org/2000/svg",Rn=typeof document<"u"?document:null,xa=Rn&&Rn.createElement("template"),pp={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t?Rn.createElementNS(hp,e):Rn.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Rn.createTextNode(e),createComment:e=>Rn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Rn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{xa.innerHTML=r?`${e}`:e;const a=xa.content;if(r){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function mp(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function gp(e,t,n){const r=e.style,s=qe(n);if(n&&!s){if(t&&!qe(t))for(const i in t)n[i]==null&&Li(r,i,"");for(const i in n)Li(r,i,n[i])}else{const i=r.display;s?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const Pa=/\s*!important$/;function Li(e,t,n){if(ee(n))n.forEach(r=>Li(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=bp(e,t);Pa.test(n)?e.setProperty(Ln(r),n.replace(Pa,""),"important"):e[r]=n}}const ka=["Webkit","Moz","ms"],di={};function bp(e,t){const n=di[t];if(n)return n;let r=Ht(t);if(r!=="filter"&&r in e)return di[t]=r;r=As(r);for(let s=0;sfi||(Tp.then(()=>fi=0),fi=Date.now());function xp(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Pt(Pp(r,n.value),t,5,[r])};return n.value=e,n.attached=Sp(),n}function Pp(e,t){if(ee(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Da=/^on[a-z]/,kp=(e,t,n,r,s=!1,i,o,a,c)=>{t==="class"?mp(e,r,s):t==="style"?gp(e,n,r):Rs(t)?eo(t)||Cp(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Op(e,t,r,s))?wp(e,t,r,i,o,a,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),yp(e,t,r,s))};function Op(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Da.test(t)&&de(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Da.test(t)&&qe(n)?!1:t in e}const cn="transition",yr="animation",To=(e,{slots:t})=>gc(mh,Ep(e),t);To.displayName="Transition";const bc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};To.props=Ge({},Jl,bc);const Pn=(e,t=[])=>{ee(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ra=e=>e?ee(e)?e.some(t=>t.length>1):e.length>1:!1;function Ep(e){const t={};for(const K in e)K in bc||(t[K]=e[K]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:d=o,appearToClass:l=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:u=`${n}-leave-active`,leaveToClass:w=`${n}-leave-to`}=e,g=Dp(s),p=g&&g[0],x=g&&g[1],{onBeforeEnter:I,onEnter:M,onEnterCancelled:D,onLeave:R,onLeaveCancelled:V,onBeforeAppear:J=I,onAppear:ae=M,onAppearCancelled:Y=D}=t,se=(K,ge,Ie)=>{kn(K,ge?l:a),kn(K,ge?d:o),Ie&&Ie()},F=(K,ge)=>{K._isLeaving=!1,kn(K,f),kn(K,w),kn(K,u),ge&&ge()},ve=K=>(ge,Ie)=>{const rt=K?ae:M,Se=()=>se(ge,K,Ie);Pn(rt,[ge,Se]),Na(()=>{kn(ge,K?c:i),un(ge,K?l:a),Ra(rt)||Aa(ge,r,p,Se)})};return Ge(t,{onBeforeEnter(K){Pn(I,[K]),un(K,i),un(K,o)},onBeforeAppear(K){Pn(J,[K]),un(K,c),un(K,d)},onEnter:ve(!1),onAppear:ve(!0),onLeave(K,ge){K._isLeaving=!0;const Ie=()=>F(K,ge);un(K,f),Ap(),un(K,u),Na(()=>{K._isLeaving&&(kn(K,f),un(K,w),Ra(R)||Aa(K,r,x,Ie))}),Pn(R,[K,Ie])},onEnterCancelled(K){se(K,!1),Pn(D,[K])},onAppearCancelled(K){se(K,!0),Pn(Y,[K])},onLeaveCancelled(K){F(K),Pn(V,[K])}})}function Dp(e){if(e==null)return null;if(Ee(e))return[hi(e.enter),hi(e.leave)];{const t=hi(e);return[t,t]}}function hi(e){return af(e)}function un(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function kn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Na(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Rp=0;function Aa(e,t,n,r){const s=e._endId=++Rp,i=()=>{s===e._endId&&r()};if(n)return setTimeout(i,n);const{type:o,timeout:a,propCount:c}=Np(e,t);if(!o)return r();const d=o+"end";let l=0;const f=()=>{e.removeEventListener(d,u),i()},u=w=>{w.target===e&&++l>=c&&f()};setTimeout(()=>{l(n[g]||"").split(", "),s=r(`${cn}Delay`),i=r(`${cn}Duration`),o=$a(s,i),a=r(`${yr}Delay`),c=r(`${yr}Duration`),d=$a(a,c);let l=null,f=0,u=0;t===cn?o>0&&(l=cn,f=o,u=i.length):t===yr?d>0&&(l=yr,f=d,u=c.length):(f=Math.max(o,d),l=f>0?o>d?cn:yr:null,u=l?l===cn?i.length:c.length:0);const w=l===cn&&/\b(transform|all)(,|$)/.test(r(`${cn}Property`).toString());return{type:l,timeout:f,propCount:u,hasTransform:w}}function $a(e,t){for(;e.lengthMa(n)+Ma(e[r])))}function Ma(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Ap(){return document.body.offsetHeight}const bn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?n=>ds(t,n):t};function $p(e){e.target.composing=!0}function Fa(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Vs={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e._assign=bn(s);const i=r||s.props&&s.props.type==="number";Qt(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=ms(a)),e._assign(a)}),n&&Qt(e,"change",()=>{e.value=e.value.trim()}),t||(Qt(e,"compositionstart",$p),Qt(e,"compositionend",Fa),Qt(e,"change",Fa))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:s}},i){if(e._assign=bn(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(s||e.type==="number")&&ms(e.value)===t))return;const o=t??"";e.value!==o&&(e.value=o)}},Mp={deep:!0,created(e,t,n){e._assign=bn(n),Qt(e,"change",()=>{const r=e._modelValue,s=tr(e),i=e.checked,o=e._assign;if(ee(r)){const a=ro(r,s),c=a!==-1;if(i&&!c)o(r.concat(s));else if(!i&&c){const d=[...r];d.splice(a,1),o(d)}}else if(ir(r)){const a=new Set(r);i?a.add(s):a.delete(s),o(a)}else o(yc(e,i))})},mounted:Ia,beforeUpdate(e,t,n){e._assign=bn(n),Ia(e,t,n)}};function Ia(e,{value:t,oldValue:n},r){e._modelValue=t,ee(t)?e.checked=ro(t,r.props.value)>-1:ir(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Fn(t,yc(e,!0)))}const Fp={created(e,{value:t},n){e.checked=Fn(t,n.props.value),e._assign=bn(n),Qt(e,"change",()=>{e._assign(tr(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=bn(r),t!==n&&(e.checked=Fn(t,r.props.value))}},Ui={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=ir(t);Qt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?ms(tr(o)):tr(o));e._assign(e.multiple?s?new Set(i):i:i[0])}),e._assign=bn(r)},mounted(e,{value:t}){La(e,t)},beforeUpdate(e,t,n){e._assign=bn(n)},updated(e,{value:t}){La(e,t)}};function La(e,t){const n=e.multiple;if(!(n&&!ee(t)&&!ir(t))){for(let r=0,s=e.options.length;r-1:i.selected=t.has(o);else if(Fn(tr(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function tr(e){return"_value"in e?e._value:e.value}function yc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ip=["ctrl","shift","alt","meta"],Lp={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Ip.some(n=>e[`${n}Key`]&&!t.includes(n))},ke=(e,t)=>(n,...r)=>{for(let s=0;sn=>{if(!("key"in n))return;const r=Ln(n.key);if(t.some(s=>s===r||Up[s]===r))return e(n)},Ot={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):wr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),wr(e,!0),r.enter(e)):r.leave(e,()=>{wr(e,!1)}):wr(e,t))},beforeUnmount(e,{value:t}){wr(e,t)}};function wr(e,t){e.style.display=t?e._vod:"none"}const jp=Ge({patchProp:kp},pp);let Ua;function zp(){return Ua||(Ua=qh(jp))}const Hp=(...e)=>{const t=zp().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Bp(r);if(!s)return;const i=t._component;!de(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const o=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t};function Bp(e){return qe(e)?document.querySelector(e):e}let ns;const qp=new Uint8Array(16);function Vp(){if(!ns&&(ns=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ns))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ns(qp)}const it=[];for(let e=0;e<256;++e)it.push((e+256).toString(16).slice(1));function Wp(e,t=0){return(it[e[t+0]]+it[e[t+1]]+it[e[t+2]]+it[e[t+3]]+"-"+it[e[t+4]]+it[e[t+5]]+"-"+it[e[t+6]]+it[e[t+7]]+"-"+it[e[t+8]]+it[e[t+9]]+"-"+it[e[t+10]]+it[e[t+11]]+it[e[t+12]]+it[e[t+13]]+it[e[t+14]]+it[e[t+15]]).toLowerCase()}const Kp=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ja={randomUUID:Kp};function Yp(e,t,n){if(ja.randomUUID&&!t&&!e)return ja.randomUUID();e=e||{};const r=e.random||(e.rng||Vp)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let s=0;s<16;++s)t[n+s]=r[s];return t}return Wp(r)}const So={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let n=0;this.panes=this.panes.map((r,s)=>(r.size=s===t?r.max:r.min,s!==t&&(n+=r.min),r)),this.panes[t].size-=n,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:n,clientY:r}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-t.left,y:r-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const r=0+(this.pushOtherPanes?0:n.prevPanesSize),s=100-(this.pushOtherPanes?0:n.nextPanesSize),i=Math.max(Math.min(this.getCurrentDragPercentage(e),s),r);let o=[t,t+1],a=this.panes[o[0]]||null,c=this.panes[o[1]]||null;const d=a.max<100&&i>=a.max+n.prevPanesSize,l=c.max<100&&i<=100-(c.max+this.sumNextPanesSize(t+1));if(d||l){d?(a.size=a.max,c.size=Math.max(100-a.max-n.prevPanesSize-n.nextPanesSize,0)):(a.size=Math.max(100-c.max-n.prevPanesSize-this.sumNextPanesSize(t+1),0),c.size=c.max);return}if(this.pushOtherPanes){const f=this.doPushOtherPanes(n,i);if(!f)return;({sums:n,panesToResize:o}=f),a=this.panes[o[0]]||null,c=this.panes[o[1]]||null}a!==null&&(a.size=Math.min(Math.max(i-n.prevPanesSize-n.prevReachedMinPanes,a.min),a.max)),c!==null&&(c.size=Math.min(Math.max(100-i-n.nextPanesSize-n.nextReachedMinPanes,c.min),c.max))},doPushOtherPanes(e,t){const n=this.touch.activeSplitter,r=[n,n+1];return t{i>r[0]&&i<=n&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),e.prevPanesSize=this.sumPrevPanesSize(r[0]),r[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((s,i)=>{i>0&&i<=n&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),this.panes[r[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[r[1]].min&&(r[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,r[1]>n+1&&this.panes.forEach((s,i)=>{i>n&&i{i=n+1&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),this.panes[r[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:r}},sumPrevPanesSize(e){return this.panes.reduce((t,n,r)=>t+(rt+(r>e+1?n.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.indext.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");!t&&!n&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))})},addSplitter(e,t,n=!1){const r=e-1,s=document.createElement("div");s.classList.add("splitpanes__splitter"),n||(s.onmousedown=i=>this.onMouseDown(i,r),typeof window<"u"&&"ontouchstart"in window&&(s.ontouchstart=i=>this.onMouseDown(i,r)),s.onclick=i=>this.onSplitterClick(i,r+1)),this.dblClickSplitter&&(s.ondblclick=i=>this.onSplitterDblClick(i,r+1)),t.parentNode.insertBefore(s,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let t=0;e.forEach(n=>{n.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,n,!0):t&&this.addSplitter(t,n),t++)})},requestUpdate({target:e,...t}){const n=this.indexedPanes[e._.uid];Object.entries(t).forEach(([r,s])=>n[r]=s)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(s=>(s.className.includes("splitpanes__pane")&&t++,s===e.$el));const n=parseFloat(e.minSize),r=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(n)?0:n,max:isNaN(r)?100:r,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((s,i)=>s.index=i),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(r=>r.id===e._.uid),n=this.panes.splice(t,1)[0];this.panes.forEach((r,s)=>r.index=s),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:t}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const n=[],r=[];this.panes.forEach(s=>{s.size=Math.max(Math.min(e,s.max),s.min),t-=s.size,s.size>=s.max&&n.push(s.id),s.size<=s.min&&r.push(s.id)}),t>.1&&this.readjustSizes(t,n,r)},initialPanesSizing(){let e=100;const t=[],n=[];let r=0;this.panes.forEach(i=>{e-=i.size,i.size!==null&&r++,i.size>=i.max&&t.push(i.id),i.size<=i.min&&n.push(i.id)});let s=100;e>.1&&(this.panes.forEach(i=>{i.size===null&&(i.size=Math.max(Math.min(e/(this.panesCount-r),i.max),i.min)),s-=i.size}),s>.1&&this.readjustSizes(e,t,n))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let n=100/this.panesCount,r=0;const s=[],i=[];e&&e.givenSize!==null&&(n=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{r-=o.size,o.size>=o.max&&s.push(o.id),o.size<=o.min&&i.push(o.id)}),!(Math.abs(r)<.1)&&(this.panes.forEach(o=>{e&&e.givenSize!==null&&e.id===o.id||(o.size=Math.max(Math.min(n,o.max),o.min)),r-=o.size,o.size>=o.max&&s.push(o.id),o.size<=o.min&&i.push(o.id)}),r>.1&&this.readjustSizes(r,s,i))},readjustSizes(e,t,n){let r;e>0?r=e/(this.panesCount-t.length):r=e/(this.panesCount-n.length),this.panes.forEach((s,i)=>{if(e>0&&!t.includes(s.id)){const o=Math.max(Math.min(s.size+r,s.max),s.min),a=o-s.size;e-=a,s.size=o}else if(!n.includes(s.id)){const o=Math.max(Math.min(s.size+r,s.max),s.min),a=o-s.size;e-=a,s.size=o}s.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[s.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,n)=>{t.ondblclick=e?r=>this.onSplitterDblClick(r,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return gc("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},Gp=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Qp={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function Jp(e,t,n,r,s,i){return C(),T("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=o=>i.onPaneClick(o,e._.uid)),style:Un(e.style)},[pe(e.$slots,"default")],4)}const xo=Gp(Qp,[["render",Jp]]);var Xp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zp(e,t){return t={exports:{}},e(t,t.exports),t.exports}var em=Zp(function(e,t){(function(n,r){e.exports=r()})(Xp,function(){var n="__v-click-outside",r=typeof window<"u",s=typeof navigator<"u",i=r&&("ontouchstart"in window||s&&navigator.msMaxTouchPoints>0)?["touchstart"]:["click"],o=function(l){var f=l.event,u=l.handler;(0,l.middleware)(f)&&u(f)},a=function(l,f){var u=function(M){var D=typeof M=="function";if(!D&&typeof M!="object")throw new Error("v-click-outside: Binding value must be a function or an object");return{handler:D?M:M.handler,middleware:M.middleware||function(R){return R},events:M.events||i,isActive:M.isActive!==!1,detectIframe:M.detectIframe!==!1,capture:!!M.capture}}(f.value),w=u.handler,g=u.middleware,p=u.detectIframe,x=u.capture;if(u.isActive){if(l[n]=u.events.map(function(M){return{event:M,srcTarget:document.documentElement,handler:function(D){return function(R){var V=R.el,J=R.event,ae=R.handler,Y=R.middleware,se=J.path||J.composedPath&&J.composedPath();(se?se.indexOf(V)<0:!V.contains(J.target))&&o({event:J,handler:ae,middleware:Y})}({el:l,event:D,handler:w,middleware:g})},capture:x}}),p){var I={event:"blur",srcTarget:window,handler:function(M){return function(D){var R=D.el,V=D.event,J=D.handler,ae=D.middleware;setTimeout(function(){var Y=document.activeElement;Y&&Y.tagName==="IFRAME"&&!R.contains(Y)&&o({event:V,handler:J,middleware:ae})},0)}({el:l,event:M,handler:w,middleware:g})},capture:x};l[n]=[].concat(l[n],[I])}l[n].forEach(function(M){var D=M.event,R=M.srcTarget,V=M.handler;return setTimeout(function(){l[n]&&R.addEventListener(D,V,x)},0)})}},c=function(l){(l[n]||[]).forEach(function(f){return f.srcTarget.removeEventListener(f.event,f.handler,f.capture)}),delete l[n]},d=r?{beforeMount:a,updated:function(l,f){var u=f.value,w=f.oldValue;JSON.stringify(u)!==JSON.stringify(w)&&(c(l),a(l,{value:u}))},unmounted:c}:{};return{install:function(l){l.directive("click-outside",d)},directive:d}})}),Ws={name:"VueSimpleContextMenu",props:{elementId:{type:String,required:!0},options:{type:Array,required:!0}},emits:["menu-closed","option-clicked"],directives:{"click-outside":em.directive},data:function(){return{item:null,menuHeight:null,menuWidth:null}},methods:{showMenu:function(t,n){this.item=n;var r=document.getElementById(this.elementId);r&&((!this.menuWidth||!this.menuHeight)&&(r.style.visibility="hidden",r.style.display="block",this.menuWidth=r.offsetWidth,this.menuHeight=r.offsetHeight,r.removeAttribute("style")),this.menuWidth+t.pageX>=window.innerWidth?r.style.left=t.pageX-this.menuWidth+2+"px":r.style.left=t.pageX-2+"px",this.menuHeight+t.pageY>=window.innerHeight?r.style.top=t.pageY-this.menuHeight+2+"px":r.style.top=t.pageY-2+"px",r.classList.add("vue-simple-context-menu--active"))},hideContextMenu:function(){var t=document.getElementById(this.elementId);t&&(t.classList.remove("vue-simple-context-menu--active"),this.$emit("menu-closed"))},onClickOutside:function(){this.hideContextMenu()},optionClicked:function(t){this.hideContextMenu(),this.$emit("option-clicked",{item:this.item,option:t})},onEscKeyRelease:function(t){t.keyCode===27&&this.hideContextMenu()}},mounted:function(){document.body.addEventListener("keyup",this.onEscKeyRelease)},beforeUnmount:function(){document.removeEventListener("keyup",this.onEscKeyRelease)}},tm=["id"],nm=["onClick"],rm=["innerHTML"];function sm(e,t,n,r,s,i){var o=Oh("click-outside");return C(),T("div",null,[Be((C(),T("ul",{id:n.elementId,class:"vue-simple-context-menu"},[(C(!0),T(ue,null,ze(n.options,function(a,c){return C(),T("li",{key:c,onClick:ke(function(d){return i.optionClicked(a)},["stop"]),class:Z(["vue-simple-context-menu__item",[a.class,a.type==="divider"?"vue-simple-context-menu__divider":""]])},[y("span",{innerHTML:a.name},null,8,rm)],10,nm)}),128))],8,tm)),[[o,i.onClickOutside]])])}Ws.render=sm;Ws.__file="src/vue-simple-context-menu.vue";function ji(e){ji.installed||(ji.installed=!0,e.component("VueSimpleContextMenu",Ws))}var im={install:ji},_s=null;typeof window<"u"?_s=window.Vue:typeof global<"u"&&(_s=global.Vue);_s&&_s.use(im);const Ks=Ws,Er=Object.freeze({Checkbox:"checkbox",RadioButton:"radio"}),Je=Object.freeze({None:null,Single:"single",Multiple:"multiple",SelectionFollowsFocus:"selectionFollowsFocus"});function wc(){function e(){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let r="grt-";do r+=n.charAt(Math.floor(Math.random()*n.length));while(r.length<8||document.getElementById(r));return r}function t(n,r){let s=n.treeNodeSpec.idProperty,i=n[s],o=n[n.treeNodeSpec.childrenProperty];if(document.getElementById(`${r}-${i}`)){let a=1;for(;document.getElementById(`${r}-${i}-${a}`);)a++;n[s]=`${i}-${a}`}o.forEach(a=>t(a,r))}return{generateUniqueId:e,resolveNodeIdConflicts:t}}function om(e,t,n,r,s){const i=Ms({activateItem:[32],selectItem:[13],focusLastItem:[35],focusFirstItem:[36],collapseFocusedItem:[37],expandFocusedItem:[39],focusPreviousItem:[38],focusNextItem:[40],insertItem:[45],deleteItem:[46]}),o=We(null),a=Pe(()=>Object.assign({},i,S(t)));lr(()=>{if(e.value.length>0){let p=null;r(x=>{x.treeNodeSpec.focusable&&(o.value?x.treeNodeSpec.focusable=!1:o.value=x),n!==Je.None&&p===null&&x.treeNodeSpec.state.selected&&(p=x)}),o.value||(o.value=p||e.value[0],o.value.treeNodeSpec.focusable=!0),p===null&&o.value.treeNodeSpec.selectable&&n===Je.SelectionFollowsFocus&&(o.value.treeNodeSpec.state.selected=!0),c(n)}});function c(p){p===Je.Single?s():p===Je.SelectionFollowsFocus&&r(x=>{let I=x.treeNodeSpec.idProperty,M=o.value.treeNodeSpec.idProperty;x[I]===o.value[M]?x.treeNodeSpec.selectable&&(x.treeNodeSpec.state.selected=!0):x.treeNodeSpec.state.selected&&(x.treeNodeSpec.state.selected=!1)})}function d(p){o.value!==p&&(o.value&&(o.value.treeNodeSpec.focusable=!1),o.value=p)}function l(){e.value[0].treeNodeSpec.focusable=!0}function f(){let p=e.value[e.value.length-1],x=p[p.treeNodeSpec.childrenProperty];for(;x.length>0&&p.treeNodeSpec.state.expanded;)p=x[x.length-1],x=p[p.treeNodeSpec.childrenProperty];p.treeNodeSpec.focusable=!0}function u(p){p.treeNodeSpec.focusable&&(e.value.indexOf(p)===0?e.value.length>0&&g(p):w(p))}function w(p){let x=e.value.indexOf(p);if(x>0){let I=e.value[x-1],M=I[I.treeNodeSpec.childrenProperty];for(;M.length>0&&I.treeNodeSpec.state.expanded;)I=M[M.length-1],M=I[I.treeNodeSpec.childrenProperty];I.treeNodeSpec.focusable=!0}}function g(p,x){let I=e.value.indexOf(p),M=p[p.treeNodeSpec.childrenProperty];!x&&M.length>0&&p.treeNodeSpec.state.expanded?M[0].treeNodeSpec.focusable=!0:I-1&&e.value.splice(a,1)}function i(o){let a=o.droppedModel;if(o.isSameTree)if(o.dropEffect===vc.Move)a=r(a[a.treeNodeSpec.idProperty]),a.treeNodeSpec._.dragMoved=!0;else{let c=n(a[a.treeNodeSpec.idProperty]);a=lm(c),za(a,t.value),a.treeNodeSpec.focusable=!1}else za(a,t.value);if(a){let c=o.siblingNodeSet||e.value,d=c.indexOf(o.targetModel);switch(o.targetZone){case Vn.Before:c.splice(d,0,a);break;case Vn.After:c.splice(d+1,0,a);break;default:c.push(a);break}a.treeNodeSpec._.dragging=!1}}return{dragMoveNode:s,drop:i}}const{isProbablyObject:Ha}=Cc();function um(e,t,n,r,s,i){function o(){e.value.treeNodeSpec||(e.value.treeNodeSpec={});const l=e.value.treeNodeSpec;a(t,l),typeof l.childrenProperty!="string"&&(l.childrenProperty="children"),typeof l.idProperty!="string"&&(l.idProperty="id"),typeof l.labelProperty!="string"&&(l.labelProperty="label"),Array.isArray(n.value)||(e.value[r.value]=[]),typeof l.expandable!="boolean"&&(l.expandable=!0),typeof l.selectable!="boolean"&&(l.selectable=!1),typeof l.deletable!="boolean"&&(l.deletable=!1),typeof l.draggable!="boolean"&&(l.draggable=!1),typeof l.allowDrop!="boolean"&&(l.allowDrop=!1),typeof l.focusable!="boolean"&&(l.focusable=!1),typeof l.addChildCallback!="function"&&(l.addChildCallback=null),(typeof l.title!="string"||l.title.trim().length===0)&&(l.title=null),(typeof l.expanderTitle!="string"||l.expanderTitle.trim().length===0)&&(l.expanderTitle=null),(typeof l.addChildTitle!="string"||l.addChildTitle.trim().length===0)&&(l.addChildTitle=null),(typeof l.deleteTitle!="string"||l.deleteTitle.trim().length===0)&&(l.deleteTitle=null),(l.customizations==null||typeof l.customizations!="object")&&(l.customizations={}),typeof l.loadChildrenAsync!="function"&&(l.loadChildrenAsync=null),l._={},l._.dragging=!1,c(l),d(l),e.value.treeNodeSpec=l}function a(l,f){if(Ha(l)){const u=JSON.parse(JSON.stringify(l));Object.assign(u,f);for(const w of Object.keys(l)){const g=typeof l[w]=="function"?l[w]:u[w];Ha(g)?(f[w]=f[w]||{},a(g,f[w])):(typeof g=="function"&&f[w],f[w]=g)}}}function c(l){let f=l.input;f===null||typeof f!="object"||!Object.values(Er).includes(f.type)?l.input=null:((typeof f.name!="string"||f.name.trim().length===0)&&(f.name=null),f.type===Er.RadioButton&&((typeof f.name!="string"||f.name.trim().length===0)&&(f.name="unspecifiedRadioName"),(typeof f.value!="string"||f.value.trim().length===0)&&(f.value=s.value.replace(/[\s&<>"'\/]/g,"")),i.value.hasOwnProperty(f.name)||(i.value[f.name]=""),f.isInitialRadioGroupValue===!0&&(i.value[f.name]=f.value)))}function d(l){(l.state===null||typeof l.state!="object")&&(l.state={}),(l._.state===null||typeof l._.state!="object")&&(l._.state={});let f=l.state,u=l._.state;u.areChildrenLoaded=typeof l.loadChildrenAsync!="function",u.areChildrenLoading=!1,(typeof f.expanded!="boolean"||!u.areChildrenLoaded)&&(f.expanded=!1),typeof f.selected!="boolean"&&(f.selected=!1),l.input&&((f.input===null||typeof f.input!="object")&&(f.input={}),(f.input.disabled===null||typeof f.input.disabled!="boolean")&&(f.input.disabled=!1),l.input.type===Er.Checkbox&&typeof f.input.value!="boolean"&&(f.input.value=!1))}return{normalizeNodeData:o}}const W=Object.freeze({RootNodesLoad:"treeRootNodesLoad",Click:"treeNodeClick",DoubleClick:"treeNodeDblclick",CheckboxChange:"treeNodeCheckboxChange",ChildCheckboxChange:"treeNodeChildCheckboxChange",RadioChange:"treeNodeRadioChange",ExpandedChange:"treeNodeExpandedChange",ChildrenLoad:"treeNodeChildrenLoad",SelectedChange:"treeNodeSelectedChange",FocusableChange:"treeNodeAriaFocusableChange",RequestFirstFocus:"treeNodeAriaRequestFirstFocus",RequestLastFocus:"treeNodeAriaRequestLastFocus",RequestParentFocus:"treeNodeAriaRequestParentFocus",RequestPreviousFocus:"treeNodeAriaRequestPreviousFocus",RequestNextFocus:"treeNodeAriaRequestNextFocus",Add:"treeNodeAdd",Delete:"treeNodeDelete",DragMove:"treeNodeDragMove",Drop:"treeNodeDrop"});function dm(e,t,n,r,s,i,o,a,c,d,l){const f=t.value.treeNodeSpec,u=Pe(()=>f.focusable?0:-1);function w(){f.focusable=!0}function g(D){D.treeNodeSpec.focusable&&(n.value.length>1&&n.value.indexOf(D)===0?M(D):I(D))}function p(){f.focusable=!0}function x(D){let R=!0;if(!(D.altKey||D.ctrlKey||D.metaKey||D.shift)){if(e.activateItem.includes(D.keyCode)){if(f.input&&!f.state.input.disabled){let V=i.value.querySelector(".grtvn-self"),J=V.querySelector(".grtvn-self-input")||V.querySelector("input");if(J){let ae=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});J.dispatchEvent(ae)}}}else e.selectItem.includes(D.keyCode)?a(D):e.expandFocusedItem.includes(D.keyCode)?r&&(s.value&&!f.state.expanded?c(D):f.state.expanded&&(n.value[0].treeNodeSpec.focusable=!0)):e.collapseFocusedItem.includes(D.keyCode)?s.value&&f.state.expanded?c(D):l(W.RequestParentFocus):e.focusFirstItem.includes(D.keyCode)?l(W.RequestFirstFocus):e.focusLastItem.includes(D.keyCode)?l(W.RequestLastFocus):e.focusPreviousItem.includes(D.keyCode)?l(W.RequestPreviousFocus,t.value):e.focusNextItem.includes(D.keyCode)?l(W.RequestNextFocus,t.value,!1):e.insertItem.includes(D.keyCode)?d(D):e.deleteItem.includes(D.keyCode)?o(D):R=!1;R&&(D.stopPropagation(),D.preventDefault())}}function I(D){let R=n.value.indexOf(D);if(R===0)f.focusable=!0;else{let V=n.value[R-1],J=V[V.treeNodeSpec.childrenProperty];for(;J.length>0&&V.treeNodeSpec.state.expanded;)V=J[J.length-1];V.treeNodeSpec.focusable=!0}}function M(D,R){let V=n.value.indexOf(D),J=D.treeNodeSpec.childrenProperty;!R&&D[J].length>0&&D.treeNodeSpec.state.expanded?D[J][0].treeNodeSpec.focusable=!0:V-1&&t.value.splice(x,1)}function o(p,x){p.siblingNodeSet=p.siblingNodeSet||t.value,r(W.Drop,p,x)}function a(p){p.stopPropagation();let x=JSON.parse(JSON.stringify(e.value));x.treeNodeSpec.focusable=!1,x=JSON.stringify(x),s._.dragging=!0,p.dataTransfer.effectAllowed=am.CopyMove,p.dataTransfer.setData(vr.TreeViewNode,`{"treeId":"${n.value}","data":${x}}`),p.dataTransfer.setData(vr.Json,x),p.dataTransfer.setData(vr.PlainText,x)}function c(p){w(p)&&(g(p,!0),p.preventDefault())}function d(p){w(p)&&(g(p,!0),p.preventDefault())}function l(p){w(p)&&g(p,!1)}function f(p){const x=JSON.parse(p.dataTransfer.getData(vr.TreeViewNode)),I=p.target.classList.contains("grtvn-self-prev-target")?Vn.Before:p.target.classList.contains("grtvn-self-next-target")?Vn.After:Vn.Child,M={isSameTree:x.treeId===n.value,droppedModel:x.data,targetModel:e.value,siblingNodeSet:I===Vn.Child?t.value:null,dropEffect:p.dataTransfer.dropEffect,targetZone:I};r(W.Drop,M,p),g(p,!1),p.preventDefault()}function u(p){p.dataTransfer.dropEffect===vc.Move?s._.dragMoved?delete s._.dragMoved:r(W.DragMove,e.value,p):(g(p,!1),s._.dragging=!1)}function w(p){return s.allowDrop&&p.dataTransfer.types.includes(vr.TreeViewNode)&&!hm(p.target,".grtvn-dragging")}function g(p,x){const I=p.target.classList&&p.target.classList.contains("grtvn-self-prev-target"),M=p.target.classList&&p.target.classList.contains("grtvn-self-next-target");s._.isDropTarget=x,I?(s._.isPrevDropTarget=x,s._.isChildDropTarget=!1):M?(s._.isNextDropTarget=x,s._.isChildDropTarget=!1):s._.isChildDropTarget=x}return{dragMoveChild:i,drop:o,onDragstart:a,onDragenter:c,onDragover:d,onDragleave:l,onDrop:f,onDragend:u}}function mm(){function e(t){S(t).treeNodeSpec.focusable=!0}return{focusNode:e}}const gm=["id","tabindex","aria-expanded","aria-selected"],bm=["draggable","dragging"],ym=["id","title"],wm=["for","title"],vm=["id","disabled"],Cm=["for","title"],_m=["id","name","value","disabled"],Tm=["title"],Sm=["id","title"],xm=["id","title"],Pm=["aria-hidden"],km={__name:"TreeViewNode",props:{ariaKeyMap:{type:Object,required:!0},depth:{type:Number,required:!0},initialModel:{type:Object,required:!0},initialRadioGroupValues:{type:Object,required:!0},isMounted:{type:Boolean,required:!0},modelDefaults:{type:Object,required:!0},selectionMode:{type:String,required:!1,default:Je.None,validator:function(e){return Object.values(Je).includes(e)}},treeId:{type:String,required:!0}},emits:[W.Add,W.Click,W.CheckboxChange,W.ChildCheckboxChange,W.ChildrenLoad,W.Delete,W.DoubleClick,W.DragMove,W.Drop,W.ExpandedChange,W.FocusableChange,W.RadioChange,W.RequestFirstFocus,W.RequestLastFocus,W.RequestNextFocus,W.RequestParentFocus,W.RequestPreviousFocus,W.SelectedChange],setup(e,{emit:t}){const n=e,r="input, .grtvn-self-expander, .grtvn-self-expander *, .grtvn-self-action, .grtvn-self-action *",s=We(n.initialModel),i=We(n.initialRadioGroupValues),o=We(null),a=Pe(()=>`${se.value}-add-child`),c=Pe(()=>typeof F.value.loadChildrenAsync!="function"||F.value._.state.areChildrenLoaded),d=Pe(()=>f.value?F.value.state.expanded:null),l=Pe(()=>n.selectionMode===Je.None||!F.value.selectable?null:n.selectionMode!==Je.Multiple?F.value.state.selected?!0:null:F.value.state.selected),f=Pe(()=>Y.value&&F.value.expandable),u=Pe(()=>s.value[w.value]),w=Pe(()=>F.value.childrenProperty||"children"),g=Pe(()=>(F.value.customizations||{}).classes||{}),p=Pe(()=>`${se.value}-delete`),x=Pe(()=>`${se.value}-exp`),I=Pe(()=>u.value&&u.value.length>0),M=Pe(()=>s.value[D.value]),D=Pe(()=>F.value.idProperty||"id"),R=Pe(()=>`${se.value}-input`),V=Pe(()=>n.selectionMode!==Je.None&&F.value.selectable&&F.value.state.selected),J=Pe(()=>s.value[ae.value]),ae=Pe(()=>F.value.labelProperty||"label"),Y=Pe(()=>I.value||!c.value),se=Pe(()=>`${n.treeId}-${M.value}`),F=Pe(()=>s.value.treeNodeSpec),ve=Pe(()=>n.treeId),{normalizeNodeData:K}=um(s,n.modelDefaults,u,w,J,i);K();const{ariaTabIndex:ge,handleChildDeletion:Ie,onClick:rt,onKeyDown:Se,handlePreviousFocus:le,handleNextFocus:L}=dm(n.ariaKeyMap,s,u,Y,f,o,A,Vt,qt,P,t),{dragMoveChild:X,drop:fe,onDragstart:ne,onDragenter:oe,onDragover:Xe,onDragleave:At,onDrop:Ce,onDragend:ft}=pm(s,u,ve,t),{focusNode:nn}=mm();function ht(k){t(W.CheckboxChange,s.value,k)}function Ct(k){t(W.RadioChange,s.value,k)}async function qt(k){let _=F.value;if(_.state.expanded=!_.state.expanded,t(W.ExpandedChange,s.value,k),_.state.expanded&&!_._.state.areChildrenLoaded&&!_._.state.areChildrenLoading){_._.state.areChildrenLoading=!0;var U=await _.loadChildrenAsync(s.value);U&&(_._.state.areChildrenLoaded=!0,u.value.splice(0,u.value.length,...U),t(W.ChildrenLoad,s.value,k)),_._.state.areChildrenLoading=!1}}function Vt(k){F.value.selectable&&[Je.Single,Je.Multiple].includes(n.selectionMode)&&(F.value.state.selected=!F.value.state.selected)}function m(k){k.target.matches(r)||(t(W.Click,s.value,k),Vt()),rt()}function b(k){k.target.matches(r)||t(W.DoubleClick,s.value,k)}async function P(k){if(F.value.addChildCallback){var _=await F.value.addChildCallback(s.value);_&&(u.value.push(_),t(W.Add,_,s.value,k))}}function A(k){F.value.deletable&&t(W.Delete,s.value,k)}function $(k,_){let U=u.value.indexOf(k);U>-1&&(Ie(k),u.value.splice(U,1)),t(W.Delete,k,_)}function j(k,_){t(W.CheckboxChange,k,_),u.value.includes(k)&&t(W.ChildCheckboxChange,s.value,k,_)}return(!M.value||typeof M.value!="number"&&typeof M.value!="string")&&console.error(`initialModel id is required and must be a number or string. Expected prop ${D.value} to exist on the model.`),(!J.value||typeof J.value!="string")&&console.error(`initialModel label is required and must be a string. Expected prop ${ae.value} to exist on the model.`),Zt(()=>s.value.treeNodeSpec.state.selected,function(){t(W.SelectedChange,s.value)}),Zt(()=>F.value.focusable,function(k){k===!0&&(n.isMounted&&o.value.focus(),t(W.FocusableChange,s.value)),F.value.selectable&&n.selectionMode===Je.SelectionFollowsFocus&&(F.value.state.selected=k)}),(k,_)=>{const U=te("TreeViewNode",!0);return C(),T("li",{id:S(se),ref_key:"nodeElement",ref:o,class:Z(["grtvn",[S(g).treeViewNode,S(F)._.dragging?"grtvn-dragging":""]]),role:"treeitem",tabindex:S(ge),"aria-expanded":S(d),"aria-selected":S(l),onKeydown:_[20]||(_[20]=(...O)=>S(Se)&&S(Se)(...O))},[y("div",{class:Z(["grtvn-self",[S(g).treeViewNodeSelf,S(V)?"grtvn-self-selected":"",S(V)?S(g).treeViewNodeSelfSelected:"",S(F)._.isDropTarget?"grtvn-self-drop-target":"",S(F)._.isChildDropTarget?"grtvn-self-child-drop-target":""]]),draggable:S(F).draggable,dragging:S(F)._.dragging,onClick:m,onDblclick:b,onDragend:_[2]||(_[2]=(...O)=>S(ft)&&S(ft)(...O)),onDragenter:_[3]||(_[3]=(...O)=>S(oe)&&S(oe)(...O)),onDragleave:_[4]||(_[4]=(...O)=>S(At)&&S(At)(...O)),onDragover:_[5]||(_[5]=(...O)=>S(Xe)&&S(Xe)(...O)),onDragstart:_[6]||(_[6]=(...O)=>S(ne)&&S(ne)(...O)),onDrop:_[7]||(_[7]=(...O)=>S(Ce)&&S(Ce)(...O))},[y("div",{class:Z(["grtvn-self-sibling-drop-target grtvn-self-prev-target",[S(F)._.isPrevDropTarget?"grtvn-self-sibling-drop-target-hover":""]])},null,2),S(f)?(C(),T("button",{key:0,id:S(x),type:"button","aria-hidden":"true",tabindex:"-1",title:S(F).expanderTitle,class:Z(["grtvn-self-expander",[S(g).treeViewNodeSelfExpander,S(F).state.expanded?"grtvn-self-expanded":"",S(F).state.expanded?S(g).treeViewNodeSelfExpanded:""]]),onClick:qt},[y("i",{class:Z(["grtvn-self-expanded-indicator",S(g).treeViewNodeSelfExpandedIndicator])},null,2)],10,ym)):(C(),T("span",{key:1,class:Z(["grtvn-self-spacer",S(g).treeViewNodeSelfSpacer])},null,2)),S(F).input&&S(F).input.type==="checkbox"?pe(k.$slots,"checkbox",{key:2,model:s.value,customClasses:S(g),inputId:S(R),checkboxChangeHandler:ht},()=>[y("label",{for:S(R),title:S(F).title,class:Z(["grtvn-self-label",S(g).treeViewNodeSelfLabel])},[Be(y("input",{id:S(R),tabindex:"-1",class:Z(["grtvn-self-input grtvn-self-checkbox",[S(g).treeViewNodeSelfInput,S(g).treeViewNodeSelfCheckbox]]),type:"checkbox",disabled:S(F).state.input.disabled,"onUpdate:modelValue":_[0]||(_[0]=O=>S(F).state.input.value=O),onChange:ht},null,42,vm),[[Mp,S(F).state.input.value]]),Oe(" "+ie(S(J)),1)],10,wm)]):S(F).input&&S(F).input.type==="radio"?pe(k.$slots,"radio",{key:3,model:s.value,customClasses:S(g),inputId:S(R),radioGroupValues:i.value,radioChangeHandler:Ct},()=>[y("label",{for:S(R),title:S(F).title,class:Z(["grtvn-self-label",S(g).treeViewNodeSelfLabel])},[Be(y("input",{id:S(R),tabindex:"-1",class:Z(["grtvn-self-input grtvn-self-radio",[S(g).treeViewNodeSelfInput,S(g).treeViewNodeSelfRadio]]),type:"radio",name:S(F).input.name,value:S(F).input.value,disabled:S(F).state.input.disabled,"onUpdate:modelValue":_[1]||(_[1]=O=>i.value[S(F).input.name]=O),onChange:Ct},null,42,_m),[[Fp,i.value[S(F).input.name]]]),Oe(" "+ie(S(J)),1)],10,Cm)]):pe(k.$slots,"text",{key:4,model:s.value,customClasses:S(g)},()=>[y("span",{title:S(F).title,class:Z(["grtvn-self-text",S(g).treeViewNodeSelfText])},ie(S(J)),11,Tm)]),S(F).addChildCallback?(C(),T("button",{key:5,id:S(a),type:"button","aria-hidden":"true",tabindex:"-1",title:S(F).addChildTitle,class:Z(["grtvn-self-action",[S(g).treeViewNodeSelfAction,S(g).treeViewNodeSelfAddChild]]),onClick:P},[y("i",{class:Z(["grtvn-self-add-child-icon",S(g).treeViewNodeSelfAddChildIcon])},null,2)],10,Sm)):H("",!0),S(F).deletable?(C(),T("button",{key:6,id:S(p),type:"button","aria-hidden":"true",tabindex:"-1",title:S(F).deleteTitle,class:Z(["grtvn-self-action",[S(g).treeViewNodeSelfAction,S(g).treeViewNodeSelfDelete]]),onClick:A},[y("i",{class:Z(["grtvn-self-delete-icon",S(g).treeViewNodeSelfDeleteIcon])},null,2)],10,xm)):H("",!0),y("div",{class:Z(["grtvn-self-sibling-drop-target grtvn-self-next-target",[S(F)._.isNextDropTarget?"grtvn-self-sibling-drop-target-hover":""]])},null,2)],42,bm),y("div",{class:Z(["grtvn-children-wrapper",S(g).treeViewNodeChildrenWrapper])},[S(F).state.expanded&&!S(c)?pe(k.$slots,"loading",{key:0,model:s.value,customClasses:S(g)},()=>[y("span",{class:Z(["grtvn-loading",S(g).treeViewNodeLoading])}," ... ",2)]):H("",!0),S(I)?Be((C(),T("ul",{key:1,class:Z(["grtvn-children",S(g).treeViewNodeChildren]),role:"group","aria-hidden":!S(F).state.expanded},[(C(!0),T(ue,null,ze(S(u),O=>(C(),Qe(U,{key:O[S(F)&&S(F).idProperty?S(F).idProperty:"id"],depth:e.depth+1,"initial-model":O,"model-defaults":e.modelDefaults,"parent-id":S(M),"selection-mode":e.selectionMode,"tree-id":S(ve),"initial-radio-group-values":i.value,"aria-key-map":e.ariaKeyMap,"is-mounted":e.isMounted,onTreeNodeClick:_[8]||(_[8]=(q,z)=>k.$emit(S(W).Click,q,z)),onTreeNodeDblclick:_[9]||(_[9]=(q,z)=>k.$emit(S(W).DoubleClick,q,z)),onTreeNodeCheckboxChange:j,onTreeNodeChildCheckboxChange:_[10]||(_[10]=(q,z,Q)=>k.$emit(S(W).ChildCheckboxChange,q,z,Q)),onTreeNodeRadioChange:_[11]||(_[11]=(q,z)=>k.$emit(S(W).RadioChange,q,z)),onTreeNodeExpandedChange:_[12]||(_[12]=(q,z)=>k.$emit(S(W).ExpandedChange,q,z)),onTreeNodeChildrenLoad:_[13]||(_[13]=(q,z)=>k.$emit(S(W).ChildrenLoad,q,z)),onTreeNodeSelectedChange:_[14]||(_[14]=(q,z)=>k.$emit(S(W).SelectedChange,q,z)),onTreeNodeAdd:_[15]||(_[15]=(q,z,Q)=>k.$emit(S(W).Add,q,z,Q)),onTreeNodeDelete:$,onTreeNodeAriaFocusableChange:_[16]||(_[16]=q=>k.$emit(S(W).FocusableChange,q)),onTreeNodeAriaRequestParentFocus:_[17]||(_[17]=()=>S(nn)(s.value)),onTreeNodeAriaRequestFirstFocus:_[18]||(_[18]=()=>k.$emit(S(W).RequestFirstFocus)),onTreeNodeAriaRequestLastFocus:_[19]||(_[19]=()=>k.$emit(S(W).RequestLastFocus)),onTreeNodeAriaRequestPreviousFocus:S(le),onTreeNodeAriaRequestNextFocus:S(L),onTreeNodeDragMove:S(X),onTreeNodeDrop:S(fe)},{checkbox:me(({model:q,customClasses:z,inputId:Q,checkboxChangeHandler:re})=>[pe(k.$slots,"checkbox",{model:q,customClasses:z,inputId:Q,checkboxChangeHandler:re})]),radio:me(({model:q,customClasses:z,inputId:Q,radioGroupValues:re,radioChangeHandler:he})=>[pe(k.$slots,"radio",{model:q,customClasses:z,inputId:Q,radioGroupValues:re,radioChangeHandler:he})]),text:me(({model:q,customClasses:z})=>[pe(k.$slots,"text",{model:q,customClasses:z})]),loading:me(({model:q,customClasses:z})=>[pe(k.$slots,"loading",{model:q,customClasses:z})]),_:2},1032,["depth","initial-model","model-defaults","parent-id","selection-mode","tree-id","initial-radio-group-values","aria-key-map","is-mounted","onTreeNodeAriaRequestPreviousFocus","onTreeNodeAriaRequestNextFocus","onTreeNodeDragMove","onTreeNodeDrop"]))),128))],10,Pm)),[[Ot,S(F).state.expanded]]):H("",!0)],2)],42,gm)}}},Om=y("span",{class:"grtv-loading"}," ... ",-1),Em=["aria-multiselectable"],Dm={__name:"TreeView",props:{customAriaKeyMap:{type:Object,required:!1,default:function(){return{}},validator:function(e){for(const t in e)if(!Array.isArray(e[t])||e[t].some(n=>!Number.isInteger(n)))return console.error(`customAriaKeyMap properties must be Arrays of numbers (corresponding to keyCodes); property '${t}' fails check.`),!1;return!0}},initialModel:{type:Array,required:!1,default:function(){return[]}},loadNodesAsync:{type:Function,required:!1,default:null},modelDefaults:{type:Object,required:!1,default:function(){return{}}},selectionMode:{type:String,required:!1,default:Je.None,validator:function(e){return Object.values(Je).includes(e)}},skinClass:{type:String,required:!1,default:"grtv-default-skin",validator:function(e){return e===null||!e.match(/\s/)}}},emits:[W.Add,W.CheckboxChange,W.ChildrenLoad,W.ChildCheckboxChange,W.Click,W.Delete,W.DoubleClick,W.ExpandedChange,W.RadioChange,W.RootNodesLoad,W.SelectedChange],setup(e,{expose:t,emit:n}){const r=e,s=We(!1),i=We(!1),o=We(r.initialModel),a=We({}),c=We(""),d=We(null),{generateUniqueId:l}=wc(),{ariaKeyMap:f,enforceSelectionMode:u,handleFocusableChange:w,focusFirstNode:g,focusLastNode:p,handleNodeDeletion:x,handlePreviousFocus:I,handleNextFocus:M}=om(o,r.customAriaKeyMap,r.selectionMode,K,ge),{dragMoveNode:D,drop:R}=cm(o,c,ve,Se);Zt(()=>r.selectionMode,u);const V=Pe(()=>typeof r.loadNodesAsync!="function"||s.value),J=Pe(()=>r.selectionMode===Je.None?null:r.selectionMode===Je.Multiple);lr(async()=>{await rt(),d.value.id&&(c.value=d.value.id),Is(()=>{ge(),i.value=!0})});function ae(){return se(L=>L.treeNodeSpec.input&&L.treeNodeSpec.input.type===Er.Checkbox&&L.treeNodeSpec.state.input.value)}function Y(){return se(L=>L.treeNodeSpec.input&&L.treeNodeSpec.input.type===Er.RadioButton&&a.value[L.treeNodeSpec.input.name]===L.treeNodeSpec.input.value)}function se(L,X=0){let fe=[];return typeof L=="function"&&K(ne=>{if(L(ne))return fe.push(ne),X<1||fe.lengthL.treeNodeSpec.selectable&&L.treeNodeSpec.state.selected)}function ve(L){let X=null;return typeof L=="string"&&(X=o.value.find(fe=>fe[fe.treeNodeSpec.idProperty]===L),X||K(fe=>{if(X=fe[fe.treeNodeSpec.childrenProperty].find(ne=>ne[ne.treeNodeSpec.idProperty]===L),X)return!1})),X}function K(L){if(o.value.length===0)return;let X=o.value.slice(),fe=!0;for(;X.length>0&&fe!==!1;){let ne=X.shift(),oe=ne.treeNodeSpec.childrenProperty;Array.isArray(ne[oe])&&(X=ne[oe].concat(X)),fe=L(ne)}}function ge(){if(r.selectionMode===Je.Single){let L=!1;K(X=>{X.treeNodeSpec.state&&X.treeNodeSpec.state.selected===!0&&(L?X.treeNodeSpec.state.selected=!1:L=!0)})}}function Ie(L,X){r.selectionMode===Je.Single&&L.treeNodeSpec.state.selected&&K(fe=>fe.treeNodeSpec.state.selected&&fe.id!==L.id?(fe.treeNodeSpec.state.selected=!1,!1):!0),n(W.SelectedChange,L,X)}async function rt(){if(!V.value){var L=await r.loadNodesAsync();L&&(s.value=!0,o.value.splice(0,o.value.length,...L),n(W.RootNodesLoad,o.value))}}function Se(L){let X=null;if(typeof L=="string"){let fe=o.value.findIndex(ne=>ne[ne.treeNodeSpec.idProperty]===L);fe>-1?X=o.value.splice(fe,1)[0]:K(ne=>{let oe=ne[ne.treeNodeSpec.childrenProperty];if(fe=oe.findIndex(Xe=>Xe[Xe.treeNodeSpec.idProperty]===L),fe>-1)return X=oe.splice(fe,1)[0],!1})}return X}function le(L,X){let fe=o.value.indexOf(L);fe>-1&&(x(L),o.value.splice(fe,1)),n(W.Delete,L,X)}return c.value=l(),t({getCheckedCheckboxes:ae,getCheckedRadioButtons:Y,getMatching:se,getSelected:F}),(L,X)=>(C(),T("div",{ref_key:"treeElement",ref:d,class:Z(["grtv-wrapper",e.skinClass])},[S(V)?H("",!0):pe(L.$slots,"loading-root",{key:0},()=>[Om]),S(V)?(C(),T("ul",{key:1,class:"grtv",role:"tree","aria-multiselectable":S(J)},[(C(!0),T(ue,null,ze(o.value,fe=>(C(),Qe(km,{key:fe[fe.treeNodeSpec&&fe.treeNodeSpec.idProperty?fe.treeNodeSpec.idProperty:"id"],"aria-key-map":S(f),depth:0,"model-defaults":e.modelDefaults,"initial-model":fe,"selection-mode":e.selectionMode,"tree-id":c.value,"is-mounted":i.value,"initial-radio-group-values":a.value,onTreeNodeClick:X[0]||(X[0]=(ne,oe)=>L.$emit(S(W).Click,ne,oe)),onTreeNodeDblclick:X[1]||(X[1]=(ne,oe)=>L.$emit(S(W).DoubleClick,ne,oe)),onTreeNodeCheckboxChange:X[2]||(X[2]=(ne,oe)=>L.$emit(S(W).CheckboxChange,ne,oe)),onTreeNodeChildCheckboxChange:X[3]||(X[3]=(ne,oe,Xe)=>L.$emit(S(W).ChildCheckboxChange,ne,oe,Xe)),onTreeNodeRadioChange:X[4]||(X[4]=(ne,oe)=>L.$emit(S(W).RadioChange,ne,oe)),onTreeNodeExpandedChange:X[5]||(X[5]=(ne,oe)=>L.$emit(S(W).ExpandedChange,ne,oe)),onTreeNodeChildrenLoad:X[6]||(X[6]=(ne,oe)=>L.$emit(S(W).ChildrenLoad,ne,oe)),onTreeNodeSelectedChange:Ie,onTreeNodeAdd:X[7]||(X[7]=(ne,oe,Xe)=>L.$emit(S(W).Add,ne,oe,Xe)),onTreeNodeDelete:le,onTreeNodeAriaFocusableChange:S(w),onTreeNodeAriaRequestFirstFocus:S(g),onTreeNodeAriaRequestLastFocus:S(p),onTreeNodeAriaRequestPreviousFocus:S(I),onTreeNodeAriaRequestNextFocus:S(M),onTreeNodeDragMove:S(D),onTreeNodeDrop:S(R)},{checkbox:me(({model:ne,customClasses:oe,inputId:Xe,checkboxChangeHandler:At})=>[pe(L.$slots,"checkbox",{model:ne,customClasses:oe,inputId:Xe,checkboxChangeHandler:At})]),radio:me(({model:ne,customClasses:oe,inputId:Xe,radioGroupValues:At,radioChangeHandler:Ce})=>[pe(L.$slots,"radio",{model:ne,customClasses:oe,inputId:Xe,radioGroupValues:At,radioChangeHandler:Ce})]),text:me(({model:ne,customClasses:oe})=>[pe(L.$slots,"text",{model:ne,customClasses:oe})]),loading:me(({model:ne,customClasses:oe})=>[pe(L.$slots,"loading",{model:ne,customClasses:oe})]),_:2},1032,["aria-key-map","model-defaults","initial-model","selection-mode","tree-id","is-mounted","initial-radio-group-values","onTreeNodeAriaFocusableChange","onTreeNodeAriaRequestFirstFocus","onTreeNodeAriaRequestLastFocus","onTreeNodeAriaRequestPreviousFocus","onTreeNodeAriaRequestNextFocus","onTreeNodeDragMove","onTreeNodeDrop"]))),128))],8,Em)):H("",!0)],2))}},Rm=({modalRef:e,latest:t,show:n})=>{let r;function s(o){const a=o.target.closest(`.${zi}`);if(t.value&&(!a||a!==e.value)){if(a&&!a.classList.contains(`${zi}-show`))return;r=o.target}}function i(o){o?e.value&&e.value.focus():r&&r.focus()}lr(()=>{document.addEventListener("click",s),Zt(()=>n.value,o=>{Is(()=>i(o))},{immediate:n.value})}),zs(()=>{document.removeEventListener("click",s)})},Nm=({close:e,closeClickDimmed:t,closeKeyCode:n,latest:r})=>{let s=null;function i(c){s=c.target}function o(c){t&&s===c.target&&e.value(),s=null}function a(c){c.keyCode===n&&r.value&&e.value()}return lr(()=>{n&&document.addEventListener("keyup",a)}),zs(()=>{n&&document.removeEventListener("keyup",a)}),{onMouseDownDimmed:i,onMouseUpDimmed:o}},Am=({modalRef:e,show:t})=>{const{visibleModals:n,addVisibleModals:r,removeVisibleModals:s}=Qn(Po),i=Pe(()=>{const o=[...n.value.values()];return!o.length||!e.value?!1:o[o.length-1]===e.value});return Zt(()=>t.value,()=>{Is(()=>{e.value&&(t.value?r(e.value):s(e.value))})},{immediate:!0}),{latest:i}};var $m=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};const Mm=Ne({inheritAttrs:!1,props:{close:{type:Function,default:()=>{}},disabled:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!0},options:{type:Object,default:()=>({})}},emits:["before-enter","enter","after-enter","enter-cancelled","before-leave","leave","after-leave","leave-cancelled"],setup(e,t){const{teleportTarget:n}=Qn(Po),{close:r,disabled:s,options:i,modelValue:o}=Gf(e),a=We(o.value===void 0?!0:o.value),c=We(null),d=We(!s.value),l={transition:300,closeClickDimmed:!0,closeKeyCode:27,styleModalContent:{},...i.value};Zt([()=>o.value,()=>s.value],()=>{const x=o.value&&!s.value;d.value=x,o.value&&(a.value=o.value)},{immediate:!0});const{latest:f}=Am({modalRef:c,show:d});Rm({latest:f,modalRef:c,show:d});const{onMouseDownDimmed:u,onMouseUpDimmed:w}=Nm({close:r,closeClickDimmed:l.closeClickDimmed,closeKeyCode:l.closeKeyCode,latest:f});return{CLASS_NAME:zi,emitClose:()=>{r.value&&r.value()},inserted:a,latest:f,mergeOptions:l,modalRef:c,onMouseDownDimmed:u,onMouseUpDimmed:w,onTransitionEmit:{beforeEnter:()=>t.emit("before-enter"),enter:()=>t.emit("enter"),afterEnter:()=>t.emit("after-enter"),enterCancelled:()=>t.emit("enter-cancelled"),beforeLeave:()=>t.emit("before-leave"),leave:()=>t.emit("leave"),afterLeave:()=>{t.emit("after-leave"),o.value===!1&&(a.value=!1)},leaveCancelled:()=>t.emit("leave-cancelled")},show:d,teleportTarget:n,transition:l.transition?l.transition/1e3+"s":void 0}}});function Fm(e,t,n,r,s,i){return e.inserted?(C(),Qe(Qh,{key:0,to:e.teleportTarget,disabled:e.disabled},[B(To,Ii({appear:"",name:e.CLASS_NAME},Eh(e.onTransitionEmit)),{default:me(()=>{var o;return[Be(y("div",Ii({ref:"modalRef",role:"dialog",tabindex:"-1","aria-modal":"true","aria-label":"Modal window",class:[e.CLASS_NAME,{[`${e.CLASS_NAME}-show`]:e.show},{[`${e.CLASS_NAME}-latest`]:e.latest}],style:{transitionDuration:e.transition}},e.$attrs),[y("div",{class:Z(`${e.CLASS_NAME}-content`),style:Un({transitionDuration:e.transition,...(o=e.mergeOptions)==null?void 0:o.styleModalContent}),onMousedown:t[0]||(t[0]=ke((...a)=>e.onMouseDownDimmed&&e.onMouseDownDimmed(...a),["self"])),onMouseup:t[1]||(t[1]=(...a)=>e.onMouseUpDimmed&&e.onMouseUpDimmed(...a))},[pe(e.$slots,"default",{emitClose:e.emitClose}),pe(e.$slots,"close")],38)],16),[[Ot,e.show]])]}),_:3},16,["name"])],8,["to","disabled"])):H("",!0)}var Im=$m(Mm,[["render",Fm]]);const Po="VueUniversalModal",zi="vue-universal-modal",Lm=(e,t={})=>{const{teleportTarget:n="",teleportComponent:r="",teleportComponentId:s="",modalComponent:i="Modal"}=t;if(!n||r||s)return;const o=We(new Set),a=d=>{o.value.add(d)},c=d=>{o.value.delete(d)};e.provide(Po,{teleportTarget:n,visibleModals:Ms(o),addVisibleModals:a,removeVisibleModals:c}),e.component(i,Im)};var Um={install:Lm};const Hi=1e3*60*10,Ba=["#ffab1d","#fd8c25","#f36e4a","#fc6148","#d75ab6","#b25ade","#6575ff","#7b77e9","#4ea8ec","#00d0f5","#4eb94e","#51af23","#8b9f1c","#d0b02f","#d0853a","#a4a4a4","#ffc51f","#fe982c","#fd7854","#ff705f","#e467c3","#bd65e9","#7183ff","#8985f7","#55b6ff","#10dcff","#51cd51","#5cba2e","#9eb22f","#debe3d","#e19344","#b8b8b8","#ffd03b","#ffae38","#ff8a6a","#ff7e7e","#ef72ce","#c56df1","#8091ff","#918dff","#69caff","#3ee1ff","#72da72","#71cf43","#abbf3c","#e6c645","#eda04e","#c5c5c5","#ffd84c","#ffb946","#ff987c","#ff8f8f","#fb7eda","#ce76fa","#90a0ff","#9c98ff","#74cbff","#64e7ff","#7ce47c","#85e357","#b8cc49","#edcd4c","#f9ad58","#d0d0d0","#ffe651","#ffbf51","#ffa48b","#ff9d9e","#ff8de1","#d583ff","#97a9ff","#a7a4ff","#82d3ff","#76eaff","#85ed85","#8deb5f","#c2d653","#f5d862","#fcb75c","#d7d7d7","#fff456","#ffc66d","#ffb39e","#ffabad","#ff9de5","#da90ff","#9fb2ff","#b2afff","#8ddaff","#8bedff","#99f299","#97f569","#cde153","#fbe276","#ffc160","#e1e1e1","#fff970","#ffd587","#ffc2b2","#ffb9bd","#ffa5e7","#de9cff","#afbeff","#bbb8ff","#9fd4ff","#9aefff","#b3f7b3","#a0fe72","#dbef6c","#fcee98","#ffca69","#eaeaea","#763700","#9f241e","#982c0e","#a81300","#80035f","#650d90","#082fca","#3531a3","#1d4892","#006f84","#036b03","#236600","#445200","#544509","#702408","#343434","#9a5000","#b33a20","#b02f0f","#c8210a","#950f74","#7b23a7","#263dd4","#4642b4","#1d5cac","#00849c","#0e760e","#287800","#495600","#6c5809","#8d3a13","#4e4e4e","#c36806","#c85120","#bf3624","#df2512","#aa2288","#933bbf","#444cde","#5753c5","#1d71c6","#0099bf","#188018","#2e8c00","#607100","#907609","#ab511f","#686868","#e47b07","#e36920","#d34e2a","#ec3b24","#ba3d99","#9d45c9","#4f5aec","#615dcf","#3286cf","#00abca","#279227","#3a980c","#6c7f00","#ab8b0a","#b56427","#757575","#ff911a","#fc8120","#e7623e","#fa5236","#ca4da9","#a74fd3","#5a68ff","#6d69db","#489bd9","#00bcde","#36a436","#47a519","#798d0a","#c1a120","#bf7730","#8e8e8e"];var Ts=null,nr=null,_c=null;function bt(e,t){nr&&nr.showError(e,t)}function jm(e,t){nr&&(t=t!==void 0?t:{},t.type=t.type||"warning",nr.showError(e,t))}function Jt(e){return e[0]!="/"&&(e="/"+e),e.split(/[/]+/).join("/")}function zm(e){return e.substring(e.lastIndexOf("/")+1)}function dt(e){let t=document.location.pathname;return t=t.endsWith("/")?t.slice(0,-1):t,e=e.startsWith("/")?e.slice(1):e,t+"/"+e}function Tc(e){if(e){e[0]=="/"&&(e=e.substring(1));let t=e.substring(0,e.indexOf("/")),n=e.substring(e.indexOf("/")+1);return t||(t=n,n=""),[t,n]}else return["",""]}async function Bi(){try{Ts=(await mt.get(dt("ping"))).data.value,mt.defaults.headers.common["X-CSRFToken"]=Ts,setTimeout(Bi,Hi)}catch{setTimeout(Bi,Hi)}}function Hm(e){Ts=e,mt.defaults.headers.common["X-CSRFToken"]=Ts,setTimeout(Bi,Hi)}async function jt(e,t){t=t!==void 0?t:{};const n={args:[].concat.apply([],e.filter(s=>s!=null))},r=t.type=="terminal"?"$ git "+n.args.join(" ")+` `:"";try{const s=await mt.post(dt("repo"),n);return s.data.returncode!=0?(bt(r+s.data.error.message,t),null):(s.data.error&&jm(r+s.data.error.message,t),s.data.data)}catch(s){return bt(s.response&&s.response.data.error?s.response.data.error.message:s),null}}function Bm(e){return new Promise((t,n)=>{let r=document.createElement("link");r.onload=()=>t(!0),r.rel="stylesheet",r.type="text/css",r.href=_c+"/"+e+".css",document.getElementsByTagName("head")[0].appendChild(r)})}function qm(e,t,n,r,s){return _c=s,Hm(r),e.use(Um,{teleportTarget:n}),nr=e.mount(t),nr}function ko(e,t){if(t=="tree")return"folder";{const n=(e.substring(e.lastIndexOf(".")+1)||"").toLowerCase();return["zip","tar","tgz","tbz2","txz","z","gz","xz","bz","bz2","7z","lz"].indexOf(n)!=-1?"folder_zip":["jpg","jpeg","png","svg","git","bmp","ief","tif","tiff","ico"].indexOf(n)!=-1?"image":["py"].indexOf(n)!=-1?"description":"file"}}function Vm(e,t){return isNaN(e)?"":t=="tree"?e==null?"":e==1?e+" item":e+" items":e<10**3?e.toString()+" B":e<10**6?(e/10**3).toFixed(2)+" kB":e<10**9?(e/10**6).toFixed(2)+" MB":(e/10**9).toFixed(2)+" GB"}class Wm{constructor(t,n,r){const s=this;t&&(s.mode=t.mode,s.isGit=n,s.type=t.leaf?"blob":"tree",s.isGit?s.object=t.id:s.object=(r||"")+"/"+t.id,s.mtime=t.mtime?t.mtime.replace("T"," "):"",s.size=t.size,s.name=t.label||t.id,s.isSymbolicLink=(s.mode&12e4)==12e4,s.icon=ko(s.name,s.type),s.isGit?s.href=dt("repo/"+s.object+"/"+s.name):s.type=="tree"?s.href="#files"+encodeURI(s.object):s.href="#edit"+encodeURI(s.object),s.type=="tree"?s.downloadHref="#":s.isGit?s.downloadHref=dt("repo/"+s.object+"/"+s.name):s.downloadHref=dt("files/"+s.object),s.formattedSize=Vm(s.size,s.type))}}function Km(e,t,n){let r=[];return e&&r.push({name:'file_open Open',slug:"open"}),e&&e.type=="blob"&&r.push({name:'file_download Download',slug:"download"}),!t&&e&&(e.type=="blob"||e.size==0)&&r.push({name:'delete Delete',slug:"delete"}),!t&&e&&e.name!=".."&&(r.push({name:'drive_file_rename_outline Move/Rename',slug:"rename"}),r.push({name:'open_in_new Open in a new window',slug:"open_in_new"})),t||(e&&r.push({type:"divider"}),r.push({name:'add_circle New',slug:"new"}),r.push({name:'file_upload Upload',slug:"upload"}),r.push({name:'refresh Refresh',slug:"refresh"}),n?r.push({name:'lens_blur Hide Hidden Files',slug:"show_hidden"}):r.push({name:'lens_blur Show Hidden Files',slug:"show_hidden"})),r}const Fe=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Ym=Ne({props:["icon","state"],computed:{effectiveIcon(){return this.icon=="file"?"insert_drive_file":this.icon=="check_box"?this.state?"check_box":"check_box_outline_blank":this.icon}},data(){return{}}}),Gm={class:"material-icons"};function Qm(e,t,n,r,s,i){return C(),T("span",Gm,ie(e.effectiveIcon),1)}const jn=Fe(Ym,[["render",Qm]]),Jm=Ne({components:{icon:jn,tree:Dm,"vue-simple-context-menu":Ks},props:["config"],data(){return{model:We([]),modelDefaults:{loadChildrenAsync:this.loadChildrenAsync},options:[{name:'refresh Refresh',slug:"refresh"}]}},methods:{async parseURIFragment(){const e=/#?([a-z-]+)(\/(.*))?/.exec(document.location.hash),t=e!==null?e[1]:"files",n=e!==null?e[3]:null;t=="tags"||t=="local-branches"||t=="remote-branches"?this.$emit("show",{id:t,name:n}):t=="workspace"?this.$emit("show",{id:"workspace",name}):t=="edit"&&n?this.$emit("show",{id:"files",path:"/"+n,type:"blob"}):n?this.$emit("show",{id:"files",path:"/"+n,type:"tree"}):this.$emit("show",{id:"files",path:"/",type:"tree"})},async showContainer(){jQuery("#global-container").show()},async fetchTree(){const e=await mt.get(dt("tree"));this.model.length=0,e.data.value.forEach(t=>{t=this.prepareTreeNode(t),this.model.push(t)})},click(e){const t=Tc(e.id),n=t[0],r=(t[1]||"").trim();return console.log("Sidebar.click section: "+n+" name: "+r),n=="workspace"||n=="git"?this.$emit("show",{id:"workspace",name:r}):n=="files"?this.$emit("show",{id:"files",path:"/"+r,type:e.leaf?"blob":"tree"}):(n=="tags"||n=="remote-branches"||n=="local-branches")&&(r?this.$emit("show",{id:n,name:r}):jQuery("#sidebar-tree-"+n+"-exp").click()),!1},prepareTreeNode(e,t){return e.label=e.label||e.id,e.type=e.leaf?"blob":"tree",(!e.icon||e.icon=="file")&&(e.icon=ko(e.label,e.type)),e.treeNodeSpec={expandable:!e.leaf},e.leaf||(e.children=[]),t&&(e.id=t.id+"/"+e.id),e},async loadChildrenAsync(e){const t=this,n="tree/"+e.id,r=this.config.showHiddenFiles?{all:!0}:{};try{return(await mt.get(dt(n),{params:r})).data.value.map(i=>t.prepareTreeNode(i,e))}catch(s){return bt(s.response&&s.response.data.error?s.response.data.error.message:s),[]}},async showMenu(e,t){t&&!t.leaf&&this.$refs.sidebarTreeMenu.showMenu(e,t)},menuOptionClicked(e){e.option.slug=="refresh"&&this.menuOptionRefresh(e)},menuOptionRefresh(e){e.item.treeNodeSpec.expandable&&(e.item.treeNodeSpec.state.expanded=!1,e.item.children=[],e.item.treeNodeSpec._.state.areChildrenLoaded=!1,setTimeout(async()=>{let t=e.item.treeNodeSpec;if(t.state.expanded=!0,t.state.expanded&&!t._.state.areChildrenLoaded&&!t._.state.areChildrenLoading){t._.state.areChildrenLoading=!0;const n=await t.loadChildrenAsync(e.item);n&&(t._.state.areChildrenLoaded=!0,e.item.children.splice(0,e.item.children.length,...n)),t._.state.areChildrenLoading=!1}},1))}},async mounted(){await this.fetchTree(),await this.parseURIFragment(),await this.showContainer()}}),Xm={class:"sidebar-content"},Zm=["title","onContextmenu","onClick"],eg={class:"bug-report"},tg={href:"https://github.com/andreax79/airflow-code-editor/issues",target:"_blank"};function ng(e,t,n,r,s,i){const o=te("icon"),a=te("tree"),c=te("vue-simple-context-menu");return C(),T("div",null,[y("div",Xm,[B(a,{id:"sidebar-tree","initial-model":e.model,"model-defaults":e.modelDefaults},{text:me(({model:d})=>[y("div",{title:d.treeNodeSpec.title,class:"grtvn-self-text",onContextmenu:ke(l=>e.showMenu(l,d),["prevent","stop"]),onClick:l=>e.click(d)},[B(o,{icon:d.icon},null,8,["icon"]),Oe(" "+ie(d.label),1)],40,Zm)]),_:1},8,["initial-model","model-defaults"]),y("span",eg,[y("a",tg,[B(o,{icon:"bug_report"}),Oe(" Report an issue")])])]),B(c,{"element-id":"sidebar-tree-menu",options:e.options,ref:"sidebarTreeMenu",onOptionClicked:e.menuOptionClicked},null,8,["options","onOptionClicked"])])}const rg=Fe(Jm,[["render",ng]]),qa={name:"root",object:void 0,type:"tree"};class Sc{constructor(t,n,r){this.stack=[{...qa}],typeof t<"u"&&this.updateStack(t,n,r)}updateStack(t,n,r){this.stack.length=0;let s=null;(t=="/"||!t)&&(t=""),t.split("/").forEach((i,o)=>{o===0&&!i?(this.stack.push({...qa}),s=""):(s===null?s=i:s+="/"+i,i[0]=="~"&&(i=i.substring(1)),this.stack.push({name:i,object:s,uri:encodeURI(s!==void 0&&s.startsWith("/")?"#files"+s:null),type:"tree"}))}),n=="blob"&&(this.stack[this.stack.length-1].type="blob"),typeof r<"u"&&(this.stack[this.stack.length-1].line=r)}last(){return this.stack[this.stack.length-1]}parent(){return this.stack.length>1?this.stack[this.stack.length-2]:void 0}isGit(){return this.last().object!==void 0&&!this.last().object.startsWith("/")}isRoot(){return this.stack.length==1}pop(){return this.isRoot()?this.stack[0]:this.stack.pop()}push(t){return this.stack.push(t)}slice(t){this.stack=this.stack.slice(0,t)}indexOf(t){let n=this.stack.find(r=>r.object==t.object);return this.stack.indexOf(n)}}/*! * vue-good-table-next v0.2.0 * (c) 2021-present Boris Flesch @@ -15,7 +15,7 @@ commit `,w),x=p!=-1?p-w:void 0,I=new s(n,u.substr(w,x));if(g47){u.refs=[];let g=w.lastIndexOf("(")+1,p=w.lastIndexOf(")");w.substr(g,p-g).split(", ").forEach(function(x){u.refs.push(x)})}}else w.indexOf("parent ")==0?u.parents.push(w.substr(7)):w.indexOf("tree ")==0?u.tree=w.substr(5):w.indexOf("author ")==0?u.author=new r(w.substr(7)):w.indexOf("committer ")==0?u.committer=new r(w.substr(10)):w.indexOf(" ")==0&&(u.message+=w.substr(4)+` `)}),u.message=u.message.trim(),u.createElement()}n.element=jQuery(e)[0];let i=n.element.children[0],o=n.element.children[1],a=null,c=[],d=0}const Qv=Ne({data(){return{logView:null}},methods:{initViews(){this.logView=new Gv(this.$refs.logView,this)},update(e){this.logView&&this.logView.update(e)},updateCommit(e){this.$emit("updateCommit",e)}},mounted(){this.initViews()}}),Jv={ref:"logView",class:"log-view"},Xv=y("svg",{xmlns:"http://www.w3.org/2000/svg"},null,-1),Zv=y("div",null,null,-1),e0=[Xv,Zv];function t0(e,t,n,r,s,i){return C(),T("div",Jv,e0,512)}const n0=Fe(Qv,[["render",t0]]),r0=Ne({props:["linesOfContext"],data(){return{lines:We([])}},methods:{processLine(e){const t=e[0];let n="",r=!1;return this.inHeader?e.startsWith("commit")?(e=e.substring(7),n="badge"):e.startsWith("diff --git")?(r=!0,this.inHeader=!1,this.inFileHeader=!0):(n="diff-header",(e.startsWith("Author:")||e.startsWith("Date:"))&&(n+=" font-weight-bold")):!this.inFileHeader&&e.startsWith("diff --git")?(r=!0,this.inFileHeader=!0):this.inFileHeader?(r=!0,e.startsWith("+++ ")&&(n+=" diff-file-header",e=e.substring(5),e.startsWith("dev/null")&&(e=this.last.substring(5)),e[0]=="/"&&(e=e.substring(1)),r=!1,this.inFileHeader=!1)):(t=="+"?n+=" diff-line-add":t=="-"?n+=" diff-line-del":t=="@"&&(n+=" diff-line-offset"),n||(n="diff-default")),this.last=e,{classes:n,line:e,skip:r}},parseDiff(e){console.log("loaded "+this.commit.commit),this.inHeader=!0,this.inFileHeader=!1,this.last=null,this.lines=e.split(` `).map(this.processLine),this.$emit("loaded")},async refresh(e){if(e&&(this.commit=e),this.commit){console.log("loading");const t=["show","--unified="+this.linesOfContext,this.commit.commit],n=await jt(t);n&&this.parseDiff(n)}}},async mounted(){this.refresh()}}),s0={class:"show-commit"};function i0(e,t,n,r,s,i){return C(),T("div",s0,[(C(!0),T(ue,null,ze(e.lines,o=>(C(),T("div",null,[o.skip?H("",!0):(C(),T("div",{key:0,class:Z(o.classes)},ie(o.line),3))]))),256))])}const o0=Fe(r0,[["render",i0]]),a0=Ne({components:{splitpanes:So,pane:xo,log:n0,container:Vi,commit:o0,spinner:Gs},props:["config","target"],data(){return{tab:"commit",loading:!1,id:We(null),name:We(null),commit:We(null)}},mounted(){this.refresh()},methods:{isChanged(){return!1},updateLocation(){document.location.hash=Jt(this.id+"/"+this.name)},update(e){(this.id!=e.id||this.name!=e.name)&&(this.id=e.id,this.name=e.name,this.$refs.log.update(this.name),this.updateCommit({commit:this.name}),this.updateLocation())},updateCommit(e){this.loading||(this.commit=e,this.loading=!0,this.$refs.commit.refresh(this.commit),this.$refs.container.updateStack(this.commit.commit,"tree"))},refresh(){this.target&&this.update(this.target)},loaded(){this.loading=!1}}}),l0={class:"tabs"},c0={class:"diff-view-container panel panel-default"},u0={class:"tree-view"};function d0(e,t,n,r,s,i){const o=te("spinner"),a=te("log"),c=te("pane"),d=te("commit"),l=te("container"),f=te("splitpanes");return C(),Qe(f,{class:"default-theme"},{default:me(()=>[B(c,{key:"1",size:50,class:"history-view"},{default:me(()=>[Be(B(o,null,null,512),[[Ot,e.loading]]),B(a,{ref:"log",onUpdateCommit:e.updateCommit},null,8,["onUpdateCommit"])]),_:1}),B(c,{key:"2",size:50,class:"commit-view"},{default:me(()=>[y("ul",l0,[y("li",{role:"presentation",class:Z(e.tab=="commit"?"active":"")},[y("a",{href:"#",onClick:t[0]||(t[0]=ke(u=>e.tab="commit",["prevent"]))},"Commit")],2),y("li",{role:"presentation",class:Z(e.tab=="tree"?"active":"")},[y("a",{href:"#",onClick:t[1]||(t[1]=ke(u=>e.tab="tree",["prevent"]))},"Tree")],2)]),Be(y("div",c0,[B(d,{ref:"commit",linesOfContext:"3",onLoaded:e.loaded},null,8,["onLoaded"])],512),[[Ot,e.tab=="commit"]]),Be(y("div",u0,[B(l,{ref:"container",config:e.config,"is-git":!0},null,8,["config"])],512),[[Ot,e.tab=="tree"]])]),_:1})]),_:1})}const nl=Fe(a0,[["render",d0]]),f0=Ne({components:{icon:jn,breadcrumb:Eo,spinner:Gs},props:["config","target","uuid"],data(){return{items:[],loading:!1}},methods:{changePath(e){this.$emit("show",{id:"files",path:e.object,type:e.type,line:e.line})},async refresh(){console.log("Search.refresh"),this.loading=!0;const e=await mt.get(dt("search"),{params:{query:this.target.query,context:!0}});this.items=e.data.value.map(t=>(t.stack=new Sc(t.path,"blob",t.row_number),t)),this.loading=!1},update(e){},isChanged(){return!1}},mounted(){this.refresh()}}),h0={class:"search-view"},p0={class:"search-result"},m0={class:"breadcrumb"},g0=["innerHTML"];function b0(e,t,n,r,s,i){const o=te("spinner"),a=te("breadcrumb");return C(),T("div",h0,[Be(B(o,null,null,512),[[Ot,e.loading]]),(C(!0),T(ue,null,ze(e.items,c=>(C(),T("div",p0,[y("ol",m0,[B(a,{onChangePath:e.changePath,stack:c.stack,isGit:!1,lastIsActive:!0},null,8,["onChangePath","stack"]),Oe(" : "+ie(c.row_number),1)]),y("div",{class:"search-context",innerHTML:c.context},null,8,g0)]))),256))])}const rl=Fe(f0,[["render",b0]]),y0=Ne({components:{icon:jn},props:[],data(){return{message:null,amend:!1,show:!1}},methods:{showDialog(){return new Promise((e,t)=>{this.message="",this.amend=!1,this.show=!0,this.resolve=e,this.reject=t})},ok(){this.close({amend:this.amend,message:this.message})},cancel(){this.close()},close(e){this.show=!1,this.resolve(e)},toggleamend(){this.amend=!this.amend}}}),w0={class:"airflow-code-editor-modal airflow-code-editor-modal-commit"},v0=y("h1",null,"Commit",-1),C0=y("label",null,"Please enter the commit message:",-1),_0={class:"dialog-buttons"},T0=["disabled"];function S0(e,t,n,r,s,i){const o=te("icon"),a=te("modal");return C(),Qe(a,{modelValue:e.show,"onUpdate:modelValue":t[3]||(t[3]=c=>e.show=c),close:e.close},{default:me(()=>[y("div",w0,[v0,C0,Be(y("textarea",{class:"form-control","onUpdate:modelValue":t[0]||(t[0]=c=>e.message=c)},` - `,512),[[Vs,e.message]]),y("label",null,[B(o,{icon:"check_box",state:e.amend,onClick:e.toggleamend},null,8,["state","onClick"]),Oe(" Amend amend previous commit ")]),y("div",_0,[y("button",{onClick:t[1]||(t[1]=(...c)=>e.cancel&&e.cancel(...c)),class:"btn btn-default"},"Cancel"),y("button",{onClick:t[2]||(t[2]=(...c)=>e.ok&&e.ok(...c)),class:"btn btn-primary",disabled:e.message==""},"Commit",8,T0)])])]),_:1},8,["modelValue","close"])}const x0=Fe(y0,[["render",S0]]),P0=Ne({props:[],data(){return{title:null,message:null,show:!1}},methods:{showDialog(e,t){return this.resolve&&(this.resolve(!1),this.resolve=null),this.title=e,this.message=t,this.show=!0,new Promise((n,r)=>{this.resolve=n})},ok(){this.resolve(!0),this.resolve=null,this.show=!1},cancel(){this.resolve(!1),this.resolve=null,this.show=!1},close(){this.resolve(!1),this.resolve=null,this.show=!1}}}),k0={class:"airflow-code-editor-modal airflow-code-editor-modal-confim"},O0={class:"dialog-buttons"};function E0(e,t,n,r,s,i){const o=te("modal");return C(),Qe(o,{modelValue:e.show,"onUpdate:modelValue":t[2]||(t[2]=a=>e.show=a),close:e.close},{default:me(()=>[y("div",k0,[y("h1",null,ie(e.title),1),y("label",null,ie(e.message),1),y("div",O0,[y("button",{onClick:t[0]||(t[0]=(...a)=>e.cancel&&e.cancel(...a)),class:"btn btn-default"},"Cancel"),y("button",{onClick:t[1]||(t[1]=(...a)=>e.ok&&e.ok(...a)),class:"btn btn-primary"},"Ok")])])]),_:1},8,["modelValue","close"])}const D0=Fe(P0,[["render",E0]]),R0={" ":"unmodified",M:"modified",T:"type changed",A:"added",D:"deleted",R:"renamed",C:"copied",U:"unmerged","?":"untracked","!":"ignored"},N0=Ne({components:{icon:jn,"commit-dialog":x0,"confirm-dialog":D0},props:["kind"],data(){return{items:We([])}},computed:{selected(){return this.items.filter(e=>e.selected)}},methods:{toggleItem(e){e.selected=!e.selected},showDiff(e){this.$emit("showDiff",e)},async showCommitDialog(e){const t=await this.$refs.commitDialog.showDialog();if(t){const n=["commit",t.amend?"--amend":null,"-m",t.message],r=await jt(n);console.log(r),this.refresh()}},async showRevertDialog(e){await this.$refs.confirmDialog.showDialog("Confirm Revert","Are you sure you want to revert changes?")&&this.revert()},processLine(e){const t=this.kind=="staged"?0:1,n=e[t];if(this.kind=="staged"&&n!=" "&&n!="?"||this.kind=="unstaged"&&n!=" "){let r=e.substring(3);r.indexOf(" -> ")!=-1&&(r=r.split(" -> ")[1]);const s=r[r.length-1]=="/"?"tree":"blob";return{name:r,status:R0[n]||n,type:s,kind:this.kind,icon:ko(r,s)}}else return null},parseStatus(e){const t=e.split(` + `,512),[[Vs,e.message]]),y("label",null,[B(o,{icon:"check_box",state:e.amend,onClick:e.toggleamend},null,8,["state","onClick"]),Oe(" Amend amend previous commit ")]),y("div",_0,[y("button",{onClick:t[1]||(t[1]=(...c)=>e.cancel&&e.cancel(...c)),class:"btn btn-default"},"Cancel"),y("button",{onClick:t[2]||(t[2]=(...c)=>e.ok&&e.ok(...c)),class:"btn btn-primary",disabled:e.message==""},"Commit",8,T0)])])]),_:1},8,["modelValue","close"])}const x0=Fe(y0,[["render",S0]]),P0=Ne({props:[],data(){return{title:null,message:null,show:!1}},methods:{showDialog(e,t){return this.resolve&&(this.resolve(!1),this.resolve=null),this.title=e,this.message=t,this.show=!0,new Promise((n,r)=>{this.resolve=n})},ok(){this.resolve(!0),this.resolve=null,this.show=!1},cancel(){this.resolve(!1),this.resolve=null,this.show=!1},close(){this.resolve(!1),this.resolve=null,this.show=!1}}}),k0={class:"airflow-code-editor-modal airflow-code-editor-modal-confim"},O0={class:"dialog-buttons"};function E0(e,t,n,r,s,i){const o=te("modal");return C(),Qe(o,{modelValue:e.show,"onUpdate:modelValue":t[2]||(t[2]=a=>e.show=a),close:e.close},{default:me(()=>[y("div",k0,[y("h1",null,ie(e.title),1),y("label",null,ie(e.message),1),y("div",O0,[y("button",{onClick:t[0]||(t[0]=(...a)=>e.cancel&&e.cancel(...a)),class:"btn btn-default"},"Cancel"),y("button",{onClick:t[1]||(t[1]=(...a)=>e.ok&&e.ok(...a)),class:"btn btn-primary"},"Ok")])])]),_:1},8,["modelValue","close"])}const D0=Fe(P0,[["render",E0]]),R0={" ":"unmodified",M:"modified",T:"type changed",A:"added",D:"deleted",R:"renamed",C:"copied",U:"unmerged","?":"untracked","!":"ignored"},N0=Ne({components:{icon:jn,"commit-dialog":x0,"confirm-dialog":D0},props:["kind"],data(){return{items:We([])}},computed:{selected(){return this.items.filter(e=>e.selected)}},methods:{toggleItem(e){e.selected=!e.selected},showDiff(e){this.$emit("showDiff",e)},async showCommitDialog(e){const t=await this.$refs.commitDialog.showDialog();if(t){const n=["commit",t.amend?"--amend":null,"-m",t.message],r=await jt(n);console.log(r),this.refresh()}},async showRevertDialog(e){await this.$refs.confirmDialog.showDialog("Confirm Revert","Are you sure you want to revert changes?")&&this.revert()},processLine(e){const t=this.kind=="staged"?0:1,n=e[t];if(this.kind=="staged"&&n!=" "&&n!="?"||this.kind=="unstaged"&&n!=" "){let r=e.substring(3);r.startsWith('"')&&(r=JSON.parse(r)),r.indexOf(" -> ")!=-1&&(r=r.split(" -> ")[1]);const s=r[r.length-1]=="/"?"tree":"blob";return{name:r,status:R0[n]||n,type:s,kind:this.kind,icon:ko(r,s)}}else return null},parseStatus(e){const t=e.split(` `).filter(n=>n.length>0);this.items=t.map(this.processLine).filter(n=>n!=null)},selectAll(){this.items.forEach(e=>e.selected=!0)},deselectAll(){this.items.forEach(e=>e.selected=!1)},toggleAll(){this.selected.length==this.items.length?this.deselectAll():this.selectAll()},async process(){if(this.selected.length){const e=[this.kind=="staged"?"reset":"add","--"].concat(this.selected.map(t=>t.name));await jt(e),this.$emit("refresh")}},async revert(){if(this.selected.length){const e=["checkout","--"].concat(this.selected.map(t=>t.name));await jt(e),this.$emit("refresh")}},async refresh(){const e=await jt(["status","--porcelain","--untracked-files=all"]);e&&this.parseStatus(e)}}}),A0={class:"workspace-file-header"},$0={class:"header-buttons"},M0=["disabled"],F0=["disabled"],I0=["disabled"],L0=["disabled"],U0={class:"workspace-file-table table-responsive"},j0={class:"table table-hover table-striped"},z0=["onClick"],H0=["onClick"],B0=["onClick"],q0=["onClick"],V0={class:"badge"};function W0(e,t,n,r,s,i){const o=te("icon"),a=te("commit-dialog"),c=te("confirm-dialog");return C(),T(ue,null,[y("div",A0,[y("span",{class:"workspace-file-header-checkbox",onClick:t[0]||(t[0]=d=>e.toggleAll())},[B(o,{icon:"check_box",state:e.items.length&&e.selected.length==e.items.length},null,8,["state"])]),y("h1",null,ie(e.kind=="unstaged"?"Unstaged files":"Staged files"),1),y("div",$0,[e.kind=="unstaged"?(C(),T("button",{key:0,onClick:t[1]||(t[1]=(...d)=>e.showRevertDialog&&e.showRevertDialog(...d)),type:"button",disabled:e.selected.length==0?"disabled":null,class:"btn btn-default"},[B(o,{icon:"rotate_left"}),Oe(" Revert ")],8,M0)):H("",!0),e.kind=="unstaged"?(C(),T("button",{key:1,onClick:t[2]||(t[2]=(...d)=>e.process&&e.process(...d)),type:"button",disabled:e.selected.length==0?"disabled":null,class:"btn btn-primary"},[B(o,{icon:"add"}),Oe(" Stage ")],8,F0)):H("",!0),e.kind!="unstaged"?(C(),T("button",{key:2,onClick:t[3]||(t[3]=(...d)=>e.process&&e.process(...d)),type:"button",disabled:e.selected.length==0?"disabled":null,class:"btn btn-default"},[B(o,{icon:"remove"}),Oe(" Unstage ")],8,I0)):H("",!0),e.kind=="staged"?(C(),T("button",{key:3,onClick:t[4]||(t[4]=(...d)=>e.showCommitDialog&&e.showCommitDialog(...d)),type:"button",disabled:e.items.length==0?"disabled":null,class:"btn btn-primary"},[B(o,{icon:"approval"}),Oe(" Commit ")],8,L0)):H("",!0)])]),y("div",U0,[y("table",j0,[y("tbody",null,[(C(!0),T(ue,null,ze(e.items,d=>(C(),T("tr",{key:d,class:Z(d.selected?"info":"")},[y("td",{class:"workspace-file-checkbox",onClick:l=>e.toggleItem(d)},[B(o,{icon:"check_box",state:d.selected},null,8,["state"])],8,z0),y("td",{class:"workspace-file-icon",onClick:l=>e.showDiff(d)},[B(o,{icon:d.icon},null,8,["icon"])],8,H0),y("td",{class:"workspace-file-name",onClick:l=>e.showDiff(d)},ie(d.name),9,B0),y("td",{class:"workspace-file-badge",onClick:l=>e.showDiff(d)},[y("span",V0,ie(d.status),1)],8,q0)],2))),128))])])]),B(a,{ref:"commitDialog",onRefresh:t[5]||(t[5]=d=>e.$emit("refresh"))},null,512),B(c,{ref:"confirmDialog",onRefresh:t[6]||(t[6]=d=>e.$emit("refresh"))},null,512)],64)}const K0=Fe(N0,[["render",W0]]),Y0=Ne({props:["linesOfContext"],data(){return{lines:We([])}},methods:{processLine(e){const t=e[0];let n="",r=!1;return!this.inFileHeader&&e.startsWith("diff --git")?(r=!0,this.inFileHeader=!0):this.inFileHeader?(r=!0,e.startsWith("+++ ")&&(n+=" diff-file-header",e=e.substring(5),e.startsWith("dev/null")&&(e=this.last.substring(5)),e[0]=="/"&&(e=e.substring(1)),r=!1,this.inFileHeader=!1)):(t=="+"?n+=" diff-line-add":t=="-"?n+=" diff-line-del":t=="@"&&(n+=" diff-line-offset"),n||(n="diff-default")),this.last=e,{classes:n,line:e,skip:r}},parseDiff(e){this.inFileHeader=!0,this.last=null,this.lines=e.split(` `).map(this.processLine),this.$emit("loaded",!0)},async showDiff(){const e=["diff","--unified="+this.linesOfContext,this.target.kind=="staged"?"--cached":null,"--",this.target.name],t=await jt(e);t&&this.parseDiff(t)},parseUntrackedFileResponse(e){const t=e.data;this.inFileHeader=!0,this.last=null;const n=t.split(` `).map(s=>"+"+s),r=["diff --git a/dev/null b/"+this.target.name,"index ...","--- a/dev/null","+++ b/"+this.target.name,"@@ -0,0 +1,"+n.length+" @@"];this.lines=r.concat(n).map(this.processLine),this.$emit("loaded",!0)},async showUntrackedFile(e){try{const t=await mt.get(dt("files/"+this.target.name),{transformResponse:n=>n});return this.parseUntrackedFileResponse(t)}catch(t){this.$emit("loaded",!1);try{const n=JSON.parse(t.response.data);bt(n.error.message)}catch{bt("Error loading file")}}},async refresh(e){this.target=e,this.target&&this.target.name?this.target.status=="untracked"?this.showUntrackedFile():this.showDiff():this.$emit("loaded",!0)}}}),G0={class:"show-diff-container"},Q0={class:"show-diff"};function J0(e,t,n,r,s,i){return C(),T("div",G0,[y("div",Q0,[(C(!0),T(ue,null,ze(e.lines,o=>(C(),T("div",null,[o.skip?H("",!0):(C(),T("div",{key:0,class:Z(o.classes)},ie(o.line),3))]))),256))])])}const X0=Fe(Y0,[["render",J0]]),Z0=Ne({components:{icon:jn,splitpanes:So,pane:xo,workspacefiles:K0,diff:X0,spinner:Gs},props:[],data(){return{loading:!1,showDiffPane:!1}},mounted(){this.refresh()},methods:{isChanged(){return!1},showDiff(e){this.loading=!0,this.$refs.diff.refresh(e)},updateLocation(){document.location.hash="workspace"},refresh(){this.showDiffPane=!1,this.$refs.unstaged.refresh(),this.$refs.staged.refresh(),this.updateLocation()},loaded(e){this.loading=!1,this.showDiffPane=e},async pull(e){await jt(["pull","--no-rebase","--ff-only"],{type:"terminal",title:"Git Pull"}),this.refresh()},async push(e){await jt(["push"],{type:"terminal",title:"Git Push"}),this.refresh()}}}),eC={class:"workspace-view"},tC={class:"breadcrumb"},nC={class:"breadcrumb-buttons"};function rC(e,t,n,r,s,i){const o=te("icon"),a=te("spinner"),c=te("workspacefiles"),d=te("pane"),l=te("diff"),f=te("splitpanes");return C(),T("div",eC,[y("ol",tC,[y("div",nC,[y("button",{onClick:t[0]||(t[0]=u=>e.pull()),type:"button",class:"btn btn-outlined"},[B(o,{icon:"keyboard_double_arrow_down"}),Oe(" Pull")]),y("button",{onClick:t[1]||(t[1]=u=>e.push()),type:"button",class:"btn btn-outlined"},[B(o,{icon:"keyboard_double_arrow_up"}),Oe(" Push")])])]),B(f,{class:"default-theme"},{default:me(()=>[B(d,{class:"workspace-file-pane",size:33},{default:me(()=>[Be(B(a,null,null,512),[[Ot,e.loading]]),B(c,{onShowDiff:e.showDiff,ref:"unstaged",kind:"unstaged",onRefresh:e.refresh},null,8,["onShowDiff","onRefresh"])]),_:1}),B(d,{class:"workspace-file-pane",size:33},{default:me(()=>[B(c,{onShowDiff:e.showDiff,ref:"staged",kind:"staged",onRefresh:e.refresh},null,8,["onShowDiff","onRefresh"])]),_:1}),B(d,{size:34,class:"workspace-show-diff-pane"},{default:me(()=>[B(l,{ref:"diff",linesOfContext:"3",onLoaded:e.loaded},null,8,["onLoaded"])]),_:1})]),_:1})])}const Wi=Fe(Z0,[["render",rC]]),sC=Ne({props:[],data(){return{message:"",title:"",type:"error",cssClass:"airflow-code-editor-modal",show:!1}},methods:{showDialog(e){return new Promise((t,n)=>{switch(this.message=e.message,this.type=e.type,this.show=!0,this.resolve=t,this.reject=n,e.type){case"error":this.title=e.title||"Error",this.cssClass="airflow-code-editor-modal";break;case"warning":this.title=e.title||"Warning",this.cssClass="airflow-code-editor-modal";break;case"terminal":this.title=e.title||"",this.cssClass="airflow-code-editor-modal airflow-code-editor-modal-terminal";break}})},close(){this.show=!1,this.resolve()}}}),iC={class:"dialog-buttons"};function oC(e,t,n,r,s,i){const o=te("modal");return C(),Qe(o,{modelValue:e.show,"onUpdate:modelValue":t[1]||(t[1]=a=>e.show=a),close:e.close},{default:me(()=>[y("div",{class:Z(e.cssClass)},[y("h1",null,ie(e.title),1),y("label",null,ie(e.message),1),y("div",iC,[y("button",{onClick:t[0]||(t[0]=(...a)=>e.close&&e.close(...a)),class:"btn btn-primary"},"Dismiss")])],2)]),_:1},8,["modelValue","close"])}const aC=Fe(sC,[["render",oC]]),lC=Ne({props:[],data(){return{target:null,show:!1}},methods:{showDialog(e){return new Promise((t,n)=>{this.target=e,this.show=!0,this.resolve=t,this.reject=n})},ok(){this.close(this.target)},cancel(){this.close()},close(e){this.show=!1,this.resolve(e)}}}),cC={class:"airflow-code-editor-modal airflow-code-editor-modal-close"},uC=y("h1",null,"Confirm Close",-1),dC=y("br",null,null,-1),fC={class:"dialog-buttons"};function hC(e,t,n,r,s,i){const o=te("modal");return C(),Qe(o,{modelValue:e.show,"onUpdate:modelValue":t[2]||(t[2]=a=>e.show=a),close:e.close},{default:me(()=>[y("div",cC,[uC,y("label",null,[Oe("Are you sure you want to close "+ie(e.target)+" ?",1),dC,Oe(" Your changed will be lost if you don't save them.")]),y("div",fC,[y("button",{onClick:t[0]||(t[0]=(...a)=>e.cancel&&e.cancel(...a)),class:"btn btn-default"},"Cancel"),y("button",{onClick:t[1]||(t[1]=(...a)=>e.ok&&e.ok(...a)),class:"btn btn-default"},"Close")])])]),_:1},8,["modelValue","close"])}const pC=Fe(lC,[["render",hC]]),zc="d15216ca-854d-4705-bff5-1887e8bf1180";class is{constructor(t,n,r){n==Wi?this.uuid=zc:this.uuid=Yp(),this.name=t,this.component=n,this.target=r,this.closed=!1}}const mC=Ne({components:{splitpanes:So,pane:xo,sidebar:rg,container:Vi,historyview:nl,workspace:Wi,search:rl,"error-dialog":aC,"close-tab-dialog":pC,"vue-simple-context-menu":Ks},data(){return{tabs:[],selectedTab:null,config:{theme:localStorage.getItem("airflow_code_editor_theme")||"default",mode:localStorage.getItem("airflow_code_editor_mode")||"default",showHiddenFiles:localStorage.getItem("airflow_code_editor_show_hidden_files")=="true",singleTab:!1},sidebarSize:190*100/jQuery(document).width(),options:[{name:'close Close',slug:"close"},{name:'cancel Close other tabs',slug:"close_others"}]}},methods:{initViews(){},show(e){if(e.id=="files"){let t=e.path!="/"?e.path:void 0,n=this.tabs.find(r=>r.target&&r.target.object==t&&r.target.type==e.type&&!r.closed);n?e.type=="tree"&&this.$refs[n.uuid][0].refresh():(n=new is(e.path,Vi,e),this.tabs.push(n)),this.selectedTab=n.uuid}else if(e.id=="workspace"){let t=this.tabs.find(n=>n.uuid==zc&&!n.closed);t?this.$refs[t.uuid][0].refresh():(t=new is("Workspace",Wi),this.tabs.push(t)),this.selectedTab=t.uuid}else if(e.id=="search"){let t=this.tabs.find(n=>n.target&&n.target.id==e.id&&n.target.query==e.query&&!n.closed);t?this.$refs[t.uuid][0].refresh():(t=new is(e.path,rl,e),this.tabs.push(t)),this.selectedTab=t.uuid}else{let t=this.tabs.find(n=>n.target&&n.target.id==e.id&&n.target.name==e.name&&!n.closed);t?this.$refs[t.uuid][0].refresh():(t=new is(e.name,nl,e),this.tabs.push(t)),this.selectedTab=t.uuid}},showError(e,t){console.log(t),t=t!==void 0?t:{},t.message=e,t.type=t.type||"error",console.log(t),this.$refs.errorDialog.showDialog(t)},showMenu(e,t){t&&this.$refs.appMainNavMenu.showMenu(e,t)},async menuOptionClicked(e){if(e.option.slug=="close_others")for(const t of this.tabs.filter(n=>n!=e.item&&!n.closed))await this.closeTab(t);else e.option.slug=="close"&&await this.closeTab(e.item)},selectTab(e){this.selectedTab=e.uuid},isChanged(e){return e?this.$refs[e.uuid][0].isChanged():!1},async closeTab(e){if(this.isChanged(e)&&!await this.$refs.closeTabDialog.showDialog(e.name))return;let t=this.activeTabs.indexOf(e);t!=-1&&(this.selectedTab==e.uuid&&(this.selectedTab=null,this.activeTabs.length==1?this.selectedTab=null:t==0?this.selectedTab=this.activeTabs[1].uuid:this.selectedTab=this.activeTabs[t-1].uuid),e.closed=!0)}},computed:{activeTabs:function(){return this.tabs.filter((e,t,n)=>!e.closed)}},mounted(){this.initViews()}}),gC={class:"app-main-nav"},bC={class:"tabs"},yC=["onClick","onContextmenu"],wC=["onClick"],vC={class:"app-main-view"};function CC(e,t,n,r,s,i){const o=te("sidebar"),a=te("pane"),c=te("vue-simple-context-menu"),d=te("error-dialog"),l=te("close-tab-dialog"),f=te("splitpanes");return C(),Qe(f,{class:"default-theme"},{default:me(()=>[B(a,{key:"1",size:e.sidebarSize},{default:me(()=>[B(o,{class:"app-sidebar",onShow:e.show,config:e.config},null,8,["onShow","config"])]),_:1},8,["size"]),B(a,{key:"2",size:100-e.sidebarSize,class:"app-main"},{default:me(()=>[Be(y("div",gC,[y("ul",bC,[(C(!0),T(ue,null,ze(e.tabs,u=>(C(),T("li",{role:"presentation",class:Z(e.selectedTab==u.uuid?"active":"")},[u.closed?H("",!0):(C(),T("a",{key:0,href:"#",onClick:ke(w=>e.selectTab(u),["stop"]),onContextmenu:ke(w=>e.showMenu(w,u),["prevent","stop"])},[Oe(ie(u.name)+" ",1),y("i",{class:"fa fa-close",onClick:ke(w=>e.closeTab(u),["stop"])},null,8,wC)],40,yC))],2))),256))]),B(c,{"element-id":"app-main-nav-menu",options:e.options,ref:"appMainNavMenu",onOptionClicked:e.menuOptionClicked},null,8,["options","onOptionClicked"])],512),[[Ot,e.activeTabs.length>1&&!e.config.singleTab]]),y("div",vC,[(C(!0),T(ue,null,ze(e.tabs,u=>(C(),T(ue,null,[u.closed?H("",!0):Be((C(),Qe(kh(u.component),{key:0,ref_for:!0,ref:u.uuid,uuid:u.uuid,config:e.config,target:u.target,"is-git":!1,onShow:e.show,onSetTab:w=>{u.name=w.name,u.target=w}},null,40,["uuid","config","target","onShow","onSetTab"])),[[Ot,e.selectedTab==u.uuid]])],64))),256))])]),_:1},8,["size"]),B(d,{ref:"errorDialog"},null,512),B(l,{ref:"closeTabDialog"},null,512)]),_:1})}const _C=Fe(mC,[["render",CC]]);window.init=function(e,t){const n="#global-container",r="#airflow-code-editor-modals";window.CodeMirror.modeURL="/static/code_editor/mode/%N/%N.js",jQuery(n).appendTo(jQuery("body"));const s=Hp(_C);s.component("vue-simple-context-menu",Ks),window.app=qm(s,n,r,e,t)};window.show=async function(e){e.startsWith("/")||(e="/"+e);const t=await mt.head(dt("tree/files"+e)),n=t.headers["x-exists"]=="true",r=t.headers["x-leaf"]=="true",s=Tc(t.headers["x-id"]),i=s[0],o="/"+(s[1]||"").trim();r||!n?window.app.show({id:i,path:o,type:"blob"}):window.app.show({id:i,path:o,type:"tree"})};window.search=async function(e){window.app.show({id:"search",path:e,query:e})}; diff --git a/src/commons.js b/src/commons.js index e931f49..ed9d30b 100644 --- a/src/commons.js +++ b/src/commons.js @@ -48,7 +48,10 @@ export function basename(path) { export function prepareHref(path) { // Return the full path of the URL - return document.location.pathname + path; + let pathname = document.location.pathname; + pathname = pathname.endsWith('/') ? pathname.slice(0, -1) : pathname; + path = path.startsWith('/') ? path.slice(1) : path; + return pathname + '/' + path; } export function splitPath(path) {