pangea-lib 3.0.34 → 3.0.36
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.
- package/dist/main.cjs.js +2 -2
- package/dist/main.es.js +8 -7
- package/package.json +1 -1
package/dist/main.cjs.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(I){return I instanceof this?I:new this(I)}static concat(I,...P){const K=new this(I);return P.forEach(Z=>K.set(Z)),K}static accessor(I){const P=(this[Y2]=this[Y2]={accessors:{}}).accessors,K=this.prototype;function Z(o1){const s1=m2(o1);P[s1]||(function(x1,V1){const L1=E.toCamelCase(" "+V1);["get","set","has"].forEach(w1=>{Object.defineProperty(x1,w1+L1,{value:function(N1,I1,J1){return this[w1].call(this,V1,N1,I1,J1)},configurable:!0})})}(K,o1),P[s1]=!0)}return E.isArray(I)?I.forEach(Z):Z(I),this}}y1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),E.reduceDescriptors(y1.prototype,({value:D},I)=>{let P=I[0].toUpperCase()+I.slice(1);return{get:()=>D,set(K){this[P]=K}}}),E.freezeMethods(y1);var m1=y1;function S1(D,I){const P=this||O1,K=I||P,Z=m1.from(K.headers);let o1=K.data;return E.forEach(D,function(s1){o1=s1.call(P,o1,Z.normalize(),I?I.status:void 0)}),Z.normalize(),o1}function T1(D){return!(!D||!D.__CANCEL__)}function Q1(D,I,P){R.call(this,D??"canceled",R.ERR_CANCELED,I,P),this.name="CanceledError"}E.inherits(Q1,R,{__CANCEL__:!0});var Q2=d2.hasStandardBrowserEnv?{write(D,I,P,K,Z,o1){const s1=[D+"="+encodeURIComponent(I)];E.isNumber(P)&&s1.push("expires="+new Date(P).toGMTString()),E.isString(K)&&s1.push("path="+K),E.isString(Z)&&s1.push("domain="+Z),o1===!0&&s1.push("secure"),document.cookie=s1.join("; ")},read(D){const I=document.cookie.match(new RegExp("(^|;\\s*)("+D+")=([^;]*)"));return I?decodeURIComponent(I[3]):null},remove(D){this.write(D,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function we(D,I){return D&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(I)?function(P,K){return K?P.replace(/\/?\/$/,"")+"/"+K.replace(/^\/+/,""):P}(D,I):I}var d3=d2.hasStandardBrowserEnv?function(){const D=/(msie|trident)/i.test(navigator.userAgent),I=document.createElement("a");let P;function K(Z){let o1=Z;return D&&(I.setAttribute("href",o1),o1=I.href),I.setAttribute("href",o1),{href:I.href,protocol:I.protocol?I.protocol.replace(/:$/,""):"",host:I.host,search:I.search?I.search.replace(/^\?/,""):"",hash:I.hash?I.hash.replace(/^#/,""):"",hostname:I.hostname,port:I.port,pathname:I.pathname.charAt(0)==="/"?I.pathname:"/"+I.pathname}}return P=K(window.location.href),function(Z){const o1=E.isString(Z)?K(Z):Z;return o1.protocol===P.protocol&&o1.host===P.host}}():function(){return!0};function j3(D,I){let P=0;const K=function(Z,o1){Z=Z||10;const s1=new Array(Z),x1=new Array(Z);let V1,L1=0,w1=0;return o1=o1!==void 0?o1:1e3,function(N1){const I1=Date.now(),J1=x1[w1];V1||(V1=I1),s1[L1]=N1,x1[L1]=I1;let U1=w1,i2=0;for(;U1!==L1;)i2+=s1[U1++],U1%=Z;if(L1=(L1+1)%Z,L1===w1&&(w1=(w1+1)%Z),I1-V1<o1)return;const O2=J1&&I1-J1;return O2?Math.round(1e3*i2/O2):void 0}}(50,250);return Z=>{const o1=Z.loaded,s1=Z.lengthComputable?Z.total:void 0,x1=o1-P,V1=K(x1);P=o1;const L1={loaded:o1,total:s1,progress:s1?o1/s1:void 0,bytes:x1,rate:V1||void 0,estimated:V1&&s1&&o1<=s1?(s1-o1)/V1:void 0,event:Z};L1[I?"download":"upload"]=!0,D(L1)}}const k2={http:null,xhr:typeof XMLHttpRequest<"u"&&function(D){return new Promise(function(I,P){let K=D.data;const Z=m1.from(D.headers).normalize();let o1,s1,{responseType:x1,withXSRFToken:V1}=D;function L1(){D.cancelToken&&D.cancelToken.unsubscribe(o1),D.signal&&D.signal.removeEventListener("abort",o1)}if(E.isFormData(K)){if(d2.hasStandardBrowserEnv||d2.hasStandardBrowserWebWorkerEnv)Z.setContentType(!1);else if((s1=Z.getContentType())!==!1){const[U1,...i2]=s1?s1.split(";").map(O2=>O2.trim()).filter(Boolean):[];Z.setContentType([U1||"multipart/form-data",...i2].join("; "))}}let w1=new XMLHttpRequest;if(D.auth){const U1=D.auth.username||"",i2=D.auth.password?unescape(encodeURIComponent(D.auth.password)):"";Z.set("Authorization","Basic "+btoa(U1+":"+i2))}const N1=we(D.baseURL,D.url);function I1(){if(!w1)return;const U1=m1.from("getAllResponseHeaders"in w1&&w1.getAllResponseHeaders());(function(i2,O2,fe){const kf=fe.config.validateStatus;fe.status&&kf&&!kf(fe.status)?O2(new R("Request failed with status code "+fe.status,[R.ERR_BAD_REQUEST,R.ERR_BAD_RESPONSE][Math.floor(fe.status/100)-4],fe.config,fe.request,fe)):i2(fe)})(function(i2){I(i2),L1()},function(i2){P(i2),L1()},{data:x1&&x1!=="text"&&x1!=="json"?w1.response:w1.responseText,status:w1.status,statusText:w1.statusText,headers:U1,config:D,request:w1}),w1=null}if(w1.open(D.method.toUpperCase(),g1(N1,D.params,D.paramsSerializer),!0),w1.timeout=D.timeout,"onloadend"in w1?w1.onloadend=I1:w1.onreadystatechange=function(){w1&&w1.readyState===4&&(w1.status!==0||w1.responseURL&&w1.responseURL.indexOf("file:")===0)&&setTimeout(I1)},w1.onabort=function(){w1&&(P(new R("Request aborted",R.ECONNABORTED,D,w1)),w1=null)},w1.onerror=function(){P(new R("Network Error",R.ERR_NETWORK,D,w1)),w1=null},w1.ontimeout=function(){let U1=D.timeout?"timeout of "+D.timeout+"ms exceeded":"timeout exceeded";const i2=D.transitional||b1;D.timeoutErrorMessage&&(U1=D.timeoutErrorMessage),P(new R(U1,i2.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,D,w1)),w1=null},d2.hasStandardBrowserEnv&&(V1&&E.isFunction(V1)&&(V1=V1(D)),V1||V1!==!1&&d3(N1))){const U1=D.xsrfHeaderName&&D.xsrfCookieName&&Q2.read(D.xsrfCookieName);U1&&Z.set(D.xsrfHeaderName,U1)}K===void 0&&Z.setContentType(null),"setRequestHeader"in w1&&E.forEach(Z.toJSON(),function(U1,i2){w1.setRequestHeader(i2,U1)}),E.isUndefined(D.withCredentials)||(w1.withCredentials=!!D.withCredentials),x1&&x1!=="json"&&(w1.responseType=D.responseType),typeof D.onDownloadProgress=="function"&&w1.addEventListener("progress",j3(D.onDownloadProgress,!0)),typeof D.onUploadProgress=="function"&&w1.upload&&w1.upload.addEventListener("progress",j3(D.onUploadProgress)),(D.cancelToken||D.signal)&&(o1=U1=>{w1&&(P(!U1||U1.type?new Q1(null,D,w1):U1),w1.abort(),w1=null)},D.cancelToken&&D.cancelToken.subscribe(o1),D.signal&&(D.signal.aborted?o1():D.signal.addEventListener("abort",o1)));const J1=function(U1){const i2=/^([-+\w]{1,25})(:?\/\/|:)/.exec(U1);return i2&&i2[1]||""}(N1);J1&&d2.protocols.indexOf(J1)===-1?P(new R("Unsupported protocol "+J1+":",R.ERR_BAD_REQUEST,D)):w1.send(K||null)})}};E.forEach(k2,(D,I)=>{if(D){try{Object.defineProperty(D,"name",{value:I})}catch{}Object.defineProperty(D,"adapterName",{value:I})}});const xe=D=>`- ${D}`,X4=D=>E.isFunction(D)||D===null||D===!1;var K4=D=>{D=E.isArray(D)?D:[D];const{length:I}=D;let P,K;const Z={};for(let o1=0;o1<I;o1++){let s1;if(P=D[o1],K=P,!X4(P)&&(K=k2[(s1=String(P)).toLowerCase()],K===void 0))throw new R(`Unknown adapter '${s1}'`);if(K)break;Z[s1||"#"+o1]=K}if(!K){const o1=Object.entries(Z).map(([s1,x1])=>`adapter ${s1} `+(x1===!1?"is not supported by the environment":"is not available in the build"));throw new R("There is no suitable adapter to dispatch the request "+(I?o1.length>1?`since :
|
|
4
4
|
`+o1.map(xe).join(`
|
|
5
5
|
`):" "+xe(o1[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return K};function Z4(D){if(D.cancelToken&&D.cancelToken.throwIfRequested(),D.signal&&D.signal.aborted)throw new Q1(null,D)}function M0(D){return Z4(D),D.headers=m1.from(D.headers),D.data=S1.call(D,D.transformRequest),["post","put","patch"].indexOf(D.method)!==-1&&D.headers.setContentType("application/x-www-form-urlencoded",!1),K4(D.adapter||O1.adapter)(D).then(function(I){return Z4(D),I.data=S1.call(D,D.transformResponse,I),I.headers=m1.from(I.headers),I},function(I){return T1(I)||(Z4(D),I&&I.response&&(I.response.data=S1.call(D,D.transformResponse,I.response),I.response.headers=m1.from(I.response.headers))),Promise.reject(I)})}const z0=D=>D instanceof m1?{...D}:D;function T3(D,I){I=I||{};const P={};function K(L1,w1,N1){return E.isPlainObject(L1)&&E.isPlainObject(w1)?E.merge.call({caseless:N1},L1,w1):E.isPlainObject(w1)?E.merge({},w1):E.isArray(w1)?w1.slice():w1}function Z(L1,w1,N1){return E.isUndefined(w1)?E.isUndefined(L1)?void 0:K(void 0,L1,N1):K(L1,w1,N1)}function o1(L1,w1){if(!E.isUndefined(w1))return K(void 0,w1)}function s1(L1,w1){return E.isUndefined(w1)?E.isUndefined(L1)?void 0:K(void 0,L1):K(void 0,w1)}function x1(L1,w1,N1){return N1 in I?K(L1,w1):N1 in D?K(void 0,L1):void 0}const V1={url:o1,method:o1,data:o1,baseURL:s1,transformRequest:s1,transformResponse:s1,paramsSerializer:s1,timeout:s1,timeoutMessage:s1,withCredentials:s1,withXSRFToken:s1,adapter:s1,responseType:s1,xsrfCookieName:s1,xsrfHeaderName:s1,onUploadProgress:s1,onDownloadProgress:s1,decompress:s1,maxContentLength:s1,maxBodyLength:s1,beforeRedirect:s1,transport:s1,httpAgent:s1,httpsAgent:s1,cancelToken:s1,socketPath:s1,responseEncoding:s1,validateStatus:x1,headers:(L1,w1)=>Z(z0(L1),z0(w1),!0)};return E.forEach(Object.keys(Object.assign({},D,I)),function(L1){const w1=V1[L1]||Z,N1=w1(D[L1],I[L1],L1);E.isUndefined(N1)&&w1!==x1||(P[L1]=N1)}),P}const Ue={};["object","boolean","number","function","string","symbol"].forEach((D,I)=>{Ue[D]=function(P){return typeof P===D||"a"+(I<1?"n ":" ")+D}});const Q4={};Ue.transitional=function(D,I,P){function K(Z,o1){return"[Axios v1.6.8] Transitional option '"+Z+"'"+o1+(P?". "+P:"")}return(Z,o1,s1)=>{if(D===!1)throw new R(K(o1," has been removed"+(I?" in "+I:"")),R.ERR_DEPRECATED);return I&&!Q4[o1]&&(Q4[o1]=!0,console.warn(K(o1," has been deprecated since v"+I+" and will be removed in the near future"))),!D||D(Z,o1,s1)}};var Tt={assertOptions:function(D,I,P){if(typeof D!="object")throw new R("options must be an object",R.ERR_BAD_OPTION_VALUE);const K=Object.keys(D);let Z=K.length;for(;Z-- >0;){const o1=K[Z],s1=I[o1];if(s1){const x1=D[o1],V1=x1===void 0||s1(x1,o1,D);if(V1!==!0)throw new R("option "+o1+" must be "+V1,R.ERR_BAD_OPTION_VALUE)}else if(P!==!0)throw new R("Unknown option "+o1,R.ERR_BAD_OPTION)}},validators:Ue};const X=Tt.validators;class r1{constructor(I){this.defaults=I,this.interceptors={request:new k1,response:new k1}}async request(I,P){try{return await this._request(I,P)}catch(K){if(K instanceof Error){let Z;Error.captureStackTrace?Error.captureStackTrace(Z={}):Z=new Error;const o1=Z.stack?Z.stack.replace(/^.+\n/,""):"";K.stack?o1&&!String(K.stack).endsWith(o1.replace(/^.+\n.+\n/,""))&&(K.stack+=`
|
|
6
|
-
`+o1):K.stack=o1}throw K}}_request(I,P){typeof I=="string"?(P=P||{}).url=I:P=I||{},P=T3(this.defaults,P);const{transitional:K,paramsSerializer:Z,headers:o1}=P;K!==void 0&&Tt.assertOptions(K,{silentJSONParsing:X.transitional(X.boolean),forcedJSONParsing:X.transitional(X.boolean),clarifyTimeoutError:X.transitional(X.boolean)},!1),Z!=null&&(E.isFunction(Z)?P.paramsSerializer={serialize:Z}:Tt.assertOptions(Z,{encode:X.function,serialize:X.function},!0)),P.method=(P.method||this.defaults.method||"get").toLowerCase();let s1=o1&&E.merge(o1.common,o1[P.method]);o1&&E.forEach(["delete","get","head","post","put","patch","common"],U1=>{delete o1[U1]}),P.headers=m1.concat(s1,o1);const x1=[];let V1=!0;this.interceptors.request.forEach(function(U1){typeof U1.runWhen=="function"&&U1.runWhen(P)===!1||(V1=V1&&U1.synchronous,x1.unshift(U1.fulfilled,U1.rejected))});const L1=[];let w1;this.interceptors.response.forEach(function(U1){L1.push(U1.fulfilled,U1.rejected)});let N1,I1=0;if(!V1){const U1=[M0.bind(this),void 0];for(U1.unshift.apply(U1,x1),U1.push.apply(U1,L1),N1=U1.length,w1=Promise.resolve(P);I1<N1;)w1=w1.then(U1[I1++],U1[I1++]);return w1}N1=x1.length;let J1=P;for(I1=0;I1<N1;){const U1=x1[I1++],i2=x1[I1++];try{J1=U1(J1)}catch(O2){i2.call(this,O2);break}}try{w1=M0.call(this,J1)}catch(U1){return Promise.reject(U1)}for(I1=0,N1=L1.length;I1<N1;)w1=w1.then(L1[I1++],L1[I1++]);return w1}getUri(I){return g1(we((I=T3(this.defaults,I)).baseURL,I.url),I.params,I.paramsSerializer)}}E.forEach(["delete","get","head","options"],function(D){r1.prototype[D]=function(I,P){return this.request(T3(P||{},{method:D,url:I,data:(P||{}).data}))}}),E.forEach(["post","put","patch"],function(D){function I(P){return function(K,Z,o1){return this.request(T3(o1||{},{method:D,headers:P?{"Content-Type":"multipart/form-data"}:{},url:K,data:Z}))}}r1.prototype[D]=I(),r1.prototype[D+"Form"]=I(!0)});var Q=r1;class e1{constructor(I){if(typeof I!="function")throw new TypeError("executor must be a function.");let P;this.promise=new Promise(function(Z){P=Z});const K=this;this.promise.then(Z=>{if(!K._listeners)return;let o1=K._listeners.length;for(;o1-- >0;)K._listeners[o1](Z);K._listeners=null}),this.promise.then=Z=>{let o1;const s1=new Promise(x1=>{K.subscribe(x1),o1=x1}).then(Z);return s1.cancel=function(){K.unsubscribe(o1)},s1},I(function(Z,o1,s1){K.reason||(K.reason=new Q1(Z,o1,s1),P(K.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(I){this.reason?I(this.reason):this._listeners?this._listeners.push(I):this._listeners=[I]}unsubscribe(I){if(!this._listeners)return;const P=this._listeners.indexOf(I);P!==-1&&this._listeners.splice(P,1)}static source(){let I;return{token:new e1(function(P){I=P}),cancel:I}}}var c1=e1;const i1={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(i1).forEach(([D,I])=>{i1[I]=D});var C1=i1;const M1=function D(I){const P=new Q(I),K=l(Q.prototype.request,P);return E.extend(K,Q.prototype,P,{allOwnKeys:!0}),E.extend(K,P,null,{allOwnKeys:!0}),K.create=function(Z){return D(T3(I,Z))},K}(O1);M1.Axios=Q,M1.CanceledError=Q1,M1.CancelToken=c1,M1.isCancel=T1,M1.VERSION="1.6.8",M1.toFormData=z1,M1.AxiosError=R,M1.Cancel=M1.CanceledError,M1.all=function(D){return Promise.all(D)},M1.spread=function(D){return function(I){return D.apply(null,I)}},M1.isAxiosError=function(D){return E.isObject(D)&&D.isAxiosError===!0},M1.mergeConfig=T3,M1.AxiosHeaders=m1,M1.formToJSON=D=>G1(E.isHTMLForm(D)?new FormData(D):D),M1.getAdapter=K4,M1.HttpStatusCode=C1,M1.default=M1,c.exports=M1}},r={};function n(c){var i=r[c];if(i!==void 0)return i.exports;var s=r[c]={exports:{}};return a[c].call(s.exports,s,s.exports,n),s.exports}return n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),n(927)})())})(Sp);var Fe=Sp.exports,A4;let Z2=(A4=class{constructor(t){v1(this,"config");this.config=t}static init(t){if(A4.instance)throw new Error("Config is already initialized");A4.instance=new A4(t)}static getConfig(){if(!A4.instance)throw new Error("Config is not initialized. Call init() first.");return A4.instance.config}},v1(A4,"instance"),A4);const h4=R4.defineStore("pga-app-options",()=>{const e=o.ref(!1),t=o.ref({language:"es",theme:"light"}),a=o.computed({get(){return t.value.language},set(l){t.value.language=l}}),r=o.computed({get(){return t.value.theme},set(l){t.value.theme=l}});o.watch(r,()=>co());function n(l){e.value||(e.value=!0,t.value=Fe.mergeDeep(t.value,l))}function c(l){a.value=l}function i(l){r.value=l}function s(){r.value=r.value==="light"?"dark":"light"}return{options:t,language:a,theme:r,init:n,setLanguage:c,setTheme:i,changeTheme:s}},{persist:!0}),$3=R4.defineStore("pga-route",()=>{const e=o.ref(),t=o.ref(!no()),a=o.computed(()=>Yp(e.value)),r=o.computed(()=>{var s;return pn(a.value,(s=e.value)==null?void 0:s.name)}),n=o.computed(()=>{var s;return(s=e.value)==null?void 0:s.meta.access}),c=o.computed(()=>{var s;return!!((s=e.value)!=null&&s.meta.preventDisplayNavigationBars)}),i=o.computed(()=>!c.value&&t.value);return{currentRoute:e,isSideBarOpen:t,currentRouteType:a,currentRouteTitle:r,currentRouteAccess:n,preventDisplayNavigationBars:c,isDisplayingSideBar:i}}),fT={es:{successfulLogout:"¡Vuelva pronto!"}},uT={es:{today:"Hoy",tomorrow:"Mañana",yesterday:"Ayer"}},dT={es:{alertTitle:"¿Estás seguro?",cancelBtn:"Cancelar",acceptBtn:"Eliminar"}},hT={es:{INTERNAL_SERVER_ERROR:"Ha ocurrido un error",DUPLICATE_KEY:"Item ya creado",FOREIGN_KEY_INTEGRITY:"El item no existe",MODELS_ASSOCIATED:"No se puede eliminar porque tiene items asociados",INVALID_INPUT_DATA:"Los datos ingresados no son correctos",ENTITY_NOT_FOUND:"El item no existe",INVALID_CREDENTIALS:"Usuario o contraseña incorrectos",UNAUTHORIZED:"No autorizado"}},mT={es:{LOGIN:"¡Bienvenido!"}},pT={es:{backBtn:"Volver",deleteBtn:"Eliminar",confirmDeleteText:"",editBtn:"Editar",logoutBtn:"Cerrar sesión",navigateToBtn:"Ir al detalle",seeDetailsBtn:"Detalles"}},vT={es:{noItemsText:"No hay resultados",showAll:"Mostrar todo",hide:"Ocultar"}},gT={es:{savedMsg:"Guardado",saveErrorMsg:"Texto demasiado largo"}},yT={es:{submitBtn:"Guardar",selectFileLabel:"Seleccionar archivo",selectFilesLabel:"Seleccionar archivos",removeBtn:"Eliminar archivo",newFileError:"Formato inválido",requiredLabel:"Requerido",optionalLabel:"Opcional",usernameLabel:"Usuario",passwordLabel:"Contraseña",loginBtn:"Iniciar sesión",emptyOptionsText:"No hay opciones",cancelBtn:"Cancelar",selectBtn:"Seleccionar"}},xT={es:{selectFileLabel:"Seleccionar imágenes",confirmDeleteText:"La imagen se eliminará permanentemente.",maxImagesQuantityAlert:"Solo puede cargar {maxQuantity} imágenes"}},bT={es:{header:{switchToLightMode:"Cambiar a modo claro",switchToDarkMode:"Cambiar a modo oscuro",logout:"Cerrar sesión"},footer:{allRightsReserved:"Todos los derechos reservados",designedBy:"Diseñado por"}}},CT={es:{cancelBtn:"Cancelar",acceptBtn:"Guardar"}},MT={es:{columnTitleActions:"",selectAllBtn:"Seleccionar todo",withTheSelectedItemsText:"Con los seleccionados:",filtersBtn:"Filtros",filtersModalTitle:"Filtros",confirmDeleteText:'¿Eliminar "{description}"?'}},zT={es:{removeAllBtn:"Eliminar todo"}},wT={es:{requiredRuleError:"Campo requerido",minLengthRuleError:"Longitud mínima: {length} caracteres",maxLengthRuleError:"Longitud máxima: {length} caracteres",integerRuleError:"Ingrese un valor entero",lessEqualRuleError:"Ingrese un valor menor o igual a {number}",greaterEqualRuleError:"Ingrese un valor mayor o igual a {number}",lessThanRuleError:"Ingrese un valor menor a {number}",greaterThanRuleError:"Ingrese un valor mayor a {number}"}},_T={authHelpers:fT,datetime:uT,alert:dT,apiConnectionsError:hT,apiConnectionsSuccess:mT,pgaButton:pT,pgaDisplay:vT,pgaEditor:gT,pgaForm:yT,pgaImage:xT,pgaLayout:bT,pgaModal:CT,pgaTable:MT,notifications:zT,validations:wT};function Ap(e){function t(a,r){return function(n,c,i){var y;const s=h4().language,l=e==null?void 0:e[a],f=l==null?void 0:l[s],u=r?r.split(".").reduce((x,C)=>x==null?void 0:x[C],f):f,d=(y=e==null?void 0:e.global)==null?void 0:y[s],h=n,m=(u==null?void 0:u[h])||(d==null?void 0:d[h])||"",v=(c==null?void 0:c.count)||0,p=m.split("|").map(x=>x.trim());let g=p[0];p.length===2?g=v===1?p[0]:p[1]:p.length===3&&(g=v===0?p[0]:v===1?p[1]:p[2]),g=g.replace(new RegExp("{count}","g"),v.toString());for(const x in c||{})x!=="count"&&c[x]!==void 0&&c[x]!==null&&(g=g.replace(new RegExp(`{${x}}`,"g"),c[x].toString()));return i!=null&&i.singular?g=p[0]:i!=null&&i.uppercase&&p.length===2&&(g=p[1]),i!=null&&i.lowercase?g.toLowerCase():i!=null&&i.uppercase?g.toUpperCase():i!=null&&i.capitalize?`${g.charAt(0).toUpperCase()}${g.slice(1).toLowerCase()}`:g}}return t}const _2=Ap(_T),kT=_2("authHelpers");function Tp(){const e=Z2.getConfig().stores.useAuthStore(),t=$3().currentRouteType,a=`auth${Fe.getFirstChartInUppercase(t)}`;return!!e[a].accessToken&&!!e[a].user.id}function Ep(){const e=Z2.getConfig().stores.useAuthStore(),t=$3().currentRouteType,a=`auth${Fe.getFirstChartInUppercase(t)}`;return e[a].accessToken}async function Np(e,t,a){const r=Z2.getConfig(),n=r.stores.useAuthStore(),c=`authentication/login/${e}`,i={basicAuth:t,isLoadingRef:a==null?void 0:a.isLoadingRef},s=await r.api.postOne(c,void 0,i);n.setAuthUser(e,s.data);const l={name:(a==null?void 0:a.redirectToName)||r.defaultRoutes[e].auth};r.router.push(l)}async function Dp(){const e=Z2.getConfig(),t=e.stores.useAuthStore(),a=$3().currentRouteType;try{const r=`authentication/validateAccessToken/${a}`,n=await e.api.getOne(r,void 0,void 0,{preventDisplayError:!0});t.setAuthUser(a,n.data)}catch{t.setAuthUser(a)}}function Op(e){const t=Z2.getConfig();t.stores.useAuthStore().setAuthUser(e),T4("success",()=>kT("successfulLogout"));const r={name:`login${Fe.getFirstChartInUppercase(e)}`};t.router.push(r)}function sc(e,t,a){const r=document.querySelector(":root"),n="--pga-",c=a!=null&&a.preventConvertToKebab?e:Fe.camelToKebab(e);r.style.setProperty(`${n}${c}`,t)}function oc(e){const t=e?"visible":"hidden";document.body.style.overflow=t}function HT(e,t,a="animate__"){return new Promise(r=>{const n=`${a}${t}`,c=document.querySelector(e);if(!c)return;c.classList.add(`${a}animated`,n);const i=s=>{s.stopPropagation(),c==null||c.classList.remove(`${a}animated`,n),r("Animation ended")};c.addEventListener("animationend",i,{once:!0})})}function mn(e){return Object.keys(Vp).includes(e)}function Pp(e,t){let a=0,r=0,n=0,c=0;if(e.startsWith("rgb")||e.startsWith("rgba")){const s=e.replace(/rgba?\((.*?)\)/,"$1").replace(/\s/g,""),[,l,f,u,d="1"]=s.match(/(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?/);a=parseInt(l),r=parseInt(f),n=parseInt(u),c=parseFloat(d)}if(e.startsWith("#")){let s=e;s.length===4&&(s="#"+s[1]+s[1]+s[2]+s[2]+s[3]+s[3]);let[,l,f,u,d]=s.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i).map((h,m)=>m===4?parseInt(h,16)/255:parseInt(h,16));d=d?parseFloat(d.toFixed(3)):1,a=l,r=f,n=u,c=d}const i=t/100;return`rgba(${a}, ${r}, ${n}, ${c*i})`}function Ls(e,t){const r=`color-${Fe.camelToKebab(e)}`,n={preventConvertToKebab:!0};sc(r,t,n);for(let c=5;c<=95;c+=5){const i=c<10?`0${c}`:c%10===0?`${c/10}`:`${c}`;sc(`${r}-0${i}`,Pp(t,c),n)}}function VT(){const e=Lp,t=Math.floor(Math.random()*Object.keys(e).length);return e[Object.keys(e)[t]]}const yi=_2("datetime");function m4(e,t){if(!e)return"-";const r={...{format:"short",withoutYear:!1,withoutDay:!1,withTime:!0,justTime:!1},...t},n={year:r.withoutYear||r.justTime?void 0:"numeric",month:r.justTime?void 0:r.format==="numeric"?"2-digit":r.format,day:r.withoutDay||r.justTime?void 0:"2-digit",weekday:r.withoutDay||r.justTime||r.format==="numeric"?void 0:r.format,hour:r.withTime||r.justTime?"2-digit":void 0,minute:r.withTime||r.justTime?"2-digit":void 0},c=e.toLocaleString(h4().language,n);return c.charAt(0).toUpperCase()+c.slice(1)}function LT(e){return m4(e,{format:"short",withoutDay:!0,withTime:!1})}function Wa(e){return m4(e,{format:"numeric",withTime:!1})}function Ss(e){if(!e)return"";const t=Wa(e),a=new Date,r=new Date(a);r.setDate(a.getDate()+1);const n=new Date(a);if(n.setDate(a.getDate()-1),t===Wa(a))return yi("today");if(t===Wa(r))return yi("tomorrow");if(t===Wa(n))return yi("yesterday");const c={format:"long",withTime:!1};return e.getFullYear()===a.getFullYear()?m4(e,{...c,withoutYear:!0}):m4(e,c)}function lc(e){return m4(e,{justTime:!0})}function Bp(e){if(!e)return!1;let t=e;const a=["http://","https://"];for(const r of a)if(e.startsWith(r)){t=e.replace(r,"");break}return t=t.replace(/:(\d*)$/,""),window.location.href.includes(t)}const Fp=["production","demo","testing","development"];function ST(e,t){if(t)return t;for(const a of Fp)for(const r of e[a])if(Bp(r))return a;throw Error("Incorrect URL")}/*! @license DOMPurify 3.2.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.3/LICENSE */const{entries:Rp,setPrototypeOf:Hf,isFrozen:AT,getPrototypeOf:TT,getOwnPropertyDescriptor:ET}=Object;let{freeze:f3,seal:R3,create:Ip}=Object,{apply:As,construct:Ts}=typeof Reflect<"u"&&Reflect;f3||(f3=function(t){return t});R3||(R3=function(t){return t});As||(As=function(t,a,r){return t.apply(a,r)});Ts||(Ts=function(t,a){return new t(...a)});const Gn=_3(Array.prototype.forEach),Vf=_3(Array.prototype.pop),Ma=_3(Array.prototype.push),P8=_3(String.prototype.toLowerCase),xi=_3(String.prototype.toString),Lf=_3(String.prototype.match),za=_3(String.prototype.replace),NT=_3(String.prototype.indexOf),DT=_3(String.prototype.trim),K3=_3(Object.prototype.hasOwnProperty),n3=_3(RegExp.prototype.test),wa=OT(TypeError);function _3(e){return function(t){for(var a=arguments.length,r=new Array(a>1?a-1:0),n=1;n<a;n++)r[n-1]=arguments[n];return As(e,t,r)}}function OT(e){return function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return Ts(e,a)}}function s2(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:P8;Hf&&Hf(e,null);let r=t.length;for(;r--;){let n=t[r];if(typeof n=="string"){const c=a(n);c!==n&&(AT(t)||(t[r]=c),n=c)}e[n]=!0}return e}function PT(e){for(let t=0;t<e.length;t++)K3(e,t)||(e[t]=null);return e}function S0(e){const t=Ip(null);for(const[a,r]of Rp(e))K3(e,a)&&(Array.isArray(r)?t[a]=PT(r):r&&typeof r=="object"&&r.constructor===Object?t[a]=S0(r):t[a]=r);return t}function _a(e,t){for(;e!==null;){const r=ET(e,t);if(r){if(r.get)return _3(r.get);if(typeof r.value=="function")return _3(r.value)}e=TT(e)}function a(){return null}return a}const Sf=f3(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),bi=f3(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ci=f3(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),BT=f3(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Mi=f3(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),FT=f3(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Af=f3(["#text"]),Tf=f3(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),zi=f3(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ef=f3(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Xn=f3(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),RT=R3(/\{\{[\w\W]*|[\w\W]*\}\}/gm),IT=R3(/<%[\w\W]*|[\w\W]*%>/gm),$T=R3(/\$\{[\w\W]*}/gm),UT=R3(/^data-[\-\w.\u00B7-\uFFFF]+$/),WT=R3(/^aria-[\-\w]+$/),$p=R3(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),qT=R3(/^(?:\w+script|data):/i),jT=R3(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Up=R3(/^html$/i),YT=R3(/^[a-z][.\w]*(-[.\w]+)+$/i);var Nf=Object.freeze({__proto__:null,ARIA_ATTR:WT,ATTR_WHITESPACE:jT,CUSTOM_ELEMENT:YT,DATA_ATTR:UT,DOCTYPE_NAME:Up,ERB_EXPR:IT,IS_ALLOWED_URI:$p,IS_SCRIPT_OR_DATA:qT,MUSTACHE_EXPR:RT,TMPLIT_EXPR:$T});const ka={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},GT=function(){return typeof window>"u"?null:window},XT=function(t,a){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";a&&a.hasAttribute(n)&&(r=a.getAttribute(n));const c="dompurify"+(r?"#"+r:"");try{return t.createPolicy(c,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+c+" could not be created."),null}},Df=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Wp(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:GT();const t=I=>Wp(I);if(t.version="3.2.3",t.removed=[],!e||!e.document||e.document.nodeType!==ka.document)return t.isSupported=!1,t;let{document:a}=e;const r=a,n=r.currentScript,{DocumentFragment:c,HTMLTemplateElement:i,Node:s,Element:l,NodeFilter:f,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:m}=e,v=l.prototype,p=_a(v,"cloneNode"),g=_a(v,"remove"),y=_a(v,"nextSibling"),x=_a(v,"childNodes"),C=_a(v,"parentNode");if(typeof i=="function"){const I=a.createElement("template");I.content&&I.content.ownerDocument&&(a=I.content.ownerDocument)}let b,M="";const{implementation:w,createNodeIterator:z,createDocumentFragment:H,getElementsByTagName:A}=a,{importNode:V}=r;let k=Df();t.isSupported=typeof Rp=="function"&&typeof C=="function"&&w&&w.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:_,ERB_EXPR:N,TMPLIT_EXPR:q,DATA_ATTR:S,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:J,CUSTOM_ELEMENT:Y}=Nf;let{IS_ALLOWED_URI:G}=Nf,B=null;const T=s2({},[...Sf,...bi,...Ci,...Mi,...Af]);let L=null;const W=s2({},[...Tf,...zi,...Ef,...Xn]);let j=Object.seal(Ip(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),E=null,R=null,a1=!0,n1=!0,t1=!1,d1=!0,F=!1,p1=!0,z1=!1,h1=!1,l1=!1,f1=!1,u1=!1,g1=!1,k1=!0,b1=!1;const H1="user-content-";let F1=!0,$1=!1,W1={},K1=null;const d2=s2({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let G1=null;const j2=s2({},["audio","video","img","source","image","track"]);let O1=null;const c2=s2({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Y2="http://www.w3.org/1998/Math/MathML",m2="http://www.w3.org/2000/svg",A2="http://www.w3.org/1999/xhtml";let Pe=A2,y1=!1,m1=null;const S1=s2({},[Y2,m2,A2],xi);let T1=s2({},["mi","mo","mn","ms","mtext"]),Q1=s2({},["annotation-xml"]);const Q2=s2({},["title","style","font","a","script"]);let we=null;const d3=["application/xhtml+xml","text/html"],j3="text/html";let k2=null,xe=null;const X4=a.createElement("form"),K4=function(P){return P instanceof RegExp||P instanceof Function},Z4=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(xe&&xe===P)){if((!P||typeof P!="object")&&(P={}),P=S0(P),we=d3.indexOf(P.PARSER_MEDIA_TYPE)===-1?j3:P.PARSER_MEDIA_TYPE,k2=we==="application/xhtml+xml"?xi:P8,B=K3(P,"ALLOWED_TAGS")?s2({},P.ALLOWED_TAGS,k2):T,L=K3(P,"ALLOWED_ATTR")?s2({},P.ALLOWED_ATTR,k2):W,m1=K3(P,"ALLOWED_NAMESPACES")?s2({},P.ALLOWED_NAMESPACES,xi):S1,O1=K3(P,"ADD_URI_SAFE_ATTR")?s2(S0(c2),P.ADD_URI_SAFE_ATTR,k2):c2,G1=K3(P,"ADD_DATA_URI_TAGS")?s2(S0(j2),P.ADD_DATA_URI_TAGS,k2):j2,K1=K3(P,"FORBID_CONTENTS")?s2({},P.FORBID_CONTENTS,k2):d2,E=K3(P,"FORBID_TAGS")?s2({},P.FORBID_TAGS,k2):{},R=K3(P,"FORBID_ATTR")?s2({},P.FORBID_ATTR,k2):{},W1=K3(P,"USE_PROFILES")?P.USE_PROFILES:!1,a1=P.ALLOW_ARIA_ATTR!==!1,n1=P.ALLOW_DATA_ATTR!==!1,t1=P.ALLOW_UNKNOWN_PROTOCOLS||!1,d1=P.ALLOW_SELF_CLOSE_IN_ATTR!==!1,F=P.SAFE_FOR_TEMPLATES||!1,p1=P.SAFE_FOR_XML!==!1,z1=P.WHOLE_DOCUMENT||!1,f1=P.RETURN_DOM||!1,u1=P.RETURN_DOM_FRAGMENT||!1,g1=P.RETURN_TRUSTED_TYPE||!1,l1=P.FORCE_BODY||!1,k1=P.SANITIZE_DOM!==!1,b1=P.SANITIZE_NAMED_PROPS||!1,F1=P.KEEP_CONTENT!==!1,$1=P.IN_PLACE||!1,G=P.ALLOWED_URI_REGEXP||$p,Pe=P.NAMESPACE||A2,T1=P.MATHML_TEXT_INTEGRATION_POINTS||T1,Q1=P.HTML_INTEGRATION_POINTS||Q1,j=P.CUSTOM_ELEMENT_HANDLING||{},P.CUSTOM_ELEMENT_HANDLING&&K4(P.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=P.CUSTOM_ELEMENT_HANDLING.tagNameCheck),P.CUSTOM_ELEMENT_HANDLING&&K4(P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),P.CUSTOM_ELEMENT_HANDLING&&typeof P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(j.allowCustomizedBuiltInElements=P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),F&&(n1=!1),u1&&(f1=!0),W1&&(B=s2({},Af),L=[],W1.html===!0&&(s2(B,Sf),s2(L,Tf)),W1.svg===!0&&(s2(B,bi),s2(L,zi),s2(L,Xn)),W1.svgFilters===!0&&(s2(B,Ci),s2(L,zi),s2(L,Xn)),W1.mathMl===!0&&(s2(B,Mi),s2(L,Ef),s2(L,Xn))),P.ADD_TAGS&&(B===T&&(B=S0(B)),s2(B,P.ADD_TAGS,k2)),P.ADD_ATTR&&(L===W&&(L=S0(L)),s2(L,P.ADD_ATTR,k2)),P.ADD_URI_SAFE_ATTR&&s2(O1,P.ADD_URI_SAFE_ATTR,k2),P.FORBID_CONTENTS&&(K1===d2&&(K1=S0(K1)),s2(K1,P.FORBID_CONTENTS,k2)),F1&&(B["#text"]=!0),z1&&s2(B,["html","head","body"]),B.table&&(s2(B,["tbody"]),delete E.tbody),P.TRUSTED_TYPES_POLICY){if(typeof P.TRUSTED_TYPES_POLICY.createHTML!="function")throw wa('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof P.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw wa('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');b=P.TRUSTED_TYPES_POLICY,M=b.createHTML("")}else b===void 0&&(b=XT(m,n)),b!==null&&typeof M=="string"&&(M=b.createHTML(""));f3&&f3(P),xe=P}},M0=s2({},[...bi,...Ci,...BT]),z0=s2({},[...Mi,...FT]),T3=function(P){let K=C(P);(!K||!K.tagName)&&(K={namespaceURI:Pe,tagName:"template"});const Z=P8(P.tagName),o1=P8(K.tagName);return m1[P.namespaceURI]?P.namespaceURI===m2?K.namespaceURI===A2?Z==="svg":K.namespaceURI===Y2?Z==="svg"&&(o1==="annotation-xml"||T1[o1]):!!M0[Z]:P.namespaceURI===Y2?K.namespaceURI===A2?Z==="math":K.namespaceURI===m2?Z==="math"&&Q1[o1]:!!z0[Z]:P.namespaceURI===A2?K.namespaceURI===m2&&!Q1[o1]||K.namespaceURI===Y2&&!T1[o1]?!1:!z0[Z]&&(Q2[Z]||!M0[Z]):!!(we==="application/xhtml+xml"&&m1[P.namespaceURI]):!1},Ue=function(P){Ma(t.removed,{element:P});try{C(P).removeChild(P)}catch{g(P)}},Q4=function(P,K){try{Ma(t.removed,{attribute:K.getAttributeNode(P),from:K})}catch{Ma(t.removed,{attribute:null,from:K})}if(K.removeAttribute(P),P==="is")if(f1||u1)try{Ue(K)}catch{}else try{K.setAttribute(P,"")}catch{}},Tt=function(P){let K=null,Z=null;if(l1)P="<remove></remove>"+P;else{const x1=Lf(P,/^[\r\n\t ]+/);Z=x1&&x1[0]}we==="application/xhtml+xml"&&Pe===A2&&(P='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+P+"</body></html>");const o1=b?b.createHTML(P):P;if(Pe===A2)try{K=new h().parseFromString(o1,we)}catch{}if(!K||!K.documentElement){K=w.createDocument(Pe,"template",null);try{K.documentElement.innerHTML=y1?M:o1}catch{}}const s1=K.body||K.documentElement;return P&&Z&&s1.insertBefore(a.createTextNode(Z),s1.childNodes[0]||null),Pe===A2?A.call(K,z1?"html":"body")[0]:z1?K.documentElement:s1},X=function(P){return z.call(P.ownerDocument||P,P,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},r1=function(P){return P instanceof d&&(typeof P.nodeName!="string"||typeof P.textContent!="string"||typeof P.removeChild!="function"||!(P.attributes instanceof u)||typeof P.removeAttribute!="function"||typeof P.setAttribute!="function"||typeof P.namespaceURI!="string"||typeof P.insertBefore!="function"||typeof P.hasChildNodes!="function")},Q=function(P){return typeof s=="function"&&P instanceof s};function e1(I,P,K){Gn(I,Z=>{Z.call(t,P,K,xe)})}const c1=function(P){let K=null;if(e1(k.beforeSanitizeElements,P,null),r1(P))return Ue(P),!0;const Z=k2(P.nodeName);if(e1(k.uponSanitizeElement,P,{tagName:Z,allowedTags:B}),P.hasChildNodes()&&!Q(P.firstElementChild)&&n3(/<[/\w]/g,P.innerHTML)&&n3(/<[/\w]/g,P.textContent)||P.nodeType===ka.progressingInstruction||p1&&P.nodeType===ka.comment&&n3(/<[/\w]/g,P.data))return Ue(P),!0;if(!B[Z]||E[Z]){if(!E[Z]&&C1(Z)&&(j.tagNameCheck instanceof RegExp&&n3(j.tagNameCheck,Z)||j.tagNameCheck instanceof Function&&j.tagNameCheck(Z)))return!1;if(F1&&!K1[Z]){const o1=C(P)||P.parentNode,s1=x(P)||P.childNodes;if(s1&&o1){const x1=s1.length;for(let V1=x1-1;V1>=0;--V1){const L1=p(s1[V1],!0);L1.__removalCount=(P.__removalCount||0)+1,o1.insertBefore(L1,y(P))}}}return Ue(P),!0}return P instanceof l&&!T3(P)||(Z==="noscript"||Z==="noembed"||Z==="noframes")&&n3(/<\/no(script|embed|frames)/i,P.innerHTML)?(Ue(P),!0):(F&&P.nodeType===ka.text&&(K=P.textContent,Gn([_,N,q],o1=>{K=za(K,o1," ")}),P.textContent!==K&&(Ma(t.removed,{element:P.cloneNode()}),P.textContent=K)),e1(k.afterSanitizeElements,P,null),!1)},i1=function(P,K,Z){if(k1&&(K==="id"||K==="name")&&(Z in a||Z in X4))return!1;if(!(n1&&!R[K]&&n3(S,K))){if(!(a1&&n3(O,K))){if(!L[K]||R[K]){if(!(C1(P)&&(j.tagNameCheck instanceof RegExp&&n3(j.tagNameCheck,P)||j.tagNameCheck instanceof Function&&j.tagNameCheck(P))&&(j.attributeNameCheck instanceof RegExp&&n3(j.attributeNameCheck,K)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(K))||K==="is"&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&n3(j.tagNameCheck,Z)||j.tagNameCheck instanceof Function&&j.tagNameCheck(Z))))return!1}else if(!O1[K]){if(!n3(G,za(Z,J,""))){if(!((K==="src"||K==="xlink:href"||K==="href")&&P!=="script"&&NT(Z,"data:")===0&&G1[P])){if(!(t1&&!n3(U,za(Z,J,"")))){if(Z)return!1}}}}}}return!0},C1=function(P){return P!=="annotation-xml"&&Lf(P,Y)},M1=function(P){e1(k.beforeSanitizeAttributes,P,null);const{attributes:K}=P;if(!K||r1(P))return;const Z={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:L,forceKeepAttr:void 0};let o1=K.length;for(;o1--;){const s1=K[o1],{name:x1,namespaceURI:V1,value:L1}=s1,w1=k2(x1);let N1=x1==="value"?L1:DT(L1);if(Z.attrName=w1,Z.attrValue=N1,Z.keepAttr=!0,Z.forceKeepAttr=void 0,e1(k.uponSanitizeAttribute,P,Z),N1=Z.attrValue,b1&&(w1==="id"||w1==="name")&&(Q4(x1,P),N1=H1+N1),p1&&n3(/((--!?|])>)|<\/(style|title)/i,N1)){Q4(x1,P);continue}if(Z.forceKeepAttr||(Q4(x1,P),!Z.keepAttr))continue;if(!d1&&n3(/\/>/i,N1)){Q4(x1,P);continue}F&&Gn([_,N,q],J1=>{N1=za(N1,J1," ")});const I1=k2(P.nodeName);if(i1(I1,w1,N1)){if(b&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!V1)switch(m.getAttributeType(I1,w1)){case"TrustedHTML":{N1=b.createHTML(N1);break}case"TrustedScriptURL":{N1=b.createScriptURL(N1);break}}try{V1?P.setAttributeNS(V1,x1,N1):P.setAttribute(x1,N1),r1(P)?Ue(P):Vf(t.removed)}catch{}}}e1(k.afterSanitizeAttributes,P,null)},D=function I(P){let K=null;const Z=X(P);for(e1(k.beforeSanitizeShadowDOM,P,null);K=Z.nextNode();)e1(k.uponSanitizeShadowNode,K,null),c1(K),M1(K),K.content instanceof c&&I(K.content);e1(k.afterSanitizeShadowDOM,P,null)};return t.sanitize=function(I){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=null,Z=null,o1=null,s1=null;if(y1=!I,y1&&(I="<!-->"),typeof I!="string"&&!Q(I))if(typeof I.toString=="function"){if(I=I.toString(),typeof I!="string")throw wa("dirty is not a string, aborting")}else throw wa("toString is not a function");if(!t.isSupported)return I;if(h1||Z4(P),t.removed=[],typeof I=="string"&&($1=!1),$1){if(I.nodeName){const L1=k2(I.nodeName);if(!B[L1]||E[L1])throw wa("root node is forbidden and cannot be sanitized in-place")}}else if(I instanceof s)K=Tt("<!---->"),Z=K.ownerDocument.importNode(I,!0),Z.nodeType===ka.element&&Z.nodeName==="BODY"||Z.nodeName==="HTML"?K=Z:K.appendChild(Z);else{if(!f1&&!F&&!z1&&I.indexOf("<")===-1)return b&&g1?b.createHTML(I):I;if(K=Tt(I),!K)return f1?null:g1?M:""}K&&l1&&Ue(K.firstChild);const x1=X($1?I:K);for(;o1=x1.nextNode();)c1(o1),M1(o1),o1.content instanceof c&&D(o1.content);if($1)return I;if(f1){if(u1)for(s1=H.call(K.ownerDocument);K.firstChild;)s1.appendChild(K.firstChild);else s1=K;return(L.shadowroot||L.shadowrootmode)&&(s1=V.call(r,s1,!0)),s1}let V1=z1?K.outerHTML:K.innerHTML;return z1&&B["!doctype"]&&K.ownerDocument&&K.ownerDocument.doctype&&K.ownerDocument.doctype.name&&n3(Up,K.ownerDocument.doctype.name)&&(V1="<!DOCTYPE "+K.ownerDocument.doctype.name+`>
|
|
6
|
+
`+o1):K.stack=o1}throw K}}_request(I,P){typeof I=="string"?(P=P||{}).url=I:P=I||{},P=T3(this.defaults,P);const{transitional:K,paramsSerializer:Z,headers:o1}=P;K!==void 0&&Tt.assertOptions(K,{silentJSONParsing:X.transitional(X.boolean),forcedJSONParsing:X.transitional(X.boolean),clarifyTimeoutError:X.transitional(X.boolean)},!1),Z!=null&&(E.isFunction(Z)?P.paramsSerializer={serialize:Z}:Tt.assertOptions(Z,{encode:X.function,serialize:X.function},!0)),P.method=(P.method||this.defaults.method||"get").toLowerCase();let s1=o1&&E.merge(o1.common,o1[P.method]);o1&&E.forEach(["delete","get","head","post","put","patch","common"],U1=>{delete o1[U1]}),P.headers=m1.concat(s1,o1);const x1=[];let V1=!0;this.interceptors.request.forEach(function(U1){typeof U1.runWhen=="function"&&U1.runWhen(P)===!1||(V1=V1&&U1.synchronous,x1.unshift(U1.fulfilled,U1.rejected))});const L1=[];let w1;this.interceptors.response.forEach(function(U1){L1.push(U1.fulfilled,U1.rejected)});let N1,I1=0;if(!V1){const U1=[M0.bind(this),void 0];for(U1.unshift.apply(U1,x1),U1.push.apply(U1,L1),N1=U1.length,w1=Promise.resolve(P);I1<N1;)w1=w1.then(U1[I1++],U1[I1++]);return w1}N1=x1.length;let J1=P;for(I1=0;I1<N1;){const U1=x1[I1++],i2=x1[I1++];try{J1=U1(J1)}catch(O2){i2.call(this,O2);break}}try{w1=M0.call(this,J1)}catch(U1){return Promise.reject(U1)}for(I1=0,N1=L1.length;I1<N1;)w1=w1.then(L1[I1++],L1[I1++]);return w1}getUri(I){return g1(we((I=T3(this.defaults,I)).baseURL,I.url),I.params,I.paramsSerializer)}}E.forEach(["delete","get","head","options"],function(D){r1.prototype[D]=function(I,P){return this.request(T3(P||{},{method:D,url:I,data:(P||{}).data}))}}),E.forEach(["post","put","patch"],function(D){function I(P){return function(K,Z,o1){return this.request(T3(o1||{},{method:D,headers:P?{"Content-Type":"multipart/form-data"}:{},url:K,data:Z}))}}r1.prototype[D]=I(),r1.prototype[D+"Form"]=I(!0)});var Q=r1;class e1{constructor(I){if(typeof I!="function")throw new TypeError("executor must be a function.");let P;this.promise=new Promise(function(Z){P=Z});const K=this;this.promise.then(Z=>{if(!K._listeners)return;let o1=K._listeners.length;for(;o1-- >0;)K._listeners[o1](Z);K._listeners=null}),this.promise.then=Z=>{let o1;const s1=new Promise(x1=>{K.subscribe(x1),o1=x1}).then(Z);return s1.cancel=function(){K.unsubscribe(o1)},s1},I(function(Z,o1,s1){K.reason||(K.reason=new Q1(Z,o1,s1),P(K.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(I){this.reason?I(this.reason):this._listeners?this._listeners.push(I):this._listeners=[I]}unsubscribe(I){if(!this._listeners)return;const P=this._listeners.indexOf(I);P!==-1&&this._listeners.splice(P,1)}static source(){let I;return{token:new e1(function(P){I=P}),cancel:I}}}var c1=e1;const i1={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(i1).forEach(([D,I])=>{i1[I]=D});var C1=i1;const M1=function D(I){const P=new Q(I),K=l(Q.prototype.request,P);return E.extend(K,Q.prototype,P,{allOwnKeys:!0}),E.extend(K,P,null,{allOwnKeys:!0}),K.create=function(Z){return D(T3(I,Z))},K}(O1);M1.Axios=Q,M1.CanceledError=Q1,M1.CancelToken=c1,M1.isCancel=T1,M1.VERSION="1.6.8",M1.toFormData=z1,M1.AxiosError=R,M1.Cancel=M1.CanceledError,M1.all=function(D){return Promise.all(D)},M1.spread=function(D){return function(I){return D.apply(null,I)}},M1.isAxiosError=function(D){return E.isObject(D)&&D.isAxiosError===!0},M1.mergeConfig=T3,M1.AxiosHeaders=m1,M1.formToJSON=D=>G1(E.isHTMLForm(D)?new FormData(D):D),M1.getAdapter=K4,M1.HttpStatusCode=C1,M1.default=M1,c.exports=M1}},r={};function n(c){var i=r[c];if(i!==void 0)return i.exports;var s=r[c]={exports:{}};return a[c].call(s.exports,s,s.exports,n),s.exports}return n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),n(927)})())})(Sp);var Fe=Sp.exports,A4;let Z2=(A4=class{constructor(t){v1(this,"config");this.config=t}static init(t){if(A4.instance)throw new Error("Config is already initialized");A4.instance=new A4(t)}static getConfig(){if(!A4.instance)throw new Error("Config is not initialized. Call init() first.");return A4.instance.config}},v1(A4,"instance"),A4);const h4=R4.defineStore("pga-app-options",()=>{const e=o.ref(!1),t=o.ref({language:"es",theme:"light"}),a=o.computed({get(){return t.value.language},set(l){t.value.language=l}}),r=o.computed({get(){return t.value.theme},set(l){t.value.theme=l}});o.watch(r,()=>co());function n(l){e.value||(e.value=!0,t.value=Fe.mergeDeep(t.value,l))}function c(l){a.value=l}function i(l){r.value=l}function s(){r.value=r.value==="light"?"dark":"light"}return{options:t,language:a,theme:r,init:n,setLanguage:c,setTheme:i,changeTheme:s}},{persist:!0}),$3=R4.defineStore("pga-route",()=>{const e=o.ref(),t=o.ref(!no()),a=o.computed(()=>Yp(e.value)),r=o.computed(()=>{var s;return pn(a.value,(s=e.value)==null?void 0:s.name)}),n=o.computed(()=>{var s;return(s=e.value)==null?void 0:s.meta.access}),c=o.computed(()=>{var s;return!!((s=e.value)!=null&&s.meta.preventDisplayNavigationBars)}),i=o.computed(()=>!c.value&&t.value);return{currentRoute:e,isSideBarOpen:t,currentRouteType:a,currentRouteTitle:r,currentRouteAccess:n,preventDisplayNavigationBars:c,isDisplayingSideBar:i}}),fT={es:{successfulLogout:"¡Vuelva pronto!"}},uT={es:{today:"Hoy",tomorrow:"Mañana",yesterday:"Ayer"}},dT={es:{alertTitle:"¿Estás seguro?",cancelBtn:"Cancelar",acceptBtn:"Eliminar"}},hT={es:{INTERNAL_SERVER_ERROR:"Ha ocurrido un error",DUPLICATE_KEY:"Item ya creado",FOREIGN_KEY_INTEGRITY:"El item no existe",MODELS_ASSOCIATED:"No se puede eliminar porque tiene items asociados",INVALID_INPUT_DATA:"Los datos ingresados no son correctos",ENTITY_NOT_FOUND:"El item no existe",INVALID_CREDENTIALS:"Usuario o contraseña incorrectos",UNAUTHORIZED:"No autorizado"}},mT={es:{LOGIN:"¡Bienvenido!"}},pT={es:{backBtn:"Volver",deleteBtn:"Eliminar",confirmDeleteText:"",editBtn:"Editar",logoutBtn:"Cerrar sesión",navigateToBtn:"Ir al detalle",seeDetailsBtn:"Detalles"}},vT={es:{noItemsText:"No hay resultados",showAll:"Mostrar todo",hide:"Ocultar"}},gT={es:{savedMsg:"Guardado",saveErrorMsg:"Texto demasiado largo"}},yT={es:{submitBtn:"Guardar",selectFileLabel:"Seleccionar archivo",selectFilesLabel:"Seleccionar archivos",removeBtn:"Eliminar archivo",newFileError:"Formato inválido",requiredLabel:"Requerido",optionalLabel:"Opcional",usernameLabel:"Usuario",passwordLabel:"Contraseña",loginBtn:"Iniciar sesión",emptyOptionsText:"No hay opciones",cancelBtn:"Cancelar",selectBtn:"Seleccionar"}},xT={es:{selectFileLabel:"Seleccionar imágenes",confirmDeleteText:"La imagen se eliminará permanentemente.",maxImagesQuantityAlert:"Solo puede cargar {maxQuantity} imágenes"}},bT={es:{header:{switchToLightMode:"Cambiar a modo claro",switchToDarkMode:"Cambiar a modo oscuro",logout:"Cerrar sesión"},footer:{allRightsReserved:"Todos los derechos reservados",designedBy:"Diseñado por"}}},CT={es:{cancelBtn:"Cancelar",acceptBtn:"Guardar"}},MT={es:{columnTitleActions:"",selectAllBtn:"Seleccionar todo",withTheSelectedItemsText:"Con los seleccionados:",filtersBtn:"Filtros",filtersModalTitle:"Filtros",confirmDeleteText:'¿Eliminar "{description}"?'}},zT={es:{removeAllBtn:"Eliminar todo"}},wT={es:{requiredRuleError:"Campo requerido",minLengthRuleError:"Longitud mínima: {length} caracteres",maxLengthRuleError:"Longitud máxima: {length} caracteres",integerRuleError:"Ingrese un valor entero",lessEqualRuleError:"Ingrese un valor menor o igual a {number}",greaterEqualRuleError:"Ingrese un valor mayor o igual a {number}",lessThanRuleError:"Ingrese un valor menor a {number}",greaterThanRuleError:"Ingrese un valor mayor a {number}"}},_T={authHelpers:fT,datetime:uT,alert:dT,apiConnectionsError:hT,apiConnectionsSuccess:mT,pgaButton:pT,pgaDisplay:vT,pgaEditor:gT,pgaForm:yT,pgaImage:xT,pgaLayout:bT,pgaModal:CT,pgaTable:MT,notifications:zT,validations:wT};function Ap(e){function t(a,r){return function(n,c,i){var y;const s=h4().language,l=e==null?void 0:e[a],f=l==null?void 0:l[s],u=r?r.split(".").reduce((x,C)=>x==null?void 0:x[C],f):f,d=(y=e==null?void 0:e.global)==null?void 0:y[s],h=n,m=(u==null?void 0:u[h])||(d==null?void 0:d[h])||"",v=(c==null?void 0:c.count)||0,p=m.split("|").map(x=>x.trim());let g=p[0];p.length===2?g=v===1?p[0]:p[1]:p.length===3&&(g=v===0?p[0]:v===1?p[1]:p[2]),g=g.replace(new RegExp("{count}","g"),v.toString());for(const x in c||{})x!=="count"&&c[x]!==void 0&&c[x]!==null&&(g=g.replace(new RegExp(`{${x}}`,"g"),c[x].toString()));return i!=null&&i.singular?g=p[0]:i!=null&&i.uppercase&&p.length===2&&(g=p[1]),i!=null&&i.lowercase?g.toLowerCase():i!=null&&i.uppercase?g.toUpperCase():i!=null&&i.capitalize?`${g.charAt(0).toUpperCase()}${g.slice(1).toLowerCase()}`:g}}return t}const _2=Ap(_T),kT=_2("authHelpers");function Tp(){const e=Z2.getConfig().stores.useAuthStore(),t=$3().currentRouteType,a=`auth${Fe.getFirstChartInUppercase(t)}`;return!!e[a].accessToken&&!!e[a].user.id}function Ep(){console.log("getAccessToken");const e=Z2.getConfig().stores.useAuthStore();console.log("currentRouteType");const t=$3().currentRouteType;console.log(t),console.log("getFirstChartInUppercase");const a=`auth${Fe.getFirstChartInUppercase(t)}`;return console.log("return"),e[a].accessToken}async function Np(e,t,a){const r=Z2.getConfig(),n=r.stores.useAuthStore(),c=`authentication/login/${e}`,i={basicAuth:t,isLoadingRef:a==null?void 0:a.isLoadingRef},s=await r.api.postOne(c,void 0,i);n.setAuthUser(e,s.data);const l={name:(a==null?void 0:a.redirectToName)||r.defaultRoutes[e].auth};r.router.push(l)}async function Dp(){const e=Z2.getConfig(),t=e.stores.useAuthStore(),a=$3().currentRouteType;try{const r=`authentication/validateAccessToken/${a}`,n=await e.api.getOne(r,void 0,void 0,{preventDisplayError:!0});t.setAuthUser(a,n.data)}catch{t.setAuthUser(a)}}function Op(e){const t=Z2.getConfig();t.stores.useAuthStore().setAuthUser(e),T4("success",()=>kT("successfulLogout"));const r={name:`login${Fe.getFirstChartInUppercase(e)}`};t.router.push(r)}function sc(e,t,a){const r=document.querySelector(":root"),n="--pga-",c=a!=null&&a.preventConvertToKebab?e:Fe.camelToKebab(e);r.style.setProperty(`${n}${c}`,t)}function oc(e){const t=e?"visible":"hidden";document.body.style.overflow=t}function HT(e,t,a="animate__"){return new Promise(r=>{const n=`${a}${t}`,c=document.querySelector(e);if(!c)return;c.classList.add(`${a}animated`,n);const i=s=>{s.stopPropagation(),c==null||c.classList.remove(`${a}animated`,n),r("Animation ended")};c.addEventListener("animationend",i,{once:!0})})}function mn(e){return Object.keys(Vp).includes(e)}function Pp(e,t){let a=0,r=0,n=0,c=0;if(e.startsWith("rgb")||e.startsWith("rgba")){const s=e.replace(/rgba?\((.*?)\)/,"$1").replace(/\s/g,""),[,l,f,u,d="1"]=s.match(/(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?/);a=parseInt(l),r=parseInt(f),n=parseInt(u),c=parseFloat(d)}if(e.startsWith("#")){let s=e;s.length===4&&(s="#"+s[1]+s[1]+s[2]+s[2]+s[3]+s[3]);let[,l,f,u,d]=s.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i).map((h,m)=>m===4?parseInt(h,16)/255:parseInt(h,16));d=d?parseFloat(d.toFixed(3)):1,a=l,r=f,n=u,c=d}const i=t/100;return`rgba(${a}, ${r}, ${n}, ${c*i})`}function Ls(e,t){const r=`color-${Fe.camelToKebab(e)}`,n={preventConvertToKebab:!0};sc(r,t,n);for(let c=5;c<=95;c+=5){const i=c<10?`0${c}`:c%10===0?`${c/10}`:`${c}`;sc(`${r}-0${i}`,Pp(t,c),n)}}function VT(){const e=Lp,t=Math.floor(Math.random()*Object.keys(e).length);return e[Object.keys(e)[t]]}const yi=_2("datetime");function m4(e,t){if(!e)return"-";const r={...{format:"short",withoutYear:!1,withoutDay:!1,withTime:!0,justTime:!1},...t},n={year:r.withoutYear||r.justTime?void 0:"numeric",month:r.justTime?void 0:r.format==="numeric"?"2-digit":r.format,day:r.withoutDay||r.justTime?void 0:"2-digit",weekday:r.withoutDay||r.justTime||r.format==="numeric"?void 0:r.format,hour:r.withTime||r.justTime?"2-digit":void 0,minute:r.withTime||r.justTime?"2-digit":void 0},c=e.toLocaleString(h4().language,n);return c.charAt(0).toUpperCase()+c.slice(1)}function LT(e){return m4(e,{format:"short",withoutDay:!0,withTime:!1})}function Wa(e){return m4(e,{format:"numeric",withTime:!1})}function Ss(e){if(!e)return"";const t=Wa(e),a=new Date,r=new Date(a);r.setDate(a.getDate()+1);const n=new Date(a);if(n.setDate(a.getDate()-1),t===Wa(a))return yi("today");if(t===Wa(r))return yi("tomorrow");if(t===Wa(n))return yi("yesterday");const c={format:"long",withTime:!1};return e.getFullYear()===a.getFullYear()?m4(e,{...c,withoutYear:!0}):m4(e,c)}function lc(e){return m4(e,{justTime:!0})}function Bp(e){if(!e)return!1;let t=e;const a=["http://","https://"];for(const r of a)if(e.startsWith(r)){t=e.replace(r,"");break}return t=t.replace(/:(\d*)$/,""),window.location.href.includes(t)}const Fp=["production","demo","testing","development"];function ST(e,t){if(t)return t;for(const a of Fp)for(const r of e[a])if(Bp(r))return a;throw Error("Incorrect URL")}/*! @license DOMPurify 3.2.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.3/LICENSE */const{entries:Rp,setPrototypeOf:Hf,isFrozen:AT,getPrototypeOf:TT,getOwnPropertyDescriptor:ET}=Object;let{freeze:f3,seal:R3,create:Ip}=Object,{apply:As,construct:Ts}=typeof Reflect<"u"&&Reflect;f3||(f3=function(t){return t});R3||(R3=function(t){return t});As||(As=function(t,a,r){return t.apply(a,r)});Ts||(Ts=function(t,a){return new t(...a)});const Gn=_3(Array.prototype.forEach),Vf=_3(Array.prototype.pop),Ma=_3(Array.prototype.push),P8=_3(String.prototype.toLowerCase),xi=_3(String.prototype.toString),Lf=_3(String.prototype.match),za=_3(String.prototype.replace),NT=_3(String.prototype.indexOf),DT=_3(String.prototype.trim),K3=_3(Object.prototype.hasOwnProperty),n3=_3(RegExp.prototype.test),wa=OT(TypeError);function _3(e){return function(t){for(var a=arguments.length,r=new Array(a>1?a-1:0),n=1;n<a;n++)r[n-1]=arguments[n];return As(e,t,r)}}function OT(e){return function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return Ts(e,a)}}function s2(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:P8;Hf&&Hf(e,null);let r=t.length;for(;r--;){let n=t[r];if(typeof n=="string"){const c=a(n);c!==n&&(AT(t)||(t[r]=c),n=c)}e[n]=!0}return e}function PT(e){for(let t=0;t<e.length;t++)K3(e,t)||(e[t]=null);return e}function S0(e){const t=Ip(null);for(const[a,r]of Rp(e))K3(e,a)&&(Array.isArray(r)?t[a]=PT(r):r&&typeof r=="object"&&r.constructor===Object?t[a]=S0(r):t[a]=r);return t}function _a(e,t){for(;e!==null;){const r=ET(e,t);if(r){if(r.get)return _3(r.get);if(typeof r.value=="function")return _3(r.value)}e=TT(e)}function a(){return null}return a}const Sf=f3(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),bi=f3(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ci=f3(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),BT=f3(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Mi=f3(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),FT=f3(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Af=f3(["#text"]),Tf=f3(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),zi=f3(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ef=f3(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Xn=f3(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),RT=R3(/\{\{[\w\W]*|[\w\W]*\}\}/gm),IT=R3(/<%[\w\W]*|[\w\W]*%>/gm),$T=R3(/\$\{[\w\W]*}/gm),UT=R3(/^data-[\-\w.\u00B7-\uFFFF]+$/),WT=R3(/^aria-[\-\w]+$/),$p=R3(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),qT=R3(/^(?:\w+script|data):/i),jT=R3(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Up=R3(/^html$/i),YT=R3(/^[a-z][.\w]*(-[.\w]+)+$/i);var Nf=Object.freeze({__proto__:null,ARIA_ATTR:WT,ATTR_WHITESPACE:jT,CUSTOM_ELEMENT:YT,DATA_ATTR:UT,DOCTYPE_NAME:Up,ERB_EXPR:IT,IS_ALLOWED_URI:$p,IS_SCRIPT_OR_DATA:qT,MUSTACHE_EXPR:RT,TMPLIT_EXPR:$T});const ka={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},GT=function(){return typeof window>"u"?null:window},XT=function(t,a){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";a&&a.hasAttribute(n)&&(r=a.getAttribute(n));const c="dompurify"+(r?"#"+r:"");try{return t.createPolicy(c,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+c+" could not be created."),null}},Df=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Wp(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:GT();const t=I=>Wp(I);if(t.version="3.2.3",t.removed=[],!e||!e.document||e.document.nodeType!==ka.document)return t.isSupported=!1,t;let{document:a}=e;const r=a,n=r.currentScript,{DocumentFragment:c,HTMLTemplateElement:i,Node:s,Element:l,NodeFilter:f,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:m}=e,v=l.prototype,p=_a(v,"cloneNode"),g=_a(v,"remove"),y=_a(v,"nextSibling"),x=_a(v,"childNodes"),C=_a(v,"parentNode");if(typeof i=="function"){const I=a.createElement("template");I.content&&I.content.ownerDocument&&(a=I.content.ownerDocument)}let b,M="";const{implementation:w,createNodeIterator:z,createDocumentFragment:H,getElementsByTagName:A}=a,{importNode:V}=r;let k=Df();t.isSupported=typeof Rp=="function"&&typeof C=="function"&&w&&w.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:_,ERB_EXPR:N,TMPLIT_EXPR:q,DATA_ATTR:S,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:J,CUSTOM_ELEMENT:Y}=Nf;let{IS_ALLOWED_URI:G}=Nf,B=null;const T=s2({},[...Sf,...bi,...Ci,...Mi,...Af]);let L=null;const W=s2({},[...Tf,...zi,...Ef,...Xn]);let j=Object.seal(Ip(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),E=null,R=null,a1=!0,n1=!0,t1=!1,d1=!0,F=!1,p1=!0,z1=!1,h1=!1,l1=!1,f1=!1,u1=!1,g1=!1,k1=!0,b1=!1;const H1="user-content-";let F1=!0,$1=!1,W1={},K1=null;const d2=s2({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let G1=null;const j2=s2({},["audio","video","img","source","image","track"]);let O1=null;const c2=s2({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Y2="http://www.w3.org/1998/Math/MathML",m2="http://www.w3.org/2000/svg",A2="http://www.w3.org/1999/xhtml";let Pe=A2,y1=!1,m1=null;const S1=s2({},[Y2,m2,A2],xi);let T1=s2({},["mi","mo","mn","ms","mtext"]),Q1=s2({},["annotation-xml"]);const Q2=s2({},["title","style","font","a","script"]);let we=null;const d3=["application/xhtml+xml","text/html"],j3="text/html";let k2=null,xe=null;const X4=a.createElement("form"),K4=function(P){return P instanceof RegExp||P instanceof Function},Z4=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(xe&&xe===P)){if((!P||typeof P!="object")&&(P={}),P=S0(P),we=d3.indexOf(P.PARSER_MEDIA_TYPE)===-1?j3:P.PARSER_MEDIA_TYPE,k2=we==="application/xhtml+xml"?xi:P8,B=K3(P,"ALLOWED_TAGS")?s2({},P.ALLOWED_TAGS,k2):T,L=K3(P,"ALLOWED_ATTR")?s2({},P.ALLOWED_ATTR,k2):W,m1=K3(P,"ALLOWED_NAMESPACES")?s2({},P.ALLOWED_NAMESPACES,xi):S1,O1=K3(P,"ADD_URI_SAFE_ATTR")?s2(S0(c2),P.ADD_URI_SAFE_ATTR,k2):c2,G1=K3(P,"ADD_DATA_URI_TAGS")?s2(S0(j2),P.ADD_DATA_URI_TAGS,k2):j2,K1=K3(P,"FORBID_CONTENTS")?s2({},P.FORBID_CONTENTS,k2):d2,E=K3(P,"FORBID_TAGS")?s2({},P.FORBID_TAGS,k2):{},R=K3(P,"FORBID_ATTR")?s2({},P.FORBID_ATTR,k2):{},W1=K3(P,"USE_PROFILES")?P.USE_PROFILES:!1,a1=P.ALLOW_ARIA_ATTR!==!1,n1=P.ALLOW_DATA_ATTR!==!1,t1=P.ALLOW_UNKNOWN_PROTOCOLS||!1,d1=P.ALLOW_SELF_CLOSE_IN_ATTR!==!1,F=P.SAFE_FOR_TEMPLATES||!1,p1=P.SAFE_FOR_XML!==!1,z1=P.WHOLE_DOCUMENT||!1,f1=P.RETURN_DOM||!1,u1=P.RETURN_DOM_FRAGMENT||!1,g1=P.RETURN_TRUSTED_TYPE||!1,l1=P.FORCE_BODY||!1,k1=P.SANITIZE_DOM!==!1,b1=P.SANITIZE_NAMED_PROPS||!1,F1=P.KEEP_CONTENT!==!1,$1=P.IN_PLACE||!1,G=P.ALLOWED_URI_REGEXP||$p,Pe=P.NAMESPACE||A2,T1=P.MATHML_TEXT_INTEGRATION_POINTS||T1,Q1=P.HTML_INTEGRATION_POINTS||Q1,j=P.CUSTOM_ELEMENT_HANDLING||{},P.CUSTOM_ELEMENT_HANDLING&&K4(P.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=P.CUSTOM_ELEMENT_HANDLING.tagNameCheck),P.CUSTOM_ELEMENT_HANDLING&&K4(P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),P.CUSTOM_ELEMENT_HANDLING&&typeof P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(j.allowCustomizedBuiltInElements=P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),F&&(n1=!1),u1&&(f1=!0),W1&&(B=s2({},Af),L=[],W1.html===!0&&(s2(B,Sf),s2(L,Tf)),W1.svg===!0&&(s2(B,bi),s2(L,zi),s2(L,Xn)),W1.svgFilters===!0&&(s2(B,Ci),s2(L,zi),s2(L,Xn)),W1.mathMl===!0&&(s2(B,Mi),s2(L,Ef),s2(L,Xn))),P.ADD_TAGS&&(B===T&&(B=S0(B)),s2(B,P.ADD_TAGS,k2)),P.ADD_ATTR&&(L===W&&(L=S0(L)),s2(L,P.ADD_ATTR,k2)),P.ADD_URI_SAFE_ATTR&&s2(O1,P.ADD_URI_SAFE_ATTR,k2),P.FORBID_CONTENTS&&(K1===d2&&(K1=S0(K1)),s2(K1,P.FORBID_CONTENTS,k2)),F1&&(B["#text"]=!0),z1&&s2(B,["html","head","body"]),B.table&&(s2(B,["tbody"]),delete E.tbody),P.TRUSTED_TYPES_POLICY){if(typeof P.TRUSTED_TYPES_POLICY.createHTML!="function")throw wa('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof P.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw wa('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');b=P.TRUSTED_TYPES_POLICY,M=b.createHTML("")}else b===void 0&&(b=XT(m,n)),b!==null&&typeof M=="string"&&(M=b.createHTML(""));f3&&f3(P),xe=P}},M0=s2({},[...bi,...Ci,...BT]),z0=s2({},[...Mi,...FT]),T3=function(P){let K=C(P);(!K||!K.tagName)&&(K={namespaceURI:Pe,tagName:"template"});const Z=P8(P.tagName),o1=P8(K.tagName);return m1[P.namespaceURI]?P.namespaceURI===m2?K.namespaceURI===A2?Z==="svg":K.namespaceURI===Y2?Z==="svg"&&(o1==="annotation-xml"||T1[o1]):!!M0[Z]:P.namespaceURI===Y2?K.namespaceURI===A2?Z==="math":K.namespaceURI===m2?Z==="math"&&Q1[o1]:!!z0[Z]:P.namespaceURI===A2?K.namespaceURI===m2&&!Q1[o1]||K.namespaceURI===Y2&&!T1[o1]?!1:!z0[Z]&&(Q2[Z]||!M0[Z]):!!(we==="application/xhtml+xml"&&m1[P.namespaceURI]):!1},Ue=function(P){Ma(t.removed,{element:P});try{C(P).removeChild(P)}catch{g(P)}},Q4=function(P,K){try{Ma(t.removed,{attribute:K.getAttributeNode(P),from:K})}catch{Ma(t.removed,{attribute:null,from:K})}if(K.removeAttribute(P),P==="is")if(f1||u1)try{Ue(K)}catch{}else try{K.setAttribute(P,"")}catch{}},Tt=function(P){let K=null,Z=null;if(l1)P="<remove></remove>"+P;else{const x1=Lf(P,/^[\r\n\t ]+/);Z=x1&&x1[0]}we==="application/xhtml+xml"&&Pe===A2&&(P='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+P+"</body></html>");const o1=b?b.createHTML(P):P;if(Pe===A2)try{K=new h().parseFromString(o1,we)}catch{}if(!K||!K.documentElement){K=w.createDocument(Pe,"template",null);try{K.documentElement.innerHTML=y1?M:o1}catch{}}const s1=K.body||K.documentElement;return P&&Z&&s1.insertBefore(a.createTextNode(Z),s1.childNodes[0]||null),Pe===A2?A.call(K,z1?"html":"body")[0]:z1?K.documentElement:s1},X=function(P){return z.call(P.ownerDocument||P,P,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},r1=function(P){return P instanceof d&&(typeof P.nodeName!="string"||typeof P.textContent!="string"||typeof P.removeChild!="function"||!(P.attributes instanceof u)||typeof P.removeAttribute!="function"||typeof P.setAttribute!="function"||typeof P.namespaceURI!="string"||typeof P.insertBefore!="function"||typeof P.hasChildNodes!="function")},Q=function(P){return typeof s=="function"&&P instanceof s};function e1(I,P,K){Gn(I,Z=>{Z.call(t,P,K,xe)})}const c1=function(P){let K=null;if(e1(k.beforeSanitizeElements,P,null),r1(P))return Ue(P),!0;const Z=k2(P.nodeName);if(e1(k.uponSanitizeElement,P,{tagName:Z,allowedTags:B}),P.hasChildNodes()&&!Q(P.firstElementChild)&&n3(/<[/\w]/g,P.innerHTML)&&n3(/<[/\w]/g,P.textContent)||P.nodeType===ka.progressingInstruction||p1&&P.nodeType===ka.comment&&n3(/<[/\w]/g,P.data))return Ue(P),!0;if(!B[Z]||E[Z]){if(!E[Z]&&C1(Z)&&(j.tagNameCheck instanceof RegExp&&n3(j.tagNameCheck,Z)||j.tagNameCheck instanceof Function&&j.tagNameCheck(Z)))return!1;if(F1&&!K1[Z]){const o1=C(P)||P.parentNode,s1=x(P)||P.childNodes;if(s1&&o1){const x1=s1.length;for(let V1=x1-1;V1>=0;--V1){const L1=p(s1[V1],!0);L1.__removalCount=(P.__removalCount||0)+1,o1.insertBefore(L1,y(P))}}}return Ue(P),!0}return P instanceof l&&!T3(P)||(Z==="noscript"||Z==="noembed"||Z==="noframes")&&n3(/<\/no(script|embed|frames)/i,P.innerHTML)?(Ue(P),!0):(F&&P.nodeType===ka.text&&(K=P.textContent,Gn([_,N,q],o1=>{K=za(K,o1," ")}),P.textContent!==K&&(Ma(t.removed,{element:P.cloneNode()}),P.textContent=K)),e1(k.afterSanitizeElements,P,null),!1)},i1=function(P,K,Z){if(k1&&(K==="id"||K==="name")&&(Z in a||Z in X4))return!1;if(!(n1&&!R[K]&&n3(S,K))){if(!(a1&&n3(O,K))){if(!L[K]||R[K]){if(!(C1(P)&&(j.tagNameCheck instanceof RegExp&&n3(j.tagNameCheck,P)||j.tagNameCheck instanceof Function&&j.tagNameCheck(P))&&(j.attributeNameCheck instanceof RegExp&&n3(j.attributeNameCheck,K)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(K))||K==="is"&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&n3(j.tagNameCheck,Z)||j.tagNameCheck instanceof Function&&j.tagNameCheck(Z))))return!1}else if(!O1[K]){if(!n3(G,za(Z,J,""))){if(!((K==="src"||K==="xlink:href"||K==="href")&&P!=="script"&&NT(Z,"data:")===0&&G1[P])){if(!(t1&&!n3(U,za(Z,J,"")))){if(Z)return!1}}}}}}return!0},C1=function(P){return P!=="annotation-xml"&&Lf(P,Y)},M1=function(P){e1(k.beforeSanitizeAttributes,P,null);const{attributes:K}=P;if(!K||r1(P))return;const Z={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:L,forceKeepAttr:void 0};let o1=K.length;for(;o1--;){const s1=K[o1],{name:x1,namespaceURI:V1,value:L1}=s1,w1=k2(x1);let N1=x1==="value"?L1:DT(L1);if(Z.attrName=w1,Z.attrValue=N1,Z.keepAttr=!0,Z.forceKeepAttr=void 0,e1(k.uponSanitizeAttribute,P,Z),N1=Z.attrValue,b1&&(w1==="id"||w1==="name")&&(Q4(x1,P),N1=H1+N1),p1&&n3(/((--!?|])>)|<\/(style|title)/i,N1)){Q4(x1,P);continue}if(Z.forceKeepAttr||(Q4(x1,P),!Z.keepAttr))continue;if(!d1&&n3(/\/>/i,N1)){Q4(x1,P);continue}F&&Gn([_,N,q],J1=>{N1=za(N1,J1," ")});const I1=k2(P.nodeName);if(i1(I1,w1,N1)){if(b&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!V1)switch(m.getAttributeType(I1,w1)){case"TrustedHTML":{N1=b.createHTML(N1);break}case"TrustedScriptURL":{N1=b.createScriptURL(N1);break}}try{V1?P.setAttributeNS(V1,x1,N1):P.setAttribute(x1,N1),r1(P)?Ue(P):Vf(t.removed)}catch{}}}e1(k.afterSanitizeAttributes,P,null)},D=function I(P){let K=null;const Z=X(P);for(e1(k.beforeSanitizeShadowDOM,P,null);K=Z.nextNode();)e1(k.uponSanitizeShadowNode,K,null),c1(K),M1(K),K.content instanceof c&&I(K.content);e1(k.afterSanitizeShadowDOM,P,null)};return t.sanitize=function(I){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=null,Z=null,o1=null,s1=null;if(y1=!I,y1&&(I="<!-->"),typeof I!="string"&&!Q(I))if(typeof I.toString=="function"){if(I=I.toString(),typeof I!="string")throw wa("dirty is not a string, aborting")}else throw wa("toString is not a function");if(!t.isSupported)return I;if(h1||Z4(P),t.removed=[],typeof I=="string"&&($1=!1),$1){if(I.nodeName){const L1=k2(I.nodeName);if(!B[L1]||E[L1])throw wa("root node is forbidden and cannot be sanitized in-place")}}else if(I instanceof s)K=Tt("<!---->"),Z=K.ownerDocument.importNode(I,!0),Z.nodeType===ka.element&&Z.nodeName==="BODY"||Z.nodeName==="HTML"?K=Z:K.appendChild(Z);else{if(!f1&&!F&&!z1&&I.indexOf("<")===-1)return b&&g1?b.createHTML(I):I;if(K=Tt(I),!K)return f1?null:g1?M:""}K&&l1&&Ue(K.firstChild);const x1=X($1?I:K);for(;o1=x1.nextNode();)c1(o1),M1(o1),o1.content instanceof c&&D(o1.content);if($1)return I;if(f1){if(u1)for(s1=H.call(K.ownerDocument);K.firstChild;)s1.appendChild(K.firstChild);else s1=K;return(L.shadowroot||L.shadowrootmode)&&(s1=V.call(r,s1,!0)),s1}let V1=z1?K.outerHTML:K.innerHTML;return z1&&B["!doctype"]&&K.ownerDocument&&K.ownerDocument.doctype&&K.ownerDocument.doctype.name&&n3(Up,K.ownerDocument.doctype.name)&&(V1="<!DOCTYPE "+K.ownerDocument.doctype.name+`>
|
|
7
7
|
`+V1),F&&Gn([_,N,q],L1=>{V1=za(V1,L1," ")}),b&&g1?b.createHTML(V1):V1},t.setConfig=function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Z4(I),h1=!0},t.clearConfig=function(){xe=null,h1=!1},t.isValidAttribute=function(I,P,K){xe||Z4({});const Z=k2(I),o1=k2(P);return i1(Z,o1,K)},t.addHook=function(I,P){typeof P=="function"&&Ma(k[I],P)},t.removeHook=function(I){return Vf(k[I])},t.removeHooks=function(I){k[I]=[]},t.removeAllHooks=function(){k=Df()},t}var qp=Wp();function KT(e){return qp.sanitize(e)}function jp(e){return qp.sanitize(e,{ALLOWED_TAGS:[]})}function Es(e,t){const a=h4().language;let r=e.toLocaleString(a,{maximumFractionDigits:t==null?void 0:t.maxDecimals});return r==="-0"&&(r="0"),t!=null&&t.prefix&&(r=`${t.prefix} ${r}`),t!=null&&t.suffix&&(r=`${r} ${t.suffix}`),r}function pn(e,t){return Z2.getConfig().i18n[`${e}Routes`](t)}function Yp(e){return e==null?void 0:e.matched[0].name}function ao(e,t){return e.filter(a=>!a.meta.isVisibleInTheSideBar||t&&a.meta.preventDisplayInTheBottomBar?!1:Z2.getConfig().routerHelpers.validateRouteAccess(a.meta.access))}function n5(e,t){return e.filter(r=>r.meta.isVisibleInTheSideBar).filter(r=>r.meta.navigationSectionName===t).sort((r,n)=>r.meta.order-n.meta.order)}function ro(e,t){return e.filter(a=>!!n5(t,a.name).length).sort((a,r)=>a.order-r.order)}function mt(e){return typeof e=="function"?e():e}function Gp(){window.scrollTo({top:0,behavior:"smooth"})}function ZT(e){return typeof e!="string"?!1:/^[a-fA-F0-9]{24}$/.test(e)}function no(){return window.innerWidth<=768}function QT(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}let Q0={layout:{headerHeight:"4.8rem",sideBarWidth:"18rem",bottomBarHeight:"4.4rem",layoutPaddingTop:"1.5rem",layoutPaddingBottom:"2.5rem",layoutPaddingX:"1.5rem",layoutPaddingXSmallDevices:"1rem"},colors:Vp,button:{variant:"filled"},form:{input:{padding:"0.5rem",iconWidth:"2.6rem",paddingWithIcon:"3.1rem",height:"2.2rem",borderRadius:"0.25rem",borderColor:"var(--pga-color-first-02)",colorFocus:"var(--pga-color-primary)",backgroundColor:"var(--pga-color-first-contrast)",backgroundColorDisabled:"var(--pga-color-second-contrast)",backgroundColorFocus:"var(--pga-color-primary-01)",backgroundColorHover:"var(--pga-color-primary-02)",placeholderColor:"var(--pga-color-third)"}},display:{price:{withSign:!0,withBackground:!0}},notifications:{timeoutTime:4e3,preventRemove:!0},calendar:{hideWeekends:!1}};function Xp(e){Q0=Fe.mergeDeep(Q0,e),Kp(),co()}function Kp(){for(const e in Q0.layout)sc(e,Q0.layout[e])}function co(){for(const e in Q0.colors){const t=Q0.colors[e],a=h4().theme;Ls(e,t[a]),Ls(`${e}Contrast`,t.contrast[a])}}function $e(){return Q0}const Qt=R4.defineStore("pga-notifications",()=>{const e=o.ref(1),t=o.ref([]);return{currentId:e,notifications:t}});function T4(e,t){const a=Qt().currentId++,r={id:a,type:e,message:t,timeout:void 0},n=$e().notifications.timeoutTime;return n!=="none"&&(r.timeout=setTimeout(()=>io(a),n)),Qt().notifications.push(r),a}function io(e){const t=Qt().notifications.find(r=>r.id===e);t&&t.timeout&&clearTimeout(t.timeout);const a=Qt().notifications.filter(r=>r.id!==e);Qt().notifications=a}function Zp(){Qt().notifications.forEach(e=>{e.timeout&&clearTimeout(e.timeout)}),Qt().notifications=[]}function Of(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),a.push.apply(a,r)}return a}function P1(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?Of(Object(a),!0).forEach(function(r){Ae(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Of(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}function fc(e){"@babel/helpers - typeof";return fc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fc(e)}function JT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pf(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eE(e,t,a){return t&&Pf(e.prototype,t),a&&Pf(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ae(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function so(e,t){return aE(e)||nE(e,t)||Qp(e,t)||iE()}function vn(e){return tE(e)||rE(e)||Qp(e)||cE()}function tE(e){if(Array.isArray(e))return Ns(e)}function aE(e){if(Array.isArray(e))return e}function rE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nE(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r=[],n=!0,c=!1,i,s;try{for(a=a.call(e);!(n=(i=a.next()).done)&&(r.push(i.value),!(t&&r.length===t));n=!0);}catch(l){c=!0,s=l}finally{try{!n&&a.return!=null&&a.return()}finally{if(c)throw s}}return r}}function Qp(e,t){if(e){if(typeof e=="string")return Ns(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Ns(e,t)}}function Ns(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}function cE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
8
8
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
9
9
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Bf=function(){},oo={},Jp={},ev=null,tv={mark:Bf,measure:Bf};try{typeof window<"u"&&(oo=window),typeof document<"u"&&(Jp=document),typeof MutationObserver<"u"&&(ev=MutationObserver),typeof performance<"u"&&(tv=performance)}catch{}var sE=oo.navigator||{},Ff=sE.userAgent,Rf=Ff===void 0?"":Ff,i0=oo,I2=Jp,If=ev,Kn=tv;i0.document;var kt=!!I2.documentElement&&!!I2.head&&typeof I2.addEventListener=="function"&&typeof I2.createElement=="function",av=~Rf.indexOf("MSIE")||~Rf.indexOf("Trident/"),Zn,Qn,Jn,e8,t8,bt="___FONT_AWESOME___",Ds=16,rv="fa",nv="svg-inline--fa",J0="data-fa-i2svg",Os="data-fa-pseudo-element",oE="data-fa-pseudo-element-pending",lo="data-prefix",fo="data-icon",$f="fontawesome-i2svg",lE="async",fE=["HTML","HEAD","STYLE","SCRIPT"],cv=function(){try{return process.env.NODE_ENV==="production"}catch{return!1}}(),F2="classic",ie="sharp",uo=[F2,ie];function gn(e){return new Proxy(e,{get:function(a,r){return r in a?a[r]:a[F2]}})}var Lr=gn((Zn={},Ae(Zn,F2,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit",fakd:"kit","fa-kit":"kit","fa-kit-duotone":"kit"}),Ae(Zn,ie,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}),Zn)),Sr=gn((Qn={},Ae(Qn,F2,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),Ae(Qn,ie,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),Qn)),Ar=gn((Jn={},Ae(Jn,F2,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),Ae(Jn,ie,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),Jn)),uE=gn((e8={},Ae(e8,F2,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),Ae(e8,ie,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),e8)),dE=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,iv="fa-layers-text",hE=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,mE=gn((t8={},Ae(t8,F2,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),Ae(t8,ie,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),t8)),sv=[1,2,3,4,5,6,7,8,9,10],pE=sv.concat([11,12,13,14,15,16,17,18,19,20]),vE=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],B0={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Tr=new Set;Object.keys(Sr[F2]).map(Tr.add.bind(Tr));Object.keys(Sr[ie]).map(Tr.add.bind(Tr));var gE=[].concat(uo,vn(Tr),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",B0.GROUP,B0.SWAP_OPACITY,B0.PRIMARY,B0.SECONDARY]).concat(sv.map(function(e){return"".concat(e,"x")})).concat(pE.map(function(e){return"w-".concat(e)})),rr=i0.FontAwesomeConfig||{};function yE(e){var t=I2.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function xE(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(I2&&typeof I2.querySelector=="function"){var bE=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];bE.forEach(function(e){var t=so(e,2),a=t[0],r=t[1],n=xE(yE(a));n!=null&&(rr[r]=n)})}var ov={styleDefault:"solid",familyDefault:"classic",cssPrefix:rv,replacementClass:nv,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};rr.familyPrefix&&(rr.cssPrefix=rr.familyPrefix);var X6=P1(P1({},ov),rr);X6.autoReplaceSvg||(X6.observeMutations=!1);var q1={};Object.keys(ov).forEach(function(e){Object.defineProperty(q1,e,{enumerable:!0,set:function(a){X6[e]=a,nr.forEach(function(r){return r(q1)})},get:function(){return X6[e]}})});Object.defineProperty(q1,"familyPrefix",{enumerable:!0,set:function(t){X6.cssPrefix=t,nr.forEach(function(a){return a(q1)})},get:function(){return X6.cssPrefix}});i0.FontAwesomeConfig=q1;var nr=[];function CE(e){return nr.push(e),function(){nr.splice(nr.indexOf(e),1)}}var Et=Ds,E4={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function ME(e){if(!(!e||!kt)){var t=I2.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var a=I2.head.childNodes,r=null,n=a.length-1;n>-1;n--){var c=a[n],i=(c.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(r=c)}return I2.head.insertBefore(t,r),e}}var zE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Er(){for(var e=12,t="";e-- >0;)t+=zE[Math.random()*62|0];return t}function ua(e){for(var t=[],a=(e||[]).length>>>0;a--;)t[a]=e[a];return t}function ho(e){return e.classList?ua(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function lv(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function wE(e){return Object.keys(e||{}).reduce(function(t,a){return t+"".concat(a,'="').concat(lv(e[a]),'" ')},"").trim()}function c5(e){return Object.keys(e||{}).reduce(function(t,a){return t+"".concat(a,": ").concat(e[a].trim(),";")},"")}function mo(e){return e.size!==E4.size||e.x!==E4.x||e.y!==E4.y||e.rotate!==E4.rotate||e.flipX||e.flipY}function _E(e){var t=e.transform,a=e.containerWidth,r=e.iconWidth,n={transform:"translate(".concat(a/2," 256)")},c="translate(".concat(t.x*32,", ").concat(t.y*32,") "),i="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(c," ").concat(i," ").concat(s)},f={transform:"translate(".concat(r/2*-1," -256)")};return{outer:n,inner:l,path:f}}function kE(e){var t=e.transform,a=e.width,r=a===void 0?Ds:a,n=e.height,c=n===void 0?Ds:n,i=e.startCentered,s=i===void 0?!1:i,l="";return s&&av?l+="translate(".concat(t.x/Et-r/2,"em, ").concat(t.y/Et-c/2,"em) "):s?l+="translate(calc(-50% + ".concat(t.x/Et,"em), calc(-50% + ").concat(t.y/Et,"em)) "):l+="translate(".concat(t.x/Et,"em, ").concat(t.y/Et,"em) "),l+="scale(".concat(t.size/Et*(t.flipX?-1:1),", ").concat(t.size/Et*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var HE=`:root, :host {
|
|
@@ -866,7 +866,7 @@ A valid view must be one of: ${Du.join(", ")}.`),e="week"),this.enabledViews.inc
|
|
|
866
866
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...a){const r=new this(t);return a.forEach(n=>r.set(n)),r}static accessor(t){const r=(this[dp]=this[dp]={accessors:{}}).accessors,n=this.prototype;function c(i){const s=Ra(i);r[s]||(R$1(n,i),r[s]=!0)}return _1.isArray(t)?t.forEach(c):c(t),this}}ri.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_1.reduceDescriptors(ri.prototype,({value:e},t)=>{let a=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[a]=r}}});_1.freezeMethods(ri);const d4=ri;function Ms(e,t){const a=this||J9,r=t||a,n=d4.from(r.headers);let c=r.data;return _1.forEach(e,function(s){c=s.call(a,c,n.normalize(),t?t.status:void 0)}),n.normalize(),c}function iA(e){return!!(e&&e.__CANCEL__)}function ya(e,t,a){t2.call(this,e??"canceled",t2.ERR_CANCELED,t,a),this.name="CanceledError"}_1.inherits(ya,t2,{__CANCEL__:!0});function sA(e,t,a){const r=a.config.validateStatus;!a.status||!r||r(a.status)?e(a):t(new t2("Request failed with status code "+a.status,[t2.ERR_BAD_REQUEST,t2.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function I$1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function $$1(e,t){e=e||10;const a=new Array(e),r=new Array(e);let n=0,c=0,i;return t=t!==void 0?t:1e3,function(l){const f=Date.now(),u=r[c];i||(i=f),a[n]=l,r[n]=f;let d=c,h=0;for(;d!==n;)h+=a[d++],d=d%e;if(n=(n+1)%e,n===c&&(c=(c+1)%e),f-i<t)return;const m=u&&f-u;return m?Math.round(h*1e3/m):void 0}}function U$1(e,t){let a=0,r=1e3/t,n,c;const i=(f,u=Date.now())=>{a=u,n=null,c&&(clearTimeout(c),c=null),e.apply(null,f)};return[(...f)=>{const u=Date.now(),d=u-a;d>=r?i(f,u):(n=f,c||(c=setTimeout(()=>{c=null,i(n)},r-d)))},()=>n&&i(n)]}const Kc=(e,t,a=3)=>{let r=0;const n=$$1(50,250);return U$1(c=>{const i=c.loaded,s=c.lengthComputable?c.total:void 0,l=i-r,f=n(l),u=i<=s;r=i;const d={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:f||void 0,estimated:f&&s&&u?(s-i)/f:void 0,event:c,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},a)},hp=(e,t)=>{const a=e!=null;return[r=>t[0]({lengthComputable:a,total:e,loaded:r}),t[1]]},mp=e=>(...t)=>_1.asap(()=>e(...t)),W$1=Ke.hasStandardBrowserEnv?((e,t)=>a=>(a=new URL(a,Ke.origin),e.protocol===a.protocol&&e.host===a.host&&(t||e.port===a.port)))(new URL(Ke.origin),Ke.navigator&&/(msie|trident)/i.test(Ke.navigator.userAgent)):()=>!0,q$1=Ke.hasStandardBrowserEnv?{write(e,t,a,r,n,c){const i=[e+"="+encodeURIComponent(t)];_1.isNumber(a)&&i.push("expires="+new Date(a).toGMTString()),_1.isString(r)&&i.push("path="+r),_1.isString(n)&&i.push("domain="+n),c===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function j$1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Y$1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function oA(e,t){return e&&!j$1(t)?Y$1(e,t):t}const pp=e=>e instanceof d4?{...e}:e;function f6(e,t){t=t||{};const a={};function r(f,u,d,h){return _1.isPlainObject(f)&&_1.isPlainObject(u)?_1.merge.call({caseless:h},f,u):_1.isPlainObject(u)?_1.merge({},u):_1.isArray(u)?u.slice():u}function n(f,u,d,h){if(_1.isUndefined(u)){if(!_1.isUndefined(f))return r(void 0,f,d,h)}else return r(f,u,d,h)}function c(f,u){if(!_1.isUndefined(u))return r(void 0,u)}function i(f,u){if(_1.isUndefined(u)){if(!_1.isUndefined(f))return r(void 0,f)}else return r(void 0,u)}function s(f,u,d){if(d in t)return r(f,u);if(d in e)return r(void 0,f)}const l={url:c,method:c,data:c,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(f,u,d)=>n(pp(f),pp(u),d,!0)};return _1.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||n,h=d(e[u],t[u],u);_1.isUndefined(h)&&d!==s||(a[u]=h)}),a}const lA=e=>{const t=f6({},e);let{data:a,withXSRFToken:r,xsrfHeaderName:n,xsrfCookieName:c,headers:i,auth:s}=t;t.headers=i=d4.from(i),t.url=rA(oA(t.baseURL,t.url),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(_1.isFormData(a)){if(Ke.hasStandardBrowserEnv||Ke.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[f,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([f||"multipart/form-data",...u].join("; "))}}if(Ke.hasStandardBrowserEnv&&(r&&_1.isFunction(r)&&(r=r(t)),r||r!==!1&&W$1(t.url))){const f=n&&c&&q$1.read(c);f&&i.set(n,f)}return t},G$1=typeof XMLHttpRequest<"u",X$1=G$1&&function(e){return new Promise(function(a,r){const n=lA(e);let c=n.data;const i=d4.from(n.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:f}=n,u,d,h,m,v;function p(){m&&m(),v&&v(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let g=new XMLHttpRequest;g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout;function y(){if(!g)return;const C=d4.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),M={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:C,config:e,request:g};sA(function(z){a(z),p()},function(z){r(z),p()},M),g=null}"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(y)},g.onabort=function(){g&&(r(new t2("Request aborted",t2.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new t2("Network Error",t2.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let b=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const M=n.transitional||nA;n.timeoutErrorMessage&&(b=n.timeoutErrorMessage),r(new t2(b,M.clarifyTimeoutError?t2.ETIMEDOUT:t2.ECONNABORTED,e,g)),g=null},c===void 0&&i.setContentType(null),"setRequestHeader"in g&&_1.forEach(i.toJSON(),function(b,M){g.setRequestHeader(M,b)}),_1.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),s&&s!=="json"&&(g.responseType=n.responseType),f&&([h,v]=Kc(f,!0),g.addEventListener("progress",h)),l&&g.upload&&([d,m]=Kc(l),g.upload.addEventListener("progress",d),g.upload.addEventListener("loadend",m)),(n.cancelToken||n.signal)&&(u=C=>{g&&(r(!C||C.type?new ya(null,e,g):C),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const x=I$1(n.url);if(x&&Ke.protocols.indexOf(x)===-1){r(new t2("Unsupported protocol "+x+":",t2.ERR_BAD_REQUEST,e));return}g.send(c||null)})},K$1=(e,t)=>{const{length:a}=e=e?e.filter(Boolean):[];if(t||a){let r=new AbortController,n;const c=function(f){if(!n){n=!0,s();const u=f instanceof Error?f:this.reason;r.abort(u instanceof t2?u:new ya(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,c(new t2(`timeout ${t} of ms exceeded`,t2.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(c):f.removeEventListener("abort",c)}),e=null)};e.forEach(f=>f.addEventListener("abort",c));const{signal:l}=r;return l.unsubscribe=()=>_1.asap(s),l}},Z$1=K$1,Q$1=function*(e,t){let a=e.byteLength;if(!t||a<t){yield e;return}let r=0,n;for(;r<a;)n=r+t,yield e.slice(r,n),r=n},J$1=async function*(e,t){for await(const a of eU1(e))yield*Q$1(a,t)},eU1=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:a,value:r}=await t.read();if(a)break;yield r}}finally{await t.cancel()}},vp=(e,t,a,r)=>{const n=J$1(e,t);let c=0,i,s=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:f,value:u}=await n.next();if(f){s(),l.close();return}let d=u.byteLength;if(a){let h=c+=d;a(h)}l.enqueue(new Uint8Array(u))}catch(f){throw s(f),f}},cancel(l){return s(l),n.return()}},{highWaterMark:2})},ni=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",fA=ni&&typeof ReadableStream=="function",tU1=ni&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),uA=(e,...t)=>{try{return!!e(...t)}catch{return!1}},aU1=fA&&uA(()=>{let e=!1;const t=new Request(Ke.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),gp=64*1024,j7=fA&&uA(()=>_1.isReadableStream(new Response("").body)),Zc={stream:j7&&(e=>e.body)};ni&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Zc[t]&&(Zc[t]=_1.isFunction(e[t])?a=>a[t]():(a,r)=>{throw new t2(`Response type '${t}' is not supported`,t2.ERR_NOT_SUPPORT,r)})})})(new Response);const rU1=async e=>{if(e==null)return 0;if(_1.isBlob(e))return e.size;if(_1.isSpecCompliantForm(e))return(await new Request(Ke.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(_1.isArrayBufferView(e)||_1.isArrayBuffer(e))return e.byteLength;if(_1.isURLSearchParams(e)&&(e=e+""),_1.isString(e))return(await tU1(e)).byteLength},nU1=async(e,t)=>{const a=_1.toFiniteNumber(e.getContentLength());return a??rU1(t)},cU1=ni&&(async e=>{let{url:t,method:a,data:r,signal:n,cancelToken:c,timeout:i,onDownloadProgress:s,onUploadProgress:l,responseType:f,headers:u,withCredentials:d="same-origin",fetchOptions:h}=lA(e);f=f?(f+"").toLowerCase():"text";let m=Z$1([n,c&&c.toAbortSignal()],i),v;const p=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let g;try{if(l&&aU1&&a!=="get"&&a!=="head"&&(g=await nU1(u,r))!==0){let M=new Request(t,{method:"POST",body:r,duplex:"half"}),w;if(_1.isFormData(r)&&(w=M.headers.get("content-type"))&&u.setContentType(w),M.body){const[z,H]=hp(g,Kc(mp(l)));r=vp(M.body,gp,z,H)}}_1.isString(d)||(d=d?"include":"omit");const y="credentials"in Request.prototype;v=new Request(t,{...h,signal:m,method:a.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:y?d:void 0});let x=await fetch(v);const C=j7&&(f==="stream"||f==="response");if(j7&&(s||C&&p)){const M={};["status","statusText","headers"].forEach(A=>{M[A]=x[A]});const w=_1.toFiniteNumber(x.headers.get("content-length")),[z,H]=s&&hp(w,Kc(mp(s),!0))||[];x=new Response(vp(x.body,gp,z,()=>{H&&H(),p&&p()}),M)}f=f||"text";let b=await Zc[_1.findKey(Zc,f)||"text"](x,e);return!C&&p&&p(),await new Promise((M,w)=>{sA(M,w,{data:b,headers:d4.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:v})})}catch(y){throw p&&p(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new t2("Network Error",t2.ERR_NETWORK,e,v),{cause:y.cause||y}):t2.from(y,y&&y.code,e,v)}}),Y7={http:y$1,xhr:X$1,fetch:cU1};_1.forEach(Y7,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const yp=e=>`- ${e}`,iU1=e=>_1.isFunction(e)||e===null||e===!1,dA={getAdapter:e=>{e=_1.isArray(e)?e:[e];const{length:t}=e;let a,r;const n={};for(let c=0;c<t;c++){a=e[c];let i;if(r=a,!iU1(a)&&(r=Y7[(i=String(a)).toLowerCase()],r===void 0))throw new t2(`Unknown adapter '${i}'`);if(r)break;n[i||"#"+c]=r}if(!r){const c=Object.entries(n).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=t?c.length>1?`since :
|
|
867
867
|
`+c.map(yp).join(`
|
|
868
868
|
`):" "+yp(c[0]):"as no adapter specified";throw new t2("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Y7};function zs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ya(null,e)}function xp(e){return zs(e),e.headers=d4.from(e.headers),e.data=Ms.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),dA.getAdapter(e.adapter||J9.adapter)(e).then(function(r){return zs(e),r.data=Ms.call(e,e.transformResponse,r),r.headers=d4.from(r.headers),r},function(r){return iA(r)||(zs(e),r&&r.response&&(r.response.data=Ms.call(e,e.transformResponse,r.response),r.response.headers=d4.from(r.response.headers))),Promise.reject(r)})}const hA="1.7.8",ci={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ci[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const bp={};ci.transitional=function(t,a,r){function n(c,i){return"[Axios v"+hA+"] Transitional option '"+c+"'"+i+(r?". "+r:"")}return(c,i,s)=>{if(t===!1)throw new t2(n(i," has been removed"+(a?" in "+a:"")),t2.ERR_DEPRECATED);return a&&!bp[i]&&(bp[i]=!0,console.warn(n(i," has been deprecated since v"+a+" and will be removed in the near future"))),t?t(c,i,s):!0}};ci.spelling=function(t){return(a,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function sU1(e,t,a){if(typeof e!="object")throw new t2("options must be an object",t2.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let n=r.length;for(;n-- >0;){const c=r[n],i=t[c];if(i){const s=e[c],l=s===void 0||i(s,c,e);if(l!==!0)throw new t2("option "+c+" must be "+l,t2.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new t2("Unknown option "+c,t2.ERR_BAD_OPTION)}}const ac={assertOptions:sU1,validators:ci},z4=ac.validators;class Qc{constructor(t){this.defaults=t,this.interceptors={request:new up,response:new up}}async request(t,a){try{return await this._request(t,a)}catch(r){if(r instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const c=n.stack?n.stack.replace(/^.+\n/,""):"";try{r.stack?c&&!String(r.stack).endsWith(c.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
869
|
-
`+c):r.stack=c}catch{}}throw r}}_request(t,a){typeof t=="string"?(a=a||{},a.url=t):a=t||{},a=f6(this.defaults,a);const{transitional:r,paramsSerializer:n,headers:c}=a;r!==void 0&&ac.assertOptions(r,{silentJSONParsing:z4.transitional(z4.boolean),forcedJSONParsing:z4.transitional(z4.boolean),clarifyTimeoutError:z4.transitional(z4.boolean)},!1),n!=null&&(_1.isFunction(n)?a.paramsSerializer={serialize:n}:ac.assertOptions(n,{encode:z4.function,serialize:z4.function},!0)),ac.assertOptions(a,{baseUrl:z4.spelling("baseURL"),withXsrfToken:z4.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let i=c&&_1.merge(c.common,c[a.method]);c&&_1.forEach(["delete","get","head","post","put","patch","common"],v=>{delete c[v]}),a.headers=d4.concat(i,c);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(a)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const f=[];this.interceptors.response.forEach(function(p){f.push(p.fulfilled,p.rejected)});let u,d=0,h;if(!l){const v=[xp.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,f),h=v.length,u=Promise.resolve(a);d<h;)u=u.then(v[d++],v[d++]);return u}h=s.length;let m=a;for(d=0;d<h;){const v=s[d++],p=s[d++];try{m=v(m)}catch(g){p.call(this,g);break}}try{u=xp.call(this,m)}catch(v){return Promise.reject(v)}for(d=0,h=f.length;d<h;)u=u.then(f[d++],f[d++]);return u}getUri(t){t=f6(this.defaults,t);const a=oA(t.baseURL,t.url);return rA(a,t.params,t.paramsSerializer)}}_1.forEach(["delete","get","head","options"],function(t){Qc.prototype[t]=function(a,r){return this.request(f6(r||{},{method:t,url:a,data:(r||{}).data}))}});_1.forEach(["post","put","patch"],function(t){function a(r){return function(c,i,s){return this.request(f6(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:c,data:i}))}}Qc.prototype[t]=a(),Qc.prototype[t+"Form"]=a(!0)});const rc=Qc;class ef{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(c){a=c});const r=this;this.promise.then(n=>{if(!r._listeners)return;let c=r._listeners.length;for(;c-- >0;)r._listeners[c](n);r._listeners=null}),this.promise.then=n=>{let c;const i=new Promise(s=>{r.subscribe(s),c=s}).then(n);return i.cancel=function(){r.unsubscribe(c)},i},t(function(c,i,s){r.reason||(r.reason=new ya(c,i,s),a(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const a=this._listeners.indexOf(t);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const t=new AbortController,a=r=>{t.abort(r)};return this.subscribe(a),t.signal.unsubscribe=()=>this.unsubscribe(a),t.signal}static source(){let t;return{token:new ef(function(n){t=n}),cancel:t}}}const oU1=ef;function lU1(e){return function(a){return e.apply(null,a)}}function fU1(e){return _1.isObject(e)&&e.isAxiosError===!0}const G7={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(G7).forEach(([e,t])=>{G7[t]=e});const uU1=G7;function mA(e){const t=new rc(e),a=qS(rc.prototype.request,t);return _1.extend(a,rc.prototype,t,{allOwnKeys:!0}),_1.extend(a,t,null,{allOwnKeys:!0}),a.create=function(n){return mA(f6(e,n))},a}const ze=mA(J9);ze.Axios=rc;ze.CanceledError=ya;ze.CancelToken=oU1;ze.isCancel=iA;ze.VERSION=hA;ze.toFormData=ai;ze.AxiosError=t2;ze.Cancel=ze.CanceledError;ze.all=function(t){return Promise.all(t)};ze.spread=lU1;ze.isAxiosError=fU1;ze.mergeConfig=f6;ze.AxiosHeaders=d4;ze.formToJSON=e=>cA(_1.isHTMLForm(e)?new FormData(e):e);ze.getAdapter=dA.getAdapter;ze.HttpStatusCode=uU1;ze.default=ze;const Ia=ze;function dU1(e,t,a,r){if(e==="get")return Ia.get(t,{params:a,...r});if(e==="post")return Ia.post(t,a,r);if(e==="put")return Ia.put(t,a,r);if(e==="patch")return Ia.patch(t,a,r);if(e==="delete")return Ia.delete(t,{data:a,...r})}function hU1(e,t){return e?Array.isArray(t)?t.map(a=>new e(a)):new e(t):t}const N8=_2("apiConnectionsError");function mU1(e){var r,n,c;const t=(c=(n=(r=e.response)==null?void 0:r.data)==null?void 0:n.error)==null?void 0:c.errorCode;if(!t){T4("danger",()=>N8("INTERNAL_SERVER_ERROR"));return}const a=Z2.getConfig();if(a.i18n.apiConnectionsError(t)){T4("danger",()=>a.i18n.apiConnectionsError(t));return}if(N8(t)){T4("danger",()=>N8(t));return}T4("danger",()=>N8("INTERNAL_SERVER_ERROR"))}const Cp=_2("apiConnectionsSuccess");function pU1(e){const t=Z2.getConfig();if(t.i18n.apiConnectionsSuccess(e)){T4("success",()=>t.i18n.apiConnectionsSuccess(e));return}Cp(e)&&T4("success",()=>Cp(e))}function vU1(e){const t=new FormData;return Object.entries(e).forEach(([a,r])=>{Array.isArray(r)?r.forEach(n=>{t.append(a,n)}):t.append(a,r)}),t}function gU1(e){const t={language:h4().language};return e.basicAuth||(t.Authorization=`Bearer ${Ep()||""}`),{headers:t,auth:e.basicAuth}}async function Pt(e,t,a,r,n){var c;try{n!=null&&n.isLoadingRef&&!(n!=null&&n.preventSetIsLoadingRef)&&(n.isLoadingRef.value=!0);const i=(c=a.meta)!=null&&c.sendAsFormData?vU1(r):r,s=gU1({basicAuth:n==null?void 0:n.basicAuth}),l=Z2.getConfig().backendUrl
|
|
869
|
+
`+c):r.stack=c}catch{}}throw r}}_request(t,a){typeof t=="string"?(a=a||{},a.url=t):a=t||{},a=f6(this.defaults,a);const{transitional:r,paramsSerializer:n,headers:c}=a;r!==void 0&&ac.assertOptions(r,{silentJSONParsing:z4.transitional(z4.boolean),forcedJSONParsing:z4.transitional(z4.boolean),clarifyTimeoutError:z4.transitional(z4.boolean)},!1),n!=null&&(_1.isFunction(n)?a.paramsSerializer={serialize:n}:ac.assertOptions(n,{encode:z4.function,serialize:z4.function},!0)),ac.assertOptions(a,{baseUrl:z4.spelling("baseURL"),withXsrfToken:z4.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let i=c&&_1.merge(c.common,c[a.method]);c&&_1.forEach(["delete","get","head","post","put","patch","common"],v=>{delete c[v]}),a.headers=d4.concat(i,c);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(a)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const f=[];this.interceptors.response.forEach(function(p){f.push(p.fulfilled,p.rejected)});let u,d=0,h;if(!l){const v=[xp.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,f),h=v.length,u=Promise.resolve(a);d<h;)u=u.then(v[d++],v[d++]);return u}h=s.length;let m=a;for(d=0;d<h;){const v=s[d++],p=s[d++];try{m=v(m)}catch(g){p.call(this,g);break}}try{u=xp.call(this,m)}catch(v){return Promise.reject(v)}for(d=0,h=f.length;d<h;)u=u.then(f[d++],f[d++]);return u}getUri(t){t=f6(this.defaults,t);const a=oA(t.baseURL,t.url);return rA(a,t.params,t.paramsSerializer)}}_1.forEach(["delete","get","head","options"],function(t){Qc.prototype[t]=function(a,r){return this.request(f6(r||{},{method:t,url:a,data:(r||{}).data}))}});_1.forEach(["post","put","patch"],function(t){function a(r){return function(c,i,s){return this.request(f6(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:c,data:i}))}}Qc.prototype[t]=a(),Qc.prototype[t+"Form"]=a(!0)});const rc=Qc;class ef{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(c){a=c});const r=this;this.promise.then(n=>{if(!r._listeners)return;let c=r._listeners.length;for(;c-- >0;)r._listeners[c](n);r._listeners=null}),this.promise.then=n=>{let c;const i=new Promise(s=>{r.subscribe(s),c=s}).then(n);return i.cancel=function(){r.unsubscribe(c)},i},t(function(c,i,s){r.reason||(r.reason=new ya(c,i,s),a(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const a=this._listeners.indexOf(t);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const t=new AbortController,a=r=>{t.abort(r)};return this.subscribe(a),t.signal.unsubscribe=()=>this.unsubscribe(a),t.signal}static source(){let t;return{token:new ef(function(n){t=n}),cancel:t}}}const oU1=ef;function lU1(e){return function(a){return e.apply(null,a)}}function fU1(e){return _1.isObject(e)&&e.isAxiosError===!0}const G7={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(G7).forEach(([e,t])=>{G7[t]=e});const uU1=G7;function mA(e){const t=new rc(e),a=qS(rc.prototype.request,t);return _1.extend(a,rc.prototype,t,{allOwnKeys:!0}),_1.extend(a,t,null,{allOwnKeys:!0}),a.create=function(n){return mA(f6(e,n))},a}const ze=mA(J9);ze.Axios=rc;ze.CanceledError=ya;ze.CancelToken=oU1;ze.isCancel=iA;ze.VERSION=hA;ze.toFormData=ai;ze.AxiosError=t2;ze.Cancel=ze.CanceledError;ze.all=function(t){return Promise.all(t)};ze.spread=lU1;ze.isAxiosError=fU1;ze.mergeConfig=f6;ze.AxiosHeaders=d4;ze.formToJSON=e=>cA(_1.isHTMLForm(e)?new FormData(e):e);ze.getAdapter=dA.getAdapter;ze.HttpStatusCode=uU1;ze.default=ze;const Ia=ze;function dU1(e,t,a,r){if(e==="get")return Ia.get(t,{params:a,...r});if(e==="post")return Ia.post(t,a,r);if(e==="put")return Ia.put(t,a,r);if(e==="patch")return Ia.patch(t,a,r);if(e==="delete")return Ia.delete(t,{data:a,...r})}function hU1(e,t){return e?Array.isArray(t)?t.map(a=>new e(a)):new e(t):t}const N8=_2("apiConnectionsError");function mU1(e){var r,n,c;const t=(c=(n=(r=e.response)==null?void 0:r.data)==null?void 0:n.error)==null?void 0:c.errorCode;if(!t){T4("danger",()=>N8("INTERNAL_SERVER_ERROR"));return}const a=Z2.getConfig();if(a.i18n.apiConnectionsError(t)){T4("danger",()=>a.i18n.apiConnectionsError(t));return}if(N8(t)){T4("danger",()=>N8(t));return}T4("danger",()=>N8("INTERNAL_SERVER_ERROR"))}const Cp=_2("apiConnectionsSuccess");function pU1(e){const t=Z2.getConfig();if(t.i18n.apiConnectionsSuccess(e)){T4("success",()=>t.i18n.apiConnectionsSuccess(e));return}Cp(e)&&T4("success",()=>Cp(e))}function vU1(e){const t=new FormData;return Object.entries(e).forEach(([a,r])=>{Array.isArray(r)?r.forEach(n=>{t.append(a,n)}):t.append(a,r)}),t}function gU1(e){const t={language:h4().language};return e.basicAuth||(t.Authorization=`Bearer ${Ep()||""}`),{headers:t,auth:e.basicAuth}}async function Pt(e,t,a,r,n){var c;try{n!=null&&n.isLoadingRef&&!(n!=null&&n.preventSetIsLoadingRef)&&(n.isLoadingRef.value=!0);const i=(c=a.meta)!=null&&c.sendAsFormData?vU1(r):r,s=gU1({basicAuth:n==null?void 0:n.basicAuth}),l=Z2.getConfig().backendUrl,f=await dU1(e,`${l}/${t}`,i,s),u=hU1(a.response,f.data.data);return((n==null?void 0:n.displaySuccess)!==void 0?n.displaySuccess:e!=="get")&&pU1(f.data.successCode),n!=null&&n.success&&n.success(u,f.data.totalCount),{data:u,totalCount:f.data.totalCount}}catch(i){if(n!=null&&n.preventDisplayError||mU1(i),n!=null&&n.error&&n.error(i),n!=null&&n.preventThrowError)return{data:null,totalCount:void 0};throw i}finally{n!=null&&n.isLoadingRef&&(n.isLoadingRef.value=!1),n!=null&&n.finally&&n.finally()}}function ws(e,t){return t?`${e}/${t}`:e}function S6(e,t){return e?Array.isArray(t)?t.map(a=>new e(a)):new e(t):t}function yU1(e){return{getOne(t,a,r,n){const c=e[t].getOne,i=ws(t,a),s=S6(c.params,r);return Pt("get",i,c,s,n)},getMany(t,a,r){const n=e[t].getMany,c=S6(n.params,a);return Pt("get",t,n,c,r)},postOne(t,a,r){const n=e[t].postOne,c=S6(n.params,a);return Pt("post",t,n,c,r)},postMany(t,a,r){const n=e[t].postMany,c=S6(n.params,a);return Pt("post",t,n,c,r)},putOne(t,a,r,n){const c=e[t].putOne,i=ws(t,a),s=S6(c.params,r);return Pt("put",i,c,s,n)},putMany(t,a,r){const n=e[t].putMany,c=S6(n.params,a);return Pt("put",t,n,c,r)},deleteOne(t,a,r){const n=e[t].deleteOne,c=ws(t,a);return Pt("delete",c,n,void 0,r)},deleteMany(t,a,r){const n=e[t].deleteMany;return Pt("delete",t,n,a,r)}}}//! moment.js
|
|
870
870
|
//! version : 2.30.1
|
|
871
871
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
872
872
|
//! license : MIT
|
package/dist/main.es.js
CHANGED
|
@@ -1502,8 +1502,13 @@ function _E() {
|
|
|
1502
1502
|
return !!e[a].accessToken && !!e[a].user.id;
|
|
1503
1503
|
}
|
|
1504
1504
|
function HE() {
|
|
1505
|
-
|
|
1506
|
-
|
|
1505
|
+
console.log("getAccessToken");
|
|
1506
|
+
const e = xe.getConfig().stores.useAuthStore();
|
|
1507
|
+
console.log("currentRouteType");
|
|
1508
|
+
const t = j4().currentRouteType;
|
|
1509
|
+
console.log(t), console.log("getFirstChartInUppercase");
|
|
1510
|
+
const a = `auth${u3.getFirstChartInUppercase(t)}`;
|
|
1511
|
+
return console.log("return"), e[a].accessToken;
|
|
1507
1512
|
}
|
|
1508
1513
|
async function LE(e, t, a) {
|
|
1509
1514
|
const r = xe.getConfig(), n = r.stores.useAuthStore(), i = `authentication/login/${e}`, c = { basicAuth: t, isLoadingRef: a == null ? void 0 : a.isLoadingRef }, s = await r.api.postOne(i, void 0, c);
|
|
@@ -75372,11 +75377,7 @@ async function h0(e, t, a, r, n) {
|
|
|
75372
75377
|
var i;
|
|
75373
75378
|
try {
|
|
75374
75379
|
n != null && n.isLoadingRef && !(n != null && n.preventSetIsLoadingRef) && (n.isLoadingRef.value = !0);
|
|
75375
|
-
const c = (i = a.meta) != null && i.sendAsFormData ? vW1(r) : r, s = gW1({ basicAuth: n == null ? void 0 : n.basicAuth }), o = xe.getConfig().backendUrl;
|
|
75376
|
-
console.log("callAxios");
|
|
75377
|
-
const l = await hW1(e, `${o}/${t}`, c, s);
|
|
75378
|
-
console.log("convertJsonToModel");
|
|
75379
|
-
const f = dW1(a.response, l.data.data);
|
|
75380
|
+
const c = (i = a.meta) != null && i.sendAsFormData ? vW1(r) : r, s = gW1({ basicAuth: n == null ? void 0 : n.basicAuth }), o = xe.getConfig().backendUrl, l = await hW1(e, `${o}/${t}`, c, s), f = dW1(a.response, l.data.data);
|
|
75380
75381
|
return ((n == null ? void 0 : n.displaySuccess) !== void 0 ? n.displaySuccess : e !== "get") && pW1(l.data.successCode), n != null && n.success && n.success(f, l.data.totalCount), { data: f, totalCount: l.data.totalCount };
|
|
75381
75382
|
} catch (c) {
|
|
75382
75383
|
if (n != null && n.preventDisplayError || mW1(c), n != null && n.error && n.error(c), n != null && n.preventThrowError)
|