fge-auth-component 3.1.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2762,13 +2762,14 @@ const _4 = async (e) => Se.post("v1/auth/login", e).then((t) => t).catch((t) =>
|
|
|
2762
2762
|
value: P
|
|
2763
2763
|
});
|
|
2764
2764
|
}, b = (R) => {
|
|
2765
|
+
var P, D;
|
|
2765
2766
|
n.value = {
|
|
2766
2767
|
token: R.token,
|
|
2767
2768
|
refreshToken: R.tokenRefresh,
|
|
2768
|
-
funcionario: R.funcionario ? R.funcionario : void 0,
|
|
2769
|
+
funcionario: R != null && R.funcionario ? R.funcionario : void 0,
|
|
2769
2770
|
user: {
|
|
2770
2771
|
...R.usuario,
|
|
2771
|
-
nombreCompleto: R.usuario.nombreCompleto.toLowerCase(),
|
|
2772
|
+
nombreCompleto: (D = (P = R == null ? void 0 : R.usuario) == null ? void 0 : P.nombreCompleto) == null ? void 0 : D.toLowerCase(),
|
|
2772
2773
|
fotoUrl: `${i.value}/personas/fotosegip/${R.usuario.fotoRuta}?rand=${Math.random() * 100}`
|
|
2773
2774
|
},
|
|
2774
2775
|
isAuth: !0,
|
|
@@ -14,7 +14,7 @@ This will fail in production.`);l=ro,l._s.has(r)||(i?Ea(r,t,a,l):p1(r,a,l),proce
|
|
|
14
14
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...o){const r=new this(t);return o.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[z1]=this[z1]={accessors:{}}).accessors,a=this.prototype;function i(s){const l=uo(s);r[l]||(df(a,s),r[l]=!0)}return O.isArray(t)?t.forEach(i):i(t),this}}ke.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),O.reduceDescriptors(ke.prototype,({value:e},t)=>{let o=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[o]=r}}}),O.freezeMethods(ke);function Da(e,t){const o=this||co,r=t||o,a=ke.from(r.headers);let i=r.data;return O.forEach(e,function(l){i=l.call(o,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function P1(e){return!!(e&&e.__CANCEL__)}function yn(e,t,o){G.call(this,e??"canceled",G.ERR_CANCELED,t,o),this.name="CanceledError"}O.inherits(yn,G,{__CANCEL__:!0});function F1(e,t,o){const r=o.config.validateStatus;!o.status||!r||r(o.status)?e(o):t(new G("Request failed with status code "+o.status,[G.ERR_BAD_REQUEST,G.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function uf(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ff(e,t){e=e||10;const o=new Array(e),r=new Array(e);let a=0,i=0,s;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),u=r[i];s||(s=d),o[a]=c,r[a]=d;let f=i,h=0;for(;f!==a;)h+=o[f++],f=f%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),d-s<t)return;const m=u&&d-u;return m?Math.round(h*1e3/m):void 0}}function mf(e,t){let o=0,r=1e3/t,a,i;const s=(d,u=Date.now())=>{o=u,a=null,i&&(clearTimeout(i),i=null),e.apply(null,d)};return[(...d)=>{const u=Date.now(),f=u-o;f>=r?s(d,u):(a=d,i||(i=setTimeout(()=>{i=null,s(a)},r-f)))},()=>a&&s(a)]}const tr=(e,t,o=3)=>{let r=0;const a=ff(50,250);return mf(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,c=s-r,d=a(c),u=s<=l;r=s;const f={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l&&u?(l-s)/d:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},o)},j1=(e,t)=>{const o=e!=null;return[r=>t[0]({lengthComputable:o,total:e,loaded:r}),t[1]]},Y1=e=>(...t)=>O.asap(()=>e(...t)),hf=Ge.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let r;function a(i){let s=i;return t&&(o.setAttribute("href",s),s=o.href),o.setAttribute("href",s),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return r=a(window.location.href),function(s){const l=O.isString(s)?a(s):s;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}(),pf=Ge.hasStandardBrowserEnv?{write(e,t,o,r,a,i){const s=[e+"="+encodeURIComponent(t)];O.isNumber(o)&&s.push("expires="+new Date(o).toGMTString()),O.isString(r)&&s.push("path="+r),O.isString(a)&&s.push("domain="+a),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function gf(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Af(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function U1(e,t){return e&&!gf(t)?Af(e,t):t}const G1=e=>e instanceof ke?{...e}:e;function Ht(e,t){t=t||{};const o={};function r(d,u,f){return O.isPlainObject(d)&&O.isPlainObject(u)?O.merge.call({caseless:f},d,u):O.isPlainObject(u)?O.merge({},u):O.isArray(u)?u.slice():u}function a(d,u,f){if(O.isUndefined(u)){if(!O.isUndefined(d))return r(void 0,d,f)}else return r(d,u,f)}function i(d,u){if(!O.isUndefined(u))return r(void 0,u)}function s(d,u){if(O.isUndefined(u)){if(!O.isUndefined(d))return r(void 0,d)}else return r(void 0,u)}function l(d,u,f){if(f in t)return r(d,u);if(f in e)return r(void 0,d)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(d,u)=>a(G1(d),G1(u),!0)};return O.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=c[u]||a,h=f(e[u],t[u],u);O.isUndefined(h)&&f!==l||(o[u]=h)}),o}const q1=e=>{const t=Ht({},e);let{data:o,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:i,headers:s,auth:l}=t;t.headers=s=ke.from(s),t.url=R1(U1(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(O.isFormData(o)){if(Ge.hasStandardBrowserEnv||Ge.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[d,...u]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([d||"multipart/form-data",...u].join("; "))}}if(Ge.hasStandardBrowserEnv&&(r&&O.isFunction(r)&&(r=r(t)),r||r!==!1&&hf(t.url))){const d=a&&i&&pf.read(i);d&&s.set(a,d)}return t},yf=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(o,r){const a=q1(e);let i=a.data;const s=ke.from(a.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=a,u,f,h,m,g;function w(){m&&m(),g&&g(),a.cancelToken&&a.cancelToken.unsubscribe(u),a.signal&&a.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(a.method.toUpperCase(),a.url,!0),y.timeout=a.timeout;function b(){if(!y)return;const p=ke.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),C={data:!l||l==="text"||l==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:p,config:e,request:y};F1(function(v){o(v),w()},function(v){r(v),w()},C),y=null}"onloadend"in y?y.onloadend=b:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(b)},y.onabort=function(){y&&(r(new G("Request aborted",G.ECONNABORTED,e,y)),y=null)},y.onerror=function(){r(new G("Network Error",G.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let E=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const C=a.transitional||T1;a.timeoutErrorMessage&&(E=a.timeoutErrorMessage),r(new G(E,C.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,e,y)),y=null},i===void 0&&s.setContentType(null),"setRequestHeader"in y&&O.forEach(s.toJSON(),function(E,C){y.setRequestHeader(C,E)}),O.isUndefined(a.withCredentials)||(y.withCredentials=!!a.withCredentials),l&&l!=="json"&&(y.responseType=a.responseType),d&&([h,g]=tr(d,!0),y.addEventListener("progress",h)),c&&y.upload&&([f,m]=tr(c),y.upload.addEventListener("progress",f),y.upload.addEventListener("loadend",m)),(a.cancelToken||a.signal)&&(u=p=>{y&&(r(!p||p.type?new yn(null,e,y):p),y.abort(),y=null)},a.cancelToken&&a.cancelToken.subscribe(u),a.signal&&(a.signal.aborted?u():a.signal.addEventListener("abort",u)));const A=uf(a.url);if(A&&Ge.protocols.indexOf(A)===-1){r(new G("Unsupported protocol "+A+":",G.ERR_BAD_REQUEST,e));return}y.send(i||null)})},wf=(e,t)=>{let o=new AbortController,r;const a=function(c){if(!r){r=!0,s();const d=c instanceof Error?c:this.reason;o.abort(d instanceof G?d:new yn(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{a(new G(`timeout ${t} of ms exceeded`,G.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",a):c.unsubscribe(a))}),e=null)};e.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",a));const{signal:l}=o;return l.unsubscribe=s,[l,()=>{i&&clearTimeout(i),i=null}]},Ef=function*(e,t){let o=e.byteLength;if(!t||o<t){yield e;return}let r=0,a;for(;r<o;)a=r+t,yield e.slice(r,a),r=a},Cf=async function*(e,t,o){for await(const r of e)yield*Ef(ArrayBuffer.isView(r)?r:await o(String(r)),t)},H1=(e,t,o,r,a)=>{const i=Cf(e,t,a);let s=0,l,c=d=>{l||(l=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:u,value:f}=await i.next();if(u){c(),d.close();return}let h=f.byteLength;if(o){let m=s+=h;o(m)}d.enqueue(new Uint8Array(f))}catch(u){throw c(u),u}},cancel(d){return c(d),i.return()}},{highWaterMark:2})},nr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",L1=nr&&typeof ReadableStream=="function",Sa=nr&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),K1=(e,...t)=>{try{return!!e(...t)}catch{return!1}},bf=L1&&K1(()=>{let e=!1;const t=new Request(Ge.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),W1=64*1024,Qa=L1&&K1(()=>O.isReadableStream(new Response("").body)),or={stream:Qa&&(e=>e.body)};nr&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!or[t]&&(or[t]=O.isFunction(e[t])?o=>o[t]():(o,r)=>{throw new G(`Response type '${t}' is not supported`,G.ERR_NOT_SUPPORT,r)})})})(new Response);const vf=async e=>{if(e==null)return 0;if(O.isBlob(e))return e.size;if(O.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(O.isArrayBufferView(e)||O.isArrayBuffer(e))return e.byteLength;if(O.isURLSearchParams(e)&&(e=e+""),O.isString(e))return(await Sa(e)).byteLength},Bf=async(e,t)=>{const o=O.toFiniteNumber(e.getContentLength());return o??vf(t)},Na={http:Hu,xhr:yf,fetch:nr&&(async e=>{let{url:t,method:o,data:r,signal:a,cancelToken:i,timeout:s,onDownloadProgress:l,onUploadProgress:c,responseType:d,headers:u,withCredentials:f="same-origin",fetchOptions:h}=q1(e);d=d?(d+"").toLowerCase():"text";let[m,g]=a||i||s?wf([a,i],s):[],w,y;const b=()=>{!w&&setTimeout(()=>{m&&m.unsubscribe()}),w=!0};let A;try{if(c&&bf&&o!=="get"&&o!=="head"&&(A=await Bf(u,r))!==0){let B=new Request(t,{method:"POST",body:r,duplex:"half"}),v;if(O.isFormData(r)&&(v=B.headers.get("content-type"))&&u.setContentType(v),B.body){const[x,D]=j1(A,tr(Y1(c)));r=H1(B.body,W1,x,D,Sa)}}O.isString(f)||(f=f?"include":"omit"),y=new Request(t,{...h,signal:m,method:o.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:f});let p=await fetch(y);const E=Qa&&(d==="stream"||d==="response");if(Qa&&(l||E)){const B={};["status","statusText","headers"].forEach(I=>{B[I]=p[I]});const v=O.toFiniteNumber(p.headers.get("content-length")),[x,D]=l&&j1(v,tr(Y1(l),!0))||[];p=new Response(H1(p.body,W1,x,()=>{D&&D(),E&&b()},Sa),B)}d=d||"text";let C=await or[O.findKey(or,d)||"text"](p,e);return!E&&b(),g&&g(),await new Promise((B,v)=>{F1(B,v,{data:C,headers:ke.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:y})})}catch(p){throw b(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new G("Network Error",G.ERR_NETWORK,e,y),{cause:p.cause||p}):G.from(p,p&&p.code,e,y)}})};O.forEach(Na,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const J1=e=>`- ${e}`,If=e=>O.isFunction(e)||e===null||e===!1,X1={getAdapter:e=>{e=O.isArray(e)?e:[e];const{length:t}=e;let o,r;const a={};for(let i=0;i<t;i++){o=e[i];let s;if(r=o,!If(o)&&(r=Na[(s=String(o)).toLowerCase()],r===void 0))throw new G(`Unknown adapter '${s}'`);if(r)break;a[s||"#"+i]=r}if(!r){const i=Object.entries(a).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since :
|
|
15
15
|
`+i.map(J1).join(`
|
|
16
16
|
`):" "+J1(i[0]):"as no adapter specified";throw new G("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Na};function Ra(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yn(null,e)}function _1(e){return Ra(e),e.headers=ke.from(e.headers),e.data=Da.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),X1.getAdapter(e.adapter||co.adapter)(e).then(function(r){return Ra(e),r.data=Da.call(e,e.transformResponse,r),r.headers=ke.from(r.headers),r},function(r){return P1(r)||(Ra(e),r&&r.response&&(r.response.data=Da.call(e,e.transformResponse,r.response),r.response.headers=ke.from(r.response.headers))),Promise.reject(r)})}const $1="1.7.4",Va={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Va[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const el={};Va.transitional=function(t,o,r){function a(i,s){return"[Axios v"+$1+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,l)=>{if(t===!1)throw new G(a(s," has been removed"+(o?" in "+o:"")),G.ERR_DEPRECATED);return o&&!el[s]&&(el[s]=!0,console.warn(a(s," has been deprecated since v"+o+" and will be removed in the near future"))),t?t(i,s,l):!0}};function kf(e,t,o){if(typeof e!="object")throw new G("options must be an object",G.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],s=t[i];if(s){const l=e[i],c=l===void 0||s(l,i,e);if(c!==!0)throw new G("option "+i+" must be "+c,G.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new G("Unknown option "+i,G.ERR_BAD_OPTION)}}const Ta={assertOptions:kf,validators:Va},vt=Ta.validators;class Lt{constructor(t){this.defaults=t,this.interceptors={request:new V1,response:new V1}}async request(t,o){try{return await this._request(t,o)}catch(r){if(r instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
17
|
-
`+i):r.stack=i}catch{}}throw r}}_request(t,o){typeof t=="string"?(o=o||{},o.url=t):o=t||{},o=Ht(this.defaults,o);const{transitional:r,paramsSerializer:a,headers:i}=o;r!==void 0&&Ta.assertOptions(r,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean)},!1),a!=null&&(O.isFunction(a)?o.paramsSerializer={serialize:a}:Ta.assertOptions(a,{encode:vt.function,serialize:vt.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=i&&O.merge(i.common,i[o.method]);i&&O.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),o.headers=ke.concat(s,i);const l=[];let c=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(o)===!1||(c=c&&w.synchronous,l.unshift(w.fulfilled,w.rejected))});const d=[];this.interceptors.response.forEach(function(w){d.push(w.fulfilled,w.rejected)});let u,f=0,h;if(!c){const g=[_1.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,d),h=g.length,u=Promise.resolve(o);f<h;)u=u.then(g[f++],g[f++]);return u}h=l.length;let m=o;for(f=0;f<h;){const g=l[f++],w=l[f++];try{m=g(m)}catch(y){w.call(this,y);break}}try{u=_1.call(this,m)}catch(g){return Promise.reject(g)}for(f=0,h=d.length;f<h;)u=u.then(d[f++],d[f++]);return u}getUri(t){t=Ht(this.defaults,t);const o=U1(t.baseURL,t.url);return R1(o,t.params,t.paramsSerializer)}}O.forEach(["delete","get","head","options"],function(t){Lt.prototype[t]=function(o,r){return this.request(Ht(r||{},{method:t,url:o,data:(r||{}).data}))}}),O.forEach(["post","put","patch"],function(t){function o(r){return function(i,s,l){return this.request(Ht(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Lt.prototype[t]=o(),Lt.prototype[t+"Form"]=o(!0)});class Za{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(i){o=i});const r=this;this.promise.then(a=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const s=new Promise(l=>{r.subscribe(l),i=l}).then(a);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,l){r.reason||(r.reason=new yn(i,s,l),o(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 o=this._listeners.indexOf(t);o!==-1&&this._listeners.splice(o,1)}static source(){let t;return{token:new Za(function(a){t=a}),cancel:t}}}function xf(e){return function(o){return e.apply(null,o)}}function Of(e){return O.isObject(e)&&e.isAxiosError===!0}const za={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(za).forEach(([e,t])=>{za[t]=e});function tl(e){const t=new Lt(e),o=y1(Lt.prototype.request,t);return O.extend(o,Lt.prototype,t,{allOwnKeys:!0}),O.extend(o,t,null,{allOwnKeys:!0}),o.create=function(a){return tl(Ht(e,a))},o}const se=tl(co);se.Axios=Lt,se.CanceledError=yn,se.CancelToken=Za,se.isCancel=P1,se.VERSION=$1,se.toFormData=$o,se.AxiosError=G,se.Cancel=se.CanceledError,se.all=function(t){return Promise.all(t)},se.spread=xf,se.isAxiosError=Of,se.mergeConfig=Ht,se.AxiosHeaders=ke,se.formToJSON=e=>Z1(O.isHTMLForm(e)?new FormData(e):e),se.getAdapter=X1.getAdapter,se.HttpStatusCode=za,se.default=se;const le=se.create({headers:{"Content-Type":"application/json","Cache-Control":"no-cache"},timeout:15e3});le.interceptors.request.use(e=>{const t=fe();return e.baseURL=`${t.apiBaseURL}/api`,t.userState.token&&(e.headers.Authorization=`Bearer ${t.userState.token}`),e}),le.interceptors.response.use(e=>e.data.error?Promise.reject({error:!0,message:e.data.message,response:e.data.response||{},status:e.data.status||500}):e.data,e=>Promise.reject({error:!0,message:e.message,response:e.response||{},status:500}));const Mf=async e=>le.post("v1/auth/login",e).then(t=>t).catch(t=>{var o;throw(o=t.response)!=null&&o.data?t.response.data:t}),Df=async e=>le.post("v1/auth/login/confirmation",e).then(t=>t).catch(t=>{var o;throw(o=t.response)!=null&&o.data?t.response.data:t}),Sf=async()=>le.post("v1/perfil-persona/logout").then(e=>e).catch(e=>{var t;throw(t=e.response)!=null&&t.data?e.response.data:e}),Qf=async e=>le.post("v1/auth/token/refresh",e).then(t=>t).catch(t=>{var o;throw(o=t.response)!=null&&o.data?t.response.data:t}),fe=g1("LOGIN_STORE",()=>{const e=n.ref("LOGIN_STORE"),t=n.ref("login"),o=n.ref({token:void 0,refreshToken:void 0,user:void 0,funcionario:void 0,isAuth:!1,apps:[],roles:[],permisos:[],fechaCambioPassword:void 0,diasVidaPassword:void 0,cambiarPassword:!1,forzarCambioPassword:!1}),r=n.ref(null),a=n.ref(""),i=n.ref(""),s=n.ref(""),l=n.ref(""),c=n.ref(!1),d=n.ref("0.0.1"),u=n.ref(!1),f=n.ref(!1),h=()=>{t.value="login"},m=()=>{t.value="registrar"},g=()=>{t.value="recuperar-password"},w=async x=>{var k;const D=Ca(`${x.usuario}:${i.value}`),I=await Mf({...x,codigoDispositivo:D||void 0,aplicacion:i.value,verificarSiFuncionario:c.value});return(k=I.response)!=null&&k.factor2FA||b(I.response),I.response},y=async x=>{let D;const I=!!x.esDispositivoConfianza;I&&(D=au());const k=await Df({...x,codigoDispositivo:D,aplicacion:i.value,verificarSiFuncionario:c.value});b(k.response),I&&E({usuario:x.usuario,value:D})},b=x=>{o.value={token:x.token,refreshToken:x.tokenRefresh,funcionario:x.funcionario?x.funcionario:void 0,user:{...x.usuario,nombreCompleto:x.usuario.nombreCompleto.toLowerCase(),fotoUrl:`${l.value}/personas/fotosegip/${x.usuario.fotoRuta}?rand=${Math.random()*100}`},isAuth:!0,apps:x.apps,roles:x.roles,permisos:x.permisos,fechaCambioPassword:x.fechaCambioPassword,diasVidaPassword:x.diasVidaPassword,forzarCambioPassword:x.obligarCambio&&f.value,cambiarPassword:x.cambiarPassword}},A=()=>{o.value={token:void 0,refreshToken:void 0,user:void 0,funcionario:void 0,isAuth:!1,apps:[],roles:[],permisos:[],fechaCambioPassword:void 0,diasVidaPassword:void 0,forzarCambioPassword:!1,cambiarPassword:!1},r.value=null},p=x=>{var D;o.value={...o.value,user:{...o.value.user,...x,fotoUrl:x!=null&&x.fotoRuta?`${l.value}/personas/fotosegip/${x==null?void 0:x.fotoRuta}?rand=${Math.random()*100}`:(D=o.value.user)==null?void 0:D.fotoUrl}}},E=async({usuario:x,value:D,days:I=7})=>{ba({name:`${x}:${i.value}`,value:D,days:I})};return{id:e,currentPage:t,binnacleId:r,apiBaseURL:a,aplicacion:i,enableChangePassword:u,enableForceChangePwd:f,userState:o,tgBot:s,systemVer:d,verificarFunc:c,goLoginPage:h,goRegistrarPage:m,goRecuperarCont:g,onLogin:w,on2AuthLogin:y,onLoginCiudadania:async x=>{try{r.value=x.binnacleId,b(x)}catch(D){console.error(D)}},setConfigs:({newBaseURL:x,newAplicacion:D,newRrhhUrl:I,verificarSiFuncionario:k,telegramBot:Q,systemVersion:S,enableChangePasswordMsg:R,enableForceChangePassword:F})=>{a.value=x,i.value=D,l.value=I,c.value=k||!1,s.value=Q,d.value=S||"0.0.1",u.value=!!R,f.value=!!F},setDispositivoConfianzaCookie:E,clearUserData:A,updateUserData:p,onRefreshToken:async()=>{const x=await Qf({token:o.value.token,tokenRefresh:o.value.refreshToken});b(x.response)}}});function Pa(e,t){return e-t*Math.floor(e/t)}const nl=1721426;function rr(e,t,o,r){t=Fa(e,t);let a=t-1,i=-2;return o<=2?i=0:ar(t)&&(i=-1),nl-1+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*o-362)/12+i+r)}function ar(e){return e%4===0&&(e%100!==0||e%400===0)}function Fa(e,t){return e==="BC"?1-t:t}function Nf(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const Rf={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class wn{fromJulianDay(t){let o=t,r=o-nl,a=Math.floor(r/146097),i=Pa(r,146097),s=Math.floor(i/36524),l=Pa(i,36524),c=Math.floor(l/1461),d=Pa(l,1461),u=Math.floor(d/365),f=a*400+s*100+c*4+u+(s!==4&&u!==4?1:0),[h,m]=Nf(f),g=o-rr(h,m,1,1),w=2;o<rr(h,m,3,1)?w=0:ar(m)&&(w=1);let y=Math.floor(((g+w)*12+373)/367),b=o-rr(h,m,y,1)+1;return new bn(h,m,y,b)}toJulianDay(t){return rr(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return Rf[ar(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return ar(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const Vf={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Kt(e,t){return t=Ve(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Tf(e,t){return t=Ve(t,e.calendar),e=mo(e),t=mo(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function st(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function ol(e,t){return e=mo(e),t=mo(t),e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month}function Zf(e,t){return Kt(e,al(t))}function rl(e,t){let o=e.calendar.toJulianDay(e),r=Math.ceil(o+1-jf(t))%7;return r<0&&(r+=7),r}function zf(e){return ct(Date.now(),e)}function al(e){return Gf(zf(e))}function il(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Pf(e,t){return sl(e)-sl(t)}function sl(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let ja=null;function fo(){return ja==null&&(ja=new Intl.DateTimeFormat().resolvedOptions().timeZone),ja}function mo(e){return e.subtract({days:e.day-1})}function ll(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}const cl=new Map;function Ff(e){if(Intl.Locale){let o=cl.get(e);return o||(o=new Intl.Locale(e).maximize().region,o&&cl.set(e,o)),o}let t=e.split("-")[1];return t==="u"?void 0:t}function jf(e){let t=Ff(e);return t&&Vf[t]||0}function En(e){e=Ve(e,new wn);let t=Fa(e.era,e.year);return dl(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function dl(e,t,o,r,a,i,s){let l=new Date;return l.setUTCHours(r,a,i,s),l.setUTCFullYear(e,t-1,o),l.getTime()}function Ya(e,t){if(t==="UTC")return 0;if(e>0&&t===fo())return new Date(e).getTimezoneOffset()*-6e4;let{year:o,month:r,day:a,hour:i,minute:s,second:l}=fl(e,t);return dl(o,r,a,i,s,l,0)-Math.floor(e/1e3)*1e3}const ul=new Map;function fl(e,t){let o=ul.get(t);o||(o=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),ul.set(t,o));let r=o.formatToParts(new Date(e)),a={};for(let i of r)i.type!=="literal"&&(a[i.type]=i.value);return{year:a.era==="BC"||a.era==="B"?-a.year+1:+a.year,month:+a.month,day:+a.day,hour:a.hour==="24"?0:+a.hour,minute:+a.minute,second:+a.second}}const ml=864e5;function Yf(e,t,o,r){return(o===r?[o]:[o,r]).filter(i=>Uf(e,t,i))}function Uf(e,t,o){let r=fl(o,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function lt(e,t,o="compatible"){let r=Cn(e);if(t==="UTC")return En(r);if(t===fo()&&o==="compatible"){r=Ve(r,new wn);let c=new Date,d=Fa(r.era,r.year);return c.setFullYear(d,r.month-1,r.day),c.setHours(r.hour,r.minute,r.second,r.millisecond),c.getTime()}let a=En(r),i=Ya(a-ml,t),s=Ya(a+ml,t),l=Yf(r,t,a-i,a-s);if(l.length===1)return l[0];if(l.length>1)switch(o){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(o){case"earlier":return Math.min(a-i,a-s);case"compatible":case"later":return Math.max(a-i,a-s);case"reject":throw new RangeError("No such absolute time found")}}function hl(e,t,o="compatible"){return new Date(lt(e,t,o))}function ct(e,t){let o=Ya(e,t),r=new Date(e+o),a=r.getUTCFullYear(),i=r.getUTCMonth()+1,s=r.getUTCDate(),l=r.getUTCHours(),c=r.getUTCMinutes(),d=r.getUTCSeconds(),u=r.getUTCMilliseconds();return new Bn(a,i,s,t,o,l,c,d,u)}function Gf(e){return new bn(e.calendar,e.era,e.year,e.month,e.day)}function Cn(e,t){let o=0,r=0,a=0,i=0;if("timeZone"in e)({hour:o,minute:r,second:a,millisecond:i}=e);else if("hour"in e&&!t)return e;return t&&({hour:o,minute:r,second:a,millisecond:i}=t),new vn(e.calendar,e.era,e.year,e.month,e.day,o,r,a,i)}function Ve(e,t){if(e.calendar.identifier===t.identifier)return e;let o=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=o.era,r.year=o.year,r.month=o.month,r.day=o.day,Wt(r),r}function qf(e,t,o){if(e instanceof Bn)return e.timeZone===t?e:Lf(e,t);let r=lt(e,t,o);return ct(r,t)}function Hf(e){let t=En(e)-e.offset;return new Date(t)}function Lf(e,t){let o=En(e)-e.offset;return Ve(ct(o,t),e.calendar)}const ho=36e5;function ir(e,t){let o=e.copy(),r="hour"in o?Xf(o,t):0;Ua(o,t.years||0),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e),o.month+=t.months||0,Ga(o),pl(o),o.day+=(t.weeks||0)*7,o.day+=t.days||0,o.day+=r,Kf(o),o.calendar.balanceDate&&o.calendar.balanceDate(o),o.year<1&&(o.year=1,o.month=1,o.day=1);let a=o.calendar.getYearsInEra(o);if(o.year>a){var i,s;let c=(i=(s=o.calendar).isInverseEra)===null||i===void 0?void 0:i.call(s,o);o.year=a,o.month=c?1:o.calendar.getMonthsInYear(o),o.day=c?1:o.calendar.getDaysInMonth(o)}o.month<1&&(o.month=1,o.day=1);let l=o.calendar.getMonthsInYear(o);return o.month>l&&(o.month=l,o.day=o.calendar.getDaysInMonth(o)),o.day=Math.max(1,Math.min(o.calendar.getDaysInMonth(o),o.day)),o}function Ua(e,t){var o,r;!((o=(r=e.calendar).isInverseEra)===null||o===void 0)&&o.call(r,e)&&(t=-t),e.year+=t}function Ga(e){for(;e.month<1;)Ua(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Ua(e,1)}function Kf(e){for(;e.day<1;)e.month--,Ga(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Ga(e)}function pl(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Wt(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),pl(e)}function gl(e){let t={};for(let o in e)typeof e[o]=="number"&&(t[o]=-e[o]);return t}function Al(e,t){return ir(e,gl(t))}function qa(e,t){let o=e.copy();return t.era!=null&&(o.era=t.era),t.year!=null&&(o.year=t.year),t.month!=null&&(o.month=t.month),t.day!=null&&(o.day=t.day),Wt(o),o}function sr(e,t){let o=e.copy();return t.hour!=null&&(o.hour=t.hour),t.minute!=null&&(o.minute=t.minute),t.second!=null&&(o.second=t.second),t.millisecond!=null&&(o.millisecond=t.millisecond),Jf(o),o}function Wf(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=lr(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=lr(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=lr(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=lr(e.hour,24),t}function Jf(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function lr(e,t){let o=e%t;return o<0&&(o+=t),o}function Xf(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,Wf(e)}function Ha(e,t,o,r){let a=e.copy();switch(t){case"era":{let l=e.calendar.getEras(),c=l.indexOf(e.era);if(c<0)throw new Error("Invalid era: "+e.era);c=dt(c,o,0,l.length-1,r==null?void 0:r.round),a.era=l[c],Wt(a);break}case"year":var i,s;!((i=(s=a.calendar).isInverseEra)===null||i===void 0)&&i.call(s,a)&&(o=-o),a.year=dt(e.year,o,-1/0,9999,r==null?void 0:r.round),a.year===-1/0&&(a.year=1),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,e);break;case"month":a.month=dt(e.month,o,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":a.day=dt(e.day,o,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(a),Wt(a),a}function yl(e,t,o,r){let a=e.copy();switch(t){case"hour":{let i=e.hour,s=0,l=23;if((r==null?void 0:r.hourCycle)===12){let c=i>=12;s=c?12:0,l=c?23:11}a.hour=dt(i,o,s,l,r==null?void 0:r.round);break}case"minute":a.minute=dt(e.minute,o,0,59,r==null?void 0:r.round);break;case"second":a.second=dt(e.second,o,0,59,r==null?void 0:r.round);break;case"millisecond":a.millisecond=dt(e.millisecond,o,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return a}function dt(e,t,o,r,a=!1){if(a){e+=Math.sign(t),e<o&&(e=r);let i=Math.abs(t);t>0?e=Math.ceil(e/i)*i:e=Math.floor(e/i)*i,e>r&&(e=o)}else e+=t,e<o?e=r-(o-e-1):e>r&&(e=o+(e-r-1));return e}function wl(e,t){let o;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let a=ir(Cn(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});o=lt(a,e.timeZone)}else o=En(e)-e.offset;o+=t.milliseconds||0,o+=(t.seconds||0)*1e3,o+=(t.minutes||0)*6e4,o+=(t.hours||0)*36e5;let r=ct(o,e.timeZone);return Ve(r,e.calendar)}function _f(e,t){return wl(e,gl(t))}function $f(e,t,o,r){switch(t){case"hour":{let a=0,i=23;if((r==null?void 0:r.hourCycle)===12){let g=e.hour>=12;a=g?12:0,i=g?23:11}let s=Cn(e),l=Ve(sr(s,{hour:a}),new wn),c=[lt(l,e.timeZone,"earlier"),lt(l,e.timeZone,"later")].filter(g=>ct(g,e.timeZone).day===l.day)[0],d=Ve(sr(s,{hour:i}),new wn),u=[lt(d,e.timeZone,"earlier"),lt(d,e.timeZone,"later")].filter(g=>ct(g,e.timeZone).day===d.day).pop(),f=En(e)-e.offset,h=Math.floor(f/ho),m=f%ho;return f=dt(h,o,Math.floor(c/ho),Math.floor(u/ho),r==null?void 0:r.round)*ho+m,Ve(ct(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return yl(e,t,o,r);case"era":case"year":case"month":case"day":{let a=Ha(Cn(e),t,o,r),i=lt(a,e.timeZone);return Ve(ct(i,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function e0(e,t,o){let r=Cn(e),a=sr(qa(r,t),t);if(a.compare(r)===0)return e;let i=lt(a,e.timeZone,o);return Ve(ct(i,e.timeZone),e.calendar)}function t0(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function El(e){let t=Ve(e,new wn);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Cl(e){return`${El(e)}T${t0(e)}`}function n0(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let o=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(o).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function o0(e){return`${Cl(e)}${n0(e.offset)}[${e.timeZone}]`}function r0(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function La(e,t,o){r0(e,t),t.set(e,o)}function Ka(e){let t=typeof e[0]=="object"?e.shift():new wn,o;if(typeof e[0]=="string")o=e.shift();else{let s=t.getEras();o=s[s.length-1]}let r=e.shift(),a=e.shift(),i=e.shift();return[t,o,r,a,i]}var a0=new WeakMap;class bn{copy(){return this.era?new bn(this.calendar,this.era,this.year,this.month,this.day):new bn(this.calendar,this.year,this.month,this.day)}add(t){return ir(this,t)}subtract(t){return Al(this,t)}set(t){return qa(this,t)}cycle(t,o,r){return Ha(this,t,o,r)}toDate(t){return hl(this,t)}toString(){return El(this)}compare(t){return il(this,t)}constructor(...t){La(this,a0,{writable:!0,value:void 0});let[o,r,a,i,s]=Ka(t);this.calendar=o,this.era=r,this.year=a,this.month=i,this.day=s,Wt(this)}}var i0=new WeakMap;class vn{copy(){return this.era?new vn(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new vn(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return ir(this,t)}subtract(t){return Al(this,t)}set(t){return qa(sr(this,t),t)}cycle(t,o,r){switch(t){case"era":case"year":case"month":case"day":return Ha(this,t,o,r);default:return yl(this,t,o,r)}}toDate(t,o){return hl(this,t,o)}toString(){return Cl(this)}compare(t){let o=il(this,t);return o===0?Pf(this,Cn(t)):o}constructor(...t){La(this,i0,{writable:!0,value:void 0});let[o,r,a,i,s]=Ka(t);this.calendar=o,this.era=r,this.year=a,this.month=i,this.day=s,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Wt(this)}}var s0=new WeakMap;class Bn{copy(){return this.era?new Bn(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Bn(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return wl(this,t)}subtract(t){return _f(this,t)}set(t,o){return e0(this,t,o)}cycle(t,o,r){return $f(this,t,o,r)}toDate(){return Hf(this)}toString(){return o0(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-qf(t,this.timeZone).toDate().getTime()}constructor(...t){La(this,s0,{writable:!0,value:void 0});let[o,r,a,i,s]=Ka(t),l=t.shift(),c=t.shift();this.calendar=o,this.era=r,this.year=a,this.month=i,this.day=s,this.timeZone=l,this.offset=c,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Wt(this)}}let Wa=new Map;class Bt{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,o){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,o);if(o<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(o)}`}formatRangeToParts(t,o){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,o);if(o<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),a=this.formatter.formatToParts(o);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...a.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return d0()&&(this.resolvedHourCycle||(this.resolvedHourCycle=u0(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,o={}){this.formatter=bl(t,o),this.options=o}}const l0={true:{ja:"h11"},false:{}};function bl(e,t={}){if(typeof t.hour12=="boolean"&&c0()){t={...t};let a=l0[String(t.hour12)][e.split("-")[0]],i=t.hour12?"h12":"h23";t.hourCycle=a??i,delete t.hour12}let o=e+(t?Object.entries(t).sort((a,i)=>a[0]<i[0]?-1:1).join():"");if(Wa.has(o))return Wa.get(o);let r=new Intl.DateTimeFormat(e,t);return Wa.set(o,r),r}let Ja=null;function c0(){return Ja==null&&(Ja=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Ja}let Xa=null;function d0(){return Xa==null&&(Xa=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Xa}function u0(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let o=bl(e,{...t,timeZone:void 0}),r=parseInt(o.formatToParts(new Date(2020,2,3,0)).find(i=>i.type==="hour").value,10),a=parseInt(o.formatToParts(new Date(2020,2,3,23)).find(i=>i.type==="hour").value,10);if(r===0&&a===23)return"h23";if(r===24&&a===23)return"h24";if(r===0&&a===11)return"h11";if(r===12&&a===11)return"h12";throw new Error("Unexpected hour cycle result")}function f0(e,t){const o=[];for(let r=0;r<e.length;r+=t)o.push(e.slice(r,r+t));return o}function Te(e,t=fo()){return cr(e)?e.toDate():e.toDate(t)}function m0(e){return e instanceof vn}function cr(e){return e instanceof Bn}function _a(e){return m0(e)||cr(e)}function It(e){if(e instanceof Date){const t=e.getFullYear(),o=e.getMonth()+1;return new Date(t,o,0).getDate()}else return e.set({day:100}).day}function In(e,t){return e.compare(t)<0}function dr(e,t){return e.compare(t)>0}function h0(e,t,o){const r=rl(e,o);return t>r?e.subtract({days:r+7-t}):t===r?e:e.subtract({days:r-t})}function p0(e,t,o){const r=rl(e,o),a=t===0?6:t-1;return r===a?e:r>a?e.add({days:7-r+a}):e.add({days:a-r})}function vl(e,t){const o=[];let r=e.add({days:1});const a=t;for(;r.compare(a)<0;)o.push(r),r=r.add({days:1});return o}function $a(e){const{dateObj:t,weekStartsOn:o,fixedWeeks:r,locale:a}=e,i=It(t),s=Array.from({length:i},(y,b)=>t.set({day:b+1})),l=mo(t),c=ll(t),d=h0(l,o,a),u=p0(c,o,a),f=vl(d.subtract({days:1}),l),h=vl(c,u.add({days:1})),m=f.length+s.length+h.length;if(r&&m<42){const y=42-m;let b=h[h.length-1];b||(b=ll(t));const A=Array.from({length:y},(p,E)=>{const C=E+1;return b.add({days:C})});h.push(...A)}const g=f.concat(s,h),w=f0(g,7);return{value:t,cells:g,rows:w}}function Jt(e){const{numberOfMonths:t,dateObj:o,...r}=e,a=[];if(!t||t===1)return a.push($a({...r,dateObj:o})),a;a.push($a({...r,dateObj:o}));for(let i=1;i<t;i++){const s=o.add({months:i});a.push($a({...r,dateObj:s}))}return a}const g0=["top","right","bottom","left"],tt=Math.min,De=Math.max,ur=Math.round,fr=Math.floor,kt=e=>({x:e,y:e}),A0={left:"right",right:"left",bottom:"top",top:"bottom"},y0={start:"end",end:"start"};function ei(e,t,o){return De(e,tt(t,o))}function ut(e,t){return typeof e=="function"?e(t):e}function ft(e){return e.split("-")[0]}function kn(e){return e.split("-")[1]}function ti(e){return e==="x"?"y":"x"}function ni(e){return e==="y"?"height":"width"}function xt(e){return["top","bottom"].includes(ft(e))?"y":"x"}function oi(e){return ti(xt(e))}function w0(e,t,o){o===void 0&&(o=!1);const r=kn(e),a=oi(e),i=ni(a);let s=a==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=mr(s)),[s,mr(s)]}function E0(e){const t=mr(e);return[ri(e),t,ri(t)]}function ri(e){return e.replace(/start|end/g,t=>y0[t])}function C0(e,t,o){const r=["left","right"],a=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return o?t?a:r:t?r:a;case"left":case"right":return t?i:s;default:return[]}}function b0(e,t,o,r){const a=kn(e);let i=C0(ft(e),o==="start",r);return a&&(i=i.map(s=>s+"-"+a),t&&(i=i.concat(i.map(ri)))),i}function mr(e){return e.replace(/left|right|bottom|top/g,t=>A0[t])}function v0(e){return{top:0,right:0,bottom:0,left:0,...e}}function Bl(e){return typeof e!="number"?v0(e):{top:e,right:e,bottom:e,left:e}}function hr(e){const{x:t,y:o,width:r,height:a}=e;return{width:r,height:a,top:o,left:t,right:t+r,bottom:o+a,x:t,y:o}}function Il(e,t,o){let{reference:r,floating:a}=e;const i=xt(t),s=oi(t),l=ni(s),c=ft(t),d=i==="y",u=r.x+r.width/2-a.width/2,f=r.y+r.height/2-a.height/2,h=r[l]/2-a[l]/2;let m;switch(c){case"top":m={x:u,y:r.y-a.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-a.width,y:f};break;default:m={x:r.x,y:r.y}}switch(kn(t)){case"start":m[s]-=h*(o&&d?-1:1);break;case"end":m[s]+=h*(o&&d?-1:1);break}return m}const B0=async(e,t,o)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:s}=o,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:f}=Il(d,r,c),h=r,m={},g=0;for(let w=0;w<l.length;w++){const{name:y,fn:b}=l[w],{x:A,y:p,data:E,reset:C}=await b({x:u,y:f,initialPlacement:r,placement:h,strategy:a,middlewareData:m,rects:d,platform:s,elements:{reference:e,floating:t}});u=A??u,f=p??f,m={...m,[y]:{...m[y],...E}},C&&g<=50&&(g++,typeof C=="object"&&(C.placement&&(h=C.placement),C.rects&&(d=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:a}):C.rects),{x:u,y:f}=Il(d,h,c)),w=-1)}return{x:u,y:f,placement:h,strategy:a,middlewareData:m}};async function po(e,t){var o;t===void 0&&(t={});const{x:r,y:a,platform:i,rects:s,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=ut(t,e),g=Bl(m),y=l[h?f==="floating"?"reference":"floating":f],b=hr(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(y)))==null||o?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:d,rootBoundary:u,strategy:c})),A=f==="floating"?{x:r,y:a,width:s.floating.width,height:s.floating.height}:s.reference,p=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),E=await(i.isElement==null?void 0:i.isElement(p))?await(i.getScale==null?void 0:i.getScale(p))||{x:1,y:1}:{x:1,y:1},C=hr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:A,offsetParent:p,strategy:c}):A);return{top:(b.top-C.top+g.top)/E.y,bottom:(C.bottom-b.bottom+g.bottom)/E.y,left:(b.left-C.left+g.left)/E.x,right:(C.right-b.right+g.right)/E.x}}const I0=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:r,placement:a,rects:i,platform:s,elements:l,middlewareData:c}=t,{element:d,padding:u=0}=ut(e,t)||{};if(d==null)return{};const f=Bl(u),h={x:o,y:r},m=oi(a),g=ni(m),w=await s.getDimensions(d),y=m==="y",b=y?"top":"left",A=y?"bottom":"right",p=y?"clientHeight":"clientWidth",E=i.reference[g]+i.reference[m]-h[m]-i.floating[g],C=h[m]-i.reference[m],B=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let v=B?B[p]:0;(!v||!await(s.isElement==null?void 0:s.isElement(B)))&&(v=l.floating[p]||i.floating[g]);const x=E/2-C/2,D=v/2-w[g]/2-1,I=tt(f[b],D),k=tt(f[A],D),Q=I,S=v-w[g]-k,R=v/2-w[g]/2+x,F=ei(Q,R,S),K=!c.arrow&&kn(a)!=null&&R!==F&&i.reference[g]/2-(R<Q?I:k)-w[g]/2<0,U=K?R<Q?R-Q:R-S:0;return{[m]:h[m]+U,data:{[m]:F,centerOffset:R-F-U,...K&&{alignmentOffset:U}},reset:K}}}),k0=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,r;const{placement:a,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:w=!0,...y}=ut(e,t);if((o=i.arrow)!=null&&o.alignmentOffset)return{};const b=ft(a),A=xt(l),p=ft(l)===l,E=await(c.isRTL==null?void 0:c.isRTL(d.floating)),C=h||(p||!w?[mr(l)]:E0(l)),B=g!=="none";!h&&B&&C.push(...b0(l,w,g,E));const v=[l,...C],x=await po(t,y),D=[];let I=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&D.push(x[b]),f){const R=w0(a,s,E);D.push(x[R[0]],x[R[1]])}if(I=[...I,{placement:a,overflows:D}],!D.every(R=>R<=0)){var k,Q;const R=(((k=i.flip)==null?void 0:k.index)||0)+1,F=v[R];if(F)return{data:{index:R,overflows:I},reset:{placement:F}};let K=(Q=I.filter(U=>U.overflows[0]<=0).sort((U,N)=>U.overflows[1]-N.overflows[1])[0])==null?void 0:Q.placement;if(!K)switch(m){case"bestFit":{var S;const U=(S=I.filter(N=>{if(B){const $=xt(N.placement);return $===A||$==="y"}return!0}).map(N=>[N.placement,N.overflows.filter($=>$>0).reduce(($,Et)=>$+Et,0)]).sort((N,$)=>N[1]-$[1])[0])==null?void 0:S[0];U&&(K=U);break}case"initialPlacement":K=l;break}if(a!==K)return{reset:{placement:K}}}return{}}}};function kl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xl(e){return g0.some(t=>e[t]>=0)}const x0=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:o}=t,{strategy:r="referenceHidden",...a}=ut(e,t);switch(r){case"referenceHidden":{const i=await po(t,{...a,elementContext:"reference"}),s=kl(i,o.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:xl(s)}}}case"escaped":{const i=await po(t,{...a,altBoundary:!0}),s=kl(i,o.floating);return{data:{escapedOffsets:s,escaped:xl(s)}}}default:return{}}}}};async function O0(e,t){const{placement:o,platform:r,elements:a}=e,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),s=ft(o),l=kn(o),c=xt(o)==="y",d=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,f=ut(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof g=="number"&&(m=l==="end"?g*-1:g),c?{x:m*u,y:h*d}:{x:h*d,y:m*u}}const M0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,r;const{x:a,y:i,placement:s,middlewareData:l}=t,c=await O0(t,e);return s===((o=l.offset)==null?void 0:o.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:a+c.x,y:i+c.y,data:{...c,placement:s}}}}},D0=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:r,placement:a}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:y=>{let{x:b,y:A}=y;return{x:b,y:A}}},...c}=ut(e,t),d={x:o,y:r},u=await po(t,c),f=xt(ft(a)),h=ti(f);let m=d[h],g=d[f];if(i){const y=h==="y"?"top":"left",b=h==="y"?"bottom":"right",A=m+u[y],p=m-u[b];m=ei(A,m,p)}if(s){const y=f==="y"?"top":"left",b=f==="y"?"bottom":"right",A=g+u[y],p=g-u[b];g=ei(A,g,p)}const w=l.fn({...t,[h]:m,[f]:g});return{...w,data:{x:w.x-o,y:w.y-r}}}}},S0=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:o,y:r,placement:a,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=ut(e,t),u={x:o,y:r},f=xt(a),h=ti(f);let m=u[h],g=u[f];const w=ut(l,t),y=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(c){const p=h==="y"?"height":"width",E=i.reference[h]-i.floating[p]+y.mainAxis,C=i.reference[h]+i.reference[p]-y.mainAxis;m<E?m=E:m>C&&(m=C)}if(d){var b,A;const p=h==="y"?"width":"height",E=["top","left"].includes(ft(a)),C=i.reference[f]-i.floating[p]+(E&&((b=s.offset)==null?void 0:b[f])||0)+(E?0:y.crossAxis),B=i.reference[f]+i.reference[p]+(E?0:((A=s.offset)==null?void 0:A[f])||0)-(E?y.crossAxis:0);g<C?g=C:g>B&&(g=B)}return{[h]:m,[f]:g}}}},Q0=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:o,rects:r,platform:a,elements:i}=t,{apply:s=()=>{},...l}=ut(e,t),c=await po(t,l),d=ft(o),u=kn(o),f=xt(o)==="y",{width:h,height:m}=r.floating;let g,w;d==="top"||d==="bottom"?(g=d,w=u===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(w=d,g=u==="end"?"top":"bottom");const y=m-c.top-c.bottom,b=h-c.left-c.right,A=tt(m-c[g],y),p=tt(h-c[w],b),E=!t.middlewareData.shift;let C=A,B=p;if(f?B=u||E?tt(p,b):b:C=u||E?tt(A,y):y,E&&!u){const x=De(c.left,0),D=De(c.right,0),I=De(c.top,0),k=De(c.bottom,0);f?B=h-2*(x!==0||D!==0?x+D:De(c.left,c.right)):C=m-2*(I!==0||k!==0?I+k:De(c.top,c.bottom))}await s({...t,availableWidth:B,availableHeight:C});const v=await a.getDimensions(i.floating);return h!==v.width||m!==v.height?{reset:{rects:!0}}:{}}}};function Xt(e){return ai(e)?(e.nodeName||"").toLowerCase():"#document"}function Se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function mt(e){var t;return(t=(ai(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ai(e){return e instanceof Node||e instanceof Se(e).Node}function qe(e){return e instanceof Element||e instanceof Se(e).Element}function nt(e){return e instanceof HTMLElement||e instanceof Se(e).HTMLElement}function Ol(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Se(e).ShadowRoot}function go(e){const{overflow:t,overflowX:o,overflowY:r,display:a}=He(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&!["inline","contents"].includes(a)}function N0(e){return["table","td","th"].includes(Xt(e))}function pr(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function ii(e){const t=si(),o=qe(e)?He(e):e;return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(o.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(o.contain||"").includes(r))}function R0(e){let t=Ot(e);for(;nt(t)&&!xn(t);){if(ii(t))return t;if(pr(t))return null;t=Ot(t)}return null}function si(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function xn(e){return["html","body","#document"].includes(Xt(e))}function He(e){return Se(e).getComputedStyle(e)}function gr(e){return qe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ot(e){if(Xt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ol(e)&&e.host||mt(e);return Ol(t)?t.host:t}function Ml(e){const t=Ot(e);return xn(t)?e.ownerDocument?e.ownerDocument.body:e.body:nt(t)&&go(t)?t:Ml(t)}function Ao(e,t,o){var r;t===void 0&&(t=[]),o===void 0&&(o=!0);const a=Ml(e),i=a===((r=e.ownerDocument)==null?void 0:r.body),s=Se(a);if(i){const l=li(s);return t.concat(s,s.visualViewport||[],go(a)?a:[],l&&o?Ao(l):[])}return t.concat(a,Ao(a,[],o))}function li(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Dl(e){const t=He(e);let o=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=nt(e),i=a?e.offsetWidth:o,s=a?e.offsetHeight:r,l=ur(o)!==i||ur(r)!==s;return l&&(o=i,r=s),{width:o,height:r,$:l}}function ci(e){return qe(e)?e:e.contextElement}function On(e){const t=ci(e);if(!nt(t))return kt(1);const o=t.getBoundingClientRect(),{width:r,height:a,$:i}=Dl(t);let s=(i?ur(o.width):o.width)/r,l=(i?ur(o.height):o.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const V0=kt(0);function Sl(e){const t=Se(e);return!si()||!t.visualViewport?V0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function T0(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==Se(e)?!1:t}function _t(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);const a=e.getBoundingClientRect(),i=ci(e);let s=kt(1);t&&(r?qe(r)&&(s=On(r)):s=On(e));const l=T0(i,o,r)?Sl(i):kt(0);let c=(a.left+l.x)/s.x,d=(a.top+l.y)/s.y,u=a.width/s.x,f=a.height/s.y;if(i){const h=Se(i),m=r&&qe(r)?Se(r):r;let g=h,w=li(g);for(;w&&r&&m!==g;){const y=On(w),b=w.getBoundingClientRect(),A=He(w),p=b.left+(w.clientLeft+parseFloat(A.paddingLeft))*y.x,E=b.top+(w.clientTop+parseFloat(A.paddingTop))*y.y;c*=y.x,d*=y.y,u*=y.x,f*=y.y,c+=p,d+=E,g=Se(w),w=li(g)}}return hr({width:u,height:f,x:c,y:d})}function Z0(e){let{elements:t,rect:o,offsetParent:r,strategy:a}=e;const i=a==="fixed",s=mt(r),l=t?pr(t.floating):!1;if(r===s||l&&i)return o;let c={scrollLeft:0,scrollTop:0},d=kt(1);const u=kt(0),f=nt(r);if((f||!f&&!i)&&((Xt(r)!=="body"||go(s))&&(c=gr(r)),nt(r))){const h=_t(r);d=On(r),u.x=h.x+r.clientLeft,u.y=h.y+r.clientTop}return{width:o.width*d.x,height:o.height*d.y,x:o.x*d.x-c.scrollLeft*d.x+u.x,y:o.y*d.y-c.scrollTop*d.y+u.y}}function z0(e){return Array.from(e.getClientRects())}function Ql(e){return _t(mt(e)).left+gr(e).scrollLeft}function P0(e){const t=mt(e),o=gr(e),r=e.ownerDocument.body,a=De(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=De(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-o.scrollLeft+Ql(e);const l=-o.scrollTop;return He(r).direction==="rtl"&&(s+=De(t.clientWidth,r.clientWidth)-a),{width:a,height:i,x:s,y:l}}function F0(e,t){const o=Se(e),r=mt(e),a=o.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,c=0;if(a){i=a.width,s=a.height;const d=si();(!d||d&&t==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:i,height:s,x:l,y:c}}function j0(e,t){const o=_t(e,!0,t==="fixed"),r=o.top+e.clientTop,a=o.left+e.clientLeft,i=nt(e)?On(e):kt(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,c=a*i.x,d=r*i.y;return{width:s,height:l,x:c,y:d}}function Nl(e,t,o){let r;if(t==="viewport")r=F0(e,o);else if(t==="document")r=P0(mt(e));else if(qe(t))r=j0(t,o);else{const a=Sl(e);r={...t,x:t.x-a.x,y:t.y-a.y}}return hr(r)}function Rl(e,t){const o=Ot(e);return o===t||!qe(o)||xn(o)?!1:He(o).position==="fixed"||Rl(o,t)}function Y0(e,t){const o=t.get(e);if(o)return o;let r=Ao(e,[],!1).filter(l=>qe(l)&&Xt(l)!=="body"),a=null;const i=He(e).position==="fixed";let s=i?Ot(e):e;for(;qe(s)&&!xn(s);){const l=He(s),c=ii(s);!c&&l.position==="fixed"&&(a=null),(i?!c&&!a:!c&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||go(s)&&!c&&Rl(e,s))?r=r.filter(u=>u!==s):a=l,s=Ot(s)}return t.set(e,r),r}function U0(e){let{element:t,boundary:o,rootBoundary:r,strategy:a}=e;const s=[...o==="clippingAncestors"?pr(t)?[]:Y0(t,this._c):[].concat(o),r],l=s[0],c=s.reduce((d,u)=>{const f=Nl(t,u,a);return d.top=De(f.top,d.top),d.right=tt(f.right,d.right),d.bottom=tt(f.bottom,d.bottom),d.left=De(f.left,d.left),d},Nl(t,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function G0(e){const{width:t,height:o}=Dl(e);return{width:t,height:o}}function q0(e,t,o){const r=nt(t),a=mt(t),i=o==="fixed",s=_t(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=kt(0);if(r||!r&&!i)if((Xt(t)!=="body"||go(a))&&(l=gr(t)),r){const f=_t(t,!0,i,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else a&&(c.x=Ql(a));const d=s.left+l.scrollLeft-c.x,u=s.top+l.scrollTop-c.y;return{x:d,y:u,width:s.width,height:s.height}}function di(e){return He(e).position==="static"}function Vl(e,t){return!nt(e)||He(e).position==="fixed"?null:t?t(e):e.offsetParent}function Tl(e,t){const o=Se(e);if(pr(e))return o;if(!nt(e)){let a=Ot(e);for(;a&&!xn(a);){if(qe(a)&&!di(a))return a;a=Ot(a)}return o}let r=Vl(e,t);for(;r&&N0(r)&&di(r);)r=Vl(r,t);return r&&xn(r)&&di(r)&&!ii(r)?o:r||R0(e)||o}const H0=async function(e){const t=this.getOffsetParent||Tl,o=this.getDimensions,r=await o(e.floating);return{reference:q0(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function L0(e){return He(e).direction==="rtl"}const K0={convertOffsetParentRelativeRectToViewportRelativeRect:Z0,getDocumentElement:mt,getClippingRect:U0,getOffsetParent:Tl,getElementRects:H0,getClientRects:z0,getDimensions:G0,getScale:On,isElement:qe,isRTL:L0};function W0(e,t){let o=null,r;const a=mt(e);function i(){var l;clearTimeout(r),(l=o)==null||l.disconnect(),o=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const{left:d,top:u,width:f,height:h}=e.getBoundingClientRect();if(l||t(),!f||!h)return;const m=fr(u),g=fr(a.clientWidth-(d+f)),w=fr(a.clientHeight-(u+h)),y=fr(d),A={rootMargin:-m+"px "+-g+"px "+-w+"px "+-y+"px",threshold:De(0,tt(1,c))||1};let p=!0;function E(C){const B=C[0].intersectionRatio;if(B!==c){if(!p)return s();B?s(!1,B):r=setTimeout(()=>{s(!1,1e-7)},1e3)}p=!1}try{o=new IntersectionObserver(E,{...A,root:a.ownerDocument})}catch{o=new IntersectionObserver(E,A)}o.observe(e)}return s(!0),i}function J0(e,t,o,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=ci(e),u=a||i?[...d?Ao(d):[],...Ao(t)]:[];u.forEach(b=>{a&&b.addEventListener("scroll",o,{passive:!0}),i&&b.addEventListener("resize",o)});const f=d&&l?W0(d,o):null;let h=-1,m=null;s&&(m=new ResizeObserver(b=>{let[A]=b;A&&A.target===d&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var p;(p=m)==null||p.observe(t)})),o()}),d&&!c&&m.observe(d),m.observe(t));let g,w=c?_t(e):null;c&&y();function y(){const b=_t(e);w&&(b.x!==w.x||b.y!==w.y||b.width!==w.width||b.height!==w.height)&&o(),w=b,g=requestAnimationFrame(y)}return o(),()=>{var b;u.forEach(A=>{a&&A.removeEventListener("scroll",o),i&&A.removeEventListener("resize",o)}),f==null||f(),(b=m)==null||b.disconnect(),m=null,c&&cancelAnimationFrame(g)}}const X0=M0,_0=D0,Zl=k0,$0=Q0,e4=x0,t4=I0,n4=S0,o4=(e,t,o)=>{const r=new Map,a={platform:K0,...o},i={...a.platform,_c:r};return B0(e,t,{...a,platform:i})};function r4(e){return e!=null&&typeof e=="object"&&"$el"in e}function ui(e){if(r4(e)){const t=e.$el;return ai(t)&&Xt(t)==="#comment"?null:t}return e}function Mn(e){return typeof e=="function"?e():n.unref(e)}function a4(e){return{name:"arrow",options:e,fn(t){const o=ui(Mn(e.element));return o==null?{}:t4({element:o,padding:e.padding}).fn(t)}}}function zl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Pl(e,t){const o=zl(e);return Math.round(t*o)/o}function i4(e,t,o){o===void 0&&(o={});const r=o.whileElementsMounted,a=n.computed(()=>{var v;return(v=Mn(o.open))!=null?v:!0}),i=n.computed(()=>Mn(o.middleware)),s=n.computed(()=>{var v;return(v=Mn(o.placement))!=null?v:"bottom"}),l=n.computed(()=>{var v;return(v=Mn(o.strategy))!=null?v:"absolute"}),c=n.computed(()=>{var v;return(v=Mn(o.transform))!=null?v:!0}),d=n.computed(()=>ui(e.value)),u=n.computed(()=>ui(t.value)),f=n.ref(0),h=n.ref(0),m=n.ref(l.value),g=n.ref(s.value),w=n.shallowRef({}),y=n.ref(!1),b=n.computed(()=>{const v={position:m.value,left:"0",top:"0"};if(!u.value)return v;const x=Pl(u.value,f.value),D=Pl(u.value,h.value);return c.value?{...v,transform:"translate("+x+"px, "+D+"px)",...zl(u.value)>=1.5&&{willChange:"transform"}}:{position:m.value,left:x+"px",top:D+"px"}});let A;function p(){d.value==null||u.value==null||o4(d.value,u.value,{middleware:i.value,placement:s.value,strategy:l.value}).then(v=>{f.value=v.x,h.value=v.y,m.value=v.strategy,g.value=v.placement,w.value=v.middlewareData,y.value=!0})}function E(){typeof A=="function"&&(A(),A=void 0)}function C(){if(E(),r===void 0){p();return}if(d.value!=null&&u.value!=null){A=r(d.value,u.value,p);return}}function B(){a.value||(y.value=!1)}return n.watch([i,s,l],p,{flush:"sync"}),n.watch([d,u],C,{flush:"sync"}),n.watch(a,B,{flush:"sync"}),n.getCurrentScope()&&n.onScopeDispose(E),{x:n.shallowReadonly(f),y:n.shallowReadonly(h),strategy:n.shallowReadonly(m),placement:n.shallowReadonly(g),middlewareData:n.shallowReadonly(w),isPositioned:n.shallowReadonly(y),floatingStyles:b,update:p}}function re(e,t){const o=typeof e=="string"&&!t?`${e}Context`:t,r=Symbol(o);return[a=>{const i=n.inject(r,a);if(i||i===null)return i;throw new Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},a=>(n.provide(r,a),a)]}function Fl(e,t,o){const r=o.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:o});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(a)}function fi(e){const{defaultValue:t,defaultPlaceholder:o,granularity:r="day"}=e;if(Array.isArray(t)&&t.length)return t.at(-1).copy();if(t&&!Array.isArray(t))return t.copy();if(o)return o.copy();const a=new Date,i=a.getFullYear(),s=a.getMonth()+1,l=a.getDate();return["hour","minute","second"].includes(r??"day")?new vn(i,s,l,0,0,0):new bn(i,s,l)}const s4=["ach","af","am","an","ar","ast","az","be","bg","bn","br","bs","ca","cak","ckb","cs","cy","da","de","dsb","el","en","eo","es","et","eu","fa","ff","fi","fr","fy","ga","gd","gl","he","hr","hsb","hu","ia","id","it","ja","ka","kk","kn","ko","lb","lo","lt","lv","meh","ml","ms","nl","nn","no","oc","pl","pt","rm","ro","ru","sc","scn","sk","sl","sr","sv","szl","tg","th","tr","uk","zh-CN","zh-TW"],l4=["year","month","day"],mi={ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}};function c4(e){if(jl(e))return mi[e];{const t=m4(e);return jl(t)?mi[t]:mi.en}}function hi(e,t,o){return d4(e)?c4(o)[e]:f4(e)?t:u4(e)?"––":""}function jl(e){return s4.includes(e)}function d4(e){return l4.includes(e)}function u4(e){return e==="hour"||e==="minute"||e==="second"}function f4(e){return e==="era"||e==="dayPeriod"}function m4(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const pi=["day","month","year"],Yl=["hour","minute","second","dayPeriod"],Ul=[...pi,...Yl];function h4(e){return pi.includes(e)}function Gl(e){return Ul.includes(e)}function p4(e,t){const o={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short",hourCycle:t===24?"h24":void 0,hour12:t===24?!1:void 0};return e==="day"&&(delete o.second,delete o.hour,delete o.minute,delete o.timeZoneName),e==="hour"&&(delete o.minute,delete o.second),e==="minute"&&delete o.second,o}function g4(e){const t=e.querySelector("[data-selected]");if(t)return t.focus();const o=e.querySelector("[data-today]");if(o)return o.focus();const r=e.querySelector("[data-radix-vue-calendar-day]");if(r)return r.focus()}function A4(e,t){var o;const r=n.shallowRef();return n.watchEffect(()=>{r.value=e()},{...t,flush:(o=void 0)!=null?o:"sync"}),n.readonly(r)}function yo(e){return n.getCurrentScope()?(n.onScopeDispose(e),!0):!1}function y4(){const e=new Set,t=o=>{e.delete(o)};return{on:o=>{e.add(o);const r=()=>t(o);return yo(r),{off:r}},off:t,trigger:(...o)=>Promise.all(Array.from(e).map(r=>r(...o)))}}function w4(e){let t=!1,o;const r=n.effectScope(!0);return(...a)=>(t||(o=r.run(()=>e(...a)),t=!0),o)}function ql(e){let t=0,o,r;const a=()=>{t-=1,r&&t<=0&&(r.stop(),o=void 0,r=void 0)};return(...i)=>(t+=1,o||(r=n.effectScope(!0),o=r.run(()=>e(...i))),yo(a),o)}function Mt(e){return typeof e=="function"?e():n.unref(e)}const ht=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const E4=e=>typeof e<"u",C4=Object.prototype.toString,b4=e=>C4.call(e)==="[object Object]",v4=()=>{},Hl=B4();function B4(){var e,t;return ht&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function I4(e){return n.getCurrentInstance()}function Ll(e,t=1e4){return n.customRef((o,r)=>{let a=Mt(e),i;const s=()=>setTimeout(()=>{a=Mt(e),r()},Mt(t));return yo(()=>{clearTimeout(i)}),{get(){return o(),a},set(l){a=l,r(),clearTimeout(i),i=s()}}})}function k4(e,t){I4()&&n.onBeforeUnmount(e,t)}function Kl(e,t,o={}){const{immediate:r=!0}=o,a=n.ref(!1);let i=null;function s(){i&&(clearTimeout(i),i=null)}function l(){a.value=!1,s()}function c(...d){s(),a.value=!0,i=setTimeout(()=>{a.value=!1,i=null,e(...d)},Mt(t))}return r&&(a.value=!0,ht&&c()),yo(l),{isPending:n.readonly(a),start:c,stop:l}}function Dt(e){var t;const o=Mt(e);return(t=o==null?void 0:o.$el)!=null?t:o}const Wl=ht?window:void 0;function St(...e){let t,o,r,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([o,r,a]=e,t=Wl):[t,o,r,a]=e,!t)return v4;Array.isArray(o)||(o=[o]),Array.isArray(r)||(r=[r]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,f,h,m)=>(u.addEventListener(f,h,m),()=>u.removeEventListener(f,h,m)),c=n.watch(()=>[Dt(t),Mt(a)],([u,f])=>{if(s(),!u)return;const h=b4(f)?{...f}:f;i.push(...o.flatMap(m=>r.map(g=>l(u,m,g,h))))},{immediate:!0,flush:"post"}),d=()=>{c(),s()};return yo(d),d}function x4(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function O4(...e){let t,o,r={};e.length===3?(t=e[0],o=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,o=e[0],r=e[1]):(t=e[0],o=e[1]):(t=!0,o=e[0]);const{target:a=Wl,eventName:i="keydown",passive:s=!1,dedupe:l=!1}=r,c=x4(t);return St(a,i,d=>{d.repeat&&Mt(l)||c(d)&&o(d)},s)}function M4(){const e=n.ref(!1),t=n.getCurrentInstance();return t&&n.onMounted(()=>{e.value=!0},t),e}function D4(e){return JSON.parse(JSON.stringify(e))}function he(e,t,o,r={}){var a,i,s;const{clone:l=!1,passive:c=!1,eventName:d,deep:u=!1,defaultValue:f,shouldEmit:h}=r,m=n.getCurrentInstance(),g=o||(m==null?void 0:m.emit)||((a=m==null?void 0:m.$emit)==null?void 0:a.bind(m))||((s=(i=m==null?void 0:m.proxy)==null?void 0:i.$emit)==null?void 0:s.bind(m==null?void 0:m.proxy));let w=d;t||(t="modelValue"),w=w||`update:${t.toString()}`;const y=p=>l?typeof l=="function"?l(p):D4(p):p,b=()=>E4(e[t])?y(e[t]):f,A=p=>{h?h(p)&&g(w,p):g(w,p)};if(c){const p=b(),E=n.ref(p);let C=!1;return n.watch(()=>e[t],B=>{C||(C=!0,E.value=y(B),n.nextTick(()=>C=!1))}),n.watch(E,B=>{!C&&(B!==e[t]||u)&&A(B)},{deep:u}),E}else return n.computed({get(){return b()},set(p){A(p)}})}function gi(e){return e?e.flatMap(t=>t.type===n.Fragment?gi(t.children):[t]):[]}const S4=["INPUT","TEXTAREA"];function Q4(e,t,o,r={}){if(!t||r.enableIgnoredElement&&S4.includes(t.nodeName))return null;const{arrowKeyOptions:a="both",attributeName:i="[data-radix-vue-collection-item]",itemsArray:s=[],loop:l=!0,dir:c="ltr",preventScroll:d=!0,focus:u=!1}=r,[f,h,m,g,w,y]=[e.key==="ArrowRight",e.key==="ArrowLeft",e.key==="ArrowUp",e.key==="ArrowDown",e.key==="Home",e.key==="End"],b=m||g,A=f||h;if(!w&&!y&&(!b&&!A||a==="vertical"&&A||a==="horizontal"&&b))return null;const p=o?Array.from(o.querySelectorAll(i)):s;if(!p.length)return null;d&&e.preventDefault();let E=null;return A||b?E=Jl(p,t,{goForward:b?g:c==="ltr"?f:h,loop:l}):w?E=p.at(0)||null:y&&(E=p.at(-1)||null),u&&(E==null||E.focus()),E}function Jl(e,t,o,r=e.length){if(--r===0)return null;const a=e.indexOf(t),i=o.goForward?a+1:a-1;if(!o.loop&&(i<0||i>=e.length))return null;const s=(i+e.length)%e.length,l=e[s];return l?l.hasAttribute("disabled")&&l.getAttribute("disabled")!=="false"?Jl(e,l,o,r):l:null}function Ai(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function yi(e,t,o=".",r){if(!Ai(t))return yi(e,{},o);const a=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const s=e[i];s!=null&&(Array.isArray(s)&&Array.isArray(a[i])?a[i]=[...s,...a[i]]:Ai(s)&&Ai(a[i])?a[i]=yi(s,a[i],(o?`${o}.`:"")+i.toString()):a[i]=s)}return a}function N4(e){return(...t)=>t.reduce((o,r)=>yi(o,r,""),{})}const R4=N4(),[wi,SC]=re("ConfigProvider");let V4="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",T4=(e=21)=>{let t="",o=e;for(;o--;)t+=V4[Math.random()*64|0];return t};const Z4=ql(()=>{const e=n.ref(new Map),t=n.ref(),o=n.computed(()=>{for(const s of e.value.values())if(s)return!0;return!1}),r=wi({scrollBody:n.ref(!0)});let a=null;const i=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.body.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",Hl&&(a==null||a()),t.value=void 0};return n.watch(o,(s,l)=>{var c;if(!ht)return;if(!s){l&&i();return}t.value===void 0&&(t.value=document.body.style.overflow);const d=window.innerWidth-document.documentElement.clientWidth,u={padding:d,margin:0},f=(c=r.scrollBody)!=null&&c.value?typeof r.scrollBody.value=="object"?R4({padding:r.scrollBody.value.padding===!0?d:r.scrollBody.value.padding,margin:r.scrollBody.value.margin===!0?d:r.scrollBody.value.margin},u):u:{padding:0,margin:0};d>0&&(document.body.style.paddingRight=`${f.padding}px`,document.body.style.marginRight=`${f.margin}px`,document.body.style.setProperty("--scrollbar-width",`${d}px`),document.body.style.overflow="hidden"),Hl&&(a=St(document,"touchmove",h=>{var m;h.target===document.documentElement&&(h.touches.length>1||(m=h.preventDefault)==null||m.call(h))},{passive:!1})),n.nextTick(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),e});function Ei(e){const t=T4(6),o=Z4();o.value.set(t,e??!1);const r=n.computed({get:()=>o.value.get(t)??!1,set:a=>o.value.set(t,a)});return k4(()=>{o.value.delete(t)}),r}const z4="data-radix-vue-collection-item";function P4(e,t=z4){const o=Symbol();return{createCollection:r=>{const a=n.ref([]);function i(){const s=Dt(r);return s?a.value=Array.from(s.querySelectorAll(`[${t}]:not([data-disabled])`)):a.value=[]}return n.onBeforeUpdate(()=>{a.value=[]}),n.onMounted(i),n.onUpdated(i),n.watch(()=>r==null?void 0:r.value,i,{immediate:!0}),n.provide(o,a),a},injectCollection:()=>n.inject(o,n.ref([]))}}function Xl(e){const t=n.ref(e);function o(){return t.value}function r(w){t.value=w}function a(w,y){return new Bt(t.value,y).format(w)}function i(w,y=!0){return _a(w)&&y?a(Te(w),{dateStyle:"long",timeStyle:"long"}):a(Te(w),{dateStyle:"long"})}function s(w,y={}){return new Bt(t.value,{month:"long",year:"numeric",...y}).format(w)}function l(w,y={}){return new Bt(t.value,{month:"long",...y}).format(w)}function c(){const w=al(fo());return[1,2,3,4,5,6,7,8,9,10,11,12].map(y=>({label:l(Te(w.set({month:y}))),value:y}))}function d(w,y={}){return new Bt(t.value,{year:"numeric",...y}).format(w)}function u(w,y){return cr(w)?new Bt(t.value,{...y,timeZone:w.timeZone}).formatToParts(Te(w)):new Bt(t.value,y).formatToParts(Te(w))}function f(w,y="narrow"){return new Bt(t.value,{weekday:y}).format(w)}function h(w){var y;return((y=new Bt(t.value,{hour:"numeric",minute:"numeric"}).formatToParts(w).find(b=>b.type==="dayPeriod"))==null?void 0:y.value)==="PM"?"PM":"AM"}const m={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"};function g(w,y,b={}){const A={...m,...b},p=u(w,A).find(E=>E.type===y);return p?p.value:""}return{setLocale:r,getLocale:o,fullMonth:l,fullYear:d,fullMonthAndYear:s,toParts:u,custom:a,part:g,dayPeriod:h,selectedDate:i,dayOfWeek:f,getMonths:c}}function $t(e){const t=wi({dir:n.ref("ltr")});return n.computed(()=>{var o;return(e==null?void 0:e.value)||((o=t.dir)==null?void 0:o.value)||"ltr"})}function wo(e){const t=n.getCurrentInstance(),o=t==null?void 0:t.type.emits,r={};return o!=null&&o.length||console.warn(`No emitted event found. Please check component: ${t==null?void 0:t.type.__name}`),o==null||o.forEach(a=>{r[n.toHandlerKey(n.camelize(a))]=(...i)=>e(a,...i)}),r}let Ci=0;function _l(){n.watchEffect(e=>{if(!ht)return;const t=document.querySelectorAll("[data-radix-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??$l()),document.body.insertAdjacentElement("beforeend",t[1]??$l()),Ci++,e(()=>{Ci===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Ci--})})}function $l(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}function bi(e){return n.computed(()=>{var t;return Mt(e)?!!((t=Dt(e))!=null&&t.closest("form")):!0})}function vi(e){const t=n.getCurrentInstance(),o=Object.keys((t==null?void 0:t.type.props)??{}).reduce((a,i)=>{const s=(t==null?void 0:t.type.props[i]).default;return s!==void 0&&(a[i]=s),a},{}),r=n.toRef(e);return n.computed(()=>{const a={},i=(t==null?void 0:t.vnode.props)??{};return Object.keys(i).forEach(s=>{a[n.camelize(s)]=i[s]}),Object.keys({...o,...a}).reduce((s,l)=>(r.value[l]!==void 0&&(s[l]=r.value[l]),s),{})})}function pt(e,t){const o=vi(e),r=t?wo(t):{};return n.computed(()=>({...o.value,...r}))}function P(){const e=n.getCurrentInstance(),t=n.ref(),o=n.computed(()=>{var s,l;return["#text","#comment"].includes((s=t.value)==null?void 0:s.$el.nodeName)?(l=t.value)==null?void 0:l.$el.nextElementSibling:Dt(t)}),r=Object.assign({},e.exposed),a={};for(const s in e.props)Object.defineProperty(a,s,{enumerable:!0,configurable:!0,get:()=>e.props[s]});if(Object.keys(r).length>0)for(const s in r)Object.defineProperty(a,s,{enumerable:!0,configurable:!0,get:()=>r[s]});Object.defineProperty(a,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=a;function i(s){t.value=s,!(s instanceof Element||!s)&&(Object.defineProperty(a,"$el",{enumerable:!0,configurable:!0,get:()=>s.$el}),e.exposed=a)}return{forwardRef:i,currentRef:t,currentElement:o}}function F4(e,t){const o=Ll(!1,300),r=n.ref(null),a=y4();function i(){r.value=null,o.value=!1}function s(l,c){const d=l.currentTarget,u={x:l.clientX,y:l.clientY},f=j4(u,d.getBoundingClientRect()),h=Y4(u,f),m=U4(c.getBoundingClientRect()),g=q4([...h,...m]);r.value=g,o.value=!0}return n.watchEffect(l=>{if(e.value&&t.value){const c=u=>s(u,t.value),d=u=>s(u,e.value);e.value.addEventListener("pointerleave",c),t.value.addEventListener("pointerleave",d),l(()=>{var u,f;(u=e.value)==null||u.removeEventListener("pointerleave",c),(f=t.value)==null||f.removeEventListener("pointerleave",d)})}}),n.watchEffect(l=>{if(r.value){const c=d=>{var u,f;if(!r.value)return;const h=d.target,m={x:d.clientX,y:d.clientY},g=((u=e.value)==null?void 0:u.contains(h))||((f=t.value)==null?void 0:f.contains(h)),w=!G4(m,r.value),y=h.hasAttribute("data-grace-area-trigger");g?i():(w||y)&&(i(),a.trigger())};document.addEventListener("pointermove",c),l(()=>document.removeEventListener("pointermove",c))}}),{isPointerInTransit:o,onPointerExit:a.on}}function j4(e,t){const o=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(o,r,a,i)){case i:return"left";case a:return"right";case o:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Y4(e,t,o=5){const r=[];switch(t){case"top":r.push({x:e.x-o,y:e.y+o},{x:e.x+o,y:e.y+o});break;case"bottom":r.push({x:e.x-o,y:e.y-o},{x:e.x+o,y:e.y-o});break;case"left":r.push({x:e.x+o,y:e.y-o},{x:e.x+o,y:e.y+o});break;case"right":r.push({x:e.x-o,y:e.y-o},{x:e.x-o,y:e.y+o});break}return r}function U4(e){const{top:t,right:o,bottom:r,left:a}=e;return[{x:a,y:t},{x:o,y:t},{x:o,y:r},{x:a,y:r}]}function G4(e,t){const{x:o,y:r}=e;let a=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const l=t[i].x,c=t[i].y,d=t[s].x,u=t[s].y;c>r!=u>r&&o<(d-l)*(r-c)/(u-c)+l&&(a=!a)}return a}function q4(e){const t=e.slice();return t.sort((o,r)=>o.x<r.x?-1:o.x>r.x?1:o.y<r.y?-1:o.y>r.y?1:0),H4(t)}function H4(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const a=e[r];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(a.y-s.y)>=(i.y-s.y)*(a.x-s.x))t.pop();else break}t.push(a)}t.pop();const o=[];for(let r=e.length-1;r>=0;r--){const a=e[r];for(;o.length>=2;){const i=o[o.length-1],s=o[o.length-2];if((i.x-s.x)*(a.y-s.y)>=(i.y-s.y)*(a.x-s.x))o.pop();else break}o.push(a)}return o.pop(),t.length===1&&o.length===1&&t[0].x===o[0].x&&t[0].y===o[0].y?t:t.concat(o)}var L4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Dn=new WeakMap,Ar=new WeakMap,yr={},Bi=0,ec=function(e){return e&&(e.host||ec(e.parentNode))},K4=function(e,t){return t.map(function(o){if(e.contains(o))return o;var r=ec(o);return r&&e.contains(r)?r:(console.error("aria-hidden",o,"in not contained inside",e,". Doing nothing"),null)}).filter(function(o){return!!o})},W4=function(e,t,o,r){var a=K4(t,Array.isArray(e)?e:[e]);yr[o]||(yr[o]=new WeakMap);var i=yr[o],s=[],l=new Set,c=new Set(a),d=function(f){!f||l.has(f)||(l.add(f),d(f.parentNode))};a.forEach(d);var u=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(h){if(l.has(h))u(h);else try{var m=h.getAttribute(r),g=m!==null&&m!=="false",w=(Dn.get(h)||0)+1,y=(i.get(h)||0)+1;Dn.set(h,w),i.set(h,y),s.push(h),w===1&&g&&Ar.set(h,!0),y===1&&h.setAttribute(o,"true"),g||h.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return u(t),l.clear(),Bi++,function(){s.forEach(function(f){var h=Dn.get(f)-1,m=i.get(f)-1;Dn.set(f,h),i.set(f,m),h||(Ar.has(f)||f.removeAttribute(r),Ar.delete(f)),m||f.removeAttribute(o)}),Bi--,Bi||(Dn=new WeakMap,Dn=new WeakMap,Ar=new WeakMap,yr={})}},J4=function(e,t,o){o===void 0&&(o="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=L4(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live]"))),W4(r,a,o,"aria-hidden")):function(){return null}};function Ii(e){let t;n.watch(()=>Dt(e),o=>{o?t=J4(o):t&&t()}),n.onUnmounted(()=>{t&&t()})}let X4=0;function Qt(e,t="radix"){const{useId:o}=wi({useId:void 0});return o&&typeof o=="function"?`${t}-${o()}`:`${t}-${++X4}`}function _4(e){const t=n.ref(),o=n.computed(()=>{var a;return((a=t.value)==null?void 0:a.width)??0}),r=n.computed(()=>{var a;return((a=t.value)==null?void 0:a.height)??0});return n.onMounted(()=>{const a=Dt(e);if(a){t.value={width:a.offsetWidth,height:a.offsetHeight};const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const l=s[0];let c,d;if("borderBoxSize"in l){const u=l.borderBoxSize,f=Array.isArray(u)?u[0]:u;c=f.inlineSize,d=f.blockSize}else c=a.offsetWidth,d=a.offsetHeight;t.value={width:c,height:d}});return i.observe(a,{box:"border-box"}),()=>i.unobserve(a)}else t.value=void 0}),{width:o,height:r}}function $4(e,t){const o=n.ref(e);function r(a){return t[o.value][a]??o.value}return{state:o,dispatch:a=>{o.value=r(a)}}}function e5(e){const t=Ll("",1e3);return{search:t,handleTypeaheadSearch:(o,r)=>{var a,i;if(!(e!=null&&e.value)&&!r)return;t.value=t.value+o;const s=(e==null?void 0:e.value)??r,l=document.activeElement,c=((i=(a=s.find(h=>h===l))==null?void 0:a.textContent)==null?void 0:i.trim())??"",d=s.map(h=>{var m;return((m=h.textContent)==null?void 0:m.trim())??""}),u=n5(d,t.value,c),f=s.find(h=>{var m;return((m=h.textContent)==null?void 0:m.trim())===u});return f&&f.focus(),f},resetTypeahead:()=>{t.value=""}}}function t5(e,t){return e.map((o,r)=>e[(t+r)%e.length])}function n5(e,t,o){const r=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,a=o?e.indexOf(o):-1;let i=t5(e,Math.max(a,0));r.length===1&&(i=i.filter(l=>l!==o));const s=i.find(l=>l.toLowerCase().startsWith(r.toLowerCase()));return s!==o?s:void 0}function Eo(){return{ALT:"Alt",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",CAPS_LOCK:"CapsLock",CONTROL:"Control",DELETE:"Delete",END:"End",ENTER:"Enter",ESCAPE:"Escape",F1:"F1",F10:"F10",F11:"F11",F12:"F12",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",HOME:"Home",META:"Meta",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT:"Shift",SPACE:" ",TAB:"Tab",CTRL:"Control",ASTERISK:"*",SPACE_CODE:"Space"}}const ki=n.defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:o}){return()=>{var r,a;if(!o.default)return null;const i=gi(o.default()),s=i.findIndex(u=>u.type!==n.Comment);if(s===-1)return i;const l=i[s];(r=l.props)==null||delete r.ref;const c=l.props?n.mergeProps(t,l.props):t;t.class&&(a=l.props)!=null&&a.class&&delete l.props.class;const d=n.cloneVNode(l,c);for(const u in c)u.startsWith("on")&&(d.props||(d.props={}),d.props[u]=c[u]);return i.length===1?d:(i[s]=d,i)}}}),H=n.defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:o}){const r=e.asChild?"template":e.as;return typeof r=="string"&&["area","img","input"].includes(r)?()=>n.h(r,t):r!=="template"?()=>n.h(e.as,t,{default:o.default}):()=>n.h(ki,t,{default:o.default})}});function Co(){const e=n.ref(),t=n.computed(()=>{var o,r;return["#text","#comment"].includes((o=e.value)==null?void 0:o.$el.nodeName)?(r=e.value)==null?void 0:r.$el.nextElementSibling:Dt(e)});return{primitiveElement:e,currentElement:t}}function o5(e,t){const o=n.ref({}),r=n.ref("none"),a=e.value?"mounted":"unmounted",{state:i,dispatch:s}=$4(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),l=h=>{var m;if(ht){const g=new CustomEvent(h,{bubbles:!1,cancelable:!1});(m=t.value)==null||m.dispatchEvent(g)}};n.watch(e,async(h,m)=>{var g;const w=m!==h;if(await n.nextTick(),w){const y=r.value,b=wr(t.value);h?(s("MOUNT"),l("enter"),b==="none"&&l("after-enter")):b==="none"||((g=o.value)==null?void 0:g.display)==="none"?(s("UNMOUNT"),l("leave"),l("after-leave")):m&&y!==b?(s("ANIMATION_OUT"),l("leave")):(s("UNMOUNT"),l("after-leave"))}},{immediate:!0});const c=h=>{const m=wr(t.value),g=m.includes(h.animationName),w=i.value==="mounted"?"enter":"leave";h.target===t.value&&g&&(l(`after-${w}`),s("ANIMATION_END")),h.target===t.value&&m==="none"&&s("ANIMATION_END")},d=h=>{h.target===t.value&&(r.value=wr(t.value))},u=n.watch(t,(h,m)=>{h?(o.value=getComputedStyle(h),h.addEventListener("animationstart",d),h.addEventListener("animationcancel",c),h.addEventListener("animationend",c)):(s("ANIMATION_END"),m==null||m.removeEventListener("animationstart",d),m==null||m.removeEventListener("animationcancel",c),m==null||m.removeEventListener("animationend",c))},{immediate:!0}),f=n.watch(i,()=>{const h=wr(t.value);r.value=i.value==="mounted"?h:"none"});return n.onUnmounted(()=>{u(),f()}),{isPresent:n.computed(()=>["mounted","unmountSuspended"].includes(i.value))}}function wr(e){return e&&getComputedStyle(e).animationName||"none"}const en=n.defineComponent({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:o}){var r;const{present:a,forceMount:i}=n.toRefs(e),s=n.ref(),{isPresent:l}=o5(a,s);o({present:l});let c=t.default({present:l});c=gi(c||[]);const d=n.getCurrentInstance();if(c&&(c==null?void 0:c.length)>1){const u=(r=d==null?void 0:d.parent)!=null&&r.type.name?`<${d.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${u}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(f=>` - ${f}`).join(`
|
|
17
|
+
`+i):r.stack=i}catch{}}throw r}}_request(t,o){typeof t=="string"?(o=o||{},o.url=t):o=t||{},o=Ht(this.defaults,o);const{transitional:r,paramsSerializer:a,headers:i}=o;r!==void 0&&Ta.assertOptions(r,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean)},!1),a!=null&&(O.isFunction(a)?o.paramsSerializer={serialize:a}:Ta.assertOptions(a,{encode:vt.function,serialize:vt.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=i&&O.merge(i.common,i[o.method]);i&&O.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),o.headers=ke.concat(s,i);const l=[];let c=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(o)===!1||(c=c&&w.synchronous,l.unshift(w.fulfilled,w.rejected))});const d=[];this.interceptors.response.forEach(function(w){d.push(w.fulfilled,w.rejected)});let u,f=0,h;if(!c){const g=[_1.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,d),h=g.length,u=Promise.resolve(o);f<h;)u=u.then(g[f++],g[f++]);return u}h=l.length;let m=o;for(f=0;f<h;){const g=l[f++],w=l[f++];try{m=g(m)}catch(y){w.call(this,y);break}}try{u=_1.call(this,m)}catch(g){return Promise.reject(g)}for(f=0,h=d.length;f<h;)u=u.then(d[f++],d[f++]);return u}getUri(t){t=Ht(this.defaults,t);const o=U1(t.baseURL,t.url);return R1(o,t.params,t.paramsSerializer)}}O.forEach(["delete","get","head","options"],function(t){Lt.prototype[t]=function(o,r){return this.request(Ht(r||{},{method:t,url:o,data:(r||{}).data}))}}),O.forEach(["post","put","patch"],function(t){function o(r){return function(i,s,l){return this.request(Ht(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Lt.prototype[t]=o(),Lt.prototype[t+"Form"]=o(!0)});class Za{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(i){o=i});const r=this;this.promise.then(a=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const s=new Promise(l=>{r.subscribe(l),i=l}).then(a);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,l){r.reason||(r.reason=new yn(i,s,l),o(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 o=this._listeners.indexOf(t);o!==-1&&this._listeners.splice(o,1)}static source(){let t;return{token:new Za(function(a){t=a}),cancel:t}}}function xf(e){return function(o){return e.apply(null,o)}}function Of(e){return O.isObject(e)&&e.isAxiosError===!0}const za={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(za).forEach(([e,t])=>{za[t]=e});function tl(e){const t=new Lt(e),o=y1(Lt.prototype.request,t);return O.extend(o,Lt.prototype,t,{allOwnKeys:!0}),O.extend(o,t,null,{allOwnKeys:!0}),o.create=function(a){return tl(Ht(e,a))},o}const se=tl(co);se.Axios=Lt,se.CanceledError=yn,se.CancelToken=Za,se.isCancel=P1,se.VERSION=$1,se.toFormData=$o,se.AxiosError=G,se.Cancel=se.CanceledError,se.all=function(t){return Promise.all(t)},se.spread=xf,se.isAxiosError=Of,se.mergeConfig=Ht,se.AxiosHeaders=ke,se.formToJSON=e=>Z1(O.isHTMLForm(e)?new FormData(e):e),se.getAdapter=X1.getAdapter,se.HttpStatusCode=za,se.default=se;const le=se.create({headers:{"Content-Type":"application/json","Cache-Control":"no-cache"},timeout:15e3});le.interceptors.request.use(e=>{const t=fe();return e.baseURL=`${t.apiBaseURL}/api`,t.userState.token&&(e.headers.Authorization=`Bearer ${t.userState.token}`),e}),le.interceptors.response.use(e=>e.data.error?Promise.reject({error:!0,message:e.data.message,response:e.data.response||{},status:e.data.status||500}):e.data,e=>Promise.reject({error:!0,message:e.message,response:e.response||{},status:500}));const Mf=async e=>le.post("v1/auth/login",e).then(t=>t).catch(t=>{var o;throw(o=t.response)!=null&&o.data?t.response.data:t}),Df=async e=>le.post("v1/auth/login/confirmation",e).then(t=>t).catch(t=>{var o;throw(o=t.response)!=null&&o.data?t.response.data:t}),Sf=async()=>le.post("v1/perfil-persona/logout").then(e=>e).catch(e=>{var t;throw(t=e.response)!=null&&t.data?e.response.data:e}),Qf=async e=>le.post("v1/auth/token/refresh",e).then(t=>t).catch(t=>{var o;throw(o=t.response)!=null&&o.data?t.response.data:t}),fe=g1("LOGIN_STORE",()=>{const e=n.ref("LOGIN_STORE"),t=n.ref("login"),o=n.ref({token:void 0,refreshToken:void 0,user:void 0,funcionario:void 0,isAuth:!1,apps:[],roles:[],permisos:[],fechaCambioPassword:void 0,diasVidaPassword:void 0,cambiarPassword:!1,forzarCambioPassword:!1}),r=n.ref(null),a=n.ref(""),i=n.ref(""),s=n.ref(""),l=n.ref(""),c=n.ref(!1),d=n.ref("0.0.1"),u=n.ref(!1),f=n.ref(!1),h=()=>{t.value="login"},m=()=>{t.value="registrar"},g=()=>{t.value="recuperar-password"},w=async x=>{var k;const D=Ca(`${x.usuario}:${i.value}`),I=await Mf({...x,codigoDispositivo:D||void 0,aplicacion:i.value,verificarSiFuncionario:c.value});return(k=I.response)!=null&&k.factor2FA||b(I.response),I.response},y=async x=>{let D;const I=!!x.esDispositivoConfianza;I&&(D=au());const k=await Df({...x,codigoDispositivo:D,aplicacion:i.value,verificarSiFuncionario:c.value});b(k.response),I&&E({usuario:x.usuario,value:D})},b=x=>{var D,I;o.value={token:x.token,refreshToken:x.tokenRefresh,funcionario:x!=null&&x.funcionario?x.funcionario:void 0,user:{...x.usuario,nombreCompleto:(I=(D=x==null?void 0:x.usuario)==null?void 0:D.nombreCompleto)==null?void 0:I.toLowerCase(),fotoUrl:`${l.value}/personas/fotosegip/${x.usuario.fotoRuta}?rand=${Math.random()*100}`},isAuth:!0,apps:x.apps,roles:x.roles,permisos:x.permisos,fechaCambioPassword:x.fechaCambioPassword,diasVidaPassword:x.diasVidaPassword,forzarCambioPassword:x.obligarCambio&&f.value,cambiarPassword:x.cambiarPassword}},A=()=>{o.value={token:void 0,refreshToken:void 0,user:void 0,funcionario:void 0,isAuth:!1,apps:[],roles:[],permisos:[],fechaCambioPassword:void 0,diasVidaPassword:void 0,forzarCambioPassword:!1,cambiarPassword:!1},r.value=null},p=x=>{var D;o.value={...o.value,user:{...o.value.user,...x,fotoUrl:x!=null&&x.fotoRuta?`${l.value}/personas/fotosegip/${x==null?void 0:x.fotoRuta}?rand=${Math.random()*100}`:(D=o.value.user)==null?void 0:D.fotoUrl}}},E=async({usuario:x,value:D,days:I=7})=>{ba({name:`${x}:${i.value}`,value:D,days:I})};return{id:e,currentPage:t,binnacleId:r,apiBaseURL:a,aplicacion:i,enableChangePassword:u,enableForceChangePwd:f,userState:o,tgBot:s,systemVer:d,verificarFunc:c,goLoginPage:h,goRegistrarPage:m,goRecuperarCont:g,onLogin:w,on2AuthLogin:y,onLoginCiudadania:async x=>{try{r.value=x.binnacleId,b(x)}catch(D){console.error(D)}},setConfigs:({newBaseURL:x,newAplicacion:D,newRrhhUrl:I,verificarSiFuncionario:k,telegramBot:Q,systemVersion:S,enableChangePasswordMsg:R,enableForceChangePassword:F})=>{a.value=x,i.value=D,l.value=I,c.value=k||!1,s.value=Q,d.value=S||"0.0.1",u.value=!!R,f.value=!!F},setDispositivoConfianzaCookie:E,clearUserData:A,updateUserData:p,onRefreshToken:async()=>{const x=await Qf({token:o.value.token,tokenRefresh:o.value.refreshToken});b(x.response)}}});function Pa(e,t){return e-t*Math.floor(e/t)}const nl=1721426;function rr(e,t,o,r){t=Fa(e,t);let a=t-1,i=-2;return o<=2?i=0:ar(t)&&(i=-1),nl-1+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*o-362)/12+i+r)}function ar(e){return e%4===0&&(e%100!==0||e%400===0)}function Fa(e,t){return e==="BC"?1-t:t}function Nf(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const Rf={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class wn{fromJulianDay(t){let o=t,r=o-nl,a=Math.floor(r/146097),i=Pa(r,146097),s=Math.floor(i/36524),l=Pa(i,36524),c=Math.floor(l/1461),d=Pa(l,1461),u=Math.floor(d/365),f=a*400+s*100+c*4+u+(s!==4&&u!==4?1:0),[h,m]=Nf(f),g=o-rr(h,m,1,1),w=2;o<rr(h,m,3,1)?w=0:ar(m)&&(w=1);let y=Math.floor(((g+w)*12+373)/367),b=o-rr(h,m,y,1)+1;return new bn(h,m,y,b)}toJulianDay(t){return rr(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return Rf[ar(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return ar(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const Vf={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Kt(e,t){return t=Ve(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Tf(e,t){return t=Ve(t,e.calendar),e=mo(e),t=mo(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function st(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function ol(e,t){return e=mo(e),t=mo(t),e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month}function Zf(e,t){return Kt(e,al(t))}function rl(e,t){let o=e.calendar.toJulianDay(e),r=Math.ceil(o+1-jf(t))%7;return r<0&&(r+=7),r}function zf(e){return ct(Date.now(),e)}function al(e){return Gf(zf(e))}function il(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Pf(e,t){return sl(e)-sl(t)}function sl(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let ja=null;function fo(){return ja==null&&(ja=new Intl.DateTimeFormat().resolvedOptions().timeZone),ja}function mo(e){return e.subtract({days:e.day-1})}function ll(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}const cl=new Map;function Ff(e){if(Intl.Locale){let o=cl.get(e);return o||(o=new Intl.Locale(e).maximize().region,o&&cl.set(e,o)),o}let t=e.split("-")[1];return t==="u"?void 0:t}function jf(e){let t=Ff(e);return t&&Vf[t]||0}function En(e){e=Ve(e,new wn);let t=Fa(e.era,e.year);return dl(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function dl(e,t,o,r,a,i,s){let l=new Date;return l.setUTCHours(r,a,i,s),l.setUTCFullYear(e,t-1,o),l.getTime()}function Ya(e,t){if(t==="UTC")return 0;if(e>0&&t===fo())return new Date(e).getTimezoneOffset()*-6e4;let{year:o,month:r,day:a,hour:i,minute:s,second:l}=fl(e,t);return dl(o,r,a,i,s,l,0)-Math.floor(e/1e3)*1e3}const ul=new Map;function fl(e,t){let o=ul.get(t);o||(o=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),ul.set(t,o));let r=o.formatToParts(new Date(e)),a={};for(let i of r)i.type!=="literal"&&(a[i.type]=i.value);return{year:a.era==="BC"||a.era==="B"?-a.year+1:+a.year,month:+a.month,day:+a.day,hour:a.hour==="24"?0:+a.hour,minute:+a.minute,second:+a.second}}const ml=864e5;function Yf(e,t,o,r){return(o===r?[o]:[o,r]).filter(i=>Uf(e,t,i))}function Uf(e,t,o){let r=fl(o,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function lt(e,t,o="compatible"){let r=Cn(e);if(t==="UTC")return En(r);if(t===fo()&&o==="compatible"){r=Ve(r,new wn);let c=new Date,d=Fa(r.era,r.year);return c.setFullYear(d,r.month-1,r.day),c.setHours(r.hour,r.minute,r.second,r.millisecond),c.getTime()}let a=En(r),i=Ya(a-ml,t),s=Ya(a+ml,t),l=Yf(r,t,a-i,a-s);if(l.length===1)return l[0];if(l.length>1)switch(o){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(o){case"earlier":return Math.min(a-i,a-s);case"compatible":case"later":return Math.max(a-i,a-s);case"reject":throw new RangeError("No such absolute time found")}}function hl(e,t,o="compatible"){return new Date(lt(e,t,o))}function ct(e,t){let o=Ya(e,t),r=new Date(e+o),a=r.getUTCFullYear(),i=r.getUTCMonth()+1,s=r.getUTCDate(),l=r.getUTCHours(),c=r.getUTCMinutes(),d=r.getUTCSeconds(),u=r.getUTCMilliseconds();return new Bn(a,i,s,t,o,l,c,d,u)}function Gf(e){return new bn(e.calendar,e.era,e.year,e.month,e.day)}function Cn(e,t){let o=0,r=0,a=0,i=0;if("timeZone"in e)({hour:o,minute:r,second:a,millisecond:i}=e);else if("hour"in e&&!t)return e;return t&&({hour:o,minute:r,second:a,millisecond:i}=t),new vn(e.calendar,e.era,e.year,e.month,e.day,o,r,a,i)}function Ve(e,t){if(e.calendar.identifier===t.identifier)return e;let o=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=o.era,r.year=o.year,r.month=o.month,r.day=o.day,Wt(r),r}function qf(e,t,o){if(e instanceof Bn)return e.timeZone===t?e:Lf(e,t);let r=lt(e,t,o);return ct(r,t)}function Hf(e){let t=En(e)-e.offset;return new Date(t)}function Lf(e,t){let o=En(e)-e.offset;return Ve(ct(o,t),e.calendar)}const ho=36e5;function ir(e,t){let o=e.copy(),r="hour"in o?Xf(o,t):0;Ua(o,t.years||0),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e),o.month+=t.months||0,Ga(o),pl(o),o.day+=(t.weeks||0)*7,o.day+=t.days||0,o.day+=r,Kf(o),o.calendar.balanceDate&&o.calendar.balanceDate(o),o.year<1&&(o.year=1,o.month=1,o.day=1);let a=o.calendar.getYearsInEra(o);if(o.year>a){var i,s;let c=(i=(s=o.calendar).isInverseEra)===null||i===void 0?void 0:i.call(s,o);o.year=a,o.month=c?1:o.calendar.getMonthsInYear(o),o.day=c?1:o.calendar.getDaysInMonth(o)}o.month<1&&(o.month=1,o.day=1);let l=o.calendar.getMonthsInYear(o);return o.month>l&&(o.month=l,o.day=o.calendar.getDaysInMonth(o)),o.day=Math.max(1,Math.min(o.calendar.getDaysInMonth(o),o.day)),o}function Ua(e,t){var o,r;!((o=(r=e.calendar).isInverseEra)===null||o===void 0)&&o.call(r,e)&&(t=-t),e.year+=t}function Ga(e){for(;e.month<1;)Ua(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Ua(e,1)}function Kf(e){for(;e.day<1;)e.month--,Ga(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Ga(e)}function pl(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Wt(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),pl(e)}function gl(e){let t={};for(let o in e)typeof e[o]=="number"&&(t[o]=-e[o]);return t}function Al(e,t){return ir(e,gl(t))}function qa(e,t){let o=e.copy();return t.era!=null&&(o.era=t.era),t.year!=null&&(o.year=t.year),t.month!=null&&(o.month=t.month),t.day!=null&&(o.day=t.day),Wt(o),o}function sr(e,t){let o=e.copy();return t.hour!=null&&(o.hour=t.hour),t.minute!=null&&(o.minute=t.minute),t.second!=null&&(o.second=t.second),t.millisecond!=null&&(o.millisecond=t.millisecond),Jf(o),o}function Wf(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=lr(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=lr(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=lr(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=lr(e.hour,24),t}function Jf(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function lr(e,t){let o=e%t;return o<0&&(o+=t),o}function Xf(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,Wf(e)}function Ha(e,t,o,r){let a=e.copy();switch(t){case"era":{let l=e.calendar.getEras(),c=l.indexOf(e.era);if(c<0)throw new Error("Invalid era: "+e.era);c=dt(c,o,0,l.length-1,r==null?void 0:r.round),a.era=l[c],Wt(a);break}case"year":var i,s;!((i=(s=a.calendar).isInverseEra)===null||i===void 0)&&i.call(s,a)&&(o=-o),a.year=dt(e.year,o,-1/0,9999,r==null?void 0:r.round),a.year===-1/0&&(a.year=1),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,e);break;case"month":a.month=dt(e.month,o,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":a.day=dt(e.day,o,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(a),Wt(a),a}function yl(e,t,o,r){let a=e.copy();switch(t){case"hour":{let i=e.hour,s=0,l=23;if((r==null?void 0:r.hourCycle)===12){let c=i>=12;s=c?12:0,l=c?23:11}a.hour=dt(i,o,s,l,r==null?void 0:r.round);break}case"minute":a.minute=dt(e.minute,o,0,59,r==null?void 0:r.round);break;case"second":a.second=dt(e.second,o,0,59,r==null?void 0:r.round);break;case"millisecond":a.millisecond=dt(e.millisecond,o,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return a}function dt(e,t,o,r,a=!1){if(a){e+=Math.sign(t),e<o&&(e=r);let i=Math.abs(t);t>0?e=Math.ceil(e/i)*i:e=Math.floor(e/i)*i,e>r&&(e=o)}else e+=t,e<o?e=r-(o-e-1):e>r&&(e=o+(e-r-1));return e}function wl(e,t){let o;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let a=ir(Cn(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});o=lt(a,e.timeZone)}else o=En(e)-e.offset;o+=t.milliseconds||0,o+=(t.seconds||0)*1e3,o+=(t.minutes||0)*6e4,o+=(t.hours||0)*36e5;let r=ct(o,e.timeZone);return Ve(r,e.calendar)}function _f(e,t){return wl(e,gl(t))}function $f(e,t,o,r){switch(t){case"hour":{let a=0,i=23;if((r==null?void 0:r.hourCycle)===12){let g=e.hour>=12;a=g?12:0,i=g?23:11}let s=Cn(e),l=Ve(sr(s,{hour:a}),new wn),c=[lt(l,e.timeZone,"earlier"),lt(l,e.timeZone,"later")].filter(g=>ct(g,e.timeZone).day===l.day)[0],d=Ve(sr(s,{hour:i}),new wn),u=[lt(d,e.timeZone,"earlier"),lt(d,e.timeZone,"later")].filter(g=>ct(g,e.timeZone).day===d.day).pop(),f=En(e)-e.offset,h=Math.floor(f/ho),m=f%ho;return f=dt(h,o,Math.floor(c/ho),Math.floor(u/ho),r==null?void 0:r.round)*ho+m,Ve(ct(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return yl(e,t,o,r);case"era":case"year":case"month":case"day":{let a=Ha(Cn(e),t,o,r),i=lt(a,e.timeZone);return Ve(ct(i,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function e0(e,t,o){let r=Cn(e),a=sr(qa(r,t),t);if(a.compare(r)===0)return e;let i=lt(a,e.timeZone,o);return Ve(ct(i,e.timeZone),e.calendar)}function t0(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function El(e){let t=Ve(e,new wn);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Cl(e){return`${El(e)}T${t0(e)}`}function n0(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let o=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(o).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function o0(e){return`${Cl(e)}${n0(e.offset)}[${e.timeZone}]`}function r0(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function La(e,t,o){r0(e,t),t.set(e,o)}function Ka(e){let t=typeof e[0]=="object"?e.shift():new wn,o;if(typeof e[0]=="string")o=e.shift();else{let s=t.getEras();o=s[s.length-1]}let r=e.shift(),a=e.shift(),i=e.shift();return[t,o,r,a,i]}var a0=new WeakMap;class bn{copy(){return this.era?new bn(this.calendar,this.era,this.year,this.month,this.day):new bn(this.calendar,this.year,this.month,this.day)}add(t){return ir(this,t)}subtract(t){return Al(this,t)}set(t){return qa(this,t)}cycle(t,o,r){return Ha(this,t,o,r)}toDate(t){return hl(this,t)}toString(){return El(this)}compare(t){return il(this,t)}constructor(...t){La(this,a0,{writable:!0,value:void 0});let[o,r,a,i,s]=Ka(t);this.calendar=o,this.era=r,this.year=a,this.month=i,this.day=s,Wt(this)}}var i0=new WeakMap;class vn{copy(){return this.era?new vn(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new vn(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return ir(this,t)}subtract(t){return Al(this,t)}set(t){return qa(sr(this,t),t)}cycle(t,o,r){switch(t){case"era":case"year":case"month":case"day":return Ha(this,t,o,r);default:return yl(this,t,o,r)}}toDate(t,o){return hl(this,t,o)}toString(){return Cl(this)}compare(t){let o=il(this,t);return o===0?Pf(this,Cn(t)):o}constructor(...t){La(this,i0,{writable:!0,value:void 0});let[o,r,a,i,s]=Ka(t);this.calendar=o,this.era=r,this.year=a,this.month=i,this.day=s,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Wt(this)}}var s0=new WeakMap;class Bn{copy(){return this.era?new Bn(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Bn(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return wl(this,t)}subtract(t){return _f(this,t)}set(t,o){return e0(this,t,o)}cycle(t,o,r){return $f(this,t,o,r)}toDate(){return Hf(this)}toString(){return o0(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-qf(t,this.timeZone).toDate().getTime()}constructor(...t){La(this,s0,{writable:!0,value:void 0});let[o,r,a,i,s]=Ka(t),l=t.shift(),c=t.shift();this.calendar=o,this.era=r,this.year=a,this.month=i,this.day=s,this.timeZone=l,this.offset=c,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Wt(this)}}let Wa=new Map;class Bt{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,o){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,o);if(o<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(o)}`}formatRangeToParts(t,o){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,o);if(o<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),a=this.formatter.formatToParts(o);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...a.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return d0()&&(this.resolvedHourCycle||(this.resolvedHourCycle=u0(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,o={}){this.formatter=bl(t,o),this.options=o}}const l0={true:{ja:"h11"},false:{}};function bl(e,t={}){if(typeof t.hour12=="boolean"&&c0()){t={...t};let a=l0[String(t.hour12)][e.split("-")[0]],i=t.hour12?"h12":"h23";t.hourCycle=a??i,delete t.hour12}let o=e+(t?Object.entries(t).sort((a,i)=>a[0]<i[0]?-1:1).join():"");if(Wa.has(o))return Wa.get(o);let r=new Intl.DateTimeFormat(e,t);return Wa.set(o,r),r}let Ja=null;function c0(){return Ja==null&&(Ja=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Ja}let Xa=null;function d0(){return Xa==null&&(Xa=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Xa}function u0(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let o=bl(e,{...t,timeZone:void 0}),r=parseInt(o.formatToParts(new Date(2020,2,3,0)).find(i=>i.type==="hour").value,10),a=parseInt(o.formatToParts(new Date(2020,2,3,23)).find(i=>i.type==="hour").value,10);if(r===0&&a===23)return"h23";if(r===24&&a===23)return"h24";if(r===0&&a===11)return"h11";if(r===12&&a===11)return"h12";throw new Error("Unexpected hour cycle result")}function f0(e,t){const o=[];for(let r=0;r<e.length;r+=t)o.push(e.slice(r,r+t));return o}function Te(e,t=fo()){return cr(e)?e.toDate():e.toDate(t)}function m0(e){return e instanceof vn}function cr(e){return e instanceof Bn}function _a(e){return m0(e)||cr(e)}function It(e){if(e instanceof Date){const t=e.getFullYear(),o=e.getMonth()+1;return new Date(t,o,0).getDate()}else return e.set({day:100}).day}function In(e,t){return e.compare(t)<0}function dr(e,t){return e.compare(t)>0}function h0(e,t,o){const r=rl(e,o);return t>r?e.subtract({days:r+7-t}):t===r?e:e.subtract({days:r-t})}function p0(e,t,o){const r=rl(e,o),a=t===0?6:t-1;return r===a?e:r>a?e.add({days:7-r+a}):e.add({days:a-r})}function vl(e,t){const o=[];let r=e.add({days:1});const a=t;for(;r.compare(a)<0;)o.push(r),r=r.add({days:1});return o}function $a(e){const{dateObj:t,weekStartsOn:o,fixedWeeks:r,locale:a}=e,i=It(t),s=Array.from({length:i},(y,b)=>t.set({day:b+1})),l=mo(t),c=ll(t),d=h0(l,o,a),u=p0(c,o,a),f=vl(d.subtract({days:1}),l),h=vl(c,u.add({days:1})),m=f.length+s.length+h.length;if(r&&m<42){const y=42-m;let b=h[h.length-1];b||(b=ll(t));const A=Array.from({length:y},(p,E)=>{const C=E+1;return b.add({days:C})});h.push(...A)}const g=f.concat(s,h),w=f0(g,7);return{value:t,cells:g,rows:w}}function Jt(e){const{numberOfMonths:t,dateObj:o,...r}=e,a=[];if(!t||t===1)return a.push($a({...r,dateObj:o})),a;a.push($a({...r,dateObj:o}));for(let i=1;i<t;i++){const s=o.add({months:i});a.push($a({...r,dateObj:s}))}return a}const g0=["top","right","bottom","left"],tt=Math.min,De=Math.max,ur=Math.round,fr=Math.floor,kt=e=>({x:e,y:e}),A0={left:"right",right:"left",bottom:"top",top:"bottom"},y0={start:"end",end:"start"};function ei(e,t,o){return De(e,tt(t,o))}function ut(e,t){return typeof e=="function"?e(t):e}function ft(e){return e.split("-")[0]}function kn(e){return e.split("-")[1]}function ti(e){return e==="x"?"y":"x"}function ni(e){return e==="y"?"height":"width"}function xt(e){return["top","bottom"].includes(ft(e))?"y":"x"}function oi(e){return ti(xt(e))}function w0(e,t,o){o===void 0&&(o=!1);const r=kn(e),a=oi(e),i=ni(a);let s=a==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=mr(s)),[s,mr(s)]}function E0(e){const t=mr(e);return[ri(e),t,ri(t)]}function ri(e){return e.replace(/start|end/g,t=>y0[t])}function C0(e,t,o){const r=["left","right"],a=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return o?t?a:r:t?r:a;case"left":case"right":return t?i:s;default:return[]}}function b0(e,t,o,r){const a=kn(e);let i=C0(ft(e),o==="start",r);return a&&(i=i.map(s=>s+"-"+a),t&&(i=i.concat(i.map(ri)))),i}function mr(e){return e.replace(/left|right|bottom|top/g,t=>A0[t])}function v0(e){return{top:0,right:0,bottom:0,left:0,...e}}function Bl(e){return typeof e!="number"?v0(e):{top:e,right:e,bottom:e,left:e}}function hr(e){const{x:t,y:o,width:r,height:a}=e;return{width:r,height:a,top:o,left:t,right:t+r,bottom:o+a,x:t,y:o}}function Il(e,t,o){let{reference:r,floating:a}=e;const i=xt(t),s=oi(t),l=ni(s),c=ft(t),d=i==="y",u=r.x+r.width/2-a.width/2,f=r.y+r.height/2-a.height/2,h=r[l]/2-a[l]/2;let m;switch(c){case"top":m={x:u,y:r.y-a.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-a.width,y:f};break;default:m={x:r.x,y:r.y}}switch(kn(t)){case"start":m[s]-=h*(o&&d?-1:1);break;case"end":m[s]+=h*(o&&d?-1:1);break}return m}const B0=async(e,t,o)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:s}=o,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:f}=Il(d,r,c),h=r,m={},g=0;for(let w=0;w<l.length;w++){const{name:y,fn:b}=l[w],{x:A,y:p,data:E,reset:C}=await b({x:u,y:f,initialPlacement:r,placement:h,strategy:a,middlewareData:m,rects:d,platform:s,elements:{reference:e,floating:t}});u=A??u,f=p??f,m={...m,[y]:{...m[y],...E}},C&&g<=50&&(g++,typeof C=="object"&&(C.placement&&(h=C.placement),C.rects&&(d=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:a}):C.rects),{x:u,y:f}=Il(d,h,c)),w=-1)}return{x:u,y:f,placement:h,strategy:a,middlewareData:m}};async function po(e,t){var o;t===void 0&&(t={});const{x:r,y:a,platform:i,rects:s,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=ut(t,e),g=Bl(m),y=l[h?f==="floating"?"reference":"floating":f],b=hr(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(y)))==null||o?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:d,rootBoundary:u,strategy:c})),A=f==="floating"?{x:r,y:a,width:s.floating.width,height:s.floating.height}:s.reference,p=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),E=await(i.isElement==null?void 0:i.isElement(p))?await(i.getScale==null?void 0:i.getScale(p))||{x:1,y:1}:{x:1,y:1},C=hr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:A,offsetParent:p,strategy:c}):A);return{top:(b.top-C.top+g.top)/E.y,bottom:(C.bottom-b.bottom+g.bottom)/E.y,left:(b.left-C.left+g.left)/E.x,right:(C.right-b.right+g.right)/E.x}}const I0=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:r,placement:a,rects:i,platform:s,elements:l,middlewareData:c}=t,{element:d,padding:u=0}=ut(e,t)||{};if(d==null)return{};const f=Bl(u),h={x:o,y:r},m=oi(a),g=ni(m),w=await s.getDimensions(d),y=m==="y",b=y?"top":"left",A=y?"bottom":"right",p=y?"clientHeight":"clientWidth",E=i.reference[g]+i.reference[m]-h[m]-i.floating[g],C=h[m]-i.reference[m],B=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let v=B?B[p]:0;(!v||!await(s.isElement==null?void 0:s.isElement(B)))&&(v=l.floating[p]||i.floating[g]);const x=E/2-C/2,D=v/2-w[g]/2-1,I=tt(f[b],D),k=tt(f[A],D),Q=I,S=v-w[g]-k,R=v/2-w[g]/2+x,F=ei(Q,R,S),K=!c.arrow&&kn(a)!=null&&R!==F&&i.reference[g]/2-(R<Q?I:k)-w[g]/2<0,U=K?R<Q?R-Q:R-S:0;return{[m]:h[m]+U,data:{[m]:F,centerOffset:R-F-U,...K&&{alignmentOffset:U}},reset:K}}}),k0=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,r;const{placement:a,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:w=!0,...y}=ut(e,t);if((o=i.arrow)!=null&&o.alignmentOffset)return{};const b=ft(a),A=xt(l),p=ft(l)===l,E=await(c.isRTL==null?void 0:c.isRTL(d.floating)),C=h||(p||!w?[mr(l)]:E0(l)),B=g!=="none";!h&&B&&C.push(...b0(l,w,g,E));const v=[l,...C],x=await po(t,y),D=[];let I=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&D.push(x[b]),f){const R=w0(a,s,E);D.push(x[R[0]],x[R[1]])}if(I=[...I,{placement:a,overflows:D}],!D.every(R=>R<=0)){var k,Q;const R=(((k=i.flip)==null?void 0:k.index)||0)+1,F=v[R];if(F)return{data:{index:R,overflows:I},reset:{placement:F}};let K=(Q=I.filter(U=>U.overflows[0]<=0).sort((U,N)=>U.overflows[1]-N.overflows[1])[0])==null?void 0:Q.placement;if(!K)switch(m){case"bestFit":{var S;const U=(S=I.filter(N=>{if(B){const $=xt(N.placement);return $===A||$==="y"}return!0}).map(N=>[N.placement,N.overflows.filter($=>$>0).reduce(($,Et)=>$+Et,0)]).sort((N,$)=>N[1]-$[1])[0])==null?void 0:S[0];U&&(K=U);break}case"initialPlacement":K=l;break}if(a!==K)return{reset:{placement:K}}}return{}}}};function kl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xl(e){return g0.some(t=>e[t]>=0)}const x0=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:o}=t,{strategy:r="referenceHidden",...a}=ut(e,t);switch(r){case"referenceHidden":{const i=await po(t,{...a,elementContext:"reference"}),s=kl(i,o.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:xl(s)}}}case"escaped":{const i=await po(t,{...a,altBoundary:!0}),s=kl(i,o.floating);return{data:{escapedOffsets:s,escaped:xl(s)}}}default:return{}}}}};async function O0(e,t){const{placement:o,platform:r,elements:a}=e,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),s=ft(o),l=kn(o),c=xt(o)==="y",d=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,f=ut(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof g=="number"&&(m=l==="end"?g*-1:g),c?{x:m*u,y:h*d}:{x:h*d,y:m*u}}const M0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,r;const{x:a,y:i,placement:s,middlewareData:l}=t,c=await O0(t,e);return s===((o=l.offset)==null?void 0:o.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:a+c.x,y:i+c.y,data:{...c,placement:s}}}}},D0=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:r,placement:a}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:y=>{let{x:b,y:A}=y;return{x:b,y:A}}},...c}=ut(e,t),d={x:o,y:r},u=await po(t,c),f=xt(ft(a)),h=ti(f);let m=d[h],g=d[f];if(i){const y=h==="y"?"top":"left",b=h==="y"?"bottom":"right",A=m+u[y],p=m-u[b];m=ei(A,m,p)}if(s){const y=f==="y"?"top":"left",b=f==="y"?"bottom":"right",A=g+u[y],p=g-u[b];g=ei(A,g,p)}const w=l.fn({...t,[h]:m,[f]:g});return{...w,data:{x:w.x-o,y:w.y-r}}}}},S0=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:o,y:r,placement:a,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=ut(e,t),u={x:o,y:r},f=xt(a),h=ti(f);let m=u[h],g=u[f];const w=ut(l,t),y=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(c){const p=h==="y"?"height":"width",E=i.reference[h]-i.floating[p]+y.mainAxis,C=i.reference[h]+i.reference[p]-y.mainAxis;m<E?m=E:m>C&&(m=C)}if(d){var b,A;const p=h==="y"?"width":"height",E=["top","left"].includes(ft(a)),C=i.reference[f]-i.floating[p]+(E&&((b=s.offset)==null?void 0:b[f])||0)+(E?0:y.crossAxis),B=i.reference[f]+i.reference[p]+(E?0:((A=s.offset)==null?void 0:A[f])||0)-(E?y.crossAxis:0);g<C?g=C:g>B&&(g=B)}return{[h]:m,[f]:g}}}},Q0=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:o,rects:r,platform:a,elements:i}=t,{apply:s=()=>{},...l}=ut(e,t),c=await po(t,l),d=ft(o),u=kn(o),f=xt(o)==="y",{width:h,height:m}=r.floating;let g,w;d==="top"||d==="bottom"?(g=d,w=u===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(w=d,g=u==="end"?"top":"bottom");const y=m-c.top-c.bottom,b=h-c.left-c.right,A=tt(m-c[g],y),p=tt(h-c[w],b),E=!t.middlewareData.shift;let C=A,B=p;if(f?B=u||E?tt(p,b):b:C=u||E?tt(A,y):y,E&&!u){const x=De(c.left,0),D=De(c.right,0),I=De(c.top,0),k=De(c.bottom,0);f?B=h-2*(x!==0||D!==0?x+D:De(c.left,c.right)):C=m-2*(I!==0||k!==0?I+k:De(c.top,c.bottom))}await s({...t,availableWidth:B,availableHeight:C});const v=await a.getDimensions(i.floating);return h!==v.width||m!==v.height?{reset:{rects:!0}}:{}}}};function Xt(e){return ai(e)?(e.nodeName||"").toLowerCase():"#document"}function Se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function mt(e){var t;return(t=(ai(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ai(e){return e instanceof Node||e instanceof Se(e).Node}function qe(e){return e instanceof Element||e instanceof Se(e).Element}function nt(e){return e instanceof HTMLElement||e instanceof Se(e).HTMLElement}function Ol(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Se(e).ShadowRoot}function go(e){const{overflow:t,overflowX:o,overflowY:r,display:a}=He(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&!["inline","contents"].includes(a)}function N0(e){return["table","td","th"].includes(Xt(e))}function pr(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function ii(e){const t=si(),o=qe(e)?He(e):e;return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(o.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(o.contain||"").includes(r))}function R0(e){let t=Ot(e);for(;nt(t)&&!xn(t);){if(ii(t))return t;if(pr(t))return null;t=Ot(t)}return null}function si(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function xn(e){return["html","body","#document"].includes(Xt(e))}function He(e){return Se(e).getComputedStyle(e)}function gr(e){return qe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ot(e){if(Xt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ol(e)&&e.host||mt(e);return Ol(t)?t.host:t}function Ml(e){const t=Ot(e);return xn(t)?e.ownerDocument?e.ownerDocument.body:e.body:nt(t)&&go(t)?t:Ml(t)}function Ao(e,t,o){var r;t===void 0&&(t=[]),o===void 0&&(o=!0);const a=Ml(e),i=a===((r=e.ownerDocument)==null?void 0:r.body),s=Se(a);if(i){const l=li(s);return t.concat(s,s.visualViewport||[],go(a)?a:[],l&&o?Ao(l):[])}return t.concat(a,Ao(a,[],o))}function li(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Dl(e){const t=He(e);let o=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=nt(e),i=a?e.offsetWidth:o,s=a?e.offsetHeight:r,l=ur(o)!==i||ur(r)!==s;return l&&(o=i,r=s),{width:o,height:r,$:l}}function ci(e){return qe(e)?e:e.contextElement}function On(e){const t=ci(e);if(!nt(t))return kt(1);const o=t.getBoundingClientRect(),{width:r,height:a,$:i}=Dl(t);let s=(i?ur(o.width):o.width)/r,l=(i?ur(o.height):o.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const V0=kt(0);function Sl(e){const t=Se(e);return!si()||!t.visualViewport?V0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function T0(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==Se(e)?!1:t}function _t(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);const a=e.getBoundingClientRect(),i=ci(e);let s=kt(1);t&&(r?qe(r)&&(s=On(r)):s=On(e));const l=T0(i,o,r)?Sl(i):kt(0);let c=(a.left+l.x)/s.x,d=(a.top+l.y)/s.y,u=a.width/s.x,f=a.height/s.y;if(i){const h=Se(i),m=r&&qe(r)?Se(r):r;let g=h,w=li(g);for(;w&&r&&m!==g;){const y=On(w),b=w.getBoundingClientRect(),A=He(w),p=b.left+(w.clientLeft+parseFloat(A.paddingLeft))*y.x,E=b.top+(w.clientTop+parseFloat(A.paddingTop))*y.y;c*=y.x,d*=y.y,u*=y.x,f*=y.y,c+=p,d+=E,g=Se(w),w=li(g)}}return hr({width:u,height:f,x:c,y:d})}function Z0(e){let{elements:t,rect:o,offsetParent:r,strategy:a}=e;const i=a==="fixed",s=mt(r),l=t?pr(t.floating):!1;if(r===s||l&&i)return o;let c={scrollLeft:0,scrollTop:0},d=kt(1);const u=kt(0),f=nt(r);if((f||!f&&!i)&&((Xt(r)!=="body"||go(s))&&(c=gr(r)),nt(r))){const h=_t(r);d=On(r),u.x=h.x+r.clientLeft,u.y=h.y+r.clientTop}return{width:o.width*d.x,height:o.height*d.y,x:o.x*d.x-c.scrollLeft*d.x+u.x,y:o.y*d.y-c.scrollTop*d.y+u.y}}function z0(e){return Array.from(e.getClientRects())}function Ql(e){return _t(mt(e)).left+gr(e).scrollLeft}function P0(e){const t=mt(e),o=gr(e),r=e.ownerDocument.body,a=De(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=De(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-o.scrollLeft+Ql(e);const l=-o.scrollTop;return He(r).direction==="rtl"&&(s+=De(t.clientWidth,r.clientWidth)-a),{width:a,height:i,x:s,y:l}}function F0(e,t){const o=Se(e),r=mt(e),a=o.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,c=0;if(a){i=a.width,s=a.height;const d=si();(!d||d&&t==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:i,height:s,x:l,y:c}}function j0(e,t){const o=_t(e,!0,t==="fixed"),r=o.top+e.clientTop,a=o.left+e.clientLeft,i=nt(e)?On(e):kt(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,c=a*i.x,d=r*i.y;return{width:s,height:l,x:c,y:d}}function Nl(e,t,o){let r;if(t==="viewport")r=F0(e,o);else if(t==="document")r=P0(mt(e));else if(qe(t))r=j0(t,o);else{const a=Sl(e);r={...t,x:t.x-a.x,y:t.y-a.y}}return hr(r)}function Rl(e,t){const o=Ot(e);return o===t||!qe(o)||xn(o)?!1:He(o).position==="fixed"||Rl(o,t)}function Y0(e,t){const o=t.get(e);if(o)return o;let r=Ao(e,[],!1).filter(l=>qe(l)&&Xt(l)!=="body"),a=null;const i=He(e).position==="fixed";let s=i?Ot(e):e;for(;qe(s)&&!xn(s);){const l=He(s),c=ii(s);!c&&l.position==="fixed"&&(a=null),(i?!c&&!a:!c&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||go(s)&&!c&&Rl(e,s))?r=r.filter(u=>u!==s):a=l,s=Ot(s)}return t.set(e,r),r}function U0(e){let{element:t,boundary:o,rootBoundary:r,strategy:a}=e;const s=[...o==="clippingAncestors"?pr(t)?[]:Y0(t,this._c):[].concat(o),r],l=s[0],c=s.reduce((d,u)=>{const f=Nl(t,u,a);return d.top=De(f.top,d.top),d.right=tt(f.right,d.right),d.bottom=tt(f.bottom,d.bottom),d.left=De(f.left,d.left),d},Nl(t,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function G0(e){const{width:t,height:o}=Dl(e);return{width:t,height:o}}function q0(e,t,o){const r=nt(t),a=mt(t),i=o==="fixed",s=_t(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=kt(0);if(r||!r&&!i)if((Xt(t)!=="body"||go(a))&&(l=gr(t)),r){const f=_t(t,!0,i,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else a&&(c.x=Ql(a));const d=s.left+l.scrollLeft-c.x,u=s.top+l.scrollTop-c.y;return{x:d,y:u,width:s.width,height:s.height}}function di(e){return He(e).position==="static"}function Vl(e,t){return!nt(e)||He(e).position==="fixed"?null:t?t(e):e.offsetParent}function Tl(e,t){const o=Se(e);if(pr(e))return o;if(!nt(e)){let a=Ot(e);for(;a&&!xn(a);){if(qe(a)&&!di(a))return a;a=Ot(a)}return o}let r=Vl(e,t);for(;r&&N0(r)&&di(r);)r=Vl(r,t);return r&&xn(r)&&di(r)&&!ii(r)?o:r||R0(e)||o}const H0=async function(e){const t=this.getOffsetParent||Tl,o=this.getDimensions,r=await o(e.floating);return{reference:q0(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function L0(e){return He(e).direction==="rtl"}const K0={convertOffsetParentRelativeRectToViewportRelativeRect:Z0,getDocumentElement:mt,getClippingRect:U0,getOffsetParent:Tl,getElementRects:H0,getClientRects:z0,getDimensions:G0,getScale:On,isElement:qe,isRTL:L0};function W0(e,t){let o=null,r;const a=mt(e);function i(){var l;clearTimeout(r),(l=o)==null||l.disconnect(),o=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const{left:d,top:u,width:f,height:h}=e.getBoundingClientRect();if(l||t(),!f||!h)return;const m=fr(u),g=fr(a.clientWidth-(d+f)),w=fr(a.clientHeight-(u+h)),y=fr(d),A={rootMargin:-m+"px "+-g+"px "+-w+"px "+-y+"px",threshold:De(0,tt(1,c))||1};let p=!0;function E(C){const B=C[0].intersectionRatio;if(B!==c){if(!p)return s();B?s(!1,B):r=setTimeout(()=>{s(!1,1e-7)},1e3)}p=!1}try{o=new IntersectionObserver(E,{...A,root:a.ownerDocument})}catch{o=new IntersectionObserver(E,A)}o.observe(e)}return s(!0),i}function J0(e,t,o,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=ci(e),u=a||i?[...d?Ao(d):[],...Ao(t)]:[];u.forEach(b=>{a&&b.addEventListener("scroll",o,{passive:!0}),i&&b.addEventListener("resize",o)});const f=d&&l?W0(d,o):null;let h=-1,m=null;s&&(m=new ResizeObserver(b=>{let[A]=b;A&&A.target===d&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var p;(p=m)==null||p.observe(t)})),o()}),d&&!c&&m.observe(d),m.observe(t));let g,w=c?_t(e):null;c&&y();function y(){const b=_t(e);w&&(b.x!==w.x||b.y!==w.y||b.width!==w.width||b.height!==w.height)&&o(),w=b,g=requestAnimationFrame(y)}return o(),()=>{var b;u.forEach(A=>{a&&A.removeEventListener("scroll",o),i&&A.removeEventListener("resize",o)}),f==null||f(),(b=m)==null||b.disconnect(),m=null,c&&cancelAnimationFrame(g)}}const X0=M0,_0=D0,Zl=k0,$0=Q0,e4=x0,t4=I0,n4=S0,o4=(e,t,o)=>{const r=new Map,a={platform:K0,...o},i={...a.platform,_c:r};return B0(e,t,{...a,platform:i})};function r4(e){return e!=null&&typeof e=="object"&&"$el"in e}function ui(e){if(r4(e)){const t=e.$el;return ai(t)&&Xt(t)==="#comment"?null:t}return e}function Mn(e){return typeof e=="function"?e():n.unref(e)}function a4(e){return{name:"arrow",options:e,fn(t){const o=ui(Mn(e.element));return o==null?{}:t4({element:o,padding:e.padding}).fn(t)}}}function zl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Pl(e,t){const o=zl(e);return Math.round(t*o)/o}function i4(e,t,o){o===void 0&&(o={});const r=o.whileElementsMounted,a=n.computed(()=>{var v;return(v=Mn(o.open))!=null?v:!0}),i=n.computed(()=>Mn(o.middleware)),s=n.computed(()=>{var v;return(v=Mn(o.placement))!=null?v:"bottom"}),l=n.computed(()=>{var v;return(v=Mn(o.strategy))!=null?v:"absolute"}),c=n.computed(()=>{var v;return(v=Mn(o.transform))!=null?v:!0}),d=n.computed(()=>ui(e.value)),u=n.computed(()=>ui(t.value)),f=n.ref(0),h=n.ref(0),m=n.ref(l.value),g=n.ref(s.value),w=n.shallowRef({}),y=n.ref(!1),b=n.computed(()=>{const v={position:m.value,left:"0",top:"0"};if(!u.value)return v;const x=Pl(u.value,f.value),D=Pl(u.value,h.value);return c.value?{...v,transform:"translate("+x+"px, "+D+"px)",...zl(u.value)>=1.5&&{willChange:"transform"}}:{position:m.value,left:x+"px",top:D+"px"}});let A;function p(){d.value==null||u.value==null||o4(d.value,u.value,{middleware:i.value,placement:s.value,strategy:l.value}).then(v=>{f.value=v.x,h.value=v.y,m.value=v.strategy,g.value=v.placement,w.value=v.middlewareData,y.value=!0})}function E(){typeof A=="function"&&(A(),A=void 0)}function C(){if(E(),r===void 0){p();return}if(d.value!=null&&u.value!=null){A=r(d.value,u.value,p);return}}function B(){a.value||(y.value=!1)}return n.watch([i,s,l],p,{flush:"sync"}),n.watch([d,u],C,{flush:"sync"}),n.watch(a,B,{flush:"sync"}),n.getCurrentScope()&&n.onScopeDispose(E),{x:n.shallowReadonly(f),y:n.shallowReadonly(h),strategy:n.shallowReadonly(m),placement:n.shallowReadonly(g),middlewareData:n.shallowReadonly(w),isPositioned:n.shallowReadonly(y),floatingStyles:b,update:p}}function re(e,t){const o=typeof e=="string"&&!t?`${e}Context`:t,r=Symbol(o);return[a=>{const i=n.inject(r,a);if(i||i===null)return i;throw new Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},a=>(n.provide(r,a),a)]}function Fl(e,t,o){const r=o.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:o});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(a)}function fi(e){const{defaultValue:t,defaultPlaceholder:o,granularity:r="day"}=e;if(Array.isArray(t)&&t.length)return t.at(-1).copy();if(t&&!Array.isArray(t))return t.copy();if(o)return o.copy();const a=new Date,i=a.getFullYear(),s=a.getMonth()+1,l=a.getDate();return["hour","minute","second"].includes(r??"day")?new vn(i,s,l,0,0,0):new bn(i,s,l)}const s4=["ach","af","am","an","ar","ast","az","be","bg","bn","br","bs","ca","cak","ckb","cs","cy","da","de","dsb","el","en","eo","es","et","eu","fa","ff","fi","fr","fy","ga","gd","gl","he","hr","hsb","hu","ia","id","it","ja","ka","kk","kn","ko","lb","lo","lt","lv","meh","ml","ms","nl","nn","no","oc","pl","pt","rm","ro","ru","sc","scn","sk","sl","sr","sv","szl","tg","th","tr","uk","zh-CN","zh-TW"],l4=["year","month","day"],mi={ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}};function c4(e){if(jl(e))return mi[e];{const t=m4(e);return jl(t)?mi[t]:mi.en}}function hi(e,t,o){return d4(e)?c4(o)[e]:f4(e)?t:u4(e)?"––":""}function jl(e){return s4.includes(e)}function d4(e){return l4.includes(e)}function u4(e){return e==="hour"||e==="minute"||e==="second"}function f4(e){return e==="era"||e==="dayPeriod"}function m4(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const pi=["day","month","year"],Yl=["hour","minute","second","dayPeriod"],Ul=[...pi,...Yl];function h4(e){return pi.includes(e)}function Gl(e){return Ul.includes(e)}function p4(e,t){const o={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short",hourCycle:t===24?"h24":void 0,hour12:t===24?!1:void 0};return e==="day"&&(delete o.second,delete o.hour,delete o.minute,delete o.timeZoneName),e==="hour"&&(delete o.minute,delete o.second),e==="minute"&&delete o.second,o}function g4(e){const t=e.querySelector("[data-selected]");if(t)return t.focus();const o=e.querySelector("[data-today]");if(o)return o.focus();const r=e.querySelector("[data-radix-vue-calendar-day]");if(r)return r.focus()}function A4(e,t){var o;const r=n.shallowRef();return n.watchEffect(()=>{r.value=e()},{...t,flush:(o=void 0)!=null?o:"sync"}),n.readonly(r)}function yo(e){return n.getCurrentScope()?(n.onScopeDispose(e),!0):!1}function y4(){const e=new Set,t=o=>{e.delete(o)};return{on:o=>{e.add(o);const r=()=>t(o);return yo(r),{off:r}},off:t,trigger:(...o)=>Promise.all(Array.from(e).map(r=>r(...o)))}}function w4(e){let t=!1,o;const r=n.effectScope(!0);return(...a)=>(t||(o=r.run(()=>e(...a)),t=!0),o)}function ql(e){let t=0,o,r;const a=()=>{t-=1,r&&t<=0&&(r.stop(),o=void 0,r=void 0)};return(...i)=>(t+=1,o||(r=n.effectScope(!0),o=r.run(()=>e(...i))),yo(a),o)}function Mt(e){return typeof e=="function"?e():n.unref(e)}const ht=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const E4=e=>typeof e<"u",C4=Object.prototype.toString,b4=e=>C4.call(e)==="[object Object]",v4=()=>{},Hl=B4();function B4(){var e,t;return ht&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function I4(e){return n.getCurrentInstance()}function Ll(e,t=1e4){return n.customRef((o,r)=>{let a=Mt(e),i;const s=()=>setTimeout(()=>{a=Mt(e),r()},Mt(t));return yo(()=>{clearTimeout(i)}),{get(){return o(),a},set(l){a=l,r(),clearTimeout(i),i=s()}}})}function k4(e,t){I4()&&n.onBeforeUnmount(e,t)}function Kl(e,t,o={}){const{immediate:r=!0}=o,a=n.ref(!1);let i=null;function s(){i&&(clearTimeout(i),i=null)}function l(){a.value=!1,s()}function c(...d){s(),a.value=!0,i=setTimeout(()=>{a.value=!1,i=null,e(...d)},Mt(t))}return r&&(a.value=!0,ht&&c()),yo(l),{isPending:n.readonly(a),start:c,stop:l}}function Dt(e){var t;const o=Mt(e);return(t=o==null?void 0:o.$el)!=null?t:o}const Wl=ht?window:void 0;function St(...e){let t,o,r,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([o,r,a]=e,t=Wl):[t,o,r,a]=e,!t)return v4;Array.isArray(o)||(o=[o]),Array.isArray(r)||(r=[r]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,f,h,m)=>(u.addEventListener(f,h,m),()=>u.removeEventListener(f,h,m)),c=n.watch(()=>[Dt(t),Mt(a)],([u,f])=>{if(s(),!u)return;const h=b4(f)?{...f}:f;i.push(...o.flatMap(m=>r.map(g=>l(u,m,g,h))))},{immediate:!0,flush:"post"}),d=()=>{c(),s()};return yo(d),d}function x4(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function O4(...e){let t,o,r={};e.length===3?(t=e[0],o=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,o=e[0],r=e[1]):(t=e[0],o=e[1]):(t=!0,o=e[0]);const{target:a=Wl,eventName:i="keydown",passive:s=!1,dedupe:l=!1}=r,c=x4(t);return St(a,i,d=>{d.repeat&&Mt(l)||c(d)&&o(d)},s)}function M4(){const e=n.ref(!1),t=n.getCurrentInstance();return t&&n.onMounted(()=>{e.value=!0},t),e}function D4(e){return JSON.parse(JSON.stringify(e))}function he(e,t,o,r={}){var a,i,s;const{clone:l=!1,passive:c=!1,eventName:d,deep:u=!1,defaultValue:f,shouldEmit:h}=r,m=n.getCurrentInstance(),g=o||(m==null?void 0:m.emit)||((a=m==null?void 0:m.$emit)==null?void 0:a.bind(m))||((s=(i=m==null?void 0:m.proxy)==null?void 0:i.$emit)==null?void 0:s.bind(m==null?void 0:m.proxy));let w=d;t||(t="modelValue"),w=w||`update:${t.toString()}`;const y=p=>l?typeof l=="function"?l(p):D4(p):p,b=()=>E4(e[t])?y(e[t]):f,A=p=>{h?h(p)&&g(w,p):g(w,p)};if(c){const p=b(),E=n.ref(p);let C=!1;return n.watch(()=>e[t],B=>{C||(C=!0,E.value=y(B),n.nextTick(()=>C=!1))}),n.watch(E,B=>{!C&&(B!==e[t]||u)&&A(B)},{deep:u}),E}else return n.computed({get(){return b()},set(p){A(p)}})}function gi(e){return e?e.flatMap(t=>t.type===n.Fragment?gi(t.children):[t]):[]}const S4=["INPUT","TEXTAREA"];function Q4(e,t,o,r={}){if(!t||r.enableIgnoredElement&&S4.includes(t.nodeName))return null;const{arrowKeyOptions:a="both",attributeName:i="[data-radix-vue-collection-item]",itemsArray:s=[],loop:l=!0,dir:c="ltr",preventScroll:d=!0,focus:u=!1}=r,[f,h,m,g,w,y]=[e.key==="ArrowRight",e.key==="ArrowLeft",e.key==="ArrowUp",e.key==="ArrowDown",e.key==="Home",e.key==="End"],b=m||g,A=f||h;if(!w&&!y&&(!b&&!A||a==="vertical"&&A||a==="horizontal"&&b))return null;const p=o?Array.from(o.querySelectorAll(i)):s;if(!p.length)return null;d&&e.preventDefault();let E=null;return A||b?E=Jl(p,t,{goForward:b?g:c==="ltr"?f:h,loop:l}):w?E=p.at(0)||null:y&&(E=p.at(-1)||null),u&&(E==null||E.focus()),E}function Jl(e,t,o,r=e.length){if(--r===0)return null;const a=e.indexOf(t),i=o.goForward?a+1:a-1;if(!o.loop&&(i<0||i>=e.length))return null;const s=(i+e.length)%e.length,l=e[s];return l?l.hasAttribute("disabled")&&l.getAttribute("disabled")!=="false"?Jl(e,l,o,r):l:null}function Ai(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function yi(e,t,o=".",r){if(!Ai(t))return yi(e,{},o);const a=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const s=e[i];s!=null&&(Array.isArray(s)&&Array.isArray(a[i])?a[i]=[...s,...a[i]]:Ai(s)&&Ai(a[i])?a[i]=yi(s,a[i],(o?`${o}.`:"")+i.toString()):a[i]=s)}return a}function N4(e){return(...t)=>t.reduce((o,r)=>yi(o,r,""),{})}const R4=N4(),[wi,SC]=re("ConfigProvider");let V4="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",T4=(e=21)=>{let t="",o=e;for(;o--;)t+=V4[Math.random()*64|0];return t};const Z4=ql(()=>{const e=n.ref(new Map),t=n.ref(),o=n.computed(()=>{for(const s of e.value.values())if(s)return!0;return!1}),r=wi({scrollBody:n.ref(!0)});let a=null;const i=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.body.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",Hl&&(a==null||a()),t.value=void 0};return n.watch(o,(s,l)=>{var c;if(!ht)return;if(!s){l&&i();return}t.value===void 0&&(t.value=document.body.style.overflow);const d=window.innerWidth-document.documentElement.clientWidth,u={padding:d,margin:0},f=(c=r.scrollBody)!=null&&c.value?typeof r.scrollBody.value=="object"?R4({padding:r.scrollBody.value.padding===!0?d:r.scrollBody.value.padding,margin:r.scrollBody.value.margin===!0?d:r.scrollBody.value.margin},u):u:{padding:0,margin:0};d>0&&(document.body.style.paddingRight=`${f.padding}px`,document.body.style.marginRight=`${f.margin}px`,document.body.style.setProperty("--scrollbar-width",`${d}px`),document.body.style.overflow="hidden"),Hl&&(a=St(document,"touchmove",h=>{var m;h.target===document.documentElement&&(h.touches.length>1||(m=h.preventDefault)==null||m.call(h))},{passive:!1})),n.nextTick(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),e});function Ei(e){const t=T4(6),o=Z4();o.value.set(t,e??!1);const r=n.computed({get:()=>o.value.get(t)??!1,set:a=>o.value.set(t,a)});return k4(()=>{o.value.delete(t)}),r}const z4="data-radix-vue-collection-item";function P4(e,t=z4){const o=Symbol();return{createCollection:r=>{const a=n.ref([]);function i(){const s=Dt(r);return s?a.value=Array.from(s.querySelectorAll(`[${t}]:not([data-disabled])`)):a.value=[]}return n.onBeforeUpdate(()=>{a.value=[]}),n.onMounted(i),n.onUpdated(i),n.watch(()=>r==null?void 0:r.value,i,{immediate:!0}),n.provide(o,a),a},injectCollection:()=>n.inject(o,n.ref([]))}}function Xl(e){const t=n.ref(e);function o(){return t.value}function r(w){t.value=w}function a(w,y){return new Bt(t.value,y).format(w)}function i(w,y=!0){return _a(w)&&y?a(Te(w),{dateStyle:"long",timeStyle:"long"}):a(Te(w),{dateStyle:"long"})}function s(w,y={}){return new Bt(t.value,{month:"long",year:"numeric",...y}).format(w)}function l(w,y={}){return new Bt(t.value,{month:"long",...y}).format(w)}function c(){const w=al(fo());return[1,2,3,4,5,6,7,8,9,10,11,12].map(y=>({label:l(Te(w.set({month:y}))),value:y}))}function d(w,y={}){return new Bt(t.value,{year:"numeric",...y}).format(w)}function u(w,y){return cr(w)?new Bt(t.value,{...y,timeZone:w.timeZone}).formatToParts(Te(w)):new Bt(t.value,y).formatToParts(Te(w))}function f(w,y="narrow"){return new Bt(t.value,{weekday:y}).format(w)}function h(w){var y;return((y=new Bt(t.value,{hour:"numeric",minute:"numeric"}).formatToParts(w).find(b=>b.type==="dayPeriod"))==null?void 0:y.value)==="PM"?"PM":"AM"}const m={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"};function g(w,y,b={}){const A={...m,...b},p=u(w,A).find(E=>E.type===y);return p?p.value:""}return{setLocale:r,getLocale:o,fullMonth:l,fullYear:d,fullMonthAndYear:s,toParts:u,custom:a,part:g,dayPeriod:h,selectedDate:i,dayOfWeek:f,getMonths:c}}function $t(e){const t=wi({dir:n.ref("ltr")});return n.computed(()=>{var o;return(e==null?void 0:e.value)||((o=t.dir)==null?void 0:o.value)||"ltr"})}function wo(e){const t=n.getCurrentInstance(),o=t==null?void 0:t.type.emits,r={};return o!=null&&o.length||console.warn(`No emitted event found. Please check component: ${t==null?void 0:t.type.__name}`),o==null||o.forEach(a=>{r[n.toHandlerKey(n.camelize(a))]=(...i)=>e(a,...i)}),r}let Ci=0;function _l(){n.watchEffect(e=>{if(!ht)return;const t=document.querySelectorAll("[data-radix-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??$l()),document.body.insertAdjacentElement("beforeend",t[1]??$l()),Ci++,e(()=>{Ci===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Ci--})})}function $l(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}function bi(e){return n.computed(()=>{var t;return Mt(e)?!!((t=Dt(e))!=null&&t.closest("form")):!0})}function vi(e){const t=n.getCurrentInstance(),o=Object.keys((t==null?void 0:t.type.props)??{}).reduce((a,i)=>{const s=(t==null?void 0:t.type.props[i]).default;return s!==void 0&&(a[i]=s),a},{}),r=n.toRef(e);return n.computed(()=>{const a={},i=(t==null?void 0:t.vnode.props)??{};return Object.keys(i).forEach(s=>{a[n.camelize(s)]=i[s]}),Object.keys({...o,...a}).reduce((s,l)=>(r.value[l]!==void 0&&(s[l]=r.value[l]),s),{})})}function pt(e,t){const o=vi(e),r=t?wo(t):{};return n.computed(()=>({...o.value,...r}))}function P(){const e=n.getCurrentInstance(),t=n.ref(),o=n.computed(()=>{var s,l;return["#text","#comment"].includes((s=t.value)==null?void 0:s.$el.nodeName)?(l=t.value)==null?void 0:l.$el.nextElementSibling:Dt(t)}),r=Object.assign({},e.exposed),a={};for(const s in e.props)Object.defineProperty(a,s,{enumerable:!0,configurable:!0,get:()=>e.props[s]});if(Object.keys(r).length>0)for(const s in r)Object.defineProperty(a,s,{enumerable:!0,configurable:!0,get:()=>r[s]});Object.defineProperty(a,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=a;function i(s){t.value=s,!(s instanceof Element||!s)&&(Object.defineProperty(a,"$el",{enumerable:!0,configurable:!0,get:()=>s.$el}),e.exposed=a)}return{forwardRef:i,currentRef:t,currentElement:o}}function F4(e,t){const o=Ll(!1,300),r=n.ref(null),a=y4();function i(){r.value=null,o.value=!1}function s(l,c){const d=l.currentTarget,u={x:l.clientX,y:l.clientY},f=j4(u,d.getBoundingClientRect()),h=Y4(u,f),m=U4(c.getBoundingClientRect()),g=q4([...h,...m]);r.value=g,o.value=!0}return n.watchEffect(l=>{if(e.value&&t.value){const c=u=>s(u,t.value),d=u=>s(u,e.value);e.value.addEventListener("pointerleave",c),t.value.addEventListener("pointerleave",d),l(()=>{var u,f;(u=e.value)==null||u.removeEventListener("pointerleave",c),(f=t.value)==null||f.removeEventListener("pointerleave",d)})}}),n.watchEffect(l=>{if(r.value){const c=d=>{var u,f;if(!r.value)return;const h=d.target,m={x:d.clientX,y:d.clientY},g=((u=e.value)==null?void 0:u.contains(h))||((f=t.value)==null?void 0:f.contains(h)),w=!G4(m,r.value),y=h.hasAttribute("data-grace-area-trigger");g?i():(w||y)&&(i(),a.trigger())};document.addEventListener("pointermove",c),l(()=>document.removeEventListener("pointermove",c))}}),{isPointerInTransit:o,onPointerExit:a.on}}function j4(e,t){const o=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(o,r,a,i)){case i:return"left";case a:return"right";case o:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Y4(e,t,o=5){const r=[];switch(t){case"top":r.push({x:e.x-o,y:e.y+o},{x:e.x+o,y:e.y+o});break;case"bottom":r.push({x:e.x-o,y:e.y-o},{x:e.x+o,y:e.y-o});break;case"left":r.push({x:e.x+o,y:e.y-o},{x:e.x+o,y:e.y+o});break;case"right":r.push({x:e.x-o,y:e.y-o},{x:e.x-o,y:e.y+o});break}return r}function U4(e){const{top:t,right:o,bottom:r,left:a}=e;return[{x:a,y:t},{x:o,y:t},{x:o,y:r},{x:a,y:r}]}function G4(e,t){const{x:o,y:r}=e;let a=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const l=t[i].x,c=t[i].y,d=t[s].x,u=t[s].y;c>r!=u>r&&o<(d-l)*(r-c)/(u-c)+l&&(a=!a)}return a}function q4(e){const t=e.slice();return t.sort((o,r)=>o.x<r.x?-1:o.x>r.x?1:o.y<r.y?-1:o.y>r.y?1:0),H4(t)}function H4(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const a=e[r];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(a.y-s.y)>=(i.y-s.y)*(a.x-s.x))t.pop();else break}t.push(a)}t.pop();const o=[];for(let r=e.length-1;r>=0;r--){const a=e[r];for(;o.length>=2;){const i=o[o.length-1],s=o[o.length-2];if((i.x-s.x)*(a.y-s.y)>=(i.y-s.y)*(a.x-s.x))o.pop();else break}o.push(a)}return o.pop(),t.length===1&&o.length===1&&t[0].x===o[0].x&&t[0].y===o[0].y?t:t.concat(o)}var L4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Dn=new WeakMap,Ar=new WeakMap,yr={},Bi=0,ec=function(e){return e&&(e.host||ec(e.parentNode))},K4=function(e,t){return t.map(function(o){if(e.contains(o))return o;var r=ec(o);return r&&e.contains(r)?r:(console.error("aria-hidden",o,"in not contained inside",e,". Doing nothing"),null)}).filter(function(o){return!!o})},W4=function(e,t,o,r){var a=K4(t,Array.isArray(e)?e:[e]);yr[o]||(yr[o]=new WeakMap);var i=yr[o],s=[],l=new Set,c=new Set(a),d=function(f){!f||l.has(f)||(l.add(f),d(f.parentNode))};a.forEach(d);var u=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(h){if(l.has(h))u(h);else try{var m=h.getAttribute(r),g=m!==null&&m!=="false",w=(Dn.get(h)||0)+1,y=(i.get(h)||0)+1;Dn.set(h,w),i.set(h,y),s.push(h),w===1&&g&&Ar.set(h,!0),y===1&&h.setAttribute(o,"true"),g||h.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return u(t),l.clear(),Bi++,function(){s.forEach(function(f){var h=Dn.get(f)-1,m=i.get(f)-1;Dn.set(f,h),i.set(f,m),h||(Ar.has(f)||f.removeAttribute(r),Ar.delete(f)),m||f.removeAttribute(o)}),Bi--,Bi||(Dn=new WeakMap,Dn=new WeakMap,Ar=new WeakMap,yr={})}},J4=function(e,t,o){o===void 0&&(o="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=L4(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live]"))),W4(r,a,o,"aria-hidden")):function(){return null}};function Ii(e){let t;n.watch(()=>Dt(e),o=>{o?t=J4(o):t&&t()}),n.onUnmounted(()=>{t&&t()})}let X4=0;function Qt(e,t="radix"){const{useId:o}=wi({useId:void 0});return o&&typeof o=="function"?`${t}-${o()}`:`${t}-${++X4}`}function _4(e){const t=n.ref(),o=n.computed(()=>{var a;return((a=t.value)==null?void 0:a.width)??0}),r=n.computed(()=>{var a;return((a=t.value)==null?void 0:a.height)??0});return n.onMounted(()=>{const a=Dt(e);if(a){t.value={width:a.offsetWidth,height:a.offsetHeight};const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const l=s[0];let c,d;if("borderBoxSize"in l){const u=l.borderBoxSize,f=Array.isArray(u)?u[0]:u;c=f.inlineSize,d=f.blockSize}else c=a.offsetWidth,d=a.offsetHeight;t.value={width:c,height:d}});return i.observe(a,{box:"border-box"}),()=>i.unobserve(a)}else t.value=void 0}),{width:o,height:r}}function $4(e,t){const o=n.ref(e);function r(a){return t[o.value][a]??o.value}return{state:o,dispatch:a=>{o.value=r(a)}}}function e5(e){const t=Ll("",1e3);return{search:t,handleTypeaheadSearch:(o,r)=>{var a,i;if(!(e!=null&&e.value)&&!r)return;t.value=t.value+o;const s=(e==null?void 0:e.value)??r,l=document.activeElement,c=((i=(a=s.find(h=>h===l))==null?void 0:a.textContent)==null?void 0:i.trim())??"",d=s.map(h=>{var m;return((m=h.textContent)==null?void 0:m.trim())??""}),u=n5(d,t.value,c),f=s.find(h=>{var m;return((m=h.textContent)==null?void 0:m.trim())===u});return f&&f.focus(),f},resetTypeahead:()=>{t.value=""}}}function t5(e,t){return e.map((o,r)=>e[(t+r)%e.length])}function n5(e,t,o){const r=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,a=o?e.indexOf(o):-1;let i=t5(e,Math.max(a,0));r.length===1&&(i=i.filter(l=>l!==o));const s=i.find(l=>l.toLowerCase().startsWith(r.toLowerCase()));return s!==o?s:void 0}function Eo(){return{ALT:"Alt",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",CAPS_LOCK:"CapsLock",CONTROL:"Control",DELETE:"Delete",END:"End",ENTER:"Enter",ESCAPE:"Escape",F1:"F1",F10:"F10",F11:"F11",F12:"F12",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",HOME:"Home",META:"Meta",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT:"Shift",SPACE:" ",TAB:"Tab",CTRL:"Control",ASTERISK:"*",SPACE_CODE:"Space"}}const ki=n.defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:o}){return()=>{var r,a;if(!o.default)return null;const i=gi(o.default()),s=i.findIndex(u=>u.type!==n.Comment);if(s===-1)return i;const l=i[s];(r=l.props)==null||delete r.ref;const c=l.props?n.mergeProps(t,l.props):t;t.class&&(a=l.props)!=null&&a.class&&delete l.props.class;const d=n.cloneVNode(l,c);for(const u in c)u.startsWith("on")&&(d.props||(d.props={}),d.props[u]=c[u]);return i.length===1?d:(i[s]=d,i)}}}),H=n.defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:o}){const r=e.asChild?"template":e.as;return typeof r=="string"&&["area","img","input"].includes(r)?()=>n.h(r,t):r!=="template"?()=>n.h(e.as,t,{default:o.default}):()=>n.h(ki,t,{default:o.default})}});function Co(){const e=n.ref(),t=n.computed(()=>{var o,r;return["#text","#comment"].includes((o=e.value)==null?void 0:o.$el.nodeName)?(r=e.value)==null?void 0:r.$el.nextElementSibling:Dt(e)});return{primitiveElement:e,currentElement:t}}function o5(e,t){const o=n.ref({}),r=n.ref("none"),a=e.value?"mounted":"unmounted",{state:i,dispatch:s}=$4(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),l=h=>{var m;if(ht){const g=new CustomEvent(h,{bubbles:!1,cancelable:!1});(m=t.value)==null||m.dispatchEvent(g)}};n.watch(e,async(h,m)=>{var g;const w=m!==h;if(await n.nextTick(),w){const y=r.value,b=wr(t.value);h?(s("MOUNT"),l("enter"),b==="none"&&l("after-enter")):b==="none"||((g=o.value)==null?void 0:g.display)==="none"?(s("UNMOUNT"),l("leave"),l("after-leave")):m&&y!==b?(s("ANIMATION_OUT"),l("leave")):(s("UNMOUNT"),l("after-leave"))}},{immediate:!0});const c=h=>{const m=wr(t.value),g=m.includes(h.animationName),w=i.value==="mounted"?"enter":"leave";h.target===t.value&&g&&(l(`after-${w}`),s("ANIMATION_END")),h.target===t.value&&m==="none"&&s("ANIMATION_END")},d=h=>{h.target===t.value&&(r.value=wr(t.value))},u=n.watch(t,(h,m)=>{h?(o.value=getComputedStyle(h),h.addEventListener("animationstart",d),h.addEventListener("animationcancel",c),h.addEventListener("animationend",c)):(s("ANIMATION_END"),m==null||m.removeEventListener("animationstart",d),m==null||m.removeEventListener("animationcancel",c),m==null||m.removeEventListener("animationend",c))},{immediate:!0}),f=n.watch(i,()=>{const h=wr(t.value);r.value=i.value==="mounted"?h:"none"});return n.onUnmounted(()=>{u(),f()}),{isPresent:n.computed(()=>["mounted","unmountSuspended"].includes(i.value))}}function wr(e){return e&&getComputedStyle(e).animationName||"none"}const en=n.defineComponent({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:o}){var r;const{present:a,forceMount:i}=n.toRefs(e),s=n.ref(),{isPresent:l}=o5(a,s);o({present:l});let c=t.default({present:l});c=gi(c||[]);const d=n.getCurrentInstance();if(c&&(c==null?void 0:c.length)>1){const u=(r=d==null?void 0:d.parent)!=null&&r.type.name?`<${d.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${u}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(f=>` - ${f}`).join(`
|
|
18
18
|
`)].join(`
|
|
19
19
|
`))}return()=>i.value||a.value||l.value?n.h(t.default({present:l})[0],{ref:u=>{const f=Dt(u);return typeof(f==null?void 0:f.hasAttribute)>"u"||(f!=null&&f.hasAttribute("data-radix-popper-content-wrapper")?s.value=f.firstElementChild:s.value=f),f}}):null}}),[gt,r5]=re("DialogRoot"),xi=n.defineComponent({__name:"DialogRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(e,{emit:t}){const o=e,r=he(o,"open",t,{defaultValue:o.defaultOpen,passive:o.open===void 0}),a=n.ref(),i=n.ref(),{modal:s}=n.toRefs(o);return r5({open:r,modal:s,openModal:()=>{r.value=!0},onOpenChange:l=>{r.value=l},onOpenToggle:()=>{r.value=!r.value},contentId:"",titleId:"",descriptionId:"",triggerElement:a,contentElement:i}),(l,c)=>n.renderSlot(l.$slots,"default",{open:n.unref(r)})}}),Oi=n.defineComponent({__name:"DialogTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,o=gt(),{forwardRef:r,currentElement:a}=P();return o.contentId||(o.contentId=Qt(void 0,"radix-vue-dialog-content")),n.onMounted(()=>{o.triggerElement.value=a.value}),(i,s)=>(n.openBlock(),n.createBlock(n.unref(H),n.mergeProps(t,{ref:n.unref(r),type:i.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":n.unref(o).open.value||!1,"aria-controls":n.unref(o).open.value?n.unref(o).contentId:void 0,"data-state":n.unref(o).open.value?"open":"closed",onClick:n.unref(o).onOpenToggle}),{default:n.withCtx(()=>[n.renderSlot(i.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}}),Er=n.defineComponent({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=M4();return(o,r)=>n.unref(t)||o.forceMount?(n.openBlock(),n.createBlock(n.Teleport,{key:0,to:o.to,disabled:o.disabled},[n.renderSlot(o.$slots,"default")],8,["to","disabled"])):n.createCommentVNode("",!0)}}),Mi=n.defineComponent({__name:"DialogPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(o,r)=>(n.openBlock(),n.createBlock(n.unref(Er),n.normalizeProps(n.guardReactiveProps(t)),{default:n.withCtx(()=>[n.renderSlot(o.$slots,"default")]),_:3},16))}}),a5="dismissableLayer.pointerDownOutside",i5="dismissableLayer.focusOutside";function tc(e,t){const o=t.closest("[data-dismissable-layer]"),r=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),a=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(o&&r===o||a.indexOf(r)<a.indexOf(o))}function s5(e,t){var o;const r=((o=t==null?void 0:t.value)==null?void 0:o.ownerDocument)??(globalThis==null?void 0:globalThis.document),a=n.ref(!1),i=n.ref(()=>{});return n.watchEffect(s=>{if(!ht)return;const l=async d=>{const u=d.target;if(t!=null&&t.value){if(tc(t.value,u)){a.value=!1;return}if(d.target&&!a.value){let f=function(){Fl(a5,e,h)};const h={originalEvent:d};d.pointerType==="touch"?(r.removeEventListener("click",i.value),i.value=f,r.addEventListener("click",i.value,{once:!0})):f()}else r.removeEventListener("click",i.value);a.value=!1}},c=window.setTimeout(()=>{r.addEventListener("pointerdown",l)},0);s(()=>{window.clearTimeout(c),r.removeEventListener("pointerdown",l),r.removeEventListener("click",i.value)})}),{onPointerDownCapture:()=>a.value=!0}}function l5(e,t){var o;const r=((o=t==null?void 0:t.value)==null?void 0:o.ownerDocument)??(globalThis==null?void 0:globalThis.document),a=n.ref(!1);return n.watchEffect(i=>{if(!ht)return;const s=async l=>{t!=null&&t.value&&(await n.nextTick(),!(!t.value||tc(t.value,l.target))&&l.target&&!a.value&&Fl(i5,e,{originalEvent:l}))};r.addEventListener("focusin",s),i(()=>r.removeEventListener("focusin",s))}),{onFocusCapture:()=>a.value=!0,onBlurCapture:()=>a.value=!1}}const At=n.reactive({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Cr=n.defineComponent({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const o=e,r=t,{forwardRef:a,currentElement:i}=P(),s=n.computed(()=>{var g;return((g=i.value)==null?void 0:g.ownerDocument)??globalThis.document}),l=n.computed(()=>At.layersRoot),c=n.computed(()=>i.value?Array.from(l.value).indexOf(i.value):-1),d=n.computed(()=>At.layersWithOutsidePointerEventsDisabled.size>0),u=n.computed(()=>{const g=Array.from(l.value),[w]=[...At.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(w);return c.value>=y}),f=s5(async g=>{const w=[...At.branches].some(y=>y.contains(g.target));!u.value||w||(r("pointerDownOutside",g),r("interactOutside",g),await n.nextTick(),g.defaultPrevented||r("dismiss"))},i),h=l5(g=>{[...At.branches].some(w=>w.contains(g.target))||(r("focusOutside",g),r("interactOutside",g),g.defaultPrevented||r("dismiss"))},i);O4("Escape",g=>{c.value===l.value.size-1&&(r("escapeKeyDown",g),g.defaultPrevented||r("dismiss"))});let m;return n.watchEffect(g=>{i.value&&(o.disableOutsidePointerEvents&&(At.layersWithOutsidePointerEventsDisabled.size===0&&(m=s.value.body.style.pointerEvents,s.value.body.style.pointerEvents="none"),At.layersWithOutsidePointerEventsDisabled.add(i.value)),l.value.add(i.value),g(()=>{o.disableOutsidePointerEvents&&At.layersWithOutsidePointerEventsDisabled.size===1&&(s.value.body.style.pointerEvents=m)}))}),n.watchEffect(g=>{g(()=>{i.value&&(l.value.delete(i.value),At.layersWithOutsidePointerEventsDisabled.delete(i.value))})}),(g,w)=>(n.openBlock(),n.createBlock(n.unref(H),{ref:n.unref(a),"as-child":g.asChild,as:g.as,"data-dismissable-layer":"",style:n.normalizeStyle({pointerEvents:d.value?u.value?"auto":"none":void 0}),onFocusCapture:n.unref(h).onFocusCapture,onBlurCapture:n.unref(h).onBlurCapture,onPointerdownCapture:n.unref(f).onPointerDownCapture},{default:n.withCtx(()=>[n.renderSlot(g.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),Di="focusScope.autoFocusOnMount",Si="focusScope.autoFocusOnUnmount",nc={bubbles:!1,cancelable:!0};function c5(e,{select:t=!1}={}){const o=document.activeElement;for(const r of e)if(Nt(r,{select:t}),document.activeElement!==o)return!0}function d5(e){const t=oc(e),o=rc(t,e),r=rc(t.reverse(),e);return[o,r]}function oc(e){const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t}function rc(e,t){for(const o of e)if(!u5(o,{upTo:t}))return o}function u5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function f5(e){return e instanceof HTMLInputElement&&"select"in e}function Nt(e,{select:t=!1}={}){if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),e!==o&&f5(e)&&t&&e.select()}}const m5=w4(()=>n.ref([]));function h5(){const e=m5();return{add(t){const o=e.value[0];t!==o&&(o==null||o.pause()),e.value=ac(e.value,t),e.value.unshift(t)},remove(t){var o;e.value=ac(e.value,t),(o=e.value[0])==null||o.resume()}}}function ac(e,t){const o=[...e],r=o.indexOf(t);return r!==-1&&o.splice(r,1),o}function p5(e){return e.filter(t=>t.tagName!=="A")}const Qi=n.defineComponent({__name:"FocusScope",props:{loop:{type:Boolean,default:!1},trapped:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const o=e,r=t,{currentRef:a,currentElement:i}=P(),s=n.ref(null),l=h5(),c=n.reactive({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});n.watchEffect(u=>{if(!ht)return;const f=i.value;if(!o.trapped)return;function h(y){if(c.paused||!f)return;const b=y.target;f.contains(b)?s.value=b:Nt(s.value,{select:!0})}function m(y){if(c.paused||!f)return;const b=y.relatedTarget;b!==null&&(f.contains(b)||Nt(s.value,{select:!0}))}function g(y){f.contains(s.value)||Nt(f)}document.addEventListener("focusin",h),document.addEventListener("focusout",m);const w=new MutationObserver(g);f&&w.observe(f,{childList:!0,subtree:!0}),u(()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",m),w.disconnect()})}),n.watchEffect(async u=>{const f=i.value;if(await n.nextTick(),!f)return;l.add(c);const h=document.activeElement;if(!f.contains(h)){const m=new CustomEvent(Di,nc);f.addEventListener(Di,g=>r("mountAutoFocus",g)),f.dispatchEvent(m),m.defaultPrevented||(c5(p5(oc(f)),{select:!0}),document.activeElement===h&&Nt(f))}u(()=>{f.removeEventListener(Di,w=>r("mountAutoFocus",w));const m=new CustomEvent(Si,nc),g=w=>{r("unmountAutoFocus",w)};f.addEventListener(Si,g),f.dispatchEvent(m),setTimeout(()=>{m.defaultPrevented||Nt(h??document.body,{select:!0}),f.removeEventListener(Si,g),l.remove(c)},0)})});function d(u){if(!o.loop&&!o.trapped||c.paused)return;const f=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,h=document.activeElement;if(f&&h){const m=u.currentTarget,[g,w]=d5(m);g&&w?!u.shiftKey&&h===w?(u.preventDefault(),o.loop&&Nt(g,{select:!0})):u.shiftKey&&h===g&&(u.preventDefault(),o.loop&&Nt(w,{select:!0})):h===m&&u.preventDefault()}}return(u,f)=>(n.openBlock(),n.createBlock(n.unref(H),{ref_key:"currentRef",ref:a,tabindex:"-1","as-child":u.asChild,as:u.as,onKeydown:d},{default:n.withCtx(()=>[n.renderSlot(u.$slots,"default")]),_:3},8,["as-child","as"]))}}),g5="menu.itemSelect",Ni=["Enter"," "],A5=["ArrowDown","PageUp","Home"],ic=["ArrowUp","PageDown","End"],y5=[...A5,...ic];[...Ni],[...Ni];function sc(e){return e?"open":"closed"}function w5(e){const t=document.activeElement;for(const o of e)if(o===t||(o.focus(),document.activeElement!==t))return}function E5(e,t){const{x:o,y:r}=e;let a=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const l=t[i].x,c=t[i].y,d=t[s].x,u=t[s].y;c>r!=u>r&&o<(d-l)*(r-c)/(u-c)+l&&(a=!a)}return a}function C5(e,t){if(!t)return!1;const o={x:e.clientX,y:e.clientY};return E5(o,t)}function Ri(e){return e.pointerType==="mouse"}const b5="DialogTitle",v5="DialogContent";function B5({titleName:e=b5,contentName:t=v5,componentLink:o="dialog.html#title",titleId:r,descriptionId:a,contentElement:i}){const s=`Warning: \`${t}\` requires a \`${e}\` for the component to be accessible for screen reader users.
|
|
20
20
|
|