fge-auth-component 1.3.3 → 1.3.4

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.
@@ -5132,7 +5132,7 @@ function vn() {
5132
5132
  }
5133
5133
  const _3 = () => {
5134
5134
  const t = window.location.href.split("?")[1], e = new URLSearchParams(t), n = Object.fromEntries(e.entries());
5135
- console.log(n), n.continueAuth && (vn(), setTimeout(function() {
5135
+ n.continueAuth && (vn(), setTimeout(function() {
5136
5136
  Dt("continue-digital", JSON.stringify({ continueAuth: n.continueAuth }));
5137
5137
  }, 2e3), setTimeout(function() {
5138
5138
  window.close();
@@ -16986,7 +16986,7 @@ function pi(t = "fge") {
16986
16986
  };
16987
16987
  if (l(i.value)) {
16988
16988
  try {
16989
- console.log("?"), await h(O);
16989
+ await h(O);
16990
16990
  } catch (P) {
16991
16991
  s.add({
16992
16992
  severity: "error",
@@ -88,7 +88,7 @@ This will fail in production.`);l=qt,l._s.has(r)||(i?eo(r,e,a,l):Hi(r,a,l),proce
88
88
  />
89
89
  </svg>
90
90
  </div>
91
- `,t.style.display="block",t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100%",t.style.backgroundColor="#3E4754",t.style.display="flex",t.style.justifyContent="center",t.style.alignItems="center",t.style.color="#fff",t.style.fontSize="24px",t.style.zIndex="999999",document.body.appendChild(t),t}const xu=()=>{const t=window.location.href.split("?")[1],e=new URLSearchParams(t),n=Object.fromEntries(e.entries());console.log(n),n.continueAuth&&(Qt(),setTimeout(function(){rt("continue-digital",JSON.stringify({continueAuth:n.continueAuth}))},2e3),setTimeout(function(){window.close()},3e3)),n.agetic?(Qt(),setTimeout(function(){rt("digital",n.agetic.replace("#/",""))},2e3),setTimeout(function(){window.close()},3e3)):n.approbation?(Qt(),setTimeout(function(){rt("documentDigital",n.approbation.replace("#/",""))},2e3),setTimeout(function(){window.close()},3e3)):n.logout?(Qt(),setTimeout(function(){ke("digital"),ke("documentDigital"),ke("dataAgetic"),ke("ms_itm")},3e3),setTimeout(function(){window.close()},3500)):n.redirectEmergency&&(Qt(),setTimeout(function(){rt("documentDigital",n.redirectEmergency.replace("#/",""))},3e3),setTimeout(function(){window.close()},3500))},Ou=async(t={openWindows:!1,tokenMsSeguridad:null,verifyFunctionary:!0})=>{try{ke("digital-before"),ke("continue-digital");const n=t.openWindows,r=Ot("digital");rt("digital-before",r||"");const{url:a}=await Eu(r||"{}",t.tokenMsSeguridad,t.verifyFunctionary);let i;$a()||n?i=window.open(a,"_blank"):i=window.open(a,"Iniciar Sesion Ciudadania Digital","width=700,height=700,resizable=no"),ke("digital");var e=!1;const s=setInterval(function(){i!=null&&i.closed&&(clearInterval(s),e=!0)},1e3);await(async()=>{for(;!e;)await new Promise(c=>setTimeout(c,100));return!0})();let l=Ot("digital");if(JSON.parse(Ot("continue-digital")||"{}").continueAuth==="true")return setTimeout(function(){rt("digital",Ot("digital-before")||"")},1e3),setTimeout(function(){ke("digital-before")},2e3),{authContinue:!0,message:"Aun posee una session de agetic vigente"};if(l)if(l=JSON.parse(l),l&&!l.error){const c=await Tu(l.binnacleId);return ke("digital-before"),document.dispatchEvent(new CustomEvent("timeLineSuccessLogin")),c}else return l.error?(document.dispatchEvent(new CustomEvent("timeLineErrorLogin")),l):(document.dispatchEvent(new CustomEvent("timeLineErrorLogin")),null);else return document.dispatchEvent(new CustomEvent("timeLineErrorLogin")),null}catch(n){const r=n==null?void 0:n.response;if(r!=null&&r.closeSession&&r!=null&&r.binnacleId)return await Aa({openWindows:!1,binnacleId:r.binnacleId})}},Aa=async(t={openWindows:!1})=>{const e=t.openWindows,n=t.binnacleId;let r=Ot("digital");if(r){r=JSON.parse(r);const a=`${window.VITE_API_SERVER_REDIRECT?window.VITE_API_SERVER_REDIRECT:"https://agetic.mp.gob.bo"}?urlRedirectLogout=${window.VITE_API_BASE_URL?window.VITE_API_BASE_URL:"http://127.0.0.1:5173"}&binnacleId=${encodeURIComponent(n||r.binnacleId)}`;return $a()||e?window.open(a,"_blank"):window.open(a,"Cerrar Sesion Ciudadania Digital","width=700,height=700,resizable=no"),ke("digital"),ke("documentDigital"),ke("dataAgetic"),ke("ms_itm"),{logout:!0}}},Iu={install(t,e){xu(),t.mixin({created(){}}),window.VITE_API_INTERMEDIARY_SEGURITY=e.VITE_API_INTERMEDIARY_SEGURITY,window.VITE_API_LOCAL_FIRMATIC=e.VITE_API_LOCAL_FIRMATIC,window.VITE_API_SERVER_REDIRECT=e.VITE_API_SERVER_REDIRECT,window.VITE_API_BASE_URL=e.VITE_API_BASE_URL,window.VITE_API_APLICATION=e.VITE_API_APLICATION,window.VITE_VERIFY_FUNCTIONARY=e.VITE_VERIFY_FUNCTIONARY==="true",window.VITE_TOKEN_SEGURITY_AGETIC=e.VITE_TOKEN_SEGURITY_AGETIC,window.VITE_DEVELOPMENT_ENVIRONMENT=e.VITE_DEVELOPMENT_ENVIRONMENT}};let Xn;const _u=new Uint8Array(16);function Vu(){if(!Xn&&(Xn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Xn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Xn(_u)}const ce=[];for(let t=0;t<256;++t)ce.push((t+256).toString(16).slice(1));function Pu(t,e=0){return(ce[t[e+0]]+ce[t[e+1]]+ce[t[e+2]]+ce[t[e+3]]+"-"+ce[t[e+4]]+ce[t[e+5]]+"-"+ce[t[e+6]]+ce[t[e+7]]+"-"+ce[t[e+8]]+ce[t[e+9]]+"-"+ce[t[e+10]]+ce[t[e+11]]+ce[t[e+12]]+ce[t[e+13]]+ce[t[e+14]]+ce[t[e+15]]).toLowerCase()}const Za={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Nu(t,e,n){if(Za.randomUUID&&!e&&!t)return Za.randomUUID();t=t||{};const r=t.random||(t.rng||Vu)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){n=n||0;for(let a=0;a<16;++a)e[n+a]=r[a];return e}return Pu(r)}function La(t){const e=document.cookie.split(";");for(let n=0;n<e.length;n++){const r=e[n].trim();if(r.startsWith(t+"="))return decodeURIComponent(r.substring(t.length+1))}return null}function Ra({name:t,value:e,days:n=0,hours:r=0,minutes:a=0,seconds:i=0,milliseconds:s=0}){const l=new Date;l.setTime(l.getTime()+n*24*60*60*1e3+r*60*60*1e3+a*60*1e3+i*1e3+s);const c="; expires="+l.toUTCString();document.cookie=t+"="+encodeURIComponent(e)+c+"; path=/"}function Fa(t,e){return function(){return t.apply(e,arguments)}}const{toString:Bu}=Object.prototype,{getPrototypeOf:bo}=Object,Qn=(t=>e=>{const n=Bu.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),He=t=>(t=t.toLowerCase(),e=>Qn(e)===t),er=t=>e=>typeof e===t,{isArray:Vt}=Array,en=er("undefined");function Mu(t){return t!==null&&!en(t)&&t.constructor!==null&&!en(t.constructor)&&xe(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const ja=He("ArrayBuffer");function Du(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&ja(t.buffer),e}const $u=er("string"),xe=er("function"),Ha=er("number"),tr=t=>t!==null&&typeof t=="object",Au=t=>t===!0||t===!1,nr=t=>{if(Qn(t)!=="object")return!1;const e=bo(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Zu=He("Date"),Lu=He("File"),Ru=He("Blob"),Fu=He("FileList"),ju=t=>tr(t)&&xe(t.pipe),Hu=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||xe(t.append)&&((e=Qn(t))==="formdata"||e==="object"&&xe(t.toString)&&t.toString()==="[object FormData]"))},Uu=He("URLSearchParams"),zu=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function tn(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,a;if(typeof t!="object"&&(t=[t]),Vt(t))for(r=0,a=t.length;r<a;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),s=i.length;let l;for(r=0;r<s;r++)l=i[r],e.call(null,t[l],l,t)}}function Ua(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,a;for(;r-- >0;)if(a=n[r],e===a.toLowerCase())return a;return null}const za=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),qa=t=>!en(t)&&t!==za;function vo(){const{caseless:t}=qa(this)&&this||{},e={},n=(r,a)=>{const i=t&&Ua(e,a)||a;nr(e[i])&&nr(r)?e[i]=vo(e[i],r):nr(r)?e[i]=vo({},r):Vt(r)?e[i]=r.slice():e[i]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&tn(arguments[r],n);return e}const qu=(t,e,n,{allOwnKeys:r}={})=>(tn(e,(a,i)=>{n&&xe(a)?t[i]=Fa(a,n):t[i]=a},{allOwnKeys:r}),t),Wu=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Ku=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Yu=(t,e,n,r)=>{let a,i,s;const l={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),i=a.length;i-- >0;)s=a[i],(!r||r(s,t,e))&&!l[s]&&(e[s]=t[s],l[s]=!0);t=n!==!1&&bo(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Gu=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Ju=t=>{if(!t)return null;if(Vt(t))return t;let e=t.length;if(!Ha(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Xu=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&bo(Uint8Array)),Qu=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let a;for(;(a=r.next())&&!a.done;){const i=a.value;e.call(t,i[0],i[1])}},ed=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},td=He("HTMLFormElement"),nd=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),Wa=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),rd=He("RegExp"),Ka=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};tn(n,(a,i)=>{e(a,i,t)!==!1&&(r[i]=a)}),Object.defineProperties(t,r)},od=t=>{Ka(t,(e,n)=>{if(xe(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(xe(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},id=(t,e)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return Vt(t)?r(t):r(String(t).split(e)),n},ad=()=>{},sd=(t,e)=>(t=+t,Number.isFinite(t)?t:e),wo="abcdefghijklmnopqrstuvwxyz",Ya="0123456789",Ga={DIGIT:Ya,ALPHA:wo,ALPHA_DIGIT:wo+wo.toUpperCase()+Ya},ld=(t=16,e=Ga.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function cd(t){return!!(t&&xe(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const ud=t=>{const e=new Array(10),n=(r,a)=>{if(tr(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[a]=r;const i=Vt(r)?[]:{};return tn(r,(s,l)=>{const c=n(s,a+1);!en(c)&&(i[l]=c)}),e[a]=void 0,i}}return r};return n(t,0)},dd=He("AsyncFunction"),S={isArray:Vt,isArrayBuffer:ja,isBuffer:Mu,isFormData:Hu,isArrayBufferView:Du,isString:$u,isNumber:Ha,isBoolean:Au,isObject:tr,isPlainObject:nr,isUndefined:en,isDate:Zu,isFile:Lu,isBlob:Ru,isRegExp:rd,isFunction:xe,isStream:ju,isURLSearchParams:Uu,isTypedArray:Xu,isFileList:Fu,forEach:tn,merge:vo,extend:qu,trim:zu,stripBOM:Wu,inherits:Ku,toFlatObject:Yu,kindOf:Qn,kindOfTest:He,endsWith:Gu,toArray:Ju,forEachEntry:Qu,matchAll:ed,isHTMLForm:td,hasOwnProperty:Wa,hasOwnProp:Wa,reduceDescriptors:Ka,freezeMethods:od,toObjectSet:id,toCamelCase:nd,noop:ad,toFiniteNumber:sd,findKey:Ua,global:za,isContextDefined:qa,ALPHABET:Ga,generateString:ld,isSpecCompliantForm:cd,toJSONObject:ud,isAsyncFn:dd,isThenable:t=>t&&(tr(t)||xe(t))&&xe(t.then)&&xe(t.catch)};function H(t,e,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a)}S.inherits(H,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:S.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ja=H.prototype,Xa={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Xa[t]={value:t}}),Object.defineProperties(H,Xa),Object.defineProperty(Ja,"isAxiosError",{value:!0}),H.from=(t,e,n,r,a,i)=>{const s=Object.create(Ja);return S.toFlatObject(t,s,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),H.call(s,t.message,e,n,r,a),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const fd=null;function ko(t){return S.isPlainObject(t)||S.isArray(t)}function Qa(t){return S.endsWith(t,"[]")?t.slice(0,-2):t}function es(t,e,n){return t?t.concat(e).map(function(a,i){return a=Qa(a),!n&&i?"["+a+"]":a}).join(n?".":""):e}function md(t){return S.isArray(t)&&!t.some(ko)}const hd=S.toFlatObject(S,{},null,function(e){return/^is[A-Z]/.test(e)});function rr(t,e,n){if(!S.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=S.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,k){return!S.isUndefined(k[y])});const r=n.metaTokens,a=n.visitor||d,i=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(e);if(!S.isFunction(a))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(S.isDate(p))return p.toISOString();if(!c&&S.isBlob(p))throw new H("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(p)||S.isTypedArray(p)?c&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,y,k){let x=p;if(p&&!k&&typeof p=="object"){if(S.endsWith(y,"{}"))y=r?y:y.slice(0,-2),p=JSON.stringify(p);else if(S.isArray(p)&&md(p)||(S.isFileList(p)||S.endsWith(y,"[]"))&&(x=S.toArray(p)))return y=Qa(y),x.forEach(function(b,T){!(S.isUndefined(b)||b===null)&&e.append(s===!0?es([y],T,i):s===null?y:y+"[]",u(b))}),!1}return ko(p)?!0:(e.append(es(k,y,i),u(p)),!1)}const f=[],h=Object.assign(hd,{defaultVisitor:d,convertValue:u,isVisitable:ko});function m(p,y){if(!S.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(p),S.forEach(p,function(x,g){(!(S.isUndefined(x)||x===null)&&a.call(e,x,S.isString(g)?g.trim():g,y,h))===!0&&m(x,y?y.concat(g):[g])}),f.pop()}}if(!S.isObject(t))throw new TypeError("data must be an object");return m(t),e}function ts(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Co(t,e){this._pairs=[],t&&rr(t,this,e)}const ns=Co.prototype;ns.append=function(e,n){this._pairs.push([e,n])},ns.toString=function(e){const n=e?function(r){return e.call(this,r,ts)}:ts;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function pd(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rs(t,e,n){if(!e)return t;const r=n&&n.encode||pd,a=n&&n.serialize;let i;if(a?i=a(e,n):i=S.isURLSearchParams(e)?e.toString():new Co(e,n).toString(r),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class gd{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){S.forEach(this.handlers,function(r){r!==null&&e(r)})}}const os=gd,is={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yd=typeof URLSearchParams<"u"?URLSearchParams:Co,bd=typeof FormData<"u"?FormData:null,vd=typeof Blob<"u"?Blob:null,wd=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),kd=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ue={isBrowser:!0,classes:{URLSearchParams:yd,FormData:bd,Blob:vd},isStandardBrowserEnv:wd,isStandardBrowserWebWorkerEnv:kd,protocols:["http","https","file","blob","url","data"]};function Cd(t,e){return rr(t,new Ue.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return Ue.isNode&&S.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function Sd(t){return S.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Ed(t){const e={},n=Object.keys(t);let r;const a=n.length;let i;for(r=0;r<a;r++)i=n[r],e[i]=t[i];return e}function as(t){function e(n,r,a,i){let s=n[i++];const l=Number.isFinite(+s),c=i>=n.length;return s=!s&&S.isArray(a)?a.length:s,c?(S.hasOwnProp(a,s)?a[s]=[a[s],r]:a[s]=r,!l):((!a[s]||!S.isObject(a[s]))&&(a[s]=[]),e(n,r,a[s],i)&&S.isArray(a[s])&&(a[s]=Ed(a[s])),!l)}if(S.isFormData(t)&&S.isFunction(t.entries)){const n={};return S.forEachEntry(t,(r,a)=>{e(Sd(r),a,n,0)}),n}return null}const Td={"Content-Type":void 0};function xd(t,e,n){if(S.isString(t))try{return(e||JSON.parse)(t),S.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const or={transitional:is,adapter:["xhr","http"],transformRequest:[function(e,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=S.isObject(e);if(i&&S.isHTMLForm(e)&&(e=new FormData(e)),S.isFormData(e))return a&&a?JSON.stringify(as(e)):e;if(S.isArrayBuffer(e)||S.isBuffer(e)||S.isStream(e)||S.isFile(e)||S.isBlob(e))return e;if(S.isArrayBufferView(e))return e.buffer;if(S.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Cd(e,this.formSerializer).toString();if((l=S.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return rr(l?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),xd(e)):e}],transformResponse:[function(e){const n=this.transitional||or.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(e&&S.isString(e)&&(r&&!this.responseType||a)){const s=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(l){if(s)throw l.name==="SyntaxError"?H.from(l,H.ERR_BAD_RESPONSE,this,null,this.response):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ue.classes.FormData,Blob:Ue.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};S.forEach(["delete","get","head"],function(e){or.headers[e]={}}),S.forEach(["post","put","patch"],function(e){or.headers[e]=S.merge(Td)});const So=or,Od=S.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Id=t=>{const e={};let n,r,a;return t&&t.split(`
91
+ `,t.style.display="block",t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100%",t.style.backgroundColor="#3E4754",t.style.display="flex",t.style.justifyContent="center",t.style.alignItems="center",t.style.color="#fff",t.style.fontSize="24px",t.style.zIndex="999999",document.body.appendChild(t),t}const xu=()=>{const t=window.location.href.split("?")[1],e=new URLSearchParams(t),n=Object.fromEntries(e.entries());n.continueAuth&&(Qt(),setTimeout(function(){rt("continue-digital",JSON.stringify({continueAuth:n.continueAuth}))},2e3),setTimeout(function(){window.close()},3e3)),n.agetic?(Qt(),setTimeout(function(){rt("digital",n.agetic.replace("#/",""))},2e3),setTimeout(function(){window.close()},3e3)):n.approbation?(Qt(),setTimeout(function(){rt("documentDigital",n.approbation.replace("#/",""))},2e3),setTimeout(function(){window.close()},3e3)):n.logout?(Qt(),setTimeout(function(){ke("digital"),ke("documentDigital"),ke("dataAgetic"),ke("ms_itm")},3e3),setTimeout(function(){window.close()},3500)):n.redirectEmergency&&(Qt(),setTimeout(function(){rt("documentDigital",n.redirectEmergency.replace("#/",""))},3e3),setTimeout(function(){window.close()},3500))},Ou=async(t={openWindows:!1,tokenMsSeguridad:null,verifyFunctionary:!0})=>{try{ke("digital-before"),ke("continue-digital");const n=t.openWindows,r=Ot("digital");rt("digital-before",r||"");const{url:a}=await Eu(r||"{}",t.tokenMsSeguridad,t.verifyFunctionary);let i;$a()||n?i=window.open(a,"_blank"):i=window.open(a,"Iniciar Sesion Ciudadania Digital","width=700,height=700,resizable=no"),ke("digital");var e=!1;const s=setInterval(function(){i!=null&&i.closed&&(clearInterval(s),e=!0)},1e3);await(async()=>{for(;!e;)await new Promise(c=>setTimeout(c,100));return!0})();let l=Ot("digital");if(JSON.parse(Ot("continue-digital")||"{}").continueAuth==="true")return setTimeout(function(){rt("digital",Ot("digital-before")||"")},1e3),setTimeout(function(){ke("digital-before")},2e3),{authContinue:!0,message:"Aun posee una session de agetic vigente"};if(l)if(l=JSON.parse(l),l&&!l.error){const c=await Tu(l.binnacleId);return ke("digital-before"),document.dispatchEvent(new CustomEvent("timeLineSuccessLogin")),c}else return l.error?(document.dispatchEvent(new CustomEvent("timeLineErrorLogin")),l):(document.dispatchEvent(new CustomEvent("timeLineErrorLogin")),null);else return document.dispatchEvent(new CustomEvent("timeLineErrorLogin")),null}catch(n){const r=n==null?void 0:n.response;if(r!=null&&r.closeSession&&r!=null&&r.binnacleId)return await Aa({openWindows:!1,binnacleId:r.binnacleId})}},Aa=async(t={openWindows:!1})=>{const e=t.openWindows,n=t.binnacleId;let r=Ot("digital");if(r){r=JSON.parse(r);const a=`${window.VITE_API_SERVER_REDIRECT?window.VITE_API_SERVER_REDIRECT:"https://agetic.mp.gob.bo"}?urlRedirectLogout=${window.VITE_API_BASE_URL?window.VITE_API_BASE_URL:"http://127.0.0.1:5173"}&binnacleId=${encodeURIComponent(n||r.binnacleId)}`;return $a()||e?window.open(a,"_blank"):window.open(a,"Cerrar Sesion Ciudadania Digital","width=700,height=700,resizable=no"),ke("digital"),ke("documentDigital"),ke("dataAgetic"),ke("ms_itm"),{logout:!0}}},Iu={install(t,e){xu(),t.mixin({created(){}}),window.VITE_API_INTERMEDIARY_SEGURITY=e.VITE_API_INTERMEDIARY_SEGURITY,window.VITE_API_LOCAL_FIRMATIC=e.VITE_API_LOCAL_FIRMATIC,window.VITE_API_SERVER_REDIRECT=e.VITE_API_SERVER_REDIRECT,window.VITE_API_BASE_URL=e.VITE_API_BASE_URL,window.VITE_API_APLICATION=e.VITE_API_APLICATION,window.VITE_VERIFY_FUNCTIONARY=e.VITE_VERIFY_FUNCTIONARY==="true",window.VITE_TOKEN_SEGURITY_AGETIC=e.VITE_TOKEN_SEGURITY_AGETIC,window.VITE_DEVELOPMENT_ENVIRONMENT=e.VITE_DEVELOPMENT_ENVIRONMENT}};let Xn;const _u=new Uint8Array(16);function Vu(){if(!Xn&&(Xn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Xn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Xn(_u)}const ce=[];for(let t=0;t<256;++t)ce.push((t+256).toString(16).slice(1));function Pu(t,e=0){return(ce[t[e+0]]+ce[t[e+1]]+ce[t[e+2]]+ce[t[e+3]]+"-"+ce[t[e+4]]+ce[t[e+5]]+"-"+ce[t[e+6]]+ce[t[e+7]]+"-"+ce[t[e+8]]+ce[t[e+9]]+"-"+ce[t[e+10]]+ce[t[e+11]]+ce[t[e+12]]+ce[t[e+13]]+ce[t[e+14]]+ce[t[e+15]]).toLowerCase()}const Za={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Nu(t,e,n){if(Za.randomUUID&&!e&&!t)return Za.randomUUID();t=t||{};const r=t.random||(t.rng||Vu)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){n=n||0;for(let a=0;a<16;++a)e[n+a]=r[a];return e}return Pu(r)}function La(t){const e=document.cookie.split(";");for(let n=0;n<e.length;n++){const r=e[n].trim();if(r.startsWith(t+"="))return decodeURIComponent(r.substring(t.length+1))}return null}function Ra({name:t,value:e,days:n=0,hours:r=0,minutes:a=0,seconds:i=0,milliseconds:s=0}){const l=new Date;l.setTime(l.getTime()+n*24*60*60*1e3+r*60*60*1e3+a*60*1e3+i*1e3+s);const c="; expires="+l.toUTCString();document.cookie=t+"="+encodeURIComponent(e)+c+"; path=/"}function Fa(t,e){return function(){return t.apply(e,arguments)}}const{toString:Bu}=Object.prototype,{getPrototypeOf:bo}=Object,Qn=(t=>e=>{const n=Bu.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),He=t=>(t=t.toLowerCase(),e=>Qn(e)===t),er=t=>e=>typeof e===t,{isArray:Vt}=Array,en=er("undefined");function Mu(t){return t!==null&&!en(t)&&t.constructor!==null&&!en(t.constructor)&&xe(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const ja=He("ArrayBuffer");function Du(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&ja(t.buffer),e}const $u=er("string"),xe=er("function"),Ha=er("number"),tr=t=>t!==null&&typeof t=="object",Au=t=>t===!0||t===!1,nr=t=>{if(Qn(t)!=="object")return!1;const e=bo(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Zu=He("Date"),Lu=He("File"),Ru=He("Blob"),Fu=He("FileList"),ju=t=>tr(t)&&xe(t.pipe),Hu=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||xe(t.append)&&((e=Qn(t))==="formdata"||e==="object"&&xe(t.toString)&&t.toString()==="[object FormData]"))},Uu=He("URLSearchParams"),zu=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function tn(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,a;if(typeof t!="object"&&(t=[t]),Vt(t))for(r=0,a=t.length;r<a;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),s=i.length;let l;for(r=0;r<s;r++)l=i[r],e.call(null,t[l],l,t)}}function Ua(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,a;for(;r-- >0;)if(a=n[r],e===a.toLowerCase())return a;return null}const za=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),qa=t=>!en(t)&&t!==za;function vo(){const{caseless:t}=qa(this)&&this||{},e={},n=(r,a)=>{const i=t&&Ua(e,a)||a;nr(e[i])&&nr(r)?e[i]=vo(e[i],r):nr(r)?e[i]=vo({},r):Vt(r)?e[i]=r.slice():e[i]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&tn(arguments[r],n);return e}const qu=(t,e,n,{allOwnKeys:r}={})=>(tn(e,(a,i)=>{n&&xe(a)?t[i]=Fa(a,n):t[i]=a},{allOwnKeys:r}),t),Wu=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Ku=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Yu=(t,e,n,r)=>{let a,i,s;const l={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),i=a.length;i-- >0;)s=a[i],(!r||r(s,t,e))&&!l[s]&&(e[s]=t[s],l[s]=!0);t=n!==!1&&bo(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Gu=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Ju=t=>{if(!t)return null;if(Vt(t))return t;let e=t.length;if(!Ha(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Xu=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&bo(Uint8Array)),Qu=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let a;for(;(a=r.next())&&!a.done;){const i=a.value;e.call(t,i[0],i[1])}},ed=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},td=He("HTMLFormElement"),nd=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),Wa=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),rd=He("RegExp"),Ka=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};tn(n,(a,i)=>{e(a,i,t)!==!1&&(r[i]=a)}),Object.defineProperties(t,r)},od=t=>{Ka(t,(e,n)=>{if(xe(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(xe(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},id=(t,e)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return Vt(t)?r(t):r(String(t).split(e)),n},ad=()=>{},sd=(t,e)=>(t=+t,Number.isFinite(t)?t:e),wo="abcdefghijklmnopqrstuvwxyz",Ya="0123456789",Ga={DIGIT:Ya,ALPHA:wo,ALPHA_DIGIT:wo+wo.toUpperCase()+Ya},ld=(t=16,e=Ga.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function cd(t){return!!(t&&xe(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const ud=t=>{const e=new Array(10),n=(r,a)=>{if(tr(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[a]=r;const i=Vt(r)?[]:{};return tn(r,(s,l)=>{const c=n(s,a+1);!en(c)&&(i[l]=c)}),e[a]=void 0,i}}return r};return n(t,0)},dd=He("AsyncFunction"),S={isArray:Vt,isArrayBuffer:ja,isBuffer:Mu,isFormData:Hu,isArrayBufferView:Du,isString:$u,isNumber:Ha,isBoolean:Au,isObject:tr,isPlainObject:nr,isUndefined:en,isDate:Zu,isFile:Lu,isBlob:Ru,isRegExp:rd,isFunction:xe,isStream:ju,isURLSearchParams:Uu,isTypedArray:Xu,isFileList:Fu,forEach:tn,merge:vo,extend:qu,trim:zu,stripBOM:Wu,inherits:Ku,toFlatObject:Yu,kindOf:Qn,kindOfTest:He,endsWith:Gu,toArray:Ju,forEachEntry:Qu,matchAll:ed,isHTMLForm:td,hasOwnProperty:Wa,hasOwnProp:Wa,reduceDescriptors:Ka,freezeMethods:od,toObjectSet:id,toCamelCase:nd,noop:ad,toFiniteNumber:sd,findKey:Ua,global:za,isContextDefined:qa,ALPHABET:Ga,generateString:ld,isSpecCompliantForm:cd,toJSONObject:ud,isAsyncFn:dd,isThenable:t=>t&&(tr(t)||xe(t))&&xe(t.then)&&xe(t.catch)};function H(t,e,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a)}S.inherits(H,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:S.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ja=H.prototype,Xa={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Xa[t]={value:t}}),Object.defineProperties(H,Xa),Object.defineProperty(Ja,"isAxiosError",{value:!0}),H.from=(t,e,n,r,a,i)=>{const s=Object.create(Ja);return S.toFlatObject(t,s,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),H.call(s,t.message,e,n,r,a),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const fd=null;function ko(t){return S.isPlainObject(t)||S.isArray(t)}function Qa(t){return S.endsWith(t,"[]")?t.slice(0,-2):t}function es(t,e,n){return t?t.concat(e).map(function(a,i){return a=Qa(a),!n&&i?"["+a+"]":a}).join(n?".":""):e}function md(t){return S.isArray(t)&&!t.some(ko)}const hd=S.toFlatObject(S,{},null,function(e){return/^is[A-Z]/.test(e)});function rr(t,e,n){if(!S.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=S.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,k){return!S.isUndefined(k[y])});const r=n.metaTokens,a=n.visitor||d,i=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(e);if(!S.isFunction(a))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(S.isDate(p))return p.toISOString();if(!c&&S.isBlob(p))throw new H("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(p)||S.isTypedArray(p)?c&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,y,k){let x=p;if(p&&!k&&typeof p=="object"){if(S.endsWith(y,"{}"))y=r?y:y.slice(0,-2),p=JSON.stringify(p);else if(S.isArray(p)&&md(p)||(S.isFileList(p)||S.endsWith(y,"[]"))&&(x=S.toArray(p)))return y=Qa(y),x.forEach(function(b,T){!(S.isUndefined(b)||b===null)&&e.append(s===!0?es([y],T,i):s===null?y:y+"[]",u(b))}),!1}return ko(p)?!0:(e.append(es(k,y,i),u(p)),!1)}const f=[],h=Object.assign(hd,{defaultVisitor:d,convertValue:u,isVisitable:ko});function m(p,y){if(!S.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(p),S.forEach(p,function(x,g){(!(S.isUndefined(x)||x===null)&&a.call(e,x,S.isString(g)?g.trim():g,y,h))===!0&&m(x,y?y.concat(g):[g])}),f.pop()}}if(!S.isObject(t))throw new TypeError("data must be an object");return m(t),e}function ts(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Co(t,e){this._pairs=[],t&&rr(t,this,e)}const ns=Co.prototype;ns.append=function(e,n){this._pairs.push([e,n])},ns.toString=function(e){const n=e?function(r){return e.call(this,r,ts)}:ts;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function pd(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rs(t,e,n){if(!e)return t;const r=n&&n.encode||pd,a=n&&n.serialize;let i;if(a?i=a(e,n):i=S.isURLSearchParams(e)?e.toString():new Co(e,n).toString(r),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class gd{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){S.forEach(this.handlers,function(r){r!==null&&e(r)})}}const os=gd,is={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yd=typeof URLSearchParams<"u"?URLSearchParams:Co,bd=typeof FormData<"u"?FormData:null,vd=typeof Blob<"u"?Blob:null,wd=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),kd=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ue={isBrowser:!0,classes:{URLSearchParams:yd,FormData:bd,Blob:vd},isStandardBrowserEnv:wd,isStandardBrowserWebWorkerEnv:kd,protocols:["http","https","file","blob","url","data"]};function Cd(t,e){return rr(t,new Ue.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return Ue.isNode&&S.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function Sd(t){return S.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Ed(t){const e={},n=Object.keys(t);let r;const a=n.length;let i;for(r=0;r<a;r++)i=n[r],e[i]=t[i];return e}function as(t){function e(n,r,a,i){let s=n[i++];const l=Number.isFinite(+s),c=i>=n.length;return s=!s&&S.isArray(a)?a.length:s,c?(S.hasOwnProp(a,s)?a[s]=[a[s],r]:a[s]=r,!l):((!a[s]||!S.isObject(a[s]))&&(a[s]=[]),e(n,r,a[s],i)&&S.isArray(a[s])&&(a[s]=Ed(a[s])),!l)}if(S.isFormData(t)&&S.isFunction(t.entries)){const n={};return S.forEachEntry(t,(r,a)=>{e(Sd(r),a,n,0)}),n}return null}const Td={"Content-Type":void 0};function xd(t,e,n){if(S.isString(t))try{return(e||JSON.parse)(t),S.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const or={transitional:is,adapter:["xhr","http"],transformRequest:[function(e,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=S.isObject(e);if(i&&S.isHTMLForm(e)&&(e=new FormData(e)),S.isFormData(e))return a&&a?JSON.stringify(as(e)):e;if(S.isArrayBuffer(e)||S.isBuffer(e)||S.isStream(e)||S.isFile(e)||S.isBlob(e))return e;if(S.isArrayBufferView(e))return e.buffer;if(S.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Cd(e,this.formSerializer).toString();if((l=S.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return rr(l?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),xd(e)):e}],transformResponse:[function(e){const n=this.transitional||or.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(e&&S.isString(e)&&(r&&!this.responseType||a)){const s=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(l){if(s)throw l.name==="SyntaxError"?H.from(l,H.ERR_BAD_RESPONSE,this,null,this.response):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ue.classes.FormData,Blob:Ue.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};S.forEach(["delete","get","head"],function(e){or.headers[e]={}}),S.forEach(["post","put","patch"],function(e){or.headers[e]=S.merge(Td)});const So=or,Od=S.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Id=t=>{const e={};let n,r,a;return t&&t.split(`
92
92
  `).forEach(function(s){a=s.indexOf(":"),n=s.substring(0,a).trim().toLowerCase(),r=s.substring(a+1).trim(),!(!n||e[n]&&Od[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},ss=Symbol("internals");function nn(t){return t&&String(t).trim().toLowerCase()}function ir(t){return t===!1||t==null?t:S.isArray(t)?t.map(ir):String(t)}function _d(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Vd=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Eo(t,e,n,r,a){if(S.isFunction(r))return r.call(this,e,n);if(a&&(e=n),!!S.isString(e)){if(S.isString(r))return e.indexOf(r)!==-1;if(S.isRegExp(r))return r.test(e)}}function Pd(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Nd(t,e){const n=S.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(a,i,s){return this[r].call(this,e,a,i,s)},configurable:!0})})}class ar{constructor(e){e&&this.set(e)}set(e,n,r){const a=this;function i(l,c,u){const d=nn(c);if(!d)throw new Error("header name must be a non-empty string");const f=S.findKey(a,d);(!f||a[f]===void 0||u===!0||u===void 0&&a[f]!==!1)&&(a[f||c]=ir(l))}const s=(l,c)=>S.forEach(l,(u,d)=>i(u,d,c));return S.isPlainObject(e)||e instanceof this.constructor?s(e,n):S.isString(e)&&(e=e.trim())&&!Vd(e)?s(Id(e),n):e!=null&&i(n,e,r),this}get(e,n){if(e=nn(e),e){const r=S.findKey(this,e);if(r){const a=this[r];if(!n)return a;if(n===!0)return _d(a);if(S.isFunction(n))return n.call(this,a,r);if(S.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=nn(e),e){const r=S.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Eo(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let a=!1;function i(s){if(s=nn(s),s){const l=S.findKey(r,s);l&&(!n||Eo(r,r[l],l,n))&&(delete r[l],a=!0)}}return S.isArray(e)?e.forEach(i):i(e),a}clear(e){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!e||Eo(this,this[i],i,e,!0))&&(delete this[i],a=!0)}return a}normalize(e){const n=this,r={};return S.forEach(this,(a,i)=>{const s=S.findKey(r,i);if(s){n[s]=ir(a),delete n[i];return}const l=e?Pd(i):String(i).trim();l!==i&&delete n[i],n[l]=ir(a),r[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return S.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=e&&S.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
93
93
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(a=>r.set(a)),r}static accessor(e){const r=(this[ss]=this[ss]={accessors:{}}).accessors,a=this.prototype;function i(s){const l=nn(s);r[l]||(Nd(a,s),r[l]=!0)}return S.isArray(e)?e.forEach(i):i(e),this}}ar.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),S.freezeMethods(ar.prototype),S.freezeMethods(ar);const Ge=ar;function To(t,e){const n=this||So,r=e||n,a=Ge.from(r.headers);let i=r.data;return S.forEach(t,function(l){i=l.call(n,i,a.normalize(),e?e.status:void 0)}),a.normalize(),i}function ls(t){return!!(t&&t.__CANCEL__)}function rn(t,e,n){H.call(this,t??"canceled",H.ERR_CANCELED,e,n),this.name="CanceledError"}S.inherits(rn,H,{__CANCEL__:!0});function Bd(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new H("Request failed with status code "+n.status,[H.ERR_BAD_REQUEST,H.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Md=Ue.isStandardBrowserEnv?function(){return{write:function(n,r,a,i,s,l){const c=[];c.push(n+"="+encodeURIComponent(r)),S.isNumber(a)&&c.push("expires="+new Date(a).toGMTString()),S.isString(i)&&c.push("path="+i),S.isString(s)&&c.push("domain="+s),l===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Dd(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function $d(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function cs(t,e){return t&&!Dd(e)?$d(t,e):e}const Ad=Ue.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(i){let s=i;return e&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(s){const l=S.isString(s)?a(s):s;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function Zd(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Ld(t,e){t=t||10;const n=new Array(t),r=new Array(t);let a=0,i=0,s;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),d=r[i];s||(s=u),n[a]=c,r[a]=u;let f=i,h=0;for(;f!==a;)h+=n[f++],f=f%t;if(a=(a+1)%t,a===i&&(i=(i+1)%t),u-s<e)return;const m=d&&u-d;return m?Math.round(h*1e3/m):void 0}}function us(t,e){let n=0;const r=Ld(50,250);return a=>{const i=a.loaded,s=a.lengthComputable?a.total:void 0,l=i-n,c=r(l),u=i<=s;n=i;const d={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-i)/c:void 0,event:a};d[e?"download":"upload"]=!0,t(d)}}const sr={http:fd,xhr:typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){let a=t.data;const i=Ge.from(t.headers).normalize(),s=t.responseType;let l;function c(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}S.isFormData(a)&&(Ue.isStandardBrowserEnv||Ue.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(t.auth){const m=t.auth.username||"",p=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(m+":"+p))}const d=cs(t.baseURL,t.url);u.open(t.method.toUpperCase(),rs(d,t.params,t.paramsSerializer),!0),u.timeout=t.timeout;function f(){if(!u)return;const m=Ge.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),y={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:m,config:t,request:u};Bd(function(x){n(x),c()},function(x){r(x),c()},y),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new H("Request aborted",H.ECONNABORTED,t,u)),u=null)},u.onerror=function(){r(new H("Network Error",H.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let p=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const y=t.transitional||is;t.timeoutErrorMessage&&(p=t.timeoutErrorMessage),r(new H(p,y.clarifyTimeoutError?H.ETIMEDOUT:H.ECONNABORTED,t,u)),u=null},Ue.isStandardBrowserEnv){const m=(t.withCredentials||Ad(d))&&t.xsrfCookieName&&Md.read(t.xsrfCookieName);m&&i.set(t.xsrfHeaderName,m)}a===void 0&&i.setContentType(null),"setRequestHeader"in u&&S.forEach(i.toJSON(),function(p,y){u.setRequestHeader(y,p)}),S.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),s&&s!=="json"&&(u.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&u.addEventListener("progress",us(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",us(t.onUploadProgress)),(t.cancelToken||t.signal)&&(l=m=>{u&&(r(!m||m.type?new rn(null,t,u):m),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l)));const h=Zd(d);if(h&&Ue.protocols.indexOf(h)===-1){r(new H("Unsupported protocol "+h+":",H.ERR_BAD_REQUEST,t));return}u.send(a||null)})}};S.forEach(sr,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Rd={getAdapter:t=>{t=S.isArray(t)?t:[t];const{length:e}=t;let n,r;for(let a=0;a<e&&(n=t[a],!(r=S.isString(n)?sr[n.toLowerCase()]:n));a++);if(!r)throw r===!1?new H(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(S.hasOwnProp(sr,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!S.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:sr};function xo(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new rn(null,t)}function ds(t){return xo(t),t.headers=Ge.from(t.headers),t.data=To.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Rd.getAdapter(t.adapter||So.adapter)(t).then(function(r){return xo(t),r.data=To.call(t,t.transformResponse,r),r.headers=Ge.from(r.headers),r},function(r){return ls(r)||(xo(t),r&&r.response&&(r.response.data=To.call(t,t.transformResponse,r.response),r.response.headers=Ge.from(r.response.headers))),Promise.reject(r)})}const fs=t=>t instanceof Ge?t.toJSON():t;function Pt(t,e){e=e||{};const n={};function r(u,d,f){return S.isPlainObject(u)&&S.isPlainObject(d)?S.merge.call({caseless:f},u,d):S.isPlainObject(d)?S.merge({},d):S.isArray(d)?d.slice():d}function a(u,d,f){if(S.isUndefined(d)){if(!S.isUndefined(u))return r(void 0,u,f)}else return r(u,d,f)}function i(u,d){if(!S.isUndefined(d))return r(void 0,d)}function s(u,d){if(S.isUndefined(d)){if(!S.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function l(u,d,f){if(f in e)return r(u,d);if(f in t)return r(void 0,u)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials: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:(u,d)=>a(fs(u),fs(d),!0)};return S.forEach(Object.keys(Object.assign({},t,e)),function(d){const f=c[d]||a,h=f(t[d],e[d],d);S.isUndefined(h)&&f!==l||(n[d]=h)}),n}const ms="1.4.0",Oo={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Oo[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const hs={};Oo.transitional=function(e,n,r){function a(i,s){return"[Axios v"+ms+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,l)=>{if(e===!1)throw new H(a(s," has been removed"+(n?" in "+n:"")),H.ERR_DEPRECATED);return n&&!hs[s]&&(hs[s]=!0,console.warn(a(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,s,l):!0}};function Fd(t,e,n){if(typeof t!="object")throw new H("options must be an object",H.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let a=r.length;for(;a-- >0;){const i=r[a],s=e[i];if(s){const l=t[i],c=l===void 0||s(l,i,t);if(c!==!0)throw new H("option "+i+" must be "+c,H.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new H("Unknown option "+i,H.ERR_BAD_OPTION)}}const Io={assertOptions:Fd,validators:Oo},it=Io.validators;class lr{constructor(e){this.defaults=e,this.interceptors={request:new os,response:new os}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Pt(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Io.assertOptions(r,{silentJSONParsing:it.transitional(it.boolean),forcedJSONParsing:it.transitional(it.boolean),clarifyTimeoutError:it.transitional(it.boolean)},!1),a!=null&&(S.isFunction(a)?n.paramsSerializer={serialize:a}:Io.assertOptions(a,{encode:it.function,serialize:it.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s;s=i&&S.merge(i.common,i[n.method]),s&&S.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=Ge.concat(s,i);const l=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(c=c&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let d,f=0,h;if(!c){const p=[ds.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,u),h=p.length,d=Promise.resolve(n);f<h;)d=d.then(p[f++],p[f++]);return d}h=l.length;let m=n;for(f=0;f<h;){const p=l[f++],y=l[f++];try{m=p(m)}catch(k){y.call(this,k);break}}try{d=ds.call(this,m)}catch(p){return Promise.reject(p)}for(f=0,h=u.length;f<h;)d=d.then(u[f++],u[f++]);return d}getUri(e){e=Pt(this.defaults,e);const n=cs(e.baseURL,e.url);return rs(n,e.params,e.paramsSerializer)}}S.forEach(["delete","get","head","options"],function(e){lr.prototype[e]=function(n,r){return this.request(Pt(r||{},{method:e,url:n,data:(r||{}).data}))}}),S.forEach(["post","put","patch"],function(e){function n(r){return function(i,s,l){return this.request(Pt(l||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}lr.prototype[e]=n(),lr.prototype[e+"Form"]=n(!0)});const cr=lr;class _o{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=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},e(function(i,s,l){r.reason||(r.reason=new rn(i,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new _o(function(a){e=a}),cancel:e}}}const jd=_o;function Hd(t){return function(n){return t.apply(null,n)}}function Ud(t){return S.isObject(t)&&t.isAxiosError===!0}const Vo={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(Vo).forEach(([t,e])=>{Vo[e]=t});const zd=Vo;function ps(t){const e=new cr(t),n=Fa(cr.prototype.request,e);return S.extend(n,cr.prototype,e,{allOwnKeys:!0}),S.extend(n,e,null,{allOwnKeys:!0}),n.create=function(a){return ps(Pt(t,a))},n}const ae=ps(So);ae.Axios=cr,ae.CanceledError=rn,ae.CancelToken=jd,ae.isCancel=ls,ae.VERSION=ms,ae.toFormData=rr,ae.AxiosError=H,ae.Cancel=ae.CanceledError,ae.all=function(e){return Promise.all(e)},ae.spread=Hd,ae.isAxiosError=Ud,ae.mergeConfig=Pt,ae.AxiosHeaders=Ge,ae.formToJSON=t=>as(S.isHTMLForm(t)?new FormData(t):t),ae.HttpStatusCode=zd,ae.default=ae;const qd=ae;function ur(){const t=me(),e=qd.create({headers:{"Content-Type":"application/json","Cache-Control":"no-cache"},timeout:15e3});return e.interceptors.request.use(n=>(n.baseURL=`${t.apiBaseURL}/api`,t.userState.token&&(n.headers.Authorization=`Bearer ${t.userState.token}`),n)),e.interceptors.response.use(n=>n.data.error?Promise.reject({error:!0,message:n.data.message,response:n.data.response||{},status:n.data.status||500}):n.data,n=>Promise.reject({error:!0,message:n.message,response:n.response||{},status:500})),{apiLoginInstance:e}}function Wd(){const{apiLoginInstance:t}=ur();return{onLoginApi:async s=>await t.post("v1/auth/login",s).then(l=>l).catch(l=>{var c;throw(c=l.response)!=null&&c.data?l.response.data:l}),on2AuthLoginApi:async s=>await t.post("v1/auth/login/confirmation",s).then(l=>l).catch(l=>{var c;throw(c=l.response)!=null&&c.data?l.response.data:l}),onLogoutApi:async()=>await t.post("v1/perfil-persona/logout").then(s=>s).catch(s=>{var l;throw(l=s.response)!=null&&l.data?s.response.data:s}),onLoginCiudadaniaApi:async s=>await t.post("/login",s).then(l=>l).catch(l=>{var c;throw(c=l.response)!=null&&c.data?l.response.data:l}),onRefreshTokenApi:async s=>await t.post("v1/auth/token/refresh",s).then(l=>l).catch(l=>{var c;throw(c=l.response)!=null&&c.data?l.response.data:l})}}const me=Ui("LOGIN_STORE",()=>{const t=o.ref("LOGIN_STORE"),e=o.ref("login"),n=o.ref({token:void 0,refreshToken:void 0,user:void 0,funcionario:void 0,isAuth:!1,apps:[],roles:[],permisos:[]}),r=o.ref(null),a=o.ref(""),i=o.ref(""),s=o.ref(""),l=o.ref(""),c=o.ref(!1),u=o.ref("0.0.1"),{onLoginApi:d,on2AuthLoginApi:f,onLogoutApi:h,onRefreshTokenApi:m}=Wd(),p=()=>{e.value="login"},y=()=>{e.value="registrar"},k=()=>{e.value="recuperar-password"},x=async E=>{const B=La(`${E.usuario}:${i.value}`),R=await d({...E,codigoDispositivo:B||void 0,aplicacion:i.value,verificarSiFuncionario:c.value});return T(R.response),R.response},g=async E=>{let B;const R=!!E.esDispositivoConfianza;R&&(B=Nu());const ue=await f({...E,codigoDispositivo:B,aplicacion:i.value,verificarSiFuncionario:c.value});T(ue.response),R&&w({usuario:E.usuario,value:B})},b=async E=>{try{await h(),r.value&&await Aa({openWindows:!1})}catch{}finally{I(),localStorage.clear(),E&&E()}},T=E=>{n.value={token:E.token,refreshToken:E.tokenRefresh,funcionario:E.funcionario?E.funcionario:void 0,user:{...E.usuario,nombreCompleto:E.usuario.nombreCompleto.toLowerCase(),fotoUrl:`${l.value}/personas/fotosegip/${E.usuario.fotoRuta}?rand=${Math.random()*100}`},isAuth:!0,apps:E.apps,roles:E.roles,permisos:E.permisos}},I=()=>{n.value={token:void 0,refreshToken:void 0,user:void 0,funcionario:void 0,isAuth:!1,apps:[],roles:[],permisos:[]},r.value=null},O=E=>{n.value={...n.value,user:{...n.value.user,...E,fotoUrl:E!=null&&E.fotoRuta?`${l.value}/personas/fotosegip/${E==null?void 0:E.fotoRuta}?rand=${Math.random()*100}`:n.value.user.fotoUrl}}},w=async({usuario:E,value:B,days:R=7})=>{Ra({name:`${E}:${i.value}`,value:B,days:R})};return{id:t,currentPage:e,binnacleId:r,apiBaseURL:a,aplicacion:i,userState:n,tgBot:s,systemVer:u,verificarFunc:c,goLoginPage:p,goRegistrarPage:y,goRecuperarCont:k,onLogin:x,on2AuthLogin:g,onLogout:b,onLoginCiudadania:async E=>{try{r.value=E.binnacleId,T(E)}catch(B){console.log(B)}},setConfigs:({newBaseURL:E,newAplicacion:B,newRrhhUrl:R,verificarSiFuncionario:ue,telegramBot:ze,systemVersion:Ze})=>{a.value=E,i.value=B,l.value=R,c.value=ue||!1,s.value=ze,u.value=Ze||"0.0.1"},setDispositivoConfianzaCookie:w,clearUserData:I,updateUserData:O,onRefreshToken:async()=>{const E=await m({token:n.value.token,tokenRefresh:n.value.refreshToken});T(E.response)}}});function Kd(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;o.getCurrentInstance()?o.onMounted(t):e?t():o.nextTick(t)}var Yd=0;function Ce(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=o.ref(!1),r=o.ref(t),a=o.ref(null),i=v.isClient()?window.document:void 0,s=e.document,l=s===void 0?i:s,c=e.immediate,u=c===void 0?!0:c,d=e.manual,f=d===void 0?!1:d,h=e.name,m=h===void 0?"style_".concat(++Yd):h,p=e.id,y=p===void 0?void 0:p,k=e.media,x=k===void 0?void 0:k,g=e.nonce,b=g===void 0?void 0:g,T=function(){},I=function(N){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l){var V=_.name||m,E=_.id||y,B=_.nonce||b;a.value=l.querySelector('style[data-primevue-style-id="'.concat(V,'"]'))||l.getElementById(E)||l.createElement("style"),a.value.isConnected||(r.value=N||t,v.setAttributes(a.value,{type:"text/css",id:E,media:x,nonce:B}),l.head.appendChild(a.value),v.setAttribute(a.value,"data-primevue-style-id",m),v.setAttributes(a.value,_)),!n.value&&(T=o.watch(r,function(R){a.value.textContent=R},{immediate:!0}),n.value=!0)}},O=function(){!l||!n.value||(T(),v.isExist(a.value)&&l.head.removeChild(a.value),n.value=!1)};return u&&!f&&Kd(I),{id:y,name:m,css:r,unload:O,load:I,isLoaded:o.readonly(n)}}var Gd=`
94
94
  .p-hidden-accessible {
@@ -736,7 +736,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
736
736
  .p-password-input::-ms-clear {
737
737
  display: none;
738
738
  }
739
- `,u4={root:function(e){var n=e.props;return{position:n.appendTo==="self"?"relative":void 0}}},d4={root:function(e){var n=e.instance,r=e.props;return["p-password p-component p-inputwrapper",{"p-inputwrapper-filled":n.filled,"p-inputwrapper-focus":n.focused,"p-input-icon-right":r.toggleMask}]},input:function(e){var n=e.props;return["p-password-input",{"p-disabled":n.disabled}]},panel:function(e){var n=e.instance;return["p-password-panel p-component",{"p-input-filled":n.$primevue.config.inputStyle==="filled","p-ripple-disabled":n.$primevue.config.ripple===!1}]},meter:"p-password-meter",meterLabel:function(e){var n=e.instance;return"p-password-strength ".concat(n.meter?n.meter.strength:"")},info:"p-password-info"},f4=Ce(c4,{name:"password",manual:!0}),m4=f4.load,h4={name:"BasePassword",extends:ye,props:{modelValue:String,promptLabel:{type:String,default:null},mediumRegex:{type:String,default:"^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})"},strongRegex:{type:String,default:"^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})"},weakLabel:{type:String,default:null},mediumLabel:{type:String,default:null},strongLabel:{type:String,default:null},feedback:{type:Boolean,default:!0},appendTo:{type:String,default:"body"},toggleMask:{type:Boolean,default:!1},hideIcon:{type:String,default:void 0},showIcon:{type:String,default:void 0},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:null},required:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},panelId:{type:String,default:null},panelClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},panelProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},css:{classes:d4,inlineStyles:u4,loadStyle:m4},provide:function(){return{$parentInstance:this}}},Xe={name:"Password",extends:h4,emits:["update:modelValue","change","focus","blur","invalid"],data:function(){return{overlayVisible:!1,meter:null,infoText:null,focused:!1,unmasked:!1}},mediumCheckRegExp:null,strongCheckRegExp:null,resizeListener:null,scrollHandler:null,overlay:null,mounted:function(){this.infoText=this.promptText,this.mediumCheckRegExp=new RegExp(this.mediumRegex),this.strongCheckRegExp=new RegExp(this.strongRegex)},beforeUnmount:function(){this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(te.clear(this.overlay),this.overlay=null)},methods:{onOverlayEnter:function(e){te.set("overlay",e,this.$primevue.config.zIndex.overlay),v.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.bindScrollListener(),this.bindResizeListener()},onOverlayLeave:function(){this.unbindScrollListener(),this.unbindResizeListener(),this.overlay=null},onOverlayAfterLeave:function(e){te.clear(e)},alignOverlay:function(){this.appendTo==="self"?v.relativePosition(this.overlay,this.$refs.input.$el):(this.overlay.style.minWidth=v.getOuterWidth(this.$refs.input.$el)+"px",v.absolutePosition(this.overlay,this.$refs.input.$el))},testStrength:function(e){var n=0;return this.strongCheckRegExp.test(e)?n=3:this.mediumCheckRegExp.test(e)?n=2:e.length&&(n=1),n},onInput:function(e){this.$emit("update:modelValue",e.target.value),this.$emit("change",e)},onFocus:function(e){this.focused=!0,this.feedback&&(this.setPasswordMeter(this.modelValue),this.overlayVisible=!0),this.$emit("focus",e)},onBlur:function(e){this.focused=!1,this.feedback&&(this.overlayVisible=!1),this.$emit("blur",e)},onKeyUp:function(e){if(this.feedback){var n=e.target.value,r=this.checkPasswordStrength(n),a=r.meter,i=r.label;if(this.meter=a,this.infoText=i,e.code==="Escape"){this.overlayVisible&&(this.overlayVisible=!1);return}this.overlayVisible||(this.overlayVisible=!0)}},setPasswordMeter:function(){if(this.modelValue){var e=this.checkPasswordStrength(this.modelValue),n=e.meter,r=e.label;this.meter=n,this.infoText=r,this.overlayVisible||(this.overlayVisible=!0)}},checkPasswordStrength:function(e){var n=null,r=null;switch(this.testStrength(e)){case 1:n=this.weakText,r={strength:"weak",width:"33.33%"};break;case 2:n=this.mediumText,r={strength:"medium",width:"66.66%"};break;case 3:n=this.strongText,r={strength:"strong",width:"100%"};break;default:n=this.promptText,r=null;break}return{label:n,meter:r}},onInvalid:function(e){this.$emit("invalid",e)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new Mn(this.$refs.input.$el,function(){e.overlayVisible&&(e.overlayVisible=!1)})),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!v.isTouchDevice()&&(e.overlayVisible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},overlayRef:function(e){this.overlay=e},onMaskToggle:function(){this.unmasked=!this.unmasked},onOverlayClick:function(e){Mo.emit("overlay-click",{originalEvent:e,target:this.$el})}},computed:{inputType:function(){return this.unmasked?"text":"password"},filled:function(){return this.modelValue!=null&&this.modelValue.toString().length>0},weakText:function(){return this.weakLabel||this.$primevue.config.locale.weak},mediumText:function(){return this.mediumLabel||this.$primevue.config.locale.medium},strongText:function(){return this.strongLabel||this.$primevue.config.locale.strong},promptText:function(){return this.promptLabel||this.$primevue.config.locale.passwordPrompt},panelUniqueId:function(){return oe()+"_panel"}},components:{PInputText:be,Portal:ht,EyeSlashIcon:Ns,EyeIcon:Ps}};function un(t){"@babel/helpers - typeof";return un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},un(t)}function Bs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function fr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Bs(Object(n),!0).forEach(function(r){p4(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function p4(t,e,n){return e=g4(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g4(t){var e=y4(t,"string");return un(e)==="symbol"?e:String(e)}function y4(t,e){if(un(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(un(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var b4=["id"];function v4(t,e,n,r,a,i){var s=o.resolveComponent("PInputText"),l=o.resolveComponent("Portal");return o.openBlock(),o.createElementBlock("div",o.mergeProps({class:t.cx("root"),style:t.sx("root")},t.ptm("root"),{"data-pc-name":"password"}),[o.createVNode(s,o.mergeProps({ref:"input",id:t.inputId,type:i.inputType,class:[t.cx("input"),t.inputClass],style:t.inputStyle,value:t.modelValue,"aria-labelledby":t.ariaLabelledby,"aria-label":t.ariaLabel,"aria-controls":t.panelProps&&t.panelProps.id||t.panelId||i.panelUniqueId,"aria-expanded":a.overlayVisible,"aria-haspopup":!0,placeholder:t.placeholder,required:t.required,disabled:t.disabled,onInput:i.onInput,onFocus:i.onFocus,onBlur:i.onBlur,onKeyup:i.onKeyUp,onInvalid:i.onInvalid},fr(fr({},t.inputProps),t.ptm("input")),{unstyled:t.unstyled}),null,16,["id","type","class","style","value","aria-labelledby","aria-label","aria-controls","aria-expanded","placeholder","required","disabled","onInput","onFocus","onBlur","onKeyup","onInvalid","unstyled"]),t.toggleMask&&a.unmasked?o.renderSlot(t.$slots,"hideicon",{key:0,onClick:i.onMaskToggle},function(){return[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(t.hideIcon?"i":"EyeSlashIcon"),o.mergeProps({class:t.hideIcon,onClick:i.onMaskToggle},t.ptm("hideIcon")),null,16,["class","onClick"]))]}):o.createCommentVNode("",!0),t.toggleMask&&!a.unmasked?o.renderSlot(t.$slots,"showicon",{key:1,onClick:i.onMaskToggle},function(){return[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(t.showIcon?"i":"EyeIcon"),o.mergeProps({class:t.showIcon,onClick:i.onMaskToggle},t.ptm("showIcon")),null,16,["class","onClick"]))]}):o.createCommentVNode("",!0),o.createElementVNode("span",o.mergeProps({class:"p-hidden-accessible","aria-live":"polite"},t.ptm("hiddenAccesible"),{"data-p-hidden-accessible":!0}),o.toDisplayString(a.infoText),17),o.createVNode(l,{appendTo:t.appendTo},{default:o.withCtx(function(){return[o.createVNode(o.Transition,o.mergeProps({name:"p-connected-overlay",onEnter:i.onOverlayEnter,onLeave:i.onOverlayLeave,onAfterLeave:i.onOverlayAfterLeave},t.ptm("transition")),{default:o.withCtx(function(){return[a.overlayVisible?(o.openBlock(),o.createElementBlock("div",o.mergeProps({key:0,ref:i.overlayRef,id:t.panelId||i.panelUniqueId,class:[t.cx("panel"),t.panelClass],style:t.panelStyle,onClick:e[0]||(e[0]=function(){return i.onOverlayClick&&i.onOverlayClick.apply(i,arguments)})},fr(fr({},t.panelProps),t.ptm("panel"))),[o.renderSlot(t.$slots,"header"),o.renderSlot(t.$slots,"content",{},function(){return[o.createElementVNode("div",o.mergeProps({class:t.cx("meter")},t.ptm("meter")),[o.createElementVNode("div",o.mergeProps({class:t.cx("meterLabel"),style:{width:a.meter?a.meter.width:""}},t.ptm("meterLabel")),null,16)],16),o.createElementVNode("div",o.mergeProps({class:t.cx("info")},t.ptm("info")),o.toDisplayString(a.infoText),17)]}),o.renderSlot(t.$slots,"footer")],16,b4)):o.createCommentVNode("",!0)]}),_:3},16,["onEnter","onLeave","onAfterLeave"])]}),_:3},8,["appendTo"])],16)}Xe.render=v4;var w4={root:function(e){var n=e.instance;return["p-inputmask p-inputtext p-component",{"p-filled":n.filled}]}},k4={name:"BaseInputMask",extends:ye,props:{modelValue:null,slotChar:{type:String,default:"_"},mask:{type:String,default:null},autoClear:{type:Boolean,default:!0},unmask:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},css:{classes:w4}},Ms={name:"InputMask",extends:k4,emits:["update:modelValue","focus","blur","keydown","complete","keypress","paste"],watch:{mask:function(e,n){n!==e&&this.initMask()}},mounted:function(){this.initMask()},updated:function(){this.isValueUpdated()&&this.updateValue()},methods:{onInput:function(e){this.androidChrome?this.handleAndroidInput(e):this.handleInputChange(e),this.$emit("update:modelValue",e.target.value)},onFocus:function(e){var n=this;if(!this.readonly){this.focus=!0,clearTimeout(this.caretTimeoutId);var r;this.focusText=this.$el.value,r=this.checkVal(),this.caretTimeoutId=setTimeout(function(){n.$el===document.activeElement&&(n.writeBuffer(),r===n.mask.replace("?","").length?n.caret(0,r):n.caret(r))},10),this.$emit("focus",e)}},onBlur:function(e){if(this.focus=!1,this.checkVal(),this.updateModel(e),this.$el.value!==this.focusText){var n=document.createEvent("HTMLEvents");n.initEvent("change",!0,!1),this.$el.dispatchEvent(n)}this.$emit("blur",e)},onKeyDown:function(e){if(!this.readonly){var n=e.which||e.keyCode,r,a,i,s=/iphone/i.test(v.getUserAgent());this.oldVal=this.$el.value,n===8||n===46||s&&n===127?(r=this.caret(),a=r.begin,i=r.end,i-a===0&&(a=n!==46?this.seekPrev(a):i=this.seekNext(a-1),i=n===46?this.seekNext(i):i),this.clearBuffer(a,i),this.shiftL(a,i-1),this.updateModel(e),e.preventDefault()):n===13?(this.$el.blur(),this.updateModel(e)):n===27&&(this.$el.value=this.focusText,this.caret(0,this.checkVal()),this.updateModel(e),e.preventDefault()),this.$emit("keydown",e)}},onKeyPress:function(e){var n=this;if(!this.readonly){var r=e.which||e.keyCode,a=this.caret(),i,s,l,c;if(!(e.ctrlKey||e.altKey||e.metaKey||r<32)){if(r&&r!==13){if(a.end-a.begin!==0&&(this.clearBuffer(a.begin,a.end),this.shiftL(a.begin,a.end-1)),i=this.seekNext(a.begin-1),i<this.len&&(s=String.fromCharCode(r),this.tests[i].test(s))){if(this.shiftR(i),this.buffer[i]=s,this.writeBuffer(),l=this.seekNext(i),/android/i.test(v.getUserAgent())){var u=function(){n.caret(l)};setTimeout(u,0)}else this.caret(l);a.begin<=this.lastRequiredNonMaskPos&&(c=this.isCompleted())}e.preventDefault()}this.updateModel(e),c&&this.$emit("complete",e),this.$emit("keypress",e)}}},onPaste:function(e){this.handleInputChange(e),this.$emit("paste",e)},caret:function(e,n){var r,a,i;if(!(!this.$el.offsetParent||this.$el!==document.activeElement))if(typeof e=="number")a=e,i=typeof n=="number"?n:a,this.$el.setSelectionRange?this.$el.setSelectionRange(a,i):this.$el.createTextRange&&(r=this.$el.createTextRange(),r.collapse(!0),r.moveEnd("character",i),r.moveStart("character",a),r.select());else return this.$el.setSelectionRange?(a=this.$el.selectionStart,i=this.$el.selectionEnd):document.selection&&document.selection.createRange&&(r=document.selection.createRange(),a=0-r.duplicate().moveStart("character",-1e5),i=a+r.text.length),{begin:a,end:i}},isCompleted:function(){for(var e=this.firstNonMaskPos;e<=this.lastRequiredNonMaskPos;e++)if(this.tests[e]&&this.buffer[e]===this.getPlaceholder(e))return!1;return!0},getPlaceholder:function(e){return e<this.slotChar.length?this.slotChar.charAt(e):this.slotChar.charAt(0)},seekNext:function(e){for(;++e<this.len&&!this.tests[e];);return e},seekPrev:function(e){for(;--e>=0&&!this.tests[e];);return e},shiftL:function(e,n){var r,a;if(!(e<0)){for(r=e,a=this.seekNext(n);r<this.len;r++)if(this.tests[r]){if(a<this.len&&this.tests[r].test(this.buffer[a]))this.buffer[r]=this.buffer[a],this.buffer[a]=this.getPlaceholder(a);else break;a=this.seekNext(a)}this.writeBuffer(),this.caret(Math.max(this.firstNonMaskPos,e))}},shiftR:function(e){var n,r,a,i;for(n=e,r=this.getPlaceholder(e);n<this.len;n++)if(this.tests[n])if(a=this.seekNext(n),i=this.buffer[n],this.buffer[n]=r,a<this.len&&this.tests[a].test(i))r=i;else break},handleAndroidInput:function(e){var n=this.$el.value,r=this.caret();if(this.oldVal&&this.oldVal.length&&this.oldVal.length>n.length){for(this.checkVal(!0);r.begin>0&&!this.tests[r.begin-1];)r.begin--;if(r.begin===0)for(;r.begin<this.firstNonMaskPos&&!this.tests[r.begin];)r.begin++;this.caret(r.begin,r.begin)}else{for(this.checkVal(!0);r.begin<this.len&&!this.tests[r.begin];)r.begin++;this.caret(r.begin,r.begin)}this.isCompleted()&&this.$emit("complete",e)},clearBuffer:function(e,n){var r;for(r=e;r<n&&r<this.len;r++)this.tests[r]&&(this.buffer[r]=this.getPlaceholder(r))},writeBuffer:function(){this.$el.value=this.buffer.join("")},checkVal:function(e){this.isValueChecked=!0;var n=this.$el.value,r=-1,a,i,s;for(a=0,s=0;a<this.len;a++)if(this.tests[a]){for(this.buffer[a]=this.getPlaceholder(a);s++<n.length;)if(i=n.charAt(s-1),this.tests[a].test(i)){this.buffer[a]=i,r=a;break}if(s>n.length){this.clearBuffer(a+1,this.len);break}}else this.buffer[a]===n.charAt(s)&&s++,a<this.partialPosition&&(r=a);return e?this.writeBuffer():r+1<this.partialPosition?this.autoClear||this.buffer.join("")===this.defaultBuffer?(this.$el.value&&(this.$el.value=""),this.clearBuffer(0,this.len)):this.writeBuffer():(this.writeBuffer(),this.$el.value=this.$el.value.substring(0,r+1)),this.partialPosition?a:this.firstNonMaskPos},handleInputChange:function(e){var n=e.type==="paste";if(!(this.readonly||n)){var r=this.checkVal(!0);this.caret(r),this.updateModel(e),this.isCompleted()&&this.$emit("complete",e)}},getUnmaskedValue:function(){for(var e=[],n=0;n<this.buffer.length;n++){var r=this.buffer[n];this.tests[n]&&r!==this.getPlaceholder(n)&&e.push(r)}return e.join("")},updateModel:function(e){var n=this.unmask?this.getUnmaskedValue():e.target.value;this.$emit("update:modelValue",this.defaultBuffer!==n?n:"")},updateValue:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.$el&&(this.modelValue==null?(this.$el.value="",n&&this.$emit("update:modelValue","")):(this.$el.value=this.modelValue,this.checkVal(),setTimeout(function(){if(e.$el&&(e.writeBuffer(),e.checkVal(),n)){var r=e.unmask?e.getUnmaskedValue():e.$el.value;e.$emit("update:modelValue",e.defaultBuffer!==r?r:"")}},10)),this.focusText=this.$el.value)},initMask:function(){this.tests=[],this.partialPosition=this.mask.length,this.len=this.mask.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"};var e=v.getUserAgent();this.androidChrome=/chrome/i.test(e)&&/android/i.test(e);for(var n=this.mask.split(""),r=0;r<n.length;r++){var a=n[r];a==="?"?(this.len--,this.partialPosition=r):this.defs[a]?(this.tests.push(new RegExp(this.defs[a])),this.firstNonMaskPos===null&&(this.firstNonMaskPos=this.tests.length-1),r<this.partialPosition&&(this.lastRequiredNonMaskPos=this.tests.length-1)):this.tests.push(null)}this.buffer=[];for(var i=0;i<n.length;i++){var s=n[i];s!=="?"&&(this.defs[s]?this.buffer.push(this.getPlaceholder(i)):this.buffer.push(s))}this.defaultBuffer=this.buffer.join(""),this.updateValue(!1)},isValueUpdated:function(){return this.unmask?this.modelValue!=this.getUnmaskedValue():this.defaultBuffer!==this.$el.value&&this.$el.value!==this.modelValue}},computed:{filled:function(){return this.modelValue!=null&&this.modelValue.toString().length>0},ptmParams:function(){return{context:{filled:this.filled,disabled:this.$attrs.disabled||this.$attrs.disabled===""}}}}},C4=["readonly"];function S4(t,e,n,r,a,i){return o.openBlock(),o.createElementBlock("input",o.mergeProps({class:t.cx("root"),readonly:t.readonly,onInput:e[0]||(e[0]=function(){return i.onInput&&i.onInput.apply(i,arguments)}),onFocus:e[1]||(e[1]=function(){return i.onFocus&&i.onFocus.apply(i,arguments)}),onBlur:e[2]||(e[2]=function(){return i.onBlur&&i.onBlur.apply(i,arguments)}),onKeydown:e[3]||(e[3]=function(){return i.onKeyDown&&i.onKeyDown.apply(i,arguments)}),onKeypress:e[4]||(e[4]=function(){return i.onKeyPress&&i.onKeyPress.apply(i,arguments)}),onPaste:e[5]||(e[5]=function(){return i.onPaste&&i.onPaste.apply(i,arguments)})},t.ptm("root",i.ptmParams),{"data-pc-name":"inputmask"}),null,16,C4)}Ms.render=S4;class gt extends Error{}class E4 extends gt{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class T4 extends gt{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class x4 extends gt{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class dn extends gt{}class Ds extends gt{constructor(e){super(`Invalid unit ${e}`)}}class Oe extends gt{}class st extends gt{constructor(){super("Zone is an abstract class")}}const P="numeric",Ne="short",Se="long",mr={year:P,month:P,day:P},$s={year:P,month:Ne,day:P},O4={year:P,month:Ne,day:P,weekday:Ne},As={year:P,month:Se,day:P},Zs={year:P,month:Se,day:P,weekday:Se},Ls={hour:P,minute:P},Rs={hour:P,minute:P,second:P},Fs={hour:P,minute:P,second:P,timeZoneName:Ne},js={hour:P,minute:P,second:P,timeZoneName:Se},Hs={hour:P,minute:P,hourCycle:"h23"},Us={hour:P,minute:P,second:P,hourCycle:"h23"},zs={hour:P,minute:P,second:P,hourCycle:"h23",timeZoneName:Ne},qs={hour:P,minute:P,second:P,hourCycle:"h23",timeZoneName:Se},Ws={year:P,month:P,day:P,hour:P,minute:P},Ks={year:P,month:P,day:P,hour:P,minute:P,second:P},Ys={year:P,month:Ne,day:P,hour:P,minute:P},Gs={year:P,month:Ne,day:P,hour:P,minute:P,second:P},I4={year:P,month:Ne,day:P,weekday:Ne,hour:P,minute:P},Js={year:P,month:Se,day:P,hour:P,minute:P,timeZoneName:Ne},Xs={year:P,month:Se,day:P,hour:P,minute:P,second:P,timeZoneName:Ne},Qs={year:P,month:Se,day:P,weekday:Se,hour:P,minute:P,timeZoneName:Se},e1={year:P,month:Se,day:P,weekday:Se,hour:P,minute:P,second:P,timeZoneName:Se};class fn{get type(){throw new st}get name(){throw new st}get ianaName(){return this.name}get isUniversal(){throw new st}offsetName(e,n){throw new st}formatOffset(e,n){throw new st}offset(e){throw new st}equals(e){throw new st}get isValid(){throw new st}}let Lo=null;class hr extends fn{static get instance(){return Lo===null&&(Lo=new hr),Lo}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return d1(e,n,r)}formatOffset(e,n){return gn(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let pr={};function _4(t){return pr[t]||(pr[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),pr[t]}const V4={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function P4(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,a,i,s,l,c,u,d]=r;return[s,a,i,l,c,u,d]}function N4(t,e){const n=t.formatToParts(e),r=[];for(let a=0;a<n.length;a++){const{type:i,value:s}=n[a],l=V4[i];i==="era"?r[l]=s:F(l)||(r[l]=parseInt(s,10))}return r}let gr={};class Qe extends fn{static create(e){return gr[e]||(gr[e]=new Qe(e)),gr[e]}static resetCache(){gr={},pr={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=Qe.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return d1(e,n,r,this.name)}formatOffset(e,n){return gn(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const r=_4(this.name);let[a,i,s,l,c,u,d]=r.formatToParts?N4(r,n):P4(r,n);l==="BC"&&(a=-Math.abs(a)+1);const h=Wo({year:a,month:i,day:s,hour:c===24?0:c,minute:u,second:d,millisecond:0});let m=+n;const p=m%1e3;return m-=p>=0?p:1e3+p,(h-m)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let t1={};function B4(t,e={}){const n=JSON.stringify([t,e]);let r=t1[n];return r||(r=new Intl.ListFormat(t,e),t1[n]=r),r}let Ro={};function Fo(t,e={}){const n=JSON.stringify([t,e]);let r=Ro[n];return r||(r=new Intl.DateTimeFormat(t,e),Ro[n]=r),r}let jo={};function M4(t,e={}){const n=JSON.stringify([t,e]);let r=jo[n];return r||(r=new Intl.NumberFormat(t,e),jo[n]=r),r}let Ho={};function D4(t,e={}){const{base:n,...r}=e,a=JSON.stringify([t,r]);let i=Ho[a];return i||(i=new Intl.RelativeTimeFormat(t,e),Ho[a]=i),i}let mn=null;function $4(){return mn||(mn=new Intl.DateTimeFormat().resolvedOptions().locale,mn)}function A4(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let r,a;try{r=Fo(t).resolvedOptions(),a=t}catch{const c=t.substring(0,n);r=Fo(c).resolvedOptions(),a=c}const{numberingSystem:i,calendar:s}=r;return[a,i,s]}}function Z4(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function L4(t){const e=[];for(let n=1;n<=12;n++){const r=A.utc(2016,n,1);e.push(t(r))}return e}function R4(t){const e=[];for(let n=1;n<=7;n++){const r=A.utc(2016,11,13+n);e.push(t(r))}return e}function yr(t,e,n,r,a){const i=t.listingMode(n);return i==="error"?null:i==="en"?r(e):a(e)}function F4(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class j4{constructor(e,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:a,floor:i,...s}=r;if(!n||Object.keys(s).length>0){const l={useGrouping:!1,...r};r.padTo>0&&(l.minimumIntegerDigits=r.padTo),this.inf=M4(e,l)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):qo(e,3);return re(n,this.padTo)}}}class H4{constructor(e,n,r){this.opts=r,this.originalZone=void 0;let a;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const s=-1*(e.offset/60),l=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;e.offset!==0&&Qe.create(l).valid?(a=l,this.dt=e):(a="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,a=e.zone.name):(a="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||a,this.dtf=Fo(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class U4{constructor(e,n,r){this.opts={style:"long",...r},!n&&c1()&&(this.rtf=D4(e,r))}format(e,n){return this.rtf?this.rtf.format(e,n):lf(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}class Y{static fromOpts(e){return Y.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,n,r,a=!1){const i=e||ne.defaultLocale,s=i||(a?"en-US":$4()),l=n||ne.defaultNumberingSystem,c=r||ne.defaultOutputCalendar;return new Y(s,l,c,i)}static resetCache(){mn=null,Ro={},jo={},Ho={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:r}={}){return Y.create(e,n,r)}constructor(e,n,r,a){const[i,s,l]=A4(e);this.locale=i,this.numberingSystem=n||s||null,this.outputCalendar=r||l||null,this.intl=Z4(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=F4(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:Y.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1,r=!0){return yr(this,e,r,h1,()=>{const a=n?{month:e,day:"numeric"}:{month:e},i=n?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=L4(s=>this.extract(s,a,"month"))),this.monthsCache[i][e]})}weekdays(e,n=!1,r=!0){return yr(this,e,r,y1,()=>{const a=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=n?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=R4(s=>this.extract(s,a,"weekday"))),this.weekdaysCache[i][e]})}meridiems(e=!0){return yr(this,void 0,e,()=>b1,()=>{if(!this.meridiemCache){const n={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[A.utc(2016,11,13,9),A.utc(2016,11,13,19)].map(r=>this.extract(r,n,"dayperiod"))}return this.meridiemCache})}eras(e,n=!0){return yr(this,e,n,v1,()=>{const r={era:e};return this.eraCache[e]||(this.eraCache[e]=[A.utc(-40,1,1),A.utc(2017,1,1)].map(a=>this.extract(a,r,"era"))),this.eraCache[e]})}extract(e,n,r){const a=this.dtFormatter(e,n),i=a.formatToParts(),s=i.find(l=>l.type.toLowerCase()===r);return s?s.value:null}numberFormatter(e={}){return new j4(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new H4(e,this.intl,n)}relFormatter(e={}){return new U4(this.intl,this.isEnglish(),e)}listFormatter(e={}){return B4(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let Uo=null;class we extends fn{static get utcInstance(){return Uo===null&&(Uo=new we(0)),Uo}static instance(e){return e===0?we.utcInstance:new we(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new we(kr(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${gn(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${gn(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return gn(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class z4 extends fn{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function lt(t,e){if(F(t)||t===null)return e;if(t instanceof fn)return t;if(q4(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?hr.instance:n==="utc"||n==="gmt"?we.utcInstance:we.parseSpecifier(n)||Qe.create(t)}else return yt(t)?we.instance(t):typeof t=="object"&&t.offset&&typeof t.offset=="number"?t:new z4(t)}let n1=()=>Date.now(),r1="system",o1=null,i1=null,a1=null,s1=60,l1;class ne{static get now(){return n1}static set now(e){n1=e}static set defaultZone(e){r1=e}static get defaultZone(){return lt(r1,hr.instance)}static get defaultLocale(){return o1}static set defaultLocale(e){o1=e}static get defaultNumberingSystem(){return i1}static set defaultNumberingSystem(e){i1=e}static get defaultOutputCalendar(){return a1}static set defaultOutputCalendar(e){a1=e}static get twoDigitCutoffYear(){return s1}static set twoDigitCutoffYear(e){s1=e%100}static get throwOnInvalid(){return l1}static set throwOnInvalid(e){l1=e}static resetCaches(){Y.resetCache(),Qe.resetCache()}}function F(t){return typeof t>"u"}function yt(t){return typeof t=="number"}function br(t){return typeof t=="number"&&t%1===0}function q4(t){return typeof t=="string"}function W4(t){return Object.prototype.toString.call(t)==="[object Date]"}function c1(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function K4(t){return Array.isArray(t)?t:[t]}function u1(t,e,n){if(t.length!==0)return t.reduce((r,a)=>{const i=[e(a),a];return r&&n(r[0],i[0])===r[0]?r:i},null)[1]}function Y4(t,e){return e.reduce((n,r)=>(n[r]=t[r],n),{})}function Bt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function et(t,e,n){return br(t)&&t>=e&&t<=n}function G4(t,e){return t-e*Math.floor(t/e)}function re(t,e=2){const n=t<0;let r;return n?r="-"+(""+-t).padStart(e,"0"):r=(""+t).padStart(e,"0"),r}function ct(t){if(!(F(t)||t===null||t===""))return parseInt(t,10)}function bt(t){if(!(F(t)||t===null||t===""))return parseFloat(t)}function zo(t){if(!(F(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function qo(t,e,n=!1){const r=10**e;return(n?Math.trunc:Math.round)(t*r)/r}function hn(t){return t%4===0&&(t%100!==0||t%400===0)}function pn(t){return hn(t)?366:365}function vr(t,e){const n=G4(e-1,12)+1,r=t+(e-n)/12;return n===2?hn(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Wo(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function wr(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,n=t-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return e===4||r===3?53:52}function Ko(t){return t>99?t:t>ne.twoDigitCutoffYear?1900+t:2e3+t}function d1(t,e,n,r=null){const a=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const s={timeZoneName:e,...i},l=new Intl.DateTimeFormat(n,s).formatToParts(a).find(c=>c.type.toLowerCase()==="timezonename");return l?l.value:null}function kr(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0,a=n<0||Object.is(n,-0)?-r:r;return n*60+a}function f1(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new Oe(`Invalid unit value ${t}`);return e}function Cr(t,e){const n={};for(const r in t)if(Bt(t,r)){const a=t[r];if(a==null)continue;n[e(r)]=f1(a)}return n}function gn(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),a=t>=0?"+":"-";switch(e){case"short":return`${a}${re(n,2)}:${re(r,2)}`;case"narrow":return`${a}${n}${r>0?`:${r}`:""}`;case"techie":return`${a}${re(n,2)}${re(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Sr(t){return Y4(t,["hour","minute","second","millisecond"])}const J4=["January","February","March","April","May","June","July","August","September","October","November","December"],m1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],X4=["J","F","M","A","M","J","J","A","S","O","N","D"];function h1(t){switch(t){case"narrow":return[...X4];case"short":return[...m1];case"long":return[...J4];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const p1=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],g1=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Q4=["M","T","W","T","F","S","S"];function y1(t){switch(t){case"narrow":return[...Q4];case"short":return[...g1];case"long":return[...p1];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const b1=["AM","PM"],ef=["Before Christ","Anno Domini"],tf=["BC","AD"],nf=["B","A"];function v1(t){switch(t){case"narrow":return[...nf];case"short":return[...tf];case"long":return[...ef];default:return null}}function rf(t){return b1[t.hour<12?0:1]}function of(t,e){return y1(e)[t.weekday-1]}function af(t,e){return h1(e)[t.month-1]}function sf(t,e){return v1(e)[t.year<0?0:1]}function lf(t,e,n="always",r=!1){const a={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&i){const f=t==="days";switch(e){case 1:return f?"tomorrow":`next ${a[t][0]}`;case-1:return f?"yesterday":`last ${a[t][0]}`;case 0:return f?"today":`this ${a[t][0]}`}}const s=Object.is(e,-0)||e<0,l=Math.abs(e),c=l===1,u=a[t],d=r?c?u[1]:u[2]||u[1]:c?a[t][0]:t;return s?`${l} ${d} ago`:`in ${l} ${d}`}function w1(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const cf={D:mr,DD:$s,DDD:As,DDDD:Zs,t:Ls,tt:Rs,ttt:Fs,tttt:js,T:Hs,TT:Us,TTT:zs,TTTT:qs,f:Ws,ff:Ys,fff:Js,ffff:Qs,F:Ks,FF:Gs,FFF:Xs,FFFF:e1};class he{static create(e,n={}){return new he(e,n)}static parseFormat(e){let n=null,r="",a=!1;const i=[];for(let s=0;s<e.length;s++){const l=e.charAt(s);l==="'"?(r.length>0&&i.push({literal:a||/^\s+$/.test(r),val:r}),n=null,r="",a=!a):a||l===n?r+=l:(r.length>0&&i.push({literal:/^\s+$/.test(r),val:r}),r=l,n=l)}return r.length>0&&i.push({literal:a||/^\s+$/.test(r),val:r}),i}static macroTokenToFormatOpts(e){return cf[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}formatDateTime(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).format()}formatDateTimeParts(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).formatToParts()}formatInterval(e,n={}){return this.loc.dtFormatter(e.start,{...this.opts,...n}).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return re(e,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,n){const r=this.loc.listingMode()==="en",a=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(m,p)=>this.loc.extract(e,m,p),s=m=>e.isOffsetFixed&&e.offset===0&&m.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,m.format):"",l=()=>r?rf(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(m,p)=>r?af(e,m):i(p?{month:m}:{month:m,day:"numeric"},"month"),u=(m,p)=>r?of(e,m):i(p?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),d=m=>{const p=he.macroTokenToFormatOpts(m);return p?this.formatWithSystemDefault(e,p):m},f=m=>r?sf(e,m):i({era:m},"era"),h=m=>{switch(m){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return l();case"d":return a?i({day:"numeric"},"day"):this.num(e.day);case"dd":return a?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return a?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return a?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return a?i({month:"numeric"},"month"):this.num(e.month);case"MM":return a?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return a?i({year:"numeric"},"year"):this.num(e.year);case"yy":return a?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return a?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return a?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return d(m)}};return w1(he.parseFormat(n),h)}formatDurationFromString(e,n){const r=c=>{switch(c[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},a=c=>u=>{const d=r(u);return d?this.num(c.get(d),u.length):u},i=he.parseFormat(n),s=i.reduce((c,{literal:u,val:d})=>u?c:c.concat(d),[]),l=e.shiftTo(...s.map(r).filter(c=>c));return w1(i,a(l))}}class Be{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const k1=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Mt(...t){const e=t.reduce((n,r)=>n+r.source,"");return RegExp(`^${e}$`)}function Dt(...t){return e=>t.reduce(([n,r,a],i)=>{const[s,l,c]=i(e,a);return[{...n,...s},l||r,c]},[{},null,1]).slice(0,2)}function $t(t,...e){if(t==null)return[null,null];for(const[n,r]of e){const a=n.exec(t);if(a)return r(a)}return[null,null]}function C1(...t){return(e,n)=>{const r={};let a;for(a=0;a<t.length;a++)r[t[a]]=ct(e[n+a]);return[r,null,n+a]}}const S1=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,uf=`(?:${S1.source}?(?:\\[(${k1.source})\\])?)?`,Yo=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,E1=RegExp(`${Yo.source}${uf}`),Go=RegExp(`(?:T${E1.source})?`),df=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,ff=/(\d{4})-?W(\d\d)(?:-?(\d))?/,mf=/(\d{4})-?(\d{3})/,hf=C1("weekYear","weekNumber","weekDay"),pf=C1("year","ordinal"),gf=/(\d{4})-(\d\d)-(\d\d)/,T1=RegExp(`${Yo.source} ?(?:${S1.source}|(${k1.source}))?`),yf=RegExp(`(?: ${T1.source})?`);function At(t,e,n){const r=t[e];return F(r)?n:ct(r)}function bf(t,e){return[{year:At(t,e),month:At(t,e+1,1),day:At(t,e+2,1)},null,e+3]}function Zt(t,e){return[{hours:At(t,e,0),minutes:At(t,e+1,0),seconds:At(t,e+2,0),milliseconds:zo(t[e+3])},null,e+4]}function yn(t,e){const n=!t[e]&&!t[e+1],r=kr(t[e+1],t[e+2]),a=n?null:we.instance(r);return[{},a,e+3]}function bn(t,e){const n=t[e]?Qe.create(t[e]):null;return[{},n,e+1]}const vf=RegExp(`^T?${Yo.source}$`),wf=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function kf(t){const[e,n,r,a,i,s,l,c,u]=t,d=e[0]==="-",f=c&&c[0]==="-",h=(m,p=!1)=>m!==void 0&&(p||m&&d)?-m:m;return[{years:h(bt(n)),months:h(bt(r)),weeks:h(bt(a)),days:h(bt(i)),hours:h(bt(s)),minutes:h(bt(l)),seconds:h(bt(c),c==="-0"),milliseconds:h(zo(u),f)}]}const Cf={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Jo(t,e,n,r,a,i,s){const l={year:e.length===2?Ko(ct(e)):ct(e),month:m1.indexOf(n)+1,day:ct(r),hour:ct(a),minute:ct(i)};return s&&(l.second=ct(s)),t&&(l.weekday=t.length>3?p1.indexOf(t)+1:g1.indexOf(t)+1),l}const Sf=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Ef(t){const[,e,n,r,a,i,s,l,c,u,d,f]=t,h=Jo(e,a,r,n,i,s,l);let m;return c?m=Cf[c]:u?m=0:m=kr(d,f),[h,new we(m)]}function Tf(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const xf=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Of=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,If=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function x1(t){const[,e,n,r,a,i,s,l]=t;return[Jo(e,a,r,n,i,s,l),we.utcInstance]}function _f(t){const[,e,n,r,a,i,s,l]=t;return[Jo(e,l,n,r,a,i,s),we.utcInstance]}const Vf=Mt(df,Go),Pf=Mt(ff,Go),Nf=Mt(mf,Go),Bf=Mt(E1),O1=Dt(bf,Zt,yn,bn),Mf=Dt(hf,Zt,yn,bn),Df=Dt(pf,Zt,yn,bn),$f=Dt(Zt,yn,bn);function Af(t){return $t(t,[Vf,O1],[Pf,Mf],[Nf,Df],[Bf,$f])}function Zf(t){return $t(Tf(t),[Sf,Ef])}function Lf(t){return $t(t,[xf,x1],[Of,x1],[If,_f])}function Rf(t){return $t(t,[wf,kf])}const Ff=Dt(Zt);function jf(t){return $t(t,[vf,Ff])}const Hf=Mt(gf,yf),Uf=Mt(T1),zf=Dt(Zt,yn,bn);function qf(t){return $t(t,[Hf,O1],[Uf,zf])}const Wf="Invalid Duration",I1={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Kf={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...I1},Ie=146097/400,Lt=146097/4800,Yf={years:{quarters:4,months:12,weeks:Ie/7,days:Ie,hours:Ie*24,minutes:Ie*24*60,seconds:Ie*24*60*60,milliseconds:Ie*24*60*60*1e3},quarters:{months:3,weeks:Ie/28,days:Ie/4,hours:Ie*24/4,minutes:Ie*24*60/4,seconds:Ie*24*60*60/4,milliseconds:Ie*24*60*60*1e3/4},months:{weeks:Lt/7,days:Lt,hours:Lt*24,minutes:Lt*24*60,seconds:Lt*24*60*60,milliseconds:Lt*24*60*60*1e3},...I1},vt=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Gf=vt.slice(0).reverse();function ut(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new U(r)}function Jf(t){return t<0?Math.floor(t):Math.ceil(t)}function _1(t,e,n,r,a){const i=t[a][n],s=e[n]/i,l=Math.sign(s)===Math.sign(r[a]),c=!l&&r[a]!==0&&Math.abs(s)<=1?Jf(s):Math.trunc(s);r[a]+=c,e[n]-=c*i}function Xf(t,e){Gf.reduce((n,r)=>F(e[r])?n:(n&&_1(t,e,n,e,r),r),null)}function Qf(t){const e={};for(const[n,r]of Object.entries(t))r!==0&&(e[n]=r);return e}class U{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let r=n?Yf:Kf;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||Y.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,n){return U.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new Oe(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new U({values:Cr(e,U.normalizeUnit),loc:Y.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(yt(e))return U.fromMillis(e);if(U.isDuration(e))return e;if(typeof e=="object")return U.fromObject(e);throw new Oe(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[r]=Rf(e);return r?U.fromObject(r,n):U.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[r]=jf(e);return r?U.fromObject(r,n):U.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new Oe("need to specify a reason the Duration is invalid");const r=e instanceof Be?e:new Be(e,n);if(ne.throwOnInvalid)throw new x4(r);return new U({invalid:r})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new Ds(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?he.create(this.loc,r).formatDurationFromString(this,e):Wf}toHuman(e={}){const n=vt.map(r=>{const a=this.values[r];return F(a)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(a)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=qo(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();if(n<0||n>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};const r=this.shiftTo("hours","minutes","seconds","milliseconds");let a=e.format==="basic"?"hhmm":"hh:mm";(!e.suppressSeconds||r.seconds!==0||r.milliseconds!==0)&&(a+=e.format==="basic"?"ss":":ss",(!e.suppressMilliseconds||r.milliseconds!==0)&&(a+=".SSS"));let i=r.toFormat(a);return e.includePrefix&&(i="T"+i),i}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=U.fromDurationLike(e),r={};for(const a of vt)(Bt(n.values,a)||Bt(this.values,a))&&(r[a]=n.get(a)+this.get(a));return ut(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const n=U.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=f1(e(this.values[r],r));return ut(this,{values:n},!0)}get(e){return this[U.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...Cr(e,U.normalizeUnit)};return ut(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:r,matrix:a}={}){const s={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:a,conversionAccuracy:r};return ut(this,s)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Xf(this.matrix,e),ut(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=Qf(this.normalize().shiftToAll().toObject());return ut(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(s=>U.normalizeUnit(s));const n={},r={},a=this.toObject();let i;for(const s of vt)if(e.indexOf(s)>=0){i=s;let l=0;for(const u in r)l+=this.matrix[u][s]*r[u],r[u]=0;yt(a[s])&&(l+=a[s]);const c=Math.trunc(l);n[s]=c,r[s]=(l*1e3-c*1e3)/1e3;for(const u in a)vt.indexOf(u)>vt.indexOf(s)&&_1(this.matrix,a,u,n,s)}else yt(a[s])&&(r[s]=a[s]);for(const s in r)r[s]!==0&&(n[i]+=s===i?r[s]:r[s]/this.matrix[i][s]);return ut(this,{values:n},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return ut(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(r,a){return r===void 0||r===0?a===void 0||a===0:r===a}for(const r of vt)if(!n(this.values[r],e.values[r]))return!1;return!0}}const Rt="Invalid Interval";function e5(t,e){return!t||!t.isValid?Q.invalid("missing or invalid start"):!e||!e.isValid?Q.invalid("missing or invalid end"):e<t?Q.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class Q{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new Oe("need to specify a reason the Interval is invalid");const r=e instanceof Be?e:new Be(e,n);if(ne.throwOnInvalid)throw new T4(r);return new Q({invalid:r})}static fromDateTimes(e,n){const r=kn(e),a=kn(n),i=e5(r,a);return i??new Q({start:r,end:a})}static after(e,n){const r=U.fromDurationLike(n),a=kn(e);return Q.fromDateTimes(a,a.plus(r))}static before(e,n){const r=U.fromDurationLike(n),a=kn(e);return Q.fromDateTimes(a.minus(r),a)}static fromISO(e,n){const[r,a]=(e||"").split("/",2);if(r&&a){let i,s;try{i=A.fromISO(r,n),s=i.isValid}catch{s=!1}let l,c;try{l=A.fromISO(a,n),c=l.isValid}catch{c=!1}if(s&&c)return Q.fromDateTimes(i,l);if(s){const u=U.fromISO(a,n);if(u.isValid)return Q.after(i,u)}else if(c){const u=U.fromISO(r,n);if(u.isValid)return Q.before(l,u)}}return Q.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(e),r=this.end.startOf(e);return Math.floor(r.diff(n,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?Q.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(kn).filter(s=>this.contains(s)).sort(),r=[];let{s:a}=this,i=0;for(;a<this.e;){const s=n[i]||this.e,l=+s>+this.e?this.e:s;r.push(Q.fromDateTimes(a,l)),a=l,i+=1}return r}splitBy(e){const n=U.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,a=1,i;const s=[];for(;r<this.e;){const l=this.start.plus(n.mapUnits(c=>c*a));i=+l>+this.e?this.e:l,s.push(Q.fromDateTimes(r,i)),r=i,a+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return n>=r?null:Q.fromDateTimes(n,r)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return Q.fromDateTimes(n,r)}static merge(e){const[n,r]=e.sort((a,i)=>a.s-i.s).reduce(([a,i],s)=>i?i.overlaps(s)||i.abutsStart(s)?[a,i.union(s)]:[a.concat([i]),s]:[a,s],[[],null]);return r&&n.push(r),n}static xor(e){let n=null,r=0;const a=[],i=e.map(c=>[{time:c.s,type:"s"},{time:c.e,type:"e"}]),s=Array.prototype.concat(...i),l=s.sort((c,u)=>c.time-u.time);for(const c of l)r+=c.type==="s"?1:-1,r===1?n=c.time:(n&&+n!=+c.time&&a.push(Q.fromDateTimes(n,c.time)),n=null);return Q.merge(a)}difference(...e){return Q.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Rt}toLocaleString(e=mr,n={}){return this.isValid?he.create(this.s.loc.clone(n),e).formatInterval(this):Rt}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Rt}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Rt}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Rt}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:Rt}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):U.invalid(this.invalidReason)}mapEndpoints(e){return Q.fromDateTimes(e(this.s),e(this.e))}}class Er{static hasDST(e=ne.defaultZone){const n=A.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return Qe.isValidZone(e)}static normalizeZone(e){return lt(e,ne.defaultZone)}static months(e="long",{locale:n=null,numberingSystem:r=null,locObj:a=null,outputCalendar:i="gregory"}={}){return(a||Y.create(n,r,i)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:a=null,outputCalendar:i="gregory"}={}){return(a||Y.create(n,r,i)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:r=null,locObj:a=null}={}){return(a||Y.create(n,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:a=null}={}){return(a||Y.create(n,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Y.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return Y.create(n,null,"gregory").eras(e)}static features(){return{relative:c1()}}}function V1(t,e){const n=a=>a.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(U.fromMillis(r).as("days"))}function t5(t,e,n){const r=[["years",(c,u)=>u.year-c.year],["quarters",(c,u)=>u.quarter-c.quarter+(u.year-c.year)*4],["months",(c,u)=>u.month-c.month+(u.year-c.year)*12],["weeks",(c,u)=>{const d=V1(c,u);return(d-d%7)/7}],["days",V1]],a={},i=t;let s,l;for(const[c,u]of r)n.indexOf(c)>=0&&(s=c,a[c]=u(t,e),l=i.plus(a),l>e?(a[c]--,t=i.plus(a)):t=l);return[t,a,l,s]}function n5(t,e,n,r){let[a,i,s,l]=t5(t,e,n);const c=e-a,u=n.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);u.length===0&&(s<e&&(s=a.plus({[l]:1})),s!==a&&(i[l]=(i[l]||0)+c/(s-a)));const d=U.fromObject(i,r);return u.length>0?U.fromMillis(c,r).shiftTo(...u).plus(d):d}const Xo={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},P1={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},r5=Xo.hanidec.replace(/[\[|\]]/g,"").split("");function o5(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(t[n].search(Xo.hanidec)!==-1)e+=r5.indexOf(t[n]);else for(const a in P1){const[i,s]=P1[a];r>=i&&r<=s&&(e+=r-i)}}return parseInt(e,10)}else return e}function Me({numberingSystem:t},e=""){return new RegExp(`${Xo[t||"latn"]}${e}`)}const i5="missing Intl.DateTimeFormat.formatToParts support";function W(t,e=n=>n){return{regex:t,deser:([n])=>e(o5(n))}}const N1=`[ ${String.fromCharCode(160)}]`,B1=new RegExp(N1,"g");function a5(t){return t.replace(/\./g,"\\.?").replace(B1,N1)}function M1(t){return t.replace(/\./g,"").replace(B1," ").toLowerCase()}function De(t,e){return t===null?null:{regex:RegExp(t.map(a5).join("|")),deser:([n])=>t.findIndex(r=>M1(n)===M1(r))+e}}function D1(t,e){return{regex:t,deser:([,n,r])=>kr(n,r),groups:e}}function Tr(t){return{regex:t,deser:([e])=>e}}function s5(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function l5(t,e){const n=Me(e),r=Me(e,"{2}"),a=Me(e,"{3}"),i=Me(e,"{4}"),s=Me(e,"{6}"),l=Me(e,"{1,2}"),c=Me(e,"{1,3}"),u=Me(e,"{1,6}"),d=Me(e,"{1,9}"),f=Me(e,"{2,4}"),h=Me(e,"{4,6}"),m=k=>({regex:RegExp(s5(k.val)),deser:([x])=>x,literal:!0}),y=(k=>{if(t.literal)return m(k);switch(k.val){case"G":return De(e.eras("short",!1),0);case"GG":return De(e.eras("long",!1),0);case"y":return W(u);case"yy":return W(f,Ko);case"yyyy":return W(i);case"yyyyy":return W(h);case"yyyyyy":return W(s);case"M":return W(l);case"MM":return W(r);case"MMM":return De(e.months("short",!0,!1),1);case"MMMM":return De(e.months("long",!0,!1),1);case"L":return W(l);case"LL":return W(r);case"LLL":return De(e.months("short",!1,!1),1);case"LLLL":return De(e.months("long",!1,!1),1);case"d":return W(l);case"dd":return W(r);case"o":return W(c);case"ooo":return W(a);case"HH":return W(r);case"H":return W(l);case"hh":return W(r);case"h":return W(l);case"mm":return W(r);case"m":return W(l);case"q":return W(l);case"qq":return W(r);case"s":return W(l);case"ss":return W(r);case"S":return W(c);case"SSS":return W(a);case"u":return Tr(d);case"uu":return Tr(l);case"uuu":return W(n);case"a":return De(e.meridiems(),0);case"kkkk":return W(i);case"kk":return W(f,Ko);case"W":return W(l);case"WW":return W(r);case"E":case"c":return W(n);case"EEE":return De(e.weekdays("short",!1,!1),1);case"EEEE":return De(e.weekdays("long",!1,!1),1);case"ccc":return De(e.weekdays("short",!0,!1),1);case"cccc":return De(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return D1(new RegExp(`([+-]${l.source})(?::(${r.source}))?`),2);case"ZZZ":return D1(new RegExp(`([+-]${l.source})(${r.source})?`),2);case"z":return Tr(/[a-z_+-/]{1,256}?/i);case" ":return Tr(/[^\S\n\r]/);default:return m(k)}})(t)||{invalidReason:i5};return y.token=t,y}const c5={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function u5(t,e){const{type:n,value:r}=t;if(n==="literal"){const s=/^\s+$/.test(r);return{literal:!s,val:s?" ":r}}const a=e[n];let i=c5[n];if(typeof i=="object"&&(i=i[a]),i)return{literal:!1,val:i}}function d5(t){return[`^${t.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,t]}function f5(t,e,n){const r=t.match(e);if(r){const a={};let i=1;for(const s in n)if(Bt(n,s)){const l=n[s],c=l.groups?l.groups+1:1;!l.literal&&l.token&&(a[l.token.val[0]]=l.deser(r.slice(i,i+c))),i+=c}return[r,a]}else return[r,{}]}function m5(t){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return F(t.z)||(n=Qe.create(t.z)),F(t.Z)||(n||(n=new we(t.Z)),r=t.Z),F(t.q)||(t.M=(t.q-1)*3+1),F(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),F(t.u)||(t.S=zo(t.u)),[Object.keys(t).reduce((i,s)=>{const l=e(s);return l&&(i[l]=t[s]),i},{}),n,r]}let Qo=null;function h5(){return Qo||(Qo=A.fromMillis(1555555555555)),Qo}function p5(t,e){if(t.literal)return t;const n=he.macroTokenToFormatOpts(t.val),r=Z1(n,e);return r==null||r.includes(void 0)?t:r}function $1(t,e){return Array.prototype.concat(...t.map(n=>p5(n,e)))}function A1(t,e,n){const r=$1(he.parseFormat(n),t),a=r.map(s=>l5(s,t)),i=a.find(s=>s.invalidReason);if(i)return{input:e,tokens:r,invalidReason:i.invalidReason};{const[s,l]=d5(a),c=RegExp(s,"i"),[u,d]=f5(e,c,l),[f,h,m]=d?m5(d):[null,null,void 0];if(Bt(d,"a")&&Bt(d,"H"))throw new dn("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:c,rawMatches:u,matches:d,result:f,zone:h,specificOffset:m}}}function g5(t,e,n){const{result:r,zone:a,specificOffset:i,invalidReason:s}=A1(t,e,n);return[r,a,i,s]}function Z1(t,e){return t?he.create(e,t).formatDateTimeParts(h5()).map(a=>u5(a,t)):null}const L1=[0,31,59,90,120,151,181,212,243,273,304,334],R1=[0,31,60,91,121,152,182,213,244,274,305,335];function _e(t,e){return new Be("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function F1(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const a=r.getUTCDay();return a===0?7:a}function j1(t,e,n){return n+(hn(t)?R1:L1)[e-1]}function H1(t,e){const n=hn(t)?R1:L1,r=n.findIndex(i=>i<e),a=e-n[r];return{month:r+1,day:a}}function ei(t){const{year:e,month:n,day:r}=t,a=j1(e,n,r),i=F1(e,n,r);let s=Math.floor((a-i+10)/7),l;return s<1?(l=e-1,s=wr(l)):s>wr(e)?(l=e+1,s=1):l=e,{weekYear:l,weekNumber:s,weekday:i,...Sr(t)}}function U1(t){const{weekYear:e,weekNumber:n,weekday:r}=t,a=F1(e,1,4),i=pn(e);let s=n*7+r-a-3,l;s<1?(l=e-1,s+=pn(l)):s>i?(l=e+1,s-=pn(e)):l=e;const{month:c,day:u}=H1(l,s);return{year:l,month:c,day:u,...Sr(t)}}function ti(t){const{year:e,month:n,day:r}=t,a=j1(e,n,r);return{year:e,ordinal:a,...Sr(t)}}function z1(t){const{year:e,ordinal:n}=t,{month:r,day:a}=H1(e,n);return{year:e,month:r,day:a,...Sr(t)}}function y5(t){const e=br(t.weekYear),n=et(t.weekNumber,1,wr(t.weekYear)),r=et(t.weekday,1,7);return e?n?r?!1:_e("weekday",t.weekday):_e("week",t.week):_e("weekYear",t.weekYear)}function b5(t){const e=br(t.year),n=et(t.ordinal,1,pn(t.year));return e?n?!1:_e("ordinal",t.ordinal):_e("year",t.year)}function q1(t){const e=br(t.year),n=et(t.month,1,12),r=et(t.day,1,vr(t.year,t.month));return e?n?r?!1:_e("day",t.day):_e("month",t.month):_e("year",t.year)}function W1(t){const{hour:e,minute:n,second:r,millisecond:a}=t,i=et(e,0,23)||e===24&&n===0&&r===0&&a===0,s=et(n,0,59),l=et(r,0,59),c=et(a,0,999);return i?s?l?c?!1:_e("millisecond",a):_e("second",r):_e("minute",n):_e("hour",e)}const ni="Invalid DateTime",K1=864e13;function xr(t){return new Be("unsupported zone",`the zone "${t.name}" is not supported`)}function ri(t){return t.weekData===null&&(t.weekData=ei(t.c)),t.weekData}function vn(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new A({...n,...e,old:n})}function Y1(t,e,n){let r=t-e*60*1e3;const a=n.offset(r);if(e===a)return[r,e];r-=(a-e)*60*1e3;const i=n.offset(r);return a===i?[r,a]:[t-Math.min(a,i)*60*1e3,Math.max(a,i)]}function G1(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Or(t,e,n){return Y1(Wo(t),e,n)}function J1(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),a=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:r,month:a,day:Math.min(t.c.day,vr(r,a))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=U.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),l=Wo(i);let[c,u]=Y1(l,n,t.zone);return s!==0&&(c+=s,u=t.zone.offset(c)),{ts:c,o:u}}function wn(t,e,n,r,a,i){const{setZone:s,zone:l}=n;if(t&&Object.keys(t).length!==0||e){const c=e||l,u=A.fromObject(t,{...n,zone:c,specificOffset:i});return s?u:u.setZone(l)}else return A.invalid(new Be("unparsable",`the input "${a}" can't be parsed as ${r}`))}function Ir(t,e,n=!0){return t.isValid?he.create(Y.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function oi(t,e){const n=t.c.year>9999||t.c.year<0;let r="";return n&&t.c.year>=0&&(r+="+"),r+=re(t.c.year,n?6:4),e?(r+="-",r+=re(t.c.month),r+="-",r+=re(t.c.day)):(r+=re(t.c.month),r+=re(t.c.day)),r}function X1(t,e,n,r,a,i){let s=re(t.c.hour);return e?(s+=":",s+=re(t.c.minute),(t.c.second!==0||!n)&&(s+=":")):s+=re(t.c.minute),(t.c.second!==0||!n)&&(s+=re(t.c.second),(t.c.millisecond!==0||!r)&&(s+=".",s+=re(t.c.millisecond,3))),a&&(t.isOffsetFixed&&t.offset===0&&!i?s+="Z":t.o<0?(s+="-",s+=re(Math.trunc(-t.o/60)),s+=":",s+=re(Math.trunc(-t.o%60))):(s+="+",s+=re(Math.trunc(t.o/60)),s+=":",s+=re(Math.trunc(t.o%60)))),i&&(s+="["+t.zone.ianaName+"]"),s}const Q1={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},v5={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},w5={ordinal:1,hour:0,minute:0,second:0,millisecond:0},el=["year","month","day","hour","minute","second","millisecond"],k5=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],C5=["year","ordinal","hour","minute","second","millisecond"];function tl(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new Ds(t);return e}function nl(t,e){const n=lt(e.zone,ne.defaultZone),r=Y.fromObject(e),a=ne.now();let i,s;if(F(t.year))i=a;else{for(const u of el)F(t[u])&&(t[u]=Q1[u]);const l=q1(t)||W1(t);if(l)return A.invalid(l);const c=n.offset(a);[i,s]=Or(t,c,n)}return new A({ts:i,zone:n,loc:r,o:s})}function rl(t,e,n){const r=F(n.round)?!0:n.round,a=(s,l)=>(s=qo(s,r||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(s,l)),i=s=>n.calendary?e.hasSame(t,s)?0:e.startOf(s).diff(t.startOf(s),s).get(s):e.diff(t,s).get(s);if(n.unit)return a(i(n.unit),n.unit);for(const s of n.units){const l=i(s);if(Math.abs(l)>=1)return a(l,s)}return a(t>e?-0:0,n.units[n.units.length-1])}function ol(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}class A{constructor(e){const n=e.zone||ne.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new Be("invalid input"):null)||(n.isValid?null:xr(n));this.ts=F(e.ts)?ne.now():e.ts;let a=null,i=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[a,i]=[e.old.c,e.old.o];else{const l=n.offset(this.ts);a=G1(this.ts,l),r=Number.isNaN(a.year)?new Be("invalid input"):null,a=r?null:a,i=r?null:l}this._zone=n,this.loc=e.loc||Y.create(),this.invalid=r,this.weekData=null,this.c=a,this.o=i,this.isLuxonDateTime=!0}static now(){return new A({})}static local(){const[e,n]=ol(arguments),[r,a,i,s,l,c,u]=n;return nl({year:r,month:a,day:i,hour:s,minute:l,second:c,millisecond:u},e)}static utc(){const[e,n]=ol(arguments),[r,a,i,s,l,c,u]=n;return e.zone=we.utcInstance,nl({year:r,month:a,day:i,hour:s,minute:l,second:c,millisecond:u},e)}static fromJSDate(e,n={}){const r=W4(e)?e.valueOf():NaN;if(Number.isNaN(r))return A.invalid("invalid input");const a=lt(n.zone,ne.defaultZone);return a.isValid?new A({ts:r,zone:a,loc:Y.fromObject(n)}):A.invalid(xr(a))}static fromMillis(e,n={}){if(yt(e))return e<-K1||e>K1?A.invalid("Timestamp out of range"):new A({ts:e,zone:lt(n.zone,ne.defaultZone),loc:Y.fromObject(n)});throw new Oe(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(yt(e))return new A({ts:e*1e3,zone:lt(n.zone,ne.defaultZone),loc:Y.fromObject(n)});throw new Oe("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const r=lt(n.zone,ne.defaultZone);if(!r.isValid)return A.invalid(xr(r));const a=ne.now(),i=F(n.specificOffset)?r.offset(a):n.specificOffset,s=Cr(e,tl),l=!F(s.ordinal),c=!F(s.year),u=!F(s.month)||!F(s.day),d=c||u,f=s.weekYear||s.weekNumber,h=Y.fromObject(n);if((d||l)&&f)throw new dn("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&l)throw new dn("Can't mix ordinal dates with month/day");const m=f||s.weekday&&!d;let p,y,k=G1(a,i);m?(p=k5,y=v5,k=ei(k)):l?(p=C5,y=w5,k=ti(k)):(p=el,y=Q1);let x=!1;for(const N of p){const _=s[N];F(_)?x?s[N]=y[N]:s[N]=k[N]:x=!0}const g=m?y5(s):l?b5(s):q1(s),b=g||W1(s);if(b)return A.invalid(b);const T=m?U1(s):l?z1(s):s,[I,O]=Or(T,i,r),w=new A({ts:I,zone:r,o:O,loc:h});return s.weekday&&d&&e.weekday!==w.weekday?A.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${w.toISO()}`):w}static fromISO(e,n={}){const[r,a]=Af(e);return wn(r,a,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[r,a]=Zf(e);return wn(r,a,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[r,a]=Lf(e);return wn(r,a,n,"HTTP",n)}static fromFormat(e,n,r={}){if(F(e)||F(n))throw new Oe("fromFormat requires an input string and a format");const{locale:a=null,numberingSystem:i=null}=r,s=Y.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0}),[l,c,u,d]=g5(s,e,n);return d?A.invalid(d):wn(l,c,r,`format ${n}`,e,u)}static fromString(e,n,r={}){return A.fromFormat(e,n,r)}static fromSQL(e,n={}){const[r,a]=qf(e);return wn(r,a,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new Oe("need to specify a reason the DateTime is invalid");const r=e instanceof Be?e:new Be(e,n);if(ne.throwOnInvalid)throw new E4(r);return new A({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const r=Z1(e,Y.fromObject(n));return r?r.map(a=>a?a.val:null).join(""):null}static expandFormat(e,n={}){return $1(he.parseFormat(e),Y.fromObject(n)).map(a=>a.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?ri(this).weekYear:NaN}get weekNumber(){return this.isValid?ri(this).weekNumber:NaN}get weekday(){return this.isValid?ri(this).weekday:NaN}get ordinal(){return this.isValid?ti(this.c).ordinal:NaN}get monthShort(){return this.isValid?Er.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Er.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Er.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Er.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return hn(this.year)}get daysInMonth(){return vr(this.year,this.month)}get daysInYear(){return this.isValid?pn(this.year):NaN}get weeksInWeekYear(){return this.isValid?wr(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:r,calendar:a}=he.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:a}}toUTC(e=0,n={}){return this.setZone(we.instance(e),n)}toLocal(){return this.setZone(ne.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(e=lt(e,ne.defaultZone),e.equals(this.zone))return this;if(e.isValid){let a=this.ts;if(n||r){const i=e.offset(this.ts),s=this.toObject();[a]=Or(s,i,e)}return vn(this,{ts:a,zone:e})}else return A.invalid(xr(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:r}={}){const a=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:r});return vn(this,{loc:a})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=Cr(e,tl),r=!F(n.weekYear)||!F(n.weekNumber)||!F(n.weekday),a=!F(n.ordinal),i=!F(n.year),s=!F(n.month)||!F(n.day),l=i||s,c=n.weekYear||n.weekNumber;if((l||a)&&c)throw new dn("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&a)throw new dn("Can't mix ordinal dates with month/day");let u;r?u=U1({...ei(this.c),...n}):F(n.ordinal)?(u={...this.toObject(),...n},F(n.day)&&(u.day=Math.min(vr(u.year,u.month),u.day))):u=z1({...ti(this.c),...n});const[d,f]=Or(u,this.o,this.zone);return vn(this,{ts:d,o:f})}plus(e){if(!this.isValid)return this;const n=U.fromDurationLike(e);return vn(this,J1(this,n))}minus(e){if(!this.isValid)return this;const n=U.fromDurationLike(e).negate();return vn(this,J1(this,n))}startOf(e){if(!this.isValid)return this;const n={},r=U.normalizeUnit(e);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(r==="weeks"&&(n.weekday=1),r==="quarters"){const a=Math.ceil(this.month/3);n.month=(a-1)*3+1}return this.set(n)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,n={}){return this.isValid?he.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):ni}toLocaleString(e=mr,n={}){return this.isValid?he.create(this.loc.clone(n),e).formatDateTime(this):ni}toLocaleParts(e={}){return this.isValid?he.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:a=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const s=e==="extended";let l=oi(this,s);return l+="T",l+=X1(this,s,n,r,a,i),l}toISODate({format:e="extended"}={}){return this.isValid?oi(this,e==="extended"):null}toISOWeekDate(){return Ir(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:a=!1,extendedZone:i=!1,format:s="extended"}={}){return this.isValid?(a?"T":"")+X1(this,s==="extended",n,e,r,i):null}toRFC2822(){return Ir(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ir(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?oi(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let a="HH:mm:ss.SSS";return(n||e)&&(r&&(a+=" "),n?a+="z":e&&(a+="ZZ")),Ir(this,a,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():ni}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",r={}){if(!this.isValid||!e.isValid)return U.invalid("created by diffing an invalid DateTime");const a={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=K4(n).map(U.normalizeUnit),s=e.valueOf()>this.valueOf(),l=s?this:e,c=s?e:this,u=n5(l,c,i,a);return s?u.negate():u}diffNow(e="milliseconds",n={}){return this.diff(A.now(),e,n)}until(e){return this.isValid?Q.fromDateTimes(this,e):this}hasSame(e,n){if(!this.isValid)return!1;const r=e.valueOf(),a=this.setZone(e.zone,{keepLocalTime:!0});return a.startOf(n)<=r&&r<=a.endOf(n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||A.fromObject({},{zone:this.zone}),r=e.padding?this<n?-e.padding:e.padding:0;let a=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(a=e.unit,i=void 0),rl(n,this.plus(r),{...e,numeric:"always",units:a,unit:i})}toRelativeCalendar(e={}){return this.isValid?rl(e.base||A.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(A.isDateTime))throw new Oe("min requires all arguments be DateTimes");return u1(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(A.isDateTime))throw new Oe("max requires all arguments be DateTimes");return u1(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,r={}){const{locale:a=null,numberingSystem:i=null}=r,s=Y.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0});return A1(s,e,n)}static fromStringExplain(e,n,r={}){return A.fromFormatExplain(e,n,r)}static get DATE_SHORT(){return mr}static get DATE_MED(){return $s}static get DATE_MED_WITH_WEEKDAY(){return O4}static get DATE_FULL(){return As}static get DATE_HUGE(){return Zs}static get TIME_SIMPLE(){return Ls}static get TIME_WITH_SECONDS(){return Rs}static get TIME_WITH_SHORT_OFFSET(){return Fs}static get TIME_WITH_LONG_OFFSET(){return js}static get TIME_24_SIMPLE(){return Hs}static get TIME_24_WITH_SECONDS(){return Us}static get TIME_24_WITH_SHORT_OFFSET(){return zs}static get TIME_24_WITH_LONG_OFFSET(){return qs}static get DATETIME_SHORT(){return Ws}static get DATETIME_SHORT_WITH_SECONDS(){return Ks}static get DATETIME_MED(){return Ys}static get DATETIME_MED_WITH_SECONDS(){return Gs}static get DATETIME_MED_WITH_WEEKDAY(){return I4}static get DATETIME_FULL(){return Js}static get DATETIME_FULL_WITH_SECONDS(){return Xs}static get DATETIME_HUGE(){return Qs}static get DATETIME_HUGE_WITH_SECONDS(){return e1}}function kn(t){if(A.isDateTime(t))return t;if(t&&t.valueOf&&yt(t.valueOf()))return A.fromJSDate(t);if(t&&typeof t=="object")return A.fromObject(t);throw new Oe(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const S5=[o.createElementVNode("path",{d:"m3.56 7.28 2.47 2.47 8.66-8.66a.4.4 0 0 1 .68.28v4.86c0 .11-.04.21-.12.28l-9.03 9.03a.4.4 0 0 1-.57 0L.48 10.18a.4.4 0 0 1 0-.56l2.53-2.36a.4.4 0 0 1 .55 0v.02Z"},null,-1)],il=o.defineComponent({__name:"CheckMarkIcon",props:{color:{type:String,default:"black"}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",style:o.normalizeStyle({fill:t.color}),viewBox:"0 0 16 16"},S5,4))}}),E5={class:"fge-step-progress"},T5={class:"fge-step-item-counter"},x5={class:"fge-step-content"},O5=o.defineComponent({__name:"FgeStepComponent",props:{showHeader:{type:Boolean,default:!0},currentStep:{type:Number,default:1},steps:{type:Array,default:()=>[]},stepPrimaryColor:{type:String,default:"#f28b0c"},stepIconColor:{type:String,default:"#fff"},containerClass:{type:String,default:""},headerClass:{type:String,default:""}},setup(t){const e=t,n=o.computed(()=>({"--stepPrimaryColor":e.stepPrimaryColor,"--stepIconColor":e.stepIconColor})),r=o.computed(()=>100/(e.steps.length-1)*(e.currentStep===0,e.currentStep)+"%");return(a,i)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(t.containerClass),style:o.normalizeStyle(n.value)},[t.showHeader?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["fge-step",t.headerClass])},[o.createElementVNode("div",E5,[o.createElementVNode("div",{class:"fge-step-progress-bar",style:o.normalizeStyle("width:"+r.value)},null,4)]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.steps,(s,l)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["fge-step-item",{current:e.currentStep>=l,success:e.currentStep>=l}]),key:l},[o.createElementVNode("div",T5,[o.createVNode(il,{class:"icon-success",color:t.stepIconColor,alt:"Check Mark"},null,8,["color"])])],2))),128))],2)):o.createCommentVNode("",!0),o.createElementVNode("div",x5,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.steps,(s,l)=>(o.openBlock(),o.createElementBlock("div",{key:l},[t.currentStep===l?o.renderSlot(a.$slots,s.name,{key:0},void 0,!0):o.createCommentVNode("",!0)]))),128))])],6))}}),R8="",tt=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},_r=tt(O5,[["__scopeId","data-v-f96ce043"]]),$e=({error:t,setErrors:e,toast:n})=>{var a;const r=(a=t==null?void 0:t.response)==null?void 0:a.validationErrors;if(t.message&&n.add({severity:"error",summary:"Error",detail:t.message,life:5e3,group:"auth_toast"}),r){let i={};for(const[s,l]of Object.entries(r))i={...i,[s]:l[0]};e(i);return}},Vr=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])(?=.{8,15})/),Cn=new RegExp(/^[0-9]+$/),I5=new RegExp(/^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/),ii=new RegExp(/^[a-zA-Z0-9]+$/),Sn=Ui("STATE_STORE",()=>{const t=o.ref("STATE_STORE"),e=o.ref(!1);return{id:t,isLoading:e,setLoading:r=>{e.value=r}}}),_5=()=>/iPhone|iPad|iPod|Android|webOS|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);function Pr(t="fge"){const e=o.ref({whatsapp:null,telegram:null,email:null}),n=me(),r=o.ref(),a=o.ref(),i=o.ref(),s=Si(),l=kt();o.onMounted(()=>{const h=La(t+"-estados");h&&(e.value={...JSON.parse(h)})});const c=(h,m=!0)=>(e.value[h]===null||typeof e.value[h]=="number"&&e.value[h]<Date.now())&&m?(e.value[h]=A.now().plus({minutes:2}).toMillis(),Ra({name:t+"-estados",value:JSON.stringify(e.value),seconds:120}),!0):!1,u=async({callbackApi:h,code:m,counterTime:p=120,abrirTelegramDialog:y=!0})=>{const k={contacto:a.value,medio:i.value,code:m};if(c(i.value)){try{console.log("?"),await h(k)}catch(x){l.add({severity:"error",summary:"Error!",detail:x.message,life:5e3,group:"auth_toast"})}o.nextTick(()=>{var x;(x=r.value)==null||x.reInit(p)})}else o.nextTick(()=>{o.nextTick(()=>{d(i.value)})});i.value==="telegram"&&y&&f()},d=h=>{var m;if(typeof e.value[h]=="number"&&e.value[h]>Date.now()){const p=Math.round(Math.abs(e.value[h]-Date.now())/1e3);(m=r.value)==null||m.reInit(p)}},f=()=>{s.require({header:"Confirmación vía Telegram",question:"Siga los siguientes pasos:",group:"auth_dialog",instructions:['Haz clic en el botón "Abrir" para abrir la página de Telegram.',"1. Inicia sesión en tu cuenta de Telegram.",'2. Presiona el botón "Comenzar" o "Start".','Ingrese "/start" en el chat si no encuentra el botón',"3. Copia el código en el formulario para completar el proceso de confirmación."],accept:()=>{if(_5()){const h=document.createElement("a");h.href=`tg://resolve?domain=${n.tgBot}`,h.target="_blank",h.onclick=function(){setTimeout(function(){if(document.visibilityState==="visible"){const m=window.open(`https://web.telegram.org/k/#@${n.tgBot}`,"_blank");m==null||m.focus()}h.remove()},1e3)},h.click()}else window.open(`https://web.telegram.org/k/#@${n.tgBot}`,"_blank")},acceptClass:"auth-btn-sm fge-button fge-auth-primary-button",acceptLabel:"Aceptar",acceptIcon:"hidden",rejectIcon:"hidden",rejectClass:"fge-button fge-secondary-button auth-btn-sm",rejectLabel:"Cerrar"})};return{refCounter:r,currentContacto:a,currentMedio:i,sePuedeReenviarMensaje:c,enviarMensaje:u}}function V5(){const{apiLoginInstance:t}=ur();return{onVerificarDatosRegistroApi:async i=>await t.post("/v1/validar/usuario",i).then(s=>s).catch(s=>{var l;throw(l=s.response)!=null&&l.data?s.response.data:s}),onRegistrarUsuarioApi:async i=>await t.post("/v1/registrar/usuario",i).then(s=>s).catch(s=>{var l;throw(l=s.response)!=null&&l.data?s.response.data:s}),onSolicitarCodigoVerificacionApi:async i=>await t.post("/v1/enviar/codigo/verificacion",i).then(s=>s).catch(s=>{var l;throw(l=s.response)!=null&&l.data?s.response.data:s}),onConfirmarCodigoVerificacionApi:async i=>await t.post("/v1/confirmar/codigo/verificacion",i).then(s=>s).catch(s=>{var l;throw(l=s.response)!=null&&l.data?s.response.data:s})}}function P5(){const t=[D.object().shape({ci:D.string().required().label("Cédula de identidad"),nombres:D.string().required().label("Nombre"),paterno:D.string().when("materno",([M])=>M?D.string().notRequired():D.string().required().label("Apellido paterno o materno")),materno:D.string().when("paterno",([M])=>M?D.string().notRequired():D.string().required().label("Apellido paterno o materno")),fechaNacimiento:D.mixed().required().label("Fecha de nacimiento")},[["materno","paterno"]]),D.object().shape({celular:D.string().required().matches(Cn).min(8).max(8).label("Celular"),email:D.string().email().notRequired().label("E-mail"),direccion:D.string().required().label("Dirección"),password:D.string().required().matches(Vr).min(8).max(15).label("Contraseña"),repetirPassword:D.string().required().oneOf([D.ref("password")]).label("Confirmación de la contraseña")}),D.object().shape({codigoContacto:D.string().required().matches(ii).max(10).label("Código")})],e=kt(),n=me(),r=Sn(),{onVerificarDatosRegistroApi:a,onSolicitarCodigoVerificacionApi:i,onConfirmarCodigoVerificacionApi:s,onRegistrarUsuarioApi:l}=V5(),c=o.ref([{name:"step1"},{name:"step2"},{name:"step3"}]),u=o.ref(0),d=o.computed(()=>t[u.value]),{refCounter:f,currentContacto:h,currentMedio:m,enviarMensaje:p}=Pr("registro"),y=o.reactive({verificadoEmail:!1,verificadoTelegram:!1,verificadoWhatsapp:!1}),{values:k,handleSubmit:x,errors:g,setErrors:b,validateField:T,resetForm:I,setFieldValue:O,setFieldError:w}=z.useForm({validationSchema:d,keepValuesOnUnmount:!0}),{value:N}=z.useField("fechaNacimiento"),_=o.ref();o.watch(()=>k.celular,()=>{(y.verificadoTelegram||y.verificadoWhatsapp)&&(y.verificadoTelegram=!1,y.verificadoWhatsapp=!1)}),o.watch(()=>k.email,()=>{y.verificadoEmail&&(y.verificadoEmail=!1)});const V=x(async M=>{var qe,Z,L;r.setLoading(!0);try{const X={ci:M.ci,nombres:(qe=M.nombres)==null?void 0:qe.trim(),paterno:(Z=M.paterno)==null?void 0:Z.trim(),materno:(L=M.materno)==null?void 0:L.trim(),fechaNacimiento:M.fechaNacimiento,aplicacion:n.aplicacion},pe=await a(X);u.value=u.value+1,O("codigoRegistro",pe.response.codigo)}catch(X){if(X.response&&Array.isArray(X.response)){$e({error:X.response,setErrors:b,toast:e});return}X.message&&e.add({severity:"error",summary:"Error",detail:X.message,life:5e3,group:"auth_toast"})}finally{r.setLoading(!1)}}),E=async({medio:M,contacto:qe})=>{if(M==="email"){if(!k.email){w("email","Email es requerido para verificar");return}const{valid:pe}=await T("email");if(!pe||y.verificadoEmail)return}const L=M==="telegram",X=M==="whatsapp";if(L||X){if(L&&y.verificadoTelegram||X&&y.verificadoWhatsapp)return;const{valid:pe}=await T("celular");if(!pe)return}try{m.value=M,h.value=qe,R(L),u.value=2}catch(pe){e.add({severity:"error",summary:"Error",detail:pe.message,life:5e3,group:"auth_toast"})}},B=async()=>{try{const{valid:M}=await T("codigoContacto");if(!M)return;const qe=await s({code_confirmacion:k.codigoContacto,code:k.codigoRegistro});e.add({severity:"success",summary:"Operación exitosa",detail:qe.message,life:5e3,group:"auth_toast"}),m.value==="email"?y.verificadoEmail=!0:m.value==="whatsapp"?y.verificadoWhatsapp=!0:m.value==="telegram"&&(y.verificadoTelegram=!0),u.value=u.value-1,O("codigoContacto",void 0),m.value=void 0,h.value=null}catch(M){e.add({severity:"error",summary:"Error",detail:M.message,life:5e3,group:"auth_toast"})}},R=async(M=!1)=>{p({callbackApi:i,code:k.codigoRegistro,abrirTelegramDialog:M,counterTime:120}),e.add({severity:"success",summary:"Operación realizada",detail:"Mensaje enviado!",life:5e3,group:"auth_toast"})},ue=()=>{u.value=1,O("codigoContacto",void 0)},ze=()=>{u.value=0,I()},Ze=x(async M=>{var qe,Z;r.setLoading(!0);try{const L={...M,email:(qe=M.email)==null?void 0:qe.trim(),direccion:(Z=M.direccion)==null?void 0:Z.trim(),aplicacion:n.aplicacion},X=await l(L);e.add({severity:"success",summary:"Operación realizada",detail:X.message,life:5e3,group:"auth_toast"}),r.setLoading(!1),n.goLoginPage()}catch(L){if(L.response&&Array.isArray(L.response)){$e({error:L.response,setErrors:b,toast:e});return}L.message&&e.add({severity:"error",summary:"Error",detail:L.message,life:5e3,group:"auth_toast"})}finally{r.setLoading(!1)}});return{refCounter:f,currentContacto:h,values:k,steps:c,currentStep:u,mediosVerificados:y,fechaNacimiento:N,calendarRef:_,errors:g,onValidarDatosUsuario:V,onRegistrarUsuario:Ze,onEnviarMensaje:R,onEnviarCodigoAlUsuario:E,onEnviarCodigoVerificacion:B,onCancelarVerificacion:ue,onCancelarRegistro:ze,clickCalendarBtn:()=>{var M;(M=_.value)==null||M.onButtonClick()}}}const N5={key:0,class:"fge-auth-error"},ee=o.defineComponent({__name:"FgeErrorMessage",props:{error:{required:!0}},setup(t){return(e,n)=>t.error?(o.openBlock(),o.createElementBlock("p",N5,o.toDisplayString(t.error),1)):o.createCommentVNode("",!0)}}),B5={key:0,class:"fge-gray-label"},M5=o.defineComponent({__name:"FgeButtonCounter",props:{reenviarMensaje:{type:Function,required:!0}},setup(t,{expose:e}){const n=t,r=o.ref(0),a=o.ref(),i=(l=5)=>{r.value=l,clearTimeout(a.value),s()},s=()=>{r.value>0&&(a.value=setTimeout(()=>{r.value-=1,s()},1e3))};return e({reInit:i}),(l,c)=>r.value?(o.openBlock(),o.createElementBlock("span",B5,"Reenviar código en "+o.toDisplayString(r.value)+" segundo(s)",1)):(o.openBlock(),o.createBlock(o.unref(q),{key:1,class:"fge-button fge-link-secondary-button",text:"",outlined:"",label:"Reenviar código",onClick:n.reenviarMensaje},null,8,["onClick"]))}}),D5={class:"flex flex-column"},$5={class:"formgrid grid grid-nogutter mb-40"},A5={class:"field col-12 text-left m-0"},Z5={class:"text-center mb-4"},L5={class:"fge-form-label text-center m-0"},R5=o.createElementVNode("label",{for:"codigo",class:"fge-form-label"},"Código:",-1),F5={key:0,class:"text-center mt-1"},j5={class:"formgrid grid grid-nogutter"},H5={class:"field col-12 flex justify-content-between gap-6 m-0"},Nr=o.defineComponent({__name:"FgeEnviarCodigo",props:{fieldName:{type:String,required:!0},currentContacto:{type:null,default:null,required:!0},error:{type:null,required:!0},cancelarText:{type:String,default:"Anterior"},aceptarText:{type:String,default:"Aceptar"},cancelarFunction:{type:Function,required:!1},aceptarFunction:{type:Function,required:!1},reenviarMensaje:{type:Function,required:!1},refCounter:{required:!0}},emits:["update:codigo","update:refCounter"],setup(t,{emit:e}){const n=o.ref();return o.watch(n,r=>{e("update:refCounter",r)}),(r,a)=>(o.openBlock(),o.createElementBlock("div",D5,[o.createElementVNode("div",$5,[o.createElementVNode("div",A5,[o.createElementVNode("div",Z5,[o.createElementVNode("p",L5,"Se envió un código a "+o.toDisplayString(t.currentContacto),1)]),R5,o.createVNode(o.unref(z.Field),{name:t.fieldName,id:"code",class:o.normalizeClass(["w-full fge-auth-input",{"fge-auth-input-invalid":t.error}]),as:o.unref(be)},null,8,["name","class","as"]),o.createVNode(ee,{error:t.error},null,8,["error"]),t.reenviarMensaje?(o.openBlock(),o.createElementBlock("div",F5,[o.createVNode(M5,{ref_key:"refBtnCounter",ref:n,reenviarMensaje:t.reenviarMensaje},null,8,["reenviarMensaje"])])):o.createCommentVNode("",!0)]),o.renderSlot(r.$slots,"inputs")]),o.createElementVNode("div",j5,[o.createElementVNode("div",H5,[t.cancelarFunction?(o.openBlock(),o.createBlock(o.unref(q),{key:0,title:"Volver",onClick:a[0]||(a[0]=()=>{var i;return(i=t.cancelarFunction)==null?void 0:i.call(t)}),label:t.cancelarText,class:"w-full fge-button fge-secondary-button"},null,8,["label"])):o.createCommentVNode("",!0),t.aceptarFunction?(o.openBlock(),o.createBlock(o.unref(q),{key:1,title:"Enviar código",label:t.aceptarText,onClick:a[1]||(a[1]=()=>{var i;return(i=t.aceptarFunction)==null?void 0:i.call(t)}),class:"w-full fge-button fge-auth-primary-button"},null,8,["label"])):o.createCommentVNode("",!0)])])]))}}),U5={},z5={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 231 222"},q5=[o.createStaticVNode('<path fill="#999" d="m1.46 213.06 3.16 7.56 3.17-7.56h.96v8.56h-.72v-3.73l.06-3.82-3.19 7.55h-.56l-3.18-7.52.06 3.77v3.75H.5v-8.56h.96ZM13.61 221.62h-.72v-8.56h.72v8.56ZM24.12 221.62h-.72l-4.92-7.33v7.33h-.73v-8.56h.73l4.93 7.33v-7.33h.72v8.56h-.01ZM28.98 221.62h-.72v-8.56h.72v8.56ZM37.96 219.52c0-.48-.17-.85-.5-1.13-.33-.28-.94-.54-1.83-.79-.89-.25-1.53-.52-1.94-.81-.58-.42-.87-.96-.87-1.64 0-.68.27-1.19.81-1.6.54-.41 1.23-.61 2.07-.61.57 0 1.08.11 1.53.33.45.22.8.53 1.04.92.25.39.37.83.37 1.31h-.73c0-.59-.2-1.06-.6-1.41-.4-.36-.94-.53-1.61-.53-.67 0-1.18.15-1.56.44-.39.29-.58.67-.58 1.15 0 .43.17.79.52 1.07s.91.52 1.67.73c.77.21 1.35.43 1.75.65.4.22.69.49.89.81.2.32.3.68.3 1.11 0 .68-.27 1.22-.81 1.62-.54.4-1.25.61-2.13.61-.6 0-1.16-.11-1.66-.32-.5-.21-.88-.52-1.15-.91-.27-.39-.39-.83-.39-1.33h.72c0 .6.23 1.08.68 1.43.45.35 1.05.52 1.8.52.67 0 1.2-.15 1.61-.44.4-.29.61-.68.61-1.17l-.01-.01ZM47.86 213.67h-2.93v7.95h-.72v-7.95h-2.93v-.61h6.59v.61h-.01ZM55.78 217.52h-4.01v3.5h4.61v.61h-5.33v-8.56h5.3v.61h-4.58v3.23h4.01v.61ZM62.91 218.06h-2.49v3.57h-.73v-8.56h2.78c.91 0 1.63.22 2.14.67.51.44.77 1.06.77 1.85 0 .55-.16 1.03-.48 1.45-.32.42-.75.71-1.29.87l2.14 3.65v.08h-.77l-2.07-3.57v-.01Zm-2.49-.61h2.22c.61 0 1.1-.18 1.46-.52.37-.34.55-.79.55-1.34 0-.6-.19-1.07-.58-1.41-.38-.33-.92-.5-1.62-.5h-2.04v3.77h.01ZM70.04 221.62h-.72v-8.56h.72v8.56ZM80.5 217.81c0 .79-.14 1.48-.41 2.08-.27.6-.66 1.05-1.17 1.37-.5.32-1.09.48-1.75.48-1 0-1.81-.36-2.42-1.07-.62-.72-.92-1.68-.92-2.9v-.88c0-.78.14-1.47.41-2.07.28-.6.67-1.07 1.17-1.39.5-.33 1.09-.49 1.75-.49.66 0 1.24.16 1.74.48.5.32.89.77 1.17 1.35.28.58.42 1.25.43 2.02v1.02Zm-.72-.93c0-1.03-.23-1.84-.7-2.42-.47-.58-1.1-.88-1.92-.88-.82 0-1.43.29-1.9.88-.47.59-.71 1.4-.71 2.46v.89c0 1.02.24 1.82.71 2.41.47.59 1.11.89 1.92.89.81 0 1.46-.29 1.92-.88.46-.59.69-1.4.69-2.45v-.91l-.01.01ZM89.59 218.14v3.49h-.72v-8.56h2.92c.89 0 1.59.23 2.11.68.52.45.77 1.08.77 1.88 0 .8-.25 1.42-.75 1.86-.5.44-1.21.66-2.15.66h-2.18v-.01Zm0-.61h2.19c.7 0 1.24-.17 1.6-.5.37-.33.55-.8.55-1.4 0-.6-.18-1.06-.55-1.41-.37-.35-.89-.53-1.56-.54h-2.24v3.85h.01ZM103.99 213.06v5.84c0 .58-.13 1.08-.38 1.51-.25.43-.6.75-1.06.98-.46.23-.98.34-1.57.34-.9 0-1.62-.25-2.17-.74-.54-.49-.82-1.17-.84-2.04v-5.9h.72v5.79c0 .72.21 1.28.62 1.68.41.4.97.6 1.68.6s1.26-.2 1.67-.6c.41-.4.61-.96.61-1.67v-5.8h.73l-.01.01Zm-2.26-2.32h.85l-1.36 1.65h-.62l1.12-1.65h.01ZM107.81 221.62v-8.56h2.53c.92 0 1.61.19 2.09.57.48.38.71.94.71 1.67 0 .44-.12.83-.36 1.16-.24.33-.57.56-.99.7.5.11.9.35 1.2.73.3.38.46.82.46 1.32 0 .75-.24 1.35-.73 1.77-.49.43-1.17.64-2.04.64H107.81Zm.72-4.72h1.98c.6-.01 1.07-.15 1.4-.42.33-.27.5-.67.5-1.19 0-.55-.17-.96-.51-1.22-.34-.26-.86-.39-1.56-.39h-1.81v3.23-.01Zm0 .61v3.5h2.17c.62 0 1.11-.16 1.47-.48.36-.31.54-.75.54-1.31 0-.53-.17-.94-.52-1.25-.35-.31-.83-.46-1.44-.46h-2.23.01ZM117.73 221.01h4.23v.61H117v-8.56h.73v7.95ZM126.03 221.62h-.72v-8.56h.72v8.56ZM136.23 218.95c-.1.9-.42 1.59-.97 2.07-.55.48-1.28.72-2.18.72-.64 0-1.2-.16-1.69-.48-.49-.31-.87-.77-1.13-1.35-.27-.58-.4-1.25-.41-2v-1.11c0-.76.13-1.44.4-2.03.27-.59.65-1.04 1.15-1.36.5-.32 1.07-.48 1.73-.48.92 0 1.64.25 2.17.74s.84 1.18.93 2.05h-.73c-.18-1.46-.97-2.18-2.37-2.18-.78 0-1.39.29-1.85.87-.46.58-.69 1.38-.69 2.41v1.05c0 .99.22 1.78.67 2.37.45.59 1.06.88 1.82.88s1.33-.18 1.71-.54c.38-.36.62-.91.71-1.63h.73ZM146.12 217.81c0 .79-.14 1.48-.41 2.08-.27.6-.66 1.05-1.17 1.37-.5.32-1.09.48-1.75.48-1 0-1.81-.36-2.42-1.07-.62-.72-.92-1.68-.92-2.9v-.88c0-.78.14-1.47.41-2.07.28-.6.67-1.07 1.17-1.39.5-.33 1.09-.49 1.75-.49.66 0 1.24.16 1.74.48.5.32.89.77 1.17 1.35.28.58.42 1.25.43 2.02v1.02Zm-.72-.93c0-1.03-.23-1.84-.7-2.42-.47-.58-1.1-.88-1.92-.88-.82 0-1.43.29-1.9.88-.47.59-.71 1.4-.71 2.46v.89c0 1.02.24 1.82.71 2.41.47.59 1.11.89 1.92.89.81 0 1.46-.29 1.92-.88.46-.59.69-1.4.69-2.45v-.91l-.01.01ZM154.49 221.62v-8.56h2.39c.7 0 1.33.16 1.89.48.56.32.99.78 1.3 1.37.31.59.47 1.27.47 2.03v.79c0 .77-.15 1.44-.46 2.04a3.33 3.33 0 0 1-1.31 1.37c-.56.32-1.21.48-1.94.48h-2.34Zm.72-7.95v7.34h1.62c.9 0 1.63-.3 2.17-.9.54-.6.82-1.41.82-2.43v-.75c0-.99-.27-1.78-.81-2.37-.54-.59-1.25-.89-2.12-.89h-1.68ZM168.91 217.52h-4.01v3.5h4.61v.61h-5.33v-8.56h5.3v.61h-4.58v3.23h4.01v.61ZM177.57 221.62v-8.56h2.53c.92 0 1.61.19 2.09.57.48.38.71.94.71 1.67 0 .44-.12.83-.36 1.16-.24.33-.57.56-.99.7.5.11.9.35 1.2.73.3.38.46.82.46 1.32 0 .75-.24 1.35-.73 1.77-.49.43-1.17.64-2.04.64H177.57Zm.72-4.72h1.98c.6-.01 1.07-.15 1.4-.42.33-.27.5-.67.5-1.19 0-.55-.17-.96-.51-1.22-.34-.26-.86-.39-1.56-.39h-1.81v3.23-.01Zm0 .61v3.5h2.17c.62 0 1.11-.16 1.47-.48.36-.32.54-.75.54-1.31 0-.53-.17-.94-.52-1.25-.35-.31-.83-.46-1.44-.46h-2.23.01ZM193.09 217.81c0 .79-.14 1.48-.41 2.08-.27.6-.66 1.05-1.17 1.37-.5.32-1.09.48-1.75.48-1 0-1.81-.36-2.42-1.07-.62-.72-.92-1.68-.92-2.9v-.88c0-.78.14-1.47.41-2.07.28-.6.67-1.07 1.17-1.39.5-.33 1.09-.49 1.75-.49.66 0 1.24.16 1.74.48.5.32.89.77 1.17 1.35.28.58.42 1.25.43 2.02v1.02Zm-.72-.93c0-1.03-.23-1.84-.7-2.42-.47-.58-1.1-.88-1.92-.88-.82 0-1.43.29-1.9.88-.47.59-.71 1.4-.71 2.46v.89c0 1.02.24 1.82.71 2.41.47.59 1.11.89 1.92.89.81 0 1.46-.29 1.92-.88.46-.59.69-1.4.69-2.45v-.91l-.01.01ZM197.45 221.01h4.23v.61h-4.96v-8.56h.73v7.95ZM205.75 221.62h-.72v-8.56h.72v8.56ZM212.47 220.56l.05.18.05-.18 2.69-7.5h.79l-3.19 8.56h-.69l-3.19-8.56h.79l2.69 7.5h.01ZM220 221.62h-.72v-8.56h.72v8.56ZM228.86 219.22h-3.89l-.88 2.41h-.76l3.24-8.56h.69l3.24 8.56h-.75l-.89-2.41Zm-3.66-.61h3.43l-1.72-4.67-1.72 4.67h.01Z"></path><path fill="#F29512" d="M14.27 169.66h-8.7v7.33H15.8v4.04H.5v-25.9h15.26v4.04H5.57v6.46h8.7v4.04-.01ZM34.67 172.69l.05.11c.02 2.85-.65 4.99-2.03 6.44-1.38 1.45-3.4 2.17-6.08 2.17s-4.82-.82-6.42-2.46c-1.6-1.64-2.4-3.97-2.4-6.98v-7.74c0-3 .77-5.33 2.32-6.98 1.55-1.65 3.62-2.48 6.22-2.48 2.75 0 4.83.74 6.23 2.21 1.4 1.47 2.13 3.65 2.18 6.53l-.05.11h-4.87c.07-1.7-.16-2.93-.69-3.68-.53-.75-1.46-1.13-2.79-1.13-1.14 0-2.01.44-2.61 1.34-.6.89-.91 2.24-.91 4.04v7.78c0 1.83.32 3.19.97 4.08.65.89 1.59 1.33 2.84 1.33 1.25 0 2.07-.35 2.55-1.06.48-.71.69-1.91.63-3.62h4.87l-.01-.01ZM55.23 171.73c0 3.04-.82 5.41-2.47 7.12-1.65 1.71-3.84 2.56-6.58 2.56s-4.93-.85-6.56-2.56-2.45-4.08-2.45-7.12v-7.26c0-3.02.82-5.4 2.45-7.12 1.63-1.72 3.82-2.59 6.55-2.59s4.92.86 6.58 2.59c1.66 1.73 2.49 4.1 2.49 7.12v7.26h-.01Zm-5.03-7.31c0-1.86-.34-3.26-1.03-4.2-.69-.95-1.69-1.42-3.01-1.42-1.32 0-2.32.47-2.99 1.41-.67.94-1 2.34-1 4.21v7.31c0 1.88.34 3.29 1.01 4.23.67.94 1.67 1.41 2.99 1.41 1.32 0 2.3-.47 2.99-1.41.69-.94 1.03-2.35 1.03-4.23v-7.31h.01ZM70.03 174.27c0-1.01-.26-1.81-.78-2.39-.52-.58-1.44-1.17-2.76-1.73-2.69-.94-4.71-2-6.06-3.19-1.35-1.19-2.02-2.86-2.02-5.01s.78-3.85 2.35-5.19c1.57-1.34 3.56-2 5.99-2s4.47.74 6.01 2.23 2.29 3.36 2.24 5.63l-.04.11h-4.91c0-1.19-.3-2.15-.89-2.88-.59-.73-1.43-1.1-2.51-1.1-1.01 0-1.79.31-2.36.92-.57.61-.84 1.38-.84 2.3 0 .85.31 1.56.94 2.11.63.55 1.72 1.17 3.27 1.84 2.45.83 4.3 1.88 5.54 3.16 1.24 1.28 1.86 3 1.86 5.17s-.75 4-2.24 5.27c-1.49 1.27-3.48 1.9-5.96 1.9s-4.6-.72-6.41-2.16c-1.81-1.44-2.68-3.51-2.62-6.2l.04-.11h4.93c0 1.6.34 2.75 1.01 3.45.67.7 1.7 1.05 3.06 1.05 1.07 0 1.86-.28 2.37-.85s.77-1.34.77-2.31l.02-.02ZM83.55 181.03h-5.03v-25.9h5.03v25.9ZM99.26 174.27c0-1.01-.26-1.81-.78-2.39-.52-.58-1.44-1.17-2.76-1.73-2.69-.94-4.71-2-6.06-3.19-1.35-1.19-2.02-2.86-2.02-5.01s.78-3.85 2.35-5.19c1.57-1.34 3.56-2 5.99-2s4.47.74 6.01 2.23 2.29 3.36 2.24 5.63l-.04.11h-4.91c0-1.19-.3-2.15-.89-2.88-.59-.73-1.43-1.1-2.51-1.1-1.01 0-1.79.31-2.36.92-.57.61-.84 1.38-.84 2.3 0 .85.31 1.56.94 2.11.63.55 1.72 1.17 3.27 1.84 2.45.83 4.3 1.88 5.54 3.16 1.24 1.28 1.86 3 1.86 5.17s-.75 4-2.24 5.27c-1.49 1.27-3.48 1.9-5.96 1.9s-4.6-.72-6.41-2.16c-1.81-1.44-2.68-3.51-2.62-6.2l.04-.11h4.93c0 1.6.34 2.75 1.01 3.45.67.7 1.7 1.05 3.06 1.05 1.07 0 1.86-.28 2.37-.85s.77-1.34.77-2.31l.02-.02ZM122.72 159.17h-5.83v21.86h-5.05v-21.86h-5.8v-4.04h16.69v4.04h-.01ZM138.93 169.66h-8.7v7.33h10.23v4.04h-15.3v-25.9h15.26v4.04h-10.19v6.46h8.7v4.04-.01ZM149.56 155.13l4.64 19.02h.11l4.7-19.02h6.6v25.9h-5.03v-7.52l.43-10.07-.11-.02-4.95 17.61h-3.36l-4.89-17.47-.11.02.44 9.93v7.52H143v-25.9h6.56ZM181.4 175.5h-6.83l-1.39 5.53h-5.11l7.29-25.9h5.27l7.28 25.9h-5.11l-1.41-5.53h.01Zm-5.8-4.04h4.77l-2.33-9.16h-.11l-2.33 9.16Z"></path><path fill="gray" d="M207.04 155.13h5.03v18c0 2.54-.71 4.55-2.14 6.04-1.43 1.49-3.23 2.23-5.4 2.23-2.35 0-4.21-.66-5.58-1.99s-2.03-3.28-1.98-5.87l.05-.11h4.93c0 1.36.24 2.36.72 2.99.48.63 1.1.94 1.86.94.69 0 1.28-.37 1.77-1.12.49-.75.74-1.78.74-3.11v-18ZM221.04 176.99h9.46v4.04h-14.53v-25.9h5.07v21.86ZM7.95 189.19h1.98v10.57c0 1.43-.43 2.55-1.29 3.35-.86.81-2 1.21-3.43 1.21-1.43 0-2.64-.38-3.47-1.14-.83-.76-1.24-1.82-1.24-3.19h1.97c0 .85.23 1.52.7 2s1.15.72 2.04.72c.81 0 1.47-.26 1.97-.77s.76-1.23.76-2.15v-10.6h.01ZM30.09 189.19v10.15c0 1.41-.45 2.56-1.33 3.46-.88.9-2.07 1.4-3.57 1.51l-.52.02c-1.63 0-2.94-.44-3.91-1.32-.97-.88-1.46-2.1-1.48-3.64V189.2h1.95v10.11c0 1.08.3 1.92.89 2.52.59.6 1.44.9 2.54.9s1.97-.3 2.56-.89c.59-.59.89-1.43.89-2.51v-10.12h1.98v-.02ZM43.9 197.47c-1.69-.49-2.92-1.08-3.69-1.79s-1.15-1.58-1.15-2.62c0-1.18.47-2.15 1.41-2.92s2.16-1.15 3.67-1.15c1.03 0 1.94.2 2.74.59.8.4 1.42.94 1.87 1.64.44.7.66 1.46.66 2.29h-1.98c0-.91-.29-1.62-.86-2.14-.57-.52-1.38-.78-2.43-.78-.97 0-1.73.21-2.27.64-.54.43-.81 1.02-.81 1.78 0 .61.26 1.13.77 1.55.51.42 1.39.81 2.64 1.16 1.24.35 2.21.73 2.91 1.15.7.42 1.22.91 1.56 1.47.34.56.51 1.22.51 1.98 0 1.21-.47 2.18-1.42 2.91s-2.21 1.09-3.78 1.09c-1.03 0-1.98-.2-2.87-.59-.89-.39-1.57-.93-2.06-1.62-.48-.68-.72-1.46-.72-2.33h1.98c0 .9.33 1.62 1 2.14.67.52 1.56.78 2.67.78 1.04 0 1.84-.21 2.39-.64.55-.43.83-1 .83-1.73s-.26-1.3-.77-1.7c-.51-.4-1.44-.79-2.79-1.18l-.01.02ZM68.58 190.8h-4.8v13.32h-1.96V190.8h-4.79v-1.61h11.55v1.61ZM79.21 204.12h-1.97v-14.93h1.97v14.93ZM100.09 199.38c-.18 1.58-.77 2.8-1.75 3.66-.98.86-2.29 1.29-3.91 1.29-1.76 0-3.18-.63-4.24-1.9-1.06-1.26-1.6-2.96-1.6-5.08v-1.44c0-1.39.25-2.61.74-3.66.49-1.05 1.2-1.86 2.11-2.43.91-.57 1.96-.85 3.16-.85 1.59 0 2.86.44 3.82 1.33.96.89 1.51 2.11 1.67 3.68h-1.98c-.17-1.19-.54-2.06-1.11-2.59-.57-.54-1.37-.8-2.4-.8-1.26 0-2.24.47-2.96 1.4-.72.93-1.07 2.25-1.07 3.97v1.45c0 1.62.34 2.91 1.02 3.87.68.96 1.62 1.44 2.84 1.44 1.09 0 1.93-.25 2.52-.74.59-.5.97-1.36 1.16-2.59h1.98v-.01ZM111.2 204.12h-1.97v-14.93h1.97v14.93ZM129.53 200.22h-6.26l-1.41 3.91h-2.03l5.7-14.93h1.72l5.71 14.93h-2.02l-1.43-3.91h.02Zm-5.66-1.61h5.08l-2.54-6.98-2.53 6.98h-.01ZM154.76 202.51h7.08v1.61h-9.06v-14.93h1.98v13.32ZM172.5 204.12h-1.97v-14.93h1.97v14.93ZM182.4 204.12v-14.93h4.88c1.62 0 2.84.34 3.66 1.01.82.67 1.23 1.66 1.23 2.97 0 .7-.2 1.31-.59 1.85-.39.54-.94.95-1.62 1.25.81.23 1.44.65 1.91 1.29s.7 1.39.7 2.26c0 1.34-.43 2.39-1.3 3.16-.87.77-2.1 1.15-3.68 1.15h-5.18l-.01-.01Zm1.97-8.56h2.97c.86 0 1.55-.22 2.07-.65.52-.43.77-1.02.77-1.76 0-.82-.24-1.42-.72-1.79-.48-.37-1.21-.56-2.18-.56h-2.91v4.76Zm0 1.58v5.37h3.25c.92 0 1.64-.24 2.17-.71s.8-1.13.8-1.96c0-1.8-.98-2.7-2.93-2.7H184.37ZM207.26 198.08h-3.51v6.04h-1.98v-14.93h4.94c1.68 0 2.98.38 3.88 1.15.91.77 1.36 1.88 1.36 3.34 0 .93-.25 1.74-.75 2.43-.5.69-1.2 1.21-2.1 1.55l3.51 6.34v.12h-2.11l-3.24-6.04Zm-3.51-1.61h3.03c.98 0 1.76-.25 2.33-.76.58-.51.87-1.18.87-2.03 0-.92-.28-1.63-.83-2.13-.55-.5-1.34-.74-2.38-.75h-3.02v5.67ZM229.45 197.22h-6.47v5.29h7.52v1.61h-9.49v-14.93h9.38v1.61h-7.41v4.81h6.47v1.61Z"></path><path fill="#F29512" d="M115.5.26c-35.29 0-63.89 28.6-63.89 63.89 0 10.88 2.72 21.13 7.52 30.1 1.54 1.2 3.12 2.34 4.75 3.42 12.78 8.46 27.88 13.06 43.32 13.06 5.93 0 11.91-.68 17.83-2.08 1.67-.39 3.33-.84 4.98-1.35 1.18-.36 2.36-.75 3.53-1.17 1.33-.48 2.66-1 3.98-1.55.56-.24 1.12-.48 1.67-.73a3.11 3.11 0 0 1-.12-.81c0-1.76 1.43-3.19 3.19-3.19s3.19 1.43 3.19 3.19-1.43 3.19-3.19 3.19c-.73 0-1.4-.26-1.94-.67l.04.09c-1.15.52-2.31 1.01-3.47 1.48a80.35 80.35 0 0 1-14.66 4.3l-.78.15a80.14 80.14 0 0 1-14.27 1.29c-15.87 0-31.37-4.73-44.5-13.42-.29-.19-.57-.4-.86-.59 11.38 17.57 31.16 29.19 53.65 29.19 35.29 0 63.89-28.6 63.89-63.89S150.76.27 115.47.27l.03-.01Zm3.4 14.79c4.9 0 8.86 3.97 8.86 8.86 0 4.9-3.97 8.86-8.86 8.86-4.9 0-8.86-3.97-8.86-8.86 0-4.9 3.97-8.86 8.86-8.86ZM90.85 89.53c-2.53-.82-4.87-2.12-6.81-3.89a16.944 16.944 0 0 1-4.43-6.48c-.96-2.47-1.38-5.14-1.38-7.91 0-3.03 2.46-5.48 5.48-5.48 3.02 0 5.49 2.46 5.49 5.48 0 1.68.25 2.97.63 3.94.39.98.87 1.68 1.58 2.33.73.66 1.6 1.18 2.82 1.58 1.21.39 2.78.65 4.73.64 2.11 0 3.78-.42 5.3-1.21 1.5-.79 2.47-1.72 3.28-3.06.77-1.33 1.18-2.77 1.19-4.74V40.37c0-3.03 2.46-5.48 5.48-5.48 3.02 0 5.48 2.46 5.48 5.48v30.36c.01 3.66-.88 7.24-2.72 10.33-1.8 3.07-4.48 5.57-7.66 7.21-3.16 1.65-6.71 2.45-10.35 2.44-2.87 0-5.58-.36-8.12-1.18h.01Zm61.49-2.17c-.28.66-.68 1.25-1.17 1.74-.5.5-1.09.9-1.74 1.18-.33.14-.67.24-1.03.32-.36.07-.73.11-1.11.11h-43.6.07c3.64 0 7.2-.79 10.35-2.44 3.18-1.64 5.86-4.14 7.66-7.21 1.84-3.09 2.73-6.67 2.72-10.33V40.37c0-2.09-1.18-3.88-2.9-4.81.77-.42 1.64-.68 2.59-.68 3.03 0 5.48 2.46 5.48 5.48v30.81c.07 1.74.46 3.07 1.17 4.29.81 1.34 1.78 2.27 3.28 3.06 1.31.68 2.74 1.06 4.45 1.16v.05h8.73a5.492 5.492 0 0 1 5.49 5.49c0 .76-.15 1.48-.43 2.13l-.01.01Z"></path><path fill="#F29512" d="M118.9 29.94c1.67 0 3.17-.67 4.26-1.76a5.991 5.991 0 0 0 1.76-4.26c0-1.67-.67-3.17-1.76-4.26a5.991 5.991 0 0 0-4.26-1.76c-1.67 0-3.17.67-4.26 1.76a5.991 5.991 0 0 0-1.76 4.26c0 1.67.67 3.17 1.76 4.26a5.991 5.991 0 0 0 4.26 1.76Z"></path>',5)];function W5(t,e){return o.openBlock(),o.createElementBlock("svg",z5,q5)}const K5=tt(U5,[["render",W5]]),Y5={class:"fge-logo-container"},G5=o.defineComponent({__name:"FgeHeader",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",Y5,[o.createVNode(K5)]))}}),j8="",ai=tt(G5,[["__scopeId","data-v-9acac71f"]]),J5={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 35 35"},X5=[o.createElementVNode("path",{stroke:"currentColor","stroke-width":"2",d:"M34 17.5C34 26.613 26.613 34 17.5 34S1 26.613 1 17.5 8.387 1 17.5 1 34 8.387 34 17.5Z",class:"stroke-content"},null,-1),o.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M26 15.57v7.41a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2V12.5c0-.83.67-1.5 1.5-1.5H26l-.62.605",class:"stroke-content"},null,-1),o.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m25.38 11.646-8.38 6.8-8.345-6.8",class:"stroke-content"},null,-1)];function Q5(t,e){return o.openBlock(),o.createElementBlock("svg",J5,X5)}const al={render:Q5},e6={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 33 32"},t6=[o.createElementVNode("path",{stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"2",d:"M16.95 31a15 15 0 1 0 0-30 15 15 0 0 0 0 30Z",class:"stroke-content"},null,-1),o.createElementVNode("path",{fill:"currentColor",d:"M24.25 9.91c-.06-.17-.13-.21-.23-.25-.23-.09-.63.04-.63.04S9.37 14.74 8.57 15.3c-.17.12-.23.19-.26.27-.14.4.29.57.29.57l3.61 1.18s.13.02.18-.01c.82-.52 8.27-5.22 8.7-5.38.07-.02.12 0 .1.05-.17.6-6.64 6.35-6.64 6.35l-.04.07-.34 3.58s-.14 1.1.96 0c.77-.77 1.52-1.42 1.9-1.74 1.24.86 2.58 1.81 3.16 2.3.29.25.53.29.73.28.55-.02.7-.62.7-.62s2.55-10.28 2.64-11.66l.02-.31c0-.13-.01-.26-.03-.32Z",class:"fill-content"},null,-1)];function n6(t,e){return o.openBlock(),o.createElementBlock("svg",e6,t6)}const sl={render:n6},r6={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 33 32"},o6=[o.createElementVNode("path",{stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"2",d:"M16.38 31a15 15 0 1 0 0-30 15 15 0 0 0 0 30Z",class:"stroke-content"},null,-1),o.createElementVNode("path",{stroke:"currentColor",d:"M23.59 8.97A9.54 9.54 0 0 0 8.61 20.45l-1.35 4.93 5.04-1.32A9.54 9.54 0 0 0 23.59 8.98v-.01Zm-6.73 14.64a7.92 7.92 0 0 1-4.03-1.1l-.29-.17-2.99.78.8-2.92-.19-.3a7.9 7.9 0 1 1 6.69 3.7l.01.01Zm4.34-5.92c-.24-.12-1.41-.69-1.62-.77-.22-.08-.38-.12-.53.12-.16.24-.61.77-.75.93-.14.16-.28.18-.52.06s-1-.37-1.91-1.18a7.02 7.02 0 0 1-1.32-1.65c-.14-.24-.01-.37.1-.49.11-.11.24-.28.36-.42.12-.14.16-.24.24-.4.08-.16.04-.3-.02-.42l-.73-1.76c-.19-.46-.39-.4-.53-.41h-.46a.85.85 0 0 0-.63.3c-.22.24-.83.81-.83 1.98s.85 2.3.97 2.46c.12.16 1.68 2.56 4.06 3.59.57.24 1.01.39 1.36.5.57.18 1.09.16 1.5.09.46-.07 1.41-.58 1.6-1.13.2-.56.2-1.03.14-1.13-.06-.1-.22-.16-.46-.28l-.02.01Z",class:"stroke-content","clip-rule":"evenodd"},null,-1)];function i6(t,e){return o.openBlock(),o.createElementBlock("svg",r6,o6)}const ll={render:i6},a6={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 26 27"},s6=[o.createElementVNode("path",{stroke:"#F29512","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17.879 1.109V6.63M8.109 1.11V6.63m13.357-1.705h1.068c1.056 0 1.909.93 1.909 2.087V23.83c0 1.157-.853 2.086-1.909 2.086H3.452c-1.056 0-1.908-.929-1.908-2.086V7.012c0-1.158.852-2.087 1.908-2.087h14.02"},null,-1),o.createElementVNode("path",{stroke:"#F29512","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"3",d:"M8.108 12.953v-.026m0 4.987v-.025m4.898-4.936-.025-.026m.025 4.987-.025-.025m4.898-4.936v-.026m0 4.987v-.025"},null,-1)];function l6(t,e){return o.openBlock(),o.createElementBlock("svg",a6,s6)}const c6={render:l6},Ve=t=>(o.pushScopeId("data-v-20bd75a1"),t=t(),o.popScopeId(),t),u6={class:"fge-right-container"},d6={class:"formgrid grid grid-nogutter"},f6={class:"field col-12 text-left"},m6=Ve(()=>o.createElementVNode("label",{for:"nombres",class:"fge-form-label"},"Nombres:",-1)),h6={class:"field col-12 text-left"},p6=Ve(()=>o.createElementVNode("label",{for:"paterno",class:"fge-form-label"},"Primer Apellido:",-1)),g6={class:"field col-12 text-left"},y6=Ve(()=>o.createElementVNode("label",{for:"materno",class:"fge-form-label"},"Segundo Apellido:",-1)),b6={class:"field col-12 text-left"},v6=Ve(()=>o.createElementVNode("label",{for:"fechaNacimiento",class:"fge-form-label"},"Fecha de Nacimiento:",-1)),w6={class:"relative fixed-height"},k6={class:"field col-12 text-left mb-0"},C6=Ve(()=>o.createElementVNode("label",{for:"ci",class:"fge-form-label"},"Cédula de Identidad:",-1)),S6={class:"flex flex-column fge-btn-section"},E6=Ve(()=>o.createElementVNode("div",{class:"px-1"},[o.createElementVNode("i",{class:"fge-horizontal-line"})],-1)),T6={class:"formgrid grid grid-nogutter"},x6={class:"field col-12 flex justify-content-between gap-6 mb-0"},O6={class:"formgrid grid grid-nogutter"},I6={class:"field col-12 text-left"},_6=Ve(()=>o.createElementVNode("label",{for:"celular",class:"fge-form-label"},"Celular:",-1)),V6={class:"relative"},P6={class:"field col-12 text-left"},N6=Ve(()=>o.createElementVNode("label",{for:"email",class:"fge-form-label"},"E-mail:",-1)),B6={class:"relative"},M6={class:"field col-12 text-left"},D6=Ve(()=>o.createElementVNode("label",{for:"fge_dr",class:"fge-form-label"},"Dirección:",-1)),$6={class:"field col-12 text-left"},A6=Ve(()=>o.createElementVNode("label",{for:"fge_new_password",class:"fge-form-label"},"Co­ntra­seña:",-1)),Z6={class:"field col-12 text-left mb-0"},L6=Ve(()=>o.createElementVNode("label",{for:"fge_contra_rep",class:"fge-form-label"},"Repetir con­t­ras­eña:",-1)),R6={class:"flex flex-column fge-btn-section"},F6=Ve(()=>o.createElementVNode("div",{class:"px-1"},[o.createElementVNode("i",{class:"fge-horizontal-line"})],-1)),j6={class:"formgrid grid grid-nogutter"},H6={class:"field col-12 flex justify-content-between gap-6 mb-0"},U6=o.defineComponent({__name:"FgeRegistrarPage",setup(t){const{values:e,refCounter:n,currentContacto:r,fechaNacimiento:a,steps:i,currentStep:s,mediosVerificados:l,calendarRef:c,errors:u,onValidarDatosUsuario:d,onCancelarRegistro:f,onRegistrarUsuario:h,onEnviarMensaje:m,onEnviarCodigoAlUsuario:p,onEnviarCodigoVerificacion:y,onCancelarVerificacion:k,clickCalendarBtn:x}=P5(),g=me(),b=O=>{var w;O&&(w=O.target)!=null&&w.value&&(I(O.target.value)||(O.target.value="dd/mm/yyyy",a.value=void 0))},T=o.computed({get(){return A.fromJSDate(a.value).toFormat("dd/MM/yyyy")},set(O){I(O)}}),I=O=>{const w=A.fromFormat(O,"dd/MM/yyyy");return w.isValid&&(a.value=w.toJSDate()),w.isValid};return(O,w)=>{const N=o.resolveDirective("tooltip");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(ai),o.createElementVNode("div",u6,[o.createVNode(_r,{currentStep:o.unref(s),steps:o.unref(i),showHeader:!1},{step1:o.withCtx(()=>[o.createElementVNode("div",d6,[o.createElementVNode("div",f6,[m6,o.createVNode(o.unref(z.Field),{name:"nombres",id:"nombres",class:o.normalizeClass(["w-full fge-auth-input uppercase",{"fge-auth-input-invalid":o.unref(u).nombres}]),as:o.unref(be)},null,8,["class","as"]),o.createVNode(ee,{error:o.unref(u).nombres},null,8,["error"])]),o.createElementVNode("div",h6,[p6,o.createVNode(o.unref(z.Field),{name:"paterno",id:"paterno",class:o.normalizeClass(["w-full fge-auth-input uppercase",{"fge-auth-input-invalid":o.unref(u).paterno}]),as:o.unref(be)},null,8,["class","as"]),o.createVNode(ee,{error:o.unref(u).paterno},null,8,["error"])]),o.createElementVNode("div",g6,[y6,o.createVNode(o.unref(z.Field),{name:"materno",id:"materno",class:o.normalizeClass(["w-full fge-auth-input uppercase",{"fge-auth-input-invalid":o.unref(u).materno}]),as:o.unref(be)},null,8,["class","as"]),o.createVNode(ee,{error:o.unref(u).materno},null,8,["error"])]),o.createElementVNode("div",b6,[v6,o.createElementVNode("div",w6,[o.createVNode(o.unref(Ms),{modelValue:T.value,"onUpdate:modelValue":w[0]||(w[0]=_=>T.value=_),placeholder:"dd/mm/yyyy",mask:"99/99/9999",slotChar:"dd/mm/yyyy",onBlur:b,onKeydown:o.withKeys(b,["enter"]),class:o.normalizeClass(["w-full fge-auth-input text-center",{"fge-auth-input-invalid":o.unref(u).fechaNacimiento}])},null,8,["modelValue","onKeydown","class"]),o.createVNode(o.unref(q),{class:"auth-calendar-btn",onClick:o.unref(x),text:"",rounded:""},{default:o.withCtx(()=>[o.createVNode(o.unref(c6))]),_:1},8,["onClick"]),o.createVNode(o.unref(_s),{dateFormat:"dd/mm/yy",class:"w-full hide-calendar",maxDate:new Date,modelValue:o.unref(a),"onUpdate:modelValue":w[1]||(w[1]=_=>o.isRef(a)?a.value=_:null),showOnFocus:!1,ref_key:"calendarRef",ref:c,onHide:w[2]||(w[2]=_=>b(o.unref(a)))},null,8,["maxDate","modelValue"])]),o.createVNode(ee,{error:o.unref(u).fechaNacimiento},null,8,["error"])]),o.createElementVNode("div",k6,[C6,o.createVNode(o.unref(z.Field),{name:"ci",id:"ci",class:o.normalizeClass(["w-full fge-auth-input",{"fge-auth-input-invalid":o.unref(u).ci}]),as:o.unref(be)},null,8,["class","as"]),o.createVNode(ee,{error:o.unref(u).ci},null,8,["error"])])]),o.createElementVNode("div",S6,[E6,o.createElementVNode("div",T6,[o.createElementVNode("div",x6,[o.createVNode(o.unref(q),{title:"Ir al login",label:"Ir al login",onClick:o.unref(g).goLoginPage,class:"w-full fge-button fge-secondary-button"},null,8,["onClick"]),o.createVNode(o.unref(q),{title:"Siguiente paso",label:"Siguiente",onClick:o.unref(d),class:"w-full fge-button fge-auth-primary-button"},null,8,["onClick"])])])])]),step2:o.withCtx(()=>[o.createElementVNode("div",O6,[o.createElementVNode("div",I6,[_6,o.createElementVNode("div",V6,[o.createVNode(o.unref(z.Field),{name:"celular",id:"celular",class:o.normalizeClass(["w-full fge-auth-input pr-7",{"fge-auth-input-invalid":o.unref(u).celular}]),as:o.unref(be)},null,8,["class","as"]),o.withDirectives((o.openBlock(),o.createBlock(o.unref(q),{title:"Verificar whatsapp",class:"p-2 fge-button absolute btn-absolute",onClick:w[3]||(w[3]=_=>o.unref(p)({medio:"whatsapp",contacto:o.unref(e).celular})),text:"",rounded:"",outlined:""},{default:o.withCtx(()=>[o.createVNode(o.unref(ll),{class:o.normalizeClass({"svg-primary":o.unref(l).verificadoWhatsapp,"svg-gray":!o.unref(l).verificadoWhatsapp})},null,8,["class"])]),_:1})),[[N,o.unref(l).verificadoWhatsapp?"Verificado":"Verificar",void 0,{left:!0}]]),o.withDirectives((o.openBlock(),o.createBlock(o.unref(q),{title:"Verificar telegram",class:"p-2 fge-button absolute btn-absolute-2",onClick:w[4]||(w[4]=_=>o.unref(p)({medio:"telegram",contacto:o.unref(e).celular})),text:"",rounded:"",outlined:""},{default:o.withCtx(()=>[o.createVNode(o.unref(sl),{class:o.normalizeClass({"svg-primary":o.unref(l).verificadoTelegram,"svg-gray":!o.unref(l).verificadoTelegram})},null,8,["class"])]),_:1})),[[N,o.unref(l).verificadoTelegram?"Verificado":"Verificar",void 0,{left:!0}]])]),o.createVNode(ee,{error:o.unref(u).celular},null,8,["error"])]),o.createElementVNode("div",P6,[N6,o.createElementVNode("div",B6,[o.createVNode(o.unref(z.Field),{name:"email",id:"email",class:o.normalizeClass(["w-full fge-auth-input pr-5",{"fge-auth-input-invalid":o.unref(u).email}]),as:o.unref(be)},null,8,["class","as"]),o.withDirectives((o.openBlock(),o.createBlock(o.unref(q),{title:"Verificar email",onClick:w[5]||(w[5]=_=>o.unref(p)({medio:"email",contacto:o.unref(e).email})),class:"p-2 fge-button absolute btn-absolute",text:"",rounded:"",outlined:""},{default:o.withCtx(()=>[o.createVNode(o.unref(al),{class:o.normalizeClass({"svg-primary":o.unref(l).verificadoEmail,"svg-gray":!o.unref(l).verificadoEmail})},null,8,["class"])]),_:1})),[[N,o.unref(l).verificadoEmail?"Verificado":"Verificar",void 0,{left:!0}]])]),o.createVNode(ee,{error:o.unref(u).email},null,8,["error"])]),o.createElementVNode("div",M6,[D6,o.createVNode(o.unref(z.Field),{name:"direccion",id:"fge_dr",class:o.normalizeClass(["w-full fge-auth-input",{"fge-auth-input-invalid":o.unref(u).direccion}]),as:o.unref(be)},null,8,["class","as"]),o.createVNode(ee,{error:o.unref(u).direccion},null,8,["error"])]),o.createElementVNode("div",$6,[A6,o.createVNode(o.unref(z.Field),{name:"password"},{default:o.withCtx(({field:_})=>[o.createVNode(o.unref(Xe),o.mergeProps({id:"fge_new_password",class:"w-full fge-orange-icon",inputClass:{"fge-auth-input-invalid":o.unref(u).password,"fge-auth-input":!0},feedback:!1,onKeyup:o.withKeys(o.unref(h),["enter"]),toggleMask:""},_,{modelValue:_.value}),null,16,["inputClass","onKeyup","modelValue"])]),_:1}),o.createVNode(ee,{error:o.unref(u).password},null,8,["error"])]),o.createElementVNode("div",Z6,[L6,o.createVNode(o.unref(z.Field),{name:"repetirPassword"},{default:o.withCtx(({field:_})=>[o.createVNode(o.unref(Xe),o.mergeProps({id:"fge_contra_rep",class:"w-full fge-orange-icon",inputClass:{"fge-auth-input-invalid":o.unref(u).repetirPassword,"fge-auth-input":!0},feedback:!1,onKeyup:o.withKeys(o.unref(h),["enter"]),toggleMask:""},_,{modelValue:_.value}),null,16,["inputClass","onKeyup","modelValue"])]),_:1}),o.createVNode(ee,{error:o.unref(u).repetirPassword},null,8,["error"])])]),o.createElementVNode("div",R6,[F6,o.createElementVNode("div",j6,[o.createElementVNode("div",H6,[o.createVNode(o.unref(q),{title:"Ir atras",label:"Anterior",onClick:o.unref(f),class:"w-full fge-button fge-secondary-button"},null,8,["onClick"]),o.createVNode(o.unref(q),{title:"Registrar usuario",label:"Registrar",onClick:o.unref(h),class:"w-full fge-button fge-auth-primary-button"},null,8,["onClick"])])])])]),step3:o.withCtx(()=>[o.createVNode(Nr,{fieldName:"codigoContacto",refCounter:o.unref(n),"onUpdate:refCounter":w[6]||(w[6]=_=>o.isRef(n)?n.value=_:null),error:o.unref(u).codigoContacto,currentContacto:o.unref(r),cancelarFunction:o.unref(k),aceptarFunction:o.unref(y),reenviarMensaje:()=>o.unref(m)()},null,8,["refCounter","error","currentContacto","cancelarFunction","aceptarFunction","reenviarMensaje"])]),_:1},8,["currentStep","steps"])])],64)}}}),X8="",z6=tt(U6,[["__scopeId","data-v-20bd75a1"]]),q6={class:"footer"},W6={class:"fge-version-label"},K6=o.defineComponent({__name:"FgeFooter",setup(t){const e=me();return(n,r)=>(o.openBlock(),o.createElementBlock("div",q6,[o.createElementVNode("p",W6,"Copyright Mp. Version "+o.toDisplayString(o.unref(e).systemVer),1)]))}}),Q8="",Y6=tt(K6,[["__scopeId","data-v-526e8b52"]]);var Br={name:"CheckIcon",extends:ve},G6=o.createElementVNode("path",{d:"M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",fill:"currentColor"},null,-1),J6=[G6];function X6(t,e,n,r,a,i){return o.openBlock(),o.createElementBlock("svg",o.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),J6,16)}Br.render=X6;var Q6={root:function(e){var n=e.instance,r=e.props;return["p-checkbox p-component",{"p-checkbox-checked":n.checked,"p-checkbox-disabled":r.disabled,"p-checkbox-focused":n.focused}]},input:function(e){var n=e.instance,r=e.props;return["p-checkbox-box",{"p-highlight":n.checked,"p-disabled":r.disabled,"p-focus":n.focused}]},icon:"p-checkbox-icon"},e7={name:"BaseCheckbox",extends:ye,props:{value:null,modelValue:null,binary:Boolean,name:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},css:{classes:Q6},provide:function(){return{$parentInstance:this}}};function t7(t){return i7(t)||o7(t)||r7(t)||n7()}function n7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
739
+ `,u4={root:function(e){var n=e.props;return{position:n.appendTo==="self"?"relative":void 0}}},d4={root:function(e){var n=e.instance,r=e.props;return["p-password p-component p-inputwrapper",{"p-inputwrapper-filled":n.filled,"p-inputwrapper-focus":n.focused,"p-input-icon-right":r.toggleMask}]},input:function(e){var n=e.props;return["p-password-input",{"p-disabled":n.disabled}]},panel:function(e){var n=e.instance;return["p-password-panel p-component",{"p-input-filled":n.$primevue.config.inputStyle==="filled","p-ripple-disabled":n.$primevue.config.ripple===!1}]},meter:"p-password-meter",meterLabel:function(e){var n=e.instance;return"p-password-strength ".concat(n.meter?n.meter.strength:"")},info:"p-password-info"},f4=Ce(c4,{name:"password",manual:!0}),m4=f4.load,h4={name:"BasePassword",extends:ye,props:{modelValue:String,promptLabel:{type:String,default:null},mediumRegex:{type:String,default:"^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})"},strongRegex:{type:String,default:"^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})"},weakLabel:{type:String,default:null},mediumLabel:{type:String,default:null},strongLabel:{type:String,default:null},feedback:{type:Boolean,default:!0},appendTo:{type:String,default:"body"},toggleMask:{type:Boolean,default:!1},hideIcon:{type:String,default:void 0},showIcon:{type:String,default:void 0},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:null},required:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},panelId:{type:String,default:null},panelClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},panelProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},css:{classes:d4,inlineStyles:u4,loadStyle:m4},provide:function(){return{$parentInstance:this}}},Xe={name:"Password",extends:h4,emits:["update:modelValue","change","focus","blur","invalid"],data:function(){return{overlayVisible:!1,meter:null,infoText:null,focused:!1,unmasked:!1}},mediumCheckRegExp:null,strongCheckRegExp:null,resizeListener:null,scrollHandler:null,overlay:null,mounted:function(){this.infoText=this.promptText,this.mediumCheckRegExp=new RegExp(this.mediumRegex),this.strongCheckRegExp=new RegExp(this.strongRegex)},beforeUnmount:function(){this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(te.clear(this.overlay),this.overlay=null)},methods:{onOverlayEnter:function(e){te.set("overlay",e,this.$primevue.config.zIndex.overlay),v.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.bindScrollListener(),this.bindResizeListener()},onOverlayLeave:function(){this.unbindScrollListener(),this.unbindResizeListener(),this.overlay=null},onOverlayAfterLeave:function(e){te.clear(e)},alignOverlay:function(){this.appendTo==="self"?v.relativePosition(this.overlay,this.$refs.input.$el):(this.overlay.style.minWidth=v.getOuterWidth(this.$refs.input.$el)+"px",v.absolutePosition(this.overlay,this.$refs.input.$el))},testStrength:function(e){var n=0;return this.strongCheckRegExp.test(e)?n=3:this.mediumCheckRegExp.test(e)?n=2:e.length&&(n=1),n},onInput:function(e){this.$emit("update:modelValue",e.target.value),this.$emit("change",e)},onFocus:function(e){this.focused=!0,this.feedback&&(this.setPasswordMeter(this.modelValue),this.overlayVisible=!0),this.$emit("focus",e)},onBlur:function(e){this.focused=!1,this.feedback&&(this.overlayVisible=!1),this.$emit("blur",e)},onKeyUp:function(e){if(this.feedback){var n=e.target.value,r=this.checkPasswordStrength(n),a=r.meter,i=r.label;if(this.meter=a,this.infoText=i,e.code==="Escape"){this.overlayVisible&&(this.overlayVisible=!1);return}this.overlayVisible||(this.overlayVisible=!0)}},setPasswordMeter:function(){if(this.modelValue){var e=this.checkPasswordStrength(this.modelValue),n=e.meter,r=e.label;this.meter=n,this.infoText=r,this.overlayVisible||(this.overlayVisible=!0)}},checkPasswordStrength:function(e){var n=null,r=null;switch(this.testStrength(e)){case 1:n=this.weakText,r={strength:"weak",width:"33.33%"};break;case 2:n=this.mediumText,r={strength:"medium",width:"66.66%"};break;case 3:n=this.strongText,r={strength:"strong",width:"100%"};break;default:n=this.promptText,r=null;break}return{label:n,meter:r}},onInvalid:function(e){this.$emit("invalid",e)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new Mn(this.$refs.input.$el,function(){e.overlayVisible&&(e.overlayVisible=!1)})),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!v.isTouchDevice()&&(e.overlayVisible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},overlayRef:function(e){this.overlay=e},onMaskToggle:function(){this.unmasked=!this.unmasked},onOverlayClick:function(e){Mo.emit("overlay-click",{originalEvent:e,target:this.$el})}},computed:{inputType:function(){return this.unmasked?"text":"password"},filled:function(){return this.modelValue!=null&&this.modelValue.toString().length>0},weakText:function(){return this.weakLabel||this.$primevue.config.locale.weak},mediumText:function(){return this.mediumLabel||this.$primevue.config.locale.medium},strongText:function(){return this.strongLabel||this.$primevue.config.locale.strong},promptText:function(){return this.promptLabel||this.$primevue.config.locale.passwordPrompt},panelUniqueId:function(){return oe()+"_panel"}},components:{PInputText:be,Portal:ht,EyeSlashIcon:Ns,EyeIcon:Ps}};function un(t){"@babel/helpers - typeof";return un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},un(t)}function Bs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function fr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Bs(Object(n),!0).forEach(function(r){p4(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function p4(t,e,n){return e=g4(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g4(t){var e=y4(t,"string");return un(e)==="symbol"?e:String(e)}function y4(t,e){if(un(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(un(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var b4=["id"];function v4(t,e,n,r,a,i){var s=o.resolveComponent("PInputText"),l=o.resolveComponent("Portal");return o.openBlock(),o.createElementBlock("div",o.mergeProps({class:t.cx("root"),style:t.sx("root")},t.ptm("root"),{"data-pc-name":"password"}),[o.createVNode(s,o.mergeProps({ref:"input",id:t.inputId,type:i.inputType,class:[t.cx("input"),t.inputClass],style:t.inputStyle,value:t.modelValue,"aria-labelledby":t.ariaLabelledby,"aria-label":t.ariaLabel,"aria-controls":t.panelProps&&t.panelProps.id||t.panelId||i.panelUniqueId,"aria-expanded":a.overlayVisible,"aria-haspopup":!0,placeholder:t.placeholder,required:t.required,disabled:t.disabled,onInput:i.onInput,onFocus:i.onFocus,onBlur:i.onBlur,onKeyup:i.onKeyUp,onInvalid:i.onInvalid},fr(fr({},t.inputProps),t.ptm("input")),{unstyled:t.unstyled}),null,16,["id","type","class","style","value","aria-labelledby","aria-label","aria-controls","aria-expanded","placeholder","required","disabled","onInput","onFocus","onBlur","onKeyup","onInvalid","unstyled"]),t.toggleMask&&a.unmasked?o.renderSlot(t.$slots,"hideicon",{key:0,onClick:i.onMaskToggle},function(){return[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(t.hideIcon?"i":"EyeSlashIcon"),o.mergeProps({class:t.hideIcon,onClick:i.onMaskToggle},t.ptm("hideIcon")),null,16,["class","onClick"]))]}):o.createCommentVNode("",!0),t.toggleMask&&!a.unmasked?o.renderSlot(t.$slots,"showicon",{key:1,onClick:i.onMaskToggle},function(){return[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(t.showIcon?"i":"EyeIcon"),o.mergeProps({class:t.showIcon,onClick:i.onMaskToggle},t.ptm("showIcon")),null,16,["class","onClick"]))]}):o.createCommentVNode("",!0),o.createElementVNode("span",o.mergeProps({class:"p-hidden-accessible","aria-live":"polite"},t.ptm("hiddenAccesible"),{"data-p-hidden-accessible":!0}),o.toDisplayString(a.infoText),17),o.createVNode(l,{appendTo:t.appendTo},{default:o.withCtx(function(){return[o.createVNode(o.Transition,o.mergeProps({name:"p-connected-overlay",onEnter:i.onOverlayEnter,onLeave:i.onOverlayLeave,onAfterLeave:i.onOverlayAfterLeave},t.ptm("transition")),{default:o.withCtx(function(){return[a.overlayVisible?(o.openBlock(),o.createElementBlock("div",o.mergeProps({key:0,ref:i.overlayRef,id:t.panelId||i.panelUniqueId,class:[t.cx("panel"),t.panelClass],style:t.panelStyle,onClick:e[0]||(e[0]=function(){return i.onOverlayClick&&i.onOverlayClick.apply(i,arguments)})},fr(fr({},t.panelProps),t.ptm("panel"))),[o.renderSlot(t.$slots,"header"),o.renderSlot(t.$slots,"content",{},function(){return[o.createElementVNode("div",o.mergeProps({class:t.cx("meter")},t.ptm("meter")),[o.createElementVNode("div",o.mergeProps({class:t.cx("meterLabel"),style:{width:a.meter?a.meter.width:""}},t.ptm("meterLabel")),null,16)],16),o.createElementVNode("div",o.mergeProps({class:t.cx("info")},t.ptm("info")),o.toDisplayString(a.infoText),17)]}),o.renderSlot(t.$slots,"footer")],16,b4)):o.createCommentVNode("",!0)]}),_:3},16,["onEnter","onLeave","onAfterLeave"])]}),_:3},8,["appendTo"])],16)}Xe.render=v4;var w4={root:function(e){var n=e.instance;return["p-inputmask p-inputtext p-component",{"p-filled":n.filled}]}},k4={name:"BaseInputMask",extends:ye,props:{modelValue:null,slotChar:{type:String,default:"_"},mask:{type:String,default:null},autoClear:{type:Boolean,default:!0},unmask:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},css:{classes:w4}},Ms={name:"InputMask",extends:k4,emits:["update:modelValue","focus","blur","keydown","complete","keypress","paste"],watch:{mask:function(e,n){n!==e&&this.initMask()}},mounted:function(){this.initMask()},updated:function(){this.isValueUpdated()&&this.updateValue()},methods:{onInput:function(e){this.androidChrome?this.handleAndroidInput(e):this.handleInputChange(e),this.$emit("update:modelValue",e.target.value)},onFocus:function(e){var n=this;if(!this.readonly){this.focus=!0,clearTimeout(this.caretTimeoutId);var r;this.focusText=this.$el.value,r=this.checkVal(),this.caretTimeoutId=setTimeout(function(){n.$el===document.activeElement&&(n.writeBuffer(),r===n.mask.replace("?","").length?n.caret(0,r):n.caret(r))},10),this.$emit("focus",e)}},onBlur:function(e){if(this.focus=!1,this.checkVal(),this.updateModel(e),this.$el.value!==this.focusText){var n=document.createEvent("HTMLEvents");n.initEvent("change",!0,!1),this.$el.dispatchEvent(n)}this.$emit("blur",e)},onKeyDown:function(e){if(!this.readonly){var n=e.which||e.keyCode,r,a,i,s=/iphone/i.test(v.getUserAgent());this.oldVal=this.$el.value,n===8||n===46||s&&n===127?(r=this.caret(),a=r.begin,i=r.end,i-a===0&&(a=n!==46?this.seekPrev(a):i=this.seekNext(a-1),i=n===46?this.seekNext(i):i),this.clearBuffer(a,i),this.shiftL(a,i-1),this.updateModel(e),e.preventDefault()):n===13?(this.$el.blur(),this.updateModel(e)):n===27&&(this.$el.value=this.focusText,this.caret(0,this.checkVal()),this.updateModel(e),e.preventDefault()),this.$emit("keydown",e)}},onKeyPress:function(e){var n=this;if(!this.readonly){var r=e.which||e.keyCode,a=this.caret(),i,s,l,c;if(!(e.ctrlKey||e.altKey||e.metaKey||r<32)){if(r&&r!==13){if(a.end-a.begin!==0&&(this.clearBuffer(a.begin,a.end),this.shiftL(a.begin,a.end-1)),i=this.seekNext(a.begin-1),i<this.len&&(s=String.fromCharCode(r),this.tests[i].test(s))){if(this.shiftR(i),this.buffer[i]=s,this.writeBuffer(),l=this.seekNext(i),/android/i.test(v.getUserAgent())){var u=function(){n.caret(l)};setTimeout(u,0)}else this.caret(l);a.begin<=this.lastRequiredNonMaskPos&&(c=this.isCompleted())}e.preventDefault()}this.updateModel(e),c&&this.$emit("complete",e),this.$emit("keypress",e)}}},onPaste:function(e){this.handleInputChange(e),this.$emit("paste",e)},caret:function(e,n){var r,a,i;if(!(!this.$el.offsetParent||this.$el!==document.activeElement))if(typeof e=="number")a=e,i=typeof n=="number"?n:a,this.$el.setSelectionRange?this.$el.setSelectionRange(a,i):this.$el.createTextRange&&(r=this.$el.createTextRange(),r.collapse(!0),r.moveEnd("character",i),r.moveStart("character",a),r.select());else return this.$el.setSelectionRange?(a=this.$el.selectionStart,i=this.$el.selectionEnd):document.selection&&document.selection.createRange&&(r=document.selection.createRange(),a=0-r.duplicate().moveStart("character",-1e5),i=a+r.text.length),{begin:a,end:i}},isCompleted:function(){for(var e=this.firstNonMaskPos;e<=this.lastRequiredNonMaskPos;e++)if(this.tests[e]&&this.buffer[e]===this.getPlaceholder(e))return!1;return!0},getPlaceholder:function(e){return e<this.slotChar.length?this.slotChar.charAt(e):this.slotChar.charAt(0)},seekNext:function(e){for(;++e<this.len&&!this.tests[e];);return e},seekPrev:function(e){for(;--e>=0&&!this.tests[e];);return e},shiftL:function(e,n){var r,a;if(!(e<0)){for(r=e,a=this.seekNext(n);r<this.len;r++)if(this.tests[r]){if(a<this.len&&this.tests[r].test(this.buffer[a]))this.buffer[r]=this.buffer[a],this.buffer[a]=this.getPlaceholder(a);else break;a=this.seekNext(a)}this.writeBuffer(),this.caret(Math.max(this.firstNonMaskPos,e))}},shiftR:function(e){var n,r,a,i;for(n=e,r=this.getPlaceholder(e);n<this.len;n++)if(this.tests[n])if(a=this.seekNext(n),i=this.buffer[n],this.buffer[n]=r,a<this.len&&this.tests[a].test(i))r=i;else break},handleAndroidInput:function(e){var n=this.$el.value,r=this.caret();if(this.oldVal&&this.oldVal.length&&this.oldVal.length>n.length){for(this.checkVal(!0);r.begin>0&&!this.tests[r.begin-1];)r.begin--;if(r.begin===0)for(;r.begin<this.firstNonMaskPos&&!this.tests[r.begin];)r.begin++;this.caret(r.begin,r.begin)}else{for(this.checkVal(!0);r.begin<this.len&&!this.tests[r.begin];)r.begin++;this.caret(r.begin,r.begin)}this.isCompleted()&&this.$emit("complete",e)},clearBuffer:function(e,n){var r;for(r=e;r<n&&r<this.len;r++)this.tests[r]&&(this.buffer[r]=this.getPlaceholder(r))},writeBuffer:function(){this.$el.value=this.buffer.join("")},checkVal:function(e){this.isValueChecked=!0;var n=this.$el.value,r=-1,a,i,s;for(a=0,s=0;a<this.len;a++)if(this.tests[a]){for(this.buffer[a]=this.getPlaceholder(a);s++<n.length;)if(i=n.charAt(s-1),this.tests[a].test(i)){this.buffer[a]=i,r=a;break}if(s>n.length){this.clearBuffer(a+1,this.len);break}}else this.buffer[a]===n.charAt(s)&&s++,a<this.partialPosition&&(r=a);return e?this.writeBuffer():r+1<this.partialPosition?this.autoClear||this.buffer.join("")===this.defaultBuffer?(this.$el.value&&(this.$el.value=""),this.clearBuffer(0,this.len)):this.writeBuffer():(this.writeBuffer(),this.$el.value=this.$el.value.substring(0,r+1)),this.partialPosition?a:this.firstNonMaskPos},handleInputChange:function(e){var n=e.type==="paste";if(!(this.readonly||n)){var r=this.checkVal(!0);this.caret(r),this.updateModel(e),this.isCompleted()&&this.$emit("complete",e)}},getUnmaskedValue:function(){for(var e=[],n=0;n<this.buffer.length;n++){var r=this.buffer[n];this.tests[n]&&r!==this.getPlaceholder(n)&&e.push(r)}return e.join("")},updateModel:function(e){var n=this.unmask?this.getUnmaskedValue():e.target.value;this.$emit("update:modelValue",this.defaultBuffer!==n?n:"")},updateValue:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.$el&&(this.modelValue==null?(this.$el.value="",n&&this.$emit("update:modelValue","")):(this.$el.value=this.modelValue,this.checkVal(),setTimeout(function(){if(e.$el&&(e.writeBuffer(),e.checkVal(),n)){var r=e.unmask?e.getUnmaskedValue():e.$el.value;e.$emit("update:modelValue",e.defaultBuffer!==r?r:"")}},10)),this.focusText=this.$el.value)},initMask:function(){this.tests=[],this.partialPosition=this.mask.length,this.len=this.mask.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"};var e=v.getUserAgent();this.androidChrome=/chrome/i.test(e)&&/android/i.test(e);for(var n=this.mask.split(""),r=0;r<n.length;r++){var a=n[r];a==="?"?(this.len--,this.partialPosition=r):this.defs[a]?(this.tests.push(new RegExp(this.defs[a])),this.firstNonMaskPos===null&&(this.firstNonMaskPos=this.tests.length-1),r<this.partialPosition&&(this.lastRequiredNonMaskPos=this.tests.length-1)):this.tests.push(null)}this.buffer=[];for(var i=0;i<n.length;i++){var s=n[i];s!=="?"&&(this.defs[s]?this.buffer.push(this.getPlaceholder(i)):this.buffer.push(s))}this.defaultBuffer=this.buffer.join(""),this.updateValue(!1)},isValueUpdated:function(){return this.unmask?this.modelValue!=this.getUnmaskedValue():this.defaultBuffer!==this.$el.value&&this.$el.value!==this.modelValue}},computed:{filled:function(){return this.modelValue!=null&&this.modelValue.toString().length>0},ptmParams:function(){return{context:{filled:this.filled,disabled:this.$attrs.disabled||this.$attrs.disabled===""}}}}},C4=["readonly"];function S4(t,e,n,r,a,i){return o.openBlock(),o.createElementBlock("input",o.mergeProps({class:t.cx("root"),readonly:t.readonly,onInput:e[0]||(e[0]=function(){return i.onInput&&i.onInput.apply(i,arguments)}),onFocus:e[1]||(e[1]=function(){return i.onFocus&&i.onFocus.apply(i,arguments)}),onBlur:e[2]||(e[2]=function(){return i.onBlur&&i.onBlur.apply(i,arguments)}),onKeydown:e[3]||(e[3]=function(){return i.onKeyDown&&i.onKeyDown.apply(i,arguments)}),onKeypress:e[4]||(e[4]=function(){return i.onKeyPress&&i.onKeyPress.apply(i,arguments)}),onPaste:e[5]||(e[5]=function(){return i.onPaste&&i.onPaste.apply(i,arguments)})},t.ptm("root",i.ptmParams),{"data-pc-name":"inputmask"}),null,16,C4)}Ms.render=S4;class gt extends Error{}class E4 extends gt{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class T4 extends gt{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class x4 extends gt{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class dn extends gt{}class Ds extends gt{constructor(e){super(`Invalid unit ${e}`)}}class Oe extends gt{}class st extends gt{constructor(){super("Zone is an abstract class")}}const P="numeric",Ne="short",Se="long",mr={year:P,month:P,day:P},$s={year:P,month:Ne,day:P},O4={year:P,month:Ne,day:P,weekday:Ne},As={year:P,month:Se,day:P},Zs={year:P,month:Se,day:P,weekday:Se},Ls={hour:P,minute:P},Rs={hour:P,minute:P,second:P},Fs={hour:P,minute:P,second:P,timeZoneName:Ne},js={hour:P,minute:P,second:P,timeZoneName:Se},Hs={hour:P,minute:P,hourCycle:"h23"},Us={hour:P,minute:P,second:P,hourCycle:"h23"},zs={hour:P,minute:P,second:P,hourCycle:"h23",timeZoneName:Ne},qs={hour:P,minute:P,second:P,hourCycle:"h23",timeZoneName:Se},Ws={year:P,month:P,day:P,hour:P,minute:P},Ks={year:P,month:P,day:P,hour:P,minute:P,second:P},Ys={year:P,month:Ne,day:P,hour:P,minute:P},Gs={year:P,month:Ne,day:P,hour:P,minute:P,second:P},I4={year:P,month:Ne,day:P,weekday:Ne,hour:P,minute:P},Js={year:P,month:Se,day:P,hour:P,minute:P,timeZoneName:Ne},Xs={year:P,month:Se,day:P,hour:P,minute:P,second:P,timeZoneName:Ne},Qs={year:P,month:Se,day:P,weekday:Se,hour:P,minute:P,timeZoneName:Se},e1={year:P,month:Se,day:P,weekday:Se,hour:P,minute:P,second:P,timeZoneName:Se};class fn{get type(){throw new st}get name(){throw new st}get ianaName(){return this.name}get isUniversal(){throw new st}offsetName(e,n){throw new st}formatOffset(e,n){throw new st}offset(e){throw new st}equals(e){throw new st}get isValid(){throw new st}}let Lo=null;class hr extends fn{static get instance(){return Lo===null&&(Lo=new hr),Lo}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return d1(e,n,r)}formatOffset(e,n){return gn(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let pr={};function _4(t){return pr[t]||(pr[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),pr[t]}const V4={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function P4(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,a,i,s,l,c,u,d]=r;return[s,a,i,l,c,u,d]}function N4(t,e){const n=t.formatToParts(e),r=[];for(let a=0;a<n.length;a++){const{type:i,value:s}=n[a],l=V4[i];i==="era"?r[l]=s:F(l)||(r[l]=parseInt(s,10))}return r}let gr={};class Qe extends fn{static create(e){return gr[e]||(gr[e]=new Qe(e)),gr[e]}static resetCache(){gr={},pr={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=Qe.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return d1(e,n,r,this.name)}formatOffset(e,n){return gn(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const r=_4(this.name);let[a,i,s,l,c,u,d]=r.formatToParts?N4(r,n):P4(r,n);l==="BC"&&(a=-Math.abs(a)+1);const h=Wo({year:a,month:i,day:s,hour:c===24?0:c,minute:u,second:d,millisecond:0});let m=+n;const p=m%1e3;return m-=p>=0?p:1e3+p,(h-m)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let t1={};function B4(t,e={}){const n=JSON.stringify([t,e]);let r=t1[n];return r||(r=new Intl.ListFormat(t,e),t1[n]=r),r}let Ro={};function Fo(t,e={}){const n=JSON.stringify([t,e]);let r=Ro[n];return r||(r=new Intl.DateTimeFormat(t,e),Ro[n]=r),r}let jo={};function M4(t,e={}){const n=JSON.stringify([t,e]);let r=jo[n];return r||(r=new Intl.NumberFormat(t,e),jo[n]=r),r}let Ho={};function D4(t,e={}){const{base:n,...r}=e,a=JSON.stringify([t,r]);let i=Ho[a];return i||(i=new Intl.RelativeTimeFormat(t,e),Ho[a]=i),i}let mn=null;function $4(){return mn||(mn=new Intl.DateTimeFormat().resolvedOptions().locale,mn)}function A4(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let r,a;try{r=Fo(t).resolvedOptions(),a=t}catch{const c=t.substring(0,n);r=Fo(c).resolvedOptions(),a=c}const{numberingSystem:i,calendar:s}=r;return[a,i,s]}}function Z4(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function L4(t){const e=[];for(let n=1;n<=12;n++){const r=A.utc(2016,n,1);e.push(t(r))}return e}function R4(t){const e=[];for(let n=1;n<=7;n++){const r=A.utc(2016,11,13+n);e.push(t(r))}return e}function yr(t,e,n,r,a){const i=t.listingMode(n);return i==="error"?null:i==="en"?r(e):a(e)}function F4(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class j4{constructor(e,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:a,floor:i,...s}=r;if(!n||Object.keys(s).length>0){const l={useGrouping:!1,...r};r.padTo>0&&(l.minimumIntegerDigits=r.padTo),this.inf=M4(e,l)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):qo(e,3);return re(n,this.padTo)}}}class H4{constructor(e,n,r){this.opts=r,this.originalZone=void 0;let a;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const s=-1*(e.offset/60),l=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;e.offset!==0&&Qe.create(l).valid?(a=l,this.dt=e):(a="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,a=e.zone.name):(a="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||a,this.dtf=Fo(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class U4{constructor(e,n,r){this.opts={style:"long",...r},!n&&c1()&&(this.rtf=D4(e,r))}format(e,n){return this.rtf?this.rtf.format(e,n):lf(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}class Y{static fromOpts(e){return Y.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,n,r,a=!1){const i=e||ne.defaultLocale,s=i||(a?"en-US":$4()),l=n||ne.defaultNumberingSystem,c=r||ne.defaultOutputCalendar;return new Y(s,l,c,i)}static resetCache(){mn=null,Ro={},jo={},Ho={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:r}={}){return Y.create(e,n,r)}constructor(e,n,r,a){const[i,s,l]=A4(e);this.locale=i,this.numberingSystem=n||s||null,this.outputCalendar=r||l||null,this.intl=Z4(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=F4(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:Y.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1,r=!0){return yr(this,e,r,h1,()=>{const a=n?{month:e,day:"numeric"}:{month:e},i=n?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=L4(s=>this.extract(s,a,"month"))),this.monthsCache[i][e]})}weekdays(e,n=!1,r=!0){return yr(this,e,r,y1,()=>{const a=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=n?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=R4(s=>this.extract(s,a,"weekday"))),this.weekdaysCache[i][e]})}meridiems(e=!0){return yr(this,void 0,e,()=>b1,()=>{if(!this.meridiemCache){const n={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[A.utc(2016,11,13,9),A.utc(2016,11,13,19)].map(r=>this.extract(r,n,"dayperiod"))}return this.meridiemCache})}eras(e,n=!0){return yr(this,e,n,v1,()=>{const r={era:e};return this.eraCache[e]||(this.eraCache[e]=[A.utc(-40,1,1),A.utc(2017,1,1)].map(a=>this.extract(a,r,"era"))),this.eraCache[e]})}extract(e,n,r){const a=this.dtFormatter(e,n),i=a.formatToParts(),s=i.find(l=>l.type.toLowerCase()===r);return s?s.value:null}numberFormatter(e={}){return new j4(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new H4(e,this.intl,n)}relFormatter(e={}){return new U4(this.intl,this.isEnglish(),e)}listFormatter(e={}){return B4(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let Uo=null;class we extends fn{static get utcInstance(){return Uo===null&&(Uo=new we(0)),Uo}static instance(e){return e===0?we.utcInstance:new we(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new we(kr(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${gn(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${gn(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return gn(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class z4 extends fn{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function lt(t,e){if(F(t)||t===null)return e;if(t instanceof fn)return t;if(q4(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?hr.instance:n==="utc"||n==="gmt"?we.utcInstance:we.parseSpecifier(n)||Qe.create(t)}else return yt(t)?we.instance(t):typeof t=="object"&&t.offset&&typeof t.offset=="number"?t:new z4(t)}let n1=()=>Date.now(),r1="system",o1=null,i1=null,a1=null,s1=60,l1;class ne{static get now(){return n1}static set now(e){n1=e}static set defaultZone(e){r1=e}static get defaultZone(){return lt(r1,hr.instance)}static get defaultLocale(){return o1}static set defaultLocale(e){o1=e}static get defaultNumberingSystem(){return i1}static set defaultNumberingSystem(e){i1=e}static get defaultOutputCalendar(){return a1}static set defaultOutputCalendar(e){a1=e}static get twoDigitCutoffYear(){return s1}static set twoDigitCutoffYear(e){s1=e%100}static get throwOnInvalid(){return l1}static set throwOnInvalid(e){l1=e}static resetCaches(){Y.resetCache(),Qe.resetCache()}}function F(t){return typeof t>"u"}function yt(t){return typeof t=="number"}function br(t){return typeof t=="number"&&t%1===0}function q4(t){return typeof t=="string"}function W4(t){return Object.prototype.toString.call(t)==="[object Date]"}function c1(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function K4(t){return Array.isArray(t)?t:[t]}function u1(t,e,n){if(t.length!==0)return t.reduce((r,a)=>{const i=[e(a),a];return r&&n(r[0],i[0])===r[0]?r:i},null)[1]}function Y4(t,e){return e.reduce((n,r)=>(n[r]=t[r],n),{})}function Bt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function et(t,e,n){return br(t)&&t>=e&&t<=n}function G4(t,e){return t-e*Math.floor(t/e)}function re(t,e=2){const n=t<0;let r;return n?r="-"+(""+-t).padStart(e,"0"):r=(""+t).padStart(e,"0"),r}function ct(t){if(!(F(t)||t===null||t===""))return parseInt(t,10)}function bt(t){if(!(F(t)||t===null||t===""))return parseFloat(t)}function zo(t){if(!(F(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function qo(t,e,n=!1){const r=10**e;return(n?Math.trunc:Math.round)(t*r)/r}function hn(t){return t%4===0&&(t%100!==0||t%400===0)}function pn(t){return hn(t)?366:365}function vr(t,e){const n=G4(e-1,12)+1,r=t+(e-n)/12;return n===2?hn(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Wo(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function wr(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,n=t-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return e===4||r===3?53:52}function Ko(t){return t>99?t:t>ne.twoDigitCutoffYear?1900+t:2e3+t}function d1(t,e,n,r=null){const a=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const s={timeZoneName:e,...i},l=new Intl.DateTimeFormat(n,s).formatToParts(a).find(c=>c.type.toLowerCase()==="timezonename");return l?l.value:null}function kr(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0,a=n<0||Object.is(n,-0)?-r:r;return n*60+a}function f1(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new Oe(`Invalid unit value ${t}`);return e}function Cr(t,e){const n={};for(const r in t)if(Bt(t,r)){const a=t[r];if(a==null)continue;n[e(r)]=f1(a)}return n}function gn(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),a=t>=0?"+":"-";switch(e){case"short":return`${a}${re(n,2)}:${re(r,2)}`;case"narrow":return`${a}${n}${r>0?`:${r}`:""}`;case"techie":return`${a}${re(n,2)}${re(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Sr(t){return Y4(t,["hour","minute","second","millisecond"])}const J4=["January","February","March","April","May","June","July","August","September","October","November","December"],m1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],X4=["J","F","M","A","M","J","J","A","S","O","N","D"];function h1(t){switch(t){case"narrow":return[...X4];case"short":return[...m1];case"long":return[...J4];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const p1=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],g1=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Q4=["M","T","W","T","F","S","S"];function y1(t){switch(t){case"narrow":return[...Q4];case"short":return[...g1];case"long":return[...p1];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const b1=["AM","PM"],ef=["Before Christ","Anno Domini"],tf=["BC","AD"],nf=["B","A"];function v1(t){switch(t){case"narrow":return[...nf];case"short":return[...tf];case"long":return[...ef];default:return null}}function rf(t){return b1[t.hour<12?0:1]}function of(t,e){return y1(e)[t.weekday-1]}function af(t,e){return h1(e)[t.month-1]}function sf(t,e){return v1(e)[t.year<0?0:1]}function lf(t,e,n="always",r=!1){const a={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&i){const f=t==="days";switch(e){case 1:return f?"tomorrow":`next ${a[t][0]}`;case-1:return f?"yesterday":`last ${a[t][0]}`;case 0:return f?"today":`this ${a[t][0]}`}}const s=Object.is(e,-0)||e<0,l=Math.abs(e),c=l===1,u=a[t],d=r?c?u[1]:u[2]||u[1]:c?a[t][0]:t;return s?`${l} ${d} ago`:`in ${l} ${d}`}function w1(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const cf={D:mr,DD:$s,DDD:As,DDDD:Zs,t:Ls,tt:Rs,ttt:Fs,tttt:js,T:Hs,TT:Us,TTT:zs,TTTT:qs,f:Ws,ff:Ys,fff:Js,ffff:Qs,F:Ks,FF:Gs,FFF:Xs,FFFF:e1};class he{static create(e,n={}){return new he(e,n)}static parseFormat(e){let n=null,r="",a=!1;const i=[];for(let s=0;s<e.length;s++){const l=e.charAt(s);l==="'"?(r.length>0&&i.push({literal:a||/^\s+$/.test(r),val:r}),n=null,r="",a=!a):a||l===n?r+=l:(r.length>0&&i.push({literal:/^\s+$/.test(r),val:r}),r=l,n=l)}return r.length>0&&i.push({literal:a||/^\s+$/.test(r),val:r}),i}static macroTokenToFormatOpts(e){return cf[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}formatDateTime(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).format()}formatDateTimeParts(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).formatToParts()}formatInterval(e,n={}){return this.loc.dtFormatter(e.start,{...this.opts,...n}).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return re(e,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,n){const r=this.loc.listingMode()==="en",a=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(m,p)=>this.loc.extract(e,m,p),s=m=>e.isOffsetFixed&&e.offset===0&&m.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,m.format):"",l=()=>r?rf(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(m,p)=>r?af(e,m):i(p?{month:m}:{month:m,day:"numeric"},"month"),u=(m,p)=>r?of(e,m):i(p?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),d=m=>{const p=he.macroTokenToFormatOpts(m);return p?this.formatWithSystemDefault(e,p):m},f=m=>r?sf(e,m):i({era:m},"era"),h=m=>{switch(m){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return l();case"d":return a?i({day:"numeric"},"day"):this.num(e.day);case"dd":return a?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return a?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return a?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return a?i({month:"numeric"},"month"):this.num(e.month);case"MM":return a?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return a?i({year:"numeric"},"year"):this.num(e.year);case"yy":return a?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return a?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return a?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return d(m)}};return w1(he.parseFormat(n),h)}formatDurationFromString(e,n){const r=c=>{switch(c[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},a=c=>u=>{const d=r(u);return d?this.num(c.get(d),u.length):u},i=he.parseFormat(n),s=i.reduce((c,{literal:u,val:d})=>u?c:c.concat(d),[]),l=e.shiftTo(...s.map(r).filter(c=>c));return w1(i,a(l))}}class Be{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const k1=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Mt(...t){const e=t.reduce((n,r)=>n+r.source,"");return RegExp(`^${e}$`)}function Dt(...t){return e=>t.reduce(([n,r,a],i)=>{const[s,l,c]=i(e,a);return[{...n,...s},l||r,c]},[{},null,1]).slice(0,2)}function $t(t,...e){if(t==null)return[null,null];for(const[n,r]of e){const a=n.exec(t);if(a)return r(a)}return[null,null]}function C1(...t){return(e,n)=>{const r={};let a;for(a=0;a<t.length;a++)r[t[a]]=ct(e[n+a]);return[r,null,n+a]}}const S1=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,uf=`(?:${S1.source}?(?:\\[(${k1.source})\\])?)?`,Yo=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,E1=RegExp(`${Yo.source}${uf}`),Go=RegExp(`(?:T${E1.source})?`),df=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,ff=/(\d{4})-?W(\d\d)(?:-?(\d))?/,mf=/(\d{4})-?(\d{3})/,hf=C1("weekYear","weekNumber","weekDay"),pf=C1("year","ordinal"),gf=/(\d{4})-(\d\d)-(\d\d)/,T1=RegExp(`${Yo.source} ?(?:${S1.source}|(${k1.source}))?`),yf=RegExp(`(?: ${T1.source})?`);function At(t,e,n){const r=t[e];return F(r)?n:ct(r)}function bf(t,e){return[{year:At(t,e),month:At(t,e+1,1),day:At(t,e+2,1)},null,e+3]}function Zt(t,e){return[{hours:At(t,e,0),minutes:At(t,e+1,0),seconds:At(t,e+2,0),milliseconds:zo(t[e+3])},null,e+4]}function yn(t,e){const n=!t[e]&&!t[e+1],r=kr(t[e+1],t[e+2]),a=n?null:we.instance(r);return[{},a,e+3]}function bn(t,e){const n=t[e]?Qe.create(t[e]):null;return[{},n,e+1]}const vf=RegExp(`^T?${Yo.source}$`),wf=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function kf(t){const[e,n,r,a,i,s,l,c,u]=t,d=e[0]==="-",f=c&&c[0]==="-",h=(m,p=!1)=>m!==void 0&&(p||m&&d)?-m:m;return[{years:h(bt(n)),months:h(bt(r)),weeks:h(bt(a)),days:h(bt(i)),hours:h(bt(s)),minutes:h(bt(l)),seconds:h(bt(c),c==="-0"),milliseconds:h(zo(u),f)}]}const Cf={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Jo(t,e,n,r,a,i,s){const l={year:e.length===2?Ko(ct(e)):ct(e),month:m1.indexOf(n)+1,day:ct(r),hour:ct(a),minute:ct(i)};return s&&(l.second=ct(s)),t&&(l.weekday=t.length>3?p1.indexOf(t)+1:g1.indexOf(t)+1),l}const Sf=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Ef(t){const[,e,n,r,a,i,s,l,c,u,d,f]=t,h=Jo(e,a,r,n,i,s,l);let m;return c?m=Cf[c]:u?m=0:m=kr(d,f),[h,new we(m)]}function Tf(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const xf=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Of=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,If=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function x1(t){const[,e,n,r,a,i,s,l]=t;return[Jo(e,a,r,n,i,s,l),we.utcInstance]}function _f(t){const[,e,n,r,a,i,s,l]=t;return[Jo(e,l,n,r,a,i,s),we.utcInstance]}const Vf=Mt(df,Go),Pf=Mt(ff,Go),Nf=Mt(mf,Go),Bf=Mt(E1),O1=Dt(bf,Zt,yn,bn),Mf=Dt(hf,Zt,yn,bn),Df=Dt(pf,Zt,yn,bn),$f=Dt(Zt,yn,bn);function Af(t){return $t(t,[Vf,O1],[Pf,Mf],[Nf,Df],[Bf,$f])}function Zf(t){return $t(Tf(t),[Sf,Ef])}function Lf(t){return $t(t,[xf,x1],[Of,x1],[If,_f])}function Rf(t){return $t(t,[wf,kf])}const Ff=Dt(Zt);function jf(t){return $t(t,[vf,Ff])}const Hf=Mt(gf,yf),Uf=Mt(T1),zf=Dt(Zt,yn,bn);function qf(t){return $t(t,[Hf,O1],[Uf,zf])}const Wf="Invalid Duration",I1={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Kf={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...I1},Ie=146097/400,Lt=146097/4800,Yf={years:{quarters:4,months:12,weeks:Ie/7,days:Ie,hours:Ie*24,minutes:Ie*24*60,seconds:Ie*24*60*60,milliseconds:Ie*24*60*60*1e3},quarters:{months:3,weeks:Ie/28,days:Ie/4,hours:Ie*24/4,minutes:Ie*24*60/4,seconds:Ie*24*60*60/4,milliseconds:Ie*24*60*60*1e3/4},months:{weeks:Lt/7,days:Lt,hours:Lt*24,minutes:Lt*24*60,seconds:Lt*24*60*60,milliseconds:Lt*24*60*60*1e3},...I1},vt=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Gf=vt.slice(0).reverse();function ut(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new U(r)}function Jf(t){return t<0?Math.floor(t):Math.ceil(t)}function _1(t,e,n,r,a){const i=t[a][n],s=e[n]/i,l=Math.sign(s)===Math.sign(r[a]),c=!l&&r[a]!==0&&Math.abs(s)<=1?Jf(s):Math.trunc(s);r[a]+=c,e[n]-=c*i}function Xf(t,e){Gf.reduce((n,r)=>F(e[r])?n:(n&&_1(t,e,n,e,r),r),null)}function Qf(t){const e={};for(const[n,r]of Object.entries(t))r!==0&&(e[n]=r);return e}class U{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let r=n?Yf:Kf;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||Y.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,n){return U.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new Oe(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new U({values:Cr(e,U.normalizeUnit),loc:Y.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(yt(e))return U.fromMillis(e);if(U.isDuration(e))return e;if(typeof e=="object")return U.fromObject(e);throw new Oe(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[r]=Rf(e);return r?U.fromObject(r,n):U.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[r]=jf(e);return r?U.fromObject(r,n):U.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new Oe("need to specify a reason the Duration is invalid");const r=e instanceof Be?e:new Be(e,n);if(ne.throwOnInvalid)throw new x4(r);return new U({invalid:r})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new Ds(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?he.create(this.loc,r).formatDurationFromString(this,e):Wf}toHuman(e={}){const n=vt.map(r=>{const a=this.values[r];return F(a)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(a)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=qo(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();if(n<0||n>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};const r=this.shiftTo("hours","minutes","seconds","milliseconds");let a=e.format==="basic"?"hhmm":"hh:mm";(!e.suppressSeconds||r.seconds!==0||r.milliseconds!==0)&&(a+=e.format==="basic"?"ss":":ss",(!e.suppressMilliseconds||r.milliseconds!==0)&&(a+=".SSS"));let i=r.toFormat(a);return e.includePrefix&&(i="T"+i),i}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=U.fromDurationLike(e),r={};for(const a of vt)(Bt(n.values,a)||Bt(this.values,a))&&(r[a]=n.get(a)+this.get(a));return ut(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const n=U.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=f1(e(this.values[r],r));return ut(this,{values:n},!0)}get(e){return this[U.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...Cr(e,U.normalizeUnit)};return ut(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:r,matrix:a}={}){const s={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:a,conversionAccuracy:r};return ut(this,s)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Xf(this.matrix,e),ut(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=Qf(this.normalize().shiftToAll().toObject());return ut(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(s=>U.normalizeUnit(s));const n={},r={},a=this.toObject();let i;for(const s of vt)if(e.indexOf(s)>=0){i=s;let l=0;for(const u in r)l+=this.matrix[u][s]*r[u],r[u]=0;yt(a[s])&&(l+=a[s]);const c=Math.trunc(l);n[s]=c,r[s]=(l*1e3-c*1e3)/1e3;for(const u in a)vt.indexOf(u)>vt.indexOf(s)&&_1(this.matrix,a,u,n,s)}else yt(a[s])&&(r[s]=a[s]);for(const s in r)r[s]!==0&&(n[i]+=s===i?r[s]:r[s]/this.matrix[i][s]);return ut(this,{values:n},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return ut(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(r,a){return r===void 0||r===0?a===void 0||a===0:r===a}for(const r of vt)if(!n(this.values[r],e.values[r]))return!1;return!0}}const Rt="Invalid Interval";function e5(t,e){return!t||!t.isValid?Q.invalid("missing or invalid start"):!e||!e.isValid?Q.invalid("missing or invalid end"):e<t?Q.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class Q{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new Oe("need to specify a reason the Interval is invalid");const r=e instanceof Be?e:new Be(e,n);if(ne.throwOnInvalid)throw new T4(r);return new Q({invalid:r})}static fromDateTimes(e,n){const r=kn(e),a=kn(n),i=e5(r,a);return i??new Q({start:r,end:a})}static after(e,n){const r=U.fromDurationLike(n),a=kn(e);return Q.fromDateTimes(a,a.plus(r))}static before(e,n){const r=U.fromDurationLike(n),a=kn(e);return Q.fromDateTimes(a.minus(r),a)}static fromISO(e,n){const[r,a]=(e||"").split("/",2);if(r&&a){let i,s;try{i=A.fromISO(r,n),s=i.isValid}catch{s=!1}let l,c;try{l=A.fromISO(a,n),c=l.isValid}catch{c=!1}if(s&&c)return Q.fromDateTimes(i,l);if(s){const u=U.fromISO(a,n);if(u.isValid)return Q.after(i,u)}else if(c){const u=U.fromISO(r,n);if(u.isValid)return Q.before(l,u)}}return Q.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(e),r=this.end.startOf(e);return Math.floor(r.diff(n,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?Q.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(kn).filter(s=>this.contains(s)).sort(),r=[];let{s:a}=this,i=0;for(;a<this.e;){const s=n[i]||this.e,l=+s>+this.e?this.e:s;r.push(Q.fromDateTimes(a,l)),a=l,i+=1}return r}splitBy(e){const n=U.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,a=1,i;const s=[];for(;r<this.e;){const l=this.start.plus(n.mapUnits(c=>c*a));i=+l>+this.e?this.e:l,s.push(Q.fromDateTimes(r,i)),r=i,a+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return n>=r?null:Q.fromDateTimes(n,r)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return Q.fromDateTimes(n,r)}static merge(e){const[n,r]=e.sort((a,i)=>a.s-i.s).reduce(([a,i],s)=>i?i.overlaps(s)||i.abutsStart(s)?[a,i.union(s)]:[a.concat([i]),s]:[a,s],[[],null]);return r&&n.push(r),n}static xor(e){let n=null,r=0;const a=[],i=e.map(c=>[{time:c.s,type:"s"},{time:c.e,type:"e"}]),s=Array.prototype.concat(...i),l=s.sort((c,u)=>c.time-u.time);for(const c of l)r+=c.type==="s"?1:-1,r===1?n=c.time:(n&&+n!=+c.time&&a.push(Q.fromDateTimes(n,c.time)),n=null);return Q.merge(a)}difference(...e){return Q.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Rt}toLocaleString(e=mr,n={}){return this.isValid?he.create(this.s.loc.clone(n),e).formatInterval(this):Rt}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Rt}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Rt}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Rt}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:Rt}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):U.invalid(this.invalidReason)}mapEndpoints(e){return Q.fromDateTimes(e(this.s),e(this.e))}}class Er{static hasDST(e=ne.defaultZone){const n=A.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return Qe.isValidZone(e)}static normalizeZone(e){return lt(e,ne.defaultZone)}static months(e="long",{locale:n=null,numberingSystem:r=null,locObj:a=null,outputCalendar:i="gregory"}={}){return(a||Y.create(n,r,i)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:a=null,outputCalendar:i="gregory"}={}){return(a||Y.create(n,r,i)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:r=null,locObj:a=null}={}){return(a||Y.create(n,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:a=null}={}){return(a||Y.create(n,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Y.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return Y.create(n,null,"gregory").eras(e)}static features(){return{relative:c1()}}}function V1(t,e){const n=a=>a.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(U.fromMillis(r).as("days"))}function t5(t,e,n){const r=[["years",(c,u)=>u.year-c.year],["quarters",(c,u)=>u.quarter-c.quarter+(u.year-c.year)*4],["months",(c,u)=>u.month-c.month+(u.year-c.year)*12],["weeks",(c,u)=>{const d=V1(c,u);return(d-d%7)/7}],["days",V1]],a={},i=t;let s,l;for(const[c,u]of r)n.indexOf(c)>=0&&(s=c,a[c]=u(t,e),l=i.plus(a),l>e?(a[c]--,t=i.plus(a)):t=l);return[t,a,l,s]}function n5(t,e,n,r){let[a,i,s,l]=t5(t,e,n);const c=e-a,u=n.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);u.length===0&&(s<e&&(s=a.plus({[l]:1})),s!==a&&(i[l]=(i[l]||0)+c/(s-a)));const d=U.fromObject(i,r);return u.length>0?U.fromMillis(c,r).shiftTo(...u).plus(d):d}const Xo={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},P1={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},r5=Xo.hanidec.replace(/[\[|\]]/g,"").split("");function o5(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(t[n].search(Xo.hanidec)!==-1)e+=r5.indexOf(t[n]);else for(const a in P1){const[i,s]=P1[a];r>=i&&r<=s&&(e+=r-i)}}return parseInt(e,10)}else return e}function Me({numberingSystem:t},e=""){return new RegExp(`${Xo[t||"latn"]}${e}`)}const i5="missing Intl.DateTimeFormat.formatToParts support";function W(t,e=n=>n){return{regex:t,deser:([n])=>e(o5(n))}}const N1=`[ ${String.fromCharCode(160)}]`,B1=new RegExp(N1,"g");function a5(t){return t.replace(/\./g,"\\.?").replace(B1,N1)}function M1(t){return t.replace(/\./g,"").replace(B1," ").toLowerCase()}function De(t,e){return t===null?null:{regex:RegExp(t.map(a5).join("|")),deser:([n])=>t.findIndex(r=>M1(n)===M1(r))+e}}function D1(t,e){return{regex:t,deser:([,n,r])=>kr(n,r),groups:e}}function Tr(t){return{regex:t,deser:([e])=>e}}function s5(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function l5(t,e){const n=Me(e),r=Me(e,"{2}"),a=Me(e,"{3}"),i=Me(e,"{4}"),s=Me(e,"{6}"),l=Me(e,"{1,2}"),c=Me(e,"{1,3}"),u=Me(e,"{1,6}"),d=Me(e,"{1,9}"),f=Me(e,"{2,4}"),h=Me(e,"{4,6}"),m=k=>({regex:RegExp(s5(k.val)),deser:([x])=>x,literal:!0}),y=(k=>{if(t.literal)return m(k);switch(k.val){case"G":return De(e.eras("short",!1),0);case"GG":return De(e.eras("long",!1),0);case"y":return W(u);case"yy":return W(f,Ko);case"yyyy":return W(i);case"yyyyy":return W(h);case"yyyyyy":return W(s);case"M":return W(l);case"MM":return W(r);case"MMM":return De(e.months("short",!0,!1),1);case"MMMM":return De(e.months("long",!0,!1),1);case"L":return W(l);case"LL":return W(r);case"LLL":return De(e.months("short",!1,!1),1);case"LLLL":return De(e.months("long",!1,!1),1);case"d":return W(l);case"dd":return W(r);case"o":return W(c);case"ooo":return W(a);case"HH":return W(r);case"H":return W(l);case"hh":return W(r);case"h":return W(l);case"mm":return W(r);case"m":return W(l);case"q":return W(l);case"qq":return W(r);case"s":return W(l);case"ss":return W(r);case"S":return W(c);case"SSS":return W(a);case"u":return Tr(d);case"uu":return Tr(l);case"uuu":return W(n);case"a":return De(e.meridiems(),0);case"kkkk":return W(i);case"kk":return W(f,Ko);case"W":return W(l);case"WW":return W(r);case"E":case"c":return W(n);case"EEE":return De(e.weekdays("short",!1,!1),1);case"EEEE":return De(e.weekdays("long",!1,!1),1);case"ccc":return De(e.weekdays("short",!0,!1),1);case"cccc":return De(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return D1(new RegExp(`([+-]${l.source})(?::(${r.source}))?`),2);case"ZZZ":return D1(new RegExp(`([+-]${l.source})(${r.source})?`),2);case"z":return Tr(/[a-z_+-/]{1,256}?/i);case" ":return Tr(/[^\S\n\r]/);default:return m(k)}})(t)||{invalidReason:i5};return y.token=t,y}const c5={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function u5(t,e){const{type:n,value:r}=t;if(n==="literal"){const s=/^\s+$/.test(r);return{literal:!s,val:s?" ":r}}const a=e[n];let i=c5[n];if(typeof i=="object"&&(i=i[a]),i)return{literal:!1,val:i}}function d5(t){return[`^${t.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,t]}function f5(t,e,n){const r=t.match(e);if(r){const a={};let i=1;for(const s in n)if(Bt(n,s)){const l=n[s],c=l.groups?l.groups+1:1;!l.literal&&l.token&&(a[l.token.val[0]]=l.deser(r.slice(i,i+c))),i+=c}return[r,a]}else return[r,{}]}function m5(t){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return F(t.z)||(n=Qe.create(t.z)),F(t.Z)||(n||(n=new we(t.Z)),r=t.Z),F(t.q)||(t.M=(t.q-1)*3+1),F(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),F(t.u)||(t.S=zo(t.u)),[Object.keys(t).reduce((i,s)=>{const l=e(s);return l&&(i[l]=t[s]),i},{}),n,r]}let Qo=null;function h5(){return Qo||(Qo=A.fromMillis(1555555555555)),Qo}function p5(t,e){if(t.literal)return t;const n=he.macroTokenToFormatOpts(t.val),r=Z1(n,e);return r==null||r.includes(void 0)?t:r}function $1(t,e){return Array.prototype.concat(...t.map(n=>p5(n,e)))}function A1(t,e,n){const r=$1(he.parseFormat(n),t),a=r.map(s=>l5(s,t)),i=a.find(s=>s.invalidReason);if(i)return{input:e,tokens:r,invalidReason:i.invalidReason};{const[s,l]=d5(a),c=RegExp(s,"i"),[u,d]=f5(e,c,l),[f,h,m]=d?m5(d):[null,null,void 0];if(Bt(d,"a")&&Bt(d,"H"))throw new dn("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:c,rawMatches:u,matches:d,result:f,zone:h,specificOffset:m}}}function g5(t,e,n){const{result:r,zone:a,specificOffset:i,invalidReason:s}=A1(t,e,n);return[r,a,i,s]}function Z1(t,e){return t?he.create(e,t).formatDateTimeParts(h5()).map(a=>u5(a,t)):null}const L1=[0,31,59,90,120,151,181,212,243,273,304,334],R1=[0,31,60,91,121,152,182,213,244,274,305,335];function _e(t,e){return new Be("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function F1(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const a=r.getUTCDay();return a===0?7:a}function j1(t,e,n){return n+(hn(t)?R1:L1)[e-1]}function H1(t,e){const n=hn(t)?R1:L1,r=n.findIndex(i=>i<e),a=e-n[r];return{month:r+1,day:a}}function ei(t){const{year:e,month:n,day:r}=t,a=j1(e,n,r),i=F1(e,n,r);let s=Math.floor((a-i+10)/7),l;return s<1?(l=e-1,s=wr(l)):s>wr(e)?(l=e+1,s=1):l=e,{weekYear:l,weekNumber:s,weekday:i,...Sr(t)}}function U1(t){const{weekYear:e,weekNumber:n,weekday:r}=t,a=F1(e,1,4),i=pn(e);let s=n*7+r-a-3,l;s<1?(l=e-1,s+=pn(l)):s>i?(l=e+1,s-=pn(e)):l=e;const{month:c,day:u}=H1(l,s);return{year:l,month:c,day:u,...Sr(t)}}function ti(t){const{year:e,month:n,day:r}=t,a=j1(e,n,r);return{year:e,ordinal:a,...Sr(t)}}function z1(t){const{year:e,ordinal:n}=t,{month:r,day:a}=H1(e,n);return{year:e,month:r,day:a,...Sr(t)}}function y5(t){const e=br(t.weekYear),n=et(t.weekNumber,1,wr(t.weekYear)),r=et(t.weekday,1,7);return e?n?r?!1:_e("weekday",t.weekday):_e("week",t.week):_e("weekYear",t.weekYear)}function b5(t){const e=br(t.year),n=et(t.ordinal,1,pn(t.year));return e?n?!1:_e("ordinal",t.ordinal):_e("year",t.year)}function q1(t){const e=br(t.year),n=et(t.month,1,12),r=et(t.day,1,vr(t.year,t.month));return e?n?r?!1:_e("day",t.day):_e("month",t.month):_e("year",t.year)}function W1(t){const{hour:e,minute:n,second:r,millisecond:a}=t,i=et(e,0,23)||e===24&&n===0&&r===0&&a===0,s=et(n,0,59),l=et(r,0,59),c=et(a,0,999);return i?s?l?c?!1:_e("millisecond",a):_e("second",r):_e("minute",n):_e("hour",e)}const ni="Invalid DateTime",K1=864e13;function xr(t){return new Be("unsupported zone",`the zone "${t.name}" is not supported`)}function ri(t){return t.weekData===null&&(t.weekData=ei(t.c)),t.weekData}function vn(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new A({...n,...e,old:n})}function Y1(t,e,n){let r=t-e*60*1e3;const a=n.offset(r);if(e===a)return[r,e];r-=(a-e)*60*1e3;const i=n.offset(r);return a===i?[r,a]:[t-Math.min(a,i)*60*1e3,Math.max(a,i)]}function G1(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Or(t,e,n){return Y1(Wo(t),e,n)}function J1(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),a=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:r,month:a,day:Math.min(t.c.day,vr(r,a))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=U.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),l=Wo(i);let[c,u]=Y1(l,n,t.zone);return s!==0&&(c+=s,u=t.zone.offset(c)),{ts:c,o:u}}function wn(t,e,n,r,a,i){const{setZone:s,zone:l}=n;if(t&&Object.keys(t).length!==0||e){const c=e||l,u=A.fromObject(t,{...n,zone:c,specificOffset:i});return s?u:u.setZone(l)}else return A.invalid(new Be("unparsable",`the input "${a}" can't be parsed as ${r}`))}function Ir(t,e,n=!0){return t.isValid?he.create(Y.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function oi(t,e){const n=t.c.year>9999||t.c.year<0;let r="";return n&&t.c.year>=0&&(r+="+"),r+=re(t.c.year,n?6:4),e?(r+="-",r+=re(t.c.month),r+="-",r+=re(t.c.day)):(r+=re(t.c.month),r+=re(t.c.day)),r}function X1(t,e,n,r,a,i){let s=re(t.c.hour);return e?(s+=":",s+=re(t.c.minute),(t.c.second!==0||!n)&&(s+=":")):s+=re(t.c.minute),(t.c.second!==0||!n)&&(s+=re(t.c.second),(t.c.millisecond!==0||!r)&&(s+=".",s+=re(t.c.millisecond,3))),a&&(t.isOffsetFixed&&t.offset===0&&!i?s+="Z":t.o<0?(s+="-",s+=re(Math.trunc(-t.o/60)),s+=":",s+=re(Math.trunc(-t.o%60))):(s+="+",s+=re(Math.trunc(t.o/60)),s+=":",s+=re(Math.trunc(t.o%60)))),i&&(s+="["+t.zone.ianaName+"]"),s}const Q1={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},v5={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},w5={ordinal:1,hour:0,minute:0,second:0,millisecond:0},el=["year","month","day","hour","minute","second","millisecond"],k5=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],C5=["year","ordinal","hour","minute","second","millisecond"];function tl(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new Ds(t);return e}function nl(t,e){const n=lt(e.zone,ne.defaultZone),r=Y.fromObject(e),a=ne.now();let i,s;if(F(t.year))i=a;else{for(const u of el)F(t[u])&&(t[u]=Q1[u]);const l=q1(t)||W1(t);if(l)return A.invalid(l);const c=n.offset(a);[i,s]=Or(t,c,n)}return new A({ts:i,zone:n,loc:r,o:s})}function rl(t,e,n){const r=F(n.round)?!0:n.round,a=(s,l)=>(s=qo(s,r||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(s,l)),i=s=>n.calendary?e.hasSame(t,s)?0:e.startOf(s).diff(t.startOf(s),s).get(s):e.diff(t,s).get(s);if(n.unit)return a(i(n.unit),n.unit);for(const s of n.units){const l=i(s);if(Math.abs(l)>=1)return a(l,s)}return a(t>e?-0:0,n.units[n.units.length-1])}function ol(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}class A{constructor(e){const n=e.zone||ne.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new Be("invalid input"):null)||(n.isValid?null:xr(n));this.ts=F(e.ts)?ne.now():e.ts;let a=null,i=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[a,i]=[e.old.c,e.old.o];else{const l=n.offset(this.ts);a=G1(this.ts,l),r=Number.isNaN(a.year)?new Be("invalid input"):null,a=r?null:a,i=r?null:l}this._zone=n,this.loc=e.loc||Y.create(),this.invalid=r,this.weekData=null,this.c=a,this.o=i,this.isLuxonDateTime=!0}static now(){return new A({})}static local(){const[e,n]=ol(arguments),[r,a,i,s,l,c,u]=n;return nl({year:r,month:a,day:i,hour:s,minute:l,second:c,millisecond:u},e)}static utc(){const[e,n]=ol(arguments),[r,a,i,s,l,c,u]=n;return e.zone=we.utcInstance,nl({year:r,month:a,day:i,hour:s,minute:l,second:c,millisecond:u},e)}static fromJSDate(e,n={}){const r=W4(e)?e.valueOf():NaN;if(Number.isNaN(r))return A.invalid("invalid input");const a=lt(n.zone,ne.defaultZone);return a.isValid?new A({ts:r,zone:a,loc:Y.fromObject(n)}):A.invalid(xr(a))}static fromMillis(e,n={}){if(yt(e))return e<-K1||e>K1?A.invalid("Timestamp out of range"):new A({ts:e,zone:lt(n.zone,ne.defaultZone),loc:Y.fromObject(n)});throw new Oe(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(yt(e))return new A({ts:e*1e3,zone:lt(n.zone,ne.defaultZone),loc:Y.fromObject(n)});throw new Oe("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const r=lt(n.zone,ne.defaultZone);if(!r.isValid)return A.invalid(xr(r));const a=ne.now(),i=F(n.specificOffset)?r.offset(a):n.specificOffset,s=Cr(e,tl),l=!F(s.ordinal),c=!F(s.year),u=!F(s.month)||!F(s.day),d=c||u,f=s.weekYear||s.weekNumber,h=Y.fromObject(n);if((d||l)&&f)throw new dn("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&l)throw new dn("Can't mix ordinal dates with month/day");const m=f||s.weekday&&!d;let p,y,k=G1(a,i);m?(p=k5,y=v5,k=ei(k)):l?(p=C5,y=w5,k=ti(k)):(p=el,y=Q1);let x=!1;for(const N of p){const _=s[N];F(_)?x?s[N]=y[N]:s[N]=k[N]:x=!0}const g=m?y5(s):l?b5(s):q1(s),b=g||W1(s);if(b)return A.invalid(b);const T=m?U1(s):l?z1(s):s,[I,O]=Or(T,i,r),w=new A({ts:I,zone:r,o:O,loc:h});return s.weekday&&d&&e.weekday!==w.weekday?A.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${w.toISO()}`):w}static fromISO(e,n={}){const[r,a]=Af(e);return wn(r,a,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[r,a]=Zf(e);return wn(r,a,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[r,a]=Lf(e);return wn(r,a,n,"HTTP",n)}static fromFormat(e,n,r={}){if(F(e)||F(n))throw new Oe("fromFormat requires an input string and a format");const{locale:a=null,numberingSystem:i=null}=r,s=Y.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0}),[l,c,u,d]=g5(s,e,n);return d?A.invalid(d):wn(l,c,r,`format ${n}`,e,u)}static fromString(e,n,r={}){return A.fromFormat(e,n,r)}static fromSQL(e,n={}){const[r,a]=qf(e);return wn(r,a,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new Oe("need to specify a reason the DateTime is invalid");const r=e instanceof Be?e:new Be(e,n);if(ne.throwOnInvalid)throw new E4(r);return new A({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const r=Z1(e,Y.fromObject(n));return r?r.map(a=>a?a.val:null).join(""):null}static expandFormat(e,n={}){return $1(he.parseFormat(e),Y.fromObject(n)).map(a=>a.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?ri(this).weekYear:NaN}get weekNumber(){return this.isValid?ri(this).weekNumber:NaN}get weekday(){return this.isValid?ri(this).weekday:NaN}get ordinal(){return this.isValid?ti(this.c).ordinal:NaN}get monthShort(){return this.isValid?Er.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Er.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Er.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Er.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return hn(this.year)}get daysInMonth(){return vr(this.year,this.month)}get daysInYear(){return this.isValid?pn(this.year):NaN}get weeksInWeekYear(){return this.isValid?wr(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:r,calendar:a}=he.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:a}}toUTC(e=0,n={}){return this.setZone(we.instance(e),n)}toLocal(){return this.setZone(ne.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(e=lt(e,ne.defaultZone),e.equals(this.zone))return this;if(e.isValid){let a=this.ts;if(n||r){const i=e.offset(this.ts),s=this.toObject();[a]=Or(s,i,e)}return vn(this,{ts:a,zone:e})}else return A.invalid(xr(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:r}={}){const a=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:r});return vn(this,{loc:a})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=Cr(e,tl),r=!F(n.weekYear)||!F(n.weekNumber)||!F(n.weekday),a=!F(n.ordinal),i=!F(n.year),s=!F(n.month)||!F(n.day),l=i||s,c=n.weekYear||n.weekNumber;if((l||a)&&c)throw new dn("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&a)throw new dn("Can't mix ordinal dates with month/day");let u;r?u=U1({...ei(this.c),...n}):F(n.ordinal)?(u={...this.toObject(),...n},F(n.day)&&(u.day=Math.min(vr(u.year,u.month),u.day))):u=z1({...ti(this.c),...n});const[d,f]=Or(u,this.o,this.zone);return vn(this,{ts:d,o:f})}plus(e){if(!this.isValid)return this;const n=U.fromDurationLike(e);return vn(this,J1(this,n))}minus(e){if(!this.isValid)return this;const n=U.fromDurationLike(e).negate();return vn(this,J1(this,n))}startOf(e){if(!this.isValid)return this;const n={},r=U.normalizeUnit(e);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(r==="weeks"&&(n.weekday=1),r==="quarters"){const a=Math.ceil(this.month/3);n.month=(a-1)*3+1}return this.set(n)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,n={}){return this.isValid?he.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):ni}toLocaleString(e=mr,n={}){return this.isValid?he.create(this.loc.clone(n),e).formatDateTime(this):ni}toLocaleParts(e={}){return this.isValid?he.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:a=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const s=e==="extended";let l=oi(this,s);return l+="T",l+=X1(this,s,n,r,a,i),l}toISODate({format:e="extended"}={}){return this.isValid?oi(this,e==="extended"):null}toISOWeekDate(){return Ir(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:a=!1,extendedZone:i=!1,format:s="extended"}={}){return this.isValid?(a?"T":"")+X1(this,s==="extended",n,e,r,i):null}toRFC2822(){return Ir(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ir(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?oi(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let a="HH:mm:ss.SSS";return(n||e)&&(r&&(a+=" "),n?a+="z":e&&(a+="ZZ")),Ir(this,a,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():ni}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",r={}){if(!this.isValid||!e.isValid)return U.invalid("created by diffing an invalid DateTime");const a={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=K4(n).map(U.normalizeUnit),s=e.valueOf()>this.valueOf(),l=s?this:e,c=s?e:this,u=n5(l,c,i,a);return s?u.negate():u}diffNow(e="milliseconds",n={}){return this.diff(A.now(),e,n)}until(e){return this.isValid?Q.fromDateTimes(this,e):this}hasSame(e,n){if(!this.isValid)return!1;const r=e.valueOf(),a=this.setZone(e.zone,{keepLocalTime:!0});return a.startOf(n)<=r&&r<=a.endOf(n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||A.fromObject({},{zone:this.zone}),r=e.padding?this<n?-e.padding:e.padding:0;let a=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(a=e.unit,i=void 0),rl(n,this.plus(r),{...e,numeric:"always",units:a,unit:i})}toRelativeCalendar(e={}){return this.isValid?rl(e.base||A.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(A.isDateTime))throw new Oe("min requires all arguments be DateTimes");return u1(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(A.isDateTime))throw new Oe("max requires all arguments be DateTimes");return u1(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,r={}){const{locale:a=null,numberingSystem:i=null}=r,s=Y.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0});return A1(s,e,n)}static fromStringExplain(e,n,r={}){return A.fromFormatExplain(e,n,r)}static get DATE_SHORT(){return mr}static get DATE_MED(){return $s}static get DATE_MED_WITH_WEEKDAY(){return O4}static get DATE_FULL(){return As}static get DATE_HUGE(){return Zs}static get TIME_SIMPLE(){return Ls}static get TIME_WITH_SECONDS(){return Rs}static get TIME_WITH_SHORT_OFFSET(){return Fs}static get TIME_WITH_LONG_OFFSET(){return js}static get TIME_24_SIMPLE(){return Hs}static get TIME_24_WITH_SECONDS(){return Us}static get TIME_24_WITH_SHORT_OFFSET(){return zs}static get TIME_24_WITH_LONG_OFFSET(){return qs}static get DATETIME_SHORT(){return Ws}static get DATETIME_SHORT_WITH_SECONDS(){return Ks}static get DATETIME_MED(){return Ys}static get DATETIME_MED_WITH_SECONDS(){return Gs}static get DATETIME_MED_WITH_WEEKDAY(){return I4}static get DATETIME_FULL(){return Js}static get DATETIME_FULL_WITH_SECONDS(){return Xs}static get DATETIME_HUGE(){return Qs}static get DATETIME_HUGE_WITH_SECONDS(){return e1}}function kn(t){if(A.isDateTime(t))return t;if(t&&t.valueOf&&yt(t.valueOf()))return A.fromJSDate(t);if(t&&typeof t=="object")return A.fromObject(t);throw new Oe(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const S5=[o.createElementVNode("path",{d:"m3.56 7.28 2.47 2.47 8.66-8.66a.4.4 0 0 1 .68.28v4.86c0 .11-.04.21-.12.28l-9.03 9.03a.4.4 0 0 1-.57 0L.48 10.18a.4.4 0 0 1 0-.56l2.53-2.36a.4.4 0 0 1 .55 0v.02Z"},null,-1)],il=o.defineComponent({__name:"CheckMarkIcon",props:{color:{type:String,default:"black"}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",style:o.normalizeStyle({fill:t.color}),viewBox:"0 0 16 16"},S5,4))}}),E5={class:"fge-step-progress"},T5={class:"fge-step-item-counter"},x5={class:"fge-step-content"},O5=o.defineComponent({__name:"FgeStepComponent",props:{showHeader:{type:Boolean,default:!0},currentStep:{type:Number,default:1},steps:{type:Array,default:()=>[]},stepPrimaryColor:{type:String,default:"#f28b0c"},stepIconColor:{type:String,default:"#fff"},containerClass:{type:String,default:""},headerClass:{type:String,default:""}},setup(t){const e=t,n=o.computed(()=>({"--stepPrimaryColor":e.stepPrimaryColor,"--stepIconColor":e.stepIconColor})),r=o.computed(()=>100/(e.steps.length-1)*(e.currentStep===0,e.currentStep)+"%");return(a,i)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(t.containerClass),style:o.normalizeStyle(n.value)},[t.showHeader?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["fge-step",t.headerClass])},[o.createElementVNode("div",E5,[o.createElementVNode("div",{class:"fge-step-progress-bar",style:o.normalizeStyle("width:"+r.value)},null,4)]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.steps,(s,l)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["fge-step-item",{current:e.currentStep>=l,success:e.currentStep>=l}]),key:l},[o.createElementVNode("div",T5,[o.createVNode(il,{class:"icon-success",color:t.stepIconColor,alt:"Check Mark"},null,8,["color"])])],2))),128))],2)):o.createCommentVNode("",!0),o.createElementVNode("div",x5,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.steps,(s,l)=>(o.openBlock(),o.createElementBlock("div",{key:l},[t.currentStep===l?o.renderSlot(a.$slots,s.name,{key:0},void 0,!0):o.createCommentVNode("",!0)]))),128))])],6))}}),R8="",tt=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},_r=tt(O5,[["__scopeId","data-v-f96ce043"]]),$e=({error:t,setErrors:e,toast:n})=>{var a;const r=(a=t==null?void 0:t.response)==null?void 0:a.validationErrors;if(t.message&&n.add({severity:"error",summary:"Error",detail:t.message,life:5e3,group:"auth_toast"}),r){let i={};for(const[s,l]of Object.entries(r))i={...i,[s]:l[0]};e(i);return}},Vr=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])(?=.{8,15})/),Cn=new RegExp(/^[0-9]+$/),I5=new RegExp(/^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/),ii=new RegExp(/^[a-zA-Z0-9]+$/),Sn=Ui("STATE_STORE",()=>{const t=o.ref("STATE_STORE"),e=o.ref(!1);return{id:t,isLoading:e,setLoading:r=>{e.value=r}}}),_5=()=>/iPhone|iPad|iPod|Android|webOS|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);function Pr(t="fge"){const e=o.ref({whatsapp:null,telegram:null,email:null}),n=me(),r=o.ref(),a=o.ref(),i=o.ref(),s=Si(),l=kt();o.onMounted(()=>{const h=La(t+"-estados");h&&(e.value={...JSON.parse(h)})});const c=(h,m=!0)=>(e.value[h]===null||typeof e.value[h]=="number"&&e.value[h]<Date.now())&&m?(e.value[h]=A.now().plus({minutes:2}).toMillis(),Ra({name:t+"-estados",value:JSON.stringify(e.value),seconds:120}),!0):!1,u=async({callbackApi:h,code:m,counterTime:p=120,abrirTelegramDialog:y=!0})=>{const k={contacto:a.value,medio:i.value,code:m};if(c(i.value)){try{await h(k)}catch(x){l.add({severity:"error",summary:"Error!",detail:x.message,life:5e3,group:"auth_toast"})}o.nextTick(()=>{var x;(x=r.value)==null||x.reInit(p)})}else o.nextTick(()=>{o.nextTick(()=>{d(i.value)})});i.value==="telegram"&&y&&f()},d=h=>{var m;if(typeof e.value[h]=="number"&&e.value[h]>Date.now()){const p=Math.round(Math.abs(e.value[h]-Date.now())/1e3);(m=r.value)==null||m.reInit(p)}},f=()=>{s.require({header:"Confirmación vía Telegram",question:"Siga los siguientes pasos:",group:"auth_dialog",instructions:['Haz clic en el botón "Abrir" para abrir la página de Telegram.',"1. Inicia sesión en tu cuenta de Telegram.",'2. Presiona el botón "Comenzar" o "Start".','Ingrese "/start" en el chat si no encuentra el botón',"3. Copia el código en el formulario para completar el proceso de confirmación."],accept:()=>{if(_5()){const h=document.createElement("a");h.href=`tg://resolve?domain=${n.tgBot}`,h.target="_blank",h.onclick=function(){setTimeout(function(){if(document.visibilityState==="visible"){const m=window.open(`https://web.telegram.org/k/#@${n.tgBot}`,"_blank");m==null||m.focus()}h.remove()},1e3)},h.click()}else window.open(`https://web.telegram.org/k/#@${n.tgBot}`,"_blank")},acceptClass:"auth-btn-sm fge-button fge-auth-primary-button",acceptLabel:"Aceptar",acceptIcon:"hidden",rejectIcon:"hidden",rejectClass:"fge-button fge-secondary-button auth-btn-sm",rejectLabel:"Cerrar"})};return{refCounter:r,currentContacto:a,currentMedio:i,sePuedeReenviarMensaje:c,enviarMensaje:u}}function V5(){const{apiLoginInstance:t}=ur();return{onVerificarDatosRegistroApi:async i=>await t.post("/v1/validar/usuario",i).then(s=>s).catch(s=>{var l;throw(l=s.response)!=null&&l.data?s.response.data:s}),onRegistrarUsuarioApi:async i=>await t.post("/v1/registrar/usuario",i).then(s=>s).catch(s=>{var l;throw(l=s.response)!=null&&l.data?s.response.data:s}),onSolicitarCodigoVerificacionApi:async i=>await t.post("/v1/enviar/codigo/verificacion",i).then(s=>s).catch(s=>{var l;throw(l=s.response)!=null&&l.data?s.response.data:s}),onConfirmarCodigoVerificacionApi:async i=>await t.post("/v1/confirmar/codigo/verificacion",i).then(s=>s).catch(s=>{var l;throw(l=s.response)!=null&&l.data?s.response.data:s})}}function P5(){const t=[D.object().shape({ci:D.string().required().label("Cédula de identidad"),nombres:D.string().required().label("Nombre"),paterno:D.string().when("materno",([M])=>M?D.string().notRequired():D.string().required().label("Apellido paterno o materno")),materno:D.string().when("paterno",([M])=>M?D.string().notRequired():D.string().required().label("Apellido paterno o materno")),fechaNacimiento:D.mixed().required().label("Fecha de nacimiento")},[["materno","paterno"]]),D.object().shape({celular:D.string().required().matches(Cn).min(8).max(8).label("Celular"),email:D.string().email().notRequired().label("E-mail"),direccion:D.string().required().label("Dirección"),password:D.string().required().matches(Vr).min(8).max(15).label("Contraseña"),repetirPassword:D.string().required().oneOf([D.ref("password")]).label("Confirmación de la contraseña")}),D.object().shape({codigoContacto:D.string().required().matches(ii).max(10).label("Código")})],e=kt(),n=me(),r=Sn(),{onVerificarDatosRegistroApi:a,onSolicitarCodigoVerificacionApi:i,onConfirmarCodigoVerificacionApi:s,onRegistrarUsuarioApi:l}=V5(),c=o.ref([{name:"step1"},{name:"step2"},{name:"step3"}]),u=o.ref(0),d=o.computed(()=>t[u.value]),{refCounter:f,currentContacto:h,currentMedio:m,enviarMensaje:p}=Pr("registro"),y=o.reactive({verificadoEmail:!1,verificadoTelegram:!1,verificadoWhatsapp:!1}),{values:k,handleSubmit:x,errors:g,setErrors:b,validateField:T,resetForm:I,setFieldValue:O,setFieldError:w}=z.useForm({validationSchema:d,keepValuesOnUnmount:!0}),{value:N}=z.useField("fechaNacimiento"),_=o.ref();o.watch(()=>k.celular,()=>{(y.verificadoTelegram||y.verificadoWhatsapp)&&(y.verificadoTelegram=!1,y.verificadoWhatsapp=!1)}),o.watch(()=>k.email,()=>{y.verificadoEmail&&(y.verificadoEmail=!1)});const V=x(async M=>{var qe,Z,L;r.setLoading(!0);try{const X={ci:M.ci,nombres:(qe=M.nombres)==null?void 0:qe.trim(),paterno:(Z=M.paterno)==null?void 0:Z.trim(),materno:(L=M.materno)==null?void 0:L.trim(),fechaNacimiento:M.fechaNacimiento,aplicacion:n.aplicacion},pe=await a(X);u.value=u.value+1,O("codigoRegistro",pe.response.codigo)}catch(X){if(X.response&&Array.isArray(X.response)){$e({error:X.response,setErrors:b,toast:e});return}X.message&&e.add({severity:"error",summary:"Error",detail:X.message,life:5e3,group:"auth_toast"})}finally{r.setLoading(!1)}}),E=async({medio:M,contacto:qe})=>{if(M==="email"){if(!k.email){w("email","Email es requerido para verificar");return}const{valid:pe}=await T("email");if(!pe||y.verificadoEmail)return}const L=M==="telegram",X=M==="whatsapp";if(L||X){if(L&&y.verificadoTelegram||X&&y.verificadoWhatsapp)return;const{valid:pe}=await T("celular");if(!pe)return}try{m.value=M,h.value=qe,R(L),u.value=2}catch(pe){e.add({severity:"error",summary:"Error",detail:pe.message,life:5e3,group:"auth_toast"})}},B=async()=>{try{const{valid:M}=await T("codigoContacto");if(!M)return;const qe=await s({code_confirmacion:k.codigoContacto,code:k.codigoRegistro});e.add({severity:"success",summary:"Operación exitosa",detail:qe.message,life:5e3,group:"auth_toast"}),m.value==="email"?y.verificadoEmail=!0:m.value==="whatsapp"?y.verificadoWhatsapp=!0:m.value==="telegram"&&(y.verificadoTelegram=!0),u.value=u.value-1,O("codigoContacto",void 0),m.value=void 0,h.value=null}catch(M){e.add({severity:"error",summary:"Error",detail:M.message,life:5e3,group:"auth_toast"})}},R=async(M=!1)=>{p({callbackApi:i,code:k.codigoRegistro,abrirTelegramDialog:M,counterTime:120}),e.add({severity:"success",summary:"Operación realizada",detail:"Mensaje enviado!",life:5e3,group:"auth_toast"})},ue=()=>{u.value=1,O("codigoContacto",void 0)},ze=()=>{u.value=0,I()},Ze=x(async M=>{var qe,Z;r.setLoading(!0);try{const L={...M,email:(qe=M.email)==null?void 0:qe.trim(),direccion:(Z=M.direccion)==null?void 0:Z.trim(),aplicacion:n.aplicacion},X=await l(L);e.add({severity:"success",summary:"Operación realizada",detail:X.message,life:5e3,group:"auth_toast"}),r.setLoading(!1),n.goLoginPage()}catch(L){if(L.response&&Array.isArray(L.response)){$e({error:L.response,setErrors:b,toast:e});return}L.message&&e.add({severity:"error",summary:"Error",detail:L.message,life:5e3,group:"auth_toast"})}finally{r.setLoading(!1)}});return{refCounter:f,currentContacto:h,values:k,steps:c,currentStep:u,mediosVerificados:y,fechaNacimiento:N,calendarRef:_,errors:g,onValidarDatosUsuario:V,onRegistrarUsuario:Ze,onEnviarMensaje:R,onEnviarCodigoAlUsuario:E,onEnviarCodigoVerificacion:B,onCancelarVerificacion:ue,onCancelarRegistro:ze,clickCalendarBtn:()=>{var M;(M=_.value)==null||M.onButtonClick()}}}const N5={key:0,class:"fge-auth-error"},ee=o.defineComponent({__name:"FgeErrorMessage",props:{error:{required:!0}},setup(t){return(e,n)=>t.error?(o.openBlock(),o.createElementBlock("p",N5,o.toDisplayString(t.error),1)):o.createCommentVNode("",!0)}}),B5={key:0,class:"fge-gray-label"},M5=o.defineComponent({__name:"FgeButtonCounter",props:{reenviarMensaje:{type:Function,required:!0}},setup(t,{expose:e}){const n=t,r=o.ref(0),a=o.ref(),i=(l=5)=>{r.value=l,clearTimeout(a.value),s()},s=()=>{r.value>0&&(a.value=setTimeout(()=>{r.value-=1,s()},1e3))};return e({reInit:i}),(l,c)=>r.value?(o.openBlock(),o.createElementBlock("span",B5,"Reenviar código en "+o.toDisplayString(r.value)+" segundo(s)",1)):(o.openBlock(),o.createBlock(o.unref(q),{key:1,class:"fge-button fge-link-secondary-button",text:"",outlined:"",label:"Reenviar código",onClick:n.reenviarMensaje},null,8,["onClick"]))}}),D5={class:"flex flex-column"},$5={class:"formgrid grid grid-nogutter mb-40"},A5={class:"field col-12 text-left m-0"},Z5={class:"text-center mb-4"},L5={class:"fge-form-label text-center m-0"},R5=o.createElementVNode("label",{for:"codigo",class:"fge-form-label"},"Código:",-1),F5={key:0,class:"text-center mt-1"},j5={class:"formgrid grid grid-nogutter"},H5={class:"field col-12 flex justify-content-between gap-6 m-0"},Nr=o.defineComponent({__name:"FgeEnviarCodigo",props:{fieldName:{type:String,required:!0},currentContacto:{type:null,default:null,required:!0},error:{type:null,required:!0},cancelarText:{type:String,default:"Anterior"},aceptarText:{type:String,default:"Aceptar"},cancelarFunction:{type:Function,required:!1},aceptarFunction:{type:Function,required:!1},reenviarMensaje:{type:Function,required:!1},refCounter:{required:!0}},emits:["update:codigo","update:refCounter"],setup(t,{emit:e}){const n=o.ref();return o.watch(n,r=>{e("update:refCounter",r)}),(r,a)=>(o.openBlock(),o.createElementBlock("div",D5,[o.createElementVNode("div",$5,[o.createElementVNode("div",A5,[o.createElementVNode("div",Z5,[o.createElementVNode("p",L5,"Se envió un código a "+o.toDisplayString(t.currentContacto),1)]),R5,o.createVNode(o.unref(z.Field),{name:t.fieldName,id:"code",class:o.normalizeClass(["w-full fge-auth-input",{"fge-auth-input-invalid":t.error}]),as:o.unref(be)},null,8,["name","class","as"]),o.createVNode(ee,{error:t.error},null,8,["error"]),t.reenviarMensaje?(o.openBlock(),o.createElementBlock("div",F5,[o.createVNode(M5,{ref_key:"refBtnCounter",ref:n,reenviarMensaje:t.reenviarMensaje},null,8,["reenviarMensaje"])])):o.createCommentVNode("",!0)]),o.renderSlot(r.$slots,"inputs")]),o.createElementVNode("div",j5,[o.createElementVNode("div",H5,[t.cancelarFunction?(o.openBlock(),o.createBlock(o.unref(q),{key:0,title:"Volver",onClick:a[0]||(a[0]=()=>{var i;return(i=t.cancelarFunction)==null?void 0:i.call(t)}),label:t.cancelarText,class:"w-full fge-button fge-secondary-button"},null,8,["label"])):o.createCommentVNode("",!0),t.aceptarFunction?(o.openBlock(),o.createBlock(o.unref(q),{key:1,title:"Enviar código",label:t.aceptarText,onClick:a[1]||(a[1]=()=>{var i;return(i=t.aceptarFunction)==null?void 0:i.call(t)}),class:"w-full fge-button fge-auth-primary-button"},null,8,["label"])):o.createCommentVNode("",!0)])])]))}}),U5={},z5={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 231 222"},q5=[o.createStaticVNode('<path fill="#999" d="m1.46 213.06 3.16 7.56 3.17-7.56h.96v8.56h-.72v-3.73l.06-3.82-3.19 7.55h-.56l-3.18-7.52.06 3.77v3.75H.5v-8.56h.96ZM13.61 221.62h-.72v-8.56h.72v8.56ZM24.12 221.62h-.72l-4.92-7.33v7.33h-.73v-8.56h.73l4.93 7.33v-7.33h.72v8.56h-.01ZM28.98 221.62h-.72v-8.56h.72v8.56ZM37.96 219.52c0-.48-.17-.85-.5-1.13-.33-.28-.94-.54-1.83-.79-.89-.25-1.53-.52-1.94-.81-.58-.42-.87-.96-.87-1.64 0-.68.27-1.19.81-1.6.54-.41 1.23-.61 2.07-.61.57 0 1.08.11 1.53.33.45.22.8.53 1.04.92.25.39.37.83.37 1.31h-.73c0-.59-.2-1.06-.6-1.41-.4-.36-.94-.53-1.61-.53-.67 0-1.18.15-1.56.44-.39.29-.58.67-.58 1.15 0 .43.17.79.52 1.07s.91.52 1.67.73c.77.21 1.35.43 1.75.65.4.22.69.49.89.81.2.32.3.68.3 1.11 0 .68-.27 1.22-.81 1.62-.54.4-1.25.61-2.13.61-.6 0-1.16-.11-1.66-.32-.5-.21-.88-.52-1.15-.91-.27-.39-.39-.83-.39-1.33h.72c0 .6.23 1.08.68 1.43.45.35 1.05.52 1.8.52.67 0 1.2-.15 1.61-.44.4-.29.61-.68.61-1.17l-.01-.01ZM47.86 213.67h-2.93v7.95h-.72v-7.95h-2.93v-.61h6.59v.61h-.01ZM55.78 217.52h-4.01v3.5h4.61v.61h-5.33v-8.56h5.3v.61h-4.58v3.23h4.01v.61ZM62.91 218.06h-2.49v3.57h-.73v-8.56h2.78c.91 0 1.63.22 2.14.67.51.44.77 1.06.77 1.85 0 .55-.16 1.03-.48 1.45-.32.42-.75.71-1.29.87l2.14 3.65v.08h-.77l-2.07-3.57v-.01Zm-2.49-.61h2.22c.61 0 1.1-.18 1.46-.52.37-.34.55-.79.55-1.34 0-.6-.19-1.07-.58-1.41-.38-.33-.92-.5-1.62-.5h-2.04v3.77h.01ZM70.04 221.62h-.72v-8.56h.72v8.56ZM80.5 217.81c0 .79-.14 1.48-.41 2.08-.27.6-.66 1.05-1.17 1.37-.5.32-1.09.48-1.75.48-1 0-1.81-.36-2.42-1.07-.62-.72-.92-1.68-.92-2.9v-.88c0-.78.14-1.47.41-2.07.28-.6.67-1.07 1.17-1.39.5-.33 1.09-.49 1.75-.49.66 0 1.24.16 1.74.48.5.32.89.77 1.17 1.35.28.58.42 1.25.43 2.02v1.02Zm-.72-.93c0-1.03-.23-1.84-.7-2.42-.47-.58-1.1-.88-1.92-.88-.82 0-1.43.29-1.9.88-.47.59-.71 1.4-.71 2.46v.89c0 1.02.24 1.82.71 2.41.47.59 1.11.89 1.92.89.81 0 1.46-.29 1.92-.88.46-.59.69-1.4.69-2.45v-.91l-.01.01ZM89.59 218.14v3.49h-.72v-8.56h2.92c.89 0 1.59.23 2.11.68.52.45.77 1.08.77 1.88 0 .8-.25 1.42-.75 1.86-.5.44-1.21.66-2.15.66h-2.18v-.01Zm0-.61h2.19c.7 0 1.24-.17 1.6-.5.37-.33.55-.8.55-1.4 0-.6-.18-1.06-.55-1.41-.37-.35-.89-.53-1.56-.54h-2.24v3.85h.01ZM103.99 213.06v5.84c0 .58-.13 1.08-.38 1.51-.25.43-.6.75-1.06.98-.46.23-.98.34-1.57.34-.9 0-1.62-.25-2.17-.74-.54-.49-.82-1.17-.84-2.04v-5.9h.72v5.79c0 .72.21 1.28.62 1.68.41.4.97.6 1.68.6s1.26-.2 1.67-.6c.41-.4.61-.96.61-1.67v-5.8h.73l-.01.01Zm-2.26-2.32h.85l-1.36 1.65h-.62l1.12-1.65h.01ZM107.81 221.62v-8.56h2.53c.92 0 1.61.19 2.09.57.48.38.71.94.71 1.67 0 .44-.12.83-.36 1.16-.24.33-.57.56-.99.7.5.11.9.35 1.2.73.3.38.46.82.46 1.32 0 .75-.24 1.35-.73 1.77-.49.43-1.17.64-2.04.64H107.81Zm.72-4.72h1.98c.6-.01 1.07-.15 1.4-.42.33-.27.5-.67.5-1.19 0-.55-.17-.96-.51-1.22-.34-.26-.86-.39-1.56-.39h-1.81v3.23-.01Zm0 .61v3.5h2.17c.62 0 1.11-.16 1.47-.48.36-.31.54-.75.54-1.31 0-.53-.17-.94-.52-1.25-.35-.31-.83-.46-1.44-.46h-2.23.01ZM117.73 221.01h4.23v.61H117v-8.56h.73v7.95ZM126.03 221.62h-.72v-8.56h.72v8.56ZM136.23 218.95c-.1.9-.42 1.59-.97 2.07-.55.48-1.28.72-2.18.72-.64 0-1.2-.16-1.69-.48-.49-.31-.87-.77-1.13-1.35-.27-.58-.4-1.25-.41-2v-1.11c0-.76.13-1.44.4-2.03.27-.59.65-1.04 1.15-1.36.5-.32 1.07-.48 1.73-.48.92 0 1.64.25 2.17.74s.84 1.18.93 2.05h-.73c-.18-1.46-.97-2.18-2.37-2.18-.78 0-1.39.29-1.85.87-.46.58-.69 1.38-.69 2.41v1.05c0 .99.22 1.78.67 2.37.45.59 1.06.88 1.82.88s1.33-.18 1.71-.54c.38-.36.62-.91.71-1.63h.73ZM146.12 217.81c0 .79-.14 1.48-.41 2.08-.27.6-.66 1.05-1.17 1.37-.5.32-1.09.48-1.75.48-1 0-1.81-.36-2.42-1.07-.62-.72-.92-1.68-.92-2.9v-.88c0-.78.14-1.47.41-2.07.28-.6.67-1.07 1.17-1.39.5-.33 1.09-.49 1.75-.49.66 0 1.24.16 1.74.48.5.32.89.77 1.17 1.35.28.58.42 1.25.43 2.02v1.02Zm-.72-.93c0-1.03-.23-1.84-.7-2.42-.47-.58-1.1-.88-1.92-.88-.82 0-1.43.29-1.9.88-.47.59-.71 1.4-.71 2.46v.89c0 1.02.24 1.82.71 2.41.47.59 1.11.89 1.92.89.81 0 1.46-.29 1.92-.88.46-.59.69-1.4.69-2.45v-.91l-.01.01ZM154.49 221.62v-8.56h2.39c.7 0 1.33.16 1.89.48.56.32.99.78 1.3 1.37.31.59.47 1.27.47 2.03v.79c0 .77-.15 1.44-.46 2.04a3.33 3.33 0 0 1-1.31 1.37c-.56.32-1.21.48-1.94.48h-2.34Zm.72-7.95v7.34h1.62c.9 0 1.63-.3 2.17-.9.54-.6.82-1.41.82-2.43v-.75c0-.99-.27-1.78-.81-2.37-.54-.59-1.25-.89-2.12-.89h-1.68ZM168.91 217.52h-4.01v3.5h4.61v.61h-5.33v-8.56h5.3v.61h-4.58v3.23h4.01v.61ZM177.57 221.62v-8.56h2.53c.92 0 1.61.19 2.09.57.48.38.71.94.71 1.67 0 .44-.12.83-.36 1.16-.24.33-.57.56-.99.7.5.11.9.35 1.2.73.3.38.46.82.46 1.32 0 .75-.24 1.35-.73 1.77-.49.43-1.17.64-2.04.64H177.57Zm.72-4.72h1.98c.6-.01 1.07-.15 1.4-.42.33-.27.5-.67.5-1.19 0-.55-.17-.96-.51-1.22-.34-.26-.86-.39-1.56-.39h-1.81v3.23-.01Zm0 .61v3.5h2.17c.62 0 1.11-.16 1.47-.48.36-.32.54-.75.54-1.31 0-.53-.17-.94-.52-1.25-.35-.31-.83-.46-1.44-.46h-2.23.01ZM193.09 217.81c0 .79-.14 1.48-.41 2.08-.27.6-.66 1.05-1.17 1.37-.5.32-1.09.48-1.75.48-1 0-1.81-.36-2.42-1.07-.62-.72-.92-1.68-.92-2.9v-.88c0-.78.14-1.47.41-2.07.28-.6.67-1.07 1.17-1.39.5-.33 1.09-.49 1.75-.49.66 0 1.24.16 1.74.48.5.32.89.77 1.17 1.35.28.58.42 1.25.43 2.02v1.02Zm-.72-.93c0-1.03-.23-1.84-.7-2.42-.47-.58-1.1-.88-1.92-.88-.82 0-1.43.29-1.9.88-.47.59-.71 1.4-.71 2.46v.89c0 1.02.24 1.82.71 2.41.47.59 1.11.89 1.92.89.81 0 1.46-.29 1.92-.88.46-.59.69-1.4.69-2.45v-.91l-.01.01ZM197.45 221.01h4.23v.61h-4.96v-8.56h.73v7.95ZM205.75 221.62h-.72v-8.56h.72v8.56ZM212.47 220.56l.05.18.05-.18 2.69-7.5h.79l-3.19 8.56h-.69l-3.19-8.56h.79l2.69 7.5h.01ZM220 221.62h-.72v-8.56h.72v8.56ZM228.86 219.22h-3.89l-.88 2.41h-.76l3.24-8.56h.69l3.24 8.56h-.75l-.89-2.41Zm-3.66-.61h3.43l-1.72-4.67-1.72 4.67h.01Z"></path><path fill="#F29512" d="M14.27 169.66h-8.7v7.33H15.8v4.04H.5v-25.9h15.26v4.04H5.57v6.46h8.7v4.04-.01ZM34.67 172.69l.05.11c.02 2.85-.65 4.99-2.03 6.44-1.38 1.45-3.4 2.17-6.08 2.17s-4.82-.82-6.42-2.46c-1.6-1.64-2.4-3.97-2.4-6.98v-7.74c0-3 .77-5.33 2.32-6.98 1.55-1.65 3.62-2.48 6.22-2.48 2.75 0 4.83.74 6.23 2.21 1.4 1.47 2.13 3.65 2.18 6.53l-.05.11h-4.87c.07-1.7-.16-2.93-.69-3.68-.53-.75-1.46-1.13-2.79-1.13-1.14 0-2.01.44-2.61 1.34-.6.89-.91 2.24-.91 4.04v7.78c0 1.83.32 3.19.97 4.08.65.89 1.59 1.33 2.84 1.33 1.25 0 2.07-.35 2.55-1.06.48-.71.69-1.91.63-3.62h4.87l-.01-.01ZM55.23 171.73c0 3.04-.82 5.41-2.47 7.12-1.65 1.71-3.84 2.56-6.58 2.56s-4.93-.85-6.56-2.56-2.45-4.08-2.45-7.12v-7.26c0-3.02.82-5.4 2.45-7.12 1.63-1.72 3.82-2.59 6.55-2.59s4.92.86 6.58 2.59c1.66 1.73 2.49 4.1 2.49 7.12v7.26h-.01Zm-5.03-7.31c0-1.86-.34-3.26-1.03-4.2-.69-.95-1.69-1.42-3.01-1.42-1.32 0-2.32.47-2.99 1.41-.67.94-1 2.34-1 4.21v7.31c0 1.88.34 3.29 1.01 4.23.67.94 1.67 1.41 2.99 1.41 1.32 0 2.3-.47 2.99-1.41.69-.94 1.03-2.35 1.03-4.23v-7.31h.01ZM70.03 174.27c0-1.01-.26-1.81-.78-2.39-.52-.58-1.44-1.17-2.76-1.73-2.69-.94-4.71-2-6.06-3.19-1.35-1.19-2.02-2.86-2.02-5.01s.78-3.85 2.35-5.19c1.57-1.34 3.56-2 5.99-2s4.47.74 6.01 2.23 2.29 3.36 2.24 5.63l-.04.11h-4.91c0-1.19-.3-2.15-.89-2.88-.59-.73-1.43-1.1-2.51-1.1-1.01 0-1.79.31-2.36.92-.57.61-.84 1.38-.84 2.3 0 .85.31 1.56.94 2.11.63.55 1.72 1.17 3.27 1.84 2.45.83 4.3 1.88 5.54 3.16 1.24 1.28 1.86 3 1.86 5.17s-.75 4-2.24 5.27c-1.49 1.27-3.48 1.9-5.96 1.9s-4.6-.72-6.41-2.16c-1.81-1.44-2.68-3.51-2.62-6.2l.04-.11h4.93c0 1.6.34 2.75 1.01 3.45.67.7 1.7 1.05 3.06 1.05 1.07 0 1.86-.28 2.37-.85s.77-1.34.77-2.31l.02-.02ZM83.55 181.03h-5.03v-25.9h5.03v25.9ZM99.26 174.27c0-1.01-.26-1.81-.78-2.39-.52-.58-1.44-1.17-2.76-1.73-2.69-.94-4.71-2-6.06-3.19-1.35-1.19-2.02-2.86-2.02-5.01s.78-3.85 2.35-5.19c1.57-1.34 3.56-2 5.99-2s4.47.74 6.01 2.23 2.29 3.36 2.24 5.63l-.04.11h-4.91c0-1.19-.3-2.15-.89-2.88-.59-.73-1.43-1.1-2.51-1.1-1.01 0-1.79.31-2.36.92-.57.61-.84 1.38-.84 2.3 0 .85.31 1.56.94 2.11.63.55 1.72 1.17 3.27 1.84 2.45.83 4.3 1.88 5.54 3.16 1.24 1.28 1.86 3 1.86 5.17s-.75 4-2.24 5.27c-1.49 1.27-3.48 1.9-5.96 1.9s-4.6-.72-6.41-2.16c-1.81-1.44-2.68-3.51-2.62-6.2l.04-.11h4.93c0 1.6.34 2.75 1.01 3.45.67.7 1.7 1.05 3.06 1.05 1.07 0 1.86-.28 2.37-.85s.77-1.34.77-2.31l.02-.02ZM122.72 159.17h-5.83v21.86h-5.05v-21.86h-5.8v-4.04h16.69v4.04h-.01ZM138.93 169.66h-8.7v7.33h10.23v4.04h-15.3v-25.9h15.26v4.04h-10.19v6.46h8.7v4.04-.01ZM149.56 155.13l4.64 19.02h.11l4.7-19.02h6.6v25.9h-5.03v-7.52l.43-10.07-.11-.02-4.95 17.61h-3.36l-4.89-17.47-.11.02.44 9.93v7.52H143v-25.9h6.56ZM181.4 175.5h-6.83l-1.39 5.53h-5.11l7.29-25.9h5.27l7.28 25.9h-5.11l-1.41-5.53h.01Zm-5.8-4.04h4.77l-2.33-9.16h-.11l-2.33 9.16Z"></path><path fill="gray" d="M207.04 155.13h5.03v18c0 2.54-.71 4.55-2.14 6.04-1.43 1.49-3.23 2.23-5.4 2.23-2.35 0-4.21-.66-5.58-1.99s-2.03-3.28-1.98-5.87l.05-.11h4.93c0 1.36.24 2.36.72 2.99.48.63 1.1.94 1.86.94.69 0 1.28-.37 1.77-1.12.49-.75.74-1.78.74-3.11v-18ZM221.04 176.99h9.46v4.04h-14.53v-25.9h5.07v21.86ZM7.95 189.19h1.98v10.57c0 1.43-.43 2.55-1.29 3.35-.86.81-2 1.21-3.43 1.21-1.43 0-2.64-.38-3.47-1.14-.83-.76-1.24-1.82-1.24-3.19h1.97c0 .85.23 1.52.7 2s1.15.72 2.04.72c.81 0 1.47-.26 1.97-.77s.76-1.23.76-2.15v-10.6h.01ZM30.09 189.19v10.15c0 1.41-.45 2.56-1.33 3.46-.88.9-2.07 1.4-3.57 1.51l-.52.02c-1.63 0-2.94-.44-3.91-1.32-.97-.88-1.46-2.1-1.48-3.64V189.2h1.95v10.11c0 1.08.3 1.92.89 2.52.59.6 1.44.9 2.54.9s1.97-.3 2.56-.89c.59-.59.89-1.43.89-2.51v-10.12h1.98v-.02ZM43.9 197.47c-1.69-.49-2.92-1.08-3.69-1.79s-1.15-1.58-1.15-2.62c0-1.18.47-2.15 1.41-2.92s2.16-1.15 3.67-1.15c1.03 0 1.94.2 2.74.59.8.4 1.42.94 1.87 1.64.44.7.66 1.46.66 2.29h-1.98c0-.91-.29-1.62-.86-2.14-.57-.52-1.38-.78-2.43-.78-.97 0-1.73.21-2.27.64-.54.43-.81 1.02-.81 1.78 0 .61.26 1.13.77 1.55.51.42 1.39.81 2.64 1.16 1.24.35 2.21.73 2.91 1.15.7.42 1.22.91 1.56 1.47.34.56.51 1.22.51 1.98 0 1.21-.47 2.18-1.42 2.91s-2.21 1.09-3.78 1.09c-1.03 0-1.98-.2-2.87-.59-.89-.39-1.57-.93-2.06-1.62-.48-.68-.72-1.46-.72-2.33h1.98c0 .9.33 1.62 1 2.14.67.52 1.56.78 2.67.78 1.04 0 1.84-.21 2.39-.64.55-.43.83-1 .83-1.73s-.26-1.3-.77-1.7c-.51-.4-1.44-.79-2.79-1.18l-.01.02ZM68.58 190.8h-4.8v13.32h-1.96V190.8h-4.79v-1.61h11.55v1.61ZM79.21 204.12h-1.97v-14.93h1.97v14.93ZM100.09 199.38c-.18 1.58-.77 2.8-1.75 3.66-.98.86-2.29 1.29-3.91 1.29-1.76 0-3.18-.63-4.24-1.9-1.06-1.26-1.6-2.96-1.6-5.08v-1.44c0-1.39.25-2.61.74-3.66.49-1.05 1.2-1.86 2.11-2.43.91-.57 1.96-.85 3.16-.85 1.59 0 2.86.44 3.82 1.33.96.89 1.51 2.11 1.67 3.68h-1.98c-.17-1.19-.54-2.06-1.11-2.59-.57-.54-1.37-.8-2.4-.8-1.26 0-2.24.47-2.96 1.4-.72.93-1.07 2.25-1.07 3.97v1.45c0 1.62.34 2.91 1.02 3.87.68.96 1.62 1.44 2.84 1.44 1.09 0 1.93-.25 2.52-.74.59-.5.97-1.36 1.16-2.59h1.98v-.01ZM111.2 204.12h-1.97v-14.93h1.97v14.93ZM129.53 200.22h-6.26l-1.41 3.91h-2.03l5.7-14.93h1.72l5.71 14.93h-2.02l-1.43-3.91h.02Zm-5.66-1.61h5.08l-2.54-6.98-2.53 6.98h-.01ZM154.76 202.51h7.08v1.61h-9.06v-14.93h1.98v13.32ZM172.5 204.12h-1.97v-14.93h1.97v14.93ZM182.4 204.12v-14.93h4.88c1.62 0 2.84.34 3.66 1.01.82.67 1.23 1.66 1.23 2.97 0 .7-.2 1.31-.59 1.85-.39.54-.94.95-1.62 1.25.81.23 1.44.65 1.91 1.29s.7 1.39.7 2.26c0 1.34-.43 2.39-1.3 3.16-.87.77-2.1 1.15-3.68 1.15h-5.18l-.01-.01Zm1.97-8.56h2.97c.86 0 1.55-.22 2.07-.65.52-.43.77-1.02.77-1.76 0-.82-.24-1.42-.72-1.79-.48-.37-1.21-.56-2.18-.56h-2.91v4.76Zm0 1.58v5.37h3.25c.92 0 1.64-.24 2.17-.71s.8-1.13.8-1.96c0-1.8-.98-2.7-2.93-2.7H184.37ZM207.26 198.08h-3.51v6.04h-1.98v-14.93h4.94c1.68 0 2.98.38 3.88 1.15.91.77 1.36 1.88 1.36 3.34 0 .93-.25 1.74-.75 2.43-.5.69-1.2 1.21-2.1 1.55l3.51 6.34v.12h-2.11l-3.24-6.04Zm-3.51-1.61h3.03c.98 0 1.76-.25 2.33-.76.58-.51.87-1.18.87-2.03 0-.92-.28-1.63-.83-2.13-.55-.5-1.34-.74-2.38-.75h-3.02v5.67ZM229.45 197.22h-6.47v5.29h7.52v1.61h-9.49v-14.93h9.38v1.61h-7.41v4.81h6.47v1.61Z"></path><path fill="#F29512" d="M115.5.26c-35.29 0-63.89 28.6-63.89 63.89 0 10.88 2.72 21.13 7.52 30.1 1.54 1.2 3.12 2.34 4.75 3.42 12.78 8.46 27.88 13.06 43.32 13.06 5.93 0 11.91-.68 17.83-2.08 1.67-.39 3.33-.84 4.98-1.35 1.18-.36 2.36-.75 3.53-1.17 1.33-.48 2.66-1 3.98-1.55.56-.24 1.12-.48 1.67-.73a3.11 3.11 0 0 1-.12-.81c0-1.76 1.43-3.19 3.19-3.19s3.19 1.43 3.19 3.19-1.43 3.19-3.19 3.19c-.73 0-1.4-.26-1.94-.67l.04.09c-1.15.52-2.31 1.01-3.47 1.48a80.35 80.35 0 0 1-14.66 4.3l-.78.15a80.14 80.14 0 0 1-14.27 1.29c-15.87 0-31.37-4.73-44.5-13.42-.29-.19-.57-.4-.86-.59 11.38 17.57 31.16 29.19 53.65 29.19 35.29 0 63.89-28.6 63.89-63.89S150.76.27 115.47.27l.03-.01Zm3.4 14.79c4.9 0 8.86 3.97 8.86 8.86 0 4.9-3.97 8.86-8.86 8.86-4.9 0-8.86-3.97-8.86-8.86 0-4.9 3.97-8.86 8.86-8.86ZM90.85 89.53c-2.53-.82-4.87-2.12-6.81-3.89a16.944 16.944 0 0 1-4.43-6.48c-.96-2.47-1.38-5.14-1.38-7.91 0-3.03 2.46-5.48 5.48-5.48 3.02 0 5.49 2.46 5.49 5.48 0 1.68.25 2.97.63 3.94.39.98.87 1.68 1.58 2.33.73.66 1.6 1.18 2.82 1.58 1.21.39 2.78.65 4.73.64 2.11 0 3.78-.42 5.3-1.21 1.5-.79 2.47-1.72 3.28-3.06.77-1.33 1.18-2.77 1.19-4.74V40.37c0-3.03 2.46-5.48 5.48-5.48 3.02 0 5.48 2.46 5.48 5.48v30.36c.01 3.66-.88 7.24-2.72 10.33-1.8 3.07-4.48 5.57-7.66 7.21-3.16 1.65-6.71 2.45-10.35 2.44-2.87 0-5.58-.36-8.12-1.18h.01Zm61.49-2.17c-.28.66-.68 1.25-1.17 1.74-.5.5-1.09.9-1.74 1.18-.33.14-.67.24-1.03.32-.36.07-.73.11-1.11.11h-43.6.07c3.64 0 7.2-.79 10.35-2.44 3.18-1.64 5.86-4.14 7.66-7.21 1.84-3.09 2.73-6.67 2.72-10.33V40.37c0-2.09-1.18-3.88-2.9-4.81.77-.42 1.64-.68 2.59-.68 3.03 0 5.48 2.46 5.48 5.48v30.81c.07 1.74.46 3.07 1.17 4.29.81 1.34 1.78 2.27 3.28 3.06 1.31.68 2.74 1.06 4.45 1.16v.05h8.73a5.492 5.492 0 0 1 5.49 5.49c0 .76-.15 1.48-.43 2.13l-.01.01Z"></path><path fill="#F29512" d="M118.9 29.94c1.67 0 3.17-.67 4.26-1.76a5.991 5.991 0 0 0 1.76-4.26c0-1.67-.67-3.17-1.76-4.26a5.991 5.991 0 0 0-4.26-1.76c-1.67 0-3.17.67-4.26 1.76a5.991 5.991 0 0 0-1.76 4.26c0 1.67.67 3.17 1.76 4.26a5.991 5.991 0 0 0 4.26 1.76Z"></path>',5)];function W5(t,e){return o.openBlock(),o.createElementBlock("svg",z5,q5)}const K5=tt(U5,[["render",W5]]),Y5={class:"fge-logo-container"},G5=o.defineComponent({__name:"FgeHeader",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",Y5,[o.createVNode(K5)]))}}),j8="",ai=tt(G5,[["__scopeId","data-v-9acac71f"]]),J5={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 35 35"},X5=[o.createElementVNode("path",{stroke:"currentColor","stroke-width":"2",d:"M34 17.5C34 26.613 26.613 34 17.5 34S1 26.613 1 17.5 8.387 1 17.5 1 34 8.387 34 17.5Z",class:"stroke-content"},null,-1),o.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M26 15.57v7.41a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2V12.5c0-.83.67-1.5 1.5-1.5H26l-.62.605",class:"stroke-content"},null,-1),o.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m25.38 11.646-8.38 6.8-8.345-6.8",class:"stroke-content"},null,-1)];function Q5(t,e){return o.openBlock(),o.createElementBlock("svg",J5,X5)}const al={render:Q5},e6={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 33 32"},t6=[o.createElementVNode("path",{stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"2",d:"M16.95 31a15 15 0 1 0 0-30 15 15 0 0 0 0 30Z",class:"stroke-content"},null,-1),o.createElementVNode("path",{fill:"currentColor",d:"M24.25 9.91c-.06-.17-.13-.21-.23-.25-.23-.09-.63.04-.63.04S9.37 14.74 8.57 15.3c-.17.12-.23.19-.26.27-.14.4.29.57.29.57l3.61 1.18s.13.02.18-.01c.82-.52 8.27-5.22 8.7-5.38.07-.02.12 0 .1.05-.17.6-6.64 6.35-6.64 6.35l-.04.07-.34 3.58s-.14 1.1.96 0c.77-.77 1.52-1.42 1.9-1.74 1.24.86 2.58 1.81 3.16 2.3.29.25.53.29.73.28.55-.02.7-.62.7-.62s2.55-10.28 2.64-11.66l.02-.31c0-.13-.01-.26-.03-.32Z",class:"fill-content"},null,-1)];function n6(t,e){return o.openBlock(),o.createElementBlock("svg",e6,t6)}const sl={render:n6},r6={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 33 32"},o6=[o.createElementVNode("path",{stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"2",d:"M16.38 31a15 15 0 1 0 0-30 15 15 0 0 0 0 30Z",class:"stroke-content"},null,-1),o.createElementVNode("path",{stroke:"currentColor",d:"M23.59 8.97A9.54 9.54 0 0 0 8.61 20.45l-1.35 4.93 5.04-1.32A9.54 9.54 0 0 0 23.59 8.98v-.01Zm-6.73 14.64a7.92 7.92 0 0 1-4.03-1.1l-.29-.17-2.99.78.8-2.92-.19-.3a7.9 7.9 0 1 1 6.69 3.7l.01.01Zm4.34-5.92c-.24-.12-1.41-.69-1.62-.77-.22-.08-.38-.12-.53.12-.16.24-.61.77-.75.93-.14.16-.28.18-.52.06s-1-.37-1.91-1.18a7.02 7.02 0 0 1-1.32-1.65c-.14-.24-.01-.37.1-.49.11-.11.24-.28.36-.42.12-.14.16-.24.24-.4.08-.16.04-.3-.02-.42l-.73-1.76c-.19-.46-.39-.4-.53-.41h-.46a.85.85 0 0 0-.63.3c-.22.24-.83.81-.83 1.98s.85 2.3.97 2.46c.12.16 1.68 2.56 4.06 3.59.57.24 1.01.39 1.36.5.57.18 1.09.16 1.5.09.46-.07 1.41-.58 1.6-1.13.2-.56.2-1.03.14-1.13-.06-.1-.22-.16-.46-.28l-.02.01Z",class:"stroke-content","clip-rule":"evenodd"},null,-1)];function i6(t,e){return o.openBlock(),o.createElementBlock("svg",r6,o6)}const ll={render:i6},a6={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 26 27"},s6=[o.createElementVNode("path",{stroke:"#F29512","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17.879 1.109V6.63M8.109 1.11V6.63m13.357-1.705h1.068c1.056 0 1.909.93 1.909 2.087V23.83c0 1.157-.853 2.086-1.909 2.086H3.452c-1.056 0-1.908-.929-1.908-2.086V7.012c0-1.158.852-2.087 1.908-2.087h14.02"},null,-1),o.createElementVNode("path",{stroke:"#F29512","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"3",d:"M8.108 12.953v-.026m0 4.987v-.025m4.898-4.936-.025-.026m.025 4.987-.025-.025m4.898-4.936v-.026m0 4.987v-.025"},null,-1)];function l6(t,e){return o.openBlock(),o.createElementBlock("svg",a6,s6)}const c6={render:l6},Ve=t=>(o.pushScopeId("data-v-20bd75a1"),t=t(),o.popScopeId(),t),u6={class:"fge-right-container"},d6={class:"formgrid grid grid-nogutter"},f6={class:"field col-12 text-left"},m6=Ve(()=>o.createElementVNode("label",{for:"nombres",class:"fge-form-label"},"Nombres:",-1)),h6={class:"field col-12 text-left"},p6=Ve(()=>o.createElementVNode("label",{for:"paterno",class:"fge-form-label"},"Primer Apellido:",-1)),g6={class:"field col-12 text-left"},y6=Ve(()=>o.createElementVNode("label",{for:"materno",class:"fge-form-label"},"Segundo Apellido:",-1)),b6={class:"field col-12 text-left"},v6=Ve(()=>o.createElementVNode("label",{for:"fechaNacimiento",class:"fge-form-label"},"Fecha de Nacimiento:",-1)),w6={class:"relative fixed-height"},k6={class:"field col-12 text-left mb-0"},C6=Ve(()=>o.createElementVNode("label",{for:"ci",class:"fge-form-label"},"Cédula de Identidad:",-1)),S6={class:"flex flex-column fge-btn-section"},E6=Ve(()=>o.createElementVNode("div",{class:"px-1"},[o.createElementVNode("i",{class:"fge-horizontal-line"})],-1)),T6={class:"formgrid grid grid-nogutter"},x6={class:"field col-12 flex justify-content-between gap-6 mb-0"},O6={class:"formgrid grid grid-nogutter"},I6={class:"field col-12 text-left"},_6=Ve(()=>o.createElementVNode("label",{for:"celular",class:"fge-form-label"},"Celular:",-1)),V6={class:"relative"},P6={class:"field col-12 text-left"},N6=Ve(()=>o.createElementVNode("label",{for:"email",class:"fge-form-label"},"E-mail:",-1)),B6={class:"relative"},M6={class:"field col-12 text-left"},D6=Ve(()=>o.createElementVNode("label",{for:"fge_dr",class:"fge-form-label"},"Dirección:",-1)),$6={class:"field col-12 text-left"},A6=Ve(()=>o.createElementVNode("label",{for:"fge_new_password",class:"fge-form-label"},"Co­ntra­seña:",-1)),Z6={class:"field col-12 text-left mb-0"},L6=Ve(()=>o.createElementVNode("label",{for:"fge_contra_rep",class:"fge-form-label"},"Repetir con­t­ras­eña:",-1)),R6={class:"flex flex-column fge-btn-section"},F6=Ve(()=>o.createElementVNode("div",{class:"px-1"},[o.createElementVNode("i",{class:"fge-horizontal-line"})],-1)),j6={class:"formgrid grid grid-nogutter"},H6={class:"field col-12 flex justify-content-between gap-6 mb-0"},U6=o.defineComponent({__name:"FgeRegistrarPage",setup(t){const{values:e,refCounter:n,currentContacto:r,fechaNacimiento:a,steps:i,currentStep:s,mediosVerificados:l,calendarRef:c,errors:u,onValidarDatosUsuario:d,onCancelarRegistro:f,onRegistrarUsuario:h,onEnviarMensaje:m,onEnviarCodigoAlUsuario:p,onEnviarCodigoVerificacion:y,onCancelarVerificacion:k,clickCalendarBtn:x}=P5(),g=me(),b=O=>{var w;O&&(w=O.target)!=null&&w.value&&(I(O.target.value)||(O.target.value="dd/mm/yyyy",a.value=void 0))},T=o.computed({get(){return A.fromJSDate(a.value).toFormat("dd/MM/yyyy")},set(O){I(O)}}),I=O=>{const w=A.fromFormat(O,"dd/MM/yyyy");return w.isValid&&(a.value=w.toJSDate()),w.isValid};return(O,w)=>{const N=o.resolveDirective("tooltip");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(ai),o.createElementVNode("div",u6,[o.createVNode(_r,{currentStep:o.unref(s),steps:o.unref(i),showHeader:!1},{step1:o.withCtx(()=>[o.createElementVNode("div",d6,[o.createElementVNode("div",f6,[m6,o.createVNode(o.unref(z.Field),{name:"nombres",id:"nombres",class:o.normalizeClass(["w-full fge-auth-input uppercase",{"fge-auth-input-invalid":o.unref(u).nombres}]),as:o.unref(be)},null,8,["class","as"]),o.createVNode(ee,{error:o.unref(u).nombres},null,8,["error"])]),o.createElementVNode("div",h6,[p6,o.createVNode(o.unref(z.Field),{name:"paterno",id:"paterno",class:o.normalizeClass(["w-full fge-auth-input uppercase",{"fge-auth-input-invalid":o.unref(u).paterno}]),as:o.unref(be)},null,8,["class","as"]),o.createVNode(ee,{error:o.unref(u).paterno},null,8,["error"])]),o.createElementVNode("div",g6,[y6,o.createVNode(o.unref(z.Field),{name:"materno",id:"materno",class:o.normalizeClass(["w-full fge-auth-input uppercase",{"fge-auth-input-invalid":o.unref(u).materno}]),as:o.unref(be)},null,8,["class","as"]),o.createVNode(ee,{error:o.unref(u).materno},null,8,["error"])]),o.createElementVNode("div",b6,[v6,o.createElementVNode("div",w6,[o.createVNode(o.unref(Ms),{modelValue:T.value,"onUpdate:modelValue":w[0]||(w[0]=_=>T.value=_),placeholder:"dd/mm/yyyy",mask:"99/99/9999",slotChar:"dd/mm/yyyy",onBlur:b,onKeydown:o.withKeys(b,["enter"]),class:o.normalizeClass(["w-full fge-auth-input text-center",{"fge-auth-input-invalid":o.unref(u).fechaNacimiento}])},null,8,["modelValue","onKeydown","class"]),o.createVNode(o.unref(q),{class:"auth-calendar-btn",onClick:o.unref(x),text:"",rounded:""},{default:o.withCtx(()=>[o.createVNode(o.unref(c6))]),_:1},8,["onClick"]),o.createVNode(o.unref(_s),{dateFormat:"dd/mm/yy",class:"w-full hide-calendar",maxDate:new Date,modelValue:o.unref(a),"onUpdate:modelValue":w[1]||(w[1]=_=>o.isRef(a)?a.value=_:null),showOnFocus:!1,ref_key:"calendarRef",ref:c,onHide:w[2]||(w[2]=_=>b(o.unref(a)))},null,8,["maxDate","modelValue"])]),o.createVNode(ee,{error:o.unref(u).fechaNacimiento},null,8,["error"])]),o.createElementVNode("div",k6,[C6,o.createVNode(o.unref(z.Field),{name:"ci",id:"ci",class:o.normalizeClass(["w-full fge-auth-input",{"fge-auth-input-invalid":o.unref(u).ci}]),as:o.unref(be)},null,8,["class","as"]),o.createVNode(ee,{error:o.unref(u).ci},null,8,["error"])])]),o.createElementVNode("div",S6,[E6,o.createElementVNode("div",T6,[o.createElementVNode("div",x6,[o.createVNode(o.unref(q),{title:"Ir al login",label:"Ir al login",onClick:o.unref(g).goLoginPage,class:"w-full fge-button fge-secondary-button"},null,8,["onClick"]),o.createVNode(o.unref(q),{title:"Siguiente paso",label:"Siguiente",onClick:o.unref(d),class:"w-full fge-button fge-auth-primary-button"},null,8,["onClick"])])])])]),step2:o.withCtx(()=>[o.createElementVNode("div",O6,[o.createElementVNode("div",I6,[_6,o.createElementVNode("div",V6,[o.createVNode(o.unref(z.Field),{name:"celular",id:"celular",class:o.normalizeClass(["w-full fge-auth-input pr-7",{"fge-auth-input-invalid":o.unref(u).celular}]),as:o.unref(be)},null,8,["class","as"]),o.withDirectives((o.openBlock(),o.createBlock(o.unref(q),{title:"Verificar whatsapp",class:"p-2 fge-button absolute btn-absolute",onClick:w[3]||(w[3]=_=>o.unref(p)({medio:"whatsapp",contacto:o.unref(e).celular})),text:"",rounded:"",outlined:""},{default:o.withCtx(()=>[o.createVNode(o.unref(ll),{class:o.normalizeClass({"svg-primary":o.unref(l).verificadoWhatsapp,"svg-gray":!o.unref(l).verificadoWhatsapp})},null,8,["class"])]),_:1})),[[N,o.unref(l).verificadoWhatsapp?"Verificado":"Verificar",void 0,{left:!0}]]),o.withDirectives((o.openBlock(),o.createBlock(o.unref(q),{title:"Verificar telegram",class:"p-2 fge-button absolute btn-absolute-2",onClick:w[4]||(w[4]=_=>o.unref(p)({medio:"telegram",contacto:o.unref(e).celular})),text:"",rounded:"",outlined:""},{default:o.withCtx(()=>[o.createVNode(o.unref(sl),{class:o.normalizeClass({"svg-primary":o.unref(l).verificadoTelegram,"svg-gray":!o.unref(l).verificadoTelegram})},null,8,["class"])]),_:1})),[[N,o.unref(l).verificadoTelegram?"Verificado":"Verificar",void 0,{left:!0}]])]),o.createVNode(ee,{error:o.unref(u).celular},null,8,["error"])]),o.createElementVNode("div",P6,[N6,o.createElementVNode("div",B6,[o.createVNode(o.unref(z.Field),{name:"email",id:"email",class:o.normalizeClass(["w-full fge-auth-input pr-5",{"fge-auth-input-invalid":o.unref(u).email}]),as:o.unref(be)},null,8,["class","as"]),o.withDirectives((o.openBlock(),o.createBlock(o.unref(q),{title:"Verificar email",onClick:w[5]||(w[5]=_=>o.unref(p)({medio:"email",contacto:o.unref(e).email})),class:"p-2 fge-button absolute btn-absolute",text:"",rounded:"",outlined:""},{default:o.withCtx(()=>[o.createVNode(o.unref(al),{class:o.normalizeClass({"svg-primary":o.unref(l).verificadoEmail,"svg-gray":!o.unref(l).verificadoEmail})},null,8,["class"])]),_:1})),[[N,o.unref(l).verificadoEmail?"Verificado":"Verificar",void 0,{left:!0}]])]),o.createVNode(ee,{error:o.unref(u).email},null,8,["error"])]),o.createElementVNode("div",M6,[D6,o.createVNode(o.unref(z.Field),{name:"direccion",id:"fge_dr",class:o.normalizeClass(["w-full fge-auth-input",{"fge-auth-input-invalid":o.unref(u).direccion}]),as:o.unref(be)},null,8,["class","as"]),o.createVNode(ee,{error:o.unref(u).direccion},null,8,["error"])]),o.createElementVNode("div",$6,[A6,o.createVNode(o.unref(z.Field),{name:"password"},{default:o.withCtx(({field:_})=>[o.createVNode(o.unref(Xe),o.mergeProps({id:"fge_new_password",class:"w-full fge-orange-icon",inputClass:{"fge-auth-input-invalid":o.unref(u).password,"fge-auth-input":!0},feedback:!1,onKeyup:o.withKeys(o.unref(h),["enter"]),toggleMask:""},_,{modelValue:_.value}),null,16,["inputClass","onKeyup","modelValue"])]),_:1}),o.createVNode(ee,{error:o.unref(u).password},null,8,["error"])]),o.createElementVNode("div",Z6,[L6,o.createVNode(o.unref(z.Field),{name:"repetirPassword"},{default:o.withCtx(({field:_})=>[o.createVNode(o.unref(Xe),o.mergeProps({id:"fge_contra_rep",class:"w-full fge-orange-icon",inputClass:{"fge-auth-input-invalid":o.unref(u).repetirPassword,"fge-auth-input":!0},feedback:!1,onKeyup:o.withKeys(o.unref(h),["enter"]),toggleMask:""},_,{modelValue:_.value}),null,16,["inputClass","onKeyup","modelValue"])]),_:1}),o.createVNode(ee,{error:o.unref(u).repetirPassword},null,8,["error"])])]),o.createElementVNode("div",R6,[F6,o.createElementVNode("div",j6,[o.createElementVNode("div",H6,[o.createVNode(o.unref(q),{title:"Ir atras",label:"Anterior",onClick:o.unref(f),class:"w-full fge-button fge-secondary-button"},null,8,["onClick"]),o.createVNode(o.unref(q),{title:"Registrar usuario",label:"Registrar",onClick:o.unref(h),class:"w-full fge-button fge-auth-primary-button"},null,8,["onClick"])])])])]),step3:o.withCtx(()=>[o.createVNode(Nr,{fieldName:"codigoContacto",refCounter:o.unref(n),"onUpdate:refCounter":w[6]||(w[6]=_=>o.isRef(n)?n.value=_:null),error:o.unref(u).codigoContacto,currentContacto:o.unref(r),cancelarFunction:o.unref(k),aceptarFunction:o.unref(y),reenviarMensaje:()=>o.unref(m)()},null,8,["refCounter","error","currentContacto","cancelarFunction","aceptarFunction","reenviarMensaje"])]),_:1},8,["currentStep","steps"])])],64)}}}),X8="",z6=tt(U6,[["__scopeId","data-v-20bd75a1"]]),q6={class:"footer"},W6={class:"fge-version-label"},K6=o.defineComponent({__name:"FgeFooter",setup(t){const e=me();return(n,r)=>(o.openBlock(),o.createElementBlock("div",q6,[o.createElementVNode("p",W6,"Copyright Mp. Version "+o.toDisplayString(o.unref(e).systemVer),1)]))}}),Q8="",Y6=tt(K6,[["__scopeId","data-v-526e8b52"]]);var Br={name:"CheckIcon",extends:ve},G6=o.createElementVNode("path",{d:"M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",fill:"currentColor"},null,-1),J6=[G6];function X6(t,e,n,r,a,i){return o.openBlock(),o.createElementBlock("svg",o.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),J6,16)}Br.render=X6;var Q6={root:function(e){var n=e.instance,r=e.props;return["p-checkbox p-component",{"p-checkbox-checked":n.checked,"p-checkbox-disabled":r.disabled,"p-checkbox-focused":n.focused}]},input:function(e){var n=e.instance,r=e.props;return["p-checkbox-box",{"p-highlight":n.checked,"p-disabled":r.disabled,"p-focus":n.focused}]},icon:"p-checkbox-icon"},e7={name:"BaseCheckbox",extends:ye,props:{value:null,modelValue:null,binary:Boolean,name:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},css:{classes:Q6},provide:function(){return{$parentInstance:this}}};function t7(t){return i7(t)||o7(t)||r7(t)||n7()}function n7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
740
740
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r7(t,e){if(t){if(typeof t=="string")return si(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return si(t,e)}}function o7(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function i7(t){if(Array.isArray(t))return si(t)}function si(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var cl={name:"Checkbox",extends:e7,emits:["click","update:modelValue","change","input","focus","blur"],data:function(){return{focused:!1}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{checked:this.checked,focused:this.focused,disabled:this.disabled}})},onClick:function(e){var n=this;if(!this.disabled&&!this.readonly){var r;this.binary?r=this.checked?this.falseValue:this.trueValue:this.checked?r=this.modelValue.filter(function(a){return!$.equals(a,n.value)}):r=this.modelValue?[].concat(t7(this.modelValue),[this.value]):[this.value],this.$emit("click",e),this.$emit("update:modelValue",r),this.$emit("change",e),this.$emit("input",r),this.$refs.input.focus()}},onFocus:function(e){this.focused=!0,this.$emit("focus",e)},onBlur:function(e){this.focused=!1,this.$emit("blur",e)}},computed:{checked:function(){return this.binary?this.modelValue===this.trueValue:$.contains(this.value,this.modelValue)}},components:{CheckIcon:Br}};function En(t){"@babel/helpers - typeof";return En=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},En(t)}function ul(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function dl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ul(Object(n),!0).forEach(function(r){a7(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ul(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function a7(t,e,n){return e=s7(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s7(t){var e=l7(t,"string");return En(e)==="symbol"?e:String(e)}function l7(t,e){if(En(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(En(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var c7=["id","value","name","checked","tabindex","disabled","readonly","required","aria-labelledby","aria-label"],u7=["data-p-highlight","data-p-disabled","data-p-focused"];function d7(t,e,n,r,a,i){var s=o.resolveComponent("CheckIcon");return o.openBlock(),o.createElementBlock("div",o.mergeProps({class:t.cx("root"),onClick:e[2]||(e[2]=function(l){return i.onClick(l)})},i.getPTOptions("root"),{"data-pc-name":"checkbox"}),[o.createElementVNode("div",o.mergeProps({class:"p-hidden-accessible"},t.ptm("hiddenInputWrapper"),{"data-p-hidden-accessible":!0}),[o.createElementVNode("input",o.mergeProps({ref:"input",id:t.inputId,type:"checkbox",value:t.value,name:t.name,checked:i.checked,tabindex:t.tabindex,disabled:t.disabled,readonly:t.readonly,required:t.required,"aria-labelledby":t.ariaLabelledby,"aria-label":t.ariaLabel,onFocus:e[0]||(e[0]=function(l){return i.onFocus(l)}),onBlur:e[1]||(e[1]=function(l){return i.onBlur(l)})},t.ptm("hiddenInput")),null,16,c7)],16),o.createElementVNode("div",o.mergeProps({ref:"box",class:[t.cx("input"),t.inputClass],style:t.inputStyle},dl(dl({},t.inputProps),i.getPTOptions("input")),{"data-p-highlight":i.checked,"data-p-disabled":t.disabled,"data-p-focused":a.focused}),[o.renderSlot(t.$slots,"icon",{checked:i.checked,class:o.normalizeClass(t.cx("icon"))},function(){return[i.checked?(o.openBlock(),o.createBlock(s,o.mergeProps({key:0,class:t.cx("icon")},i.getPTOptions("icon")),null,16,["class"])):o.createCommentVNode("",!0)]})],16,u7)],16)}cl.render=d7;function f7(){const t=me(),e=kt();o.onMounted(()=>{r()});const n=async()=>await Ou({openWindows:!1,verifyFunctionary:t.verificarFunc}),r=()=>{const s=new URLSearchParams(window.location.search).get("agetic");if(!s)return;const l=JSON.parse(decodeURI(s));a(l)},a=async i=>{var s;if(!i.error)if(i.response.binnacleId){const l={ci:i.response.ciudadanoDigital.documento_identidad.numero_documento,binnacleId:i.response.binnacleId,appTag:t.aplicacion};await t.onLoginCiudadania(l),new URLSearchParams(window.location.search).delete("agetic"),window.history.replaceState({},"",`${window.location.pathname}`)}else e.add({severity:"error",summary:"Error",detail:(s=i.response)==null?void 0:s.message,life:5e3,group:"auth_toast"})};return{redirectCD:n}}function m7(t){const e=me(),n=Sn(),{redirectCD:r}=f7(),a=kt(),{refCounter:i,currentContacto:s}=Pr("2auth"),l=o.markRaw([{name:"step1"},{name:"step2"}]),c=[D.object().shape({usuario:D.string().required("Cédula de identidad es requerida").label("Cédula de identidad"),password:D.string().required("Contraseña es requerida").label("Contraseña")}),D.object().shape({code:D.string().matches(Cn).required().label("Código")})],u=o.ref(0),d=o.computed(()=>c[u.value]),{handleSubmit:f,values:h,errors:m,setErrors:p,resetForm:y}=z.useForm({validationSchema:d,keepValuesOnUnmount:!0}),{value:k}=z.useField("usuarioId"),x=f(async w=>{n.setLoading(!0);try{const N=await e.onLogin({...w});N!=null&&N.usuarioId?(u.value=u.value+1,s.value=N.contacto,k.value=N.usuarioId,o.nextTick(()=>{var _;(_=i.value)==null||_.reInit(60)})):t("onLogin")}catch(N){$e({error:N,toast:a,setErrors:p}),t("onError")}finally{n.setLoading(!1)}}),g=f(async w=>{try{n.setLoading(!0),await e.on2AuthLogin({...w,usuarioId:k.value,code:Number(w.code)}),t("onLogin")}catch(N){$e({error:N,toast:a,setErrors:p})}finally{n.setLoading(!1)}}),b=()=>{u.value=0,y()},T=async()=>{var w;await e.onLogin({...h}),(w=i.value)==null||w.reInit(60)},I=o.computed(()=>window.getComputedStyle(document.documentElement).getPropertyValue("--fge-primary-button-text-color"));return{schemas:c,refCounter:i,currentContacto:s,steps:l,currentStep:u,usuarioId:k,errors:m,iconColor:I,onLogin:x,on2AuthLogin:g,goLoginPage:b,onEnviarMensaje:T,loginCiudadania:async()=>{n.setLoading(!0);try{const w=await r();w&&(await e.onLoginCiudadania(w),t("onLogin"))}catch(w){a.add({severity:"error",summary:"Error",detail:w==null?void 0:w.message,life:5e3,group:"auth_toast"})}n.setLoading(!1)}}}const h7={class:"fge-right-container"},p7={class:"formgrid grid grid-nogutter"},g7={class:"field col-12 text-left"},y7=o.createElementVNode("label",{for:"usuario",class:"fge-form-label"},"Cédula de Identidad:",-1),b7={class:"field col-12 text-left mb-0"},v7=o.createElementVNode("label",{for:"password",class:"fge-form-label"},"Cont­raseña:",-1),w7={class:"flex flex-column fge-btn-section"},k7={class:""},C7={class:"flex justify-content-between"},S7=o.createElementVNode("div",{class:"text-center overflow-hidden"},[o.createElementVNode("span",{class:"fge-gray-label fge-lines"},"O puede ingresar con")],-1),E7={class:""},T7={class:"field col-12 m-0 mt-4"},x7={class:"flex align-items-center justify-content-center"},O7=o.createElementVNode("label",{for:"confDevice",class:"ml-2 mt-1 fge-gray-label text-sm"}," Dispositivo de confianza ",-1),I7=o.defineComponent({__name:"FgeLogin",emits:["onLogin","onError"],setup(t,{emit:e}){const n=me(),{refCounter:r,currentContacto:a,steps:i,currentStep:s,errors:l,iconColor:c,onLogin:u,on2AuthLogin:d,goLoginPage:f,onEnviarMensaje:h,loginCiudadania:m}=m7(e);return(p,y)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(ai),o.createElementVNode("div",h7,[o.createVNode(_r,{currentStep:o.unref(s),steps:o.unref(i),showHeader:!1},{step1:o.withCtx(()=>[o.createElementVNode("div",p7,[o.createElementVNode("div",g7,[y7,o.createVNode(o.unref(z.Field),{name:"usuario",id:"usuario",class:o.normalizeClass(["w-full fge-auth-input",{"fge-auth-input-invalid":o.unref(l).usuario}]),as:o.unref(be)},null,8,["class","as"]),o.createVNode(ee,{error:o.unref(l).usuario},null,8,["error"])]),o.createElementVNode("div",b7,[v7,o.createVNode(o.unref(z.Field),{name:"password"},{default:o.withCtx(({field:k})=>[o.createVNode(o.unref(Xe),o.mergeProps({id:"psw",class:"w-full fge-orange-icon",inputClass:{"fge-auth-input-invalid":o.unref(l).password,"fge-auth-input":!0},feedback:!1,toggleMask:""},k,{onKeyup:o.withKeys(o.unref(u),["enter"]),modelValue:k.value}),null,16,["inputClass","onKeyup","modelValue"])]),_:1}),o.createVNode(ee,{error:o.unref(l).password},null,8,["error"])])]),o.createElementVNode("div",w7,[o.createElementVNode("div",k7,[o.createVNode(o.unref(q),{title:"Iniciar sesión",label:"Ingresar",onClick:o.unref(u),class:"w-full fge-button fge-auth-primary-button"},null,8,["onClick"])]),o.createElementVNode("div",C7,[o.createVNode(o.unref(q),{class:"fge-button fge-link-secondary-button",title:"Recuperar contraseña",label:"¿Ha olvidado su contraseña?",link:"",onClick:o.unref(n).goRecuperarCont},null,8,["onClick"]),o.createVNode(o.unref(q),{class:"fge-button fge-link-primary-button",title:"Registrarse",label:"Registrarse",link:"",onClick:o.unref(n).goRegistrarPage},null,8,["onClick"])]),S7,o.createElementVNode("div",E7,[o.createVNode(o.unref(q),{title:"Iniciar sesión con ciudadanía digital",label:"Ciudadanía Digital",onClick:o.unref(m),class:"w-full fge-button fge-secondary-button"},null,8,["onClick"])])])]),step2:o.withCtx(()=>[o.createVNode(Nr,{fieldName:"code",error:o.unref(l).code,currentContacto:o.unref(a),cancelarFunction:o.unref(f),aceptarFunction:o.unref(d),"reenviar-mensaje":o.unref(h),refCounter:o.unref(r),"onUpdate:refCounter":y[0]||(y[0]=k=>o.isRef(r)?r.value=k:null)},{inputs:o.withCtx(()=>[o.createElementVNode("div",T7,[o.createElementVNode("div",x7,[o.createVNode(o.unref(z.Field),{name:"esDispositivoConfianza"},{default:o.withCtx(({field:k})=>[o.createVNode(o.unref(cl),o.mergeProps({modelValue:k.value},k,{class:"fge-auth-checkbox",inputId:"confDevice",binary:!0}),{icon:o.withCtx(()=>[o.createVNode(il,{color:o.unref(c),alt:"Check Mark"},null,8,["color"])]),_:2},1040,["modelValue"])]),_:1}),O7])])]),_:1},8,["error","currentContacto","cancelarFunction","aceptarFunction","reenviar-mensaje","refCounter"])]),_:1},8,["currentStep","steps"])])],64))}});var li={name:"ExclamationTriangleIcon",extends:ve,computed:{pathId:function(){return"pv_icon_clip_".concat(oe())}}},_7=["clipPath"],V7=o.createElementVNode("path",{d:"M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z",fill:"currentColor"},null,-1),P7=o.createElementVNode("path",{d:"M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z",fill:"currentColor"},null,-1),N7=o.createElementVNode("path",{d:"M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z",fill:"currentColor"},null,-1),B7=[V7,P7,N7],M7=["id"],D7=o.createElementVNode("rect",{width:"14",height:"14",fill:"white"},null,-1),$7=[D7];function A7(t,e,n,r,a,i){return o.openBlock(),o.createElementBlock("svg",o.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),[o.createElementVNode("g",{clipPath:"url(#".concat(i.pathId,")")},B7,8,_7),o.createElementVNode("defs",null,[o.createElementVNode("clipPath",{id:"".concat(i.pathId)},$7,8,M7)])],16)}li.render=A7;var ci={name:"InfoCircleIcon",extends:ve,computed:{pathId:function(){return"pv_icon_clip_".concat(oe())}}},Z7=["clipPath"],L7=o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z",fill:"currentColor"},null,-1),R7=[L7],F7=["id"],j7=o.createElementVNode("rect",{width:"14",height:"14",fill:"white"},null,-1),H7=[j7];function U7(t,e,n,r,a,i){return o.openBlock(),o.createElementBlock("svg",o.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),[o.createElementVNode("g",{clipPath:"url(#".concat(i.pathId,")")},R7,8,Z7),o.createElementVNode("defs",null,[o.createElementVNode("clipPath",{id:"".concat(i.pathId)},H7,8,F7)])],16)}ci.render=U7;var ui={name:"TimesIcon",extends:ve},z7=o.createElementVNode("path",{d:"M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z",fill:"currentColor"},null,-1),q7=[z7];function W7(t,e,n,r,a,i){return o.openBlock(),o.createElementBlock("svg",o.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),q7,16)}ui.render=W7;var di={name:"TimesCircleIcon",extends:ve,computed:{pathId:function(){return"pv_icon_clip_".concat(oe())}}},K7=["clipPath"],Y7=o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z",fill:"currentColor"},null,-1),G7=[Y7],J7=["id"],X7=o.createElementVNode("rect",{width:"14",height:"14",fill:"white"},null,-1),Q7=[X7];function em(t,e,n,r,a,i){return o.openBlock(),o.createElementBlock("svg",o.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),[o.createElementVNode("g",{clipPath:"url(#".concat(i.pathId,")")},G7,8,K7),o.createElementVNode("defs",null,[o.createElementVNode("clipPath",{id:"".concat(i.pathId)},Q7,8,J7)])],16)}di.render=em;function Tn(t){"@babel/helpers - typeof";return Tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tn(t)}function Mr(t,e,n){return e=tm(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tm(t){var e=nm(t,"string");return Tn(e)==="symbol"?e:String(e)}function nm(t,e){if(Tn(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Tn(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var rm=`
741
741
  .p-toast {
742
742
  width: 25rem;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fge-auth-component",
3
3
  "private": false,
4
- "version": "1.3.3",
4
+ "version": "1.3.4",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -43,7 +43,7 @@
43
43
  "dependencies": {
44
44
  "purgecss": "^5.0.0",
45
45
  "vite-svg-loader": "^4.0.0",
46
- "vue-login-adds": "0.1.8"
46
+ "vue-login-adds": "0.1.9"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@fullhuman/postcss-purgecss": "^5.0.0",