@syncfy/authentication-widget 0.0.10 → 0.0.11

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.
@@ -1,4 +1,4 @@
1
- (function(pa,Ei){typeof exports=="object"&&typeof module<"u"?module.exports=Ei():typeof define=="function"&&define.amd?define(Ei):(pa=typeof globalThis<"u"?globalThis:pa||self,pa.SyncfyAuthenticationWidget=Ei())})(this,function(){"use strict";var B5e=Object.defineProperty;var k5e=(pa,Ei,fl)=>Ei in pa?B5e(pa,Ei,{enumerable:!0,configurable:!0,writable:!0,value:fl}):pa[Ei]=fl;var kt=(pa,Ei,fl)=>(k5e(pa,typeof Ei!="symbol"?Ei+"":Ei,fl),fl);const pa={accounts_selection:{done:e=>{const{normalize:t}=e;return t(["Done"])},fetching:e=>{const{normalize:t}=e;return t(["Fetching accounts"])},form_error:e=>{const{normalize:t}=e;return t(["Please select at least one account."])},form_label:e=>{const{normalize:t}=e;return t(["Syncfy will only share the data you select."])},form_label_client:e=>{const{normalize:t,interpolate:r,named:n}=e;return t(["Syncfy will only share the data you select with ",r(n("client")),"."])},title:e=>{const{normalize:t}=e;return t(["Select Accounts"])}},api_errors:{400:{long_description:e=>{const{normalize:t}=e;return t(["Sorry, an internal error has been occurred while connecting to the institution."])},real:{long_description:e=>{const{normalize:t}=e;return t(["Some API request params are incorrect."])},short_description:e=>{const{normalize:t}=e;return t(["Bad Request"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},401:{long_description:e=>{const{normalize:t}=e;return t(["Sorry, an internal error has been occurred while connecting to the institution."])},real:{long_description:e=>{const{normalize:t}=e;return t(["Authentication failed."])},short_description:e=>{const{normalize:t}=e;return t(["Unauthorized"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},402:{long_description:e=>{const{normalize:t}=e;return t(["Something went wrong when trying to access this service. Please contact the support team for more information."])},real:{long_description:e=>{const{normalize:t}=e;return t(["API is disabled for non-payment."])},short_description:e=>{const{normalize:t}=e;return t(["Payment Required"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},403:{long_description:e=>{const{normalize:t}=e;return t(["Sorry, an internal error has been occurred while connecting to the institution."])},real:{long_description:e=>{const{normalize:t}=e;return t(["Forbidden."])},short_description:e=>{const{normalize:t}=e;return t(["Forbidden"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},404:{long_description:e=>{const{normalize:t}=e;return t(["Sorry, an internal error has been occurred while connecting to the institution."])},real:{long_description:e=>{const{normalize:t}=e;return t(["Not Found."])},short_description:e=>{const{normalize:t}=e;return t(["Not Found"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},429:{long_description:e=>{const{normalize:t}=e;return t(["Too many requests have been made in a short time. Please try again later"])},real:{long_description:e=>{const{normalize:t}=e;return t(["Too Many Requests."])},short_description:e=>{const{normalize:t}=e;return t(["Too Many Requests"])}},short_description:e=>{const{normalize:t}=e;return t(["Requests Rate Limit Exceeded"])}},500:{long_description:e=>{const{normalize:t}=e;return t(["Sorry, an internal error has been occurred while connecting to the institution."])},real:{long_description:e=>{const{normalize:t}=e;return t(["Internal Server Error."])},short_description:e=>{const{normalize:t}=e;return t(["Internal Server Error"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},503:{long_description:e=>{const{normalize:t}=e;return t(["Sorry, an internal error has been occurred while connecting to the institution."])},real:{long_description:e=>{const{normalize:t}=e;return t(["Service Unavailable."])},short_description:e=>{const{normalize:t}=e;return t(["Service Unavailable"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},credential_error:{long_description:e=>{const{normalize:t}=e;return t(["Credential error, please consider updating credential password."])},real:{long_description:e=>{const{normalize:t}=e;return t(["Credential error, please consider updating credential password."])},short_description:e=>{const{normalize:t}=e;return t(["Credential error"])}},short_description:e=>{const{normalize:t}=e;return t(["Credential error"])}},credential_not_found:{long_description:e=>{const{normalize:t}=e;return t(["The given entrypoint.credential was invalid or not found."])},real:{long_description:e=>{const{normalize:t}=e;return t(["The given entrypoint.credential was invalid or not found."])},short_description:e=>{const{normalize:t}=e;return t(["Invalid entrypoint.credential"])}},short_description:e=>{const{normalize:t}=e;return t(["Invalid entrypoint.credential"])}},no_internet:{long_description:e=>{const{normalize:t}=e;return t(["There is no internet connection, check your connection and try again."])},real:{long_description:e=>{const{normalize:t}=e;return t(["There is no internet connection, check your connection and try again."])},short_description:e=>{const{normalize:t}=e;return t(["Connection error"])}},short_description:e=>{const{normalize:t}=e;return t(["Connection error"])}},site_not_found:{long_description:e=>{const{normalize:t}=e;return t(["The given entrypoint.site was invalid or not found."])},real:{long_description:e=>{const{normalize:t}=e;return t(["The given entrypoint.site was invalid or not found."])},short_description:e=>{const{normalize:t}=e;return t(["Invalid entrypoint.site"])}},short_description:e=>{const{normalize:t}=e;return t(["Invalid entrypoint.site"])}}},bridge:{114:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},116:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3e3:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3001:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3008:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3010:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3014:{long_description:e=>{const{normalize:t}=e;return t(["Se ha detectado más de una Llave Inteligente BBVA u ocurrió un error de comunicación."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3015:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3016:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3020:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3021:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3022:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3333:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3334:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3335:{long_description:e=>{const{normalize:t}=e;return t(["No se ha detectado una Llave Inteligente BBVA, verifique que esté conectada correctamente a su equipo."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3336:{long_description:e=>{const{normalize:t}=e;return t(["Error de comunicación durante el proceso de validación de su Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},digipass_config_script_not_loaded:{long_description:e=>{const{normalize:t}=e;return t(["Digipass configuration script not loaded"])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},digipass_script_not_loaded:{long_description:e=>{const{normalize:t}=e;return t(["Digipass script not loaded"])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},host_update_available:{long_description:e=>{const{normalize:t}=e;return t(["Host application update available."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},not_ready:{long_description:e=>{const{normalize:t}=e;return t(["Bridge is not ready"])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}}},common:{add_other:e=>{const{normalize:t}=e;return t(["Add another institution"])},back:e=>{const{normalize:t}=e;return t(["Back"])},cancel:e=>{const{normalize:t}=e;return t(["Cancel"])},close:e=>{const{normalize:t}=e;return t(["Close"])},data_error:e=>{const{normalize:t}=e;return t(["Sorry, an error occurred when loading the initial data"])},error:e=>{const{normalize:t}=e;return t(["Error"])},expand:e=>{const{normalize:t}=e;return t(["Expand"])},find_your_institution:e=>{const{normalize:t}=e;return t(["Find Your Institution"])},finish:e=>{const{normalize:t}=e;return t(["Finish"])},header:{login:e=>{const{normalize:t}=e;return t(["Login Information"])},link:e=>{const{normalize:t}=e;return t(["Link your Institution"])},select:e=>{const{normalize:t}=e;return t(["Select the institution"])}},hide:e=>{const{normalize:t}=e;return t(["Hide"])},intro:e=>{const{normalize:t}=e;return t(["Connect accounts from different institutions and extract data automatically"])},less:e=>{const{normalize:t}=e;return t(["less"])},long_description:e=>{const{normalize:t}=e;return t(["Connect accounts from different institutions and extract data automatically"])},more:e=>{const{normalize:t}=e;return t(["more"])},next:e=>{const{normalize:t}=e;return t(["Next"])},no_filtered_data:e=>{const{normalize:t}=e;return t(["There are no institutions available with the search criteria."])},process_running:e=>{const{normalize:t}=e;return t(["There is an institution being connected at this moment. Please, wait for this connection to finish."])},refresh:e=>{const{normalize:t}=e;return t(["Refresh"])},retry:e=>{const{normalize:t}=e;return t(["Try Again"])},search:e=>{const{normalize:t}=e;return t(["Search..."])},security_banner_content:e=>{const{normalize:t}=e;return t(["Your information is transferred encrypted end-to-end with the same standard Banks and Financial Institutions utilize."])},security_banner_title:e=>{const{normalize:t}=e;return t(["Secure and Private"])},session_error:e=>{const{normalize:t}=e;return t(["Something went wrong."])},session_refreshed_message:e=>{const{normalize:t}=e;return t(["Your session has been updated."])},session_refreshed:e=>{const{normalize:t}=e;return t(["Session refreshed"])},show:e=>{const{normalize:t,interpolate:r,named:n}=e;return t(["Show ",r(n("msg"))])},show_password:e=>{const{normalize:t}=e;return t(["Show"])},test_mode:e=>{const{normalize:t}=e;return t(["You are currently running in Test Mode"])},unauthorized_message:e=>{const{normalize:t}=e;return t(["Your session expired, do you want refresh your session?"])},unauthorized:e=>{const{normalize:t}=e;return t(["Unauthorized"])},update_title:e=>{const{normalize:t}=e;return t(["Update Institution"])},webapp_add_banks:e=>{const{normalize:t}=e;return t(["Banks"])},webapp_add_blockchain:e=>{const{normalize:t}=e;return t(["Blockchain"])},webapp_add_government:e=>{const{normalize:t}=e;return t(["Government"])},webapp_add_utilities:e=>{const{normalize:t}=e;return t(["Utilities"])},webapp_add_wallet:e=>{const{normalize:t}=e;return t(["Digital Wallets"])}},credential:{api_error:{message:e=>{const{normalize:t}=e;return t(["Sorry, an internal error has been occurred while connecting to the institution."])},title:e=>{const{normalize:t}=e;return t(["Error"])}},found:{message:e=>{const{normalize:t}=e;return t(["Waiting to establish connection."])},title:e=>{const{normalize:t}=e;return t(["Credential Found"])}},loading:{message:e=>{const{normalize:t}=e;return t(["Please wait a moment while we connect to the institution."])},title:e=>{const{normalize:t}=e;return t(["Connecting to Institution"])}},search:{message:e=>{const{normalize:t}=e;return t(["Please wait a moment while we verify your information."])},title:e=>{const{normalize:t}=e;return t(["Validating Credentials"])}}},file:{choose:e=>{const{normalize:t}=e;return t(["Choose file"])},invalid:e=>{const{normalize:t,interpolate:r,named:n}=e;return t(["File extesion should be ",r(n("extension"))])},no_chosen:e=>{const{normalize:t}=e;return t(["No file chosen."])},required:e=>{const{normalize:t}=e;return t(["is required."])}},form_errors:{regex:e=>{const{normalize:t,interpolate:r,named:n}=e;return t(["Introduced value is not of type ",r(n("label"))])},required:e=>{const{normalize:t,interpolate:r,named:n}=e;return t([r(n("label"))," is required"])}},santander_ws:{error:{long_description:e=>{const{normalize:t}=e;return t(["There was an error generating the token."])},short_description:e=>{const{normalize:t}=e;return t(["Token error"])}},script_not_loaded:{long_description:e=>{const{normalize:t}=e;return t(["Script not loaded."])},short_description:e=>{const{normalize:t}=e;return t(["Token error"])}}},site:{login:{authenticating:e=>{const{normalize:t}=e;return t(["Authenticating"])},error:e=>{const{normalize:t}=e;return t(["Authentication Error"])},success:e=>{const{normalize:t}=e;return t(["Successful Authentication"])}}},socket:{error:{long_description:e=>{const{normalize:t}=e;return t(["Socket connection ended, check your connection and try again."])},short_description:e=>{const{normalize:t}=e;return t(["Socket error"])}},message:{100:{long_description:e=>{const{normalize:t}=e;return t(["Establishing connection with the institution..."])},short_description:e=>{const{normalize:t}=e;return t(["Establishing Connection"])}},101:{long_description:e=>{const{normalize:t}=e;return t(["Connection established with the institution, credentials are being validated..."])},short_description:e=>{const{normalize:t}=e;return t(["Validating Credentials"])}},102:{long_description:e=>{const{normalize:t}=e;return t(["Successfully logged into the institution"])},short_description:e=>{const{normalize:t}=e;return t(["Login Successful"])}},103:{long_description:e=>{const{normalize:t}=e;return t(["The token has been sent and is being validated..."])},short_description:e=>{const{normalize:t}=e;return t(["Validating Token"])}},200:{long_description:e=>{const{normalize:t}=e;return t(["The connection has been successful. Data has been extracted"])},short_description:e=>{const{normalize:t}=e;return t(["Institution Connected Successfully"])}},201:{long_description:e=>{const{normalize:t}=e;return t(["The connection has been successful. We have partially extracted information, but data will still be extracted in background processes."])},short_description:e=>{const{normalize:t}=e;return t(["Institution Connected Successfully"])}},202:{long_description:e=>{const{normalize:t}=e;return t(["The connection has been successful. However, no transactions were found."])},short_description:e=>{const{normalize:t}=e;return t(["Institution Connected Successfully"])}},203:{long_description:e=>{const{normalize:t}=e;return t(["The connection has been successful. However, more than one account does not have transactions."])},short_description:e=>{const{normalize:t}=e;return t(["Institution Connected Successfully"])}},204:{long_description:e=>{const{normalize:t}=e;return t(["The connection has been successful. However, the data downloaded is incomplete."])},short_description:e=>{const{normalize:t}=e;return t(["Institution Connected Successfully"])}},206:{long_description:e=>{const{normalize:t}=e;return t(["The connection has been successful. However, there were no accounts linked to the given credentials."])},short_description:e=>{const{normalize:t}=e;return t(["Institution Connected Successfully"])}},400:{long_description:e=>{const{normalize:t}=e;return t(["The value of one of the parameters is incorrect."])},short_description:e=>{const{normalize:t}=e;return t(["Bad request"])}},401:{long_description:e=>{const{normalize:t}=e;return t(["The value of one of the given Authentication Fields was not accepted by the institution. Please verify the information and try again."])},short_description:e=>{const{normalize:t}=e;return t(["Invalid Credentials"])}},403:{long_description:e=>{const{normalize:t}=e;return t(["The given token value introduced was not accepted by the institution or the expiration time was reached."])},short_description:e=>{const{normalize:t}=e;return t(["Invalid Token"])}},405:{long_description:e=>{const{normalize:t}=e;return t(["The institution has blocked the given credential, please contact your institution and make sure your connection to the site is working properly before trying again."])},short_description:e=>{const{normalize:t}=e;return t(["Credential Locked"])}},406:{long_description:e=>{const{normalize:t}=e;return t(["The institution does not allow to have more than one user logged in. If you have logged into your institution using another device, please make sure to log out before trying again."])},short_description:e=>{const{normalize:t}=e;return t(["Already Logged In"])}},408:{long_description:e=>{const{normalize:t}=e;return t(["The institution requires attention from the user. We advise you to log into the institution to confirm everything is working properly. Upon confirmation, try again."])},short_description:e=>{const{normalize:t}=e;return t(["Attention Required"])}},409:{long_description:e=>{const{normalize:t}=e;return t(["The given credentials seem to be valid, but they belong to a different site from the same organization."])},short_description:e=>{const{normalize:t}=e;return t(["Incorrect Site"])}},410:{long_description:e=>{const{normalize:t}=e;return t(["Waiting for token..."])},short_description:e=>{const{normalize:t}=e;return t(["Authenticating"])}},411:{long_description:e=>{const{normalize:t}=e;return t(["The time to introduce the token value has been exceeded."])},short_description:e=>{const{normalize:t}=e;return t(["Token Not Received"])}},413:{long_description:e=>{const{normalize:t}=e;return t(["There was a problem in the connection. Please wait 15 minutes and try again. If the problem persists contact Technical Support."])},short_description:e=>{const{normalize:t}=e;return t(["Connection Error"])}},500:{long_description:e=>{const{normalize:t}=e;return t(["Sorry, an internal error has been occurred while connecting to the institution."])},short_description:e=>{const{normalize:t}=e;return t(["Internal Error"])}},501:{long_description:e=>{const{normalize:t}=e;return t(["The institution has informed to us that there was a problem in the connection. Please wait 15 minutes and try again. If the problem persists contact Technical Support."])},short_description:e=>{const{normalize:t}=e;return t(["Connection Error"])}},504:{long_description:e=>{const{normalize:t}=e;return t(["Sorry, an internal error has been occurred while connecting to the institution."])},short_description:e=>{const{normalize:t}=e;return t(["Internal Error"])}},507:{long_description:e=>{const{normalize:t}=e;return t(["The institution has informed to us that there was a problem in the connection. Please wait 15 minutes and try again. If the problem persists contact Technical Support."])},short_description:e=>{const{normalize:t}=e;return t(["Connection Error"])}},509:{long_description:e=>{const{normalize:t}=e;return t(["Sorry, the institution is in maintenance."])},short_description:e=>{const{normalize:t}=e;return t(["Site in Maintenance"])}}},quick_answer:{long_description:e=>{const{normalize:t}=e;return t(["Successfully logged into the institution. The data will be extracted by background processes."])},short_description:e=>{const{normalize:t}=e;return t(["Login Successful"])}},timeout:{long_description:e=>{const{normalize:t}=e;return t(["Server is taking too long to respond."])},short_description:e=>{const{normalize:t}=e;return t(["Internal Error"])}}},twofa:{waiting:e=>{const{normalize:t}=e;return t(["Waiting for token"])}}},Ei={accounts_selection:{done:e=>{const{normalize:t}=e;return t(["Terminar"])},fetching:e=>{const{normalize:t}=e;return t(["Obteniendo cuentas"])},form_error:e=>{const{normalize:t}=e;return t(["Por favor selecciona al menos una cuenta."])},form_label:e=>{const{normalize:t}=e;return t(["Syncfy sólo compartirá los datos que selecciones."])},form_label_client:e=>{const{normalize:t,interpolate:r,named:n}=e;return t(["Syncfy sólo compartirá los datos que selecciones con ",r(n("client")),"."])},title:e=>{const{normalize:t}=e;return t(["Seleccionar cuentas"])}},api_errors:{400:{long_description:e=>{const{normalize:t}=e;return t(["Lo sentimos, la institución se encuentra temporalmente fuera de servicio."])},real:{long_description:e=>{const{normalize:t}=e;return t(["Algunos parámetros de la petición son incorrectos."])},short_description:e=>{const{normalize:t}=e;return t(["Petición incorrecta"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},401:{long_description:e=>{const{normalize:t}=e;return t(["Lo sentimos, la institución se encuentra temporalmente fuera de servicio."])},real:{long_description:e=>{const{normalize:t}=e;return t(["La autenticación falló."])},short_description:e=>{const{normalize:t}=e;return t(["No autorizado"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},402:{long_description:e=>{const{normalize:t}=e;return t(["Algo salió mal al intentar acceder a este servicio. Comunícate con el equipo de soporte para obtener más información."])},real:{long_description:e=>{const{normalize:t}=e;return t(["El API se deshabilitó por falta de pago."])},short_description:e=>{const{normalize:t}=e;return t(["Pago requerido"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},403:{long_description:e=>{const{normalize:t}=e;return t(["Lo sentimos, la institución se encuentra temporalmente fuera de servicio."])},real:{long_description:e=>{const{normalize:t}=e;return t(["Prohibido."])},short_description:e=>{const{normalize:t}=e;return t(["Prohibido"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},404:{long_description:e=>{const{normalize:t}=e;return t(["Lo sentimos, la institución se encuentra temporalmente fuera de servicio."])},real:{long_description:e=>{const{normalize:t}=e;return t(["No encontrado."])},short_description:e=>{const{normalize:t}=e;return t(["No encontrado"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},429:{long_description:e=>{const{normalize:t}=e;return t(["Se han realizado muchas peticiones en un periodo corto de tiempo. Por favor intentar nuevamente más tarde."])},real:{long_description:e=>{const{normalize:t}=e;return t(["Se han realizado muchas peticiones en un periodo corto de tiempo. Por favor intentar nuevamente más tarde."])},short_description:e=>{const{normalize:t}=e;return t(["Límite de peticiones excedido"])}},short_description:e=>{const{normalize:t}=e;return t(["Límite de peticiones excedido"])}},500:{long_description:e=>{const{normalize:t}=e;return t(["Lo sentimos, un error interno ha ocurrido. Por favor intenta nuevamente más tarde."])},real:{long_description:e=>{const{normalize:t}=e;return t(["Error interno del servidor."])},short_description:e=>{const{normalize:t}=e;return t(["Error interno del servidor"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},503:{long_description:e=>{const{normalize:t}=e;return t(["Lo sentimos, un error interno ha ocurrido. Por favor intenta nuevamente más tarde."])},real:{long_description:e=>{const{normalize:t}=e;return t(["Servicio no disponible."])},short_description:e=>{const{normalize:t}=e;return t(["Servicio no disponible"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},credential_error:{long_description:e=>{const{normalize:t}=e;return t(["Error en las credenciales, por favor considera actualizar la contraseña de las credenciales."])},real:{long_description:e=>{const{normalize:t}=e;return t(["Error en las credenciales, por favor considera actualizar la contraseña de las credenciales."])},short_description:e=>{const{normalize:t}=e;return t(["Error en las credenciales"])}},short_description:e=>{const{normalize:t}=e;return t(["Error en las credenciales"])}},credential_not_found:{long_description:e=>{const{normalize:t}=e;return t(["El parámetro entrypoint.credential proporcionado es inválido o no se encontró."])},real:{long_description:e=>{const{normalize:t}=e;return t(["El parámetro entrypoint.credential proporcionado es inválido o no se encontró."])},short_description:e=>{const{normalize:t}=e;return t(["entrypoint.credential inválido"])}},short_description:e=>{const{normalize:t}=e;return t(["entrypoint.credential inválido"])}},no_internet:{long_description:e=>{const{normalize:t}=e;return t(["No hay conexión a internet, revisa tu conexión e intenta nuevamente."])},real:{long_description:e=>{const{normalize:t}=e;return t(["No hay conexión a internet, revisa tu conexión e intenta nuevamente."])},short_description:e=>{const{normalize:t}=e;return t(["Error de conexión"])}},short_description:e=>{const{normalize:t}=e;return t(["Error de conexión"])}},site_not_found:{long_description:e=>{const{normalize:t}=e;return t(["El parámetro entrypoint.site proporcionado es inválido o no se encontró."])},real:{long_description:e=>{const{normalize:t}=e;return t(["El parámetro entrypoint.site proporcionado es inválido o no se encontró."])},short_description:e=>{const{normalize:t}=e;return t(["entrypoint.site inválido"])}},short_description:e=>{const{normalize:t}=e;return t(["entrypoint.site inválido"])}}},bridge:{114:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},116:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3e3:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3001:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3008:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3010:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3014:{long_description:e=>{const{normalize:t}=e;return t(["Se ha detectado más de una Llave Inteligente BBVA u ocurrió un error de comunicación."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3015:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3016:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3020:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3021:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3022:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3333:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3334:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3335:{long_description:e=>{const{normalize:t}=e;return t(["No se ha detectado una Llave Inteligente BBVA, verifique que esté conectada correctamente a su equipo."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3336:{long_description:e=>{const{normalize:t}=e;return t(["Error de comunicación durante el proceso de validación de su Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},digipass_config_script_not_loaded:{long_description:e=>{const{normalize:t}=e;return t(["Digipass configuration script not loaded"])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},digipass_script_not_loaded:{long_description:e=>{const{normalize:t}=e;return t(["Digipass script not loaded"])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},host_update_available:{long_description:e=>{const{normalize:t}=e;return t(["Host application update available."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},not_ready:{long_description:e=>{const{normalize:t}=e;return t(["Bridge is not ready"])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}}},common:{add_other:e=>{const{normalize:t}=e;return t(["Agregar Otra Institución"])},back:e=>{const{normalize:t}=e;return t(["Atrás"])},cancel:e=>{const{normalize:t}=e;return t(["Cancelar"])},close:e=>{const{normalize:t}=e;return t(["Cerrar"])},data_error:e=>{const{normalize:t}=e;return t(["Lo sentimos, ocurrió un error al cargar la información inicial"])},error:e=>{const{normalize:t}=e;return t(["Error"])},expand:e=>{const{normalize:t}=e;return t(["Expandir"])},find_your_institution:e=>{const{normalize:t}=e;return t(["Encuentra tu institución"])},finish:e=>{const{normalize:t}=e;return t(["Finalizar"])},header:{login:e=>{const{normalize:t}=e;return t(["Información de inicio de sesión"])},link:e=>{const{normalize:t}=e;return t(["Conecta tu institución"])},select:e=>{const{normalize:t}=e;return t(["Seleccione la institución"])}},hide:e=>{const{normalize:t}=e;return t(["Ocultar"])},intro:e=>{const{normalize:t}=e;return t(["Conecta cuentas de diferentes instituciones y extrae datos automáticamente"])},less:e=>{const{normalize:t}=e;return t(["menos"])},long_description:e=>{const{normalize:t}=e;return t(["Conecta cuentas de diferentes instituciones y extrae datos automáticamente"])},more:e=>{const{normalize:t}=e;return t(["más"])},next:e=>{const{normalize:t}=e;return t(["Siguiente"])},no_filtered_data:e=>{const{normalize:t}=e;return t(["No hay instituciones disponibles con el criterio de búsqueda."])},process_running:e=>{const{normalize:t}=e;return t(["Actualmente existe una institución procesándose en este momento. Por favor, espera a que este proceso termine."])},refresh:e=>{const{normalize:t}=e;return t(["Renovar"])},retry:e=>{const{normalize:t}=e;return t(["Intentar Nuevamente"])},search:e=>{const{normalize:t}=e;return t(["Buscar..."])},security_banner_content:e=>{const{normalize:t}=e;return t(["Tu información se transfiere cifrada de extremo a extremo con el mismo estándar que utilizan los bancos e instituciones financieras."])},security_banner_title:e=>{const{normalize:t}=e;return t(["Seguro y privado"])},session_error:e=>{const{normalize:t}=e;return t(["Algo salió mal al actualizar la sesión."])},session_refreshed_message:e=>{const{normalize:t}=e;return t(["Tu sesión ha sido actualizada."])},session_refreshed:e=>{const{normalize:t}=e;return t(["Sesión renovada"])},show:e=>{const{normalize:t,interpolate:r,named:n}=e;return t(["Mostrar ",r(n("msg"))])},show_password:e=>{const{normalize:t}=e;return t(["Mostrar"])},test_mode:e=>{const{normalize:t}=e;return t(["Actualmente estás operando en Modo de Prueba"])},unauthorized_message:e=>{const{normalize:t}=e;return t(["Tu sesión ha expirado, ¿Quieres renovar tu sesión?"])},unauthorized:e=>{const{normalize:t}=e;return t(["Sin autorización"])},update_title:e=>{const{normalize:t}=e;return t(["Actualizar Institución"])},webapp_add_banks:e=>{const{normalize:t}=e;return t(["Bancos"])},webapp_add_blockchain:e=>{const{normalize:t}=e;return t(["Blockchain"])},webapp_add_government:e=>{const{normalize:t}=e;return t(["Gobierno"])},webapp_add_utilities:e=>{const{normalize:t}=e;return t(["Servicios"])},webapp_add_wallet:e=>{const{normalize:t}=e;return t(["Carteras Digitales"])}},credential:{api_error:{message:e=>{const{normalize:t}=e;return t(["Lo sentimos, un error interno ha ocurrido. Por favor intenta nuevamente más tarde."])},title:e=>{const{normalize:t}=e;return t(["Error"])}},found:{message:e=>{const{normalize:t}=e;return t(["Espere un momento mientras conectamos con la institución."])},title:e=>{const{normalize:t}=e;return t(["Credenciales encontradas"])}},loading:{message:e=>{const{normalize:t}=e;return t(["Espere un momento mientras conectamos con la institución."])},title:e=>{const{normalize:t}=e;return t(["Conectando con la institución"])}},search:{message:e=>{const{normalize:t}=e;return t(["Por favor espera un momento mientras validamos tus credenciales."])},title:e=>{const{normalize:t}=e;return t(["Validando credenciales"])}}},file:{choose:e=>{const{normalize:t}=e;return t(["Seleccionar archivo"])},invalid:e=>{const{normalize:t,interpolate:r,named:n}=e;return t(["La extensión del archivo debe ser ",r(n("extension"))])},no_chosen:e=>{const{normalize:t}=e;return t(["Ningún archivo seleccionado."])},required:e=>{const{normalize:t}=e;return t(["es requerido."])}},form_errors:{regex:e=>{const{normalize:t,interpolate:r,named:n}=e;return t(["El valor ingresado no es de tipo ",r(n("label"))])},required:e=>{const{normalize:t,interpolate:r,named:n}=e;return t([r(n("label"))," es requerido"])}},santander_ws:{error:{long_description:e=>{const{normalize:t}=e;return t(["Hubo un error al generar el token."])},short_description:e=>{const{normalize:t}=e;return t(["Error del token"])}},script_not_loaded:{long_description:e=>{const{normalize:t}=e;return t(["No se cargó el script."])},short_description:e=>{const{normalize:t}=e;return t(["Error del token"])}}},site:{login:{authenticating:e=>{const{normalize:t}=e;return t(["Autenticando"])},error:e=>{const{normalize:t}=e;return t(["Error de Autenticación"])},success:e=>{const{normalize:t}=e;return t(["Autenticación Exitosa"])}}},socket:{error:{long_description:e=>{const{normalize:t}=e;return t(["La conexión con el socket finalizó, revisa tu conexión e intenta nuevamente."])},short_description:e=>{const{normalize:t}=e;return t(["Error del socket"])}},message:{100:{long_description:e=>{const{normalize:t}=e;return t(["Estableciendo conexión con la institución..."])},short_description:e=>{const{normalize:t}=e;return t(["Estableciendo Conexión"])}},101:{long_description:e=>{const{normalize:t}=e;return t(["Conexión establecida con la institución, las credenciales se encuentran en proceso de validación..."])},short_description:e=>{const{normalize:t}=e;return t(["Validando Credenciales"])}},102:{long_description:e=>{const{normalize:t}=e;return t(["Se ha iniciado sesión exitosamente en el sitio de la institución."])},short_description:e=>{const{normalize:t}=e;return t(["Sesión Iniciada Exitosamente"])}},103:{long_description:e=>{const{normalize:t}=e;return t(["El token ha sido enviado al sitio y se encuentra en proceso de validación..."])},short_description:e=>{const{normalize:t}=e;return t(["Validando Token"])}},200:{long_description:e=>{const{normalize:t}=e;return t(["La conexión ha sido exitosa. Se ha descargado la información."])},short_description:e=>{const{normalize:t}=e;return t(["Institución Conectada Exitosamente"])}},201:{long_description:e=>{const{normalize:t}=e;return t(["La conexión ha sido exitosa. Se ha descargado parte de la información, pero se continuará descargando información en segundo plano."])},short_description:e=>{const{normalize:t}=e;return t(["Institución Conectada Exitosamente"])}},202:{long_description:e=>{const{normalize:t}=e;return t(["La conexión ha sido exitosa. Sin embargo, no se encontraron transacciones."])},short_description:e=>{const{normalize:t}=e;return t(["Institución Conectada Exitosamente"])}},203:{long_description:e=>{const{normalize:t}=e;return t(["La conexión ha sido exitosa. Se ha detectado que una o más cuentas no tienen transacciones."])},short_description:e=>{const{normalize:t}=e;return t(["Institución Conectada Exitosamente"])}},204:{long_description:e=>{const{normalize:t}=e;return t(["La conexión ha concluido. Sin embargo, se ha detectado que la información obtenida está incompleta."])},short_description:e=>{const{normalize:t}=e;return t(["Institución Conectada Exitosamente"])}},206:{long_description:e=>{const{normalize:t}=e;return t(["La conexión ha sido exitosa. Sin embargo, no se encontraron cuentas vinculadas a las credenciales proporcionadas."])},short_description:e=>{const{normalize:t}=e;return t(["Institución Conectada Exitosamente"])}},400:{long_description:e=>{const{normalize:t}=e;return t(["El valor de alguno de los parámetros es incorrecto."])},short_description:e=>{const{normalize:t}=e;return t(["Solicitud incorrecta"])}},401:{long_description:e=>{const{normalize:t}=e;return t(["El valor de alguno de los elementos de autenticación que proporcionaste no fue aceptado por la institución. Por favor verifica la información e intenta de nuevo."])},short_description:e=>{const{normalize:t}=e;return t(["Credenciales Inválidas"])}},403:{long_description:e=>{const{normalize:t}=e;return t(["El valor del token introducido no aceptado por la institución o ha expirado el tiempo para utilizarlo."])},short_description:e=>{const{normalize:t}=e;return t(["Token Inválido"])}},405:{long_description:e=>{const{normalize:t}=e;return t(["La institución ha bloqueado las credenciales proporcionadas. Por favor contacta a tu institución y asegúrate que tu banca en línea está funcionando correctamente antes de intentarlo nuevamente."])},short_description:e=>{const{normalize:t}=e;return t(["Credenciales Bloqueadas"])}},406:{long_description:e=>{const{normalize:t}=e;return t(["La institución no permite iniciar más de una sesión para las credenciales proporcionadas. Si has iniciado sesión en otro lado por favor asegúrate de haberla cerrado antes de intentarlo nuevamente."])},short_description:e=>{const{normalize:t}=e;return t(["Sesión Abierta"])}},408:{long_description:e=>{const{normalize:t}=e;return t(["La institución solicita atención del usuario para las credenciales proporcionadas. Te recomendamos iniciar sesión en el portal de la institución para confirmar que todo está en orden, posterior a eso favor de intentar nuevamente."])},short_description:e=>{const{normalize:t}=e;return t(["Atención Requerida"])}},409:{long_description:e=>{const{normalize:t}=e;return t(["Las credenciales parecen ser válidas sin embargo corresponden a un sitio diferente de la misma organización."])},short_description:e=>{const{normalize:t}=e;return t(["Sitio Incorrecto"])}},410:{long_description:e=>{const{normalize:t}=e;return t(["Esperando token..."])},short_description:e=>{const{normalize:t}=e;return t(["Autenticando"])}},411:{long_description:e=>{const{normalize:t}=e;return t(["Se excedió el tiempo de espera para introducir el valor del token."])},short_description:e=>{const{normalize:t}=e;return t(["Token no recibido"])}},413:{long_description:e=>{const{normalize:t}=e;return t(["Hubo un problema durante el proceso de conexión. Por favor esperar 15 minutos e intentar nuevamente. Si persiste el problema contacte a Soporte Técnico."])},short_description:e=>{const{normalize:t}=e;return t(["Error de Conexión"])}},500:{long_description:e=>{const{normalize:t}=e;return t(["Lo sentimos, ha ocurrido un error interno al procesar tu institución."])},short_description:e=>{const{normalize:t}=e;return t(["Error Interno"])}},501:{long_description:e=>{const{normalize:t}=e;return t(["La institución nos ha informado que tuvo un problema durante el proceso de conexión. Por favor esperar 15 minutos e intentar nuevamente. Si persiste el problema contacte a Soporte Técnico."])},short_description:e=>{const{normalize:t}=e;return t(["Error de Conexión"])}},504:{long_description:e=>{const{normalize:t}=e;return t(["Lo sentimos, ha ocurrido un error interno al procesar tu institución."])},short_description:e=>{const{normalize:t}=e;return t(["Error Interno"])}},507:{long_description:e=>{const{normalize:t}=e;return t(["La institución nos ha informado que tuvo un problema durante el proceso de conexión. Por favor esperar 15 minutos e intentar nuevamente. Si persiste el problema contacte a Soporte Técnico."])},short_description:e=>{const{normalize:t}=e;return t(["Error de Conexión"])}},509:{long_description:e=>{const{normalize:t}=e;return t(["Lo sentimos, la institución se encuentra en mantenimiento."])},short_description:e=>{const{normalize:t}=e;return t(["Sitio en Mantenimiento"])}}},quick_answer:{long_description:e=>{const{normalize:t}=e;return t(["La conexión ha sido exitosa. La información se continuará descargando información en segundo plano."])},short_description:e=>{const{normalize:t}=e;return t(["Sesión Iniciada Exitosamente."])}},timeout:{long_description:e=>{const{normalize:t}=e;return t(["El servidor ha tardado en responder."])},short_description:e=>{const{normalize:t}=e;return t(["Error Interno"])}}},twofa:{waiting:e=>{const{normalize:t}=e;return t(["Esperando token"])}}};function fl(e){return typeof HTMLElement=="object"?e instanceof HTMLElement:e&&typeof e=="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string"}var Bt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ve={},hd={};hd.byteLength=BL,hd.toByteArray=NL,hd.fromByteArray=PL;for(var Ua=[],Fi=[],AL=typeof Uint8Array<"u"?Uint8Array:Array,tg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Pf=0,IL=tg.length;Pf<IL;++Pf)Ua[Pf]=tg[Pf],Fi[tg.charCodeAt(Pf)]=Pf;Fi["-".charCodeAt(0)]=62,Fi["_".charCodeAt(0)]=63;function Cx(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function BL(e){var t=Cx(e),r=t[0],n=t[1];return(r+n)*3/4-n}function kL(e,t,r){return(t+r)*3/4-r}function NL(e){var t,r=Cx(e),n=r[0],a=r[1],i=new AL(kL(e,n,a)),o=0,l=a>0?n-4:n,f;for(f=0;f<l;f+=4)t=Fi[e.charCodeAt(f)]<<18|Fi[e.charCodeAt(f+1)]<<12|Fi[e.charCodeAt(f+2)]<<6|Fi[e.charCodeAt(f+3)],i[o++]=t>>16&255,i[o++]=t>>8&255,i[o++]=t&255;return a===2&&(t=Fi[e.charCodeAt(f)]<<2|Fi[e.charCodeAt(f+1)]>>4,i[o++]=t&255),a===1&&(t=Fi[e.charCodeAt(f)]<<10|Fi[e.charCodeAt(f+1)]<<4|Fi[e.charCodeAt(f+2)]>>2,i[o++]=t>>8&255,i[o++]=t&255),i}function OL(e){return Ua[e>>18&63]+Ua[e>>12&63]+Ua[e>>6&63]+Ua[e&63]}function RL(e,t,r){for(var n,a=[],i=t;i<r;i+=3)n=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255),a.push(OL(n));return a.join("")}function PL(e){for(var t,r=e.length,n=r%3,a=[],i=16383,o=0,l=r-n;o<l;o+=i)a.push(RL(e,o,o+i>l?l:o+i));return n===1?(t=e[r-1],a.push(Ua[t>>2]+Ua[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],a.push(Ua[t>>10]+Ua[t>>4&63]+Ua[t<<2&63]+"=")),a.join("")}var rg={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */rg.read=function(e,t,r,n,a){var i,o,l=a*8-n-1,f=(1<<l)-1,c=f>>1,d=-7,v=r?a-1:0,m=r?-1:1,y=e[t+v];for(v+=m,i=y&(1<<-d)-1,y>>=-d,d+=l;d>0;i=i*256+e[t+v],v+=m,d-=8);for(o=i&(1<<-d)-1,i>>=-d,d+=n;d>0;o=o*256+e[t+v],v+=m,d-=8);if(i===0)i=1-c;else{if(i===f)return o?NaN:(y?-1:1)*(1/0);o=o+Math.pow(2,n),i=i-c}return(y?-1:1)*o*Math.pow(2,i-n)},rg.write=function(e,t,r,n,a,i){var o,l,f,c=i*8-a-1,d=(1<<c)-1,v=d>>1,m=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:i-1,b=n?1:-1,S=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,o=d):(o=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-o))<1&&(o--,f*=2),o+v>=1?t+=m/f:t+=m*Math.pow(2,1-v),t*f>=2&&(o++,f/=2),o+v>=d?(l=0,o=d):o+v>=1?(l=(t*f-1)*Math.pow(2,a),o=o+v):(l=t*Math.pow(2,v-1)*Math.pow(2,a),o=0));a>=8;e[r+y]=l&255,y+=b,l/=256,a-=8);for(o=o<<a|l,c+=a;c>0;e[r+y]=o&255,y+=b,o/=256,c-=8);e[r+y-b]|=S*128};/*!
1
+ (function(pa,Ei){typeof exports=="object"&&typeof module<"u"?module.exports=Ei():typeof define=="function"&&define.amd?define(Ei):(pa=typeof globalThis<"u"?globalThis:pa||self,pa.SyncfyAuthenticationWidget=Ei())})(this,function(){"use strict";var B5e=Object.defineProperty;var k5e=(pa,Ei,fl)=>Ei in pa?B5e(pa,Ei,{enumerable:!0,configurable:!0,writable:!0,value:fl}):pa[Ei]=fl;var kt=(pa,Ei,fl)=>(k5e(pa,typeof Ei!="symbol"?Ei+"":Ei,fl),fl);const pa={accounts_selection:{done:e=>{const{normalize:t}=e;return t(["Done"])},error:e=>{const{normalize:t}=e;return t(["An error occurred while fetching the accounts."])},fetching:e=>{const{normalize:t}=e;return t(["Fetching accounts"])},form_error:e=>{const{normalize:t}=e;return t(["Please select at least one account."])},form_label:e=>{const{normalize:t}=e;return t(["Syncfy will only share the data you select."])},form_label_client:e=>{const{normalize:t,interpolate:r,named:n}=e;return t(["Syncfy will only share the data you select with ",r(n("client")),"."])},title:e=>{const{normalize:t}=e;return t(["Select Accounts"])}},api_errors:{400:{long_description:e=>{const{normalize:t}=e;return t(["Sorry, an internal error has been occurred while connecting to the institution."])},real:{long_description:e=>{const{normalize:t}=e;return t(["Some API request params are incorrect."])},short_description:e=>{const{normalize:t}=e;return t(["Bad Request"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},401:{long_description:e=>{const{normalize:t}=e;return t(["Sorry, an internal error has been occurred while connecting to the institution."])},real:{long_description:e=>{const{normalize:t}=e;return t(["Authentication failed."])},short_description:e=>{const{normalize:t}=e;return t(["Unauthorized"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},402:{long_description:e=>{const{normalize:t}=e;return t(["Something went wrong when trying to access this service. Please contact the support team for more information."])},real:{long_description:e=>{const{normalize:t}=e;return t(["API is disabled for non-payment."])},short_description:e=>{const{normalize:t}=e;return t(["Payment Required"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},403:{long_description:e=>{const{normalize:t}=e;return t(["Sorry, an internal error has been occurred while connecting to the institution."])},real:{long_description:e=>{const{normalize:t}=e;return t(["Forbidden."])},short_description:e=>{const{normalize:t}=e;return t(["Forbidden"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},404:{long_description:e=>{const{normalize:t}=e;return t(["Sorry, an internal error has been occurred while connecting to the institution."])},real:{long_description:e=>{const{normalize:t}=e;return t(["Not Found."])},short_description:e=>{const{normalize:t}=e;return t(["Not Found"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},429:{long_description:e=>{const{normalize:t}=e;return t(["Too many requests have been made in a short time. Please try again later"])},real:{long_description:e=>{const{normalize:t}=e;return t(["Too Many Requests."])},short_description:e=>{const{normalize:t}=e;return t(["Too Many Requests"])}},short_description:e=>{const{normalize:t}=e;return t(["Requests Rate Limit Exceeded"])}},500:{long_description:e=>{const{normalize:t}=e;return t(["Sorry, an internal error has been occurred while connecting to the institution."])},real:{long_description:e=>{const{normalize:t}=e;return t(["Internal Server Error."])},short_description:e=>{const{normalize:t}=e;return t(["Internal Server Error"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},503:{long_description:e=>{const{normalize:t}=e;return t(["Sorry, an internal error has been occurred while connecting to the institution."])},real:{long_description:e=>{const{normalize:t}=e;return t(["Service Unavailable."])},short_description:e=>{const{normalize:t}=e;return t(["Service Unavailable"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},credential_error:{long_description:e=>{const{normalize:t}=e;return t(["Credential error, please consider updating credential password."])},real:{long_description:e=>{const{normalize:t}=e;return t(["Credential error, please consider updating credential password."])},short_description:e=>{const{normalize:t}=e;return t(["Credential error"])}},short_description:e=>{const{normalize:t}=e;return t(["Credential error"])}},credential_not_found:{long_description:e=>{const{normalize:t}=e;return t(["The given entrypoint.credential was invalid or not found."])},real:{long_description:e=>{const{normalize:t}=e;return t(["The given entrypoint.credential was invalid or not found."])},short_description:e=>{const{normalize:t}=e;return t(["Invalid entrypoint.credential"])}},short_description:e=>{const{normalize:t}=e;return t(["Invalid entrypoint.credential"])}},no_internet:{long_description:e=>{const{normalize:t}=e;return t(["There is no internet connection, check your connection and try again."])},real:{long_description:e=>{const{normalize:t}=e;return t(["There is no internet connection, check your connection and try again."])},short_description:e=>{const{normalize:t}=e;return t(["Connection error"])}},short_description:e=>{const{normalize:t}=e;return t(["Connection error"])}},site_not_found:{long_description:e=>{const{normalize:t}=e;return t(["The given entrypoint.site was invalid or not found."])},real:{long_description:e=>{const{normalize:t}=e;return t(["The given entrypoint.site was invalid or not found."])},short_description:e=>{const{normalize:t}=e;return t(["Invalid entrypoint.site"])}},short_description:e=>{const{normalize:t}=e;return t(["Invalid entrypoint.site"])}}},bridge:{114:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},116:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3e3:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3001:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3008:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3010:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3014:{long_description:e=>{const{normalize:t}=e;return t(["Se ha detectado más de una Llave Inteligente BBVA u ocurrió un error de comunicación."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3015:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3016:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3020:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3021:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3022:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3333:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3334:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3335:{long_description:e=>{const{normalize:t}=e;return t(["No se ha detectado una Llave Inteligente BBVA, verifique que esté conectada correctamente a su equipo."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3336:{long_description:e=>{const{normalize:t}=e;return t(["Error de comunicación durante el proceso de validación de su Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},digipass_config_script_not_loaded:{long_description:e=>{const{normalize:t}=e;return t(["Digipass configuration script not loaded"])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},digipass_script_not_loaded:{long_description:e=>{const{normalize:t}=e;return t(["Digipass script not loaded"])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},host_update_available:{long_description:e=>{const{normalize:t}=e;return t(["Host application update available."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},not_ready:{long_description:e=>{const{normalize:t}=e;return t(["Bridge is not ready"])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}}},common:{add_other:e=>{const{normalize:t}=e;return t(["Add another institution"])},back:e=>{const{normalize:t}=e;return t(["Back"])},cancel:e=>{const{normalize:t}=e;return t(["Cancel"])},close:e=>{const{normalize:t}=e;return t(["Close"])},data_error:e=>{const{normalize:t}=e;return t(["Sorry, an error occurred when loading the initial data"])},error:e=>{const{normalize:t}=e;return t(["Error"])},expand:e=>{const{normalize:t}=e;return t(["Expand"])},find_your_institution:e=>{const{normalize:t}=e;return t(["Find Your Institution"])},finish:e=>{const{normalize:t}=e;return t(["Finish"])},header:{login:e=>{const{normalize:t}=e;return t(["Login Information"])},link:e=>{const{normalize:t}=e;return t(["Link your Institution"])},select:e=>{const{normalize:t}=e;return t(["Select the institution"])}},hide:e=>{const{normalize:t}=e;return t(["Hide"])},intro:e=>{const{normalize:t}=e;return t(["Connect accounts from different institutions and extract data automatically"])},less:e=>{const{normalize:t}=e;return t(["less"])},long_description:e=>{const{normalize:t}=e;return t(["Connect accounts from different institutions and extract data automatically"])},more:e=>{const{normalize:t}=e;return t(["more"])},next:e=>{const{normalize:t}=e;return t(["Next"])},no_filtered_data:e=>{const{normalize:t}=e;return t(["There are no institutions available with the search criteria."])},process_running:e=>{const{normalize:t}=e;return t(["There is an institution being connected at this moment. Please, wait for this connection to finish."])},refresh:e=>{const{normalize:t}=e;return t(["Refresh"])},retry:e=>{const{normalize:t}=e;return t(["Try Again"])},search:e=>{const{normalize:t}=e;return t(["Search..."])},security_banner_content:e=>{const{normalize:t}=e;return t(["Your information is transferred encrypted end-to-end with the same standard Banks and Financial Institutions utilize."])},security_banner_title:e=>{const{normalize:t}=e;return t(["Secure and Private"])},session_error:e=>{const{normalize:t}=e;return t(["Something went wrong."])},session_refreshed_message:e=>{const{normalize:t}=e;return t(["Your session has been updated."])},session_refreshed:e=>{const{normalize:t}=e;return t(["Session refreshed"])},show:e=>{const{normalize:t,interpolate:r,named:n}=e;return t(["Show ",r(n("msg"))])},show_password:e=>{const{normalize:t}=e;return t(["Show"])},test_mode:e=>{const{normalize:t}=e;return t(["You are currently running in Test Mode"])},unauthorized_message:e=>{const{normalize:t}=e;return t(["Your session expired, do you want refresh your session?"])},unauthorized:e=>{const{normalize:t}=e;return t(["Unauthorized"])},update_title:e=>{const{normalize:t}=e;return t(["Update Institution"])},webapp_add_banks:e=>{const{normalize:t}=e;return t(["Banks"])},webapp_add_blockchain:e=>{const{normalize:t}=e;return t(["Blockchain"])},webapp_add_government:e=>{const{normalize:t}=e;return t(["Government"])},webapp_add_utilities:e=>{const{normalize:t}=e;return t(["Utilities"])},webapp_add_wallet:e=>{const{normalize:t}=e;return t(["Digital Wallets"])}},credential:{api_error:{message:e=>{const{normalize:t}=e;return t(["Sorry, an internal error has been occurred while connecting to the institution."])},title:e=>{const{normalize:t}=e;return t(["Error"])}},found:{message:e=>{const{normalize:t}=e;return t(["Waiting to establish connection."])},title:e=>{const{normalize:t}=e;return t(["Credential Found"])}},loading:{message:e=>{const{normalize:t}=e;return t(["Please wait a moment while we connect to the institution."])},title:e=>{const{normalize:t}=e;return t(["Connecting to Institution"])}},search:{message:e=>{const{normalize:t}=e;return t(["Please wait a moment while we verify your information."])},title:e=>{const{normalize:t}=e;return t(["Validating Credentials"])}}},file:{choose:e=>{const{normalize:t}=e;return t(["Choose file"])},invalid:e=>{const{normalize:t,interpolate:r,named:n}=e;return t(["File extesion should be ",r(n("extension"))])},no_chosen:e=>{const{normalize:t}=e;return t(["No file chosen."])},required:e=>{const{normalize:t}=e;return t(["is required."])}},form_errors:{regex:e=>{const{normalize:t,interpolate:r,named:n}=e;return t(["Introduced value is not of type ",r(n("label"))])},required:e=>{const{normalize:t,interpolate:r,named:n}=e;return t([r(n("label"))," is required"])}},santander_ws:{error:{long_description:e=>{const{normalize:t}=e;return t(["There was an error generating the token."])},short_description:e=>{const{normalize:t}=e;return t(["Token error"])}},script_not_loaded:{long_description:e=>{const{normalize:t}=e;return t(["Script not loaded."])},short_description:e=>{const{normalize:t}=e;return t(["Token error"])}}},site:{login:{authenticating:e=>{const{normalize:t}=e;return t(["Authenticating"])},error:e=>{const{normalize:t}=e;return t(["Authentication Error"])},success:e=>{const{normalize:t}=e;return t(["Successful Authentication"])}}},socket:{error:{long_description:e=>{const{normalize:t}=e;return t(["Socket connection ended, check your connection and try again."])},short_description:e=>{const{normalize:t}=e;return t(["Socket error"])}},message:{100:{long_description:e=>{const{normalize:t}=e;return t(["Establishing connection with the institution..."])},short_description:e=>{const{normalize:t}=e;return t(["Establishing Connection"])}},101:{long_description:e=>{const{normalize:t}=e;return t(["Connection established with the institution, credentials are being validated..."])},short_description:e=>{const{normalize:t}=e;return t(["Validating Credentials"])}},102:{long_description:e=>{const{normalize:t}=e;return t(["Successfully logged into the institution"])},short_description:e=>{const{normalize:t}=e;return t(["Login Successful"])}},103:{long_description:e=>{const{normalize:t}=e;return t(["The token has been sent and is being validated..."])},short_description:e=>{const{normalize:t}=e;return t(["Validating Token"])}},200:{long_description:e=>{const{normalize:t}=e;return t(["The connection has been successful. Data has been extracted"])},short_description:e=>{const{normalize:t}=e;return t(["Institution Connected Successfully"])}},201:{long_description:e=>{const{normalize:t}=e;return t(["The connection has been successful. We have partially extracted information, but data will still be extracted in background processes."])},short_description:e=>{const{normalize:t}=e;return t(["Institution Connected Successfully"])}},202:{long_description:e=>{const{normalize:t}=e;return t(["The connection has been successful. However, no transactions were found."])},short_description:e=>{const{normalize:t}=e;return t(["Institution Connected Successfully"])}},203:{long_description:e=>{const{normalize:t}=e;return t(["The connection has been successful. However, more than one account does not have transactions."])},short_description:e=>{const{normalize:t}=e;return t(["Institution Connected Successfully"])}},204:{long_description:e=>{const{normalize:t}=e;return t(["The connection has been successful. However, the data downloaded is incomplete."])},short_description:e=>{const{normalize:t}=e;return t(["Institution Connected Successfully"])}},206:{long_description:e=>{const{normalize:t}=e;return t(["The connection has been successful. However, there were no accounts linked to the given credentials."])},short_description:e=>{const{normalize:t}=e;return t(["Institution Connected Successfully"])}},400:{long_description:e=>{const{normalize:t}=e;return t(["The value of one of the parameters is incorrect."])},short_description:e=>{const{normalize:t}=e;return t(["Bad request"])}},401:{long_description:e=>{const{normalize:t}=e;return t(["The value of one of the given Authentication Fields was not accepted by the institution. Please verify the information and try again."])},short_description:e=>{const{normalize:t}=e;return t(["Invalid Credentials"])}},403:{long_description:e=>{const{normalize:t}=e;return t(["The given token value introduced was not accepted by the institution or the expiration time was reached."])},short_description:e=>{const{normalize:t}=e;return t(["Invalid Token"])}},405:{long_description:e=>{const{normalize:t}=e;return t(["The institution has blocked the given credential, please contact your institution and make sure your connection to the site is working properly before trying again."])},short_description:e=>{const{normalize:t}=e;return t(["Credential Locked"])}},406:{long_description:e=>{const{normalize:t}=e;return t(["The institution does not allow to have more than one user logged in. If you have logged into your institution using another device, please make sure to log out before trying again."])},short_description:e=>{const{normalize:t}=e;return t(["Already Logged In"])}},408:{long_description:e=>{const{normalize:t}=e;return t(["The institution requires attention from the user. We advise you to log into the institution to confirm everything is working properly. Upon confirmation, try again."])},short_description:e=>{const{normalize:t}=e;return t(["Attention Required"])}},409:{long_description:e=>{const{normalize:t}=e;return t(["The given credentials seem to be valid, but they belong to a different site from the same organization."])},short_description:e=>{const{normalize:t}=e;return t(["Incorrect Site"])}},410:{long_description:e=>{const{normalize:t}=e;return t(["Waiting for token..."])},short_description:e=>{const{normalize:t}=e;return t(["Authenticating"])}},411:{long_description:e=>{const{normalize:t}=e;return t(["The time to introduce the token value has been exceeded."])},short_description:e=>{const{normalize:t}=e;return t(["Token Not Received"])}},413:{long_description:e=>{const{normalize:t}=e;return t(["There was a problem in the connection. Please wait 15 minutes and try again. If the problem persists contact Technical Support."])},short_description:e=>{const{normalize:t}=e;return t(["Connection Error"])}},500:{long_description:e=>{const{normalize:t}=e;return t(["Sorry, an internal error has been occurred while connecting to the institution."])},short_description:e=>{const{normalize:t}=e;return t(["Internal Error"])}},501:{long_description:e=>{const{normalize:t}=e;return t(["The institution has informed to us that there was a problem in the connection. Please wait 15 minutes and try again. If the problem persists contact Technical Support."])},short_description:e=>{const{normalize:t}=e;return t(["Connection Error"])}},504:{long_description:e=>{const{normalize:t}=e;return t(["Sorry, an internal error has been occurred while connecting to the institution."])},short_description:e=>{const{normalize:t}=e;return t(["Internal Error"])}},507:{long_description:e=>{const{normalize:t}=e;return t(["The institution has informed to us that there was a problem in the connection. Please wait 15 minutes and try again. If the problem persists contact Technical Support."])},short_description:e=>{const{normalize:t}=e;return t(["Connection Error"])}},509:{long_description:e=>{const{normalize:t}=e;return t(["Sorry, the institution is in maintenance."])},short_description:e=>{const{normalize:t}=e;return t(["Site in Maintenance"])}}},quick_answer:{long_description:e=>{const{normalize:t}=e;return t(["Successfully logged into the institution. The data will be extracted by background processes."])},short_description:e=>{const{normalize:t}=e;return t(["Login Successful"])}},timeout:{long_description:e=>{const{normalize:t}=e;return t(["Server is taking too long to respond."])},short_description:e=>{const{normalize:t}=e;return t(["Internal Error"])}}},twofa:{waiting:e=>{const{normalize:t}=e;return t(["Waiting for token"])}}},Ei={accounts_selection:{done:e=>{const{normalize:t}=e;return t(["Terminar"])},error:e=>{const{normalize:t}=e;return t(["Pasó un error al obtener las cuentas."])},fetching:e=>{const{normalize:t}=e;return t(["Obteniendo cuentas"])},form_error:e=>{const{normalize:t}=e;return t(["Por favor selecciona al menos una cuenta."])},form_label:e=>{const{normalize:t}=e;return t(["Syncfy sólo compartirá los datos que selecciones."])},form_label_client:e=>{const{normalize:t,interpolate:r,named:n}=e;return t(["Syncfy sólo compartirá los datos que selecciones con ",r(n("client")),"."])},title:e=>{const{normalize:t}=e;return t(["Seleccionar cuentas"])}},api_errors:{400:{long_description:e=>{const{normalize:t}=e;return t(["Lo sentimos, la institución se encuentra temporalmente fuera de servicio."])},real:{long_description:e=>{const{normalize:t}=e;return t(["Algunos parámetros de la petición son incorrectos."])},short_description:e=>{const{normalize:t}=e;return t(["Petición incorrecta"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},401:{long_description:e=>{const{normalize:t}=e;return t(["Lo sentimos, la institución se encuentra temporalmente fuera de servicio."])},real:{long_description:e=>{const{normalize:t}=e;return t(["La autenticación falló."])},short_description:e=>{const{normalize:t}=e;return t(["No autorizado"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},402:{long_description:e=>{const{normalize:t}=e;return t(["Algo salió mal al intentar acceder a este servicio. Comunícate con el equipo de soporte para obtener más información."])},real:{long_description:e=>{const{normalize:t}=e;return t(["El API se deshabilitó por falta de pago."])},short_description:e=>{const{normalize:t}=e;return t(["Pago requerido"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},403:{long_description:e=>{const{normalize:t}=e;return t(["Lo sentimos, la institución se encuentra temporalmente fuera de servicio."])},real:{long_description:e=>{const{normalize:t}=e;return t(["Prohibido."])},short_description:e=>{const{normalize:t}=e;return t(["Prohibido"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},404:{long_description:e=>{const{normalize:t}=e;return t(["Lo sentimos, la institución se encuentra temporalmente fuera de servicio."])},real:{long_description:e=>{const{normalize:t}=e;return t(["No encontrado."])},short_description:e=>{const{normalize:t}=e;return t(["No encontrado"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},429:{long_description:e=>{const{normalize:t}=e;return t(["Se han realizado muchas peticiones en un periodo corto de tiempo. Por favor intentar nuevamente más tarde."])},real:{long_description:e=>{const{normalize:t}=e;return t(["Se han realizado muchas peticiones en un periodo corto de tiempo. Por favor intentar nuevamente más tarde."])},short_description:e=>{const{normalize:t}=e;return t(["Límite de peticiones excedido"])}},short_description:e=>{const{normalize:t}=e;return t(["Límite de peticiones excedido"])}},500:{long_description:e=>{const{normalize:t}=e;return t(["Lo sentimos, un error interno ha ocurrido. Por favor intenta nuevamente más tarde."])},real:{long_description:e=>{const{normalize:t}=e;return t(["Error interno del servidor."])},short_description:e=>{const{normalize:t}=e;return t(["Error interno del servidor"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},503:{long_description:e=>{const{normalize:t}=e;return t(["Lo sentimos, un error interno ha ocurrido. Por favor intenta nuevamente más tarde."])},real:{long_description:e=>{const{normalize:t}=e;return t(["Servicio no disponible."])},short_description:e=>{const{normalize:t}=e;return t(["Servicio no disponible"])}},short_description:e=>{const{normalize:t}=e;return t(["Error"])}},credential_error:{long_description:e=>{const{normalize:t}=e;return t(["Error en las credenciales, por favor considera actualizar la contraseña de las credenciales."])},real:{long_description:e=>{const{normalize:t}=e;return t(["Error en las credenciales, por favor considera actualizar la contraseña de las credenciales."])},short_description:e=>{const{normalize:t}=e;return t(["Error en las credenciales"])}},short_description:e=>{const{normalize:t}=e;return t(["Error en las credenciales"])}},credential_not_found:{long_description:e=>{const{normalize:t}=e;return t(["El parámetro entrypoint.credential proporcionado es inválido o no se encontró."])},real:{long_description:e=>{const{normalize:t}=e;return t(["El parámetro entrypoint.credential proporcionado es inválido o no se encontró."])},short_description:e=>{const{normalize:t}=e;return t(["entrypoint.credential inválido"])}},short_description:e=>{const{normalize:t}=e;return t(["entrypoint.credential inválido"])}},no_internet:{long_description:e=>{const{normalize:t}=e;return t(["No hay conexión a internet, revisa tu conexión e intenta nuevamente."])},real:{long_description:e=>{const{normalize:t}=e;return t(["No hay conexión a internet, revisa tu conexión e intenta nuevamente."])},short_description:e=>{const{normalize:t}=e;return t(["Error de conexión"])}},short_description:e=>{const{normalize:t}=e;return t(["Error de conexión"])}},site_not_found:{long_description:e=>{const{normalize:t}=e;return t(["El parámetro entrypoint.site proporcionado es inválido o no se encontró."])},real:{long_description:e=>{const{normalize:t}=e;return t(["El parámetro entrypoint.site proporcionado es inválido o no se encontró."])},short_description:e=>{const{normalize:t}=e;return t(["entrypoint.site inválido"])}},short_description:e=>{const{normalize:t}=e;return t(["entrypoint.site inválido"])}}},bridge:{114:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},116:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3e3:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3001:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3008:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3010:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3014:{long_description:e=>{const{normalize:t}=e;return t(["Se ha detectado más de una Llave Inteligente BBVA u ocurrió un error de comunicación."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3015:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3016:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3020:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3021:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3022:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3333:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3334:{long_description:e=>{const{normalize:t}=e;return t(["Error en validación de Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3335:{long_description:e=>{const{normalize:t}=e;return t(["No se ha detectado una Llave Inteligente BBVA, verifique que esté conectada correctamente a su equipo."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},3336:{long_description:e=>{const{normalize:t}=e;return t(["Error de comunicación durante el proceso de validación de su Llave Inteligente BBVA."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},digipass_config_script_not_loaded:{long_description:e=>{const{normalize:t}=e;return t(["Digipass configuration script not loaded"])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},digipass_script_not_loaded:{long_description:e=>{const{normalize:t}=e;return t(["Digipass script not loaded"])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},host_update_available:{long_description:e=>{const{normalize:t}=e;return t(["Host application update available."])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}},not_ready:{long_description:e=>{const{normalize:t}=e;return t(["Bridge is not ready"])},short_description:e=>{const{normalize:t}=e;return t(["Bridge error"])}}},common:{add_other:e=>{const{normalize:t}=e;return t(["Agregar Otra Institución"])},back:e=>{const{normalize:t}=e;return t(["Atrás"])},cancel:e=>{const{normalize:t}=e;return t(["Cancelar"])},close:e=>{const{normalize:t}=e;return t(["Cerrar"])},data_error:e=>{const{normalize:t}=e;return t(["Lo sentimos, ocurrió un error al cargar la información inicial"])},error:e=>{const{normalize:t}=e;return t(["Error"])},expand:e=>{const{normalize:t}=e;return t(["Expandir"])},find_your_institution:e=>{const{normalize:t}=e;return t(["Encuentra tu institución"])},finish:e=>{const{normalize:t}=e;return t(["Finalizar"])},header:{login:e=>{const{normalize:t}=e;return t(["Información de inicio de sesión"])},link:e=>{const{normalize:t}=e;return t(["Conecta tu institución"])},select:e=>{const{normalize:t}=e;return t(["Seleccione la institución"])}},hide:e=>{const{normalize:t}=e;return t(["Ocultar"])},intro:e=>{const{normalize:t}=e;return t(["Conecta cuentas de diferentes instituciones y extrae datos automáticamente"])},less:e=>{const{normalize:t}=e;return t(["menos"])},long_description:e=>{const{normalize:t}=e;return t(["Conecta cuentas de diferentes instituciones y extrae datos automáticamente"])},more:e=>{const{normalize:t}=e;return t(["más"])},next:e=>{const{normalize:t}=e;return t(["Siguiente"])},no_filtered_data:e=>{const{normalize:t}=e;return t(["No hay instituciones disponibles con el criterio de búsqueda."])},process_running:e=>{const{normalize:t}=e;return t(["Actualmente existe una institución procesándose en este momento. Por favor, espera a que este proceso termine."])},refresh:e=>{const{normalize:t}=e;return t(["Renovar"])},retry:e=>{const{normalize:t}=e;return t(["Intentar Nuevamente"])},search:e=>{const{normalize:t}=e;return t(["Buscar..."])},security_banner_content:e=>{const{normalize:t}=e;return t(["Tu información se transfiere cifrada de extremo a extremo con el mismo estándar que utilizan los bancos e instituciones financieras."])},security_banner_title:e=>{const{normalize:t}=e;return t(["Seguro y privado"])},session_error:e=>{const{normalize:t}=e;return t(["Algo salió mal al actualizar la sesión."])},session_refreshed_message:e=>{const{normalize:t}=e;return t(["Tu sesión ha sido actualizada."])},session_refreshed:e=>{const{normalize:t}=e;return t(["Sesión renovada"])},show:e=>{const{normalize:t,interpolate:r,named:n}=e;return t(["Mostrar ",r(n("msg"))])},show_password:e=>{const{normalize:t}=e;return t(["Mostrar"])},test_mode:e=>{const{normalize:t}=e;return t(["Actualmente estás operando en Modo de Prueba"])},unauthorized_message:e=>{const{normalize:t}=e;return t(["Tu sesión ha expirado, ¿Quieres renovar tu sesión?"])},unauthorized:e=>{const{normalize:t}=e;return t(["Sin autorización"])},update_title:e=>{const{normalize:t}=e;return t(["Actualizar Institución"])},webapp_add_banks:e=>{const{normalize:t}=e;return t(["Bancos"])},webapp_add_blockchain:e=>{const{normalize:t}=e;return t(["Blockchain"])},webapp_add_government:e=>{const{normalize:t}=e;return t(["Gobierno"])},webapp_add_utilities:e=>{const{normalize:t}=e;return t(["Servicios"])},webapp_add_wallet:e=>{const{normalize:t}=e;return t(["Carteras Digitales"])}},credential:{api_error:{message:e=>{const{normalize:t}=e;return t(["Lo sentimos, un error interno ha ocurrido. Por favor intenta nuevamente más tarde."])},title:e=>{const{normalize:t}=e;return t(["Error"])}},found:{message:e=>{const{normalize:t}=e;return t(["Espere un momento mientras conectamos con la institución."])},title:e=>{const{normalize:t}=e;return t(["Credenciales encontradas"])}},loading:{message:e=>{const{normalize:t}=e;return t(["Espere un momento mientras conectamos con la institución."])},title:e=>{const{normalize:t}=e;return t(["Conectando con la institución"])}},search:{message:e=>{const{normalize:t}=e;return t(["Por favor espera un momento mientras validamos tus credenciales."])},title:e=>{const{normalize:t}=e;return t(["Validando credenciales"])}}},file:{choose:e=>{const{normalize:t}=e;return t(["Seleccionar archivo"])},invalid:e=>{const{normalize:t,interpolate:r,named:n}=e;return t(["La extensión del archivo debe ser ",r(n("extension"))])},no_chosen:e=>{const{normalize:t}=e;return t(["Ningún archivo seleccionado."])},required:e=>{const{normalize:t}=e;return t(["es requerido."])}},form_errors:{regex:e=>{const{normalize:t,interpolate:r,named:n}=e;return t(["El valor ingresado no es de tipo ",r(n("label"))])},required:e=>{const{normalize:t,interpolate:r,named:n}=e;return t([r(n("label"))," es requerido"])}},santander_ws:{error:{long_description:e=>{const{normalize:t}=e;return t(["Hubo un error al generar el token."])},short_description:e=>{const{normalize:t}=e;return t(["Error del token"])}},script_not_loaded:{long_description:e=>{const{normalize:t}=e;return t(["No se cargó el script."])},short_description:e=>{const{normalize:t}=e;return t(["Error del token"])}}},site:{login:{authenticating:e=>{const{normalize:t}=e;return t(["Autenticando"])},error:e=>{const{normalize:t}=e;return t(["Error de Autenticación"])},success:e=>{const{normalize:t}=e;return t(["Autenticación Exitosa"])}}},socket:{error:{long_description:e=>{const{normalize:t}=e;return t(["La conexión con el socket finalizó, revisa tu conexión e intenta nuevamente."])},short_description:e=>{const{normalize:t}=e;return t(["Error del socket"])}},message:{100:{long_description:e=>{const{normalize:t}=e;return t(["Estableciendo conexión con la institución..."])},short_description:e=>{const{normalize:t}=e;return t(["Estableciendo Conexión"])}},101:{long_description:e=>{const{normalize:t}=e;return t(["Conexión establecida con la institución, las credenciales se encuentran en proceso de validación..."])},short_description:e=>{const{normalize:t}=e;return t(["Validando Credenciales"])}},102:{long_description:e=>{const{normalize:t}=e;return t(["Se ha iniciado sesión exitosamente en el sitio de la institución."])},short_description:e=>{const{normalize:t}=e;return t(["Sesión Iniciada Exitosamente"])}},103:{long_description:e=>{const{normalize:t}=e;return t(["El token ha sido enviado al sitio y se encuentra en proceso de validación..."])},short_description:e=>{const{normalize:t}=e;return t(["Validando Token"])}},200:{long_description:e=>{const{normalize:t}=e;return t(["La conexión ha sido exitosa. Se ha descargado la información."])},short_description:e=>{const{normalize:t}=e;return t(["Institución Conectada Exitosamente"])}},201:{long_description:e=>{const{normalize:t}=e;return t(["La conexión ha sido exitosa. Se ha descargado parte de la información, pero se continuará descargando información en segundo plano."])},short_description:e=>{const{normalize:t}=e;return t(["Institución Conectada Exitosamente"])}},202:{long_description:e=>{const{normalize:t}=e;return t(["La conexión ha sido exitosa. Sin embargo, no se encontraron transacciones."])},short_description:e=>{const{normalize:t}=e;return t(["Institución Conectada Exitosamente"])}},203:{long_description:e=>{const{normalize:t}=e;return t(["La conexión ha sido exitosa. Se ha detectado que una o más cuentas no tienen transacciones."])},short_description:e=>{const{normalize:t}=e;return t(["Institución Conectada Exitosamente"])}},204:{long_description:e=>{const{normalize:t}=e;return t(["La conexión ha concluido. Sin embargo, se ha detectado que la información obtenida está incompleta."])},short_description:e=>{const{normalize:t}=e;return t(["Institución Conectada Exitosamente"])}},206:{long_description:e=>{const{normalize:t}=e;return t(["La conexión ha sido exitosa. Sin embargo, no se encontraron cuentas vinculadas a las credenciales proporcionadas."])},short_description:e=>{const{normalize:t}=e;return t(["Institución Conectada Exitosamente"])}},400:{long_description:e=>{const{normalize:t}=e;return t(["El valor de alguno de los parámetros es incorrecto."])},short_description:e=>{const{normalize:t}=e;return t(["Solicitud incorrecta"])}},401:{long_description:e=>{const{normalize:t}=e;return t(["El valor de alguno de los elementos de autenticación que proporcionaste no fue aceptado por la institución. Por favor verifica la información e intenta de nuevo."])},short_description:e=>{const{normalize:t}=e;return t(["Credenciales Inválidas"])}},403:{long_description:e=>{const{normalize:t}=e;return t(["El valor del token introducido no aceptado por la institución o ha expirado el tiempo para utilizarlo."])},short_description:e=>{const{normalize:t}=e;return t(["Token Inválido"])}},405:{long_description:e=>{const{normalize:t}=e;return t(["La institución ha bloqueado las credenciales proporcionadas. Por favor contacta a tu institución y asegúrate que tu banca en línea está funcionando correctamente antes de intentarlo nuevamente."])},short_description:e=>{const{normalize:t}=e;return t(["Credenciales Bloqueadas"])}},406:{long_description:e=>{const{normalize:t}=e;return t(["La institución no permite iniciar más de una sesión para las credenciales proporcionadas. Si has iniciado sesión en otro lado por favor asegúrate de haberla cerrado antes de intentarlo nuevamente."])},short_description:e=>{const{normalize:t}=e;return t(["Sesión Abierta"])}},408:{long_description:e=>{const{normalize:t}=e;return t(["La institución solicita atención del usuario para las credenciales proporcionadas. Te recomendamos iniciar sesión en el portal de la institución para confirmar que todo está en orden, posterior a eso favor de intentar nuevamente."])},short_description:e=>{const{normalize:t}=e;return t(["Atención Requerida"])}},409:{long_description:e=>{const{normalize:t}=e;return t(["Las credenciales parecen ser válidas sin embargo corresponden a un sitio diferente de la misma organización."])},short_description:e=>{const{normalize:t}=e;return t(["Sitio Incorrecto"])}},410:{long_description:e=>{const{normalize:t}=e;return t(["Esperando token..."])},short_description:e=>{const{normalize:t}=e;return t(["Autenticando"])}},411:{long_description:e=>{const{normalize:t}=e;return t(["Se excedió el tiempo de espera para introducir el valor del token."])},short_description:e=>{const{normalize:t}=e;return t(["Token no recibido"])}},413:{long_description:e=>{const{normalize:t}=e;return t(["Hubo un problema durante el proceso de conexión. Por favor esperar 15 minutos e intentar nuevamente. Si persiste el problema contacte a Soporte Técnico."])},short_description:e=>{const{normalize:t}=e;return t(["Error de Conexión"])}},500:{long_description:e=>{const{normalize:t}=e;return t(["Lo sentimos, ha ocurrido un error interno al procesar tu institución."])},short_description:e=>{const{normalize:t}=e;return t(["Error Interno"])}},501:{long_description:e=>{const{normalize:t}=e;return t(["La institución nos ha informado que tuvo un problema durante el proceso de conexión. Por favor esperar 15 minutos e intentar nuevamente. Si persiste el problema contacte a Soporte Técnico."])},short_description:e=>{const{normalize:t}=e;return t(["Error de Conexión"])}},504:{long_description:e=>{const{normalize:t}=e;return t(["Lo sentimos, ha ocurrido un error interno al procesar tu institución."])},short_description:e=>{const{normalize:t}=e;return t(["Error Interno"])}},507:{long_description:e=>{const{normalize:t}=e;return t(["La institución nos ha informado que tuvo un problema durante el proceso de conexión. Por favor esperar 15 minutos e intentar nuevamente. Si persiste el problema contacte a Soporte Técnico."])},short_description:e=>{const{normalize:t}=e;return t(["Error de Conexión"])}},509:{long_description:e=>{const{normalize:t}=e;return t(["Lo sentimos, la institución se encuentra en mantenimiento."])},short_description:e=>{const{normalize:t}=e;return t(["Sitio en Mantenimiento"])}}},quick_answer:{long_description:e=>{const{normalize:t}=e;return t(["La conexión ha sido exitosa. La información se continuará descargando información en segundo plano."])},short_description:e=>{const{normalize:t}=e;return t(["Sesión Iniciada Exitosamente."])}},timeout:{long_description:e=>{const{normalize:t}=e;return t(["El servidor ha tardado en responder."])},short_description:e=>{const{normalize:t}=e;return t(["Error Interno"])}}},twofa:{waiting:e=>{const{normalize:t}=e;return t(["Esperando token"])}}};function fl(e){return typeof HTMLElement=="object"?e instanceof HTMLElement:e&&typeof e=="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string"}var Bt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ve={},hd={};hd.byteLength=BL,hd.toByteArray=NL,hd.fromByteArray=PL;for(var Ua=[],Fi=[],AL=typeof Uint8Array<"u"?Uint8Array:Array,tg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Pf=0,IL=tg.length;Pf<IL;++Pf)Ua[Pf]=tg[Pf],Fi[tg.charCodeAt(Pf)]=Pf;Fi["-".charCodeAt(0)]=62,Fi["_".charCodeAt(0)]=63;function Cx(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function BL(e){var t=Cx(e),r=t[0],n=t[1];return(r+n)*3/4-n}function kL(e,t,r){return(t+r)*3/4-r}function NL(e){var t,r=Cx(e),n=r[0],a=r[1],i=new AL(kL(e,n,a)),o=0,l=a>0?n-4:n,f;for(f=0;f<l;f+=4)t=Fi[e.charCodeAt(f)]<<18|Fi[e.charCodeAt(f+1)]<<12|Fi[e.charCodeAt(f+2)]<<6|Fi[e.charCodeAt(f+3)],i[o++]=t>>16&255,i[o++]=t>>8&255,i[o++]=t&255;return a===2&&(t=Fi[e.charCodeAt(f)]<<2|Fi[e.charCodeAt(f+1)]>>4,i[o++]=t&255),a===1&&(t=Fi[e.charCodeAt(f)]<<10|Fi[e.charCodeAt(f+1)]<<4|Fi[e.charCodeAt(f+2)]>>2,i[o++]=t>>8&255,i[o++]=t&255),i}function OL(e){return Ua[e>>18&63]+Ua[e>>12&63]+Ua[e>>6&63]+Ua[e&63]}function RL(e,t,r){for(var n,a=[],i=t;i<r;i+=3)n=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255),a.push(OL(n));return a.join("")}function PL(e){for(var t,r=e.length,n=r%3,a=[],i=16383,o=0,l=r-n;o<l;o+=i)a.push(RL(e,o,o+i>l?l:o+i));return n===1?(t=e[r-1],a.push(Ua[t>>2]+Ua[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],a.push(Ua[t>>10]+Ua[t>>4&63]+Ua[t<<2&63]+"=")),a.join("")}var rg={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */rg.read=function(e,t,r,n,a){var i,o,l=a*8-n-1,f=(1<<l)-1,c=f>>1,d=-7,v=r?a-1:0,m=r?-1:1,y=e[t+v];for(v+=m,i=y&(1<<-d)-1,y>>=-d,d+=l;d>0;i=i*256+e[t+v],v+=m,d-=8);for(o=i&(1<<-d)-1,i>>=-d,d+=n;d>0;o=o*256+e[t+v],v+=m,d-=8);if(i===0)i=1-c;else{if(i===f)return o?NaN:(y?-1:1)*(1/0);o=o+Math.pow(2,n),i=i-c}return(y?-1:1)*o*Math.pow(2,i-n)},rg.write=function(e,t,r,n,a,i){var o,l,f,c=i*8-a-1,d=(1<<c)-1,v=d>>1,m=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:i-1,b=n?1:-1,S=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,o=d):(o=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-o))<1&&(o--,f*=2),o+v>=1?t+=m/f:t+=m*Math.pow(2,1-v),t*f>=2&&(o++,f/=2),o+v>=d?(l=0,o=d):o+v>=1?(l=(t*f-1)*Math.pow(2,a),o=o+v):(l=t*Math.pow(2,v-1)*Math.pow(2,a),o=0));a>=8;e[r+y]=l&255,y+=b,l/=256,a-=8);for(o=o<<a|l,c+=a;c>0;e[r+y]=o&255,y+=b,o/=256,c-=8);e[r+y-b]|=S*128};/*!
2
2
  * The buffer module from node.js, for the browser.
3
3
  *
4
4
  * @author Feross Aboukhadijeh <https://feross.org>
@@ -681,7 +681,7 @@
681
681
  */us(LU,DU,"app");function $U(){const t=Gx({apiKey:"AIzaSyC9JxQ4ULW2nC-tBNwsZ52OTQnS9mIeeS8",authDomain:"syncfy-widget.firebaseapp.com",projectId:"syncfy-widget",storageBucket:"syncfy-widget.appspot.com",messagingSenderId:"406921126981",appId:"1:406921126981:web:788d7d85203868101aaf2c",measurementId:"G-FYDLPN68N8"});O6(t),Ln("load")}function Ln(e,t){const r=O6();R6(r,e,{environment:{}.NODE_ENV,eventAction:e,...t||{}})}function yl(e){this._maxSize=e,this.clear()}yl.prototype.clear=function(){this._size=0,this._values=Object.create(null)},yl.prototype.get=function(e){return this._values[e]},yl.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var UU=/[^.^\]^[]+|(?=\[\]|\.\.)/g,L6=/^\d+$/,zU=/^\d/,VU=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,qU=/^\s*(['"]?)(.*?)(\1)\s*$/,Bg=512,D6=new yl(Bg),$6=new yl(Bg),U6=new yl(Bg),bl={Cache:yl,split:Ng,normalizePath:kg,setter:function(e){var t=kg(e);return $6.get(e)||$6.set(e,function(n,a){for(var i=0,o=t.length,l=n;i<o-1;){var f=t[i];if(f==="__proto__"||f==="constructor"||f==="prototype")return n;l=l[t[i++]]}l[t[i]]=a})},getter:function(e,t){var r=kg(e);return U6.get(e)||U6.set(e,function(a){for(var i=0,o=r.length;i<o;)if(a!=null||!t)a=a[r[i++]];else return;return a})},join:function(e){return e.reduce(function(t,r){return t+(Og(r)||L6.test(r)?"["+r+"]":(t?".":"")+r)},"")},forEach:function(e,t,r){HU(Array.isArray(e)?e:Ng(e),t,r)}};function kg(e){return D6.get(e)||D6.set(e,Ng(e).map(function(t){return t.replace(qU,"$2")}))}function Ng(e){return e.match(UU)||[""]}function HU(e,t,r){var n=e.length,a,i,o,l;for(i=0;i<n;i++)a=e[i],a&&(WU(a)&&(a='"'+a+'"'),l=Og(a),o=!l&&/^\d+$/.test(a),t.call(r,a,l,o,i,e))}function Og(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function jU(e){return e.match(zU)&&!e.match(L6)}function KU(e){return VU.test(e)}function WU(e){return!Og(e)&&(jU(e)||KU(e))}const GU=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,Ed=e=>e.match(GU)||[],xd=e=>e[0].toUpperCase()+e.slice(1),Rg=(e,t)=>Ed(e).join(t).toLowerCase(),z6=e=>Ed(e).reduce((t,r)=>`${t}${t?r[0].toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()}`,"");var Pg={words:Ed,upperFirst:xd,camelCase:z6,pascalCase:e=>xd(z6(e)),snakeCase:e=>Rg(e,"_"),kebabCase:e=>Rg(e,"-"),sentenceCase:e=>xd(Rg(e," ")),titleCase:e=>Ed(e).map(xd).join(" ")},Fg={exports:{}};Fg.exports=function(e){return V6(ZU(e),e)},Fg.exports.array=V6;function V6(e,t){var r=e.length,n=new Array(r),a={},i=r,o=JU(t),l=YU(e);for(t.forEach(function(c){if(!l.has(c[0])||!l.has(c[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)a[i]||f(e[i],i,new Set);return n;function f(c,d,v){if(v.has(c)){var m;try{m=", node was:"+JSON.stringify(c)}catch{m=""}throw new Error("Cyclic dependency"+m)}if(!l.has(c))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(c));if(!a[d]){a[d]=!0;var y=o.get(c)||new Set;if(y=Array.from(y),d=y.length){v.add(c);do{var b=y[--d];f(b,l.get(b),v)}while(d);v.delete(c)}n[--r]=c}}}function ZU(e){for(var t=new Set,r=0,n=e.length;r<n;r++){var a=e[r];t.add(a[0]),t.add(a[1])}return Array.from(t)}function JU(e){for(var t=new Map,r=0,n=e.length;r<n;r++){var a=e[r];t.has(a[0])||t.set(a[0],new Set),t.has(a[1])||t.set(a[1],new Set),t.get(a[0]).add(a[1])}return t}function YU(e){for(var t=new Map,r=0,n=e.length;r<n;r++)t.set(e[r],r);return t}var XU=Fg.exports;const QU=cd(XU),ez=Object.prototype.toString,tz=Error.prototype.toString,rz=RegExp.prototype.toString,nz=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",iz=/^Symbol\((.*)\)(.*)$/;function az(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function q6(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const r=typeof e;if(r==="number")return az(e);if(r==="string")return t?`"${e}"`:e;if(r==="function")return"[Function "+(e.name||"anonymous")+"]";if(r==="symbol")return nz.call(e).replace(iz,"Symbol($1)");const n=ez.call(e).slice(8,-1);return n==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):n==="Error"||e instanceof Error?"["+tz.call(e)+"]":n==="RegExp"?rz.call(e):null}function Co(e,t){let r=q6(e,t);return r!==null?r:JSON.stringify(e,function(n,a){let i=q6(this[n],t);return i!==null?i:a},2)}function H6(e){return e==null?[]:[].concat(e)}let j6,K6,W6,oz=/\$\{\s*(\w+)\s*\}/g;j6=Symbol.toStringTag;class G6{constructor(t,r,n,a){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[j6]="Error",this.name="ValidationError",this.value=r,this.path=n,this.type=a,this.errors=[],this.inner=[],H6(t).forEach(i=>{if(Dn.isError(i)){this.errors.push(...i.errors);const o=i.inner.length?i.inner:[i];this.inner.push(...o)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}K6=Symbol.hasInstance,W6=Symbol.toStringTag;class Dn extends Error{static formatError(t,r){const n=r.label||r.path||"this";return r=Object.assign({},r,{path:n,originalPath:r.path}),typeof t=="string"?t.replace(oz,(a,i)=>Co(r[i])):typeof t=="function"?t(r):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,r,n,a,i){const o=new G6(t,r,n,a);if(i)return o;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[W6]="Error",this.name=o.name,this.message=o.message,this.type=o.type,this.value=o.value,this.path=o.path,this.errors=o.errors,this.inner=o.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Dn)}static[K6](t){return G6[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let qa={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{const a=n!=null&&n!==r?` (cast from the value \`${Co(n,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Co(r,!0)}\``+a:`${e} must match the configured type. The validated value was: \`${Co(r,!0)}\``+a}},fi={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},hs={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Lg={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Dg={isValue:"${path} field must be ${value}"},Sd={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},Md={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:qa,string:fi,number:hs,date:Lg,object:Sd,array:Md,boolean:Dg,tuple:{notType:e=>{const{path:t,value:r,spec:n}=e,a=n.types.length;if(Array.isArray(r)){if(r.length<a)return`${t} tuple value has too few items, expected a length of ${a} but got ${r.length} for value: \`${Co(r,!0)}\``;if(r.length>a)return`${t} tuple value has too many items, expected a length of ${a} but got ${r.length} for value: \`${Co(r,!0)}\``}return Dn.formatError(qa.notType,e)}}});const uc=e=>e&&e.__isYupSchema__;class Cd{static fromOptions(t,r){if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:a,otherwise:i}=r,o=typeof n=="function"?n:(...l)=>l.every(f=>f===n);return new Cd(t,(l,f)=>{var c;let d=o(...l)?a:i;return(c=d==null?void 0:d(f))!=null?c:f})}constructor(t,r){this.fn=void 0,this.refs=t,this.refs=t,this.fn=r}resolve(t,r){let n=this.refs.map(i=>i.getValue(r==null?void 0:r.value,r==null?void 0:r.parent,r==null?void 0:r.context)),a=this.fn(n,t,r);if(a===void 0||a===t)return t;if(!uc(a))throw new TypeError("conditions must return a schema object");return a.resolve(r)}}const Td={context:"$",value:"."};class _l{constructor(t,r={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Td.context,this.isValue=this.key[0]===Td.value,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?Td.context:this.isValue?Td.value:"";this.path=this.key.slice(n.length),this.getter=this.path&&bl.getter(this.path,!0),this.map=r.map}getValue(t,r,n){let a=this.isContext?n:this.isValue?t:r;return this.getter&&(a=this.getter(a||{})),this.map&&(a=this.map(a)),a}cast(t,r){return this.getValue(t,r==null?void 0:r.parent,r==null?void 0:r.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}_l.prototype.__isYupRef=!0;const va=e=>e==null;function Lf(e){function t({value:r,path:n="",options:a,originalValue:i,schema:o},l,f){const{name:c,test:d,params:v,message:m,skipAbsent:y}=e;let{parent:b,context:S,abortEarly:T=o.spec.abortEarly,disableStackTrace:C=o.spec.disableStackTrace}=a;function I(M){return _l.isRef(M)?M.getValue(r,b,S):M}function B(M={}){const s=Object.assign({value:r,originalValue:i,label:o.spec.label,path:M.path||n,spec:o.spec,disableStackTrace:M.disableStackTrace||C},v,M.params);for(const p of Object.keys(s))s[p]=I(s[p]);const h=new Dn(Dn.formatError(M.message||m,s),r,s.path,M.type||c,s.disableStackTrace);return h.params=s,h}const N=T?l:f;let R={path:n,parent:b,type:c,from:a.from,createError:B,resolve:I,options:a,originalValue:i,schema:o};const P=M=>{Dn.isError(M)?N(M):M?f(null):N(B())},D=M=>{Dn.isError(M)?N(M):l(M)};if(y&&va(r))return P(!0);let U;try{var K;if(U=d.call(R,r,R),typeof((K=U)==null?void 0:K.then)=="function"){if(a.sync)throw new Error(`Validation test of type: "${R.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(U).then(P,D)}}catch(M){D(M);return}P(U)}return t.OPTIONS=e,t}function sz(e,t,r,n=r){let a,i,o;return t?(bl.forEach(t,(l,f,c)=>{let d=f?l.slice(1,l.length-1):l;e=e.resolve({context:n,parent:a,value:r});let v=e.type==="tuple",m=c?parseInt(d,10):0;if(e.innerType||v){if(v&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);if(r&&m>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${t}. because there is no value at that index. `);a=r,r=r&&r[m],e=v?e.spec.types[m]:e.innerType}if(!c){if(!e.fields||!e.fields[d])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e.type}")`);a=r,r=r&&r[d],e=e.fields[d]}i=d,o=f?"["+l+"]":"."+l}),{schema:e,parent:a,parentPath:i}):{parent:a,parentPath:t,schema:e}}class Ad extends Set{describe(){const t=[];for(const r of this.values())t.push(_l.isRef(r)?r.describe():r);return t}resolveAll(t){let r=[];for(const n of this.values())r.push(t(n));return r}clone(){return new Ad(this.values())}merge(t,r){const n=this.clone();return t.forEach(a=>n.add(a)),r.forEach(a=>n.delete(a)),n}}function Df(e,t=new Map){if(uc(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=new Array(e.length),t.set(e,r);for(let n=0;n<e.length;n++)r[n]=Df(e[n],t)}else if(e instanceof Map){r=new Map,t.set(e,r);for(const[n,a]of e.entries())r.set(n,Df(a,t))}else if(e instanceof Set){r=new Set,t.set(e,r);for(const n of e)r.add(Df(n,t))}else if(e instanceof Object){r={},t.set(e,r);for(const[n,a]of Object.entries(e))r[n]=Df(a,t)}else throw Error(`Unable to clone ${e}`);return r}let ui=class{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Ad,this._blacklist=new Ad,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(qa.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(r=>{r.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeCheck=this._typeCheck,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.internalTests=Object.assign({},this.internalTests),r.exclusiveTests=Object.assign({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=Df(Object.assign({},this.spec,t)),r}label(t){let r=this.clone();return r.spec.label=t,r}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}withMutation(t){let r=this._mutate;this._mutate=!0;let n=t(this);return this._mutate=r,n}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let r=this,n=t.clone();const a=Object.assign({},r.spec,n.spec);return n.spec=a,n.internalTests=Object.assign({},r.internalTests,n.internalTests),n._whitelist=r._whitelist.merge(t._whitelist,t._blacklist),n._blacklist=r._blacklist.merge(t._blacklist,t._whitelist),n.tests=r.tests,n.exclusiveTests=r.exclusiveTests,n.withMutation(i=>{t.tests.forEach(o=>{i.test(o.OPTIONS)})}),n.transforms=[...r.transforms,...n.transforms],n}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let r=this;if(r.conditions.length){let n=r.conditions;r=r.clone(),r.conditions=[],r=n.reduce((a,i)=>i.resolve(a,t),r),r=r.resolve(t)}return r}resolveOptions(t){var r,n,a,i;return Object.assign({},t,{from:t.from||[],strict:(r=t.strict)!=null?r:this.spec.strict,abortEarly:(n=t.abortEarly)!=null?n:this.spec.abortEarly,recursive:(a=t.recursive)!=null?a:this.spec.recursive,disableStackTrace:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,r={}){let n=this.resolve(Object.assign({value:t},r)),a=r.assert==="ignore-optionality",i=n._cast(t,r);if(r.assert!==!1&&!n.isType(i)){if(a&&va(i))return i;let o=Co(t),l=Co(i);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}".
682
682
 
683
683
  attempted value: ${o}
684
- `+(l!==o?`result of cast: ${l}`:""))}return i}_cast(t,r){let n=t===void 0?t:this.transforms.reduce((a,i)=>i.call(this,a,t,this),t);return n===void 0&&(n=this.getDefault(r)),n}_validate(t,r={},n,a){let{path:i,originalValue:o=t,strict:l=this.spec.strict}=r,f=t;l||(f=this._cast(f,Object.assign({assert:!1},r)));let c=[];for(let d of Object.values(this.internalTests))d&&c.push(d);this.runTests({path:i,value:f,originalValue:o,options:r,tests:c},n,d=>{if(d.length)return a(d,f);this.runTests({path:i,value:f,originalValue:o,options:r,tests:this.tests},n,a)})}runTests(t,r,n){let a=!1,{tests:i,value:o,originalValue:l,path:f,options:c}=t,d=S=>{a||(a=!0,r(S,o))},v=S=>{a||(a=!0,n(S,o))},m=i.length,y=[];if(!m)return v([]);let b={value:o,originalValue:l,path:f,options:c,schema:this};for(let S=0;S<i.length;S++){const T=i[S];T(b,d,function(I){I&&(Array.isArray(I)?y.push(...I):y.push(I)),--m<=0&&v(y)})}}asNestedTest({key:t,index:r,parent:n,parentPath:a,originalParent:i,options:o}){const l=t??r;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");const f=typeof l=="number";let c=n[l];const d=Object.assign({},o,{strict:!0,parent:n,value:c,originalValue:i[l],key:void 0,[f?"index":"key"]:l,path:f||l.includes(".")?`${a||""}[${f?l:`"${l}"`}]`:(a?`${a}.`:"")+t});return(v,m,y)=>this.resolve(d)._validate(c,d,m,y)}validate(t,r){var n;let a=this.resolve(Object.assign({},r,{value:t})),i=(n=r==null?void 0:r.disableStackTrace)!=null?n:a.spec.disableStackTrace;return new Promise((o,l)=>a._validate(t,r,(f,c)=>{Dn.isError(f)&&(f.value=c),l(f)},(f,c)=>{f.length?l(new Dn(f,c,void 0,void 0,i)):o(c)}))}validateSync(t,r){var n;let a=this.resolve(Object.assign({},r,{value:t})),i,o=(n=r==null?void 0:r.disableStackTrace)!=null?n:a.spec.disableStackTrace;return a._validate(t,Object.assign({},r,{sync:!0}),(l,f)=>{throw Dn.isError(l)&&(l.value=f),l},(l,f)=>{if(l.length)throw new Dn(l,t,void 0,void 0,o);i=f}),i}isValid(t,r){return this.validate(t,r).then(()=>!0,n=>{if(Dn.isError(n))return!1;throw n})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(n){if(Dn.isError(n))return!1;throw n}}_getDefault(t){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,t):Df(r)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,r){const n=this.clone({nullable:t});return n.internalTests.nullable=Lf({message:r,name:"nullable",test(a){return a===null?this.schema.spec.nullable:!0}}),n}optionality(t,r){const n=this.clone({optional:t});return n.internalTests.optionality=Lf({message:r,name:"optionality",test(a){return a===void 0?this.schema.spec.optional:!0}}),n}optional(){return this.optionality(!0)}defined(t=qa.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=qa.notNull){return this.nullability(!1,t)}required(t=qa.required){return this.clone().withMutation(r=>r.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let r=this.clone();return r.transforms.push(t),r}test(...t){let r;if(t.length===1?typeof t[0]=="function"?r={test:t[0]}:r=t[0]:t.length===2?r={name:t[0],test:t[1]}:r={name:t[0],message:t[1],test:t[2]},r.message===void 0&&(r.message=qa.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),a=Lf(r),i=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(o=>!(o.OPTIONS.name===r.name&&(i||o.OPTIONS.test===a.OPTIONS.test))),n.tests.push(a),n}when(t,r){!Array.isArray(t)&&typeof t!="string"&&(r=t,t=".");let n=this.clone(),a=H6(t).map(i=>new _l(i));return a.forEach(i=>{i.isSibling&&n.deps.push(i.key)}),n.conditions.push(typeof r=="function"?new Cd(a,r):Cd.fromOptions(a,r)),n}typeError(t){let r=this.clone();return r.internalTests.typeError=Lf({message:t,name:"typeError",skipAbsent:!0,test(n){return this.schema._typeCheck(n)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(t,r=qa.oneOf){let n=this.clone();return t.forEach(a=>{n._whitelist.add(a),n._blacklist.delete(a)}),n.internalTests.whiteList=Lf({message:r,name:"oneOf",skipAbsent:!0,test(a){let i=this.schema._whitelist,o=i.resolveAll(this.resolve);return o.includes(a)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:o}})}}),n}notOneOf(t,r=qa.notOneOf){let n=this.clone();return t.forEach(a=>{n._blacklist.add(a),n._whitelist.delete(a)}),n.internalTests.blacklist=Lf({message:r,name:"notOneOf",test(a){let i=this.schema._blacklist,o=i.resolveAll(this.resolve);return o.includes(a)?this.createError({params:{values:Array.from(i).join(", "),resolved:o}}):!0}}),n}strip(t=!0){let r=this.clone();return r.spec.strip=t,r}describe(t){const r=(t?this.resolve(t):this).clone(),{label:n,meta:a,optional:i,nullable:o}=r.spec;return{meta:a,label:n,optional:i,nullable:o,default:r.getDefault(t),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.map(f=>({name:f.OPTIONS.name,params:f.OPTIONS.params})).filter((f,c,d)=>d.findIndex(v=>v.name===f.name)===c)}}};ui.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])ui.prototype[`${e}At`]=function(t,r,n={}){const{parent:a,parentPath:i,schema:o}=sz(this,t,r,n.context);return o[e](a&&a[i],Object.assign({},n,{parent:a,path:t}))};for(const e of["equals","is"])ui.prototype[e]=ui.prototype.oneOf;for(const e of["not","nope"])ui.prototype[e]=ui.prototype.notOneOf;const lz=()=>!0;function Z6(e){return new J6(e)}class J6 extends ui{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:lz},t))}}Z6.prototype=J6.prototype;function cn(){return new Y6}class Y6 extends ui{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(n.spec.coerce&&!n.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=Dg.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return va(r)||r===!0}})}isFalse(t=Dg.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(r){return va(r)||r===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}cn.prototype=Y6.prototype;const fz=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function uz(e){const t=$g(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(r=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}function $g(e){var t,r;const n=fz.exec(e);return n?{year:To(n[1]),month:To(n[2],1)-1,day:To(n[3],1),hour:To(n[4]),minute:To(n[5]),second:To(n[6]),millisecond:n[7]?To(n[7].substring(0,3)):0,precision:(t=(r=n[7])==null?void 0:r.length)!=null?t:void 0,z:n[8]||void 0,plusMinus:n[9]||void 0,hourOffset:To(n[10]),minuteOffset:To(n[11])}:null}function To(e,t=0){return Number(e)||t}let cz=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,hz=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,dz=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,pz="^\\d{4}-\\d{2}-\\d{2}",vz="\\d{2}:\\d{2}:\\d{2}",mz="(([+-]\\d{2}(:?\\d{2})?)|Z)",gz=new RegExp(`${pz}T${vz}(\\.\\d+)?${mz}$`),yz=e=>va(e)||e===e.trim(),bz={}.toString();function xr(){return new X6}class X6 extends ui{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce||n.isType(t)||Array.isArray(t))return t;const a=t!=null&&t.toString?t.toString():t;return a===bz?t:a})})}required(t){return super.required(t).withMutation(r=>r.test({message:t||qa.required,name:"required",skipAbsent:!0,test:n=>!!n.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(r=>r.OPTIONS.name!=="required"),t))}length(t,r=fi.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r=fi.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r=fi.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}matches(t,r){let n=!1,a,i;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:a,name:i}=r:a=r),this.test({name:i||"matches",message:a||fi.matches,params:{regex:t},skipAbsent:!0,test:o=>o===""&&n||o.search(t)!==-1})}email(t=fi.email){return this.matches(cz,{name:"email",message:t,excludeEmptyString:!0})}url(t=fi.url){return this.matches(hz,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=fi.uuid){return this.matches(dz,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let r="",n,a;return t&&(typeof t=="object"?{message:r="",allowOffset:n=!1,precision:a=void 0}=t:r=t),this.matches(gz,{name:"datetime",message:r||fi.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||fi.datetime_offset,params:{allowOffset:n},skipAbsent:!0,test:i=>{if(!i||n)return!0;const o=$g(i);return o?!!o.z:!1}}).test({name:"datetime_precision",message:r||fi.datetime_precision,params:{precision:a},skipAbsent:!0,test:i=>{if(!i||a==null)return!0;const o=$g(i);return o?o.precision===a:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=fi.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:yz})}lowercase(t=fi.lowercase){return this.transform(r=>va(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>va(r)||r===r.toLowerCase()})}uppercase(t=fi.uppercase){return this.transform(r=>va(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>va(r)||r===r.toUpperCase()})}}xr.prototype=X6.prototype;let _z=e=>e!=+e;function Id(){return new Q6}class Q6 extends ui{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!_z(t)}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce)return t;let a=t;if(typeof a=="string"){if(a=a.replace(/\s/g,""),a==="")return NaN;a=+a}return n.isType(a)||a===null?a:parseFloat(a)})})}min(t,r=hs.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n>=this.resolve(t)}})}max(t,r=hs.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n<=this.resolve(t)}})}lessThan(t,r=hs.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(n){return n<this.resolve(t)}})}moreThan(t,r=hs.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(n){return n>this.resolve(t)}})}positive(t=hs.positive){return this.moreThan(0,t)}negative(t=hs.negative){return this.lessThan(0,t)}integer(t=hs.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(t=>va(t)?t:t|0)}round(t){var r;let n=["ceil","floor","round","trunc"];if(t=((r=t)==null?void 0:r.toLowerCase())||"round",t==="trunc")return this.truncate();if(n.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(a=>va(a)?a:Math[t](a))}}Id.prototype=Q6.prototype;let wz=new Date(""),Ez=e=>Object.prototype.toString.call(e)==="[object Date]";class Bd extends ui{constructor(){super({type:"date",check(t){return Ez(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r,n)=>!n.spec.coerce||n.isType(t)||t===null?t:(t=uz(t),isNaN(t)?Bd.INVALID_DATE:new Date(t)))})}prepareParam(t,r){let n;if(_l.isRef(t))n=t;else{let a=this.cast(t);if(!this._typeCheck(a))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=a}return n}min(t,r=Lg.min){let n=this.prepareParam(t,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(a){return a>=this.resolve(n)}})}max(t,r=Lg.max){let n=this.prepareParam(t,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(a){return a<=this.resolve(n)}})}}Bd.INVALID_DATE=wz,Bd.prototype;function xz(e,t=[]){let r=[],n=new Set,a=new Set(t.map(([o,l])=>`${o}-${l}`));function i(o,l){let f=bl.split(o)[0];n.add(f),a.has(`${l}-${f}`)||r.push([l,f])}for(const o of Object.keys(e)){let l=e[o];n.add(o),_l.isRef(l)&&l.isSibling?i(l.path,o):uc(l)&&"deps"in l&&l.deps.forEach(f=>i(f,o))}return QU.array(Array.from(n),r).reverse()}function e4(e,t){let r=1/0;return e.some((n,a)=>{var i;if((i=t.path)!=null&&i.includes(n))return r=a,!0}),r}function t4(e){return(t,r)=>e4(e,t)-e4(e,r)}const r4=(e,t,r)=>{if(typeof e!="string")return e;let n=e;try{n=JSON.parse(e)}catch{}return r.isType(n)?n:e};function kd(e){if("fields"in e){const t={};for(const[r,n]of Object.entries(e.fields))t[r]=kd(n);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=kd(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(kd)}):"optional"in e?e.optional():e}const Sz=(e,t)=>{const r=[...bl.normalizePath(t)];if(r.length===1)return r[0]in e;let n=r.pop(),a=bl.getter(bl.join(r),!0)(e);return!!(a&&n in a)};let n4=e=>Object.prototype.toString.call(e)==="[object Object]";function i4(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(n=>r.indexOf(n)===-1)}const Mz=t4([]);function Li(e){return new a4(e)}class a4 extends ui{constructor(t){super({type:"object",check(r){return n4(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=Mz,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,r={}){var n;let a=super._cast(t,r);if(a===void 0)return this.getDefault(r);if(!this._typeCheck(a))return a;let i=this.fields,o=(n=r.stripUnknown)!=null?n:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(a).filter(v=>!this._nodes.includes(v))),f={},c=Object.assign({},r,{parent:f,__validating:r.__validating||!1}),d=!1;for(const v of l){let m=i[v],y=v in a;if(m){let b,S=a[v];c.path=(r.path?`${r.path}.`:"")+v,m=m.resolve({value:S,context:r.context,parent:f});let T=m instanceof ui?m.spec:void 0,C=T==null?void 0:T.strict;if(T!=null&&T.strip){d=d||v in a;continue}b=!r.__validating||!C?m.cast(a[v],c):a[v],b!==void 0&&(f[v]=b)}else y&&!o&&(f[v]=a[v]);(y!==v in f||f[v]!==a[v])&&(d=!0)}return d?f:a}_validate(t,r={},n,a){let{from:i=[],originalValue:o=t,recursive:l=this.spec.recursive}=r;r.from=[{schema:this,value:o},...i],r.__validating=!0,r.originalValue=o,super._validate(t,r,n,(f,c)=>{if(!l||!n4(c)){a(f,c);return}o=o||c;let d=[];for(let v of this._nodes){let m=this.fields[v];!m||_l.isRef(m)||d.push(m.asNestedTest({options:r,key:v,parent:c,parentPath:r.path,originalParent:o}))}this.runTests({tests:d,value:c,originalValue:o,options:r},n,v=>{a(v.sort(this._sortErrors).concat(f),c)})})}clone(t){const r=super.clone(t);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(t){let r=super.concat(t),n=r.fields;for(let[a,i]of Object.entries(this.fields)){const o=n[a];n[a]=o===void 0?i:o}return r.withMutation(a=>a.setFields(n,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let r={};return this._nodes.forEach(n=>{var a;const i=this.fields[n];let o=t;(a=o)!=null&&a.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[n]})),r[n]=i&&"getDefault"in i?i.getDefault(o):void 0}),r}setFields(t,r){let n=this.clone();return n.fields=t,n._nodes=xz(t,r),n._sortErrors=t4(Object.keys(t)),r&&(n._excludedEdges=r),n}shape(t,r=[]){return this.clone().withMutation(n=>{let a=n._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),a=[...n._excludedEdges,...r]),n.setFields(Object.assign(n.fields,t),a)})}partial(){const t={};for(const[r,n]of Object.entries(this.fields))t[r]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(t)}deepPartial(){return kd(this)}pick(t){const r={};for(const n of t)this.fields[n]&&(r[n]=this.fields[n]);return this.setFields(r,this._excludedEdges.filter(([n,a])=>t.includes(n)&&t.includes(a)))}omit(t){const r=[];for(const n of Object.keys(this.fields))t.includes(n)||r.push(n);return this.pick(r)}from(t,r,n){let a=bl.getter(t,!0);return this.transform(i=>{if(!i)return i;let o=i;return Sz(i,t)&&(o=Object.assign({},i),n||delete o[t],o[r]=a(i)),o})}json(){return this.transform(r4)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||Sd.exact,test(r){if(r==null)return!0;const n=i4(this.schema,r);return n.length===0||this.createError({params:{properties:n.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,r=Sd.noUnknown){typeof t!="boolean"&&(r=t,t=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:r,test(a){if(a==null)return!0;const i=i4(this.schema,a);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return n.spec.noUnknown=t,n}unknown(t=!0,r=Sd.noUnknown){return this.noUnknown(!t,r)}transformKeys(t){return this.transform(r=>{if(!r)return r;const n={};for(const a of Object.keys(r))n[t(a)]=r[a];return n})}camelCase(){return this.transformKeys(Pg.camelCase)}snakeCase(){return this.transformKeys(Pg.snakeCase)}constantCase(){return this.transformKeys(t=>Pg.snakeCase(t).toUpperCase())}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);n.fields={};for(const[i,o]of Object.entries(r.fields)){var a;let l=t;(a=l)!=null&&a.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[i]})),n.fields[i]=o.describe(l)}return n}}Li.prototype=a4.prototype;function ds(e){return new o4(e)}class o4 extends ui{constructor(t){super({type:"array",spec:{types:t},check(r){return Array.isArray(r)}}),this.innerType=void 0,this.innerType=t}_cast(t,r){const n=super._cast(t,r);if(!this._typeCheck(n)||!this.innerType)return n;let a=!1;const i=n.map((o,l)=>{const f=this.innerType.cast(o,Object.assign({},r,{path:`${r.path||""}[${l}]`}));return f!==o&&(a=!0),f});return a?i:n}_validate(t,r={},n,a){var i;let o=this.innerType,l=(i=r.recursive)!=null?i:this.spec.recursive;r.originalValue!=null&&r.originalValue,super._validate(t,r,n,(f,c)=>{var d;if(!l||!o||!this._typeCheck(c)){a(f,c);return}let v=new Array(c.length);for(let y=0;y<c.length;y++){var m;v[y]=o.asNestedTest({options:r,index:y,parent:c,parentPath:r.path,originalParent:(m=r.originalValue)!=null?m:t})}this.runTests({value:c,tests:v,originalValue:(d=r.originalValue)!=null?d:t,options:r},n,y=>a(y.concat(f),c))})}clone(t){const r=super.clone(t);return r.innerType=this.innerType,r}json(){return this.transform(r4)}concat(t){let r=super.concat(t);return r.innerType=this.innerType,t.innerType&&(r.innerType=r.innerType?r.innerType.concat(t.innerType):t.innerType),r}of(t){let r=this.clone();if(!uc(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Co(t));return r.innerType=t,r.spec=Object.assign({},r.spec,{types:t}),r}length(t,r=Md.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r){return r=r||Md.min,this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r){return r=r||Md.max,this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,r)=>this._typeCheck(t)?t:r==null?[]:[].concat(r))}compact(t){let r=t?(n,a,i)=>!t(n,a,i):n=>!!n;return this.transform(n=>n!=null?n.filter(r):n)}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);if(r.innerType){var a;let i=t;(a=i)!=null&&a.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),n.innerType=r.innerType.describe(i)}return n}}ds.prototype=o4.prototype;function s4(e){return new Ug(e)}class Ug{constructor(t){this.type="lazy",this.__isYupSchema__=!0,this.spec=void 0,this._resolve=(r,n={})=>{let a=this.builder(r,n);if(!uc(a))throw new TypeError("lazy() functions must return a valid schema");return this.spec.optional&&(a=a.optional()),a.resolve(n)},this.builder=t,this.spec={meta:void 0,optional:!1}}clone(t){const r=new Ug(this.builder);return r.spec=Object.assign({},this.spec,t),r}optionality(t){return this.clone({optional:t})}optional(){return this.optionality(!0)}resolve(t){return this._resolve(t.value,t)}cast(t,r){return this._resolve(t,r).cast(t,r)}asNestedTest(t){let{key:r,index:n,parent:a,options:i}=t,o=a[n??r];return this._resolve(o,Object.assign({},i,{value:o,parent:a})).asNestedTest(t)}validate(t,r){return this._resolve(t,r).validate(t,r)}validateSync(t,r){return this._resolve(t,r).validateSync(t,r)}validateAt(t,r,n){return this._resolve(r,n).validateAt(t,r,n)}validateSyncAt(t,r,n){return this._resolve(r,n).validateSyncAt(t,r,n)}isValid(t,r){return this._resolve(t,r).isValid(t,r)}isValidSync(t,r){return this._resolve(t,r).isValidSync(t,r)}describe(t){return t?this.resolve(t).describe(t):{type:"lazy",meta:this.spec.meta,label:void 0}}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}}const zg=Li().noUnknown().shape({client:Li().noUnknown().shape({name:xr()}),entrypoint:Li().noUnknown().shape({account:xr(),country:xr(),credential:xr(),site:xr(),siteOrganizationType:xr()}),locale:xr().oneOf(["es","en"]),navigation:Li().noUnknown().shape({disableFormAutocomplete:cn(),displayAccountsSelection:cn(),displayBusinessSites:cn(),displayCredentialInModal:cn(),displayErrorsInToast:cn(),displayLogoImages:cn(),displayLongDescription:cn(),displayPersonalSites:cn(),displaySiteOrganizations:ds().of(xr()),displaySiteOrganizationTypes:ds().of(xr()),displaySites:ds().of(xr()),displayStatusInToast:cn(),enableBackNavigation:cn(),enableTwofaBackNavigation:cn(),formButtonsDisabledStyle:cn(),formShowPasswordStyle:xr().oneOf(["icon","none","text"]),hideSelectCountry:cn(),hideSiteOrganizations:ds().of(xr()),hideSiteOrganizationTypes:ds().of(xr()),hideSites:ds().of(xr()),oneSiteFlow:cn(),quickAnswer:cn(),returnToSiteFormOnUserError:s4(e=>typeof e=="object"?ds().of(Id().oneOf([401,403,411])):cn()),saveCredential:cn(),selectClass:xr(),socketTimeout:Id().min(1),toastDuration:Id().min(0),toastPosition:xr().oneOf(["bottom-left","bottom-right","top-left","top-right"])}),__internal__:Li().noUnknown().shape({apiBaseUrl:xr(),apiEnv:xr().oneOf(["development","production"]),assetsBaseUrl:xr(),plaidSites:cn(),defaultHttpParams:Li()})}),Cz=Li().shape({token:xr().required(),element:s4(e=>{switch(typeof e){case"string":return xr().test("isElement","${path} is not an Element",t=>{if(!document.querySelector(t))throw new Dn(`Invalid selector: Element "${t}" not found.`);return!0});case"object":return Li().test("isElement","${path} is not an Element",t=>{if(!fl(t))throw new Dn("Invalid element: Object should be a valid HtmlElement.");return!0});default:xr()}}),refreshTokenFunction:Z6().test("isFunction","${path} is not a function",e=>e?Object.prototype.toString.call(e)==="[object Function]"||typeof e=="function"||e instanceof Function:!0),enableTestMode:cn(),strict:Li().noUnknown().nullable().shape({authorization:Li().noUnknown().required().shape({type:xr().oneOf(["jwk"]).required(),key:xr().required()}),body:Li().noUnknown().required().shape({type:xr().oneOf(["jwk"]).required(),key:xr().required().test("isBase64","${path} is not a base64 encoded",e=>e&&/^(?:[A-Za-z0-9+/]{2}[A-Za-z0-9+/]{2})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))})}),config:zg}).strict().noUnknown();let Vg={git:{dirty:!1,raw:"v0.0.10-0-g280f8fc",hash:"g280f8fc",distance:0,tag:"v0.0.10",semver:{options:{loose:!1,includePrerelease:!1},loose:!1,raw:"v0.0.10",major:0,minor:0,patch:10,prerelease:[],build:[],version:"0.0.10"},suffix:"0-g280f8fc",semverString:"0.0.10"}};function Nd(){let e=`${Vg.git.tag}.${Vg.git.distance}`;return{}.NODE_ENV==="production"?e=`${e}-beta`:e=`${e}-${Vg.git.hash}`,e}function Tz(e,t){const r=parseInt("0x4",16),n="38060000000000000000000000000000000000000000000F00000000000000000000000000000000000D9802010000010101000000000000";let a;return console.log("OBTEINING BRIDGE SCRIPTS"),console.log("TOKEN",e),console.log("CHALLENGE",t),Az().then(()=>(console.log("BRIDGE SCRIPTS OK"),a=new digipass.nativebridge.DP110,new Promise((o,l)=>{console.log(" PROCESSING BRIDGE CONNECTION"),a.onError(()=>(console.log(" ERROR ON BRIDGE CONNECTION"),l("bridge.not_ready"))),a.onReady(f=>{console.log("BRIDGE CONNECTION READY"),console.log("DATA VERSION",f.versionCode),console.log("BRIDGE VERSION",a.versionCode),f.versionCode<a.versionCode&&l("bridge.host_update_available");const c=a.isReady();if(console.log("BRIDGE CONNECTION READY VERIFICATION",c),c)console.log("COMMAND_ID",r),a.getTokenInfo(r,function(d){if(console.log("BRIDGE CONNECTION getTokenInfo",d,d.returnCode),d.returnCode!==0)return l(`bridge.${Math.abs(d.returnCode)}`);console.log("STATIC_VECTOR",n),a.generateOTP(n,t,function(v){if(console.log("BRIDGE CONNECTION generateOTP",v,v.returnCode),v.returnCode!==0)return l(`bridge.${Math.abs(v.returnCode)}`);o({token:`${e}XX${v.otp}XX${d.info}XX${f.versionCode}`,challenge:t})})});else return Promise.reject("bridge.not_ready")})})))}function Az(){const e=new Promise((r,n)=>{if(document.getElementById("widgetBridgeConfig"))return r();const a=document.createElement("script");a.setAttribute("type","text/javascript"),a.setAttribute("id","widgetBridgeConfig"),a.setAttribute("src","https://www.paybook.com/lib/syncfy/digipass.nativebridge.config.min.js"),(document.head||document.body).appendChild(a),a.onload=()=>r(),a.onerror=()=>{n("bridge.digipass_config_script_not_loaded")}}),t=new Promise((r,n)=>{if(document.getElementById("widgetBridgeUsb"))return r();const a=document.createElement("script");a.setAttribute("type","text/javascript"),a.setAttribute("id","widgetBridgeUsb"),a.setAttribute("src","https://www.paybook.com/lib/syncfy/digipass.nativebridge.dp110.min.js"),(document.head||document.body).appendChild(a),a.onload=()=>r(),a.onerror=()=>{n("bridge.digipass_script_not_loaded")}});return Promise.all([e,t])}const Di="bridgeBluetooth";function Iz(e){const t=window[Di];return new Promise((n,a)=>{t.resolve=n,t.reject=a;let i,o;const{authenticationData:l}=e.authenticationResponse;l[0].idAuthenticationData==="signedMessage"?([i]=l[0].authenticationData,[o]=l[1].authenticationData):([i]=l[1].authenticationData,[o]=l[0].authenticationData),Dz({signedMessage:i,signedTimeMessage:o})})}async function Bz(){const e=window[Di];return new Promise(async(t,r)=>{if(e.nativeBridgeInstance.isReady())try{const n=await async function(a){return new Promise((i,o)=>{a.getDigipassTimeChallenge(l=>{if(l.returnCode!==0){const c={title:"Generar - TimeChallenge",response:{message:"Se ha producido un error al generar el TimeChallenge. Por favor, asegúrate de tener tu token conectado y encendido.",returnCode:l.returnCode}};return void o(c)}const f={title:"Generar - TimeChallenge",response:{message:`El TimeChallenge es: ${l.timeChallenge}`,timeChallenge:l.timeChallenge,errorCode:""}};i(f)})})}(e.nativeBridgeInstance);t(n)}catch(n){r(n)}else r({title:"Error de conexión",response:{message:"No es posible interactuar con el dispositivo.",errorCode:""}})})}function kz(e){window[Di]={isDp785Signature:!1,nativeBridgeInstance:null,resolve:null,reject:null};const t=window[Di];return Nz().then(()=>new Promise((n,a)=>{t.resolve=n,t.reject=a,t.isDp785Signature=e!=="214",t.nativeBridgeInstance=new window.digipass.nativebridge.DPToken,Lz()}))}function Nz(){const e=new Promise((r,n)=>{if(document.getElementById("widgetBridgeConfig"))return r();const a=document.createElement("script");a.setAttribute("type","text/javascript"),a.setAttribute("id","widgetBridgeConfig"),a.setAttribute("src",`${{}.VUE_APP_LIB_BASE_URL_DEFAULT}digipass.nativebridge.config.min.js`),(document.head||document.body).appendChild(a),a.onload=()=>r(),a.onerror=()=>{n("bridge.digipass_config_script_not_loaded")}}),t=new Promise((r,n)=>{if(document.getElementById("widgetBridgeBluetooth"))return r();const a=document.createElement("script");a.setAttribute("type","text/javascript"),a.setAttribute("id","widgetBridgeBluetooth"),a.setAttribute("src",`${{}.VUE_APP_LIB_BASE_URL_DEFAULT}digipass.nativebridge.dptoken.min.js`),(document.head||document.body).appendChild(a),a.onload=()=>r(),a.onerror=()=>{n("bridge.digipass_script_not_loaded")}});return Promise.all([e,t])}async function Oz(){const e=window[Di];try{const t=await Rz(e.isDp785Signature);if(t.length===1){const[r]=t;await Pz(r.serial);const n=await Bz();e.resolve(n.response.timeChallenge)}}catch(t){e.reject(t),alert("Por favor, asegúrate de tener tu token conectado y encendido.")}}async function Rz(e){const t=window[Di];return new Promise(async(r,n)=>{const a=e?"DP785_T4_MANUAL":"DP785_T4_NOT_LINKED";if(t.nativeBridgeInstance.isReady())try{const i=await async function(f){return new Promise((c,d)=>{f.getDigipassList(v=>{if(v.returnCode===0)c(v.devices);else{const m={title:"Listar dispositivos",response:{message:"Error al obtener la lista de dispositivos disponibles.",returnCode:v.returnCode}};d(m)}})})}(t.nativeBridgeInstance),o=i.map(f=>({name:f.deviceName,serial:f.digipassSerial})),[l]=o;if(!l||!l.serial)return void n({title:"Error de conexión",response:{message:"No es posible interactuar con el dispositivo.",errorCode:"",processType:a}});r(o)}catch(i){n(i)}else n({title:"Error de conexión",response:{message:"No es posible interactuar con el dispositivo.",errorCode:"",processType:a}})})}async function Pz(e){const t=window[Di];return new Promise((r,n)=>{t.nativeBridgeInstance.initializeDigipass(e,a=>{if(a.returnCode!==0){const o={title:"Inicializar dispositivo",response:{message:"Error al intentar inicializar el dispositivo.",returnCode:a.returnCode}};return void n(o)}const i={title:"Inicializar dispositivo",response:{message:`El dispositivo con serial: ${e} está listo para ser usado.`,errorCode:""}};r(i)})})}async function Fz(e){const t=window[Di];return new Promise(async(r,n)=>{if(t.nativeBridgeInstance.isReady())try{const a=await async function(i,o){return new Promise((l,f)=>{i.generateResponseOnlyOTP(o,c=>{if(c.returnCode!==0){const v={title:"Generar OTP con PIN",response:{message:"No fue posible generar la OTP.",returnCode:c.returnCode}};return void f(v)}const d={title:"Generar OTP con PIN",response:{message:`La OTP se generó correctamente: ${c.otp}`,otp:c.otp,errorCode:"",processType:"DP785_T4_LINKED"}};l(d)})})}(t.nativeBridgeInstance,e);r(a)}catch(a){n(a)}else n({title:"Error de conexión",response:{message:"No es posible interactuar con el dispositivo.",errorCode:"",processType:"DP785_T4_NOT_LINKED"}})})}async function Lz(){const e=window[Di],t=await $z();if(t.response.errorCode!==""){alert(t.response.message),e.reject(t.response.errorCode);return}else await Oz()}async function Dz({signedMessage:e="",signedTimeMessage:t=""}){const r=window[Di];try{await l4(t,r.isDp785Signature);const n=await l4(e,r.isDp785Signature),{response:{messageSignature:a}}=n,i=7,o=await Fz(i),{response:{otp:l}}=o,f={};f.otpChallenge=a;const c=`${l}${i}`;f.otp=c,r.resolve(`${f.otpChallenge}XX${f.otp}`)}catch(n){r.reject(n),alert("Error al intentar validar la sesión desde el dispositivo de acceso seguro.")}}async function $z(){const e=window[Di];return new Promise((t,r)=>{e.nativeBridgeInstance.onReady(()=>{e.nativeBridgeInstance.getNativeBridgeVersion(n=>{const a={title:"Conexión con Native Bridge",response:{errorCode:"",message:"El software Native Bridge se encuentra instalado en tu ordenador.",updateAvailable:!(n.versionCode>=e.nativeBridgeInstance.versionCode)}};t(a)})}),e.nativeBridgeInstance.onError(()=>{r({title:"Conexión con Native Bridge",response:{errorCode:"222",message:"El software Native Bridge no se encontró instalado en tu ordenador.",processType:"DP785_T4_NOT_LINKED"}})})})}async function l4(e,t){const r=window[Di];return new Promise(async(n,a)=>{const i=t?"DP785_T4_MANUAL":"DP785_T4_NOT_LINKED";if(r.nativeBridgeInstance.isReady())try{const{responseMessage:o}=await async function(f,c){return new Promise((d,v)=>{f.transmitRequestMessage(c,m=>{if(m.returnCode===0)d(m);else{const y={title:"Firmar mensaje",response:{message:"No fue posible transmitir el mensaje.",returnCode:m.returnCode}};v(y)}})})}(r.nativeBridgeInstance,e),l=await async function(f,c,d){return new Promise((v,m)=>{f.parseResponseMessage(c,d,y=>{if(y.returnCode!==0){const S={title:"Firmar mensaje",response:{message:"No fue posible parsear el mensaje.",returnCode:y.returnCode}};return void m(S)}const b={title:"Firmar mensaje",response:{message:`Se realizó la firma del mensaje correctamente: ${y.messageSignature}`,messageSignature:y.messageSignature,errorCode:"",processType:"DP785_T4_LINKED"}};v(b)})})}(r.nativeBridgeInstance,o,e);n(l)}catch(o){a(o)}else a({title:"Error de conexión",response:{message:"No es posible interactuar con el dispositivo.",errorCode:"",processType:i}})})}function Uz(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var qg={exports:{}},f4;function u4(){return f4||(f4=1,function(e,t){(function(r,n){e.exports=n()})(Bt,function(){function r(ue){var H=typeof ue;return ue!==null&&(H==="object"||H==="function")}function n(ue){return typeof ue=="function"}var a=void 0;Array.isArray?a=Array.isArray:a=function(ue){return Object.prototype.toString.call(ue)==="[object Array]"};var i=a,o=0,l=void 0,f=void 0,c=function(H,G){P[o]=H,P[o+1]=G,o+=2,o===2&&(f?f(D):U())};function d(ue){f=ue}function v(ue){c=ue}var m=typeof window<"u"?window:void 0,y=m||{},b=y.MutationObserver||y.WebKitMutationObserver,S=typeof self>"u"&&typeof fe<"u"&&{}.toString.call(fe)==="[object process]",T=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function C(){return function(){return fe.nextTick(D)}}function I(){return typeof l<"u"?function(){l(D)}:R()}function B(){var ue=0,H=new b(D),G=document.createTextNode("");return H.observe(G,{characterData:!0}),function(){G.data=ue=++ue%2}}function N(){var ue=new MessageChannel;return ue.port1.onmessage=D,function(){return ue.port2.postMessage(0)}}function R(){var ue=setTimeout;return function(){return ue(D,1)}}var P=new Array(1e3);function D(){for(var ue=0;ue<o;ue+=2){var H=P[ue],G=P[ue+1];H(G),P[ue]=void 0,P[ue+1]=void 0}o=0}function $(){try{var ue=Function("return this")().require("vertx");return l=ue.runOnLoop||ue.runOnContext,I()}catch{return R()}}var U=void 0;S?U=C():b?U=B():T?U=N():m===void 0&&typeof Uz=="function"?U=$():U=R();function K(ue,H){var G=this,me=new this.constructor(h);me[s]===void 0&&j(me);var oe=G._state;if(oe){var de=arguments[oe-1];c(function(){return ne(oe,me,de,G._result)})}else X(G,me,ue,H);return me}function M(ue){var H=this;if(ue&&typeof ue=="object"&&ue.constructor===H)return ue;var G=new H(h);return O(G,ue),G}var s=Math.random().toString(36).substring(2);function h(){}var p=void 0,g=1,_=2;function w(){return new TypeError("You cannot resolve a promise with itself")}function A(){return new TypeError("A promises callback cannot return that same promise.")}function E(ue,H,G,me){try{ue.call(H,G,me)}catch(oe){return oe}}function u(ue,H,G){c(function(me){var oe=!1,de=E(G,H,function(Xe){oe||(oe=!0,H!==Xe?O(me,Xe):Y(me,Xe))},function(Xe){oe||(oe=!0,W(me,Xe))},"Settle: "+(me._label||" unknown promise"));!oe&&de&&(oe=!0,W(me,de))},ue)}function x(ue,H){H._state===g?Y(ue,H._result):H._state===_?W(ue,H._result):X(H,void 0,function(G){return O(ue,G)},function(G){return W(ue,G)})}function k(ue,H,G){H.constructor===ue.constructor&&G===K&&H.constructor.resolve===M?x(ue,H):G===void 0?Y(ue,H):n(G)?u(ue,H,G):Y(ue,H)}function O(ue,H){if(ue===H)W(ue,w());else if(r(H)){var G=void 0;try{G=H.then}catch(me){W(ue,me);return}k(ue,H,G)}else Y(ue,H)}function q(ue){ue._onerror&&ue._onerror(ue._result),ie(ue)}function Y(ue,H){ue._state===p&&(ue._result=H,ue._state=g,ue._subscribers.length!==0&&c(ie,ue))}function W(ue,H){ue._state===p&&(ue._state=_,ue._result=H,c(q,ue))}function X(ue,H,G,me){var oe=ue._subscribers,de=oe.length;ue._onerror=null,oe[de]=H,oe[de+g]=G,oe[de+_]=me,de===0&&ue._state&&c(ie,ue)}function ie(ue){var H=ue._subscribers,G=ue._state;if(H.length!==0){for(var me=void 0,oe=void 0,de=ue._result,Xe=0;Xe<H.length;Xe+=3)me=H[Xe],oe=H[Xe+G],me?ne(G,me,oe,de):oe(de);ue._subscribers.length=0}}function ne(ue,H,G,me){var oe=n(G),de=void 0,Xe=void 0,Ee=!0;if(oe){try{de=G(me)}catch(Se){Ee=!1,Xe=Se}if(H===de){W(H,A());return}}else de=me;H._state!==p||(oe&&Ee?O(H,de):Ee===!1?W(H,Xe):ue===g?Y(H,de):ue===_&&W(H,de))}function ce(ue,H){try{H(function(me){O(ue,me)},function(me){W(ue,me)})}catch(G){W(ue,G)}}var te=0;function Z(){return te++}function j(ue){ue[s]=te++,ue._state=void 0,ue._result=void 0,ue._subscribers=[]}function ae(){return new Error("Array Methods must be provided an Array")}var se=function(){function ue(H,G){this._instanceConstructor=H,this.promise=new H(h),this.promise[s]||j(this.promise),i(G)?(this.length=G.length,this._remaining=G.length,this._result=new Array(this.length),this.length===0?Y(this.promise,this._result):(this.length=this.length||0,this._enumerate(G),this._remaining===0&&Y(this.promise,this._result))):W(this.promise,ae())}return ue.prototype._enumerate=function(G){for(var me=0;this._state===p&&me<G.length;me++)this._eachEntry(G[me],me)},ue.prototype._eachEntry=function(G,me){var oe=this._instanceConstructor,de=oe.resolve;if(de===M){var Xe=void 0,Ee=void 0,Se=!1;try{Xe=G.then}catch(pe){Se=!0,Ee=pe}if(Xe===K&&G._state!==p)this._settledAt(G._state,me,G._result);else if(typeof Xe!="function")this._remaining--,this._result[me]=G;else if(oe===Q){var _e=new oe(h);Se?W(_e,Ee):k(_e,G,Xe),this._willSettleAt(_e,me)}else this._willSettleAt(new oe(function(pe){return pe(G)}),me)}else this._willSettleAt(de(G),me)},ue.prototype._settledAt=function(G,me,oe){var de=this.promise;de._state===p&&(this._remaining--,G===_?W(de,oe):this._result[me]=oe),this._remaining===0&&Y(de,this._result)},ue.prototype._willSettleAt=function(G,me){var oe=this;X(G,void 0,function(de){return oe._settledAt(g,me,de)},function(de){return oe._settledAt(_,me,de)})},ue}();function V(ue){return new se(this,ue).promise}function L(ue){var H=this;return i(ue)?new H(function(G,me){for(var oe=ue.length,de=0;de<oe;de++)H.resolve(ue[de]).then(G,me)}):new H(function(G,me){return me(new TypeError("You must pass an array to race."))})}function F(ue){var H=this,G=new H(h);return W(G,ue),G}function z(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function le(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Q=function(){function ue(H){this[s]=Z(),this._result=this._state=void 0,this._subscribers=[],h!==H&&(typeof H!="function"&&z(),this instanceof ue?ce(this,H):le())}return ue.prototype.catch=function(G){return this.then(null,G)},ue.prototype.finally=function(G){var me=this,oe=me.constructor;return n(G)?me.then(function(de){return oe.resolve(G()).then(function(){return de})},function(de){return oe.resolve(G()).then(function(){throw de})}):me.then(G,G)},ue}();Q.prototype.then=K,Q.all=V,Q.race=L,Q.resolve=M,Q.reject=F,Q._setScheduler=d,Q._setAsap=v,Q._asap=c;function re(){var ue=void 0;if(typeof Bt<"u")ue=Bt;else if(typeof self<"u")ue=self;else try{ue=Function("return this")()}catch{throw new Error("polyfill failed because global object is unavailable in this environment")}var H=ue.Promise;if(H){var G=null;try{G=Object.prototype.toString.call(H.resolve())}catch{}if(G==="[object Promise]"&&!H.cast)return}ue.Promise=Q}return Q.polyfill=re,Q.Promise=Q,Q})}(qg)),qg.exports}function zz(e){return e}var Hg=zz;function Vz(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var jg=Vz,qz=jg,c4=Math.max;function Hz(e,t,r){return t=c4(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=c4(n.length-t,0),o=Array(i);++a<i;)o[a]=n[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=n[a];return l[t]=r(o),qz(e,this,l)}}var h4=Hz;function jz(e){return function(){return e}}var Kz=jz,Wz=typeof Bt=="object"&&Bt&&Bt.Object===Object&&Bt,d4=Wz,Gz=d4,Zz=typeof self=="object"&&self&&self.Object===Object&&self,Jz=Gz||Zz||Function("return this")(),ci=Jz,Yz=ci,Xz=Yz.Symbol,cc=Xz,p4=cc,v4=Object.prototype,Qz=v4.hasOwnProperty,eV=v4.toString,hc=p4?p4.toStringTag:void 0;function tV(e){var t=Qz.call(e,hc),r=e[hc];try{e[hc]=void 0;var n=!0}catch{}var a=eV.call(e);return n&&(t?e[hc]=r:delete e[hc]),a}var rV=tV,nV=Object.prototype,iV=nV.toString;function aV(e){return iV.call(e)}var oV=aV,m4=cc,sV=rV,lV=oV,fV="[object Null]",uV="[object Undefined]",g4=m4?m4.toStringTag:void 0;function cV(e){return e==null?e===void 0?uV:fV:g4&&g4 in Object(e)?sV(e):lV(e)}var $f=cV;function hV(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ma=hV,dV=$f,pV=ma,vV="[object AsyncFunction]",mV="[object Function]",gV="[object GeneratorFunction]",yV="[object Proxy]";function bV(e){if(!pV(e))return!1;var t=dV(e);return t==mV||t==gV||t==vV||t==yV}var Kg=bV,_V=ci,wV=_V["__core-js_shared__"],EV=wV,Wg=EV,y4=function(){var e=/[^.]+$/.exec(Wg&&Wg.keys&&Wg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function xV(e){return!!y4&&y4 in e}var SV=xV,MV=Function.prototype,CV=MV.toString;function TV(e){if(e!=null){try{return CV.call(e)}catch{}try{return e+""}catch{}}return""}var b4=TV,AV=Kg,IV=SV,BV=ma,kV=b4,NV=/[\\^$.*+?()[\]{}|]/g,OV=/^\[object .+?Constructor\]$/,RV=Function.prototype,PV=Object.prototype,FV=RV.toString,LV=PV.hasOwnProperty,DV=RegExp("^"+FV.call(LV).replace(NV,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $V(e){if(!BV(e)||IV(e))return!1;var t=AV(e)?DV:OV;return t.test(kV(e))}var UV=$V;function zV(e,t){return e==null?void 0:e[t]}var VV=zV,qV=UV,HV=VV;function jV(e,t){var r=HV(e,t);return qV(r)?r:void 0}var wl=jV,KV=wl,WV=function(){try{var e=KV(Object,"defineProperty");return e({},"",{}),e}catch{}}(),_4=WV,GV=Kz,w4=_4,ZV=Hg,JV=w4?function(e,t){return w4(e,"toString",{configurable:!0,enumerable:!1,value:GV(t),writable:!0})}:ZV,YV=JV,XV=800,QV=16,eq=Date.now;function tq(e){var t=0,r=0;return function(){var n=eq(),a=QV-(n-r);if(r=n,a>0){if(++t>=XV)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var E4=tq,rq=YV,nq=E4,iq=nq(rq),Gg=iq,aq=Hg,oq=h4,sq=Gg;function lq(e,t){return sq(oq(e,t,aq),e+"")}var Zg=lq,fq=wl,uq=ci,cq=fq(uq,"WeakMap"),x4=cq,S4=x4,hq=S4&&new S4,M4=hq,dq=Hg,C4=M4,pq=C4?function(e,t){return C4.set(e,t),e}:dq,T4=pq,vq=ma,A4=Object.create,mq=function(){function e(){}return function(t){if(!vq(t))return{};if(A4)return A4(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Od=mq,gq=Od,yq=ma;function bq(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=gq(e.prototype),n=e.apply(r,t);return yq(n)?n:r}}var Rd=bq,_q=Rd,wq=ci,Eq=1;function xq(e,t,r){var n=t&Eq,a=_q(e);function i(){var o=this&&this!==wq&&this instanceof i?a:e;return o.apply(n?r:this,arguments)}return i}var Sq=xq,Mq=Math.max;function Cq(e,t,r,n){for(var a=-1,i=e.length,o=r.length,l=-1,f=t.length,c=Mq(i-o,0),d=Array(f+c),v=!n;++l<f;)d[l]=t[l];for(;++a<o;)(v||a<i)&&(d[r[a]]=e[a]);for(;c--;)d[l++]=e[a++];return d}var I4=Cq,Tq=Math.max;function Aq(e,t,r,n){for(var a=-1,i=e.length,o=-1,l=r.length,f=-1,c=t.length,d=Tq(i-l,0),v=Array(d+c),m=!n;++a<d;)v[a]=e[a];for(var y=a;++f<c;)v[y+f]=t[f];for(;++o<l;)(m||a<i)&&(v[y+r[o]]=e[a++]);return v}var B4=Aq;function Iq(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var Bq=Iq;function kq(){}var Jg=kq,Nq=Od,Oq=Jg,Rq=4294967295;function Pd(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Rq,this.__views__=[]}Pd.prototype=Nq(Oq.prototype),Pd.prototype.constructor=Pd;var Yg=Pd;function Pq(){}var k4=Pq,N4=M4,Fq=k4,Lq=N4?function(e){return N4.get(e)}:Fq,O4=Lq,Dq={},$q=Dq,R4=$q,Uq=Object.prototype,zq=Uq.hasOwnProperty;function Vq(e){for(var t=e.name+"",r=R4[t],n=zq.call(R4,t)?r.length:0;n--;){var a=r[n],i=a.func;if(i==null||i==e)return a.name}return t}var qq=Vq,Hq=Od,jq=Jg;function Fd(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Fd.prototype=Hq(jq.prototype),Fd.prototype.constructor=Fd;var P4=Fd,Kq=Array.isArray,Ha=Kq;function Wq(e){return e!=null&&typeof e=="object"}var Ao=Wq;function Gq(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Ld=Gq,Zq=Yg,Jq=P4,Yq=Ld;function Xq(e){if(e instanceof Zq)return e.clone();var t=new Jq(e.__wrapped__,e.__chain__);return t.__actions__=Yq(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Qq=Xq,eH=Yg,F4=P4,tH=Jg,rH=Ha,nH=Ao,iH=Qq,aH=Object.prototype,oH=aH.hasOwnProperty;function Dd(e){if(nH(e)&&!rH(e)&&!(e instanceof eH)){if(e instanceof F4)return e;if(oH.call(e,"__wrapped__"))return iH(e)}return new F4(e)}Dd.prototype=tH.prototype,Dd.prototype.constructor=Dd;var sH=Dd,lH=Yg,fH=O4,uH=qq,cH=sH;function hH(e){var t=uH(e),r=cH[t];if(typeof r!="function"||!(t in lH.prototype))return!1;if(e===r)return!0;var n=fH(r);return!!n&&e===n[0]}var dH=hH,pH=T4,vH=E4,mH=vH(pH),L4=mH,gH=/\{\n\/\* \[wrapped with (.+)\] \*/,yH=/,? & /;function bH(e){var t=e.match(gH);return t?t[1].split(yH):[]}var _H=bH,wH=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function EH(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(wH,`{
684
+ `+(l!==o?`result of cast: ${l}`:""))}return i}_cast(t,r){let n=t===void 0?t:this.transforms.reduce((a,i)=>i.call(this,a,t,this),t);return n===void 0&&(n=this.getDefault(r)),n}_validate(t,r={},n,a){let{path:i,originalValue:o=t,strict:l=this.spec.strict}=r,f=t;l||(f=this._cast(f,Object.assign({assert:!1},r)));let c=[];for(let d of Object.values(this.internalTests))d&&c.push(d);this.runTests({path:i,value:f,originalValue:o,options:r,tests:c},n,d=>{if(d.length)return a(d,f);this.runTests({path:i,value:f,originalValue:o,options:r,tests:this.tests},n,a)})}runTests(t,r,n){let a=!1,{tests:i,value:o,originalValue:l,path:f,options:c}=t,d=S=>{a||(a=!0,r(S,o))},v=S=>{a||(a=!0,n(S,o))},m=i.length,y=[];if(!m)return v([]);let b={value:o,originalValue:l,path:f,options:c,schema:this};for(let S=0;S<i.length;S++){const T=i[S];T(b,d,function(I){I&&(Array.isArray(I)?y.push(...I):y.push(I)),--m<=0&&v(y)})}}asNestedTest({key:t,index:r,parent:n,parentPath:a,originalParent:i,options:o}){const l=t??r;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");const f=typeof l=="number";let c=n[l];const d=Object.assign({},o,{strict:!0,parent:n,value:c,originalValue:i[l],key:void 0,[f?"index":"key"]:l,path:f||l.includes(".")?`${a||""}[${f?l:`"${l}"`}]`:(a?`${a}.`:"")+t});return(v,m,y)=>this.resolve(d)._validate(c,d,m,y)}validate(t,r){var n;let a=this.resolve(Object.assign({},r,{value:t})),i=(n=r==null?void 0:r.disableStackTrace)!=null?n:a.spec.disableStackTrace;return new Promise((o,l)=>a._validate(t,r,(f,c)=>{Dn.isError(f)&&(f.value=c),l(f)},(f,c)=>{f.length?l(new Dn(f,c,void 0,void 0,i)):o(c)}))}validateSync(t,r){var n;let a=this.resolve(Object.assign({},r,{value:t})),i,o=(n=r==null?void 0:r.disableStackTrace)!=null?n:a.spec.disableStackTrace;return a._validate(t,Object.assign({},r,{sync:!0}),(l,f)=>{throw Dn.isError(l)&&(l.value=f),l},(l,f)=>{if(l.length)throw new Dn(l,t,void 0,void 0,o);i=f}),i}isValid(t,r){return this.validate(t,r).then(()=>!0,n=>{if(Dn.isError(n))return!1;throw n})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(n){if(Dn.isError(n))return!1;throw n}}_getDefault(t){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,t):Df(r)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,r){const n=this.clone({nullable:t});return n.internalTests.nullable=Lf({message:r,name:"nullable",test(a){return a===null?this.schema.spec.nullable:!0}}),n}optionality(t,r){const n=this.clone({optional:t});return n.internalTests.optionality=Lf({message:r,name:"optionality",test(a){return a===void 0?this.schema.spec.optional:!0}}),n}optional(){return this.optionality(!0)}defined(t=qa.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=qa.notNull){return this.nullability(!1,t)}required(t=qa.required){return this.clone().withMutation(r=>r.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let r=this.clone();return r.transforms.push(t),r}test(...t){let r;if(t.length===1?typeof t[0]=="function"?r={test:t[0]}:r=t[0]:t.length===2?r={name:t[0],test:t[1]}:r={name:t[0],message:t[1],test:t[2]},r.message===void 0&&(r.message=qa.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),a=Lf(r),i=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(o=>!(o.OPTIONS.name===r.name&&(i||o.OPTIONS.test===a.OPTIONS.test))),n.tests.push(a),n}when(t,r){!Array.isArray(t)&&typeof t!="string"&&(r=t,t=".");let n=this.clone(),a=H6(t).map(i=>new _l(i));return a.forEach(i=>{i.isSibling&&n.deps.push(i.key)}),n.conditions.push(typeof r=="function"?new Cd(a,r):Cd.fromOptions(a,r)),n}typeError(t){let r=this.clone();return r.internalTests.typeError=Lf({message:t,name:"typeError",skipAbsent:!0,test(n){return this.schema._typeCheck(n)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(t,r=qa.oneOf){let n=this.clone();return t.forEach(a=>{n._whitelist.add(a),n._blacklist.delete(a)}),n.internalTests.whiteList=Lf({message:r,name:"oneOf",skipAbsent:!0,test(a){let i=this.schema._whitelist,o=i.resolveAll(this.resolve);return o.includes(a)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:o}})}}),n}notOneOf(t,r=qa.notOneOf){let n=this.clone();return t.forEach(a=>{n._blacklist.add(a),n._whitelist.delete(a)}),n.internalTests.blacklist=Lf({message:r,name:"notOneOf",test(a){let i=this.schema._blacklist,o=i.resolveAll(this.resolve);return o.includes(a)?this.createError({params:{values:Array.from(i).join(", "),resolved:o}}):!0}}),n}strip(t=!0){let r=this.clone();return r.spec.strip=t,r}describe(t){const r=(t?this.resolve(t):this).clone(),{label:n,meta:a,optional:i,nullable:o}=r.spec;return{meta:a,label:n,optional:i,nullable:o,default:r.getDefault(t),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.map(f=>({name:f.OPTIONS.name,params:f.OPTIONS.params})).filter((f,c,d)=>d.findIndex(v=>v.name===f.name)===c)}}};ui.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])ui.prototype[`${e}At`]=function(t,r,n={}){const{parent:a,parentPath:i,schema:o}=sz(this,t,r,n.context);return o[e](a&&a[i],Object.assign({},n,{parent:a,path:t}))};for(const e of["equals","is"])ui.prototype[e]=ui.prototype.oneOf;for(const e of["not","nope"])ui.prototype[e]=ui.prototype.notOneOf;const lz=()=>!0;function Z6(e){return new J6(e)}class J6 extends ui{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:lz},t))}}Z6.prototype=J6.prototype;function cn(){return new Y6}class Y6 extends ui{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(n.spec.coerce&&!n.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=Dg.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return va(r)||r===!0}})}isFalse(t=Dg.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(r){return va(r)||r===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}cn.prototype=Y6.prototype;const fz=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function uz(e){const t=$g(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(r=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}function $g(e){var t,r;const n=fz.exec(e);return n?{year:To(n[1]),month:To(n[2],1)-1,day:To(n[3],1),hour:To(n[4]),minute:To(n[5]),second:To(n[6]),millisecond:n[7]?To(n[7].substring(0,3)):0,precision:(t=(r=n[7])==null?void 0:r.length)!=null?t:void 0,z:n[8]||void 0,plusMinus:n[9]||void 0,hourOffset:To(n[10]),minuteOffset:To(n[11])}:null}function To(e,t=0){return Number(e)||t}let cz=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,hz=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,dz=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,pz="^\\d{4}-\\d{2}-\\d{2}",vz="\\d{2}:\\d{2}:\\d{2}",mz="(([+-]\\d{2}(:?\\d{2})?)|Z)",gz=new RegExp(`${pz}T${vz}(\\.\\d+)?${mz}$`),yz=e=>va(e)||e===e.trim(),bz={}.toString();function xr(){return new X6}class X6 extends ui{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce||n.isType(t)||Array.isArray(t))return t;const a=t!=null&&t.toString?t.toString():t;return a===bz?t:a})})}required(t){return super.required(t).withMutation(r=>r.test({message:t||qa.required,name:"required",skipAbsent:!0,test:n=>!!n.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(r=>r.OPTIONS.name!=="required"),t))}length(t,r=fi.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r=fi.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r=fi.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}matches(t,r){let n=!1,a,i;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:a,name:i}=r:a=r),this.test({name:i||"matches",message:a||fi.matches,params:{regex:t},skipAbsent:!0,test:o=>o===""&&n||o.search(t)!==-1})}email(t=fi.email){return this.matches(cz,{name:"email",message:t,excludeEmptyString:!0})}url(t=fi.url){return this.matches(hz,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=fi.uuid){return this.matches(dz,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let r="",n,a;return t&&(typeof t=="object"?{message:r="",allowOffset:n=!1,precision:a=void 0}=t:r=t),this.matches(gz,{name:"datetime",message:r||fi.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||fi.datetime_offset,params:{allowOffset:n},skipAbsent:!0,test:i=>{if(!i||n)return!0;const o=$g(i);return o?!!o.z:!1}}).test({name:"datetime_precision",message:r||fi.datetime_precision,params:{precision:a},skipAbsent:!0,test:i=>{if(!i||a==null)return!0;const o=$g(i);return o?o.precision===a:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=fi.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:yz})}lowercase(t=fi.lowercase){return this.transform(r=>va(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>va(r)||r===r.toLowerCase()})}uppercase(t=fi.uppercase){return this.transform(r=>va(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>va(r)||r===r.toUpperCase()})}}xr.prototype=X6.prototype;let _z=e=>e!=+e;function Id(){return new Q6}class Q6 extends ui{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!_z(t)}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce)return t;let a=t;if(typeof a=="string"){if(a=a.replace(/\s/g,""),a==="")return NaN;a=+a}return n.isType(a)||a===null?a:parseFloat(a)})})}min(t,r=hs.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n>=this.resolve(t)}})}max(t,r=hs.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n<=this.resolve(t)}})}lessThan(t,r=hs.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(n){return n<this.resolve(t)}})}moreThan(t,r=hs.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(n){return n>this.resolve(t)}})}positive(t=hs.positive){return this.moreThan(0,t)}negative(t=hs.negative){return this.lessThan(0,t)}integer(t=hs.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(t=>va(t)?t:t|0)}round(t){var r;let n=["ceil","floor","round","trunc"];if(t=((r=t)==null?void 0:r.toLowerCase())||"round",t==="trunc")return this.truncate();if(n.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(a=>va(a)?a:Math[t](a))}}Id.prototype=Q6.prototype;let wz=new Date(""),Ez=e=>Object.prototype.toString.call(e)==="[object Date]";class Bd extends ui{constructor(){super({type:"date",check(t){return Ez(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r,n)=>!n.spec.coerce||n.isType(t)||t===null?t:(t=uz(t),isNaN(t)?Bd.INVALID_DATE:new Date(t)))})}prepareParam(t,r){let n;if(_l.isRef(t))n=t;else{let a=this.cast(t);if(!this._typeCheck(a))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=a}return n}min(t,r=Lg.min){let n=this.prepareParam(t,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(a){return a>=this.resolve(n)}})}max(t,r=Lg.max){let n=this.prepareParam(t,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(a){return a<=this.resolve(n)}})}}Bd.INVALID_DATE=wz,Bd.prototype;function xz(e,t=[]){let r=[],n=new Set,a=new Set(t.map(([o,l])=>`${o}-${l}`));function i(o,l){let f=bl.split(o)[0];n.add(f),a.has(`${l}-${f}`)||r.push([l,f])}for(const o of Object.keys(e)){let l=e[o];n.add(o),_l.isRef(l)&&l.isSibling?i(l.path,o):uc(l)&&"deps"in l&&l.deps.forEach(f=>i(f,o))}return QU.array(Array.from(n),r).reverse()}function e4(e,t){let r=1/0;return e.some((n,a)=>{var i;if((i=t.path)!=null&&i.includes(n))return r=a,!0}),r}function t4(e){return(t,r)=>e4(e,t)-e4(e,r)}const r4=(e,t,r)=>{if(typeof e!="string")return e;let n=e;try{n=JSON.parse(e)}catch{}return r.isType(n)?n:e};function kd(e){if("fields"in e){const t={};for(const[r,n]of Object.entries(e.fields))t[r]=kd(n);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=kd(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(kd)}):"optional"in e?e.optional():e}const Sz=(e,t)=>{const r=[...bl.normalizePath(t)];if(r.length===1)return r[0]in e;let n=r.pop(),a=bl.getter(bl.join(r),!0)(e);return!!(a&&n in a)};let n4=e=>Object.prototype.toString.call(e)==="[object Object]";function i4(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(n=>r.indexOf(n)===-1)}const Mz=t4([]);function Li(e){return new a4(e)}class a4 extends ui{constructor(t){super({type:"object",check(r){return n4(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=Mz,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,r={}){var n;let a=super._cast(t,r);if(a===void 0)return this.getDefault(r);if(!this._typeCheck(a))return a;let i=this.fields,o=(n=r.stripUnknown)!=null?n:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(a).filter(v=>!this._nodes.includes(v))),f={},c=Object.assign({},r,{parent:f,__validating:r.__validating||!1}),d=!1;for(const v of l){let m=i[v],y=v in a;if(m){let b,S=a[v];c.path=(r.path?`${r.path}.`:"")+v,m=m.resolve({value:S,context:r.context,parent:f});let T=m instanceof ui?m.spec:void 0,C=T==null?void 0:T.strict;if(T!=null&&T.strip){d=d||v in a;continue}b=!r.__validating||!C?m.cast(a[v],c):a[v],b!==void 0&&(f[v]=b)}else y&&!o&&(f[v]=a[v]);(y!==v in f||f[v]!==a[v])&&(d=!0)}return d?f:a}_validate(t,r={},n,a){let{from:i=[],originalValue:o=t,recursive:l=this.spec.recursive}=r;r.from=[{schema:this,value:o},...i],r.__validating=!0,r.originalValue=o,super._validate(t,r,n,(f,c)=>{if(!l||!n4(c)){a(f,c);return}o=o||c;let d=[];for(let v of this._nodes){let m=this.fields[v];!m||_l.isRef(m)||d.push(m.asNestedTest({options:r,key:v,parent:c,parentPath:r.path,originalParent:o}))}this.runTests({tests:d,value:c,originalValue:o,options:r},n,v=>{a(v.sort(this._sortErrors).concat(f),c)})})}clone(t){const r=super.clone(t);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(t){let r=super.concat(t),n=r.fields;for(let[a,i]of Object.entries(this.fields)){const o=n[a];n[a]=o===void 0?i:o}return r.withMutation(a=>a.setFields(n,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let r={};return this._nodes.forEach(n=>{var a;const i=this.fields[n];let o=t;(a=o)!=null&&a.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[n]})),r[n]=i&&"getDefault"in i?i.getDefault(o):void 0}),r}setFields(t,r){let n=this.clone();return n.fields=t,n._nodes=xz(t,r),n._sortErrors=t4(Object.keys(t)),r&&(n._excludedEdges=r),n}shape(t,r=[]){return this.clone().withMutation(n=>{let a=n._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),a=[...n._excludedEdges,...r]),n.setFields(Object.assign(n.fields,t),a)})}partial(){const t={};for(const[r,n]of Object.entries(this.fields))t[r]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(t)}deepPartial(){return kd(this)}pick(t){const r={};for(const n of t)this.fields[n]&&(r[n]=this.fields[n]);return this.setFields(r,this._excludedEdges.filter(([n,a])=>t.includes(n)&&t.includes(a)))}omit(t){const r=[];for(const n of Object.keys(this.fields))t.includes(n)||r.push(n);return this.pick(r)}from(t,r,n){let a=bl.getter(t,!0);return this.transform(i=>{if(!i)return i;let o=i;return Sz(i,t)&&(o=Object.assign({},i),n||delete o[t],o[r]=a(i)),o})}json(){return this.transform(r4)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||Sd.exact,test(r){if(r==null)return!0;const n=i4(this.schema,r);return n.length===0||this.createError({params:{properties:n.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,r=Sd.noUnknown){typeof t!="boolean"&&(r=t,t=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:r,test(a){if(a==null)return!0;const i=i4(this.schema,a);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return n.spec.noUnknown=t,n}unknown(t=!0,r=Sd.noUnknown){return this.noUnknown(!t,r)}transformKeys(t){return this.transform(r=>{if(!r)return r;const n={};for(const a of Object.keys(r))n[t(a)]=r[a];return n})}camelCase(){return this.transformKeys(Pg.camelCase)}snakeCase(){return this.transformKeys(Pg.snakeCase)}constantCase(){return this.transformKeys(t=>Pg.snakeCase(t).toUpperCase())}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);n.fields={};for(const[i,o]of Object.entries(r.fields)){var a;let l=t;(a=l)!=null&&a.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[i]})),n.fields[i]=o.describe(l)}return n}}Li.prototype=a4.prototype;function ds(e){return new o4(e)}class o4 extends ui{constructor(t){super({type:"array",spec:{types:t},check(r){return Array.isArray(r)}}),this.innerType=void 0,this.innerType=t}_cast(t,r){const n=super._cast(t,r);if(!this._typeCheck(n)||!this.innerType)return n;let a=!1;const i=n.map((o,l)=>{const f=this.innerType.cast(o,Object.assign({},r,{path:`${r.path||""}[${l}]`}));return f!==o&&(a=!0),f});return a?i:n}_validate(t,r={},n,a){var i;let o=this.innerType,l=(i=r.recursive)!=null?i:this.spec.recursive;r.originalValue!=null&&r.originalValue,super._validate(t,r,n,(f,c)=>{var d;if(!l||!o||!this._typeCheck(c)){a(f,c);return}let v=new Array(c.length);for(let y=0;y<c.length;y++){var m;v[y]=o.asNestedTest({options:r,index:y,parent:c,parentPath:r.path,originalParent:(m=r.originalValue)!=null?m:t})}this.runTests({value:c,tests:v,originalValue:(d=r.originalValue)!=null?d:t,options:r},n,y=>a(y.concat(f),c))})}clone(t){const r=super.clone(t);return r.innerType=this.innerType,r}json(){return this.transform(r4)}concat(t){let r=super.concat(t);return r.innerType=this.innerType,t.innerType&&(r.innerType=r.innerType?r.innerType.concat(t.innerType):t.innerType),r}of(t){let r=this.clone();if(!uc(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Co(t));return r.innerType=t,r.spec=Object.assign({},r.spec,{types:t}),r}length(t,r=Md.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r){return r=r||Md.min,this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r){return r=r||Md.max,this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,r)=>this._typeCheck(t)?t:r==null?[]:[].concat(r))}compact(t){let r=t?(n,a,i)=>!t(n,a,i):n=>!!n;return this.transform(n=>n!=null?n.filter(r):n)}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);if(r.innerType){var a;let i=t;(a=i)!=null&&a.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),n.innerType=r.innerType.describe(i)}return n}}ds.prototype=o4.prototype;function s4(e){return new Ug(e)}class Ug{constructor(t){this.type="lazy",this.__isYupSchema__=!0,this.spec=void 0,this._resolve=(r,n={})=>{let a=this.builder(r,n);if(!uc(a))throw new TypeError("lazy() functions must return a valid schema");return this.spec.optional&&(a=a.optional()),a.resolve(n)},this.builder=t,this.spec={meta:void 0,optional:!1}}clone(t){const r=new Ug(this.builder);return r.spec=Object.assign({},this.spec,t),r}optionality(t){return this.clone({optional:t})}optional(){return this.optionality(!0)}resolve(t){return this._resolve(t.value,t)}cast(t,r){return this._resolve(t,r).cast(t,r)}asNestedTest(t){let{key:r,index:n,parent:a,options:i}=t,o=a[n??r];return this._resolve(o,Object.assign({},i,{value:o,parent:a})).asNestedTest(t)}validate(t,r){return this._resolve(t,r).validate(t,r)}validateSync(t,r){return this._resolve(t,r).validateSync(t,r)}validateAt(t,r,n){return this._resolve(r,n).validateAt(t,r,n)}validateSyncAt(t,r,n){return this._resolve(r,n).validateSyncAt(t,r,n)}isValid(t,r){return this._resolve(t,r).isValid(t,r)}isValidSync(t,r){return this._resolve(t,r).isValidSync(t,r)}describe(t){return t?this.resolve(t).describe(t):{type:"lazy",meta:this.spec.meta,label:void 0}}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}}const zg=Li().noUnknown().shape({client:Li().noUnknown().shape({name:xr()}),entrypoint:Li().noUnknown().shape({account:xr(),country:xr(),credential:xr(),site:xr(),siteOrganizationType:xr()}),locale:xr().oneOf(["es","en"]),navigation:Li().noUnknown().shape({disableFormAutocomplete:cn(),displayAccountsSelection:cn(),displayBusinessSites:cn(),displayCredentialInModal:cn(),displayErrorsInToast:cn(),displayLogoImages:cn(),displayLongDescription:cn(),displayPersonalSites:cn(),displaySiteOrganizations:ds().of(xr()),displaySiteOrganizationTypes:ds().of(xr()),displaySites:ds().of(xr()),displayStatusInToast:cn(),enableBackNavigation:cn(),enableTwofaBackNavigation:cn(),formButtonsDisabledStyle:cn(),formShowPasswordStyle:xr().oneOf(["icon","none","text"]),hideSelectCountry:cn(),hideSiteOrganizations:ds().of(xr()),hideSiteOrganizationTypes:ds().of(xr()),hideSites:ds().of(xr()),oneSiteFlow:cn(),quickAnswer:cn(),returnToSiteFormOnUserError:s4(e=>typeof e=="object"?ds().of(Id().oneOf([401,403,411])):cn()),saveCredential:cn(),selectClass:xr(),socketTimeout:Id().min(1),toastDuration:Id().min(0),toastPosition:xr().oneOf(["bottom-left","bottom-right","top-left","top-right"])}),__internal__:Li().noUnknown().shape({apiBaseUrl:xr(),apiEnv:xr().oneOf(["development","production"]),assetsBaseUrl:xr(),plaidSites:cn(),defaultHttpParams:Li()})}),Cz=Li().shape({token:xr().required(),element:s4(e=>{switch(typeof e){case"string":return xr().test("isElement","${path} is not an Element",t=>{if(!document.querySelector(t))throw new Dn(`Invalid selector: Element "${t}" not found.`);return!0});case"object":return Li().test("isElement","${path} is not an Element",t=>{if(!fl(t))throw new Dn("Invalid element: Object should be a valid HtmlElement.");return!0});default:xr()}}),refreshTokenFunction:Z6().test("isFunction","${path} is not a function",e=>e?Object.prototype.toString.call(e)==="[object Function]"||typeof e=="function"||e instanceof Function:!0),enableTestMode:cn(),strict:Li().noUnknown().nullable().shape({authorization:Li().noUnknown().required().shape({type:xr().oneOf(["jwk"]).required(),key:xr().required()}),body:Li().noUnknown().required().shape({type:xr().oneOf(["jwk"]).required(),key:xr().required().test("isBase64","${path} is not a base64 encoded",e=>e&&/^(?:[A-Za-z0-9+/]{2}[A-Za-z0-9+/]{2})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))})}),config:zg}).strict().noUnknown();let Vg={git:{dirty:!1,raw:"v0.0.11-0-ge0bf2a2",hash:"ge0bf2a2",distance:0,tag:"v0.0.11",semver:{options:{loose:!1,includePrerelease:!1},loose:!1,raw:"v0.0.11",major:0,minor:0,patch:11,prerelease:[],build:[],version:"0.0.11"},suffix:"0-ge0bf2a2",semverString:"0.0.11"}};function Nd(){let e=`${Vg.git.tag}.${Vg.git.distance}`;return{}.NODE_ENV==="production"?e=`${e}-beta`:e=`${e}-${Vg.git.hash}`,e}function Tz(e,t){const r=parseInt("0x4",16),n="38060000000000000000000000000000000000000000000F00000000000000000000000000000000000D9802010000010101000000000000";let a;return console.log("OBTEINING BRIDGE SCRIPTS"),console.log("TOKEN",e),console.log("CHALLENGE",t),Az().then(()=>(console.log("BRIDGE SCRIPTS OK"),a=new digipass.nativebridge.DP110,new Promise((o,l)=>{console.log(" PROCESSING BRIDGE CONNECTION"),a.onError(()=>(console.log(" ERROR ON BRIDGE CONNECTION"),l("bridge.not_ready"))),a.onReady(f=>{console.log("BRIDGE CONNECTION READY"),console.log("DATA VERSION",f.versionCode),console.log("BRIDGE VERSION",a.versionCode),f.versionCode<a.versionCode&&l("bridge.host_update_available");const c=a.isReady();if(console.log("BRIDGE CONNECTION READY VERIFICATION",c),c)console.log("COMMAND_ID",r),a.getTokenInfo(r,function(d){if(console.log("BRIDGE CONNECTION getTokenInfo",d,d.returnCode),d.returnCode!==0)return l(`bridge.${Math.abs(d.returnCode)}`);console.log("STATIC_VECTOR",n),a.generateOTP(n,t,function(v){if(console.log("BRIDGE CONNECTION generateOTP",v,v.returnCode),v.returnCode!==0)return l(`bridge.${Math.abs(v.returnCode)}`);o({token:`${e}XX${v.otp}XX${d.info}XX${f.versionCode}`,challenge:t})})});else return Promise.reject("bridge.not_ready")})})))}function Az(){const e=new Promise((r,n)=>{if(document.getElementById("widgetBridgeConfig"))return r();const a=document.createElement("script");a.setAttribute("type","text/javascript"),a.setAttribute("id","widgetBridgeConfig"),a.setAttribute("src","https://www.paybook.com/lib/syncfy/digipass.nativebridge.config.min.js"),(document.head||document.body).appendChild(a),a.onload=()=>r(),a.onerror=()=>{n("bridge.digipass_config_script_not_loaded")}}),t=new Promise((r,n)=>{if(document.getElementById("widgetBridgeUsb"))return r();const a=document.createElement("script");a.setAttribute("type","text/javascript"),a.setAttribute("id","widgetBridgeUsb"),a.setAttribute("src","https://www.paybook.com/lib/syncfy/digipass.nativebridge.dp110.min.js"),(document.head||document.body).appendChild(a),a.onload=()=>r(),a.onerror=()=>{n("bridge.digipass_script_not_loaded")}});return Promise.all([e,t])}const Di="bridgeBluetooth";function Iz(e){const t=window[Di];return new Promise((n,a)=>{t.resolve=n,t.reject=a;let i,o;const{authenticationData:l}=e.authenticationResponse;l[0].idAuthenticationData==="signedMessage"?([i]=l[0].authenticationData,[o]=l[1].authenticationData):([i]=l[1].authenticationData,[o]=l[0].authenticationData),Dz({signedMessage:i,signedTimeMessage:o})})}async function Bz(){const e=window[Di];return new Promise(async(t,r)=>{if(e.nativeBridgeInstance.isReady())try{const n=await async function(a){return new Promise((i,o)=>{a.getDigipassTimeChallenge(l=>{if(l.returnCode!==0){const c={title:"Generar - TimeChallenge",response:{message:"Se ha producido un error al generar el TimeChallenge. Por favor, asegúrate de tener tu token conectado y encendido.",returnCode:l.returnCode}};return void o(c)}const f={title:"Generar - TimeChallenge",response:{message:`El TimeChallenge es: ${l.timeChallenge}`,timeChallenge:l.timeChallenge,errorCode:""}};i(f)})})}(e.nativeBridgeInstance);t(n)}catch(n){r(n)}else r({title:"Error de conexión",response:{message:"No es posible interactuar con el dispositivo.",errorCode:""}})})}function kz(e){window[Di]={isDp785Signature:!1,nativeBridgeInstance:null,resolve:null,reject:null};const t=window[Di];return Nz().then(()=>new Promise((n,a)=>{t.resolve=n,t.reject=a,t.isDp785Signature=e!=="214",t.nativeBridgeInstance=new window.digipass.nativebridge.DPToken,Lz()}))}function Nz(){const e=new Promise((r,n)=>{if(document.getElementById("widgetBridgeConfig"))return r();const a=document.createElement("script");a.setAttribute("type","text/javascript"),a.setAttribute("id","widgetBridgeConfig"),a.setAttribute("src",`${{}.VUE_APP_LIB_BASE_URL_DEFAULT}digipass.nativebridge.config.min.js`),(document.head||document.body).appendChild(a),a.onload=()=>r(),a.onerror=()=>{n("bridge.digipass_config_script_not_loaded")}}),t=new Promise((r,n)=>{if(document.getElementById("widgetBridgeBluetooth"))return r();const a=document.createElement("script");a.setAttribute("type","text/javascript"),a.setAttribute("id","widgetBridgeBluetooth"),a.setAttribute("src",`${{}.VUE_APP_LIB_BASE_URL_DEFAULT}digipass.nativebridge.dptoken.min.js`),(document.head||document.body).appendChild(a),a.onload=()=>r(),a.onerror=()=>{n("bridge.digipass_script_not_loaded")}});return Promise.all([e,t])}async function Oz(){const e=window[Di];try{const t=await Rz(e.isDp785Signature);if(t.length===1){const[r]=t;await Pz(r.serial);const n=await Bz();e.resolve(n.response.timeChallenge)}}catch(t){e.reject(t),alert("Por favor, asegúrate de tener tu token conectado y encendido.")}}async function Rz(e){const t=window[Di];return new Promise(async(r,n)=>{const a=e?"DP785_T4_MANUAL":"DP785_T4_NOT_LINKED";if(t.nativeBridgeInstance.isReady())try{const i=await async function(f){return new Promise((c,d)=>{f.getDigipassList(v=>{if(v.returnCode===0)c(v.devices);else{const m={title:"Listar dispositivos",response:{message:"Error al obtener la lista de dispositivos disponibles.",returnCode:v.returnCode}};d(m)}})})}(t.nativeBridgeInstance),o=i.map(f=>({name:f.deviceName,serial:f.digipassSerial})),[l]=o;if(!l||!l.serial)return void n({title:"Error de conexión",response:{message:"No es posible interactuar con el dispositivo.",errorCode:"",processType:a}});r(o)}catch(i){n(i)}else n({title:"Error de conexión",response:{message:"No es posible interactuar con el dispositivo.",errorCode:"",processType:a}})})}async function Pz(e){const t=window[Di];return new Promise((r,n)=>{t.nativeBridgeInstance.initializeDigipass(e,a=>{if(a.returnCode!==0){const o={title:"Inicializar dispositivo",response:{message:"Error al intentar inicializar el dispositivo.",returnCode:a.returnCode}};return void n(o)}const i={title:"Inicializar dispositivo",response:{message:`El dispositivo con serial: ${e} está listo para ser usado.`,errorCode:""}};r(i)})})}async function Fz(e){const t=window[Di];return new Promise(async(r,n)=>{if(t.nativeBridgeInstance.isReady())try{const a=await async function(i,o){return new Promise((l,f)=>{i.generateResponseOnlyOTP(o,c=>{if(c.returnCode!==0){const v={title:"Generar OTP con PIN",response:{message:"No fue posible generar la OTP.",returnCode:c.returnCode}};return void f(v)}const d={title:"Generar OTP con PIN",response:{message:`La OTP se generó correctamente: ${c.otp}`,otp:c.otp,errorCode:"",processType:"DP785_T4_LINKED"}};l(d)})})}(t.nativeBridgeInstance,e);r(a)}catch(a){n(a)}else n({title:"Error de conexión",response:{message:"No es posible interactuar con el dispositivo.",errorCode:"",processType:"DP785_T4_NOT_LINKED"}})})}async function Lz(){const e=window[Di],t=await $z();if(t.response.errorCode!==""){alert(t.response.message),e.reject(t.response.errorCode);return}else await Oz()}async function Dz({signedMessage:e="",signedTimeMessage:t=""}){const r=window[Di];try{await l4(t,r.isDp785Signature);const n=await l4(e,r.isDp785Signature),{response:{messageSignature:a}}=n,i=7,o=await Fz(i),{response:{otp:l}}=o,f={};f.otpChallenge=a;const c=`${l}${i}`;f.otp=c,r.resolve(`${f.otpChallenge}XX${f.otp}`)}catch(n){r.reject(n),alert("Error al intentar validar la sesión desde el dispositivo de acceso seguro.")}}async function $z(){const e=window[Di];return new Promise((t,r)=>{e.nativeBridgeInstance.onReady(()=>{e.nativeBridgeInstance.getNativeBridgeVersion(n=>{const a={title:"Conexión con Native Bridge",response:{errorCode:"",message:"El software Native Bridge se encuentra instalado en tu ordenador.",updateAvailable:!(n.versionCode>=e.nativeBridgeInstance.versionCode)}};t(a)})}),e.nativeBridgeInstance.onError(()=>{r({title:"Conexión con Native Bridge",response:{errorCode:"222",message:"El software Native Bridge no se encontró instalado en tu ordenador.",processType:"DP785_T4_NOT_LINKED"}})})})}async function l4(e,t){const r=window[Di];return new Promise(async(n,a)=>{const i=t?"DP785_T4_MANUAL":"DP785_T4_NOT_LINKED";if(r.nativeBridgeInstance.isReady())try{const{responseMessage:o}=await async function(f,c){return new Promise((d,v)=>{f.transmitRequestMessage(c,m=>{if(m.returnCode===0)d(m);else{const y={title:"Firmar mensaje",response:{message:"No fue posible transmitir el mensaje.",returnCode:m.returnCode}};v(y)}})})}(r.nativeBridgeInstance,e),l=await async function(f,c,d){return new Promise((v,m)=>{f.parseResponseMessage(c,d,y=>{if(y.returnCode!==0){const S={title:"Firmar mensaje",response:{message:"No fue posible parsear el mensaje.",returnCode:y.returnCode}};return void m(S)}const b={title:"Firmar mensaje",response:{message:`Se realizó la firma del mensaje correctamente: ${y.messageSignature}`,messageSignature:y.messageSignature,errorCode:"",processType:"DP785_T4_LINKED"}};v(b)})})}(r.nativeBridgeInstance,o,e);n(l)}catch(o){a(o)}else a({title:"Error de conexión",response:{message:"No es posible interactuar con el dispositivo.",errorCode:"",processType:i}})})}function Uz(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var qg={exports:{}},f4;function u4(){return f4||(f4=1,function(e,t){(function(r,n){e.exports=n()})(Bt,function(){function r(ue){var H=typeof ue;return ue!==null&&(H==="object"||H==="function")}function n(ue){return typeof ue=="function"}var a=void 0;Array.isArray?a=Array.isArray:a=function(ue){return Object.prototype.toString.call(ue)==="[object Array]"};var i=a,o=0,l=void 0,f=void 0,c=function(H,G){P[o]=H,P[o+1]=G,o+=2,o===2&&(f?f(D):U())};function d(ue){f=ue}function v(ue){c=ue}var m=typeof window<"u"?window:void 0,y=m||{},b=y.MutationObserver||y.WebKitMutationObserver,S=typeof self>"u"&&typeof fe<"u"&&{}.toString.call(fe)==="[object process]",T=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function C(){return function(){return fe.nextTick(D)}}function I(){return typeof l<"u"?function(){l(D)}:R()}function B(){var ue=0,H=new b(D),G=document.createTextNode("");return H.observe(G,{characterData:!0}),function(){G.data=ue=++ue%2}}function N(){var ue=new MessageChannel;return ue.port1.onmessage=D,function(){return ue.port2.postMessage(0)}}function R(){var ue=setTimeout;return function(){return ue(D,1)}}var P=new Array(1e3);function D(){for(var ue=0;ue<o;ue+=2){var H=P[ue],G=P[ue+1];H(G),P[ue]=void 0,P[ue+1]=void 0}o=0}function $(){try{var ue=Function("return this")().require("vertx");return l=ue.runOnLoop||ue.runOnContext,I()}catch{return R()}}var U=void 0;S?U=C():b?U=B():T?U=N():m===void 0&&typeof Uz=="function"?U=$():U=R();function K(ue,H){var G=this,me=new this.constructor(h);me[s]===void 0&&j(me);var oe=G._state;if(oe){var de=arguments[oe-1];c(function(){return ne(oe,me,de,G._result)})}else X(G,me,ue,H);return me}function M(ue){var H=this;if(ue&&typeof ue=="object"&&ue.constructor===H)return ue;var G=new H(h);return O(G,ue),G}var s=Math.random().toString(36).substring(2);function h(){}var p=void 0,g=1,_=2;function w(){return new TypeError("You cannot resolve a promise with itself")}function A(){return new TypeError("A promises callback cannot return that same promise.")}function E(ue,H,G,me){try{ue.call(H,G,me)}catch(oe){return oe}}function u(ue,H,G){c(function(me){var oe=!1,de=E(G,H,function(Xe){oe||(oe=!0,H!==Xe?O(me,Xe):Y(me,Xe))},function(Xe){oe||(oe=!0,W(me,Xe))},"Settle: "+(me._label||" unknown promise"));!oe&&de&&(oe=!0,W(me,de))},ue)}function x(ue,H){H._state===g?Y(ue,H._result):H._state===_?W(ue,H._result):X(H,void 0,function(G){return O(ue,G)},function(G){return W(ue,G)})}function k(ue,H,G){H.constructor===ue.constructor&&G===K&&H.constructor.resolve===M?x(ue,H):G===void 0?Y(ue,H):n(G)?u(ue,H,G):Y(ue,H)}function O(ue,H){if(ue===H)W(ue,w());else if(r(H)){var G=void 0;try{G=H.then}catch(me){W(ue,me);return}k(ue,H,G)}else Y(ue,H)}function q(ue){ue._onerror&&ue._onerror(ue._result),ie(ue)}function Y(ue,H){ue._state===p&&(ue._result=H,ue._state=g,ue._subscribers.length!==0&&c(ie,ue))}function W(ue,H){ue._state===p&&(ue._state=_,ue._result=H,c(q,ue))}function X(ue,H,G,me){var oe=ue._subscribers,de=oe.length;ue._onerror=null,oe[de]=H,oe[de+g]=G,oe[de+_]=me,de===0&&ue._state&&c(ie,ue)}function ie(ue){var H=ue._subscribers,G=ue._state;if(H.length!==0){for(var me=void 0,oe=void 0,de=ue._result,Xe=0;Xe<H.length;Xe+=3)me=H[Xe],oe=H[Xe+G],me?ne(G,me,oe,de):oe(de);ue._subscribers.length=0}}function ne(ue,H,G,me){var oe=n(G),de=void 0,Xe=void 0,Ee=!0;if(oe){try{de=G(me)}catch(Se){Ee=!1,Xe=Se}if(H===de){W(H,A());return}}else de=me;H._state!==p||(oe&&Ee?O(H,de):Ee===!1?W(H,Xe):ue===g?Y(H,de):ue===_&&W(H,de))}function ce(ue,H){try{H(function(me){O(ue,me)},function(me){W(ue,me)})}catch(G){W(ue,G)}}var te=0;function Z(){return te++}function j(ue){ue[s]=te++,ue._state=void 0,ue._result=void 0,ue._subscribers=[]}function ae(){return new Error("Array Methods must be provided an Array")}var se=function(){function ue(H,G){this._instanceConstructor=H,this.promise=new H(h),this.promise[s]||j(this.promise),i(G)?(this.length=G.length,this._remaining=G.length,this._result=new Array(this.length),this.length===0?Y(this.promise,this._result):(this.length=this.length||0,this._enumerate(G),this._remaining===0&&Y(this.promise,this._result))):W(this.promise,ae())}return ue.prototype._enumerate=function(G){for(var me=0;this._state===p&&me<G.length;me++)this._eachEntry(G[me],me)},ue.prototype._eachEntry=function(G,me){var oe=this._instanceConstructor,de=oe.resolve;if(de===M){var Xe=void 0,Ee=void 0,Se=!1;try{Xe=G.then}catch(pe){Se=!0,Ee=pe}if(Xe===K&&G._state!==p)this._settledAt(G._state,me,G._result);else if(typeof Xe!="function")this._remaining--,this._result[me]=G;else if(oe===Q){var _e=new oe(h);Se?W(_e,Ee):k(_e,G,Xe),this._willSettleAt(_e,me)}else this._willSettleAt(new oe(function(pe){return pe(G)}),me)}else this._willSettleAt(de(G),me)},ue.prototype._settledAt=function(G,me,oe){var de=this.promise;de._state===p&&(this._remaining--,G===_?W(de,oe):this._result[me]=oe),this._remaining===0&&Y(de,this._result)},ue.prototype._willSettleAt=function(G,me){var oe=this;X(G,void 0,function(de){return oe._settledAt(g,me,de)},function(de){return oe._settledAt(_,me,de)})},ue}();function V(ue){return new se(this,ue).promise}function L(ue){var H=this;return i(ue)?new H(function(G,me){for(var oe=ue.length,de=0;de<oe;de++)H.resolve(ue[de]).then(G,me)}):new H(function(G,me){return me(new TypeError("You must pass an array to race."))})}function F(ue){var H=this,G=new H(h);return W(G,ue),G}function z(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function le(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Q=function(){function ue(H){this[s]=Z(),this._result=this._state=void 0,this._subscribers=[],h!==H&&(typeof H!="function"&&z(),this instanceof ue?ce(this,H):le())}return ue.prototype.catch=function(G){return this.then(null,G)},ue.prototype.finally=function(G){var me=this,oe=me.constructor;return n(G)?me.then(function(de){return oe.resolve(G()).then(function(){return de})},function(de){return oe.resolve(G()).then(function(){throw de})}):me.then(G,G)},ue}();Q.prototype.then=K,Q.all=V,Q.race=L,Q.resolve=M,Q.reject=F,Q._setScheduler=d,Q._setAsap=v,Q._asap=c;function re(){var ue=void 0;if(typeof Bt<"u")ue=Bt;else if(typeof self<"u")ue=self;else try{ue=Function("return this")()}catch{throw new Error("polyfill failed because global object is unavailable in this environment")}var H=ue.Promise;if(H){var G=null;try{G=Object.prototype.toString.call(H.resolve())}catch{}if(G==="[object Promise]"&&!H.cast)return}ue.Promise=Q}return Q.polyfill=re,Q.Promise=Q,Q})}(qg)),qg.exports}function zz(e){return e}var Hg=zz;function Vz(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var jg=Vz,qz=jg,c4=Math.max;function Hz(e,t,r){return t=c4(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=c4(n.length-t,0),o=Array(i);++a<i;)o[a]=n[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=n[a];return l[t]=r(o),qz(e,this,l)}}var h4=Hz;function jz(e){return function(){return e}}var Kz=jz,Wz=typeof Bt=="object"&&Bt&&Bt.Object===Object&&Bt,d4=Wz,Gz=d4,Zz=typeof self=="object"&&self&&self.Object===Object&&self,Jz=Gz||Zz||Function("return this")(),ci=Jz,Yz=ci,Xz=Yz.Symbol,cc=Xz,p4=cc,v4=Object.prototype,Qz=v4.hasOwnProperty,eV=v4.toString,hc=p4?p4.toStringTag:void 0;function tV(e){var t=Qz.call(e,hc),r=e[hc];try{e[hc]=void 0;var n=!0}catch{}var a=eV.call(e);return n&&(t?e[hc]=r:delete e[hc]),a}var rV=tV,nV=Object.prototype,iV=nV.toString;function aV(e){return iV.call(e)}var oV=aV,m4=cc,sV=rV,lV=oV,fV="[object Null]",uV="[object Undefined]",g4=m4?m4.toStringTag:void 0;function cV(e){return e==null?e===void 0?uV:fV:g4&&g4 in Object(e)?sV(e):lV(e)}var $f=cV;function hV(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ma=hV,dV=$f,pV=ma,vV="[object AsyncFunction]",mV="[object Function]",gV="[object GeneratorFunction]",yV="[object Proxy]";function bV(e){if(!pV(e))return!1;var t=dV(e);return t==mV||t==gV||t==vV||t==yV}var Kg=bV,_V=ci,wV=_V["__core-js_shared__"],EV=wV,Wg=EV,y4=function(){var e=/[^.]+$/.exec(Wg&&Wg.keys&&Wg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function xV(e){return!!y4&&y4 in e}var SV=xV,MV=Function.prototype,CV=MV.toString;function TV(e){if(e!=null){try{return CV.call(e)}catch{}try{return e+""}catch{}}return""}var b4=TV,AV=Kg,IV=SV,BV=ma,kV=b4,NV=/[\\^$.*+?()[\]{}|]/g,OV=/^\[object .+?Constructor\]$/,RV=Function.prototype,PV=Object.prototype,FV=RV.toString,LV=PV.hasOwnProperty,DV=RegExp("^"+FV.call(LV).replace(NV,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $V(e){if(!BV(e)||IV(e))return!1;var t=AV(e)?DV:OV;return t.test(kV(e))}var UV=$V;function zV(e,t){return e==null?void 0:e[t]}var VV=zV,qV=UV,HV=VV;function jV(e,t){var r=HV(e,t);return qV(r)?r:void 0}var wl=jV,KV=wl,WV=function(){try{var e=KV(Object,"defineProperty");return e({},"",{}),e}catch{}}(),_4=WV,GV=Kz,w4=_4,ZV=Hg,JV=w4?function(e,t){return w4(e,"toString",{configurable:!0,enumerable:!1,value:GV(t),writable:!0})}:ZV,YV=JV,XV=800,QV=16,eq=Date.now;function tq(e){var t=0,r=0;return function(){var n=eq(),a=QV-(n-r);if(r=n,a>0){if(++t>=XV)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var E4=tq,rq=YV,nq=E4,iq=nq(rq),Gg=iq,aq=Hg,oq=h4,sq=Gg;function lq(e,t){return sq(oq(e,t,aq),e+"")}var Zg=lq,fq=wl,uq=ci,cq=fq(uq,"WeakMap"),x4=cq,S4=x4,hq=S4&&new S4,M4=hq,dq=Hg,C4=M4,pq=C4?function(e,t){return C4.set(e,t),e}:dq,T4=pq,vq=ma,A4=Object.create,mq=function(){function e(){}return function(t){if(!vq(t))return{};if(A4)return A4(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Od=mq,gq=Od,yq=ma;function bq(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=gq(e.prototype),n=e.apply(r,t);return yq(n)?n:r}}var Rd=bq,_q=Rd,wq=ci,Eq=1;function xq(e,t,r){var n=t&Eq,a=_q(e);function i(){var o=this&&this!==wq&&this instanceof i?a:e;return o.apply(n?r:this,arguments)}return i}var Sq=xq,Mq=Math.max;function Cq(e,t,r,n){for(var a=-1,i=e.length,o=r.length,l=-1,f=t.length,c=Mq(i-o,0),d=Array(f+c),v=!n;++l<f;)d[l]=t[l];for(;++a<o;)(v||a<i)&&(d[r[a]]=e[a]);for(;c--;)d[l++]=e[a++];return d}var I4=Cq,Tq=Math.max;function Aq(e,t,r,n){for(var a=-1,i=e.length,o=-1,l=r.length,f=-1,c=t.length,d=Tq(i-l,0),v=Array(d+c),m=!n;++a<d;)v[a]=e[a];for(var y=a;++f<c;)v[y+f]=t[f];for(;++o<l;)(m||a<i)&&(v[y+r[o]]=e[a++]);return v}var B4=Aq;function Iq(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var Bq=Iq;function kq(){}var Jg=kq,Nq=Od,Oq=Jg,Rq=4294967295;function Pd(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Rq,this.__views__=[]}Pd.prototype=Nq(Oq.prototype),Pd.prototype.constructor=Pd;var Yg=Pd;function Pq(){}var k4=Pq,N4=M4,Fq=k4,Lq=N4?function(e){return N4.get(e)}:Fq,O4=Lq,Dq={},$q=Dq,R4=$q,Uq=Object.prototype,zq=Uq.hasOwnProperty;function Vq(e){for(var t=e.name+"",r=R4[t],n=zq.call(R4,t)?r.length:0;n--;){var a=r[n],i=a.func;if(i==null||i==e)return a.name}return t}var qq=Vq,Hq=Od,jq=Jg;function Fd(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Fd.prototype=Hq(jq.prototype),Fd.prototype.constructor=Fd;var P4=Fd,Kq=Array.isArray,Ha=Kq;function Wq(e){return e!=null&&typeof e=="object"}var Ao=Wq;function Gq(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Ld=Gq,Zq=Yg,Jq=P4,Yq=Ld;function Xq(e){if(e instanceof Zq)return e.clone();var t=new Jq(e.__wrapped__,e.__chain__);return t.__actions__=Yq(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Qq=Xq,eH=Yg,F4=P4,tH=Jg,rH=Ha,nH=Ao,iH=Qq,aH=Object.prototype,oH=aH.hasOwnProperty;function Dd(e){if(nH(e)&&!rH(e)&&!(e instanceof eH)){if(e instanceof F4)return e;if(oH.call(e,"__wrapped__"))return iH(e)}return new F4(e)}Dd.prototype=tH.prototype,Dd.prototype.constructor=Dd;var sH=Dd,lH=Yg,fH=O4,uH=qq,cH=sH;function hH(e){var t=uH(e),r=cH[t];if(typeof r!="function"||!(t in lH.prototype))return!1;if(e===r)return!0;var n=fH(r);return!!n&&e===n[0]}var dH=hH,pH=T4,vH=E4,mH=vH(pH),L4=mH,gH=/\{\n\/\* \[wrapped with (.+)\] \*/,yH=/,? & /;function bH(e){var t=e.match(gH);return t?t[1].split(yH):[]}var _H=bH,wH=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function EH(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(wH,`{
685
685
  /* [wrapped with `+t+`] */
686
686
  `)}var xH=EH;function SH(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var D4=SH;function MH(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var CH=MH;function TH(e){return e!==e}var AH=TH;function IH(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}var BH=IH,kH=CH,NH=AH,OH=BH;function RH(e,t,r){return t===t?OH(e,t,r):kH(e,NH,r)}var PH=RH,FH=PH;function LH(e,t){var r=e==null?0:e.length;return!!r&&FH(e,t,0)>-1}var Xg=LH,DH=D4,$H=Xg,UH=1,zH=2,VH=8,qH=16,HH=32,jH=64,KH=128,WH=256,GH=512,ZH=[["ary",KH],["bind",UH],["bindKey",zH],["curry",VH],["curryRight",qH],["flip",GH],["partial",HH],["partialRight",jH],["rearg",WH]];function JH(e,t){return DH(ZH,function(r){var n="_."+r[0];t&r[1]&&!$H(e,n)&&e.push(n)}),e.sort()}var YH=JH,XH=_H,QH=xH,ej=Gg,tj=YH;function rj(e,t,r){var n=t+"";return ej(e,QH(n,tj(XH(n),r)))}var $4=rj,nj=dH,ij=L4,aj=$4,oj=1,sj=2,lj=4,fj=8,U4=32,z4=64;function uj(e,t,r,n,a,i,o,l,f,c){var d=t&fj,v=d?o:void 0,m=d?void 0:o,y=d?i:void 0,b=d?void 0:i;t|=d?U4:z4,t&=~(d?z4:U4),t&lj||(t&=~(oj|sj));var S=[e,t,a,y,v,b,m,l,f,c],T=r.apply(void 0,S);return nj(e)&&ij(T,S),T.placeholder=n,aj(T,e,t)}var V4=uj;function cj(e){var t=e;return t.placeholder}var Qg=cj,hj=9007199254740991,dj=/^(?:0|[1-9]\d*)$/;function pj(e,t){var r=typeof e;return t=t??hj,!!t&&(r=="number"||r!="symbol"&&dj.test(e))&&e>-1&&e%1==0&&e<t}var dc=pj,vj=Ld,mj=dc,gj=Math.min;function yj(e,t){for(var r=e.length,n=gj(t.length,r),a=vj(e);n--;){var i=t[n];e[n]=mj(i,r)?a[i]:void 0}return e}var bj=yj,q4="__lodash_placeholder__";function _j(e,t){for(var r=-1,n=e.length,a=0,i=[];++r<n;){var o=e[r];(o===t||o===q4)&&(e[r]=q4,i[a++]=r)}return i}var $d=_j,wj=I4,Ej=B4,xj=Bq,H4=Rd,Sj=V4,Mj=Qg,Cj=bj,Tj=$d,Aj=ci,Ij=1,Bj=2,kj=8,Nj=16,Oj=128,Rj=512;function j4(e,t,r,n,a,i,o,l,f,c){var d=t&Oj,v=t&Ij,m=t&Bj,y=t&(kj|Nj),b=t&Rj,S=m?void 0:H4(e);function T(){for(var C=arguments.length,I=Array(C),B=C;B--;)I[B]=arguments[B];if(y)var N=Mj(T),R=xj(I,N);if(n&&(I=wj(I,n,a,y)),i&&(I=Ej(I,i,o,y)),C-=R,y&&C<c){var P=Tj(I,N);return Sj(e,t,j4,T.placeholder,r,I,P,l,f,c-C)}var D=v?r:this,$=m?D[e]:e;return C=I.length,l?I=Cj(I,l):b&&C>1&&I.reverse(),d&&f<C&&(I.length=f),this&&this!==Aj&&this instanceof T&&($=S||H4($)),$.apply(D,I)}return T}var K4=j4,Pj=jg,Fj=Rd,Lj=K4,Dj=V4,$j=Qg,Uj=$d,zj=ci;function Vj(e,t,r){var n=Fj(e);function a(){for(var i=arguments.length,o=Array(i),l=i,f=$j(a);l--;)o[l]=arguments[l];var c=i<3&&o[0]!==f&&o[i-1]!==f?[]:Uj(o,f);if(i-=c.length,i<r)return Dj(e,t,Lj,a.placeholder,void 0,o,c,void 0,void 0,r-i);var d=this&&this!==zj&&this instanceof a?n:e;return Pj(d,this,o)}return a}var qj=Vj,Hj=jg,jj=Rd,Kj=ci,Wj=1;function Gj(e,t,r,n){var a=t&Wj,i=jj(e);function o(){for(var l=-1,f=arguments.length,c=-1,d=n.length,v=Array(d+f),m=this&&this!==Kj&&this instanceof o?i:e;++c<d;)v[c]=n[c];for(;f--;)v[c++]=arguments[++l];return Hj(m,a?r:this,v)}return o}var Zj=Gj,Jj=I4,Yj=B4,W4=$d,G4="__lodash_placeholder__",e1=1,Xj=2,Qj=4,Z4=8,pc=128,J4=256,eK=Math.min;function tK(e,t){var r=e[1],n=t[1],a=r|n,i=a<(e1|Xj|pc),o=n==pc&&r==Z4||n==pc&&r==J4&&e[7].length<=t[8]||n==(pc|J4)&&t[7].length<=t[8]&&r==Z4;if(!(i||o))return e;n&e1&&(e[2]=t[2],a|=r&e1?0:Qj);var l=t[3];if(l){var f=e[3];e[3]=f?Jj(f,l,t[4]):l,e[4]=f?W4(e[3],G4):t[4]}return l=t[5],l&&(f=e[5],e[5]=f?Yj(f,l,t[6]):l,e[6]=f?W4(e[5],G4):t[6]),l=t[7],l&&(e[7]=l),n&pc&&(e[8]=e[8]==null?t[8]:eK(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}var rK=tK,nK=/\s/;function iK(e){for(var t=e.length;t--&&nK.test(e.charAt(t)););return t}var aK=iK,oK=aK,sK=/^\s+/;function lK(e){return e&&e.slice(0,oK(e)+1).replace(sK,"")}var fK=lK,uK=$f,cK=Ao,hK="[object Symbol]";function dK(e){return typeof e=="symbol"||cK(e)&&uK(e)==hK}var Ud=dK,pK=fK,Y4=ma,vK=Ud,X4=0/0,mK=/^[-+]0x[0-9a-f]+$/i,gK=/^0b[01]+$/i,yK=/^0o[0-7]+$/i,bK=parseInt;function _K(e){if(typeof e=="number")return e;if(vK(e))return X4;if(Y4(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Y4(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pK(e);var r=gK.test(e);return r||yK.test(e)?bK(e.slice(2),r?2:8):mK.test(e)?X4:+e}var wK=_K,EK=wK,Q4=1/0,xK=17976931348623157e292;function SK(e){if(!e)return e===0?e:0;if(e=EK(e),e===Q4||e===-Q4){var t=e<0?-1:1;return t*xK}return e===e?e:0}var MK=SK,CK=MK;function TK(e){var t=CK(e),r=t%1;return t===t?r?t-r:t:0}var t1=TK,AK=T4,IK=Sq,BK=qj,kK=K4,NK=Zj,OK=O4,RK=rK,PK=L4,FK=$4,eS=t1,LK="Expected a function",tS=1,DK=2,r1=8,n1=16,i1=32,rS=64,nS=Math.max;function $K(e,t,r,n,a,i,o,l){var f=t&DK;if(!f&&typeof e!="function")throw new TypeError(LK);var c=n?n.length:0;if(c||(t&=~(i1|rS),n=a=void 0),o=o===void 0?o:nS(eS(o),0),l=l===void 0?l:eS(l),c-=a?a.length:0,t&rS){var d=n,v=a;n=a=void 0}var m=f?void 0:OK(e),y=[e,t,r,n,a,d,v,i,o,l];if(m&&RK(y,m),e=y[0],t=y[1],r=y[2],n=y[3],a=y[4],l=y[9]=y[9]===void 0?f?0:e.length:nS(y[9]-c,0),!l&&t&(r1|n1)&&(t&=~(r1|n1)),!t||t==tS)var b=IK(e,t,r);else t==r1||t==n1?b=BK(e,t,l):(t==i1||t==(tS|i1))&&!a.length?b=NK(e,t,r,n):b=kK.apply(void 0,y);var S=m?AK:PK;return FK(S(b,y),e,t)}var UK=$K,zK=Zg,VK=UK,qK=Qg,HK=$d,jK=64,a1=zK(function(e,t){var r=HK(t,qK(a1));return VK(e,jK,void 0,t,r)});a1.placeholder={};var KK=a1;function WK(){this.__data__=[],this.size=0}var GK=WK;function ZK(e,t){return e===t||e!==e&&t!==t}var zd=ZK,JK=zd;function YK(e,t){for(var r=e.length;r--;)if(JK(e[r][0],t))return r;return-1}var Vd=YK,XK=Vd,QK=Array.prototype,eW=QK.splice;function tW(e){var t=this.__data__,r=XK(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():eW.call(t,r,1),--this.size,!0}var rW=tW,nW=Vd;function iW(e){var t=this.__data__,r=nW(t,e);return r<0?void 0:t[r][1]}var aW=iW,oW=Vd;function sW(e){return oW(this.__data__,e)>-1}var lW=sW,fW=Vd;function uW(e,t){var r=this.__data__,n=fW(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var cW=uW,hW=GK,dW=rW,pW=aW,vW=lW,mW=cW;function Uf(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Uf.prototype.clear=hW,Uf.prototype.delete=dW,Uf.prototype.get=pW,Uf.prototype.has=vW,Uf.prototype.set=mW;var qd=Uf,gW=qd;function yW(){this.__data__=new gW,this.size=0}var bW=yW;function _W(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var wW=_W;function EW(e){return this.__data__.get(e)}var xW=EW;function SW(e){return this.__data__.has(e)}var MW=SW,CW=wl,TW=ci,AW=CW(TW,"Map"),o1=AW,IW=wl,BW=IW(Object,"create"),Hd=BW,iS=Hd;function kW(){this.__data__=iS?iS(null):{},this.size=0}var NW=kW;function OW(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var RW=OW,PW=Hd,FW="__lodash_hash_undefined__",LW=Object.prototype,DW=LW.hasOwnProperty;function $W(e){var t=this.__data__;if(PW){var r=t[e];return r===FW?void 0:r}return DW.call(t,e)?t[e]:void 0}var UW=$W,zW=Hd,VW=Object.prototype,qW=VW.hasOwnProperty;function HW(e){var t=this.__data__;return zW?t[e]!==void 0:qW.call(t,e)}var jW=HW,KW=Hd,WW="__lodash_hash_undefined__";function GW(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=KW&&t===void 0?WW:t,this}var ZW=GW,JW=NW,YW=RW,XW=UW,QW=jW,eG=ZW;function zf(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}zf.prototype.clear=JW,zf.prototype.delete=YW,zf.prototype.get=XW,zf.prototype.has=QW,zf.prototype.set=eG;var tG=zf,aS=tG,rG=qd,nG=o1;function iG(){this.size=0,this.__data__={hash:new aS,map:new(nG||rG),string:new aS}}var aG=iG;function oG(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var sG=oG,lG=sG;function fG(e,t){var r=e.__data__;return lG(t)?r[typeof t=="string"?"string":"hash"]:r.map}var jd=fG,uG=jd;function cG(e){var t=uG(this,e).delete(e);return this.size-=t?1:0,t}var hG=cG,dG=jd;function pG(e){return dG(this,e).get(e)}var vG=pG,mG=jd;function gG(e){return mG(this,e).has(e)}var yG=gG,bG=jd;function _G(e,t){var r=bG(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var wG=_G,EG=aG,xG=hG,SG=vG,MG=yG,CG=wG;function Vf(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Vf.prototype.clear=EG,Vf.prototype.delete=xG,Vf.prototype.get=SG,Vf.prototype.has=MG,Vf.prototype.set=CG;var s1=Vf,TG=qd,AG=o1,IG=s1,BG=200;function kG(e,t){var r=this.__data__;if(r instanceof TG){var n=r.__data__;if(!AG||n.length<BG-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new IG(n)}return r.set(e,t),this.size=r.size,this}var NG=kG,OG=qd,RG=bW,PG=wW,FG=xW,LG=MW,DG=NG;function qf(e){var t=this.__data__=new OG(e);this.size=t.size}qf.prototype.clear=RG,qf.prototype.delete=PG,qf.prototype.get=FG,qf.prototype.has=LG,qf.prototype.set=DG;var oS=qf,sS=_4;function $G(e,t,r){t=="__proto__"&&sS?sS(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var l1=$G,UG=l1,zG=zd;function VG(e,t,r){(r!==void 0&&!zG(e[t],r)||r===void 0&&!(t in e))&&UG(e,t,r)}var lS=VG;function qG(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),l=o.length;l--;){var f=o[e?l:++a];if(r(i[f],f,i)===!1)break}return t}}var HG=qG,jG=HG,KG=jG(),WG=KG,Kd={exports:{}};Kd.exports,function(e,t){var r=ci,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i?r.Buffer:void 0,l=o?o.allocUnsafe:void 0;function f(c,d){if(d)return c.slice();var v=c.length,m=l?l(v):new c.constructor(v);return c.copy(m),m}e.exports=f}(Kd,Kd.exports);var fS=Kd.exports,GG=ci,ZG=GG.Uint8Array,JG=ZG,uS=JG;function YG(e){var t=new e.constructor(e.byteLength);return new uS(t).set(new uS(e)),t}var f1=YG,XG=f1;function QG(e,t){var r=t?XG(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var cS=QG;function eZ(e,t){return function(r){return e(t(r))}}var hS=eZ,tZ=hS,rZ=tZ(Object.getPrototypeOf,Object),u1=rZ,nZ=Object.prototype;function iZ(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||nZ;return e===r}var Wd=iZ,aZ=Od,oZ=u1,sZ=Wd;function lZ(e){return typeof e.constructor=="function"&&!sZ(e)?aZ(oZ(e)):{}}var dS=lZ,fZ=$f,uZ=Ao,cZ="[object Arguments]";function hZ(e){return uZ(e)&&fZ(e)==cZ}var dZ=hZ,pS=dZ,pZ=Ao,vS=Object.prototype,vZ=vS.hasOwnProperty,mZ=vS.propertyIsEnumerable,gZ=pS(function(){return arguments}())?pS:function(e){return pZ(e)&&vZ.call(e,"callee")&&!mZ.call(e,"callee")},Gd=gZ,yZ=9007199254740991;function bZ(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=yZ}var c1=bZ,_Z=Kg,wZ=c1;function EZ(e){return e!=null&&wZ(e.length)&&!_Z(e)}var vc=EZ,xZ=vc,SZ=Ao;function MZ(e){return SZ(e)&&xZ(e)}var mS=MZ,Zd={exports:{}};function CZ(){return!1}var TZ=CZ;Zd.exports,function(e,t){var r=ci,n=TZ,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,l=o?r.Buffer:void 0,f=l?l.isBuffer:void 0,c=f||n;e.exports=c}(Zd,Zd.exports);var h1=Zd.exports,AZ=$f,IZ=u1,BZ=Ao,kZ="[object Object]",NZ=Function.prototype,OZ=Object.prototype,gS=NZ.toString,RZ=OZ.hasOwnProperty,PZ=gS.call(Object);function FZ(e){if(!BZ(e)||AZ(e)!=kZ)return!1;var t=IZ(e);if(t===null)return!0;var r=RZ.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&gS.call(r)==PZ}var yS=FZ,LZ=$f,DZ=c1,$Z=Ao,UZ="[object Arguments]",zZ="[object Array]",VZ="[object Boolean]",qZ="[object Date]",HZ="[object Error]",jZ="[object Function]",KZ="[object Map]",WZ="[object Number]",GZ="[object Object]",ZZ="[object RegExp]",JZ="[object Set]",YZ="[object String]",XZ="[object WeakMap]",QZ="[object ArrayBuffer]",eJ="[object DataView]",tJ="[object Float32Array]",rJ="[object Float64Array]",nJ="[object Int8Array]",iJ="[object Int16Array]",aJ="[object Int32Array]",oJ="[object Uint8Array]",sJ="[object Uint8ClampedArray]",lJ="[object Uint16Array]",fJ="[object Uint32Array]",jr={};jr[tJ]=jr[rJ]=jr[nJ]=jr[iJ]=jr[aJ]=jr[oJ]=jr[sJ]=jr[lJ]=jr[fJ]=!0,jr[UZ]=jr[zZ]=jr[QZ]=jr[VZ]=jr[eJ]=jr[qZ]=jr[HZ]=jr[jZ]=jr[KZ]=jr[WZ]=jr[GZ]=jr[ZZ]=jr[JZ]=jr[YZ]=jr[XZ]=!1;function uJ(e){return $Z(e)&&DZ(e.length)&&!!jr[LZ(e)]}var cJ=uJ;function hJ(e){return function(t){return e(t)}}var Jd=hJ,Yd={exports:{}};Yd.exports,function(e,t){var r=d4,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&r.process,l=function(){try{var f=a&&a.require&&a.require("util").types;return f||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l}(Yd,Yd.exports);var d1=Yd.exports,dJ=cJ,pJ=Jd,bS=d1,_S=bS&&bS.isTypedArray,vJ=_S?pJ(_S):dJ,wS=vJ;function mJ(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var ES=mJ,gJ=l1,yJ=zd,bJ=Object.prototype,_J=bJ.hasOwnProperty;function wJ(e,t,r){var n=e[t];(!(_J.call(e,t)&&yJ(n,r))||r===void 0&&!(t in e))&&gJ(e,t,r)}var Xd=wJ,EJ=Xd,xJ=l1;function SJ(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var l=t[i],f=n?n(r[l],e[l],l,r,e):void 0;f===void 0&&(f=e[l]),a?xJ(r,l,f):EJ(r,l,f)}return r}var El=SJ;function MJ(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var CJ=MJ,TJ=CJ,AJ=Gd,IJ=Ha,BJ=h1,kJ=dc,NJ=wS,OJ=Object.prototype,RJ=OJ.hasOwnProperty;function PJ(e,t){var r=IJ(e),n=!r&&AJ(e),a=!r&&!n&&BJ(e),i=!r&&!n&&!a&&NJ(e),o=r||n||a||i,l=o?TJ(e.length,String):[],f=l.length;for(var c in e)(t||RJ.call(e,c))&&!(o&&(c=="length"||a&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||kJ(c,f)))&&l.push(c);return l}var xS=PJ;function FJ(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var LJ=FJ,DJ=ma,$J=Wd,UJ=LJ,zJ=Object.prototype,VJ=zJ.hasOwnProperty;function qJ(e){if(!DJ(e))return UJ(e);var t=$J(e),r=[];for(var n in e)n=="constructor"&&(t||!VJ.call(e,n))||r.push(n);return r}var HJ=qJ,jJ=xS,KJ=HJ,WJ=vc;function GJ(e){return WJ(e)?jJ(e,!0):KJ(e)}var mc=GJ,ZJ=El,JJ=mc;function YJ(e){return ZJ(e,JJ(e))}var XJ=YJ,SS=lS,QJ=fS,eY=cS,tY=Ld,rY=dS,MS=Gd,CS=Ha,nY=mS,iY=h1,aY=Kg,oY=ma,sY=yS,lY=wS,TS=ES,fY=XJ;function uY(e,t,r,n,a,i,o){var l=TS(e,r),f=TS(t,r),c=o.get(f);if(c){SS(e,r,c);return}var d=i?i(l,f,r+"",e,t,o):void 0,v=d===void 0;if(v){var m=CS(f),y=!m&&iY(f),b=!m&&!y&&lY(f);d=f,m||y||b?CS(l)?d=l:nY(l)?d=tY(l):y?(v=!1,d=QJ(f,!0)):b?(v=!1,d=eY(f,!0)):d=[]:sY(f)||MS(f)?(d=l,MS(l)?d=fY(l):(!oY(l)||aY(l))&&(d=rY(f))):v=!1}v&&(o.set(f,d),a(d,f,n,i,o),o.delete(f)),SS(e,r,d)}var cY=uY,hY=oS,dY=lS,pY=WG,vY=cY,mY=ma,gY=mc,yY=ES;function AS(e,t,r,n,a){e!==t&&pY(t,function(i,o){if(a||(a=new hY),mY(i))vY(e,t,o,r,AS,n,a);else{var l=n?n(yY(e,o),i,o+"",e,t,a):void 0;l===void 0&&(l=i),dY(e,o,l)}},gY)}var bY=AS,_Y=zd,wY=vc,EY=dc,xY=ma;function SY(e,t,r){if(!xY(r))return!1;var n=typeof t;return(n=="number"?wY(r)&&EY(t,r.length):n=="string"&&t in r)?_Y(r[t],e):!1}var IS=SY,MY=Zg,CY=IS;function TY(e){return MY(function(t,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,o=a>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&CY(r[0],r[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++n<a;){var l=r[n];l&&e(t,l,n,i)}return t})}var BS=TY,AY=bY,IY=BS,BY=IY(function(e,t,r){AY(e,t,r)}),kY=BY,NY=KK,OY=kY,p1=function(){var e=[];return typeof Uint8ClampedArray<"u"&&e.push(Uint8ClampedArray),typeof Uint8Array<"u"&&e.push(Uint8Array),typeof Uint16Array<"u"&&e.push(Uint16Array),typeof Uint32Array<"u"&&e.push(Uint32Array),typeof Float32Array<"u"&&e.push(Float32Array),typeof Float64Array<"u"&&e.push(Float64Array),e}();function RY(e){for(var t,r=0;!t&&p1.length>r;r++)e instanceof p1[r]&&(t=p1[r]);return t}function PY(e,t){if(ve.Buffer.isBuffer(t))t=ve.Buffer.from(t);else{var r=RY(t);t=r?new r(t,t.byteOffset,t.byteLength):void 0}return t}var ps=NY(OY,PY),pr={options:{usePureJavaScript:!1}},v1={},FY=v1,kS={};v1.encode=function(e,t,r){if(typeof t!="string")throw new TypeError('"alphabet" must be a string.');if(r!==void 0&&typeof r!="number")throw new TypeError('"maxline" must be a number.');var n="";if(!(e instanceof Uint8Array))n=LY(e,t);else{var a=0,i=t.length,o=t.charAt(0),l=[0];for(a=0;a<e.length;++a){for(var f=0,c=e[a];f<l.length;++f)c+=l[f]<<8,l[f]=c%i,c=c/i|0;for(;c>0;)l.push(c%i),c=c/i|0}for(a=0;e[a]===0&&a<e.length-1;++a)n+=o;for(a=l.length-1;a>=0;--a)n+=t[l[a]]}if(r){var d=new RegExp(".{1,"+r+"}","g");n=n.match(d).join(`\r
687
687
  `)}return n},v1.decode=function(e,t){if(typeof e!="string")throw new TypeError('"input" must be a string.');if(typeof t!="string")throw new TypeError('"alphabet" must be a string.');var r=kS[t];if(!r){r=kS[t]=[];for(var n=0;n<t.length;++n)r[t.charCodeAt(n)]=n}e=e.replace(/\s/g,"");for(var a=t.length,i=t.charAt(0),o=[0],n=0;n<e.length;n++){var l=r[e.charCodeAt(n)];if(l===void 0)return;for(var f=0,c=l;f<o.length;++f)c+=o[f]*a,o[f]=c&255,c>>=8;for(;c>0;)o.push(c&255),c>>=8}for(var d=0;e[d]===i&&d<e.length-1;++d)o.push(0);return typeof ve.Buffer<"u"?ve.Buffer.from(o.reverse()):new Uint8Array(o.reverse())};function LY(e,t){var r=0,n=t.length,a=t.charAt(0),i=[0];for(r=0;r<e.length();++r){for(var o=0,l=e.at(r);o<i.length;++o)l+=i[o]<<8,i[o]=l%n,l=l/n|0;for(;l>0;)i.push(l%n),l=l/n|0}var f="";for(r=0;e.at(r)===0&&r<e.length()-1;++r)f+=a;for(r=i.length-1;r>=0;--r)f+=t[i[r]];return f}var NS=pr,OS=FY,xe=NS.util=NS.util||{};(function(){if(typeof fe<"u"&&fe.nextTick&&!fe.browser){xe.nextTick=fe.nextTick,typeof setImmediate=="function"?xe.setImmediate=setImmediate:xe.setImmediate=xe.nextTick;return}if(typeof setImmediate=="function"){xe.setImmediate=function(){return setImmediate.apply(void 0,arguments)},xe.nextTick=function(o){return setImmediate(o)};return}if(xe.setImmediate=function(o){setTimeout(o,0)},typeof window<"u"&&typeof window.postMessage=="function"){let o=function(l){if(l.source===window&&l.data===e){l.stopPropagation();var f=t.slice();t.length=0,f.forEach(function(c){c()})}};var e="forge.setImmediate",t=[];xe.setImmediate=function(l){t.push(l),t.length===1&&window.postMessage(e,"*")},window.addEventListener("message",o,!0)}if(typeof MutationObserver<"u"){var r=Date.now(),n=!0,a=document.createElement("div"),t=[];new MutationObserver(function(){var l=t.slice();t.length=0,l.forEach(function(f){f()})}).observe(a,{attributes:!0});var i=xe.setImmediate;xe.setImmediate=function(l){Date.now()-r>15?(r=Date.now(),i(l)):(t.push(l),t.length===1&&a.setAttribute("a",n=!n))}}xe.nextTick=xe.setImmediate})(),xe.isNodejs=typeof fe<"u"&&fe.versions&&fe.versions.node,xe.globalScope=function(){return xe.isNodejs?Bt:typeof self>"u"?window:self}(),xe.isArray=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},xe.isArrayBuffer=function(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer},xe.isArrayBufferView=function(e){return e&&xe.isArrayBuffer(e.buffer)&&e.byteLength!==void 0};function gc(e){if(!(e===8||e===16||e===24||e===32))throw new Error("Only 8, 16, 24, or 32 bits supported: "+e)}xe.ByteBuffer=m1;function m1(e){if(this.data="",this.read=0,typeof e=="string")this.data=e;else if(xe.isArrayBuffer(e)||xe.isArrayBufferView(e))if(typeof ve.Buffer<"u"&&e instanceof ve.Buffer)this.data=e.toString("binary");else{var t=new Uint8Array(e);try{this.data=String.fromCharCode.apply(null,t)}catch{for(var r=0;r<t.length;++r)this.putByte(t[r])}}else(e instanceof m1||typeof e=="object"&&typeof e.data=="string"&&typeof e.read=="number")&&(this.data=e.data,this.read=e.read);this._constructedStringLength=0}xe.ByteStringBuffer=m1;var DY=4096;xe.ByteStringBuffer.prototype._optimizeConstructedString=function(e){this._constructedStringLength+=e,this._constructedStringLength>DY&&(this.data.substr(0,1),this._constructedStringLength=0)},xe.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},xe.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0},xe.ByteStringBuffer.prototype.putByte=function(e){return this.putBytes(String.fromCharCode(e))},xe.ByteStringBuffer.prototype.fillWithByte=function(e,t){e=String.fromCharCode(e);for(var r=this.data;t>0;)t&1&&(r+=e),t>>>=1,t>0&&(e+=e);return this.data=r,this._optimizeConstructedString(t),this},xe.ByteStringBuffer.prototype.putBytes=function(e){return this.data+=e,this._optimizeConstructedString(e.length),this},xe.ByteStringBuffer.prototype.putString=function(e){return this.putBytes(xe.encodeUtf8(e))},xe.ByteStringBuffer.prototype.putInt16=function(e){return this.putBytes(String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))},xe.ByteStringBuffer.prototype.putInt24=function(e){return this.putBytes(String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))},xe.ByteStringBuffer.prototype.putInt32=function(e){return this.putBytes(String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))},xe.ByteStringBuffer.prototype.putInt16Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255))},xe.ByteStringBuffer.prototype.putInt24Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255))},xe.ByteStringBuffer.prototype.putInt32Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>24&255))},xe.ByteStringBuffer.prototype.putInt=function(e,t){gc(t);var r="";do t-=8,r+=String.fromCharCode(e>>t&255);while(t>0);return this.putBytes(r)},xe.ByteStringBuffer.prototype.putSignedInt=function(e,t){return e<0&&(e+=2<<t-1),this.putInt(e,t)},xe.ByteStringBuffer.prototype.putBuffer=function(e){return this.putBytes(e.getBytes())},xe.ByteStringBuffer.prototype.getByte=function(){return this.data.charCodeAt(this.read++)},xe.ByteStringBuffer.prototype.getInt16=function(){var e=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);return this.read+=2,e},xe.ByteStringBuffer.prototype.getInt24=function(){var e=this.data.charCodeAt(this.read)<<16^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2);return this.read+=3,e},xe.ByteStringBuffer.prototype.getInt32=function(){var e=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);return this.read+=4,e},xe.ByteStringBuffer.prototype.getInt16Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8;return this.read+=2,e},xe.ByteStringBuffer.prototype.getInt24Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16;return this.read+=3,e},xe.ByteStringBuffer.prototype.getInt32Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16^this.data.charCodeAt(this.read+3)<<24;return this.read+=4,e},xe.ByteStringBuffer.prototype.getInt=function(e){gc(e);var t=0;do t=(t<<8)+this.data.charCodeAt(this.read++),e-=8;while(e>0);return t},xe.ByteStringBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),r=2<<e-2;return t>=r&&(t-=r<<1),t},xe.ByteStringBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):e===0?t="":(t=this.read===0?this.data:this.data.slice(this.read),this.clear()),t},xe.ByteStringBuffer.prototype.bytes=function(e){return typeof e>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},xe.ByteStringBuffer.prototype.at=function(e){return this.data.charCodeAt(this.read+e)},xe.ByteStringBuffer.prototype.setAt=function(e,t){return this.data=this.data.substr(0,this.read+e)+String.fromCharCode(t)+this.data.substr(this.read+e+1),this},xe.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},xe.ByteStringBuffer.prototype.copy=function(){var e=xe.createBuffer(this.data);return e.read=this.read,e},xe.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},xe.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this},xe.ByteStringBuffer.prototype.truncate=function(e){var t=Math.max(0,this.length()-e);return this.data=this.data.substr(this.read,t),this.read=0,this},xe.ByteStringBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.length;++t){var r=this.data.charCodeAt(t);r<16&&(e+="0"),e+=r.toString(16)}return e},xe.ByteStringBuffer.prototype.toString=function(){return xe.decodeUtf8(this.bytes())};function $Y(e,t){t=t||{},this.read=t.readOffset||0,this.growSize=t.growSize||1024;var r=xe.isArrayBuffer(e),n=xe.isArrayBufferView(e);if(r||n){r?this.data=new DataView(e):this.data=new DataView(e.buffer,e.byteOffset,e.byteLength),this.write="writeOffset"in t?t.writeOffset:this.data.byteLength;return}this.data=new DataView(new ArrayBuffer(0)),this.write=0,e!=null&&this.putBytes(e),"writeOffset"in t&&(this.write=t.writeOffset)}xe.DataBuffer=$Y,xe.DataBuffer.prototype.length=function(){return this.write-this.read},xe.DataBuffer.prototype.isEmpty=function(){return this.length()<=0},xe.DataBuffer.prototype.accommodate=function(e,t){if(this.length()>=e)return this;t=Math.max(t||this.growSize,e);var r=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),n=new Uint8Array(this.length()+t);return n.set(r),this.data=new DataView(n.buffer),this},xe.DataBuffer.prototype.putByte=function(e){return this.accommodate(1),this.data.setUint8(this.write++,e),this},xe.DataBuffer.prototype.fillWithByte=function(e,t){this.accommodate(t);for(var r=0;r<t;++r)this.data.setUint8(e);return this},xe.DataBuffer.prototype.putBytes=function(e,t){if(xe.isArrayBufferView(e)){var r=new Uint8Array(e.buffer,e.byteOffset,e.byteLength),n=r.byteLength-r.byteOffset;this.accommodate(n);var a=new Uint8Array(this.data.buffer,this.write);return a.set(r),this.write+=n,this}if(xe.isArrayBuffer(e)){var r=new Uint8Array(e);this.accommodate(r.byteLength);var a=new Uint8Array(this.data.buffer);return a.set(r,this.write),this.write+=r.byteLength,this}if(e instanceof xe.DataBuffer||typeof e=="object"&&typeof e.read=="number"&&typeof e.write=="number"&&xe.isArrayBufferView(e.data)){var r=new Uint8Array(e.data.byteLength,e.read,e.length());this.accommodate(r.byteLength);var a=new Uint8Array(e.data.byteLength,this.write);return a.set(r),this.write+=r.byteLength,this}if(e instanceof xe.ByteStringBuffer&&(e=e.data,t="binary"),t=t||"binary",typeof e=="string"){var i;if(t==="hex")return this.accommodate(Math.ceil(e.length/2)),i=new Uint8Array(this.data.buffer,this.write),this.write+=xe.binary.hex.decode(e,i,this.write),this;if(t==="base64")return this.accommodate(Math.ceil(e.length/4)*3),i=new Uint8Array(this.data.buffer,this.write),this.write+=xe.binary.base64.decode(e,i,this.write),this;if(t==="utf8"&&(e=xe.encodeUtf8(e),t="binary"),t==="binary"||t==="raw")return this.accommodate(e.length),i=new Uint8Array(this.data.buffer,this.write),this.write+=xe.binary.raw.decode(i),this;if(t==="utf16")return this.accommodate(e.length*2),i=new Uint16Array(this.data.buffer,this.write),this.write+=xe.text.utf16.encode(i),this;throw new Error("Invalid encoding: "+t)}throw Error("Invalid parameter: "+e)},xe.DataBuffer.prototype.putBuffer=function(e){return this.putBytes(e),e.clear(),this},xe.DataBuffer.prototype.putString=function(e){return this.putBytes(e,"utf16")},xe.DataBuffer.prototype.putInt16=function(e){return this.accommodate(2),this.data.setInt16(this.write,e),this.write+=2,this},xe.DataBuffer.prototype.putInt24=function(e){return this.accommodate(3),this.data.setInt16(this.write,e>>8&65535),this.data.setInt8(this.write,e>>16&255),this.write+=3,this},xe.DataBuffer.prototype.putInt32=function(e){return this.accommodate(4),this.data.setInt32(this.write,e),this.write+=4,this},xe.DataBuffer.prototype.putInt16Le=function(e){return this.accommodate(2),this.data.setInt16(this.write,e,!0),this.write+=2,this},xe.DataBuffer.prototype.putInt24Le=function(e){return this.accommodate(3),this.data.setInt8(this.write,e>>16&255),this.data.setInt16(this.write,e>>8&65535,!0),this.write+=3,this},xe.DataBuffer.prototype.putInt32Le=function(e){return this.accommodate(4),this.data.setInt32(this.write,e,!0),this.write+=4,this},xe.DataBuffer.prototype.putInt=function(e,t){gc(t),this.accommodate(t/8);do t-=8,this.data.setInt8(this.write++,e>>t&255);while(t>0);return this},xe.DataBuffer.prototype.putSignedInt=function(e,t){return gc(t),this.accommodate(t/8),e<0&&(e+=2<<t-1),this.putInt(e,t)},xe.DataBuffer.prototype.getByte=function(){return this.data.getInt8(this.read++)},xe.DataBuffer.prototype.getInt16=function(){var e=this.data.getInt16(this.read);return this.read+=2,e},xe.DataBuffer.prototype.getInt24=function(){var e=this.data.getInt16(this.read)<<8^this.data.getInt8(this.read+2);return this.read+=3,e},xe.DataBuffer.prototype.getInt32=function(){var e=this.data.getInt32(this.read);return this.read+=4,e},xe.DataBuffer.prototype.getInt16Le=function(){var e=this.data.getInt16(this.read,!0);return this.read+=2,e},xe.DataBuffer.prototype.getInt24Le=function(){var e=this.data.getInt8(this.read)^this.data.getInt16(this.read+1,!0)<<8;return this.read+=3,e},xe.DataBuffer.prototype.getInt32Le=function(){var e=this.data.getInt32(this.read,!0);return this.read+=4,e},xe.DataBuffer.prototype.getInt=function(e){gc(e);var t=0;do t=(t<<8)+this.data.getInt8(this.read++),e-=8;while(e>0);return t},xe.DataBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),r=2<<e-2;return t>=r&&(t-=r<<1),t},xe.DataBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):e===0?t="":(t=this.read===0?this.data:this.data.slice(this.read),this.clear()),t},xe.DataBuffer.prototype.bytes=function(e){return typeof e>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},xe.DataBuffer.prototype.at=function(e){return this.data.getUint8(this.read+e)},xe.DataBuffer.prototype.setAt=function(e,t){return this.data.setUint8(e,t),this},xe.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)},xe.DataBuffer.prototype.copy=function(){return new xe.DataBuffer(this)},xe.DataBuffer.prototype.compact=function(){if(this.read>0){var e=new Uint8Array(this.data.buffer,this.read),t=new Uint8Array(e.byteLength);t.set(e),this.data=new DataView(t),this.write-=this.read,this.read=0}return this},xe.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this},xe.DataBuffer.prototype.truncate=function(e){return this.write=Math.max(0,this.length()-e),this.read=Math.min(this.read,this.write),this},xe.DataBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.byteLength;++t){var r=this.data.getUint8(t);r<16&&(e+="0"),e+=r.toString(16)}return e},xe.DataBuffer.prototype.toString=function(e){var t=new Uint8Array(this.data,this.read,this.length());if(e=e||"utf8",e==="binary"||e==="raw")return xe.binary.raw.encode(t);if(e==="hex")return xe.binary.hex.encode(t);if(e==="base64")return xe.binary.base64.encode(t);if(e==="utf8")return xe.text.utf8.decode(t);if(e==="utf16")return xe.text.utf16.decode(t);throw new Error("Invalid encoding: "+e)},xe.createBuffer=function(e,t){return t=t||"raw",e!==void 0&&t==="utf8"&&(e=xe.encodeUtf8(e)),new xe.ByteBuffer(e)},xe.fillString=function(e,t){for(var r="";t>0;)t&1&&(r+=e),t>>>=1,t>0&&(e+=e);return r},xe.xorBytes=function(e,t,r){for(var n="",a="",i="",o=0,l=0;r>0;--r,++o)a=e.charCodeAt(o)^t.charCodeAt(o),l>=10&&(n+=i,i="",l=0),i+=String.fromCharCode(a),++l;return n+=i,n},xe.hexToBytes=function(e){var t="",r=0;for(e.length&!0&&(r=1,t+=String.fromCharCode(parseInt(e[0],16)));r<e.length;r+=2)t+=String.fromCharCode(parseInt(e.substr(r,2),16));return t},xe.bytesToHex=function(e){return xe.createBuffer(e).toHex()},xe.int32ToBytes=function(e){return String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255)};var vs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ms=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],RS="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";xe.encode64=function(e,t){for(var r="",n="",a,i,o,l=0;l<e.length;)a=e.charCodeAt(l++),i=e.charCodeAt(l++),o=e.charCodeAt(l++),r+=vs.charAt(a>>2),r+=vs.charAt((a&3)<<4|i>>4),isNaN(i)?r+="==":(r+=vs.charAt((i&15)<<2|o>>6),r+=isNaN(o)?"=":vs.charAt(o&63)),t&&r.length>t&&(n+=r.substr(0,t)+`\r
@@ -818,11 +818,11 @@ use chrome, FireFox or Internet Explorer 11`)}var t=jt(),r=Kf(),n=t.Buffer,a=t.k
818
818
  `+o+p.join(`,
819
819
  `+o)+`
820
820
  `+g+"}":"{"+p.join(",")+"}",o=g,s}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+N(this.getUTCMonth()+1)+"-"+N(this.getUTCDate())+"T"+N(this.getUTCHours())+":"+N(this.getUTCMinutes())+":"+N(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=R,Number.prototype.toJSON=R,String.prototype.toJSON=R),typeof i.stringify!="function"&&(f={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},i.stringify=function($,U,K){var M;if(o="",l="",typeof K=="number")for(M=0;M<K;M+=1)l+=" ";else typeof K=="string"&&(l=K);if(c=U,U&&typeof U!="function"&&(typeof U!="object"||typeof U.length!="number"))throw new Error("JSON.stringify");return D("",{"":$})}),typeof i.parse!="function"&&(i.parse=(S={"\\":"\\",'"':'"',"/":"/",t:" ",n:`
821
- `,r:"\r",f:"\f",b:"\b"},T={go:function(){d="ok"},firstokey:function(){y=b,d="colon"},okey:function(){y=b,d="colon"},ovalue:function(){d="ocomma"},firstavalue:function(){d="acomma"},avalue:function(){d="acomma"}},C={go:function(){d="ok"},ovalue:function(){d="ocomma"},firstavalue:function(){d="acomma"},avalue:function(){d="acomma"}},I={"{":{go:function(){v.push({state:"ok"}),m={},d="firstokey"},ovalue:function(){v.push({container:m,state:"ocomma",key:y}),m={},d="firstokey"},firstavalue:function(){v.push({container:m,state:"acomma"}),m={},d="firstokey"},avalue:function(){v.push({container:m,state:"acomma"}),m={},d="firstokey"}},"}":{firstokey:function(){var $=v.pop();b=m,m=$.container,y=$.key,d=$.state},ocomma:function(){var $=v.pop();m[y]=b,b=m,m=$.container,y=$.key,d=$.state}},"[":{go:function(){v.push({state:"ok"}),m=[],d="firstavalue"},ovalue:function(){v.push({container:m,state:"ocomma",key:y}),m=[],d="firstavalue"},firstavalue:function(){v.push({container:m,state:"acomma"}),m=[],d="firstavalue"},avalue:function(){v.push({container:m,state:"acomma"}),m=[],d="firstavalue"}},"]":{firstavalue:function(){var $=v.pop();b=m,m=$.container,y=$.key,d=$.state},acomma:function(){var $=v.pop();m.push(b),b=m,m=$.container,y=$.key,d=$.state}},":":{colon:function(){if(Object.hasOwnProperty.call(m,y))throw new SyntaxError("Duplicate key '"+y+'"');d="ovalue"}},",":{ocomma:function(){m[y]=b,d="okey"},acomma:function(){m.push(b),d="avalue"}},true:{go:function(){b=!0,d="ok"},ovalue:function(){b=!0,d="ocomma"},firstavalue:function(){b=!0,d="acomma"},avalue:function(){b=!0,d="acomma"}},false:{go:function(){b=!1,d="ok"},ovalue:function(){b=!1,d="ocomma"},firstavalue:function(){b=!1,d="acomma"},avalue:function(){b=!1,d="acomma"}},null:{go:function(){b=null,d="ok"},ovalue:function(){b=null,d="ocomma"},firstavalue:function(){b=null,d="acomma"},avalue:function(){b=null,d="acomma"}}},function($,U){var K,M,s=/^[\u0020\t\n\r]*(?:([,:\[\]{}]|true|false|null)|(-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)|"((?:[^\r\n\t\\\"]|\\(?:["\\\/trnfb]|u[0-9a-fA-F]{4}))*)")/;d="go",v=[];try{for(;K=s.exec($);)K[1]?I[K[1]][d]():K[2]?(b=+K[2],C[d]()):(M=K[3],b=M.replace(/\\(?:u(.{4})|([^u]))/g,function(h,p,g){return p?String.fromCharCode(parseInt(p,16)):S[g]}),T[d]()),$=$.slice(K[0].length)}catch(h){d=h}if(d!=="ok"||/[^\u0020\t\n\r]/.test($))throw d instanceof SyntaxError?d:new SyntaxError("JSON");return typeof U=="function"?function h(p,g){var _,w,A=p[g];if(A&&typeof A=="object")for(_ in b)Object.prototype.hasOwnProperty.call(A,_)&&((w=h(A,_))!==void 0?A[_]=w:delete A[_]);return U.call(p,g,A)}({"":b},""):b}))}}},n={},function a(i){var o=n[i];if(o!==void 0)return o.exports;var l=n[i]={exports:{}};return r[i].call(l.exports,l,l.exports,a),l.exports}(409);var r,n})})(zB);var Fpe=zB.exports;const Lpe=cd(Fpe);function Fs(e,t){const r=Object.create(null),n=e.split(",");for(let a=0;a<n.length;a++)r[n[a]]=!0;return t?a=>!!r[a.toLowerCase()]:a=>!!r[a]}const wr=fe.env.NODE_ENV!=="production"?Object.freeze({}):{},Iu=fe.env.NODE_ENV!=="production"?Object.freeze([]):[],Qr=()=>{},VB=()=>!1,Dpe=/^on[^a-z]/,oh=e=>Dpe.test(e),Wp=e=>e.startsWith("onUpdate:"),Mr=Object.assign,bw=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},$pe=Object.prototype.hasOwnProperty,Wt=(e,t)=>$pe.call(e,t),ot=Array.isArray,Ql=e=>lh(e)==="[object Map]",Gp=e=>lh(e)==="[object Set]",qB=e=>lh(e)==="[object Date]",vt=e=>typeof e=="function",It=e=>typeof e=="string",sh=e=>typeof e=="symbol",At=e=>e!==null&&typeof e=="object",_w=e=>At(e)&&vt(e.then)&&vt(e.catch),HB=Object.prototype.toString,lh=e=>HB.call(e),ww=e=>lh(e).slice(8,-1),Ew=e=>lh(e)==="[object Object]",xw=e=>It(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Zp=Fs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Upe=Fs("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Jp=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},zpe=/-(\w)/g,xa=Jp(e=>e.replace(zpe,(t,r)=>r?r.toUpperCase():"")),Vpe=/\B([A-Z])/g,fo=Jp(e=>e.replace(Vpe,"-$1").toLowerCase()),ef=Jp(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ho=Jp(e=>e?`on${ef(e)}`:""),fh=(e,t)=>!Object.is(e,t),Bu=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},Yp=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Sw=e=>{const t=parseFloat(e);return isNaN(t)?e:t},qpe=e=>{const t=It(e)?Number(e):NaN;return isNaN(t)?e:t};let jB;const Xp=()=>jB||(jB=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof wn<"u"?wn:{});function en(e){if(ot(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],a=It(n)?Wpe(n):en(n);if(a)for(const i in a)t[i]=a[i]}return t}else{if(It(e))return e;if(At(e))return e}}const Hpe=/;(?![^(]*\))/g,jpe=/:([^]+)/,Kpe=/\/\*[^]*?\*\//g;function Wpe(e){const t={};return e.replace(Kpe,"").split(Hpe).forEach(r=>{if(r){const n=r.split(jpe);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ce(e){let t="";if(It(e))t=e;else if(ot(e))for(let r=0;r<e.length;r++){const n=Ce(e[r]);n&&(t+=n+" ")}else if(At(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const Gpe="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",Zpe="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,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,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",Jpe=Fs(Gpe),Ype=Fs(Zpe),Xpe=Fs("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function KB(e){return!!e||e===""}function Qpe(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=Qp(e[n],t[n]);return r}function Qp(e,t){if(e===t)return!0;let r=qB(e),n=qB(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=sh(e),n=sh(t),r||n)return e===t;if(r=ot(e),n=ot(t),r||n)return r&&n?Qpe(e,t):!1;if(r=At(e),n=At(t),r||n){if(!r||!n)return!1;const a=Object.keys(e).length,i=Object.keys(t).length;if(a!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),f=t.hasOwnProperty(o);if(l&&!f||!l&&f||!Qp(e[o],t[o]))return!1}}return String(e)===String(t)}function WB(e,t){return e.findIndex(r=>Qp(r,t))}const lt=e=>It(e)?e:e==null?"":ot(e)||At(e)&&(e.toString===HB||!vt(e.toString))?JSON.stringify(e,GB,2):String(e),GB=(e,t)=>t&&t.__v_isRef?GB(e,t.value):Ql(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,a])=>(r[`${n} =>`]=a,r),{})}:Gp(t)?{[`Set(${t.size})`]:[...t.values()]}:At(t)&&!ot(t)&&!Ew(t)?String(t):t;function ev(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Ti;class ZB{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ti,!t&&Ti&&(this.index=(Ti.scopes||(Ti.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=Ti;try{return Ti=this,t()}finally{Ti=r}}else fe.env.NODE_ENV!=="production"&&ev("cannot run an inactive effect scope.")}on(){Ti=this}off(){Ti=this.parent}stop(t){if(this._active){let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.scopes)for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!t){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0,this._active=!1}}}function eve(e){return new ZB(e)}function tve(e,t=Ti){t&&t.active&&t.effects.push(e)}function JB(){return Ti}function rve(e){Ti?Ti.cleanups.push(e):fe.env.NODE_ENV!=="production"&&ev("onScopeDispose() is called when there is no active effect scope to be associated with.")}const uh=e=>{const t=new Set(e);return t.w=0,t.n=0,t},YB=e=>(e.w&Ls)>0,XB=e=>(e.n&Ls)>0,nve=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ls},ive=e=>{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n<t.length;n++){const a=t[n];YB(a)&&!XB(a)?a.delete(e):t[r++]=a,a.w&=~Ls,a.n&=~Ls}t.length=r}},tv=new WeakMap;let ch=0,Ls=1;const Mw=30;let ni;const tf=Symbol(fe.env.NODE_ENV!=="production"?"iterate":""),Cw=Symbol(fe.env.NODE_ENV!=="production"?"Map key iterate":"");class Tw{constructor(t,r=null,n){this.fn=t,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,tve(this,n)}run(){if(!this.active)return this.fn();let t=ni,r=Ds;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=ni,ni=this,Ds=!0,Ls=1<<++ch,ch<=Mw?nve(this):QB(this),this.fn()}finally{ch<=Mw&&ive(this),Ls=1<<--ch,ni=this.parent,Ds=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ni===this?this.deferStop=!0:this.active&&(QB(this),this.onStop&&this.onStop(),this.active=!1)}}function QB(e){const{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}let Ds=!0;const e9=[];function rf(){e9.push(Ds),Ds=!1}function nf(){const e=e9.pop();Ds=e===void 0?!0:e}function kn(e,t,r){if(Ds&&ni){let n=tv.get(e);n||tv.set(e,n=new Map);let a=n.get(r);a||n.set(r,a=uh());const i=fe.env.NODE_ENV!=="production"?{effect:ni,target:e,type:t,key:r}:void 0;Aw(a,i)}}function Aw(e,t){let r=!1;ch<=Mw?XB(e)||(e.n|=Ls,r=!YB(e)):r=!e.has(ni),r&&(e.add(ni),ni.deps.push(e),fe.env.NODE_ENV!=="production"&&ni.onTrack&&ni.onTrack(Mr({effect:ni},t)))}function uo(e,t,r,n,a,i){const o=tv.get(e);if(!o)return;let l=[];if(t==="clear")l=[...o.values()];else if(r==="length"&&ot(e)){const c=Number(n);o.forEach((d,v)=>{(v==="length"||v>=c)&&l.push(d)})}else switch(r!==void 0&&l.push(o.get(r)),t){case"add":ot(e)?xw(r)&&l.push(o.get("length")):(l.push(o.get(tf)),Ql(e)&&l.push(o.get(Cw)));break;case"delete":ot(e)||(l.push(o.get(tf)),Ql(e)&&l.push(o.get(Cw)));break;case"set":Ql(e)&&l.push(o.get(tf));break}const f=fe.env.NODE_ENV!=="production"?{target:e,type:t,key:r,newValue:n,oldValue:a,oldTarget:i}:void 0;if(l.length===1)l[0]&&(fe.env.NODE_ENV!=="production"?ku(l[0],f):ku(l[0]));else{const c=[];for(const d of l)d&&c.push(...d);fe.env.NODE_ENV!=="production"?ku(uh(c),f):ku(uh(c))}}function ku(e,t){const r=ot(e)?e:[...e];for(const n of r)n.computed&&t9(n,t);for(const n of r)n.computed||t9(n,t)}function t9(e,t){(e!==ni||e.allowRecurse)&&(fe.env.NODE_ENV!=="production"&&e.onTrigger&&e.onTrigger(Mr({effect:e},t)),e.scheduler?e.scheduler():e.run())}function ave(e,t){var r;return(r=tv.get(e))==null?void 0:r.get(t)}const ove=Fs("__proto__,__v_isRef,__isVue"),r9=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(sh)),sve=rv(),lve=rv(!1,!0),fve=rv(!0),uve=rv(!0,!0),n9=cve();function cve(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=Nt(this);for(let i=0,o=this.length;i<o;i++)kn(n,"get",i+"");const a=n[t](...r);return a===-1||a===!1?n[t](...r.map(Nt)):a}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){rf();const n=Nt(this)[t].apply(this,r);return nf(),n}}),e}function hve(e){const t=Nt(this);return kn(t,"has",e),t.hasOwnProperty(e)}function rv(e=!1,t=!1){return function(n,a,i){if(a==="__v_isReactive")return!e;if(a==="__v_isReadonly")return e;if(a==="__v_isShallow")return t;if(a==="__v_raw"&&i===(e?t?v9:p9:t?d9:h9).get(n))return n;const o=ot(n);if(!e){if(o&&Wt(n9,a))return Reflect.get(n9,a,i);if(a==="hasOwnProperty")return hve}const l=Reflect.get(n,a,i);return(sh(a)?r9.has(a):ove(a))||(e||kn(n,"get",a),t)?l:gr(l)?o&&xw(a)?l:l.value:At(l)?e?uv(l):vn(l):l}}const dve=i9(),pve=i9(!0);function i9(e=!1){return function(r,n,a,i){let o=r[n];if(Us(o)&&gr(o)&&!gr(a))return!1;if(!e&&(!hv(a)&&!Us(a)&&(o=Nt(o),a=Nt(a)),!ot(r)&&gr(o)&&!gr(a)))return o.value=a,!0;const l=ot(r)&&xw(n)?Number(n)<r.length:Wt(r,n),f=Reflect.set(r,n,a,i);return r===Nt(i)&&(l?fh(a,o)&&uo(r,"set",n,a,o):uo(r,"add",n,a)),f}}function vve(e,t){const r=Wt(e,t),n=e[t],a=Reflect.deleteProperty(e,t);return a&&r&&uo(e,"delete",t,void 0,n),a}function mve(e,t){const r=Reflect.has(e,t);return(!sh(t)||!r9.has(t))&&kn(e,"has",t),r}function gve(e){return kn(e,"iterate",ot(e)?"length":tf),Reflect.ownKeys(e)}const a9={get:sve,set:dve,deleteProperty:vve,has:mve,ownKeys:gve},o9={get:fve,set(e,t){return fe.env.NODE_ENV!=="production"&&ev(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return fe.env.NODE_ENV!=="production"&&ev(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},yve=Mr({},a9,{get:lve,set:pve}),bve=Mr({},o9,{get:uve}),Iw=e=>e,nv=e=>Reflect.getPrototypeOf(e);function iv(e,t,r=!1,n=!1){e=e.__v_raw;const a=Nt(e),i=Nt(t);r||(t!==i&&kn(a,"get",t),kn(a,"get",i));const{has:o}=nv(a),l=n?Iw:r?Bw:dh;if(o.call(a,t))return l(e.get(t));if(o.call(a,i))return l(e.get(i));e!==a&&e.get(t)}function av(e,t=!1){const r=this.__v_raw,n=Nt(r),a=Nt(e);return t||(e!==a&&kn(n,"has",e),kn(n,"has",a)),e===a?r.has(e):r.has(e)||r.has(a)}function ov(e,t=!1){return e=e.__v_raw,!t&&kn(Nt(e),"iterate",tf),Reflect.get(e,"size",e)}function s9(e){e=Nt(e);const t=Nt(this);return nv(t).has.call(t,e)||(t.add(e),uo(t,"add",e,e)),this}function l9(e,t){t=Nt(t);const r=Nt(this),{has:n,get:a}=nv(r);let i=n.call(r,e);i?fe.env.NODE_ENV!=="production"&&c9(r,n,e):(e=Nt(e),i=n.call(r,e));const o=a.call(r,e);return r.set(e,t),i?fh(t,o)&&uo(r,"set",e,t,o):uo(r,"add",e,t),this}function f9(e){const t=Nt(this),{has:r,get:n}=nv(t);let a=r.call(t,e);a?fe.env.NODE_ENV!=="production"&&c9(t,r,e):(e=Nt(e),a=r.call(t,e));const i=n?n.call(t,e):void 0,o=t.delete(e);return a&&uo(t,"delete",e,void 0,i),o}function u9(){const e=Nt(this),t=e.size!==0,r=fe.env.NODE_ENV!=="production"?Ql(e)?new Map(e):new Set(e):void 0,n=e.clear();return t&&uo(e,"clear",void 0,void 0,r),n}function sv(e,t){return function(n,a){const i=this,o=i.__v_raw,l=Nt(o),f=t?Iw:e?Bw:dh;return!e&&kn(l,"iterate",tf),o.forEach((c,d)=>n.call(a,f(c),f(d),i))}}function lv(e,t,r){return function(...n){const a=this.__v_raw,i=Nt(a),o=Ql(i),l=e==="entries"||e===Symbol.iterator&&o,f=e==="keys"&&o,c=a[e](...n),d=r?Iw:t?Bw:dh;return!t&&kn(i,"iterate",f?Cw:tf),{next(){const{value:v,done:m}=c.next();return m?{value:v,done:m}:{value:l?[d(v[0]),d(v[1])]:d(v),done:m}},[Symbol.iterator](){return this}}}}function $s(e){return function(...t){if(fe.env.NODE_ENV!=="production"){const r=t[0]?`on key "${t[0]}" `:"";console.warn(`${ef(e)} operation ${r}failed: target is readonly.`,Nt(this))}return e==="delete"?!1:this}}function _ve(){const e={get(i){return iv(this,i)},get size(){return ov(this)},has:av,add:s9,set:l9,delete:f9,clear:u9,forEach:sv(!1,!1)},t={get(i){return iv(this,i,!1,!0)},get size(){return ov(this)},has:av,add:s9,set:l9,delete:f9,clear:u9,forEach:sv(!1,!0)},r={get(i){return iv(this,i,!0)},get size(){return ov(this,!0)},has(i){return av.call(this,i,!0)},add:$s("add"),set:$s("set"),delete:$s("delete"),clear:$s("clear"),forEach:sv(!0,!1)},n={get(i){return iv(this,i,!0,!0)},get size(){return ov(this,!0)},has(i){return av.call(this,i,!0)},add:$s("add"),set:$s("set"),delete:$s("delete"),clear:$s("clear"),forEach:sv(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=lv(i,!1,!1),r[i]=lv(i,!0,!1),t[i]=lv(i,!1,!0),n[i]=lv(i,!0,!0)}),[e,r,t,n]}const[wve,Eve,xve,Sve]=_ve();function fv(e,t){const r=t?e?Sve:xve:e?Eve:wve;return(n,a,i)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?n:Reflect.get(Wt(r,a)&&a in n?r:n,a,i)}const Mve={get:fv(!1,!1)},Cve={get:fv(!1,!0)},Tve={get:fv(!0,!1)},Ave={get:fv(!0,!0)};function c9(e,t,r){const n=Nt(r);if(n!==r&&t.call(e,n)){const a=ww(e);console.warn(`Reactive ${a} contains both the raw and reactive versions of the same object${a==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const h9=new WeakMap,d9=new WeakMap,p9=new WeakMap,v9=new WeakMap;function Ive(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Bve(e){return e.__v_skip||!Object.isExtensible(e)?0:Ive(ww(e))}function vn(e){return Us(e)?e:cv(e,!1,a9,Mve,h9)}function kve(e){return cv(e,!1,yve,Cve,d9)}function uv(e){return cv(e,!0,o9,Tve,p9)}function hh(e){return cv(e,!0,bve,Ave,v9)}function cv(e,t,r,n,a){if(!At(e))return fe.env.NODE_ENV!=="production"&&console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=a.get(e);if(i)return i;const o=Bve(e);if(o===0)return e;const l=new Proxy(e,o===2?n:r);return a.set(e,l),l}function af(e){return Us(e)?af(e.__v_raw):!!(e&&e.__v_isReactive)}function Us(e){return!!(e&&e.__v_isReadonly)}function hv(e){return!!(e&&e.__v_isShallow)}function dv(e){return af(e)||Us(e)}function Nt(e){const t=e&&e.__v_raw;return t?Nt(t):e}function m9(e){return Yp(e,"__v_skip",!0),e}const dh=e=>At(e)?vn(e):e,Bw=e=>At(e)?uv(e):e;function g9(e){Ds&&ni&&(e=Nt(e),fe.env.NODE_ENV!=="production"?Aw(e.dep||(e.dep=uh()),{target:e,type:"get",key:"value"}):Aw(e.dep||(e.dep=uh())))}function y9(e,t){e=Nt(e);const r=e.dep;r&&(fe.env.NODE_ENV!=="production"?ku(r,{target:e,type:"set",key:"value",newValue:t}):ku(r))}function gr(e){return!!(e&&e.__v_isRef===!0)}function Oe(e){return b9(e,!1)}function Nu(e){return b9(e,!0)}function b9(e,t){return gr(e)?e:new Nve(e,t)}class Nve{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:Nt(t),this._value=r?t:dh(t)}get value(){return g9(this),this._value}set value(t){const r=this.__v_isShallow||hv(t)||Us(t);t=r?t:Nt(t),fh(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:dh(t),y9(this,t))}}function J(e){return gr(e)?e.value:e}const Ove={get:(e,t,r)=>J(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const a=e[t];return gr(a)&&!gr(r)?(a.value=r,!0):Reflect.set(e,t,r,n)}};function _9(e){return af(e)?e:new Proxy(e,Ove)}function zs(e){fe.env.NODE_ENV!=="production"&&!dv(e)&&console.warn("toRefs() expects a reactive object but received a plain one.");const t=ot(e)?new Array(e.length):{};for(const r in e)t[r]=w9(e,r);return t}class Rve{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return ave(Nt(this._object),this._key)}}class Pve{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function ia(e,t,r){return gr(e)?e:vt(e)?new Pve(e):At(e)&&arguments.length>1?w9(e,t,r):Oe(e)}function w9(e,t,r){const n=e[t];return gr(n)?n:new Rve(e,t,r)}class Fve{constructor(t,r,n,a){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Tw(t,()=>{this._dirty||(this._dirty=!0,y9(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=n}get value(){const t=Nt(this);return g9(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Lve(e,t,r=!1){let n,a;const i=vt(e);i?(n=e,a=fe.env.NODE_ENV!=="production"?()=>{console.warn("Write operation failed: computed value is readonly")}:Qr):(n=e.get,a=e.set);const o=new Fve(n,a,i||!a,r);return fe.env.NODE_ENV!=="production"&&t&&!r&&(o.effect.onTrack=t.onTrack,o.effect.onTrigger=t.onTrigger),o}const of=[];function pv(e){of.push(e)}function vv(){of.pop()}function et(e,...t){if(fe.env.NODE_ENV==="production")return;rf();const r=of.length?of[of.length-1].component:null,n=r&&r.appContext.config.warnHandler,a=Dve();if(n)jo(n,r,11,[e+t.join(""),r&&r.proxy,a.map(({vnode:i})=>`at <${Ov(r,i.type)}>`).join(`
821
+ `,r:"\r",f:"\f",b:"\b"},T={go:function(){d="ok"},firstokey:function(){y=b,d="colon"},okey:function(){y=b,d="colon"},ovalue:function(){d="ocomma"},firstavalue:function(){d="acomma"},avalue:function(){d="acomma"}},C={go:function(){d="ok"},ovalue:function(){d="ocomma"},firstavalue:function(){d="acomma"},avalue:function(){d="acomma"}},I={"{":{go:function(){v.push({state:"ok"}),m={},d="firstokey"},ovalue:function(){v.push({container:m,state:"ocomma",key:y}),m={},d="firstokey"},firstavalue:function(){v.push({container:m,state:"acomma"}),m={},d="firstokey"},avalue:function(){v.push({container:m,state:"acomma"}),m={},d="firstokey"}},"}":{firstokey:function(){var $=v.pop();b=m,m=$.container,y=$.key,d=$.state},ocomma:function(){var $=v.pop();m[y]=b,b=m,m=$.container,y=$.key,d=$.state}},"[":{go:function(){v.push({state:"ok"}),m=[],d="firstavalue"},ovalue:function(){v.push({container:m,state:"ocomma",key:y}),m=[],d="firstavalue"},firstavalue:function(){v.push({container:m,state:"acomma"}),m=[],d="firstavalue"},avalue:function(){v.push({container:m,state:"acomma"}),m=[],d="firstavalue"}},"]":{firstavalue:function(){var $=v.pop();b=m,m=$.container,y=$.key,d=$.state},acomma:function(){var $=v.pop();m.push(b),b=m,m=$.container,y=$.key,d=$.state}},":":{colon:function(){if(Object.hasOwnProperty.call(m,y))throw new SyntaxError("Duplicate key '"+y+'"');d="ovalue"}},",":{ocomma:function(){m[y]=b,d="okey"},acomma:function(){m.push(b),d="avalue"}},true:{go:function(){b=!0,d="ok"},ovalue:function(){b=!0,d="ocomma"},firstavalue:function(){b=!0,d="acomma"},avalue:function(){b=!0,d="acomma"}},false:{go:function(){b=!1,d="ok"},ovalue:function(){b=!1,d="ocomma"},firstavalue:function(){b=!1,d="acomma"},avalue:function(){b=!1,d="acomma"}},null:{go:function(){b=null,d="ok"},ovalue:function(){b=null,d="ocomma"},firstavalue:function(){b=null,d="acomma"},avalue:function(){b=null,d="acomma"}}},function($,U){var K,M,s=/^[\u0020\t\n\r]*(?:([,:\[\]{}]|true|false|null)|(-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)|"((?:[^\r\n\t\\\"]|\\(?:["\\\/trnfb]|u[0-9a-fA-F]{4}))*)")/;d="go",v=[];try{for(;K=s.exec($);)K[1]?I[K[1]][d]():K[2]?(b=+K[2],C[d]()):(M=K[3],b=M.replace(/\\(?:u(.{4})|([^u]))/g,function(h,p,g){return p?String.fromCharCode(parseInt(p,16)):S[g]}),T[d]()),$=$.slice(K[0].length)}catch(h){d=h}if(d!=="ok"||/[^\u0020\t\n\r]/.test($))throw d instanceof SyntaxError?d:new SyntaxError("JSON");return typeof U=="function"?function h(p,g){var _,w,A=p[g];if(A&&typeof A=="object")for(_ in b)Object.prototype.hasOwnProperty.call(A,_)&&((w=h(A,_))!==void 0?A[_]=w:delete A[_]);return U.call(p,g,A)}({"":b},""):b}))}}},n={},function a(i){var o=n[i];if(o!==void 0)return o.exports;var l=n[i]={exports:{}};return r[i].call(l.exports,l,l.exports,a),l.exports}(409);var r,n})})(zB);var Fpe=zB.exports;const Lpe=cd(Fpe);function Fs(e,t){const r=Object.create(null),n=e.split(",");for(let a=0;a<n.length;a++)r[n[a]]=!0;return t?a=>!!r[a.toLowerCase()]:a=>!!r[a]}const wr=fe.env.NODE_ENV!=="production"?Object.freeze({}):{},Iu=fe.env.NODE_ENV!=="production"?Object.freeze([]):[],Qr=()=>{},VB=()=>!1,Dpe=/^on[^a-z]/,oh=e=>Dpe.test(e),Wp=e=>e.startsWith("onUpdate:"),Mr=Object.assign,bw=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},$pe=Object.prototype.hasOwnProperty,Wt=(e,t)=>$pe.call(e,t),ot=Array.isArray,Ql=e=>lh(e)==="[object Map]",Gp=e=>lh(e)==="[object Set]",qB=e=>lh(e)==="[object Date]",vt=e=>typeof e=="function",It=e=>typeof e=="string",sh=e=>typeof e=="symbol",At=e=>e!==null&&typeof e=="object",_w=e=>At(e)&&vt(e.then)&&vt(e.catch),HB=Object.prototype.toString,lh=e=>HB.call(e),ww=e=>lh(e).slice(8,-1),Ew=e=>lh(e)==="[object Object]",xw=e=>It(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Zp=Fs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Upe=Fs("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Jp=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},zpe=/-(\w)/g,xa=Jp(e=>e.replace(zpe,(t,r)=>r?r.toUpperCase():"")),Vpe=/\B([A-Z])/g,fo=Jp(e=>e.replace(Vpe,"-$1").toLowerCase()),ef=Jp(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ho=Jp(e=>e?`on${ef(e)}`:""),fh=(e,t)=>!Object.is(e,t),Bu=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},Yp=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Sw=e=>{const t=parseFloat(e);return isNaN(t)?e:t},qpe=e=>{const t=It(e)?Number(e):NaN;return isNaN(t)?e:t};let jB;const Xp=()=>jB||(jB=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof wn<"u"?wn:{});function en(e){if(ot(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],a=It(n)?Wpe(n):en(n);if(a)for(const i in a)t[i]=a[i]}return t}else{if(It(e))return e;if(At(e))return e}}const Hpe=/;(?![^(]*\))/g,jpe=/:([^]+)/,Kpe=/\/\*[^]*?\*\//g;function Wpe(e){const t={};return e.replace(Kpe,"").split(Hpe).forEach(r=>{if(r){const n=r.split(jpe);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ce(e){let t="";if(It(e))t=e;else if(ot(e))for(let r=0;r<e.length;r++){const n=Ce(e[r]);n&&(t+=n+" ")}else if(At(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const Gpe="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",Zpe="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,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,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",Jpe=Fs(Gpe),Ype=Fs(Zpe),Xpe=Fs("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function KB(e){return!!e||e===""}function Qpe(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=Qp(e[n],t[n]);return r}function Qp(e,t){if(e===t)return!0;let r=qB(e),n=qB(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=sh(e),n=sh(t),r||n)return e===t;if(r=ot(e),n=ot(t),r||n)return r&&n?Qpe(e,t):!1;if(r=At(e),n=At(t),r||n){if(!r||!n)return!1;const a=Object.keys(e).length,i=Object.keys(t).length;if(a!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),f=t.hasOwnProperty(o);if(l&&!f||!l&&f||!Qp(e[o],t[o]))return!1}}return String(e)===String(t)}function WB(e,t){return e.findIndex(r=>Qp(r,t))}const st=e=>It(e)?e:e==null?"":ot(e)||At(e)&&(e.toString===HB||!vt(e.toString))?JSON.stringify(e,GB,2):String(e),GB=(e,t)=>t&&t.__v_isRef?GB(e,t.value):Ql(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,a])=>(r[`${n} =>`]=a,r),{})}:Gp(t)?{[`Set(${t.size})`]:[...t.values()]}:At(t)&&!ot(t)&&!Ew(t)?String(t):t;function ev(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Ti;class ZB{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ti,!t&&Ti&&(this.index=(Ti.scopes||(Ti.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=Ti;try{return Ti=this,t()}finally{Ti=r}}else fe.env.NODE_ENV!=="production"&&ev("cannot run an inactive effect scope.")}on(){Ti=this}off(){Ti=this.parent}stop(t){if(this._active){let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.scopes)for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!t){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0,this._active=!1}}}function eve(e){return new ZB(e)}function tve(e,t=Ti){t&&t.active&&t.effects.push(e)}function JB(){return Ti}function rve(e){Ti?Ti.cleanups.push(e):fe.env.NODE_ENV!=="production"&&ev("onScopeDispose() is called when there is no active effect scope to be associated with.")}const uh=e=>{const t=new Set(e);return t.w=0,t.n=0,t},YB=e=>(e.w&Ls)>0,XB=e=>(e.n&Ls)>0,nve=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ls},ive=e=>{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n<t.length;n++){const a=t[n];YB(a)&&!XB(a)?a.delete(e):t[r++]=a,a.w&=~Ls,a.n&=~Ls}t.length=r}},tv=new WeakMap;let ch=0,Ls=1;const Mw=30;let ni;const tf=Symbol(fe.env.NODE_ENV!=="production"?"iterate":""),Cw=Symbol(fe.env.NODE_ENV!=="production"?"Map key iterate":"");class Tw{constructor(t,r=null,n){this.fn=t,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,tve(this,n)}run(){if(!this.active)return this.fn();let t=ni,r=Ds;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=ni,ni=this,Ds=!0,Ls=1<<++ch,ch<=Mw?nve(this):QB(this),this.fn()}finally{ch<=Mw&&ive(this),Ls=1<<--ch,ni=this.parent,Ds=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ni===this?this.deferStop=!0:this.active&&(QB(this),this.onStop&&this.onStop(),this.active=!1)}}function QB(e){const{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}let Ds=!0;const e9=[];function rf(){e9.push(Ds),Ds=!1}function nf(){const e=e9.pop();Ds=e===void 0?!0:e}function kn(e,t,r){if(Ds&&ni){let n=tv.get(e);n||tv.set(e,n=new Map);let a=n.get(r);a||n.set(r,a=uh());const i=fe.env.NODE_ENV!=="production"?{effect:ni,target:e,type:t,key:r}:void 0;Aw(a,i)}}function Aw(e,t){let r=!1;ch<=Mw?XB(e)||(e.n|=Ls,r=!YB(e)):r=!e.has(ni),r&&(e.add(ni),ni.deps.push(e),fe.env.NODE_ENV!=="production"&&ni.onTrack&&ni.onTrack(Mr({effect:ni},t)))}function uo(e,t,r,n,a,i){const o=tv.get(e);if(!o)return;let l=[];if(t==="clear")l=[...o.values()];else if(r==="length"&&ot(e)){const c=Number(n);o.forEach((d,v)=>{(v==="length"||v>=c)&&l.push(d)})}else switch(r!==void 0&&l.push(o.get(r)),t){case"add":ot(e)?xw(r)&&l.push(o.get("length")):(l.push(o.get(tf)),Ql(e)&&l.push(o.get(Cw)));break;case"delete":ot(e)||(l.push(o.get(tf)),Ql(e)&&l.push(o.get(Cw)));break;case"set":Ql(e)&&l.push(o.get(tf));break}const f=fe.env.NODE_ENV!=="production"?{target:e,type:t,key:r,newValue:n,oldValue:a,oldTarget:i}:void 0;if(l.length===1)l[0]&&(fe.env.NODE_ENV!=="production"?ku(l[0],f):ku(l[0]));else{const c=[];for(const d of l)d&&c.push(...d);fe.env.NODE_ENV!=="production"?ku(uh(c),f):ku(uh(c))}}function ku(e,t){const r=ot(e)?e:[...e];for(const n of r)n.computed&&t9(n,t);for(const n of r)n.computed||t9(n,t)}function t9(e,t){(e!==ni||e.allowRecurse)&&(fe.env.NODE_ENV!=="production"&&e.onTrigger&&e.onTrigger(Mr({effect:e},t)),e.scheduler?e.scheduler():e.run())}function ave(e,t){var r;return(r=tv.get(e))==null?void 0:r.get(t)}const ove=Fs("__proto__,__v_isRef,__isVue"),r9=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(sh)),sve=rv(),lve=rv(!1,!0),fve=rv(!0),uve=rv(!0,!0),n9=cve();function cve(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=Nt(this);for(let i=0,o=this.length;i<o;i++)kn(n,"get",i+"");const a=n[t](...r);return a===-1||a===!1?n[t](...r.map(Nt)):a}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){rf();const n=Nt(this)[t].apply(this,r);return nf(),n}}),e}function hve(e){const t=Nt(this);return kn(t,"has",e),t.hasOwnProperty(e)}function rv(e=!1,t=!1){return function(n,a,i){if(a==="__v_isReactive")return!e;if(a==="__v_isReadonly")return e;if(a==="__v_isShallow")return t;if(a==="__v_raw"&&i===(e?t?v9:p9:t?d9:h9).get(n))return n;const o=ot(n);if(!e){if(o&&Wt(n9,a))return Reflect.get(n9,a,i);if(a==="hasOwnProperty")return hve}const l=Reflect.get(n,a,i);return(sh(a)?r9.has(a):ove(a))||(e||kn(n,"get",a),t)?l:gr(l)?o&&xw(a)?l:l.value:At(l)?e?uv(l):vn(l):l}}const dve=i9(),pve=i9(!0);function i9(e=!1){return function(r,n,a,i){let o=r[n];if(Us(o)&&gr(o)&&!gr(a))return!1;if(!e&&(!hv(a)&&!Us(a)&&(o=Nt(o),a=Nt(a)),!ot(r)&&gr(o)&&!gr(a)))return o.value=a,!0;const l=ot(r)&&xw(n)?Number(n)<r.length:Wt(r,n),f=Reflect.set(r,n,a,i);return r===Nt(i)&&(l?fh(a,o)&&uo(r,"set",n,a,o):uo(r,"add",n,a)),f}}function vve(e,t){const r=Wt(e,t),n=e[t],a=Reflect.deleteProperty(e,t);return a&&r&&uo(e,"delete",t,void 0,n),a}function mve(e,t){const r=Reflect.has(e,t);return(!sh(t)||!r9.has(t))&&kn(e,"has",t),r}function gve(e){return kn(e,"iterate",ot(e)?"length":tf),Reflect.ownKeys(e)}const a9={get:sve,set:dve,deleteProperty:vve,has:mve,ownKeys:gve},o9={get:fve,set(e,t){return fe.env.NODE_ENV!=="production"&&ev(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return fe.env.NODE_ENV!=="production"&&ev(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},yve=Mr({},a9,{get:lve,set:pve}),bve=Mr({},o9,{get:uve}),Iw=e=>e,nv=e=>Reflect.getPrototypeOf(e);function iv(e,t,r=!1,n=!1){e=e.__v_raw;const a=Nt(e),i=Nt(t);r||(t!==i&&kn(a,"get",t),kn(a,"get",i));const{has:o}=nv(a),l=n?Iw:r?Bw:dh;if(o.call(a,t))return l(e.get(t));if(o.call(a,i))return l(e.get(i));e!==a&&e.get(t)}function av(e,t=!1){const r=this.__v_raw,n=Nt(r),a=Nt(e);return t||(e!==a&&kn(n,"has",e),kn(n,"has",a)),e===a?r.has(e):r.has(e)||r.has(a)}function ov(e,t=!1){return e=e.__v_raw,!t&&kn(Nt(e),"iterate",tf),Reflect.get(e,"size",e)}function s9(e){e=Nt(e);const t=Nt(this);return nv(t).has.call(t,e)||(t.add(e),uo(t,"add",e,e)),this}function l9(e,t){t=Nt(t);const r=Nt(this),{has:n,get:a}=nv(r);let i=n.call(r,e);i?fe.env.NODE_ENV!=="production"&&c9(r,n,e):(e=Nt(e),i=n.call(r,e));const o=a.call(r,e);return r.set(e,t),i?fh(t,o)&&uo(r,"set",e,t,o):uo(r,"add",e,t),this}function f9(e){const t=Nt(this),{has:r,get:n}=nv(t);let a=r.call(t,e);a?fe.env.NODE_ENV!=="production"&&c9(t,r,e):(e=Nt(e),a=r.call(t,e));const i=n?n.call(t,e):void 0,o=t.delete(e);return a&&uo(t,"delete",e,void 0,i),o}function u9(){const e=Nt(this),t=e.size!==0,r=fe.env.NODE_ENV!=="production"?Ql(e)?new Map(e):new Set(e):void 0,n=e.clear();return t&&uo(e,"clear",void 0,void 0,r),n}function sv(e,t){return function(n,a){const i=this,o=i.__v_raw,l=Nt(o),f=t?Iw:e?Bw:dh;return!e&&kn(l,"iterate",tf),o.forEach((c,d)=>n.call(a,f(c),f(d),i))}}function lv(e,t,r){return function(...n){const a=this.__v_raw,i=Nt(a),o=Ql(i),l=e==="entries"||e===Symbol.iterator&&o,f=e==="keys"&&o,c=a[e](...n),d=r?Iw:t?Bw:dh;return!t&&kn(i,"iterate",f?Cw:tf),{next(){const{value:v,done:m}=c.next();return m?{value:v,done:m}:{value:l?[d(v[0]),d(v[1])]:d(v),done:m}},[Symbol.iterator](){return this}}}}function $s(e){return function(...t){if(fe.env.NODE_ENV!=="production"){const r=t[0]?`on key "${t[0]}" `:"";console.warn(`${ef(e)} operation ${r}failed: target is readonly.`,Nt(this))}return e==="delete"?!1:this}}function _ve(){const e={get(i){return iv(this,i)},get size(){return ov(this)},has:av,add:s9,set:l9,delete:f9,clear:u9,forEach:sv(!1,!1)},t={get(i){return iv(this,i,!1,!0)},get size(){return ov(this)},has:av,add:s9,set:l9,delete:f9,clear:u9,forEach:sv(!1,!0)},r={get(i){return iv(this,i,!0)},get size(){return ov(this,!0)},has(i){return av.call(this,i,!0)},add:$s("add"),set:$s("set"),delete:$s("delete"),clear:$s("clear"),forEach:sv(!0,!1)},n={get(i){return iv(this,i,!0,!0)},get size(){return ov(this,!0)},has(i){return av.call(this,i,!0)},add:$s("add"),set:$s("set"),delete:$s("delete"),clear:$s("clear"),forEach:sv(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=lv(i,!1,!1),r[i]=lv(i,!0,!1),t[i]=lv(i,!1,!0),n[i]=lv(i,!0,!0)}),[e,r,t,n]}const[wve,Eve,xve,Sve]=_ve();function fv(e,t){const r=t?e?Sve:xve:e?Eve:wve;return(n,a,i)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?n:Reflect.get(Wt(r,a)&&a in n?r:n,a,i)}const Mve={get:fv(!1,!1)},Cve={get:fv(!1,!0)},Tve={get:fv(!0,!1)},Ave={get:fv(!0,!0)};function c9(e,t,r){const n=Nt(r);if(n!==r&&t.call(e,n)){const a=ww(e);console.warn(`Reactive ${a} contains both the raw and reactive versions of the same object${a==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const h9=new WeakMap,d9=new WeakMap,p9=new WeakMap,v9=new WeakMap;function Ive(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Bve(e){return e.__v_skip||!Object.isExtensible(e)?0:Ive(ww(e))}function vn(e){return Us(e)?e:cv(e,!1,a9,Mve,h9)}function kve(e){return cv(e,!1,yve,Cve,d9)}function uv(e){return cv(e,!0,o9,Tve,p9)}function hh(e){return cv(e,!0,bve,Ave,v9)}function cv(e,t,r,n,a){if(!At(e))return fe.env.NODE_ENV!=="production"&&console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=a.get(e);if(i)return i;const o=Bve(e);if(o===0)return e;const l=new Proxy(e,o===2?n:r);return a.set(e,l),l}function af(e){return Us(e)?af(e.__v_raw):!!(e&&e.__v_isReactive)}function Us(e){return!!(e&&e.__v_isReadonly)}function hv(e){return!!(e&&e.__v_isShallow)}function dv(e){return af(e)||Us(e)}function Nt(e){const t=e&&e.__v_raw;return t?Nt(t):e}function m9(e){return Yp(e,"__v_skip",!0),e}const dh=e=>At(e)?vn(e):e,Bw=e=>At(e)?uv(e):e;function g9(e){Ds&&ni&&(e=Nt(e),fe.env.NODE_ENV!=="production"?Aw(e.dep||(e.dep=uh()),{target:e,type:"get",key:"value"}):Aw(e.dep||(e.dep=uh())))}function y9(e,t){e=Nt(e);const r=e.dep;r&&(fe.env.NODE_ENV!=="production"?ku(r,{target:e,type:"set",key:"value",newValue:t}):ku(r))}function gr(e){return!!(e&&e.__v_isRef===!0)}function Oe(e){return b9(e,!1)}function Nu(e){return b9(e,!0)}function b9(e,t){return gr(e)?e:new Nve(e,t)}class Nve{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:Nt(t),this._value=r?t:dh(t)}get value(){return g9(this),this._value}set value(t){const r=this.__v_isShallow||hv(t)||Us(t);t=r?t:Nt(t),fh(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:dh(t),y9(this,t))}}function J(e){return gr(e)?e.value:e}const Ove={get:(e,t,r)=>J(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const a=e[t];return gr(a)&&!gr(r)?(a.value=r,!0):Reflect.set(e,t,r,n)}};function _9(e){return af(e)?e:new Proxy(e,Ove)}function zs(e){fe.env.NODE_ENV!=="production"&&!dv(e)&&console.warn("toRefs() expects a reactive object but received a plain one.");const t=ot(e)?new Array(e.length):{};for(const r in e)t[r]=w9(e,r);return t}class Rve{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return ave(Nt(this._object),this._key)}}class Pve{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function ia(e,t,r){return gr(e)?e:vt(e)?new Pve(e):At(e)&&arguments.length>1?w9(e,t,r):Oe(e)}function w9(e,t,r){const n=e[t];return gr(n)?n:new Rve(e,t,r)}class Fve{constructor(t,r,n,a){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Tw(t,()=>{this._dirty||(this._dirty=!0,y9(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=n}get value(){const t=Nt(this);return g9(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Lve(e,t,r=!1){let n,a;const i=vt(e);i?(n=e,a=fe.env.NODE_ENV!=="production"?()=>{console.warn("Write operation failed: computed value is readonly")}:Qr):(n=e.get,a=e.set);const o=new Fve(n,a,i||!a,r);return fe.env.NODE_ENV!=="production"&&t&&!r&&(o.effect.onTrack=t.onTrack,o.effect.onTrigger=t.onTrigger),o}const of=[];function pv(e){of.push(e)}function vv(){of.pop()}function et(e,...t){if(fe.env.NODE_ENV==="production")return;rf();const r=of.length?of[of.length-1].component:null,n=r&&r.appContext.config.warnHandler,a=Dve();if(n)jo(n,r,11,[e+t.join(""),r&&r.proxy,a.map(({vnode:i})=>`at <${Ov(r,i.type)}>`).join(`
822
822
  `),a]);else{const i=[`[Vue warn]: ${e}`,...t];a.length&&i.push(`
823
823
  `,...$ve(a)),console.warn(...i)}nf()}function Dve(){let e=of[of.length-1];if(!e)return[];const t=[];for(;e;){const r=t[0];r&&r.vnode===e?r.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}function $ve(e){const t=[];return e.forEach((r,n)=>{t.push(...n===0?[]:[`
824
- `],...Uve(r))}),t}function Uve({vnode:e,recurseCount:t}){const r=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,a=` at <${Ov(e.component,e.type,n)}`,i=">"+r;return e.props?[a,...zve(e.props),i]:[a+i]}function zve(e){const t=[],r=Object.keys(e);return r.slice(0,3).forEach(n=>{t.push(...E9(n,e[n]))}),r.length>3&&t.push(" ..."),t}function E9(e,t,r){return It(t)?(t=JSON.stringify(t),r?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?r?t:[`${e}=${t}`]:gr(t)?(t=E9(e,Nt(t.value),!0),r?t:[`${e}=Ref<`,t,">"]):vt(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Nt(t),r?t:[`${e}=`,t])}function Vve(e,t){fe.env.NODE_ENV!=="production"&&e!==void 0&&(typeof e!="number"?et(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&et(`${t} is NaN - the duration expression might be incorrect.`))}const kw={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function jo(e,t,r,n){let a;try{a=n?e(...n):e()}catch(i){mv(i,t,r)}return a}function aa(e,t,r,n){if(vt(e)){const i=jo(e,t,r,n);return i&&_w(i)&&i.catch(o=>{mv(o,t,r)}),i}const a=[];for(let i=0;i<e.length;i++)a.push(aa(e[i],t,r,n));return a}function mv(e,t,r,n=!0){const a=t?t.vnode:null;if(t){let i=t.parent;const o=t.proxy,l=fe.env.NODE_ENV!=="production"?kw[r]:r;for(;i;){const c=i.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,o,l)===!1)return}i=i.parent}const f=t.appContext.config.errorHandler;if(f){jo(f,null,10,[e,o,l]);return}}qve(e,r,a,n)}function qve(e,t,r,n=!0){if(fe.env.NODE_ENV!=="production"){const a=kw[t];if(r&&pv(r),et(`Unhandled error${a?` during execution of ${a}`:""}`),r&&vv(),n)throw e;console.error(e)}else console.error(e)}let ph=!1,Nw=!1;const jn=[];let co=0;const Ou=[];let ho=null,Vs=0;const x9=Promise.resolve();let Ow=null;const Hve=100;function Xt(e){const t=Ow||x9;return e?t.then(this?e.bind(this):e):t}function jve(e){let t=co+1,r=jn.length;for(;t<r;){const n=t+r>>>1;vh(jn[n])<e?t=n+1:r=n}return t}function gv(e){(!jn.length||!jn.includes(e,ph&&e.allowRecurse?co+1:co))&&(e.id==null?jn.push(e):jn.splice(jve(e.id),0,e),S9())}function S9(){!ph&&!Nw&&(Nw=!0,Ow=x9.then(A9))}function Kve(e){const t=jn.indexOf(e);t>co&&jn.splice(t,1)}function M9(e){ot(e)?Ou.push(...e):(!ho||!ho.includes(e,e.allowRecurse?Vs+1:Vs))&&Ou.push(e),S9()}function C9(e,t=ph?co+1:0){for(fe.env.NODE_ENV!=="production"&&(e=e||new Map);t<jn.length;t++){const r=jn[t];if(r&&r.pre){if(fe.env.NODE_ENV!=="production"&&Rw(e,r))continue;jn.splice(t,1),t--,r()}}}function T9(e){if(Ou.length){const t=[...new Set(Ou)];if(Ou.length=0,ho){ho.push(...t);return}for(ho=t,fe.env.NODE_ENV!=="production"&&(e=e||new Map),ho.sort((r,n)=>vh(r)-vh(n)),Vs=0;Vs<ho.length;Vs++)fe.env.NODE_ENV!=="production"&&Rw(e,ho[Vs])||ho[Vs]();ho=null,Vs=0}}const vh=e=>e.id==null?1/0:e.id,Wve=(e,t)=>{const r=vh(e)-vh(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function A9(e){Nw=!1,ph=!0,fe.env.NODE_ENV!=="production"&&(e=e||new Map),jn.sort(Wve);const t=fe.env.NODE_ENV!=="production"?r=>Rw(e,r):Qr;try{for(co=0;co<jn.length;co++){const r=jn[co];if(r&&r.active!==!1){if(fe.env.NODE_ENV!=="production"&&t(r))continue;jo(r,null,14)}}}finally{co=0,jn.length=0,T9(e),ph=!1,Ow=null,(jn.length||Ou.length)&&A9(e)}}function Rw(e,t){if(!e.has(t))e.set(t,1);else{const r=e.get(t);if(r>Hve){const n=t.ownerInstance,a=n&&oE(n.type);return et(`Maximum recursive updates exceeded${a?` in component <${a}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}else e.set(t,r+1)}}let qs=!1;const Ru=new Set;fe.env.NODE_ENV!=="production"&&(Xp().__VUE_HMR_RUNTIME__={createRecord:Pw(I9),rerender:Pw(Jve),reload:Pw(Yve)});const sf=new Map;function Gve(e){const t=e.type.__hmrId;let r=sf.get(t);r||(I9(t,e.type),r=sf.get(t)),r.instances.add(e)}function Zve(e){sf.get(e.type.__hmrId).instances.delete(e)}function I9(e,t){return sf.has(e)?!1:(sf.set(e,{initialDef:mh(t),instances:new Set}),!0)}function mh(e){return Ok(e)?e.__vccOpts:e}function Jve(e,t){const r=sf.get(e);r&&(r.initialDef.render=t,[...r.instances].forEach(n=>{t&&(n.render=t,mh(n.type).render=t),n.renderCache=[],qs=!0,n.update(),qs=!1}))}function Yve(e,t){const r=sf.get(e);if(!r)return;t=mh(t),B9(r.initialDef,t);const n=[...r.instances];for(const a of n){const i=mh(a.type);Ru.has(i)||(i!==r.initialDef&&B9(i,t),Ru.add(i)),a.appContext.propsCache.delete(a.type),a.appContext.emitsCache.delete(a.type),a.appContext.optionsCache.delete(a.type),a.ceReload?(Ru.add(i),a.ceReload(t.styles),Ru.delete(i)):a.parent?gv(a.parent.update):a.appContext.reload?a.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}M9(()=>{for(const a of n)Ru.delete(mh(a.type))})}function B9(e,t){Mr(e,t);for(const r in e)r!=="__file"&&!(r in t)&&delete e[r]}function Pw(e){return(t,r)=>{try{return e(t,r)}catch(n){console.error(n),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let po,gh=[],Fw=!1;function yh(e,...t){po?po.emit(e,...t):Fw||gh.push({event:e,args:t})}function k9(e,t){var r,n;po=e,po?(po.enabled=!0,gh.forEach(({event:a,args:i})=>po.emit(a,...i)),gh=[]):typeof window<"u"&&window.HTMLElement&&!((n=(r=window.navigator)==null?void 0:r.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{k9(i,t)}),setTimeout(()=>{po||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Fw=!0,gh=[])},3e3)):(Fw=!0,gh=[])}function Xve(e,t){yh("app:init",e,t,{Fragment:Ct,Text:Ks,Comment:yn,Static:Iv})}function Qve(e){yh("app:unmount",e)}const eme=Lw("component:added"),N9=Lw("component:updated"),tme=Lw("component:removed"),rme=e=>{po&&typeof po.cleanupBuffer=="function"&&!po.cleanupBuffer(e)&&tme(e)};function Lw(e){return t=>{yh(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const nme=O9("perf:start"),ime=O9("perf:end");function O9(e){return(t,r,n)=>{yh(e,t.appContext.app,t.uid,t,r,n)}}function ame(e,t,r){yh("component:emit",e.appContext.app,e,t,r)}function ome(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||wr;if(fe.env.NODE_ENV!=="production"){const{emitsOptions:d,propsOptions:[v]}=e;if(d)if(!(t in d))(!v||!(Ho(t)in v))&&et(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${Ho(t)}" prop.`);else{const m=d[t];vt(m)&&(m(...r)||et(`Invalid event arguments: event validation failed for event "${t}".`))}}let a=r;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in n){const d=`${o==="modelValue"?"model":o}Modifiers`,{number:v,trim:m}=n[d]||wr;m&&(a=r.map(y=>It(y)?y.trim():y)),v&&(a=r.map(Sw))}if(fe.env.NODE_ENV!=="production"&&ame(e,t,a),fe.env.NODE_ENV!=="production"){const d=t.toLowerCase();d!==t&&n[Ho(d)]&&et(`Event "${d}" is emitted in component ${Ov(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${fo(t)}" instead of "${t}".`)}let l,f=n[l=Ho(t)]||n[l=Ho(xa(t))];!f&&i&&(f=n[l=Ho(fo(t))]),f&&aa(f,e,6,a);const c=n[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,aa(c,e,6,a)}}function R9(e,t,r=!1){const n=t.emitsCache,a=n.get(e);if(a!==void 0)return a;const i=e.emits;let o={},l=!1;if(!vt(e)){const f=c=>{const d=R9(c,t,!0);d&&(l=!0,Mr(o,d))};!r&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!i&&!l?(At(e)&&n.set(e,null),null):(ot(i)?i.forEach(f=>o[f]=null):Mr(o,i),At(e)&&n.set(e,o),o)}function yv(e,t){return!e||!oh(t)?!1:(t=t.slice(2).replace(/Once$/,""),Wt(e,t[0].toLowerCase()+t.slice(1))||Wt(e,fo(t))||Wt(e,t))}let mn=null,P9=null;function bv(e){const t=mn;return mn=e,P9=e&&e.type.__scopeId||null,t}function st(e,t=mn,r){if(!t||e._n)return e;const n=(...a)=>{n._d&&Ek(-1);const i=bv(t);let o;try{o=e(...a)}finally{bv(i),n._d&&Ek(1)}return fe.env.NODE_ENV!=="production"&&N9(t),o};return n._n=!0,n._c=!0,n._d=!0,n}let Dw=!1;function _v(){Dw=!0}function $w(e){const{type:t,vnode:r,proxy:n,withProxy:a,props:i,propsOptions:[o],slots:l,attrs:f,emit:c,render:d,renderCache:v,data:m,setupState:y,ctx:b,inheritAttrs:S}=e;let T,C;const I=bv(e);fe.env.NODE_ENV!=="production"&&(Dw=!1);try{if(r.shapeFlag&4){const R=a||n;T=Ta(d.call(R,R,v,i,y,m,b)),C=f}else{const R=t;fe.env.NODE_ENV!=="production"&&f===i&&_v(),T=Ta(R.length>1?R(i,fe.env.NODE_ENV!=="production"?{get attrs(){return _v(),f},slots:l,emit:c}:{attrs:f,slots:l,emit:c}):R(i,null)),C=t.props?f:lme(f)}}catch(R){Th.length=0,mv(R,e,1),T=Et(yn)}let B=T,N;if(fe.env.NODE_ENV!=="production"&&T.patchFlag>0&&T.patchFlag&2048&&([B,N]=sme(T)),C&&S!==!1){const R=Object.keys(C),{shapeFlag:P}=B;if(R.length){if(P&7)o&&R.some(Wp)&&(C=fme(C,o)),B=Ca(B,C);else if(fe.env.NODE_ENV!=="production"&&!Dw&&B.type!==yn){const D=Object.keys(f),$=[],U=[];for(let K=0,M=D.length;K<M;K++){const s=D[K];oh(s)?Wp(s)||$.push(s[2].toLowerCase()+s.slice(3)):U.push(s)}U.length&&et(`Extraneous non-props attributes (${U.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),$.length&&et(`Extraneous non-emits event listeners (${$.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return r.dirs&&(fe.env.NODE_ENV!=="production"&&!L9(B)&&et("Runtime directive used on component with non-element root node. The directives will not function as intended."),B=Ca(B),B.dirs=B.dirs?B.dirs.concat(r.dirs):r.dirs),r.transition&&(fe.env.NODE_ENV!=="production"&&!L9(B)&&et("Component inside <Transition> renders non-element root node that cannot be animated."),B.transition=r.transition),fe.env.NODE_ENV!=="production"&&N?N(B):T=B,bv(I),T}const sme=e=>{const t=e.children,r=e.dynamicChildren,n=F9(t);if(!n)return[e,void 0];const a=t.indexOf(n),i=r?r.indexOf(n):-1,o=l=>{t[a]=l,r&&(i>-1?r[i]=l:l.patchFlag>0&&(e.dynamicChildren=[...r,l]))};return[Ta(n),o]};function F9(e){let t;for(let r=0;r<e.length;r++){const n=e[r];if(Ma(n)){if(n.type!==yn||n.children==="v-if"){if(t)return;t=n}}else return}return t}const lme=e=>{let t;for(const r in e)(r==="class"||r==="style"||oh(r))&&((t||(t={}))[r]=e[r]);return t},fme=(e,t)=>{const r={};for(const n in e)(!Wp(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r},L9=e=>e.shapeFlag&7||e.type===yn;function ume(e,t,r){const{props:n,children:a,component:i}=e,{props:o,children:l,patchFlag:f}=t,c=i.emitsOptions;if(fe.env.NODE_ENV!=="production"&&(a||l)&&qs||t.dirs||t.transition)return!0;if(r&&f>=0){if(f&1024)return!0;if(f&16)return n?D9(n,o,c):!!o;if(f&8){const d=t.dynamicProps;for(let v=0;v<d.length;v++){const m=d[v];if(o[m]!==n[m]&&!yv(c,m))return!0}}}else return(a||l)&&(!l||!l.$stable)?!0:n===o?!1:n?o?D9(n,o,c):!0:!!o;return!1}function D9(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let a=0;a<n.length;a++){const i=n[a];if(t[i]!==e[i]&&!yv(r,i))return!0}return!1}function cme({vnode:e,parent:t},r){for(;t&&t.subTree===e;)(e=t.vnode).el=r,t=t.parent}const hme=e=>e.__isSuspense;function dme(e,t){t&&t.pendingBranch?ot(e)?t.effects.push(...e):t.effects.push(e):M9(e)}function Uw(e,t){return zw(e,null,t)}const wv={};function dt(e,t,r){return fe.env.NODE_ENV!=="production"&&!vt(t)&&et("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),zw(e,t,r)}function zw(e,t,{immediate:r,deep:n,flush:a,onTrack:i,onTrigger:o}=wr){var l;fe.env.NODE_ENV!=="production"&&!t&&(r!==void 0&&et('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),n!==void 0&&et('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const f=R=>{et("Invalid watch source: ",R,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=JB()===((l=bn)==null?void 0:l.scope)?bn:null;let d,v=!1,m=!1;if(gr(e)?(d=()=>e.value,v=hv(e)):af(e)?(d=()=>e,n=!0):ot(e)?(m=!0,v=e.some(R=>af(R)||hv(R)),d=()=>e.map(R=>{if(gr(R))return R.value;if(af(R))return lf(R);if(vt(R))return jo(R,c,2);fe.env.NODE_ENV!=="production"&&f(R)})):vt(e)?t?d=()=>jo(e,c,2):d=()=>{if(!(c&&c.isUnmounted))return y&&y(),aa(e,c,3,[b])}:(d=Qr,fe.env.NODE_ENV!=="production"&&f(e)),t&&n){const R=d;d=()=>lf(R())}let y,b=R=>{y=B.onStop=()=>{jo(R,c,4)}},S;if(Ih)if(b=Qr,t?r&&aa(t,c,3,[d(),m?[]:void 0,b]):d(),a==="sync"){const R=pge();S=R.__watcherHandles||(R.__watcherHandles=[])}else return Qr;let T=m?new Array(e.length).fill(wv):wv;const C=()=>{if(B.active)if(t){const R=B.run();(n||v||(m?R.some((P,D)=>fh(P,T[D])):fh(R,T)))&&(y&&y(),aa(t,c,3,[R,T===wv?void 0:m&&T[0]===wv?[]:T,b]),T=R)}else B.run()};C.allowRecurse=!!t;let I;a==="sync"?I=C:a==="post"?I=()=>mi(C,c&&c.suspense):(C.pre=!0,c&&(C.id=c.uid),I=()=>gv(C));const B=new Tw(d,I);fe.env.NODE_ENV!=="production"&&(B.onTrack=i,B.onTrigger=o),t?r?C():T=B.run():a==="post"?mi(B.run.bind(B),c&&c.suspense):B.run();const N=()=>{B.stop(),c&&c.scope&&bw(c.scope.effects,B)};return S&&S.push(N),N}function pme(e,t,r){const n=this.proxy,a=It(e)?e.includes(".")?$9(n,e):()=>n[e]:e.bind(n,n);let i;vt(t)?i=t:(i=t.handler,r=t);const o=bn;Du(this);const l=zw(a,i.bind(n),r);return o?Du(o):df(),l}function $9(e,t){const r=t.split(".");return()=>{let n=e;for(let a=0;a<r.length&&n;a++)n=n[r[a]];return n}}function lf(e,t){if(!At(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),gr(e))lf(e.value,t);else if(ot(e))for(let r=0;r<e.length;r++)lf(e[r],t);else if(Gp(e)||Ql(e))e.forEach(r=>{lf(r,t)});else if(Ew(e))for(const r in e)lf(e[r],t);return e}function U9(e){Upe(e)&&et("Do not use built-in directive ids as custom directive id: "+e)}function tn(e,t){const r=mn;if(r===null)return fe.env.NODE_ENV!=="production"&&et("withDirectives can only be used inside render functions."),e;const n=Nv(r)||r.proxy,a=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,l,f,c=wr]=t[i];o&&(vt(o)&&(o={mounted:o,updated:o}),o.deep&&lf(l),a.push({dir:o,instance:n,value:l,oldValue:void 0,arg:f,modifiers:c}))}return e}function ff(e,t,r,n){const a=e.dirs,i=t&&t.dirs;for(let o=0;o<a.length;o++){const l=a[o];i&&(l.oldValue=i[o].value);let f=l.dir[n];f&&(rf(),aa(f,r,8,[e.el,l,e,t]),nf())}}function z9(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ur(()=>{e.isMounted=!0}),gn(()=>{e.isUnmounting=!0}),e}const oa=[Function,Array],V9={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:oa,onEnter:oa,onAfterEnter:oa,onEnterCancelled:oa,onBeforeLeave:oa,onLeave:oa,onAfterLeave:oa,onLeaveCancelled:oa,onBeforeAppear:oa,onAppear:oa,onAfterAppear:oa,onAppearCancelled:oa},vme={name:"BaseTransition",props:V9,setup(e,{slots:t}){const r=Cr(),n=z9();let a;return()=>{const i=t.default&&qw(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){let S=!1;for(const T of i)if(T.type!==yn){if(fe.env.NODE_ENV!=="production"&&S){et("<transition> can only be used on a single element or component. Use <transition-group> for lists.");break}if(o=T,S=!0,fe.env.NODE_ENV==="production")break}}const l=Nt(e),{mode:f}=l;if(fe.env.NODE_ENV!=="production"&&f&&f!=="in-out"&&f!=="out-in"&&f!=="default"&&et(`invalid <transition> mode: ${f}`),n.isLeaving)return Vw(o);const c=H9(o);if(!c)return Vw(o);const d=bh(c,l,n,r);_h(c,d);const v=r.subTree,m=v&&H9(v);let y=!1;const{getTransitionKey:b}=c.type;if(b){const S=b();a===void 0?a=S:S!==a&&(a=S,y=!0)}if(m&&m.type!==yn&&(!hf(c,m)||y)){const S=bh(m,l,n,r);if(_h(m,S),f==="out-in")return n.isLeaving=!0,S.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&r.update()},Vw(o);f==="in-out"&&c.type!==yn&&(S.delayLeave=(T,C,I)=>{const B=q9(n,m);B[String(m.key)]=m,T._leaveCb=()=>{C(),T._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=I})}return o}}};function q9(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function bh(e,t,r,n){const{appear:a,mode:i,persisted:o=!1,onBeforeEnter:l,onEnter:f,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:v,onLeave:m,onAfterLeave:y,onLeaveCancelled:b,onBeforeAppear:S,onAppear:T,onAfterAppear:C,onAppearCancelled:I}=t,B=String(e.key),N=q9(r,e),R=($,U)=>{$&&aa($,n,9,U)},P=($,U)=>{const K=U[1];R($,U),ot($)?$.every(M=>M.length<=1)&&K():$.length<=1&&K()},D={mode:i,persisted:o,beforeEnter($){let U=l;if(!r.isMounted)if(a)U=S||l;else return;$._leaveCb&&$._leaveCb(!0);const K=N[B];K&&hf(e,K)&&K.el._leaveCb&&K.el._leaveCb(),R(U,[$])},enter($){let U=f,K=c,M=d;if(!r.isMounted)if(a)U=T||f,K=C||c,M=I||d;else return;let s=!1;const h=$._enterCb=p=>{s||(s=!0,p?R(M,[$]):R(K,[$]),D.delayedLeave&&D.delayedLeave(),$._enterCb=void 0)};U?P(U,[$,h]):h()},leave($,U){const K=String(e.key);if($._enterCb&&$._enterCb(!0),r.isUnmounting)return U();R(v,[$]);let M=!1;const s=$._leaveCb=h=>{M||(M=!0,U(),h?R(b,[$]):R(y,[$]),$._leaveCb=void 0,N[K]===e&&delete N[K])};N[K]=e,m?P(m,[$,s]):s()},clone($){return bh($,t,r,n)}};return D}function Vw(e){if(Eh(e))return e=Ca(e),e.children=null,e}function H9(e){return Eh(e)?e.children?e.children[0]:void 0:e}function _h(e,t){e.shapeFlag&6&&e.component?_h(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function qw(e,t=!1,r){let n=[],a=0;for(let i=0;i<e.length;i++){let o=e[i];const l=r==null?o.key:String(r)+String(o.key!=null?o.key:i);o.type===Ct?(o.patchFlag&128&&a++,n=n.concat(qw(o.children,t,l))):(t||o.type!==yn)&&n.push(l!=null?Ca(o,{key:l}):o)}if(a>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}function rt(e,t){return vt(e)?(()=>Mr({name:e.name},t,{setup:e}))():e}const wh=e=>!!e.type.__asyncLoader,Eh=e=>e.type.__isKeepAlive;function j9(e,t){W9(e,"a",t)}function K9(e,t){W9(e,"da",t)}function W9(e,t,r=bn){const n=e.__wdc||(e.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(Ev(t,n,r),r){let a=r.parent;for(;a&&a.parent;)Eh(a.parent.vnode)&&mme(n,t,r,a),a=a.parent}}function mme(e,t,r,n){const a=Ev(t,e,n,!0);xv(()=>{bw(n[t],a)},r)}function Ev(e,t,r=bn,n=!1){if(r){const a=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(r.isUnmounted)return;rf(),Du(r);const l=aa(t,r,e,o);return df(),nf(),l});return n?a.unshift(i):a.push(i),i}else if(fe.env.NODE_ENV!=="production"){const a=Ho(kw[e].replace(/ hook$/,""));et(`${a} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const Ko=e=>(t,r=bn)=>(!Ih||e==="sp")&&Ev(e,(...n)=>t(...n),r),G9=Ko("bm"),ur=Ko("m"),gme=Ko("bu"),xh=Ko("u"),gn=Ko("bum"),xv=Ko("um"),yme=Ko("sp"),bme=Ko("rtg"),_me=Ko("rtc");function wme(e,t=bn){Ev("ec",e,t)}const Sv="components",Eme="directives";function Hs(e,t){return Hw(Sv,e,!0,t)||e}const Z9=Symbol.for("v-ndc");function Nn(e){return It(e)?Hw(Sv,e,!1)||e:e||Z9}function J9(e){return Hw(Eme,e)}function Hw(e,t,r=!0,n=!1){const a=mn||bn;if(a){const i=a.type;if(e===Sv){const l=oE(i,!1);if(l&&(l===t||l===xa(t)||l===ef(xa(t))))return i}const o=Y9(a[e]||i[e],t)||Y9(a.appContext[e],t);if(!o&&n)return i;if(fe.env.NODE_ENV!=="production"&&r&&!o){const l=e===Sv?`
825
- If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";et(`Failed to resolve ${e.slice(0,-1)}: ${t}${l}`)}return o}else fe.env.NODE_ENV!=="production"&&et(`resolve${ef(e.slice(0,-1))} can only be used in render() or setup().`)}function Y9(e,t){return e&&(e[t]||e[xa(t)]||e[ef(xa(t))])}function ii(e,t,r,n){let a;const i=r&&r[n];if(ot(e)||It(e)){a=new Array(e.length);for(let o=0,l=e.length;o<l;o++)a[o]=t(e[o],o,void 0,i&&i[o])}else if(typeof e=="number"){fe.env.NODE_ENV!=="production"&&!Number.isInteger(e)&&et(`The v-for range expect an integer value but got ${e}.`),a=new Array(e);for(let o=0;o<e;o++)a[o]=t(o+1,o,void 0,i&&i[o])}else if(At(e))if(e[Symbol.iterator])a=Array.from(e,(o,l)=>t(o,l,void 0,i&&i[l]));else{const o=Object.keys(e);a=new Array(o.length);for(let l=0,f=o.length;l<f;l++){const c=o[l];a[l]=t(e[c],c,l,i&&i[l])}}else a=[];return r&&(r[n]=a),a}function X9(e,t){for(let r=0;r<t.length;r++){const n=t[r];if(ot(n))for(let a=0;a<n.length;a++)e[n[a].name]=n[a].fn;else n&&(e[n.name]=n.key?(...a)=>{const i=n.fn(...a);return i&&(i.key=n.key),i}:n.fn)}return e}function yt(e,t,r={},n,a){if(mn.isCE||mn.parent&&wh(mn.parent)&&mn.parent.isCE)return t!=="default"&&(r.name=t),Et("slot",r,n&&n());let i=e[t];fe.env.NODE_ENV!=="production"&&i&&i.length>1&&(et("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),i=()=>[]),i&&i._c&&(i._d=!1),he();const o=i&&Q9(i(r)),l=nt(Ct,{key:r.key||o&&o.key||`_${t}`},o||(n?n():[]),o&&e._===1?64:-2);return!a&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Q9(e){return e.some(t=>Ma(t)?!(t.type===yn||t.type===Ct&&!Q9(t.children)):!0)?e:null}function xme(e,t){const r={};if(fe.env.NODE_ENV!=="production"&&!At(e))return et("v-on with no argument expects an object value."),r;for(const n in e)r[t&&/[A-Z]/.test(n)?`on:${n}`:Ho(n)]=e[n];return r}const jw=e=>e?Ak(e)?Nv(e)||e.proxy:jw(e.parent):null,uf=Mr(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>fe.env.NODE_ENV!=="production"?hh(e.props):e.props,$attrs:e=>fe.env.NODE_ENV!=="production"?hh(e.attrs):e.attrs,$slots:e=>fe.env.NODE_ENV!=="production"?hh(e.slots):e.slots,$refs:e=>fe.env.NODE_ENV!=="production"?hh(e.refs):e.refs,$parent:e=>jw(e.parent),$root:e=>jw(e.root),$emit:e=>e.emit,$options:e=>Zw(e),$forceUpdate:e=>e.f||(e.f=()=>gv(e.update)),$nextTick:e=>e.n||(e.n=Xt.bind(e.proxy)),$watch:e=>pme.bind(e)}),Kw=e=>e==="_"||e==="$",Ww=(e,t)=>e!==wr&&!e.__isScriptSetup&&Wt(e,t),ek={get({_:e},t){const{ctx:r,setupState:n,data:a,props:i,accessCache:o,type:l,appContext:f}=e;if(fe.env.NODE_ENV!=="production"&&t==="__isVue")return!0;let c;if(t[0]!=="$"){const y=o[t];if(y!==void 0)switch(y){case 1:return n[t];case 2:return a[t];case 4:return r[t];case 3:return i[t]}else{if(Ww(n,t))return o[t]=1,n[t];if(a!==wr&&Wt(a,t))return o[t]=2,a[t];if((c=e.propsOptions[0])&&Wt(c,t))return o[t]=3,i[t];if(r!==wr&&Wt(r,t))return o[t]=4,r[t];Gw&&(o[t]=0)}}const d=uf[t];let v,m;if(d)return t==="$attrs"?(kn(e,"get",t),fe.env.NODE_ENV!=="production"&&_v()):fe.env.NODE_ENV!=="production"&&t==="$slots"&&kn(e,"get",t),d(e);if((v=l.__cssModules)&&(v=v[t]))return v;if(r!==wr&&Wt(r,t))return o[t]=4,r[t];if(m=f.config.globalProperties,Wt(m,t))return m[t];fe.env.NODE_ENV!=="production"&&mn&&(!It(t)||t.indexOf("__v")!==0)&&(a!==wr&&Kw(t[0])&&Wt(a,t)?et(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===mn&&et(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,r){const{data:n,setupState:a,ctx:i}=e;return Ww(a,t)?(a[t]=r,!0):fe.env.NODE_ENV!=="production"&&a.__isScriptSetup&&Wt(a,t)?(et(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):n!==wr&&Wt(n,t)?(n[t]=r,!0):Wt(e.props,t)?(fe.env.NODE_ENV!=="production"&&et(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(fe.env.NODE_ENV!=="production"&&et(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(fe.env.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(i,t,{enumerable:!0,configurable:!0,value:r}):i[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:a,propsOptions:i}},o){let l;return!!r[o]||e!==wr&&Wt(e,o)||Ww(t,o)||(l=i[0])&&Wt(l,o)||Wt(n,o)||Wt(uf,o)||Wt(a.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Wt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};fe.env.NODE_ENV!=="production"&&(ek.ownKeys=e=>(et("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function Sme(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(uf).forEach(r=>{Object.defineProperty(t,r,{configurable:!0,enumerable:!1,get:()=>uf[r](e),set:Qr})}),t}function Mme(e){const{ctx:t,propsOptions:[r]}=e;r&&Object.keys(r).forEach(n=>{Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e.props[n],set:Qr})})}function Cme(e){const{ctx:t,setupState:r}=e;Object.keys(Nt(r)).forEach(n=>{if(!r.__isScriptSetup){if(Kw(n[0])){et(`setup() return property ${JSON.stringify(n)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r[n],set:Qr})}})}function Pu(){return rk().slots}function tk(){return rk().attrs}function rk(){const e=Cr();return fe.env.NODE_ENV!=="production"&&!e&&et("useContext() called without active instance."),e.setupContext||(e.setupContext=Nk(e))}function nk(e){return ot(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function Tme(){const e=Object.create(null);return(t,r)=>{e[r]?et(`${t} property "${r}" is already defined in ${e[r]}.`):e[r]=t}}let Gw=!0;function Ame(e){const t=Zw(e),r=e.proxy,n=e.ctx;Gw=!1,t.beforeCreate&&ik(t.beforeCreate,e,"bc");const{data:a,computed:i,methods:o,watch:l,provide:f,inject:c,created:d,beforeMount:v,mounted:m,beforeUpdate:y,updated:b,activated:S,deactivated:T,beforeDestroy:C,beforeUnmount:I,destroyed:B,unmounted:N,render:R,renderTracked:P,renderTriggered:D,errorCaptured:$,serverPrefetch:U,expose:K,inheritAttrs:M,components:s,directives:h,filters:p}=t,g=fe.env.NODE_ENV!=="production"?Tme():null;if(fe.env.NODE_ENV!=="production"){const[w]=e.propsOptions;if(w)for(const A in w)g("Props",A)}if(c&&Ime(c,n,g),o)for(const w in o){const A=o[w];vt(A)?(fe.env.NODE_ENV!=="production"?Object.defineProperty(n,w,{value:A.bind(r),configurable:!0,enumerable:!0,writable:!0}):n[w]=A.bind(r),fe.env.NODE_ENV!=="production"&&g("Methods",w)):fe.env.NODE_ENV!=="production"&&et(`Method "${w}" has type "${typeof A}" in the component definition. Did you reference the function correctly?`)}if(a){fe.env.NODE_ENV!=="production"&&!vt(a)&&et("The data option must be a function. Plain object usage is no longer supported.");const w=a.call(r,r);if(fe.env.NODE_ENV!=="production"&&_w(w)&&et("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!At(w))fe.env.NODE_ENV!=="production"&&et("data() should return an object.");else if(e.data=vn(w),fe.env.NODE_ENV!=="production")for(const A in w)g("Data",A),Kw(A[0])||Object.defineProperty(n,A,{configurable:!0,enumerable:!0,get:()=>w[A],set:Qr})}if(Gw=!0,i)for(const w in i){const A=i[w],E=vt(A)?A.bind(r,r):vt(A.get)?A.get.bind(r,r):Qr;fe.env.NODE_ENV!=="production"&&E===Qr&&et(`Computed property "${w}" has no getter.`);const u=!vt(A)&&vt(A.set)?A.set.bind(r):fe.env.NODE_ENV!=="production"?()=>{et(`Write operation failed: computed property "${w}" is readonly.`)}:Qr,x=be({get:E,set:u});Object.defineProperty(n,w,{enumerable:!0,configurable:!0,get:()=>x.value,set:k=>x.value=k}),fe.env.NODE_ENV!=="production"&&g("Computed",w)}if(l)for(const w in l)ak(l[w],n,r,w);if(f){const w=vt(f)?f.call(r):f;Reflect.ownKeys(w).forEach(A=>{sn(A,w[A])})}d&&ik(d,e,"c");function _(w,A){ot(A)?A.forEach(E=>w(E.bind(r))):A&&w(A.bind(r))}if(_(G9,v),_(ur,m),_(gme,y),_(xh,b),_(j9,S),_(K9,T),_(wme,$),_(_me,P),_(bme,D),_(gn,I),_(xv,N),_(yme,U),ot(K))if(K.length){const w=e.exposed||(e.exposed={});K.forEach(A=>{Object.defineProperty(w,A,{get:()=>r[A],set:E=>r[A]=E})})}else e.exposed||(e.exposed={});R&&e.render===Qr&&(e.render=R),M!=null&&(e.inheritAttrs=M),s&&(e.components=s),h&&(e.directives=h)}function Ime(e,t,r=Qr){ot(e)&&(e=Jw(e));for(const n in e){const a=e[n];let i;At(a)?"default"in a?i=wt(a.from||n,a.default,!0):i=wt(a.from||n):i=wt(a),gr(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i,fe.env.NODE_ENV!=="production"&&r("Inject",n)}}function ik(e,t,r){aa(ot(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function ak(e,t,r,n){const a=n.includes(".")?$9(r,n):()=>r[n];if(It(e)){const i=t[e];vt(i)?dt(a,i):fe.env.NODE_ENV!=="production"&&et(`Invalid watch handler specified by key "${e}"`,i)}else if(vt(e))dt(a,e.bind(r));else if(At(e))if(ot(e))e.forEach(i=>ak(i,t,r,n));else{const i=vt(e.handler)?e.handler.bind(r):t[e.handler];vt(i)?dt(a,i,e):fe.env.NODE_ENV!=="production"&&et(`Invalid watch handler specified by key "${e.handler}"`,i)}else fe.env.NODE_ENV!=="production"&&et(`Invalid watch option: "${n}"`,e)}function Zw(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let f;return l?f=l:!a.length&&!r&&!n?f=t:(f={},a.length&&a.forEach(c=>Mv(f,c,o,!0)),Mv(f,t,o)),At(t)&&i.set(t,f),f}function Mv(e,t,r,n=!1){const{mixins:a,extends:i}=t;i&&Mv(e,i,r,!0),a&&a.forEach(o=>Mv(e,o,r,!0));for(const o in t)if(n&&o==="expose")fe.env.NODE_ENV!=="production"&&et('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const l=Bme[o]||r&&r[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Bme={data:ok,props:sk,emits:sk,methods:Sh,computed:Sh,beforeCreate:ai,created:ai,beforeMount:ai,mounted:ai,beforeUpdate:ai,updated:ai,beforeDestroy:ai,beforeUnmount:ai,destroyed:ai,unmounted:ai,activated:ai,deactivated:ai,errorCaptured:ai,serverPrefetch:ai,components:Sh,directives:Sh,watch:Nme,provide:ok,inject:kme};function ok(e,t){return t?e?function(){return Mr(vt(e)?e.call(this,this):e,vt(t)?t.call(this,this):t)}:t:e}function kme(e,t){return Sh(Jw(e),Jw(t))}function Jw(e){if(ot(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function ai(e,t){return e?[...new Set([].concat(e,t))]:t}function Sh(e,t){return e?Mr(Object.create(null),e,t):t}function sk(e,t){return e?ot(e)&&ot(t)?[...new Set([...e,...t])]:Mr(Object.create(null),nk(e),nk(t??{})):t}function Nme(e,t){if(!e)return t;if(!t)return e;const r=Mr(Object.create(null),e);for(const n in t)r[n]=ai(e[n],t[n]);return r}function lk(){return{app:null,config:{isNativeTag:VB,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ome=0;function Rme(e,t){return function(n,a=null){vt(n)||(n=Mr({},n)),a!=null&&!At(a)&&(fe.env.NODE_ENV!=="production"&&et("root props passed to app.mount() must be an object."),a=null);const i=lk();fe.env.NODE_ENV!=="production"&&Object.defineProperty(i.config,"unwrapInjectedRef",{get(){return!0},set(){et("app.config.unwrapInjectedRef has been deprecated. 3.3 now alawys unwraps injected refs in Options API.")}});const o=new Set;let l=!1;const f=i.app={_uid:Ome++,_component:n,_props:a,_container:null,_context:i,_instance:null,version:Rk,get config(){return i.config},set config(c){fe.env.NODE_ENV!=="production"&&et("app.config cannot be replaced. Modify individual options instead.")},use(c,...d){return o.has(c)?fe.env.NODE_ENV!=="production"&&et("Plugin has already been applied to target app."):c&&vt(c.install)?(o.add(c),c.install(f,...d)):vt(c)?(o.add(c),c(f,...d)):fe.env.NODE_ENV!=="production"&&et('A plugin must either be a function or an object with an "install" function.'),f},mixin(c){return i.mixins.includes(c)?fe.env.NODE_ENV!=="production"&&et("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):i.mixins.push(c),f},component(c,d){return fe.env.NODE_ENV!=="production"&&iE(c,i.config),d?(fe.env.NODE_ENV!=="production"&&i.components[c]&&et(`Component "${c}" has already been registered in target app.`),i.components[c]=d,f):i.components[c]},directive(c,d){return fe.env.NODE_ENV!=="production"&&U9(c),d?(fe.env.NODE_ENV!=="production"&&i.directives[c]&&et(`Directive "${c}" has already been registered in target app.`),i.directives[c]=d,f):i.directives[c]},mount(c,d,v){if(l)fe.env.NODE_ENV!=="production"&&et("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{fe.env.NODE_ENV!=="production"&&c.__vue_app__&&et("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const m=Et(n,a);return m.appContext=i,fe.env.NODE_ENV!=="production"&&(i.reload=()=>{e(Ca(m),c,v)}),d&&t?t(m,c):e(m,c,v),l=!0,f._container=c,c.__vue_app__=f,fe.env.NODE_ENV!=="production"&&(f._instance=m.component,Xve(f,Rk)),Nv(m.component)||m.component.proxy}},unmount(){l?(e(null,f._container),fe.env.NODE_ENV!=="production"&&(f._instance=null,Qve(f)),delete f._container.__vue_app__):fe.env.NODE_ENV!=="production"&&et("Cannot unmount an app that is not mounted.")},provide(c,d){return fe.env.NODE_ENV!=="production"&&c in i.provides&&et(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),i.provides[c]=d,f},runWithContext(c){Cv=f;try{return c()}finally{Cv=null}}};return f}}let Cv=null;function sn(e,t){if(!bn)fe.env.NODE_ENV!=="production"&&et("provide() can only be used inside setup().");else{let r=bn.provides;const n=bn.parent&&bn.parent.provides;n===r&&(r=bn.provides=Object.create(n)),r[e]=t}}function wt(e,t,r=!1){const n=bn||mn;if(n||Cv){const a=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:Cv._context.provides;if(a&&e in a)return a[e];if(arguments.length>1)return r&&vt(t)?t.call(n&&n.proxy):t;fe.env.NODE_ENV!=="production"&&et(`injection "${String(e)}" not found.`)}else fe.env.NODE_ENV!=="production"&&et("inject() can only be used inside setup() or functional components.")}function Pme(e,t,r,n=!1){const a={},i={};Yp(i,Bv,1),e.propsDefaults=Object.create(null),fk(e,t,a,i);for(const o in e.propsOptions[0])o in a||(a[o]=void 0);fe.env.NODE_ENV!=="production"&&pk(t||{},a,e),r?e.props=n?a:kve(a):e.type.props?e.props=a:e.props=i,e.attrs=i}function Fme(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function Lme(e,t,r,n){const{props:a,attrs:i,vnode:{patchFlag:o}}=e,l=Nt(a),[f]=e.propsOptions;let c=!1;if(!(fe.env.NODE_ENV!=="production"&&Fme(e))&&(n||o>0)&&!(o&16)){if(o&8){const d=e.vnode.dynamicProps;for(let v=0;v<d.length;v++){let m=d[v];if(yv(e.emitsOptions,m))continue;const y=t[m];if(f)if(Wt(i,m))y!==i[m]&&(i[m]=y,c=!0);else{const b=xa(m);a[b]=Yw(f,l,b,y,e,!1)}else y!==i[m]&&(i[m]=y,c=!0)}}}else{fk(e,t,a,i)&&(c=!0);let d;for(const v in l)(!t||!Wt(t,v)&&((d=fo(v))===v||!Wt(t,d)))&&(f?r&&(r[v]!==void 0||r[d]!==void 0)&&(a[v]=Yw(f,l,v,void 0,e,!0)):delete a[v]);if(i!==l)for(const v in i)(!t||!Wt(t,v))&&(delete i[v],c=!0)}c&&uo(e,"set","$attrs"),fe.env.NODE_ENV!=="production"&&pk(t||{},a,e)}function fk(e,t,r,n){const[a,i]=e.propsOptions;let o=!1,l;if(t)for(let f in t){if(Zp(f))continue;const c=t[f];let d;a&&Wt(a,d=xa(f))?!i||!i.includes(d)?r[d]=c:(l||(l={}))[d]=c:yv(e.emitsOptions,f)||(!(f in n)||c!==n[f])&&(n[f]=c,o=!0)}if(i){const f=Nt(r),c=l||wr;for(let d=0;d<i.length;d++){const v=i[d];r[v]=Yw(a,f,v,c[v],e,!Wt(c,v))}}return o}function Yw(e,t,r,n,a,i){const o=e[r];if(o!=null){const l=Wt(o,"default");if(l&&n===void 0){const f=o.default;if(o.type!==Function&&!o.skipFactory&&vt(f)){const{propsDefaults:c}=a;r in c?n=c[r]:(Du(a),n=c[r]=f.call(null,t),df())}else n=f}o[0]&&(i&&!l?n=!1:o[1]&&(n===""||n===fo(r))&&(n=!0))}return n}function uk(e,t,r=!1){const n=t.propsCache,a=n.get(e);if(a)return a;const i=e.props,o={},l=[];let f=!1;if(!vt(e)){const d=v=>{f=!0;const[m,y]=uk(v,t,!0);Mr(o,m),y&&l.push(...y)};!r&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!f)return At(e)&&n.set(e,Iu),Iu;if(ot(i))for(let d=0;d<i.length;d++){fe.env.NODE_ENV!=="production"&&!It(i[d])&&et("props must be strings when using array syntax.",i[d]);const v=xa(i[d]);ck(v)&&(o[v]=wr)}else if(i){fe.env.NODE_ENV!=="production"&&!At(i)&&et("invalid props options",i);for(const d in i){const v=xa(d);if(ck(v)){const m=i[d],y=o[v]=ot(m)||vt(m)?{type:m}:Mr({},m);if(y){const b=dk(Boolean,y.type),S=dk(String,y.type);y[0]=b>-1,y[1]=S<0||b<S,(b>-1||Wt(y,"default"))&&l.push(v)}}}}const c=[o,l];return At(e)&&n.set(e,c),c}function ck(e){return e[0]!=="$"?!0:(fe.env.NODE_ENV!=="production"&&et(`Invalid prop name: "${e}" is a reserved property.`),!1)}function Xw(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function hk(e,t){return Xw(e)===Xw(t)}function dk(e,t){return ot(t)?t.findIndex(r=>hk(r,e)):vt(t)&&hk(t,e)?0:-1}function pk(e,t,r){const n=Nt(t),a=r.propsOptions[0];for(const i in a){let o=a[i];o!=null&&Dme(i,n[i],o,!Wt(e,i)&&!Wt(e,fo(i)))}}function Dme(e,t,r,n){const{type:a,required:i,validator:o,skipCheck:l}=r;if(i&&n){et('Missing required prop: "'+e+'"');return}if(!(t==null&&!i)){if(a!=null&&a!==!0&&!l){let f=!1;const c=ot(a)?a:[a],d=[];for(let v=0;v<c.length&&!f;v++){const{valid:m,expectedType:y}=Ume(t,c[v]);d.push(y||""),f=m}if(!f){et(zme(e,t,d));return}}o&&!o(t)&&et('Invalid prop: custom validator check failed for prop "'+e+'".')}}const $me=Fs("String,Number,Boolean,Function,Symbol,BigInt");function Ume(e,t){let r;const n=Xw(t);if($me(n)){const a=typeof e;r=a===n.toLowerCase(),!r&&a==="object"&&(r=e instanceof t)}else n==="Object"?r=At(e):n==="Array"?r=ot(e):n==="null"?r=e===null:r=e instanceof t;return{valid:r,expectedType:n}}function zme(e,t,r){let n=`Invalid prop: type check failed for prop "${e}". Expected ${r.map(ef).join(" | ")}`;const a=r[0],i=ww(t),o=vk(t,a),l=vk(t,i);return r.length===1&&mk(a)&&!Vme(a,i)&&(n+=` with value ${o}`),n+=`, got ${i} `,mk(i)&&(n+=`with value ${l}.`),n}function vk(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function mk(e){return["string","number","boolean"].some(r=>e.toLowerCase()===r)}function Vme(...e){return e.some(t=>t.toLowerCase()==="boolean")}const gk=e=>e[0]==="_"||e==="$stable",Qw=e=>ot(e)?e.map(Ta):[Ta(e)],qme=(e,t,r)=>{if(t._n)return t;const n=st((...a)=>(fe.env.NODE_ENV!=="production"&&bn&&et(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Qw(t(...a))),r);return n._c=!1,n},yk=(e,t,r)=>{const n=e._ctx;for(const a in e){if(gk(a))continue;const i=e[a];if(vt(i))t[a]=qme(a,i,n);else if(i!=null){fe.env.NODE_ENV!=="production"&&et(`Non-function value encountered for slot "${a}". Prefer function slots for better performance.`);const o=Qw(i);t[a]=()=>o}}},bk=(e,t)=>{fe.env.NODE_ENV!=="production"&&!Eh(e.vnode)&&et("Non-function value encountered for default slot. Prefer function slots for better performance.");const r=Qw(t);e.slots.default=()=>r},Hme=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=Nt(t),Yp(t,"_",r)):yk(t,e.slots={})}else e.slots={},t&&bk(e,t);Yp(e.slots,Bv,1)},jme=(e,t,r)=>{const{vnode:n,slots:a}=e;let i=!0,o=wr;if(n.shapeFlag&32){const l=t._;l?fe.env.NODE_ENV!=="production"&&qs?(Mr(a,t),uo(e,"set","$slots")):r&&l===1?i=!1:(Mr(a,t),!r&&l===1&&delete a._):(i=!t.$stable,yk(t,a)),o=t}else t&&(bk(e,t),o={default:1});if(i)for(const l in a)!gk(l)&&!(l in o)&&delete a[l]};function eE(e,t,r,n,a=!1){if(ot(e)){e.forEach((m,y)=>eE(m,t&&(ot(t)?t[y]:t),r,n,a));return}if(wh(n)&&!a)return;const i=n.shapeFlag&4?Nv(n.component)||n.component.proxy:n.el,o=a?null:i,{i:l,r:f}=e;if(fe.env.NODE_ENV!=="production"&&!l){et("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const c=t&&t.r,d=l.refs===wr?l.refs={}:l.refs,v=l.setupState;if(c!=null&&c!==f&&(It(c)?(d[c]=null,Wt(v,c)&&(v[c]=null)):gr(c)&&(c.value=null)),vt(f))jo(f,l,12,[o,d]);else{const m=It(f),y=gr(f);if(m||y){const b=()=>{if(e.f){const S=m?Wt(v,f)?v[f]:d[f]:f.value;a?ot(S)&&bw(S,i):ot(S)?S.includes(i)||S.push(i):m?(d[f]=[i],Wt(v,f)&&(v[f]=d[f])):(f.value=[i],e.k&&(d[e.k]=f.value))}else m?(d[f]=o,Wt(v,f)&&(v[f]=o)):y?(f.value=o,e.k&&(d[e.k]=o)):fe.env.NODE_ENV!=="production"&&et("Invalid template ref type:",f,`(${typeof f})`)};o?(b.id=-1,mi(b,r)):b()}else fe.env.NODE_ENV!=="production"&&et("Invalid template ref type:",f,`(${typeof f})`)}}let Mh,js;function Wo(e,t){e.appContext.config.performance&&Tv()&&js.mark(`vue-${t}-${e.uid}`),fe.env.NODE_ENV!=="production"&&nme(e,t,Tv()?js.now():Date.now())}function Go(e,t){if(e.appContext.config.performance&&Tv()){const r=`vue-${t}-${e.uid}`,n=r+":end";js.mark(n),js.measure(`<${Ov(e,e.type)}> ${t}`,r,n),js.clearMarks(r),js.clearMarks(n)}fe.env.NODE_ENV!=="production"&&ime(e,t,Tv()?js.now():Date.now())}function Tv(){return Mh!==void 0||(typeof window<"u"&&window.performance?(Mh=!0,js=window.performance):Mh=!1),Mh}function Kme(){const e=[];if(fe.env.NODE_ENV!=="production"&&e.length){const t=e.length>1;console.warn(`Feature flag${t?"s":""} ${e.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
824
+ `],...Uve(r))}),t}function Uve({vnode:e,recurseCount:t}){const r=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,a=` at <${Ov(e.component,e.type,n)}`,i=">"+r;return e.props?[a,...zve(e.props),i]:[a+i]}function zve(e){const t=[],r=Object.keys(e);return r.slice(0,3).forEach(n=>{t.push(...E9(n,e[n]))}),r.length>3&&t.push(" ..."),t}function E9(e,t,r){return It(t)?(t=JSON.stringify(t),r?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?r?t:[`${e}=${t}`]:gr(t)?(t=E9(e,Nt(t.value),!0),r?t:[`${e}=Ref<`,t,">"]):vt(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Nt(t),r?t:[`${e}=`,t])}function Vve(e,t){fe.env.NODE_ENV!=="production"&&e!==void 0&&(typeof e!="number"?et(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&et(`${t} is NaN - the duration expression might be incorrect.`))}const kw={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function jo(e,t,r,n){let a;try{a=n?e(...n):e()}catch(i){mv(i,t,r)}return a}function aa(e,t,r,n){if(vt(e)){const i=jo(e,t,r,n);return i&&_w(i)&&i.catch(o=>{mv(o,t,r)}),i}const a=[];for(let i=0;i<e.length;i++)a.push(aa(e[i],t,r,n));return a}function mv(e,t,r,n=!0){const a=t?t.vnode:null;if(t){let i=t.parent;const o=t.proxy,l=fe.env.NODE_ENV!=="production"?kw[r]:r;for(;i;){const c=i.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,o,l)===!1)return}i=i.parent}const f=t.appContext.config.errorHandler;if(f){jo(f,null,10,[e,o,l]);return}}qve(e,r,a,n)}function qve(e,t,r,n=!0){if(fe.env.NODE_ENV!=="production"){const a=kw[t];if(r&&pv(r),et(`Unhandled error${a?` during execution of ${a}`:""}`),r&&vv(),n)throw e;console.error(e)}else console.error(e)}let ph=!1,Nw=!1;const jn=[];let co=0;const Ou=[];let ho=null,Vs=0;const x9=Promise.resolve();let Ow=null;const Hve=100;function Xt(e){const t=Ow||x9;return e?t.then(this?e.bind(this):e):t}function jve(e){let t=co+1,r=jn.length;for(;t<r;){const n=t+r>>>1;vh(jn[n])<e?t=n+1:r=n}return t}function gv(e){(!jn.length||!jn.includes(e,ph&&e.allowRecurse?co+1:co))&&(e.id==null?jn.push(e):jn.splice(jve(e.id),0,e),S9())}function S9(){!ph&&!Nw&&(Nw=!0,Ow=x9.then(A9))}function Kve(e){const t=jn.indexOf(e);t>co&&jn.splice(t,1)}function M9(e){ot(e)?Ou.push(...e):(!ho||!ho.includes(e,e.allowRecurse?Vs+1:Vs))&&Ou.push(e),S9()}function C9(e,t=ph?co+1:0){for(fe.env.NODE_ENV!=="production"&&(e=e||new Map);t<jn.length;t++){const r=jn[t];if(r&&r.pre){if(fe.env.NODE_ENV!=="production"&&Rw(e,r))continue;jn.splice(t,1),t--,r()}}}function T9(e){if(Ou.length){const t=[...new Set(Ou)];if(Ou.length=0,ho){ho.push(...t);return}for(ho=t,fe.env.NODE_ENV!=="production"&&(e=e||new Map),ho.sort((r,n)=>vh(r)-vh(n)),Vs=0;Vs<ho.length;Vs++)fe.env.NODE_ENV!=="production"&&Rw(e,ho[Vs])||ho[Vs]();ho=null,Vs=0}}const vh=e=>e.id==null?1/0:e.id,Wve=(e,t)=>{const r=vh(e)-vh(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function A9(e){Nw=!1,ph=!0,fe.env.NODE_ENV!=="production"&&(e=e||new Map),jn.sort(Wve);const t=fe.env.NODE_ENV!=="production"?r=>Rw(e,r):Qr;try{for(co=0;co<jn.length;co++){const r=jn[co];if(r&&r.active!==!1){if(fe.env.NODE_ENV!=="production"&&t(r))continue;jo(r,null,14)}}}finally{co=0,jn.length=0,T9(e),ph=!1,Ow=null,(jn.length||Ou.length)&&A9(e)}}function Rw(e,t){if(!e.has(t))e.set(t,1);else{const r=e.get(t);if(r>Hve){const n=t.ownerInstance,a=n&&oE(n.type);return et(`Maximum recursive updates exceeded${a?` in component <${a}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}else e.set(t,r+1)}}let qs=!1;const Ru=new Set;fe.env.NODE_ENV!=="production"&&(Xp().__VUE_HMR_RUNTIME__={createRecord:Pw(I9),rerender:Pw(Jve),reload:Pw(Yve)});const sf=new Map;function Gve(e){const t=e.type.__hmrId;let r=sf.get(t);r||(I9(t,e.type),r=sf.get(t)),r.instances.add(e)}function Zve(e){sf.get(e.type.__hmrId).instances.delete(e)}function I9(e,t){return sf.has(e)?!1:(sf.set(e,{initialDef:mh(t),instances:new Set}),!0)}function mh(e){return Ok(e)?e.__vccOpts:e}function Jve(e,t){const r=sf.get(e);r&&(r.initialDef.render=t,[...r.instances].forEach(n=>{t&&(n.render=t,mh(n.type).render=t),n.renderCache=[],qs=!0,n.update(),qs=!1}))}function Yve(e,t){const r=sf.get(e);if(!r)return;t=mh(t),B9(r.initialDef,t);const n=[...r.instances];for(const a of n){const i=mh(a.type);Ru.has(i)||(i!==r.initialDef&&B9(i,t),Ru.add(i)),a.appContext.propsCache.delete(a.type),a.appContext.emitsCache.delete(a.type),a.appContext.optionsCache.delete(a.type),a.ceReload?(Ru.add(i),a.ceReload(t.styles),Ru.delete(i)):a.parent?gv(a.parent.update):a.appContext.reload?a.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}M9(()=>{for(const a of n)Ru.delete(mh(a.type))})}function B9(e,t){Mr(e,t);for(const r in e)r!=="__file"&&!(r in t)&&delete e[r]}function Pw(e){return(t,r)=>{try{return e(t,r)}catch(n){console.error(n),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let po,gh=[],Fw=!1;function yh(e,...t){po?po.emit(e,...t):Fw||gh.push({event:e,args:t})}function k9(e,t){var r,n;po=e,po?(po.enabled=!0,gh.forEach(({event:a,args:i})=>po.emit(a,...i)),gh=[]):typeof window<"u"&&window.HTMLElement&&!((n=(r=window.navigator)==null?void 0:r.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{k9(i,t)}),setTimeout(()=>{po||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Fw=!0,gh=[])},3e3)):(Fw=!0,gh=[])}function Xve(e,t){yh("app:init",e,t,{Fragment:Ct,Text:Ks,Comment:yn,Static:Iv})}function Qve(e){yh("app:unmount",e)}const eme=Lw("component:added"),N9=Lw("component:updated"),tme=Lw("component:removed"),rme=e=>{po&&typeof po.cleanupBuffer=="function"&&!po.cleanupBuffer(e)&&tme(e)};function Lw(e){return t=>{yh(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const nme=O9("perf:start"),ime=O9("perf:end");function O9(e){return(t,r,n)=>{yh(e,t.appContext.app,t.uid,t,r,n)}}function ame(e,t,r){yh("component:emit",e.appContext.app,e,t,r)}function ome(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||wr;if(fe.env.NODE_ENV!=="production"){const{emitsOptions:d,propsOptions:[v]}=e;if(d)if(!(t in d))(!v||!(Ho(t)in v))&&et(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${Ho(t)}" prop.`);else{const m=d[t];vt(m)&&(m(...r)||et(`Invalid event arguments: event validation failed for event "${t}".`))}}let a=r;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in n){const d=`${o==="modelValue"?"model":o}Modifiers`,{number:v,trim:m}=n[d]||wr;m&&(a=r.map(y=>It(y)?y.trim():y)),v&&(a=r.map(Sw))}if(fe.env.NODE_ENV!=="production"&&ame(e,t,a),fe.env.NODE_ENV!=="production"){const d=t.toLowerCase();d!==t&&n[Ho(d)]&&et(`Event "${d}" is emitted in component ${Ov(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${fo(t)}" instead of "${t}".`)}let l,f=n[l=Ho(t)]||n[l=Ho(xa(t))];!f&&i&&(f=n[l=Ho(fo(t))]),f&&aa(f,e,6,a);const c=n[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,aa(c,e,6,a)}}function R9(e,t,r=!1){const n=t.emitsCache,a=n.get(e);if(a!==void 0)return a;const i=e.emits;let o={},l=!1;if(!vt(e)){const f=c=>{const d=R9(c,t,!0);d&&(l=!0,Mr(o,d))};!r&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!i&&!l?(At(e)&&n.set(e,null),null):(ot(i)?i.forEach(f=>o[f]=null):Mr(o,i),At(e)&&n.set(e,o),o)}function yv(e,t){return!e||!oh(t)?!1:(t=t.slice(2).replace(/Once$/,""),Wt(e,t[0].toLowerCase()+t.slice(1))||Wt(e,fo(t))||Wt(e,t))}let mn=null,P9=null;function bv(e){const t=mn;return mn=e,P9=e&&e.type.__scopeId||null,t}function lt(e,t=mn,r){if(!t||e._n)return e;const n=(...a)=>{n._d&&Ek(-1);const i=bv(t);let o;try{o=e(...a)}finally{bv(i),n._d&&Ek(1)}return fe.env.NODE_ENV!=="production"&&N9(t),o};return n._n=!0,n._c=!0,n._d=!0,n}let Dw=!1;function _v(){Dw=!0}function $w(e){const{type:t,vnode:r,proxy:n,withProxy:a,props:i,propsOptions:[o],slots:l,attrs:f,emit:c,render:d,renderCache:v,data:m,setupState:y,ctx:b,inheritAttrs:S}=e;let T,C;const I=bv(e);fe.env.NODE_ENV!=="production"&&(Dw=!1);try{if(r.shapeFlag&4){const R=a||n;T=Ta(d.call(R,R,v,i,y,m,b)),C=f}else{const R=t;fe.env.NODE_ENV!=="production"&&f===i&&_v(),T=Ta(R.length>1?R(i,fe.env.NODE_ENV!=="production"?{get attrs(){return _v(),f},slots:l,emit:c}:{attrs:f,slots:l,emit:c}):R(i,null)),C=t.props?f:lme(f)}}catch(R){Th.length=0,mv(R,e,1),T=Et(yn)}let B=T,N;if(fe.env.NODE_ENV!=="production"&&T.patchFlag>0&&T.patchFlag&2048&&([B,N]=sme(T)),C&&S!==!1){const R=Object.keys(C),{shapeFlag:P}=B;if(R.length){if(P&7)o&&R.some(Wp)&&(C=fme(C,o)),B=Ca(B,C);else if(fe.env.NODE_ENV!=="production"&&!Dw&&B.type!==yn){const D=Object.keys(f),$=[],U=[];for(let K=0,M=D.length;K<M;K++){const s=D[K];oh(s)?Wp(s)||$.push(s[2].toLowerCase()+s.slice(3)):U.push(s)}U.length&&et(`Extraneous non-props attributes (${U.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),$.length&&et(`Extraneous non-emits event listeners (${$.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return r.dirs&&(fe.env.NODE_ENV!=="production"&&!L9(B)&&et("Runtime directive used on component with non-element root node. The directives will not function as intended."),B=Ca(B),B.dirs=B.dirs?B.dirs.concat(r.dirs):r.dirs),r.transition&&(fe.env.NODE_ENV!=="production"&&!L9(B)&&et("Component inside <Transition> renders non-element root node that cannot be animated."),B.transition=r.transition),fe.env.NODE_ENV!=="production"&&N?N(B):T=B,bv(I),T}const sme=e=>{const t=e.children,r=e.dynamicChildren,n=F9(t);if(!n)return[e,void 0];const a=t.indexOf(n),i=r?r.indexOf(n):-1,o=l=>{t[a]=l,r&&(i>-1?r[i]=l:l.patchFlag>0&&(e.dynamicChildren=[...r,l]))};return[Ta(n),o]};function F9(e){let t;for(let r=0;r<e.length;r++){const n=e[r];if(Ma(n)){if(n.type!==yn||n.children==="v-if"){if(t)return;t=n}}else return}return t}const lme=e=>{let t;for(const r in e)(r==="class"||r==="style"||oh(r))&&((t||(t={}))[r]=e[r]);return t},fme=(e,t)=>{const r={};for(const n in e)(!Wp(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r},L9=e=>e.shapeFlag&7||e.type===yn;function ume(e,t,r){const{props:n,children:a,component:i}=e,{props:o,children:l,patchFlag:f}=t,c=i.emitsOptions;if(fe.env.NODE_ENV!=="production"&&(a||l)&&qs||t.dirs||t.transition)return!0;if(r&&f>=0){if(f&1024)return!0;if(f&16)return n?D9(n,o,c):!!o;if(f&8){const d=t.dynamicProps;for(let v=0;v<d.length;v++){const m=d[v];if(o[m]!==n[m]&&!yv(c,m))return!0}}}else return(a||l)&&(!l||!l.$stable)?!0:n===o?!1:n?o?D9(n,o,c):!0:!!o;return!1}function D9(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let a=0;a<n.length;a++){const i=n[a];if(t[i]!==e[i]&&!yv(r,i))return!0}return!1}function cme({vnode:e,parent:t},r){for(;t&&t.subTree===e;)(e=t.vnode).el=r,t=t.parent}const hme=e=>e.__isSuspense;function dme(e,t){t&&t.pendingBranch?ot(e)?t.effects.push(...e):t.effects.push(e):M9(e)}function Uw(e,t){return zw(e,null,t)}const wv={};function dt(e,t,r){return fe.env.NODE_ENV!=="production"&&!vt(t)&&et("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),zw(e,t,r)}function zw(e,t,{immediate:r,deep:n,flush:a,onTrack:i,onTrigger:o}=wr){var l;fe.env.NODE_ENV!=="production"&&!t&&(r!==void 0&&et('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),n!==void 0&&et('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const f=R=>{et("Invalid watch source: ",R,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=JB()===((l=bn)==null?void 0:l.scope)?bn:null;let d,v=!1,m=!1;if(gr(e)?(d=()=>e.value,v=hv(e)):af(e)?(d=()=>e,n=!0):ot(e)?(m=!0,v=e.some(R=>af(R)||hv(R)),d=()=>e.map(R=>{if(gr(R))return R.value;if(af(R))return lf(R);if(vt(R))return jo(R,c,2);fe.env.NODE_ENV!=="production"&&f(R)})):vt(e)?t?d=()=>jo(e,c,2):d=()=>{if(!(c&&c.isUnmounted))return y&&y(),aa(e,c,3,[b])}:(d=Qr,fe.env.NODE_ENV!=="production"&&f(e)),t&&n){const R=d;d=()=>lf(R())}let y,b=R=>{y=B.onStop=()=>{jo(R,c,4)}},S;if(Ih)if(b=Qr,t?r&&aa(t,c,3,[d(),m?[]:void 0,b]):d(),a==="sync"){const R=pge();S=R.__watcherHandles||(R.__watcherHandles=[])}else return Qr;let T=m?new Array(e.length).fill(wv):wv;const C=()=>{if(B.active)if(t){const R=B.run();(n||v||(m?R.some((P,D)=>fh(P,T[D])):fh(R,T)))&&(y&&y(),aa(t,c,3,[R,T===wv?void 0:m&&T[0]===wv?[]:T,b]),T=R)}else B.run()};C.allowRecurse=!!t;let I;a==="sync"?I=C:a==="post"?I=()=>mi(C,c&&c.suspense):(C.pre=!0,c&&(C.id=c.uid),I=()=>gv(C));const B=new Tw(d,I);fe.env.NODE_ENV!=="production"&&(B.onTrack=i,B.onTrigger=o),t?r?C():T=B.run():a==="post"?mi(B.run.bind(B),c&&c.suspense):B.run();const N=()=>{B.stop(),c&&c.scope&&bw(c.scope.effects,B)};return S&&S.push(N),N}function pme(e,t,r){const n=this.proxy,a=It(e)?e.includes(".")?$9(n,e):()=>n[e]:e.bind(n,n);let i;vt(t)?i=t:(i=t.handler,r=t);const o=bn;Du(this);const l=zw(a,i.bind(n),r);return o?Du(o):df(),l}function $9(e,t){const r=t.split(".");return()=>{let n=e;for(let a=0;a<r.length&&n;a++)n=n[r[a]];return n}}function lf(e,t){if(!At(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),gr(e))lf(e.value,t);else if(ot(e))for(let r=0;r<e.length;r++)lf(e[r],t);else if(Gp(e)||Ql(e))e.forEach(r=>{lf(r,t)});else if(Ew(e))for(const r in e)lf(e[r],t);return e}function U9(e){Upe(e)&&et("Do not use built-in directive ids as custom directive id: "+e)}function tn(e,t){const r=mn;if(r===null)return fe.env.NODE_ENV!=="production"&&et("withDirectives can only be used inside render functions."),e;const n=Nv(r)||r.proxy,a=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,l,f,c=wr]=t[i];o&&(vt(o)&&(o={mounted:o,updated:o}),o.deep&&lf(l),a.push({dir:o,instance:n,value:l,oldValue:void 0,arg:f,modifiers:c}))}return e}function ff(e,t,r,n){const a=e.dirs,i=t&&t.dirs;for(let o=0;o<a.length;o++){const l=a[o];i&&(l.oldValue=i[o].value);let f=l.dir[n];f&&(rf(),aa(f,r,8,[e.el,l,e,t]),nf())}}function z9(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ur(()=>{e.isMounted=!0}),gn(()=>{e.isUnmounting=!0}),e}const oa=[Function,Array],V9={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:oa,onEnter:oa,onAfterEnter:oa,onEnterCancelled:oa,onBeforeLeave:oa,onLeave:oa,onAfterLeave:oa,onLeaveCancelled:oa,onBeforeAppear:oa,onAppear:oa,onAfterAppear:oa,onAppearCancelled:oa},vme={name:"BaseTransition",props:V9,setup(e,{slots:t}){const r=Cr(),n=z9();let a;return()=>{const i=t.default&&qw(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){let S=!1;for(const T of i)if(T.type!==yn){if(fe.env.NODE_ENV!=="production"&&S){et("<transition> can only be used on a single element or component. Use <transition-group> for lists.");break}if(o=T,S=!0,fe.env.NODE_ENV==="production")break}}const l=Nt(e),{mode:f}=l;if(fe.env.NODE_ENV!=="production"&&f&&f!=="in-out"&&f!=="out-in"&&f!=="default"&&et(`invalid <transition> mode: ${f}`),n.isLeaving)return Vw(o);const c=H9(o);if(!c)return Vw(o);const d=bh(c,l,n,r);_h(c,d);const v=r.subTree,m=v&&H9(v);let y=!1;const{getTransitionKey:b}=c.type;if(b){const S=b();a===void 0?a=S:S!==a&&(a=S,y=!0)}if(m&&m.type!==yn&&(!hf(c,m)||y)){const S=bh(m,l,n,r);if(_h(m,S),f==="out-in")return n.isLeaving=!0,S.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&r.update()},Vw(o);f==="in-out"&&c.type!==yn&&(S.delayLeave=(T,C,I)=>{const B=q9(n,m);B[String(m.key)]=m,T._leaveCb=()=>{C(),T._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=I})}return o}}};function q9(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function bh(e,t,r,n){const{appear:a,mode:i,persisted:o=!1,onBeforeEnter:l,onEnter:f,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:v,onLeave:m,onAfterLeave:y,onLeaveCancelled:b,onBeforeAppear:S,onAppear:T,onAfterAppear:C,onAppearCancelled:I}=t,B=String(e.key),N=q9(r,e),R=($,U)=>{$&&aa($,n,9,U)},P=($,U)=>{const K=U[1];R($,U),ot($)?$.every(M=>M.length<=1)&&K():$.length<=1&&K()},D={mode:i,persisted:o,beforeEnter($){let U=l;if(!r.isMounted)if(a)U=S||l;else return;$._leaveCb&&$._leaveCb(!0);const K=N[B];K&&hf(e,K)&&K.el._leaveCb&&K.el._leaveCb(),R(U,[$])},enter($){let U=f,K=c,M=d;if(!r.isMounted)if(a)U=T||f,K=C||c,M=I||d;else return;let s=!1;const h=$._enterCb=p=>{s||(s=!0,p?R(M,[$]):R(K,[$]),D.delayedLeave&&D.delayedLeave(),$._enterCb=void 0)};U?P(U,[$,h]):h()},leave($,U){const K=String(e.key);if($._enterCb&&$._enterCb(!0),r.isUnmounting)return U();R(v,[$]);let M=!1;const s=$._leaveCb=h=>{M||(M=!0,U(),h?R(b,[$]):R(y,[$]),$._leaveCb=void 0,N[K]===e&&delete N[K])};N[K]=e,m?P(m,[$,s]):s()},clone($){return bh($,t,r,n)}};return D}function Vw(e){if(Eh(e))return e=Ca(e),e.children=null,e}function H9(e){return Eh(e)?e.children?e.children[0]:void 0:e}function _h(e,t){e.shapeFlag&6&&e.component?_h(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function qw(e,t=!1,r){let n=[],a=0;for(let i=0;i<e.length;i++){let o=e[i];const l=r==null?o.key:String(r)+String(o.key!=null?o.key:i);o.type===Ct?(o.patchFlag&128&&a++,n=n.concat(qw(o.children,t,l))):(t||o.type!==yn)&&n.push(l!=null?Ca(o,{key:l}):o)}if(a>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}function rt(e,t){return vt(e)?(()=>Mr({name:e.name},t,{setup:e}))():e}const wh=e=>!!e.type.__asyncLoader,Eh=e=>e.type.__isKeepAlive;function j9(e,t){W9(e,"a",t)}function K9(e,t){W9(e,"da",t)}function W9(e,t,r=bn){const n=e.__wdc||(e.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(Ev(t,n,r),r){let a=r.parent;for(;a&&a.parent;)Eh(a.parent.vnode)&&mme(n,t,r,a),a=a.parent}}function mme(e,t,r,n){const a=Ev(t,e,n,!0);xv(()=>{bw(n[t],a)},r)}function Ev(e,t,r=bn,n=!1){if(r){const a=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(r.isUnmounted)return;rf(),Du(r);const l=aa(t,r,e,o);return df(),nf(),l});return n?a.unshift(i):a.push(i),i}else if(fe.env.NODE_ENV!=="production"){const a=Ho(kw[e].replace(/ hook$/,""));et(`${a} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const Ko=e=>(t,r=bn)=>(!Ih||e==="sp")&&Ev(e,(...n)=>t(...n),r),G9=Ko("bm"),ur=Ko("m"),gme=Ko("bu"),xh=Ko("u"),gn=Ko("bum"),xv=Ko("um"),yme=Ko("sp"),bme=Ko("rtg"),_me=Ko("rtc");function wme(e,t=bn){Ev("ec",e,t)}const Sv="components",Eme="directives";function Hs(e,t){return Hw(Sv,e,!0,t)||e}const Z9=Symbol.for("v-ndc");function Nn(e){return It(e)?Hw(Sv,e,!1)||e:e||Z9}function J9(e){return Hw(Eme,e)}function Hw(e,t,r=!0,n=!1){const a=mn||bn;if(a){const i=a.type;if(e===Sv){const l=oE(i,!1);if(l&&(l===t||l===xa(t)||l===ef(xa(t))))return i}const o=Y9(a[e]||i[e],t)||Y9(a.appContext[e],t);if(!o&&n)return i;if(fe.env.NODE_ENV!=="production"&&r&&!o){const l=e===Sv?`
825
+ If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";et(`Failed to resolve ${e.slice(0,-1)}: ${t}${l}`)}return o}else fe.env.NODE_ENV!=="production"&&et(`resolve${ef(e.slice(0,-1))} can only be used in render() or setup().`)}function Y9(e,t){return e&&(e[t]||e[xa(t)]||e[ef(xa(t))])}function ii(e,t,r,n){let a;const i=r&&r[n];if(ot(e)||It(e)){a=new Array(e.length);for(let o=0,l=e.length;o<l;o++)a[o]=t(e[o],o,void 0,i&&i[o])}else if(typeof e=="number"){fe.env.NODE_ENV!=="production"&&!Number.isInteger(e)&&et(`The v-for range expect an integer value but got ${e}.`),a=new Array(e);for(let o=0;o<e;o++)a[o]=t(o+1,o,void 0,i&&i[o])}else if(At(e))if(e[Symbol.iterator])a=Array.from(e,(o,l)=>t(o,l,void 0,i&&i[l]));else{const o=Object.keys(e);a=new Array(o.length);for(let l=0,f=o.length;l<f;l++){const c=o[l];a[l]=t(e[c],c,l,i&&i[l])}}else a=[];return r&&(r[n]=a),a}function X9(e,t){for(let r=0;r<t.length;r++){const n=t[r];if(ot(n))for(let a=0;a<n.length;a++)e[n[a].name]=n[a].fn;else n&&(e[n.name]=n.key?(...a)=>{const i=n.fn(...a);return i&&(i.key=n.key),i}:n.fn)}return e}function yt(e,t,r={},n,a){if(mn.isCE||mn.parent&&wh(mn.parent)&&mn.parent.isCE)return t!=="default"&&(r.name=t),Et("slot",r,n&&n());let i=e[t];fe.env.NODE_ENV!=="production"&&i&&i.length>1&&(et("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),i=()=>[]),i&&i._c&&(i._d=!1),he();const o=i&&Q9(i(r)),l=nt(Ct,{key:r.key||o&&o.key||`_${t}`},o||(n?n():[]),o&&e._===1?64:-2);return!a&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Q9(e){return e.some(t=>Ma(t)?!(t.type===yn||t.type===Ct&&!Q9(t.children)):!0)?e:null}function xme(e,t){const r={};if(fe.env.NODE_ENV!=="production"&&!At(e))return et("v-on with no argument expects an object value."),r;for(const n in e)r[t&&/[A-Z]/.test(n)?`on:${n}`:Ho(n)]=e[n];return r}const jw=e=>e?Ak(e)?Nv(e)||e.proxy:jw(e.parent):null,uf=Mr(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>fe.env.NODE_ENV!=="production"?hh(e.props):e.props,$attrs:e=>fe.env.NODE_ENV!=="production"?hh(e.attrs):e.attrs,$slots:e=>fe.env.NODE_ENV!=="production"?hh(e.slots):e.slots,$refs:e=>fe.env.NODE_ENV!=="production"?hh(e.refs):e.refs,$parent:e=>jw(e.parent),$root:e=>jw(e.root),$emit:e=>e.emit,$options:e=>Zw(e),$forceUpdate:e=>e.f||(e.f=()=>gv(e.update)),$nextTick:e=>e.n||(e.n=Xt.bind(e.proxy)),$watch:e=>pme.bind(e)}),Kw=e=>e==="_"||e==="$",Ww=(e,t)=>e!==wr&&!e.__isScriptSetup&&Wt(e,t),ek={get({_:e},t){const{ctx:r,setupState:n,data:a,props:i,accessCache:o,type:l,appContext:f}=e;if(fe.env.NODE_ENV!=="production"&&t==="__isVue")return!0;let c;if(t[0]!=="$"){const y=o[t];if(y!==void 0)switch(y){case 1:return n[t];case 2:return a[t];case 4:return r[t];case 3:return i[t]}else{if(Ww(n,t))return o[t]=1,n[t];if(a!==wr&&Wt(a,t))return o[t]=2,a[t];if((c=e.propsOptions[0])&&Wt(c,t))return o[t]=3,i[t];if(r!==wr&&Wt(r,t))return o[t]=4,r[t];Gw&&(o[t]=0)}}const d=uf[t];let v,m;if(d)return t==="$attrs"?(kn(e,"get",t),fe.env.NODE_ENV!=="production"&&_v()):fe.env.NODE_ENV!=="production"&&t==="$slots"&&kn(e,"get",t),d(e);if((v=l.__cssModules)&&(v=v[t]))return v;if(r!==wr&&Wt(r,t))return o[t]=4,r[t];if(m=f.config.globalProperties,Wt(m,t))return m[t];fe.env.NODE_ENV!=="production"&&mn&&(!It(t)||t.indexOf("__v")!==0)&&(a!==wr&&Kw(t[0])&&Wt(a,t)?et(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===mn&&et(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,r){const{data:n,setupState:a,ctx:i}=e;return Ww(a,t)?(a[t]=r,!0):fe.env.NODE_ENV!=="production"&&a.__isScriptSetup&&Wt(a,t)?(et(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):n!==wr&&Wt(n,t)?(n[t]=r,!0):Wt(e.props,t)?(fe.env.NODE_ENV!=="production"&&et(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(fe.env.NODE_ENV!=="production"&&et(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(fe.env.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(i,t,{enumerable:!0,configurable:!0,value:r}):i[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:a,propsOptions:i}},o){let l;return!!r[o]||e!==wr&&Wt(e,o)||Ww(t,o)||(l=i[0])&&Wt(l,o)||Wt(n,o)||Wt(uf,o)||Wt(a.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Wt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};fe.env.NODE_ENV!=="production"&&(ek.ownKeys=e=>(et("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function Sme(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(uf).forEach(r=>{Object.defineProperty(t,r,{configurable:!0,enumerable:!1,get:()=>uf[r](e),set:Qr})}),t}function Mme(e){const{ctx:t,propsOptions:[r]}=e;r&&Object.keys(r).forEach(n=>{Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e.props[n],set:Qr})})}function Cme(e){const{ctx:t,setupState:r}=e;Object.keys(Nt(r)).forEach(n=>{if(!r.__isScriptSetup){if(Kw(n[0])){et(`setup() return property ${JSON.stringify(n)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r[n],set:Qr})}})}function Pu(){return rk().slots}function tk(){return rk().attrs}function rk(){const e=Cr();return fe.env.NODE_ENV!=="production"&&!e&&et("useContext() called without active instance."),e.setupContext||(e.setupContext=Nk(e))}function nk(e){return ot(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function Tme(){const e=Object.create(null);return(t,r)=>{e[r]?et(`${t} property "${r}" is already defined in ${e[r]}.`):e[r]=t}}let Gw=!0;function Ame(e){const t=Zw(e),r=e.proxy,n=e.ctx;Gw=!1,t.beforeCreate&&ik(t.beforeCreate,e,"bc");const{data:a,computed:i,methods:o,watch:l,provide:f,inject:c,created:d,beforeMount:v,mounted:m,beforeUpdate:y,updated:b,activated:S,deactivated:T,beforeDestroy:C,beforeUnmount:I,destroyed:B,unmounted:N,render:R,renderTracked:P,renderTriggered:D,errorCaptured:$,serverPrefetch:U,expose:K,inheritAttrs:M,components:s,directives:h,filters:p}=t,g=fe.env.NODE_ENV!=="production"?Tme():null;if(fe.env.NODE_ENV!=="production"){const[w]=e.propsOptions;if(w)for(const A in w)g("Props",A)}if(c&&Ime(c,n,g),o)for(const w in o){const A=o[w];vt(A)?(fe.env.NODE_ENV!=="production"?Object.defineProperty(n,w,{value:A.bind(r),configurable:!0,enumerable:!0,writable:!0}):n[w]=A.bind(r),fe.env.NODE_ENV!=="production"&&g("Methods",w)):fe.env.NODE_ENV!=="production"&&et(`Method "${w}" has type "${typeof A}" in the component definition. Did you reference the function correctly?`)}if(a){fe.env.NODE_ENV!=="production"&&!vt(a)&&et("The data option must be a function. Plain object usage is no longer supported.");const w=a.call(r,r);if(fe.env.NODE_ENV!=="production"&&_w(w)&&et("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!At(w))fe.env.NODE_ENV!=="production"&&et("data() should return an object.");else if(e.data=vn(w),fe.env.NODE_ENV!=="production")for(const A in w)g("Data",A),Kw(A[0])||Object.defineProperty(n,A,{configurable:!0,enumerable:!0,get:()=>w[A],set:Qr})}if(Gw=!0,i)for(const w in i){const A=i[w],E=vt(A)?A.bind(r,r):vt(A.get)?A.get.bind(r,r):Qr;fe.env.NODE_ENV!=="production"&&E===Qr&&et(`Computed property "${w}" has no getter.`);const u=!vt(A)&&vt(A.set)?A.set.bind(r):fe.env.NODE_ENV!=="production"?()=>{et(`Write operation failed: computed property "${w}" is readonly.`)}:Qr,x=be({get:E,set:u});Object.defineProperty(n,w,{enumerable:!0,configurable:!0,get:()=>x.value,set:k=>x.value=k}),fe.env.NODE_ENV!=="production"&&g("Computed",w)}if(l)for(const w in l)ak(l[w],n,r,w);if(f){const w=vt(f)?f.call(r):f;Reflect.ownKeys(w).forEach(A=>{sn(A,w[A])})}d&&ik(d,e,"c");function _(w,A){ot(A)?A.forEach(E=>w(E.bind(r))):A&&w(A.bind(r))}if(_(G9,v),_(ur,m),_(gme,y),_(xh,b),_(j9,S),_(K9,T),_(wme,$),_(_me,P),_(bme,D),_(gn,I),_(xv,N),_(yme,U),ot(K))if(K.length){const w=e.exposed||(e.exposed={});K.forEach(A=>{Object.defineProperty(w,A,{get:()=>r[A],set:E=>r[A]=E})})}else e.exposed||(e.exposed={});R&&e.render===Qr&&(e.render=R),M!=null&&(e.inheritAttrs=M),s&&(e.components=s),h&&(e.directives=h)}function Ime(e,t,r=Qr){ot(e)&&(e=Jw(e));for(const n in e){const a=e[n];let i;At(a)?"default"in a?i=wt(a.from||n,a.default,!0):i=wt(a.from||n):i=wt(a),gr(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i,fe.env.NODE_ENV!=="production"&&r("Inject",n)}}function ik(e,t,r){aa(ot(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function ak(e,t,r,n){const a=n.includes(".")?$9(r,n):()=>r[n];if(It(e)){const i=t[e];vt(i)?dt(a,i):fe.env.NODE_ENV!=="production"&&et(`Invalid watch handler specified by key "${e}"`,i)}else if(vt(e))dt(a,e.bind(r));else if(At(e))if(ot(e))e.forEach(i=>ak(i,t,r,n));else{const i=vt(e.handler)?e.handler.bind(r):t[e.handler];vt(i)?dt(a,i,e):fe.env.NODE_ENV!=="production"&&et(`Invalid watch handler specified by key "${e.handler}"`,i)}else fe.env.NODE_ENV!=="production"&&et(`Invalid watch option: "${n}"`,e)}function Zw(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let f;return l?f=l:!a.length&&!r&&!n?f=t:(f={},a.length&&a.forEach(c=>Mv(f,c,o,!0)),Mv(f,t,o)),At(t)&&i.set(t,f),f}function Mv(e,t,r,n=!1){const{mixins:a,extends:i}=t;i&&Mv(e,i,r,!0),a&&a.forEach(o=>Mv(e,o,r,!0));for(const o in t)if(n&&o==="expose")fe.env.NODE_ENV!=="production"&&et('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const l=Bme[o]||r&&r[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Bme={data:ok,props:sk,emits:sk,methods:Sh,computed:Sh,beforeCreate:ai,created:ai,beforeMount:ai,mounted:ai,beforeUpdate:ai,updated:ai,beforeDestroy:ai,beforeUnmount:ai,destroyed:ai,unmounted:ai,activated:ai,deactivated:ai,errorCaptured:ai,serverPrefetch:ai,components:Sh,directives:Sh,watch:Nme,provide:ok,inject:kme};function ok(e,t){return t?e?function(){return Mr(vt(e)?e.call(this,this):e,vt(t)?t.call(this,this):t)}:t:e}function kme(e,t){return Sh(Jw(e),Jw(t))}function Jw(e){if(ot(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function ai(e,t){return e?[...new Set([].concat(e,t))]:t}function Sh(e,t){return e?Mr(Object.create(null),e,t):t}function sk(e,t){return e?ot(e)&&ot(t)?[...new Set([...e,...t])]:Mr(Object.create(null),nk(e),nk(t??{})):t}function Nme(e,t){if(!e)return t;if(!t)return e;const r=Mr(Object.create(null),e);for(const n in t)r[n]=ai(e[n],t[n]);return r}function lk(){return{app:null,config:{isNativeTag:VB,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ome=0;function Rme(e,t){return function(n,a=null){vt(n)||(n=Mr({},n)),a!=null&&!At(a)&&(fe.env.NODE_ENV!=="production"&&et("root props passed to app.mount() must be an object."),a=null);const i=lk();fe.env.NODE_ENV!=="production"&&Object.defineProperty(i.config,"unwrapInjectedRef",{get(){return!0},set(){et("app.config.unwrapInjectedRef has been deprecated. 3.3 now alawys unwraps injected refs in Options API.")}});const o=new Set;let l=!1;const f=i.app={_uid:Ome++,_component:n,_props:a,_container:null,_context:i,_instance:null,version:Rk,get config(){return i.config},set config(c){fe.env.NODE_ENV!=="production"&&et("app.config cannot be replaced. Modify individual options instead.")},use(c,...d){return o.has(c)?fe.env.NODE_ENV!=="production"&&et("Plugin has already been applied to target app."):c&&vt(c.install)?(o.add(c),c.install(f,...d)):vt(c)?(o.add(c),c(f,...d)):fe.env.NODE_ENV!=="production"&&et('A plugin must either be a function or an object with an "install" function.'),f},mixin(c){return i.mixins.includes(c)?fe.env.NODE_ENV!=="production"&&et("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):i.mixins.push(c),f},component(c,d){return fe.env.NODE_ENV!=="production"&&iE(c,i.config),d?(fe.env.NODE_ENV!=="production"&&i.components[c]&&et(`Component "${c}" has already been registered in target app.`),i.components[c]=d,f):i.components[c]},directive(c,d){return fe.env.NODE_ENV!=="production"&&U9(c),d?(fe.env.NODE_ENV!=="production"&&i.directives[c]&&et(`Directive "${c}" has already been registered in target app.`),i.directives[c]=d,f):i.directives[c]},mount(c,d,v){if(l)fe.env.NODE_ENV!=="production"&&et("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{fe.env.NODE_ENV!=="production"&&c.__vue_app__&&et("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const m=Et(n,a);return m.appContext=i,fe.env.NODE_ENV!=="production"&&(i.reload=()=>{e(Ca(m),c,v)}),d&&t?t(m,c):e(m,c,v),l=!0,f._container=c,c.__vue_app__=f,fe.env.NODE_ENV!=="production"&&(f._instance=m.component,Xve(f,Rk)),Nv(m.component)||m.component.proxy}},unmount(){l?(e(null,f._container),fe.env.NODE_ENV!=="production"&&(f._instance=null,Qve(f)),delete f._container.__vue_app__):fe.env.NODE_ENV!=="production"&&et("Cannot unmount an app that is not mounted.")},provide(c,d){return fe.env.NODE_ENV!=="production"&&c in i.provides&&et(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),i.provides[c]=d,f},runWithContext(c){Cv=f;try{return c()}finally{Cv=null}}};return f}}let Cv=null;function sn(e,t){if(!bn)fe.env.NODE_ENV!=="production"&&et("provide() can only be used inside setup().");else{let r=bn.provides;const n=bn.parent&&bn.parent.provides;n===r&&(r=bn.provides=Object.create(n)),r[e]=t}}function wt(e,t,r=!1){const n=bn||mn;if(n||Cv){const a=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:Cv._context.provides;if(a&&e in a)return a[e];if(arguments.length>1)return r&&vt(t)?t.call(n&&n.proxy):t;fe.env.NODE_ENV!=="production"&&et(`injection "${String(e)}" not found.`)}else fe.env.NODE_ENV!=="production"&&et("inject() can only be used inside setup() or functional components.")}function Pme(e,t,r,n=!1){const a={},i={};Yp(i,Bv,1),e.propsDefaults=Object.create(null),fk(e,t,a,i);for(const o in e.propsOptions[0])o in a||(a[o]=void 0);fe.env.NODE_ENV!=="production"&&pk(t||{},a,e),r?e.props=n?a:kve(a):e.type.props?e.props=a:e.props=i,e.attrs=i}function Fme(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function Lme(e,t,r,n){const{props:a,attrs:i,vnode:{patchFlag:o}}=e,l=Nt(a),[f]=e.propsOptions;let c=!1;if(!(fe.env.NODE_ENV!=="production"&&Fme(e))&&(n||o>0)&&!(o&16)){if(o&8){const d=e.vnode.dynamicProps;for(let v=0;v<d.length;v++){let m=d[v];if(yv(e.emitsOptions,m))continue;const y=t[m];if(f)if(Wt(i,m))y!==i[m]&&(i[m]=y,c=!0);else{const b=xa(m);a[b]=Yw(f,l,b,y,e,!1)}else y!==i[m]&&(i[m]=y,c=!0)}}}else{fk(e,t,a,i)&&(c=!0);let d;for(const v in l)(!t||!Wt(t,v)&&((d=fo(v))===v||!Wt(t,d)))&&(f?r&&(r[v]!==void 0||r[d]!==void 0)&&(a[v]=Yw(f,l,v,void 0,e,!0)):delete a[v]);if(i!==l)for(const v in i)(!t||!Wt(t,v))&&(delete i[v],c=!0)}c&&uo(e,"set","$attrs"),fe.env.NODE_ENV!=="production"&&pk(t||{},a,e)}function fk(e,t,r,n){const[a,i]=e.propsOptions;let o=!1,l;if(t)for(let f in t){if(Zp(f))continue;const c=t[f];let d;a&&Wt(a,d=xa(f))?!i||!i.includes(d)?r[d]=c:(l||(l={}))[d]=c:yv(e.emitsOptions,f)||(!(f in n)||c!==n[f])&&(n[f]=c,o=!0)}if(i){const f=Nt(r),c=l||wr;for(let d=0;d<i.length;d++){const v=i[d];r[v]=Yw(a,f,v,c[v],e,!Wt(c,v))}}return o}function Yw(e,t,r,n,a,i){const o=e[r];if(o!=null){const l=Wt(o,"default");if(l&&n===void 0){const f=o.default;if(o.type!==Function&&!o.skipFactory&&vt(f)){const{propsDefaults:c}=a;r in c?n=c[r]:(Du(a),n=c[r]=f.call(null,t),df())}else n=f}o[0]&&(i&&!l?n=!1:o[1]&&(n===""||n===fo(r))&&(n=!0))}return n}function uk(e,t,r=!1){const n=t.propsCache,a=n.get(e);if(a)return a;const i=e.props,o={},l=[];let f=!1;if(!vt(e)){const d=v=>{f=!0;const[m,y]=uk(v,t,!0);Mr(o,m),y&&l.push(...y)};!r&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!f)return At(e)&&n.set(e,Iu),Iu;if(ot(i))for(let d=0;d<i.length;d++){fe.env.NODE_ENV!=="production"&&!It(i[d])&&et("props must be strings when using array syntax.",i[d]);const v=xa(i[d]);ck(v)&&(o[v]=wr)}else if(i){fe.env.NODE_ENV!=="production"&&!At(i)&&et("invalid props options",i);for(const d in i){const v=xa(d);if(ck(v)){const m=i[d],y=o[v]=ot(m)||vt(m)?{type:m}:Mr({},m);if(y){const b=dk(Boolean,y.type),S=dk(String,y.type);y[0]=b>-1,y[1]=S<0||b<S,(b>-1||Wt(y,"default"))&&l.push(v)}}}}const c=[o,l];return At(e)&&n.set(e,c),c}function ck(e){return e[0]!=="$"?!0:(fe.env.NODE_ENV!=="production"&&et(`Invalid prop name: "${e}" is a reserved property.`),!1)}function Xw(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function hk(e,t){return Xw(e)===Xw(t)}function dk(e,t){return ot(t)?t.findIndex(r=>hk(r,e)):vt(t)&&hk(t,e)?0:-1}function pk(e,t,r){const n=Nt(t),a=r.propsOptions[0];for(const i in a){let o=a[i];o!=null&&Dme(i,n[i],o,!Wt(e,i)&&!Wt(e,fo(i)))}}function Dme(e,t,r,n){const{type:a,required:i,validator:o,skipCheck:l}=r;if(i&&n){et('Missing required prop: "'+e+'"');return}if(!(t==null&&!i)){if(a!=null&&a!==!0&&!l){let f=!1;const c=ot(a)?a:[a],d=[];for(let v=0;v<c.length&&!f;v++){const{valid:m,expectedType:y}=Ume(t,c[v]);d.push(y||""),f=m}if(!f){et(zme(e,t,d));return}}o&&!o(t)&&et('Invalid prop: custom validator check failed for prop "'+e+'".')}}const $me=Fs("String,Number,Boolean,Function,Symbol,BigInt");function Ume(e,t){let r;const n=Xw(t);if($me(n)){const a=typeof e;r=a===n.toLowerCase(),!r&&a==="object"&&(r=e instanceof t)}else n==="Object"?r=At(e):n==="Array"?r=ot(e):n==="null"?r=e===null:r=e instanceof t;return{valid:r,expectedType:n}}function zme(e,t,r){let n=`Invalid prop: type check failed for prop "${e}". Expected ${r.map(ef).join(" | ")}`;const a=r[0],i=ww(t),o=vk(t,a),l=vk(t,i);return r.length===1&&mk(a)&&!Vme(a,i)&&(n+=` with value ${o}`),n+=`, got ${i} `,mk(i)&&(n+=`with value ${l}.`),n}function vk(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function mk(e){return["string","number","boolean"].some(r=>e.toLowerCase()===r)}function Vme(...e){return e.some(t=>t.toLowerCase()==="boolean")}const gk=e=>e[0]==="_"||e==="$stable",Qw=e=>ot(e)?e.map(Ta):[Ta(e)],qme=(e,t,r)=>{if(t._n)return t;const n=lt((...a)=>(fe.env.NODE_ENV!=="production"&&bn&&et(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Qw(t(...a))),r);return n._c=!1,n},yk=(e,t,r)=>{const n=e._ctx;for(const a in e){if(gk(a))continue;const i=e[a];if(vt(i))t[a]=qme(a,i,n);else if(i!=null){fe.env.NODE_ENV!=="production"&&et(`Non-function value encountered for slot "${a}". Prefer function slots for better performance.`);const o=Qw(i);t[a]=()=>o}}},bk=(e,t)=>{fe.env.NODE_ENV!=="production"&&!Eh(e.vnode)&&et("Non-function value encountered for default slot. Prefer function slots for better performance.");const r=Qw(t);e.slots.default=()=>r},Hme=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=Nt(t),Yp(t,"_",r)):yk(t,e.slots={})}else e.slots={},t&&bk(e,t);Yp(e.slots,Bv,1)},jme=(e,t,r)=>{const{vnode:n,slots:a}=e;let i=!0,o=wr;if(n.shapeFlag&32){const l=t._;l?fe.env.NODE_ENV!=="production"&&qs?(Mr(a,t),uo(e,"set","$slots")):r&&l===1?i=!1:(Mr(a,t),!r&&l===1&&delete a._):(i=!t.$stable,yk(t,a)),o=t}else t&&(bk(e,t),o={default:1});if(i)for(const l in a)!gk(l)&&!(l in o)&&delete a[l]};function eE(e,t,r,n,a=!1){if(ot(e)){e.forEach((m,y)=>eE(m,t&&(ot(t)?t[y]:t),r,n,a));return}if(wh(n)&&!a)return;const i=n.shapeFlag&4?Nv(n.component)||n.component.proxy:n.el,o=a?null:i,{i:l,r:f}=e;if(fe.env.NODE_ENV!=="production"&&!l){et("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const c=t&&t.r,d=l.refs===wr?l.refs={}:l.refs,v=l.setupState;if(c!=null&&c!==f&&(It(c)?(d[c]=null,Wt(v,c)&&(v[c]=null)):gr(c)&&(c.value=null)),vt(f))jo(f,l,12,[o,d]);else{const m=It(f),y=gr(f);if(m||y){const b=()=>{if(e.f){const S=m?Wt(v,f)?v[f]:d[f]:f.value;a?ot(S)&&bw(S,i):ot(S)?S.includes(i)||S.push(i):m?(d[f]=[i],Wt(v,f)&&(v[f]=d[f])):(f.value=[i],e.k&&(d[e.k]=f.value))}else m?(d[f]=o,Wt(v,f)&&(v[f]=o)):y?(f.value=o,e.k&&(d[e.k]=o)):fe.env.NODE_ENV!=="production"&&et("Invalid template ref type:",f,`(${typeof f})`)};o?(b.id=-1,mi(b,r)):b()}else fe.env.NODE_ENV!=="production"&&et("Invalid template ref type:",f,`(${typeof f})`)}}let Mh,js;function Wo(e,t){e.appContext.config.performance&&Tv()&&js.mark(`vue-${t}-${e.uid}`),fe.env.NODE_ENV!=="production"&&nme(e,t,Tv()?js.now():Date.now())}function Go(e,t){if(e.appContext.config.performance&&Tv()){const r=`vue-${t}-${e.uid}`,n=r+":end";js.mark(n),js.measure(`<${Ov(e,e.type)}> ${t}`,r,n),js.clearMarks(r),js.clearMarks(n)}fe.env.NODE_ENV!=="production"&&ime(e,t,Tv()?js.now():Date.now())}function Tv(){return Mh!==void 0||(typeof window<"u"&&window.performance?(Mh=!0,js=window.performance):Mh=!1),Mh}function Kme(){const e=[];if(fe.env.NODE_ENV!=="production"&&e.length){const t=e.length>1;console.warn(`Feature flag${t?"s":""} ${e.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
826
826
 
827
827
  For more details, see https://link.vuejs.org/feature-flags.`)}}const mi=dme;function Wme(e){return Gme(e)}function Gme(e,t){Kme();const r=Xp();r.__VUE__=!0,fe.env.NODE_ENV!=="production"&&k9(r.__VUE_DEVTOOLS_GLOBAL_HOOK__,r);const{insert:n,remove:a,patchProp:i,createElement:o,createText:l,createComment:f,setText:c,setElementText:d,parentNode:v,nextSibling:m,setScopeId:y=Qr,insertStaticContent:b}=e,S=(j,ae,se,V=null,L=null,F=null,z=!1,le=null,Q=fe.env.NODE_ENV!=="production"&&qs?!1:!!ae.dynamicChildren)=>{if(j===ae)return;j&&!hf(j,ae)&&(V=ie(j),O(j,L,F,!0),j=null),ae.patchFlag===-2&&(Q=!1,ae.dynamicChildren=null);const{type:re,ref:ue,shapeFlag:H}=ae;switch(re){case Ks:T(j,ae,se,V);break;case yn:C(j,ae,se,V);break;case Iv:j==null?I(ae,se,V,z):fe.env.NODE_ENV!=="production"&&B(j,ae,se,z);break;case Ct:h(j,ae,se,V,L,F,z,le,Q);break;default:H&1?P(j,ae,se,V,L,F,z,le,Q):H&6?p(j,ae,se,V,L,F,z,le,Q):H&64||H&128?re.process(j,ae,se,V,L,F,z,le,Q,ce):fe.env.NODE_ENV!=="production"&&et("Invalid VNode type:",re,`(${typeof re})`)}ue!=null&&L&&eE(ue,j&&j.ref,F,ae||j,!ae)},T=(j,ae,se,V)=>{if(j==null)n(ae.el=l(ae.children),se,V);else{const L=ae.el=j.el;ae.children!==j.children&&c(L,ae.children)}},C=(j,ae,se,V)=>{j==null?n(ae.el=f(ae.children||""),se,V):ae.el=j.el},I=(j,ae,se,V)=>{[j.el,j.anchor]=b(j.children,ae,se,V,j.el,j.anchor)},B=(j,ae,se,V)=>{if(ae.children!==j.children){const L=m(j.anchor);R(j),[ae.el,ae.anchor]=b(ae.children,se,L,V)}else ae.el=j.el,ae.anchor=j.anchor},N=({el:j,anchor:ae},se,V)=>{let L;for(;j&&j!==ae;)L=m(j),n(j,se,V),j=L;n(ae,se,V)},R=({el:j,anchor:ae})=>{let se;for(;j&&j!==ae;)se=m(j),a(j),j=se;a(ae)},P=(j,ae,se,V,L,F,z,le,Q)=>{z=z||ae.type==="svg",j==null?D(ae,se,V,L,F,z,le,Q):K(j,ae,L,F,z,le,Q)},D=(j,ae,se,V,L,F,z,le)=>{let Q,re;const{type:ue,props:H,shapeFlag:G,transition:me,dirs:oe}=j;if(Q=j.el=o(j.type,F,H&&H.is,H),G&8?d(Q,j.children):G&16&&U(j.children,Q,null,V,L,F&&ue!=="foreignObject",z,le),oe&&ff(j,null,V,"created"),$(Q,j,j.scopeId,z,V),H){for(const Xe in H)Xe!=="value"&&!Zp(Xe)&&i(Q,Xe,null,H[Xe],F,j.children,V,L,X);"value"in H&&i(Q,"value",null,H.value),(re=H.onVnodeBeforeMount)&&vo(re,V,j)}fe.env.NODE_ENV!=="production"&&(Object.defineProperty(Q,"__vnode",{value:j,enumerable:!1}),Object.defineProperty(Q,"__vueParentComponent",{value:V,enumerable:!1})),oe&&ff(j,null,V,"beforeMount");const de=(!L||L&&!L.pendingBranch)&&me&&!me.persisted;de&&me.beforeEnter(Q),n(Q,ae,se),((re=H&&H.onVnodeMounted)||de||oe)&&mi(()=>{re&&vo(re,V,j),de&&me.enter(Q),oe&&ff(j,null,V,"mounted")},L)},$=(j,ae,se,V,L)=>{if(se&&y(j,se),V)for(let F=0;F<V.length;F++)y(j,V[F]);if(L){let F=L.subTree;if(fe.env.NODE_ENV!=="production"&&F.patchFlag>0&&F.patchFlag&2048&&(F=F9(F.children)||F),ae===F){const z=L.vnode;$(j,z,z.scopeId,z.slotScopeIds,L.parent)}}},U=(j,ae,se,V,L,F,z,le,Q=0)=>{for(let re=Q;re<j.length;re++){const ue=j[re]=le?Ws(j[re]):Ta(j[re]);S(null,ue,ae,se,V,L,F,z,le)}},K=(j,ae,se,V,L,F,z)=>{const le=ae.el=j.el;let{patchFlag:Q,dynamicChildren:re,dirs:ue}=ae;Q|=j.patchFlag&16;const H=j.props||wr,G=ae.props||wr;let me;se&&cf(se,!1),(me=G.onVnodeBeforeUpdate)&&vo(me,se,ae,j),ue&&ff(ae,j,se,"beforeUpdate"),se&&cf(se,!0),fe.env.NODE_ENV!=="production"&&qs&&(Q=0,z=!1,re=null);const oe=L&&ae.type!=="foreignObject";if(re?(M(j.dynamicChildren,re,le,se,V,oe,F),fe.env.NODE_ENV!=="production"&&Ch(j,ae)):z||E(j,ae,le,null,se,V,oe,F,!1),Q>0){if(Q&16)s(le,ae,H,G,se,V,L);else if(Q&2&&H.class!==G.class&&i(le,"class",null,G.class,L),Q&4&&i(le,"style",H.style,G.style,L),Q&8){const de=ae.dynamicProps;for(let Xe=0;Xe<de.length;Xe++){const Ee=de[Xe],Se=H[Ee],_e=G[Ee];(_e!==Se||Ee==="value")&&i(le,Ee,Se,_e,L,j.children,se,V,X)}}Q&1&&j.children!==ae.children&&d(le,ae.children)}else!z&&re==null&&s(le,ae,H,G,se,V,L);((me=G.onVnodeUpdated)||ue)&&mi(()=>{me&&vo(me,se,ae,j),ue&&ff(ae,j,se,"updated")},V)},M=(j,ae,se,V,L,F,z)=>{for(let le=0;le<ae.length;le++){const Q=j[le],re=ae[le],ue=Q.el&&(Q.type===Ct||!hf(Q,re)||Q.shapeFlag&70)?v(Q.el):se;S(Q,re,ue,null,V,L,F,z,!0)}},s=(j,ae,se,V,L,F,z)=>{if(se!==V){if(se!==wr)for(const le in se)!Zp(le)&&!(le in V)&&i(j,le,se[le],null,z,ae.children,L,F,X);for(const le in V){if(Zp(le))continue;const Q=V[le],re=se[le];Q!==re&&le!=="value"&&i(j,le,re,Q,z,ae.children,L,F,X)}"value"in V&&i(j,"value",se.value,V.value)}},h=(j,ae,se,V,L,F,z,le,Q)=>{const re=ae.el=j?j.el:l(""),ue=ae.anchor=j?j.anchor:l("");let{patchFlag:H,dynamicChildren:G,slotScopeIds:me}=ae;fe.env.NODE_ENV!=="production"&&(qs||H&2048)&&(H=0,Q=!1,G=null),me&&(le=le?le.concat(me):me),j==null?(n(re,se,V),n(ue,se,V),U(ae.children,se,ue,L,F,z,le,Q)):H>0&&H&64&&G&&j.dynamicChildren?(M(j.dynamicChildren,G,se,L,F,z,le),fe.env.NODE_ENV!=="production"?Ch(j,ae):(ae.key!=null||L&&ae===L.subTree)&&Ch(j,ae,!0)):E(j,ae,se,ue,L,F,z,le,Q)},p=(j,ae,se,V,L,F,z,le,Q)=>{ae.slotScopeIds=le,j==null?ae.shapeFlag&512?L.ctx.activate(ae,se,V,z,Q):g(ae,se,V,L,F,z,Q):_(j,ae,Q)},g=(j,ae,se,V,L,F,z)=>{const le=j.component=age(j,V,L);if(fe.env.NODE_ENV!=="production"&&le.type.__hmrId&&Gve(le),fe.env.NODE_ENV!=="production"&&(pv(j),Wo(le,"mount")),Eh(j)&&(le.ctx.renderer=ce),fe.env.NODE_ENV!=="production"&&Wo(le,"init"),sge(le),fe.env.NODE_ENV!=="production"&&Go(le,"init"),le.asyncDep){if(L&&L.registerDep(le,w),!j.el){const Q=le.subTree=Et(yn);C(null,Q,ae,se)}return}w(le,j,ae,se,L,F,z),fe.env.NODE_ENV!=="production"&&(vv(),Go(le,"mount"))},_=(j,ae,se)=>{const V=ae.component=j.component;if(ume(j,ae,se))if(V.asyncDep&&!V.asyncResolved){fe.env.NODE_ENV!=="production"&&pv(ae),A(V,ae,se),fe.env.NODE_ENV!=="production"&&vv();return}else V.next=ae,Kve(V.update),V.update();else ae.el=j.el,V.vnode=ae},w=(j,ae,se,V,L,F,z)=>{const le=()=>{if(j.isMounted){let{next:ue,bu:H,u:G,parent:me,vnode:oe}=j,de=ue,Xe;fe.env.NODE_ENV!=="production"&&pv(ue||j.vnode),cf(j,!1),ue?(ue.el=oe.el,A(j,ue,z)):ue=oe,H&&Bu(H),(Xe=ue.props&&ue.props.onVnodeBeforeUpdate)&&vo(Xe,me,ue,oe),cf(j,!0),fe.env.NODE_ENV!=="production"&&Wo(j,"render");const Ee=$w(j);fe.env.NODE_ENV!=="production"&&Go(j,"render");const Se=j.subTree;j.subTree=Ee,fe.env.NODE_ENV!=="production"&&Wo(j,"patch"),S(Se,Ee,v(Se.el),ie(Se),j,L,F),fe.env.NODE_ENV!=="production"&&Go(j,"patch"),ue.el=Ee.el,de===null&&cme(j,Ee.el),G&&mi(G,L),(Xe=ue.props&&ue.props.onVnodeUpdated)&&mi(()=>vo(Xe,me,ue,oe),L),fe.env.NODE_ENV!=="production"&&N9(j),fe.env.NODE_ENV!=="production"&&vv()}else{let ue;const{el:H,props:G}=ae,{bm:me,m:oe,parent:de}=j,Xe=wh(ae);if(cf(j,!1),me&&Bu(me),!Xe&&(ue=G&&G.onVnodeBeforeMount)&&vo(ue,de,ae),cf(j,!0),H&&Z){const Ee=()=>{fe.env.NODE_ENV!=="production"&&Wo(j,"render"),j.subTree=$w(j),fe.env.NODE_ENV!=="production"&&Go(j,"render"),fe.env.NODE_ENV!=="production"&&Wo(j,"hydrate"),Z(H,j.subTree,j,L,null),fe.env.NODE_ENV!=="production"&&Go(j,"hydrate")};Xe?ae.type.__asyncLoader().then(()=>!j.isUnmounted&&Ee()):Ee()}else{fe.env.NODE_ENV!=="production"&&Wo(j,"render");const Ee=j.subTree=$w(j);fe.env.NODE_ENV!=="production"&&Go(j,"render"),fe.env.NODE_ENV!=="production"&&Wo(j,"patch"),S(null,Ee,se,V,j,L,F),fe.env.NODE_ENV!=="production"&&Go(j,"patch"),ae.el=Ee.el}if(oe&&mi(oe,L),!Xe&&(ue=G&&G.onVnodeMounted)){const Ee=ae;mi(()=>vo(ue,de,Ee),L)}(ae.shapeFlag&256||de&&wh(de.vnode)&&de.vnode.shapeFlag&256)&&j.a&&mi(j.a,L),j.isMounted=!0,fe.env.NODE_ENV!=="production"&&eme(j),ae=se=V=null}},Q=j.effect=new Tw(le,()=>gv(re),j.scope),re=j.update=()=>Q.run();re.id=j.uid,cf(j,!0),fe.env.NODE_ENV!=="production"&&(Q.onTrack=j.rtc?ue=>Bu(j.rtc,ue):void 0,Q.onTrigger=j.rtg?ue=>Bu(j.rtg,ue):void 0,re.ownerInstance=j),re()},A=(j,ae,se)=>{ae.component=j;const V=j.vnode.props;j.vnode=ae,j.next=null,Lme(j,ae.props,V,se),jme(j,ae.children,se),rf(),C9(),nf()},E=(j,ae,se,V,L,F,z,le,Q=!1)=>{const re=j&&j.children,ue=j?j.shapeFlag:0,H=ae.children,{patchFlag:G,shapeFlag:me}=ae;if(G>0){if(G&128){x(re,H,se,V,L,F,z,le,Q);return}else if(G&256){u(re,H,se,V,L,F,z,le,Q);return}}me&8?(ue&16&&X(re,L,F),H!==re&&d(se,H)):ue&16?me&16?x(re,H,se,V,L,F,z,le,Q):X(re,L,F,!0):(ue&8&&d(se,""),me&16&&U(H,se,V,L,F,z,le,Q))},u=(j,ae,se,V,L,F,z,le,Q)=>{j=j||Iu,ae=ae||Iu;const re=j.length,ue=ae.length,H=Math.min(re,ue);let G;for(G=0;G<H;G++){const me=ae[G]=Q?Ws(ae[G]):Ta(ae[G]);S(j[G],me,se,null,L,F,z,le,Q)}re>ue?X(j,L,F,!0,!1,H):U(ae,se,V,L,F,z,le,Q,H)},x=(j,ae,se,V,L,F,z,le,Q)=>{let re=0;const ue=ae.length;let H=j.length-1,G=ue-1;for(;re<=H&&re<=G;){const me=j[re],oe=ae[re]=Q?Ws(ae[re]):Ta(ae[re]);if(hf(me,oe))S(me,oe,se,null,L,F,z,le,Q);else break;re++}for(;re<=H&&re<=G;){const me=j[H],oe=ae[G]=Q?Ws(ae[G]):Ta(ae[G]);if(hf(me,oe))S(me,oe,se,null,L,F,z,le,Q);else break;H--,G--}if(re>H){if(re<=G){const me=G+1,oe=me<ue?ae[me].el:V;for(;re<=G;)S(null,ae[re]=Q?Ws(ae[re]):Ta(ae[re]),se,oe,L,F,z,le,Q),re++}}else if(re>G)for(;re<=H;)O(j[re],L,F,!0),re++;else{const me=re,oe=re,de=new Map;for(re=oe;re<=G;re++){const Me=ae[re]=Q?Ws(ae[re]):Ta(ae[re]);Me.key!=null&&(fe.env.NODE_ENV!=="production"&&de.has(Me.key)&&et("Duplicate keys found during update:",JSON.stringify(Me.key),"Make sure keys are unique."),de.set(Me.key,re))}let Xe,Ee=0;const Se=G-oe+1;let _e=!1,pe=0;const Te=new Array(Se);for(re=0;re<Se;re++)Te[re]=0;for(re=me;re<=H;re++){const Me=j[re];if(Ee>=Se){O(Me,L,F,!0);continue}let Ne;if(Me.key!=null)Ne=de.get(Me.key);else for(Xe=oe;Xe<=G;Xe++)if(Te[Xe-oe]===0&&hf(Me,ae[Xe])){Ne=Xe;break}Ne===void 0?O(Me,L,F,!0):(Te[Ne-oe]=re+1,Ne>=pe?pe=Ne:_e=!0,S(Me,ae[Ne],se,null,L,F,z,le,Q),Ee++)}const it=_e?Zme(Te):Iu;for(Xe=it.length-1,re=Se-1;re>=0;re--){const Me=oe+re,Ne=ae[Me],mt=Me+1<ue?ae[Me+1].el:V;Te[re]===0?S(null,Ne,se,mt,L,F,z,le,Q):_e&&(Xe<0||re!==it[Xe]?k(Ne,se,mt,2):Xe--)}}},k=(j,ae,se,V,L=null)=>{const{el:F,type:z,transition:le,children:Q,shapeFlag:re}=j;if(re&6){k(j.component.subTree,ae,se,V);return}if(re&128){j.suspense.move(ae,se,V);return}if(re&64){z.move(j,ae,se,ce);return}if(z===Ct){n(F,ae,se);for(let H=0;H<Q.length;H++)k(Q[H],ae,se,V);n(j.anchor,ae,se);return}if(z===Iv){N(j,ae,se);return}if(V!==2&&re&1&&le)if(V===0)le.beforeEnter(F),n(F,ae,se),mi(()=>le.enter(F),L);else{const{leave:H,delayLeave:G,afterLeave:me}=le,oe=()=>n(F,ae,se),de=()=>{H(F,()=>{oe(),me&&me()})};G?G(F,oe,de):de()}else n(F,ae,se)},O=(j,ae,se,V=!1,L=!1)=>{const{type:F,props:z,ref:le,children:Q,dynamicChildren:re,shapeFlag:ue,patchFlag:H,dirs:G}=j;if(le!=null&&eE(le,null,se,j,!0),ue&256){ae.ctx.deactivate(j);return}const me=ue&1&&G,oe=!wh(j);let de;if(oe&&(de=z&&z.onVnodeBeforeUnmount)&&vo(de,ae,j),ue&6)W(j.component,se,V);else{if(ue&128){j.suspense.unmount(se,V);return}me&&ff(j,null,ae,"beforeUnmount"),ue&64?j.type.remove(j,ae,se,L,ce,V):re&&(F!==Ct||H>0&&H&64)?X(re,ae,se,!1,!0):(F===Ct&&H&384||!L&&ue&16)&&X(Q,ae,se),V&&q(j)}(oe&&(de=z&&z.onVnodeUnmounted)||me)&&mi(()=>{de&&vo(de,ae,j),me&&ff(j,null,ae,"unmounted")},se)},q=j=>{const{type:ae,el:se,anchor:V,transition:L}=j;if(ae===Ct){fe.env.NODE_ENV!=="production"&&j.patchFlag>0&&j.patchFlag&2048&&L&&!L.persisted?j.children.forEach(z=>{z.type===yn?a(z.el):q(z)}):Y(se,V);return}if(ae===Iv){R(j);return}const F=()=>{a(se),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(j.shapeFlag&1&&L&&!L.persisted){const{leave:z,delayLeave:le}=L,Q=()=>z(se,F);le?le(j.el,F,Q):Q()}else F()},Y=(j,ae)=>{let se;for(;j!==ae;)se=m(j),a(j),j=se;a(ae)},W=(j,ae,se)=>{fe.env.NODE_ENV!=="production"&&j.type.__hmrId&&Zve(j);const{bum:V,scope:L,update:F,subTree:z,um:le}=j;V&&Bu(V),L.stop(),F&&(F.active=!1,O(z,j,ae,se)),le&&mi(le,ae),mi(()=>{j.isUnmounted=!0},ae),ae&&ae.pendingBranch&&!ae.isUnmounted&&j.asyncDep&&!j.asyncResolved&&j.suspenseId===ae.pendingId&&(ae.deps--,ae.deps===0&&ae.resolve()),fe.env.NODE_ENV!=="production"&&rme(j)},X=(j,ae,se,V=!1,L=!1,F=0)=>{for(let z=F;z<j.length;z++)O(j[z],ae,se,V,L)},ie=j=>j.shapeFlag&6?ie(j.component.subTree):j.shapeFlag&128?j.suspense.next():m(j.anchor||j.el),ne=(j,ae,se)=>{j==null?ae._vnode&&O(ae._vnode,null,null,!0):S(ae._vnode||null,j,ae,null,null,null,se),C9(),T9(),ae._vnode=j},ce={p:S,um:O,m:k,r:q,mt:g,mc:U,pc:E,pbc:M,n:ie,o:e};let te,Z;return t&&([te,Z]=t(ce)),{render:ne,hydrate:te,createApp:Rme(ne,te)}}function cf({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function Ch(e,t,r=!1){const n=e.children,a=t.children;if(ot(n)&&ot(a))for(let i=0;i<n.length;i++){const o=n[i];let l=a[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=a[i]=Ws(a[i]),l.el=o.el),r||Ch(o,l)),l.type===Ks&&(l.el=o.el),fe.env.NODE_ENV!=="production"&&l.type===yn&&!l.el&&(l.el=o.el)}}function Zme(e){const t=e.slice(),r=[0];let n,a,i,o,l;const f=e.length;for(n=0;n<f;n++){const c=e[n];if(c!==0){if(a=r[r.length-1],e[a]<c){t[n]=a,r.push(n);continue}for(i=0,o=r.length-1;i<o;)l=i+o>>1,e[r[l]]<c?i=l+1:o=l;c<e[r[i]]&&(i>0&&(t[n]=r[i-1]),r[i]=n)}}for(i=r.length,o=r[i-1];i-- >0;)r[i]=o,o=t[o];return r}const Jme=e=>e.__isTeleport,Fu=e=>e&&(e.disabled||e.disabled===""),_k=e=>typeof SVGElement<"u"&&e instanceof SVGElement,tE=(e,t)=>{const r=e&&e.to;if(It(r))if(t){const n=t(r);return n||fe.env.NODE_ENV!=="production"&&et(`Failed to locate Teleport target with selector "${r}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`),n}else return fe.env.NODE_ENV!=="production"&&et("Current renderer does not support string target for Teleports. (missing querySelector renderer option)"),null;else return fe.env.NODE_ENV!=="production"&&!r&&!Fu(e)&&et(`Invalid Teleport target: ${r}`),r},Yme={__isTeleport:!0,process(e,t,r,n,a,i,o,l,f,c){const{mc:d,pc:v,pbc:m,o:{insert:y,querySelector:b,createText:S,createComment:T}}=c,C=Fu(t.props);let{shapeFlag:I,children:B,dynamicChildren:N}=t;if(fe.env.NODE_ENV!=="production"&&qs&&(f=!1,N=null),e==null){const R=t.el=fe.env.NODE_ENV!=="production"?T("teleport start"):S(""),P=t.anchor=fe.env.NODE_ENV!=="production"?T("teleport end"):S("");y(R,r,n),y(P,r,n);const D=t.target=tE(t.props,b),$=t.targetAnchor=S("");D?(y($,D),o=o||_k(D)):fe.env.NODE_ENV!=="production"&&!C&&et("Invalid Teleport target on mount:",D,`(${typeof D})`);const U=(K,M)=>{I&16&&d(B,K,M,a,i,o,l,f)};C?U(r,P):D&&U(D,$)}else{t.el=e.el;const R=t.anchor=e.anchor,P=t.target=e.target,D=t.targetAnchor=e.targetAnchor,$=Fu(e.props),U=$?r:P,K=$?R:D;if(o=o||_k(P),N?(m(e.dynamicChildren,N,U,a,i,o,l),Ch(e,t,!0)):f||v(e,t,U,K,a,i,o,l,!1),C)$||Av(t,r,R,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const M=t.target=tE(t.props,b);M?Av(t,M,null,c,0):fe.env.NODE_ENV!=="production"&&et("Invalid Teleport target on update:",P,`(${typeof P})`)}else $&&Av(t,P,D,c,1)}wk(t)},remove(e,t,r,n,{um:a,o:{remove:i}},o){const{shapeFlag:l,children:f,anchor:c,targetAnchor:d,target:v,props:m}=e;if(v&&i(d),(o||!Fu(m))&&(i(c),l&16))for(let y=0;y<f.length;y++){const b=f[y];a(b,t,r,!0,!!b.dynamicChildren)}},move:Av,hydrate:Xme};function Av(e,t,r,{o:{insert:n},m:a},i=2){i===0&&n(e.targetAnchor,t,r);const{el:o,anchor:l,shapeFlag:f,children:c,props:d}=e,v=i===2;if(v&&n(o,t,r),(!v||Fu(d))&&f&16)for(let m=0;m<c.length;m++)a(c[m],t,r,2);v&&n(l,t,r)}function Xme(e,t,r,n,a,i,{o:{nextSibling:o,parentNode:l,querySelector:f}},c){const d=t.target=tE(t.props,f);if(d){const v=d._lpa||d.firstChild;if(t.shapeFlag&16)if(Fu(t.props))t.anchor=c(o(e),t,l(e),r,n,a,i),t.targetAnchor=v;else{t.anchor=o(e);let m=v;for(;m;)if(m=o(m),m&&m.nodeType===8&&m.data==="teleport anchor"){t.targetAnchor=m,d._lpa=t.targetAnchor&&o(t.targetAnchor);break}c(v,t,d,r,n,a,i)}wk(t)}return t.anchor&&o(t.anchor)}const Qme=Yme;function wk(e){const t=e.ctx;if(t&&t.ut){let r=e.children[0].el;for(;r!==e.targetAnchor;)r.nodeType===1&&r.setAttribute("data-v-owner",t.uid),r=r.nextSibling;t.ut()}}const Ct=Symbol.for("v-fgt"),Ks=Symbol.for("v-txt"),yn=Symbol.for("v-cmt"),Iv=Symbol.for("v-stc"),Th=[];let Sa=null;function he(e=!1){Th.push(Sa=e?null:[])}function ege(){Th.pop(),Sa=Th[Th.length-1]||null}let Ah=1;function Ek(e){Ah+=e}function xk(e){return e.dynamicChildren=Ah>0?Sa||Iu:null,ege(),Ah>0&&Sa&&Sa.push(e),e}function ke(e,t,r,n,a,i){return xk(ze(e,t,r,n,a,i,!0))}function nt(e,t,r,n,a){return xk(Et(e,t,r,n,a,!0))}function Ma(e){return e?e.__v_isVNode===!0:!1}function hf(e,t){return fe.env.NODE_ENV!=="production"&&t.shapeFlag&6&&Ru.has(t.type)?(e.shapeFlag&=-257,t.shapeFlag&=-513,!1):e.type===t.type&&e.key===t.key}const tge=(...e)=>Mk(...e),Bv="__vInternal",Sk=({key:e})=>e??null,kv=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?It(e)||gr(e)||vt(e)?{i:mn,r:e,k:t,f:!!r}:e:null);function ze(e,t=null,r=null,n=0,a=null,i=e===Ct?0:1,o=!1,l=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Sk(t),ref:t&&kv(t),scopeId:P9,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:mn};return l?(rE(f,r),i&128&&e.normalize(f)):r&&(f.shapeFlag|=It(r)?8:16),fe.env.NODE_ENV!=="production"&&f.key!==f.key&&et("VNode created with invalid key (NaN). VNode type:",f.type),Ah>0&&!o&&Sa&&(f.patchFlag>0||i&6)&&f.patchFlag!==32&&Sa.push(f),f}const Et=fe.env.NODE_ENV!=="production"?tge:Mk;function Mk(e,t=null,r=null,n=0,a=null,i=!1){if((!e||e===Z9)&&(fe.env.NODE_ENV!=="production"&&!e&&et(`Invalid vnode type when creating vnode: ${e}.`),e=yn),Ma(e)){const l=Ca(e,t,!0);return r&&rE(l,r),Ah>0&&!i&&Sa&&(l.shapeFlag&6?Sa[Sa.indexOf(e)]=l:Sa.push(l)),l.patchFlag|=-2,l}if(Ok(e)&&(e=e.__vccOpts),t){t=rge(t);let{class:l,style:f}=t;l&&!It(l)&&(t.class=Ce(l)),At(f)&&(dv(f)&&!ot(f)&&(f=Mr({},f)),t.style=en(f))}const o=It(e)?1:hme(e)?128:Jme(e)?64:At(e)?4:vt(e)?2:0;return fe.env.NODE_ENV!=="production"&&o&4&&dv(e)&&(e=Nt(e),et("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
828
828
  Component that was made reactive: `,e)),ze(e,t,r,n,a,o,i,!0)}function rge(e){return e?dv(e)||Bv in e?Mr({},e):e:null}function Ca(e,t,r=!1){const{props:n,ref:a,patchFlag:i,children:o}=e,l=t?sa(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Sk(l),ref:t&&t.ref?r&&a?ot(a)?a.concat(kv(t)):[a,kv(t)]:kv(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:fe.env.NODE_ENV!=="production"&&i===-1&&ot(o)?o.map(Ck):o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ct?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ca(e.ssContent),ssFallback:e.ssFallback&&Ca(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ck(e){const t=Ca(e);return ot(e.children)&&(t.children=e.children.map(Ck)),t}function Cn(e=" ",t=0){return Et(Ks,null,e,t)}function Ye(e="",t=!1){return t?(he(),nt(yn,null,e)):Et(yn,null,e)}function Ta(e){return e==null||typeof e=="boolean"?Et(yn):ot(e)?Et(Ct,null,e.slice()):typeof e=="object"?Ws(e):Et(Ks,null,String(e))}function Ws(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ca(e)}function rE(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ot(t))r=16;else if(typeof t=="object")if(n&65){const a=t.default;a&&(a._c&&(a._d=!1),rE(e,a()),a._c&&(a._d=!0));return}else{r=32;const a=t._;!a&&!(Bv in t)?t._ctx=mn:a===3&&mn&&(mn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else vt(t)?(t={default:t,_ctx:mn},r=32):(t=String(t),n&64?(r=16,t=[Cn(t)]):r=8);e.children=t,e.shapeFlag|=r}function sa(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const a in n)if(a==="class")t.class!==n.class&&(t.class=Ce([t.class,n.class]));else if(a==="style")t.style=en([t.style,n.style]);else if(oh(a)){const i=t[a],o=n[a];o&&i!==o&&!(ot(i)&&i.includes(o))&&(t[a]=i?[].concat(i,o):o)}else a!==""&&(t[a]=n[a])}return t}function vo(e,t,r,n=null){aa(e,t,7,[r,n])}const nge=lk();let ige=0;function age(e,t,r){const n=e.type,a=(t?t.appContext:e.appContext)||nge,i={uid:ige++,vnode:e,type:n,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new ZB(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:uk(n,a),emitsOptions:R9(n,a),emit:null,emitted:null,propsDefaults:wr,inheritAttrs:n.inheritAttrs,ctx:wr,data:wr,props:wr,attrs:wr,slots:wr,refs:wr,setupState:wr,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return fe.env.NODE_ENV!=="production"?i.ctx=Sme(i):i.ctx={_:i},i.root=t?t.root:i,i.emit=ome.bind(null,i),e.ce&&e.ce(i),i}let bn=null;const Cr=()=>bn||mn;let nE,Lu,Tk="__VUE_INSTANCE_SETTERS__";(Lu=Xp()[Tk])||(Lu=Xp()[Tk]=[]),Lu.push(e=>bn=e),nE=e=>{Lu.length>1?Lu.forEach(t=>t(e)):Lu[0](e)};const Du=e=>{nE(e),e.scope.on()},df=()=>{bn&&bn.scope.off(),nE(null)},oge=Fs("slot,component");function iE(e,t){const r=t.isNativeTag||VB;(oge(e)||r(e))&&et("Do not use built-in or reserved HTML elements as component id: "+e)}function Ak(e){return e.vnode.shapeFlag&4}let Ih=!1;function sge(e,t=!1){Ih=t;const{props:r,children:n}=e.vnode,a=Ak(e);Pme(e,r,a,t),Hme(e,n);const i=a?lge(e,t):void 0;return Ih=!1,i}function lge(e,t){var r;const n=e.type;if(fe.env.NODE_ENV!=="production"){if(n.name&&iE(n.name,e.appContext.config),n.components){const i=Object.keys(n.components);for(let o=0;o<i.length;o++)iE(i[o],e.appContext.config)}if(n.directives){const i=Object.keys(n.directives);for(let o=0;o<i.length;o++)U9(i[o])}n.compilerOptions&&fge()&&et('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}e.accessCache=Object.create(null),e.proxy=m9(new Proxy(e.ctx,ek)),fe.env.NODE_ENV!=="production"&&Mme(e);const{setup:a}=n;if(a){const i=e.setupContext=a.length>1?Nk(e):null;Du(e),rf();const o=jo(a,e,0,[fe.env.NODE_ENV!=="production"?hh(e.props):e.props,i]);if(nf(),df(),_w(o)){if(o.then(df,df),t)return o.then(l=>{Ik(e,l,t)}).catch(l=>{mv(l,e,0)});if(e.asyncDep=o,fe.env.NODE_ENV!=="production"&&!e.suspense){const l=(r=n.name)!=null?r:"Anonymous";et(`Component <${l}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else Ik(e,o,t)}else Bk(e,t)}function Ik(e,t,r){vt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:At(t)?(fe.env.NODE_ENV!=="production"&&Ma(t)&&et("setup() should not return VNodes directly - return a render function instead."),fe.env.NODE_ENV!=="production"&&(e.devtoolsRawSetupState=t),e.setupState=_9(t),fe.env.NODE_ENV!=="production"&&Cme(e)):fe.env.NODE_ENV!=="production"&&t!==void 0&&et(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Bk(e,r)}let aE;const fge=()=>!aE;function Bk(e,t,r){const n=e.type;if(!e.render){if(!t&&aE&&!n.render){const a=n.template||Zw(e).template;if(a){fe.env.NODE_ENV!=="production"&&Wo(e,"compile");const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:f}=n,c=Mr(Mr({isCustomElement:i,delimiters:l},o),f);n.render=aE(a,c),fe.env.NODE_ENV!=="production"&&Go(e,"compile")}}e.render=n.render||Qr}Du(e),rf(),Ame(e),nf(),df(),fe.env.NODE_ENV!=="production"&&!n.render&&e.render===Qr&&!t&&(n.template?et('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):et("Component is missing template or render function."))}function kk(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,fe.env.NODE_ENV!=="production"?{get(t,r){return _v(),kn(e,"get","$attrs"),t[r]},set(){return et("setupContext.attrs is readonly."),!1},deleteProperty(){return et("setupContext.attrs is readonly."),!1}}:{get(t,r){return kn(e,"get","$attrs"),t[r]}}))}function uge(e){return e.slotsProxy||(e.slotsProxy=new Proxy(e.slots,{get(t,r){return kn(e,"get","$slots"),t[r]}}))}function Nk(e){const t=r=>{if(fe.env.NODE_ENV!=="production"&&(e.exposed&&et("expose() should be called only once per setup()."),r!=null)){let n=typeof r;n==="object"&&(ot(r)?n="array":gr(r)&&(n="ref")),n!=="object"&&et(`expose() should be passed a plain object, received ${n}.`)}e.exposed=r||{}};return fe.env.NODE_ENV!=="production"?Object.freeze({get attrs(){return kk(e)},get slots(){return uge(e)},get emit(){return(r,...n)=>e.emit(r,...n)},expose:t}):{get attrs(){return kk(e)},slots:e.slots,emit:e.emit,expose:t}}function Nv(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(_9(m9(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in uf)return uf[r](e)},has(t,r){return r in t||r in uf}}))}const cge=/(?:^|[-_])(\w)/g,hge=e=>e.replace(cge,t=>t.toUpperCase()).replace(/[-_]/g,"");function oE(e,t=!0){return vt(e)?e.displayName||e.name:e.name||t&&e.__name}function Ov(e,t,r=!1){let n=oE(t);if(!n&&t.__file){const a=t.__file.match(/([^/\\]+)\.\w+$/);a&&(n=a[1])}if(!n&&e&&e.parent){const a=i=>{for(const o in i)if(i[o]===t)return o};n=a(e.components||e.parent.type.components)||a(e.appContext.components)}return n?hge(n):r?"App":"Anonymous"}function Ok(e){return vt(e)&&"__vccOpts"in e}const be=(e,t)=>Lve(e,t,Ih);function Ot(e,t,r){const n=arguments.length;return n===2?At(t)&&!ot(t)?Ma(t)?Et(e,null,[t]):Et(e,t):Et(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Ma(r)&&(r=[r]),Et(e,t,r))}const dge=Symbol.for("v-scx"),pge=()=>{{const e=wt(dge);return e||fe.env.NODE_ENV!=="production"&&et("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function sE(e){return!!(e&&e.__v_isShallow)}function vge(){if(fe.env.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#0b1bc9"},r={style:"color:#b62e24"},n={style:"color:#9d288c"},a={header(v){return At(v)?v.__isVue?["div",e,"VueInstance"]:gr(v)?["div",{},["span",e,d(v)],"<",l(v.value),">"]:af(v)?["div",{},["span",e,sE(v)?"ShallowReactive":"Reactive"],"<",l(v),`>${Us(v)?" (readonly)":""}`]:Us(v)?["div",{},["span",e,sE(v)?"ShallowReadonly":"Readonly"],"<",l(v),">"]:null:null},hasBody(v){return v&&v.__isVue},body(v){if(v&&v.__isVue)return["div",{},...i(v.$)]}};function i(v){const m=[];v.type.props&&v.props&&m.push(o("props",Nt(v.props))),v.setupState!==wr&&m.push(o("setup",v.setupState)),v.data!==wr&&m.push(o("data",Nt(v.data)));const y=f(v,"computed");y&&m.push(o("computed",y));const b=f(v,"inject");return b&&m.push(o("injected",b)),m.push(["div",{},["span",{style:n.style+";opacity:0.66"},"$ (internal): "],["object",{object:v}]]),m}function o(v,m){return m=Mr({},m),Object.keys(m).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},v],["div",{style:"padding-left:1.25em"},...Object.keys(m).map(y=>["div",{},["span",n,y+": "],l(m[y],!1)])]]:["span",{}]}function l(v,m=!0){return typeof v=="number"?["span",t,v]:typeof v=="string"?["span",r,JSON.stringify(v)]:typeof v=="boolean"?["span",n,v]:At(v)?["object",{object:m?Nt(v):v}]:["span",r,String(v)]}function f(v,m){const y=v.type;if(vt(y))return;const b={};for(const S in v.ctx)c(y,S,m)&&(b[S]=v.ctx[S]);return b}function c(v,m,y){const b=v[y];if(ot(b)&&b.includes(m)||At(b)&&m in b||v.extends&&c(v.extends,m,y)||v.mixins&&v.mixins.some(S=>c(S,m,y)))return!0}function d(v){return sE(v)?"ShallowRef":v.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(a):window.devtoolsFormatters=[a]}const Rk="3.3.4",mge="http://www.w3.org/2000/svg",pf=typeof document<"u"?document:null,Pk=pf&&pf.createElement("template"),gge={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const a=t?pf.createElementNS(mge,e):pf.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},createText:e=>pf.createTextNode(e),createComment:e=>pf.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>pf.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,a,i){const o=r?r.previousSibling:t.lastChild;if(a&&(a===i||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),r),!(a===i||!(a=a.nextSibling)););else{Pk.innerHTML=n?`<svg>${e}</svg>`:e;const l=Pk.content;if(n){const f=l.firstChild;for(;f.firstChild;)l.appendChild(f.firstChild);l.removeChild(f)}t.insertBefore(l,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function yge(e,t,r){const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function bge(e,t,r){const n=e.style,a=It(r);if(r&&!a){if(t&&!It(t))for(const i in t)r[i]==null&&lE(n,i,"");for(const i in r)lE(n,i,r[i])}else{const i=n.display;a?t!==r&&(n.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(n.display=i)}}const _ge=/[^\\];\s*$/,Fk=/\s*!important$/;function lE(e,t,r){if(ot(r))r.forEach(n=>lE(e,t,n));else if(r==null&&(r=""),fe.env.NODE_ENV!=="production"&&_ge.test(r)&&et(`Unexpected semicolon at the end of '${t}' style value: '${r}'`),t.startsWith("--"))e.setProperty(t,r);else{const n=wge(e,t);Fk.test(r)?e.setProperty(fo(n),r.replace(Fk,""),"important"):e[n]=r}}const Lk=["Webkit","Moz","ms"],fE={};function wge(e,t){const r=fE[t];if(r)return r;let n=xa(t);if(n!=="filter"&&n in e)return fE[t]=n;n=ef(n);for(let a=0;a<Lk.length;a++){const i=Lk[a]+n;if(i in e)return fE[t]=i}return t}const Dk="http://www.w3.org/1999/xlink";function Ege(e,t,r,n,a){if(n&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(Dk,t.slice(6,t.length)):e.setAttributeNS(Dk,t,r);else{const i=Xpe(t);r==null||i&&!KB(r)?e.removeAttribute(t):e.setAttribute(t,i?"":r)}}function xge(e,t,r,n,a,i,o){if(t==="innerHTML"||t==="textContent"){n&&o(n,a,i),e[t]=r??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=r;const c=l==="OPTION"?e.getAttribute("value"):e.value,d=r??"";c!==d&&(e.value=d),r==null&&e.removeAttribute(t);return}let f=!1;if(r===""||r==null){const c=typeof e[t];c==="boolean"?r=KB(r):r==null&&c==="string"?(r="",f=!0):c==="number"&&(r=0,f=!0)}try{e[t]=r}catch(c){fe.env.NODE_ENV!=="production"&&!f&&et(`Failed setting prop "${t}" on <${l.toLowerCase()}>: value ${r} is invalid.`,c)}f&&e.removeAttribute(t)}function vf(e,t,r,n){e.addEventListener(t,r,n)}function Sge(e,t,r,n){e.removeEventListener(t,r,n)}function Mge(e,t,r,n,a=null){const i=e._vei||(e._vei={}),o=i[t];if(n&&o)o.value=n;else{const[l,f]=Cge(t);if(n){const c=i[t]=Ige(n,a);vf(e,l,c,f)}else o&&(Sge(e,l,o,f),i[t]=void 0)}}const $k=/(?:Once|Passive|Capture)$/;function Cge(e){let t;if($k.test(e)){t={};let n;for(;n=e.match($k);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):fo(e.slice(2)),t]}let uE=0;const Tge=Promise.resolve(),Age=()=>uE||(Tge.then(()=>uE=0),uE=Date.now());function Ige(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;aa(Bge(n,r.value),t,5,[n])};return r.value=e,r.attached=Age(),r}function Bge(e,t){if(ot(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>a=>!a._stopped&&n&&n(a))}else return t}const Uk=/^on[a-z]/,kge=(e,t,r,n,a=!1,i,o,l,f)=>{t==="class"?yge(e,n,a):t==="style"?bge(e,r,n):oh(t)?Wp(t)||Mge(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Nge(e,t,n,a))?xge(e,t,n,i,o,l,f):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Ege(e,t,n,a))};function Nge(e,t,r,n){return n?!!(t==="innerHTML"||t==="textContent"||t in e&&Uk.test(t)&&vt(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Uk.test(t)&&It(r)?!1:t in e}const Gs="transition",Bh="animation",mo=(e,{slots:t})=>Ot(vme,qk(e),t);mo.displayName="Transition";const zk={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Oge=mo.props=Mr({},V9,zk),mf=(e,t=[])=>{ot(e)?e.forEach(r=>r(...t)):e&&e(...t)},Vk=e=>e?ot(e)?e.some(t=>t.length>1):e.length>1:!1;function qk(e){const t={};for(const s in e)s in zk||(t[s]=e[s]);if(e.css===!1)return t;const{name:r="v",type:n,duration:a,enterFromClass:i=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:l=`${r}-enter-to`,appearFromClass:f=i,appearActiveClass:c=o,appearToClass:d=l,leaveFromClass:v=`${r}-leave-from`,leaveActiveClass:m=`${r}-leave-active`,leaveToClass:y=`${r}-leave-to`}=e,b=Rge(a),S=b&&b[0],T=b&&b[1],{onBeforeEnter:C,onEnter:I,onEnterCancelled:B,onLeave:N,onLeaveCancelled:R,onBeforeAppear:P=C,onAppear:D=I,onAppearCancelled:$=B}=t,U=(s,h,p)=>{Zs(s,h?d:l),Zs(s,h?c:o),p&&p()},K=(s,h)=>{s._isLeaving=!1,Zs(s,v),Zs(s,y),Zs(s,m),h&&h()},M=s=>(h,p)=>{const g=s?D:I,_=()=>U(h,s,p);mf(g,[h,_]),Hk(()=>{Zs(h,s?f:i),Zo(h,s?d:l),Vk(g)||jk(h,n,S,_)})};return Mr(t,{onBeforeEnter(s){mf(C,[s]),Zo(s,i),Zo(s,o)},onBeforeAppear(s){mf(P,[s]),Zo(s,f),Zo(s,c)},onEnter:M(!1),onAppear:M(!0),onLeave(s,h){s._isLeaving=!0;const p=()=>K(s,h);Zo(s,v),Zk(),Zo(s,m),Hk(()=>{s._isLeaving&&(Zs(s,v),Zo(s,y),Vk(N)||jk(s,n,T,p))}),mf(N,[s,p])},onEnterCancelled(s){U(s,!1),mf(B,[s])},onAppearCancelled(s){U(s,!0),mf($,[s])},onLeaveCancelled(s){K(s),mf(R,[s])}})}function Rge(e){if(e==null)return null;if(At(e))return[cE(e.enter),cE(e.leave)];{const t=cE(e);return[t,t]}}function cE(e){const t=qpe(e);return fe.env.NODE_ENV!=="production"&&Vve(t,"<transition> explicit duration"),t}function Zo(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function Zs(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function Hk(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Pge=0;function jk(e,t,r,n){const a=e._endId=++Pge,i=()=>{a===e._endId&&n()};if(r)return setTimeout(i,r);const{type:o,timeout:l,propCount:f}=Kk(e,t);if(!o)return n();const c=o+"end";let d=0;const v=()=>{e.removeEventListener(c,m),i()},m=y=>{y.target===e&&++d>=f&&v()};setTimeout(()=>{d<f&&v()},l+1),e.addEventListener(c,m)}function Kk(e,t){const r=window.getComputedStyle(e),n=b=>(r[b]||"").split(", "),a=n(`${Gs}Delay`),i=n(`${Gs}Duration`),o=Wk(a,i),l=n(`${Bh}Delay`),f=n(`${Bh}Duration`),c=Wk(l,f);let d=null,v=0,m=0;t===Gs?o>0&&(d=Gs,v=o,m=i.length):t===Bh?c>0&&(d=Bh,v=c,m=f.length):(v=Math.max(o,c),d=v>0?o>c?Gs:Bh:null,m=d?d===Gs?i.length:f.length:0);const y=d===Gs&&/\b(transform|all)(,|$)/.test(n(`${Gs}Property`).toString());return{type:d,timeout:v,propCount:m,hasTransform:y}}function Wk(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>Gk(r)+Gk(e[n])))}function Gk(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Zk(){return document.body.offsetHeight}const Jk=new WeakMap,Yk=new WeakMap,Xk={name:"TransitionGroup",props:Mr({},Oge,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=Cr(),n=z9();let a,i;return xh(()=>{if(!a.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!zge(a[0].el,r.vnode.el,o))return;a.forEach(Dge),a.forEach($ge);const l=a.filter(Uge);Zk(),l.forEach(f=>{const c=f.el,d=c.style;Zo(c,o),d.transform=d.webkitTransform=d.transitionDuration="";const v=c._moveCb=m=>{m&&m.target!==c||(!m||/transform$/.test(m.propertyName))&&(c.removeEventListener("transitionend",v),c._moveCb=null,Zs(c,o))};c.addEventListener("transitionend",v)})}),()=>{const o=Nt(e),l=qk(o);let f=o.tag||Ct;a=i,i=t.default?qw(t.default()):[];for(let c=0;c<i.length;c++){const d=i[c];d.key!=null?_h(d,bh(d,l,n,r)):fe.env.NODE_ENV!=="production"&&et("<TransitionGroup> children must be keyed.")}if(a)for(let c=0;c<a.length;c++){const d=a[c];_h(d,bh(d,l,n,r)),Jk.set(d,d.el.getBoundingClientRect())}return Et(f,null,i)}}},Fge=e=>delete e.mode;Xk.props;const Lge=Xk;function Dge(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function $ge(e){Yk.set(e,e.el.getBoundingClientRect())}function Uge(e){const t=Jk.get(e),r=Yk.get(e),n=t.left-r.left,a=t.top-r.top;if(n||a){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${n}px,${a}px)`,i.transitionDuration="0s",e}}function zge(e,t,r){const n=e.cloneNode();e._vtc&&e._vtc.forEach(o=>{o.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(o=>o&&n.classList.add(o)),n.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(n);const{hasTransform:i}=Kk(n);return a.removeChild(n),i}const Rv=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ot(t)?r=>Bu(t,r):t};function Vge(e){e.target.composing=!0}function Qk(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const qge={created(e,{modifiers:{lazy:t,trim:r,number:n}},a){e._assign=Rv(a);const i=n||a.props&&a.props.type==="number";vf(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;r&&(l=l.trim()),i&&(l=Sw(l)),e._assign(l)}),r&&vf(e,"change",()=>{e.value=e.value.trim()}),t||(vf(e,"compositionstart",Vge),vf(e,"compositionend",Qk),vf(e,"change",Qk))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:r,trim:n,number:a}},i){if(e._assign=Rv(i),e.composing||document.activeElement===e&&e.type!=="range"&&(r||n&&e.value.trim()===t||(a||e.type==="number")&&Sw(e.value)===t))return;const o=t??"";e.value!==o&&(e.value=o)}},Pv={deep:!0,created(e,t,r){e._assign=Rv(r),vf(e,"change",()=>{const n=e._modelValue,a=Hge(e),i=e.checked,o=e._assign;if(ot(n)){const l=WB(n,a),f=l!==-1;if(i&&!f)o(n.concat(a));else if(!i&&f){const c=[...n];c.splice(l,1),o(c)}}else if(Gp(n)){const l=new Set(n);i?l.add(a):l.delete(a),o(l)}else o(tN(e,i))})},mounted:eN,beforeUpdate(e,t,r){e._assign=Rv(r),eN(e,t,r)}};function eN(e,{value:t,oldValue:r},n){e._modelValue=t,ot(t)?e.checked=WB(t,n.props.value)>-1:Gp(t)?e.checked=t.has(n.props.value):t!==r&&(e.checked=Qp(t,tN(e,!0)))}function Hge(e){return"_value"in e?e._value:e.value}function tN(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const jge=["ctrl","shift","alt","meta"],Kge={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>jge.some(r=>e[`${r}Key`]&&!t.includes(r))},rn=(e,t)=>(r,...n)=>{for(let a=0;a<t.length;a++){const i=Kge[t[a]];if(i&&i(r,t))return}return e(r,...n)},Wge={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},kh=(e,t)=>r=>{if(!("key"in r))return;const n=fo(r.key);if(t.some(a=>a===n||Wge[a]===n))return e(r)},la={beforeMount(e,{value:t},{transition:r}){e._vod=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Nh(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),Nh(e,!0),n.enter(e)):n.leave(e,()=>{Nh(e,!1)}):Nh(e,t))},beforeUnmount(e,{value:t}){Nh(e,t)}};function Nh(e,t){e.style.display=t?e._vod:"none"}const Gge=Mr({patchProp:kge},gge);let rN;function nN(){return rN||(rN=Wme(Gge))}const iN=(...e)=>{nN().render(...e)},aN=(...e)=>{const t=nN().createApp(...e);fe.env.NODE_ENV!=="production"&&(Zge(t),Jge(t));const{mount:r}=t;return t.mount=n=>{const a=Yge(n);if(!a)return;const i=t._component;!vt(i)&&!i.render&&!i.template&&(i.template=a.innerHTML),a.innerHTML="";const o=r(a,!1,a instanceof SVGElement);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},t};function Zge(e){Object.defineProperty(e.config,"isNativeTag",{value:t=>Jpe(t)||Ype(t),writable:!1})}function Jge(e){{const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get(){return t},set(){et("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const r=e.config.compilerOptions,n='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc';Object.defineProperty(e.config,"compilerOptions",{get(){return et(n),r},set(){et(n)}})}}function Yge(e){if(It(e)){const t=document.querySelector(e);return fe.env.NODE_ENV!=="production"&&!t&&et(`Failed to mount app: mount target selector "${e}" returned null.`),t}return fe.env.NODE_ENV!=="production"&&window.ShadowRoot&&e instanceof window.ShadowRoot&&e.mode==="closed"&&et('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}function Xge(){vge()}fe.env.NODE_ENV!=="production"&&Xge();var Qge=Object.defineProperty,e1e=(e,t,r)=>t in e?Qge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,oN=(e,t,r)=>(e1e(e,typeof t!="symbol"?t+"":t,r),r);const oi={debug:!1,masked:!1,prefix:"",suffix:"",thousands:",",decimal:".",precision:2,disableNegative:!1,disabled:!1,min:null,max:null,allowBlank:!1,minimumNumberOfCharacters:0,modelModifiers:{number:!1},shouldRound:!0,focusOnRight:!1},sN=["+","-"],lN=["decimal","thousands","prefix","suffix"];function Jo(e){return Math.max(0,Math.min(e,1e3))}function Fv(e,t){return e=e.padStart(t+1,"0"),t===0?e:`${e.slice(0,-t)}.${e.slice(-t)}`}function fN(e){return e=e?e.toString():"",e.replace(/\D+/g,"")||"0"}function t1e(e,t){return e.replace(/(\d)(?=(?:\d{3})+\b)/gm,`$1${t}`)}function r1e(e,t,r){return t?e+r+t:e}function Oh(e,t){return sN.includes(e)?(console.warn(`v-money3 "${t}" property don't accept "${e}" as a value.`),!1):/\d/g.test(e)?(console.warn(`v-money3 "${t}" property don't accept "${e}" (any number) as a value.`),!1):!0}function n1e(e){for(const t of lN)if(!Oh(e[t],t))return!1;return!0}function Lv(e){for(const t of lN){e[t]=e[t].replace(/\d+/g,"");for(const r of sN)e[t]=e[t].replaceAll(r,"")}return e}function uN(e){const t=e.length,r=e.indexOf(".");return t-(r+1)}function cN(e){return e.replace(/^(-?)0+(?!\.)(.+)/,"$1$2")}function hN(e){return/^-?[\d]+$/g.test(e)}function dN(e){return/^-?[\d]+(\.[\d]+)$/g.test(e)}function pN(e,t,r){return t>e.length-1?e:e.substring(0,t)+r+e.substring(t+1)}function vN(e,t){const r=t-uN(e);if(r>=0)return e;let n=e.slice(0,r);const a=e.slice(r);if(n.charAt(n.length-1)==="."&&(n=n.slice(0,-1)),parseInt(a.charAt(0),10)>=5){for(let i=n.length-1;i>=0;i-=1){const o=n.charAt(i);if(o!=="."&&o!=="-"){const l=parseInt(o,10)+1;if(l<10)return pN(n,i,l);n=pN(n,i,"0")}}return`1${n}`}return n}function mN(e,t){const r=()=>{e.setSelectionRange(t,t)};e===document.activeElement&&(r(),setTimeout(r,1))}function gN(e){return new Event(e,{bubbles:!0,cancelable:!1})}function Zt({debug:e=!1},...t){e&&console.log(...t)}class Dv{constructor(t){oN(this,"number",0n),oN(this,"decimal",0),this.setNumber(t)}getNumber(){return this.number}getDecimalPrecision(){return this.decimal}setNumber(t){this.decimal=0,typeof t=="bigint"?this.number=t:typeof t=="number"?this.setupString(t.toString()):this.setupString(t)}toFixed(t=0,r=!0){let n=this.toString();const a=t-this.getDecimalPrecision();return a>0?(n.includes(".")||(n+="."),n.padEnd(n.length+a,"0")):a<0?r?vN(n,t):n.slice(0,a):n}toString(){let t=this.number.toString();if(this.decimal){let r=!1;return t.charAt(0)==="-"&&(t=t.substring(1),r=!0),t=t.padStart(t.length+this.decimal,"0"),t=`${t.slice(0,-this.decimal)}.${t.slice(-this.decimal)}`,t=cN(t),(r?"-":"")+t}return t}lessThan(t){const[r,n]=this.adjustComparisonNumbers(t);return r<n}biggerThan(t){const[r,n]=this.adjustComparisonNumbers(t);return r>n}isEqual(t){const[r,n]=this.adjustComparisonNumbers(t);return r===n}setupString(t){if(t=cN(t),hN(t))this.number=BigInt(t);else if(dN(t))this.decimal=uN(t),this.number=BigInt(t.replace(".",""));else throw new Error(`BigNumber has received and invalid format for the constructor: ${t}`)}adjustComparisonNumbers(t){let r;t.constructor.name!=="BigNumber"?r=new Dv(t):r=t;const n=this.getDecimalPrecision()-r.getDecimalPrecision();let a=this.getNumber(),i=r.getNumber();return n>0?i=r.getNumber()*10n**BigInt(n):n<0&&(a=this.getNumber()*10n**BigInt(n*-1)),[a,i]}}function hE(e,t=oi,r=""){if(Zt(t,"utils format() - caller",r),Zt(t,"utils format() - input1",e),e==null)e="";else if(typeof e=="number")t.shouldRound?e=e.toFixed(Jo(t.precision)):e=e.toFixed(Jo(t.precision)+1).slice(0,-1);else if(t.modelModifiers&&t.modelModifiers.number&&hN(e))e=Number(e).toFixed(Jo(t.precision));else if(!t.disableNegative&&e==="-")return e;Zt(t,"utils format() - input2",e);const n=t.disableNegative?"":e.indexOf("-")>=0?"-":"";let a=e.replace(t.prefix,"").replace(t.suffix,"");Zt(t,"utils format() - filtered",a),!t.precision&&t.thousands!=="."&&dN(a)&&(a=vN(a,0),Zt(t,"utils format() - !opt.precision && isValidFloat()",a));const i=fN(a);Zt(t,"utils format() - numbers",i),Zt(t,"utils format() - numbersToCurrency",n+Fv(i,t.precision));const o=new Dv(n+Fv(i,t.precision));Zt(t,"utils format() - bigNumber1",o.toString()),t.max&&o.biggerThan(t.max)&&o.setNumber(t.max),t.min&&o.lessThan(t.min)&&o.setNumber(t.min);const l=o.toFixed(Jo(t.precision),t.shouldRound);if(Zt(t,"utils format() - bigNumber2",o.toFixed(Jo(t.precision))),/^0(\.0+)?$/g.test(l)&&t.allowBlank)return"";let[f,c]=l.split(".");const d=c!==void 0?c.length:0;f=f.padStart(t.minimumNumberOfCharacters-d,"0"),f=t1e(f,t.thousands);const v=t.prefix+r1e(f,c,t.decimal)+t.suffix;return Zt(t,"utils format() - output",v),v}function dE(e,t=oi,r=""){if(Zt(t,"utils unformat() - caller",r),Zt(t,"utils unformat() - input",e),!t.disableNegative&&e==="-")return Zt(t,"utils unformat() - return netagive symbol",e),e;const n=t.disableNegative?"":e.indexOf("-")>=0?"-":"",a=e.replace(t.prefix,"").replace(t.suffix,"");Zt(t,"utils unformat() - filtered",a);const i=fN(a);Zt(t,"utils unformat() - numbers",i);const o=new Dv(n+Fv(i,t.precision));Zt(t,"utils unformat() - bigNumber1",i.toString()),t.max&&o.biggerThan(t.max)&&o.setNumber(t.max),t.min&&o.lessThan(t.min)&&o.setNumber(t.min);let l=o.toFixed(Jo(t.precision),t.shouldRound);return t.modelModifiers&&t.modelModifiers.number&&(l=parseFloat(l)),Zt(t,"utils unformat() - output",l),l}const pE=(e,t,r)=>{if(Zt(t,"directive setValue() - caller",r),!n1e(t)){Zt(t,"directive setValue() - validateRestrictedOptions() return false. Stopping here...",e.value);return}let n=e.value.length-(e.selectionEnd||0);e.value=hE(e.value,t,r),n=Math.max(n,t.suffix.length),n=e.value.length-n,n=Math.max(n,t.prefix.length),mN(e,n),e.dispatchEvent(gN("change"))},yN=(e,t)=>{const r=e.currentTarget,n=e.code==="Backspace"||e.code==="Delete",a=r.value.length-(r.selectionEnd||0)===0;if(Zt(t,"directive onkeydown() - el.value",r.value),Zt(t,"directive onkeydown() - backspacePressed",n),Zt(t,"directive onkeydown() - isAtEndPosition",a),t.allowBlank&&n&&a&&dE(r.value,t,"directive onkeydown allowBlank")===0&&(Zt(t,'directive onkeydown() - set el.value = ""',r.value),r.value="",r.dispatchEvent(gN("change"))),Zt(t,"directive onkeydown() - e.key",e.key),e.key==="+"){Zt(t,"directive onkeydown() - unformat el.value",r.value);let i=dE(r.value,t,"directive onkeydown +");typeof i=="string"&&(i=parseFloat(i)),i<0&&(r.value=String(i*-1))}},bN=(e,t)=>{const r=e.currentTarget;Zt(t,"directive oninput()",r.value),/^[1-9]$/.test(r.value)&&(r.value=Fv(r.value,Jo(t.precision)),Zt(t,"directive oninput() - is 1-9",r.value)),pE(r,t,"directive oninput")},_N=(e,t)=>{const r=e.currentTarget;Zt(t,"directive onFocus()",r.value),t.focusOnRight&&mN(r,r.value.length-t.suffix.length)},wN={mounted(e,t){if(!t.value)return;const r=Lv({...oi,...t.value});if(Zt(r,"directive mounted() - opt",r),e.tagName.toLocaleUpperCase()!=="INPUT"){const n=e.getElementsByTagName("input");n.length!==1||(e=n[0])}e.onkeydown=n=>{yN(n,r)},e.oninput=n=>{bN(n,r)},e.onfocus=n=>{_N(n,r)},Zt(r,"directive mounted() - el.value",e.value),pE(e,r,"directive mounted")},updated(e,t){if(!t.value)return;const r=Lv({...oi,...t.value});e.onkeydown=n=>{yN(n,r)},e.oninput=n=>{bN(n,r)},e.onfocus=n=>{_N(n,r)},Zt(r,"directive updated() - el.value",e.value),Zt(r,"directive updated() - opt",r),pE(e,r,"directive updated")},beforeUnmount(e){e.onkeydown=null,e.oninput=null,e.onfocus=null}},i1e=["id","value","disabled"],a1e={inheritAttrs:!1,name:"Money3",directives:{money3:wN}},o1e=rt({...a1e,props:{debug:{required:!1,type:Boolean,default:!1},id:{required:!1,type:[Number,String],default:()=>{const e=Cr();return e?e.uid:null}},modelValue:{required:!0,type:[Number,String]},modelModifiers:{required:!1,type:Object,default:()=>({number:!1})},masked:{type:Boolean,default:!1},precision:{type:Number,default:()=>oi.precision},decimal:{type:String,default:()=>oi.decimal,validator(e){return Oh(e,"decimal")}},thousands:{type:String,default:()=>oi.thousands,validator(e){return Oh(e,"thousands")}},prefix:{type:String,default:()=>oi.prefix,validator(e){return Oh(e,"prefix")}},suffix:{type:String,default:()=>oi.suffix,validator(e){return Oh(e,"suffix")}},disableNegative:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},max:{type:[Number,String],default:()=>oi.max},min:{type:[Number,String],default:()=>oi.min},allowBlank:{type:Boolean,default:()=>oi.allowBlank},minimumNumberOfCharacters:{type:Number,default:()=>oi.minimumNumberOfCharacters},shouldRound:{type:Boolean,default:()=>oi.shouldRound},focusOnRight:{type:Boolean,default:()=>oi.focusOnRight}},emits:["update:model-value"],setup(e,{emit:t}){const r=e,{modelValue:n,modelModifiers:a,masked:i,precision:o,shouldRound:l,focusOnRight:f}=zs(r);Zt(r,"component setup()",r);let c=n.value;(r.disableNegative||c!=="-")&&a.value&&a.value.number&&(l.value?c=Number(n.value).toFixed(Jo(o.value)):c=Number(n.value).toFixed(Jo(o.value)+1).slice(0,-1));const d=Oe(hE(c,r,"component setup"));Zt(r,"component setup() - data.formattedValue",d.value),dt(n,v);function v(T){Zt(r,"component watch() -> value",T);const C=hE(T,Lv({...r}),"component watch");C!==d.value&&(Zt(r,"component watch() changed -> formatted",C),d.value=C)}let m=null;function y(T){let C=T.target.value;Zt(r,"component change() -> evt.target.value",C),i.value&&!a.value.number||(C=dE(C,Lv({...r}),"component change")),C!==m&&(m=C,Zt(r,"component change() -> update:model-value",C),t("update:model-value",C))}const b=tk(),S=be(()=>{const T={...b};return delete T["onUpdate:modelValue"],T});return(T,C)=>{const I=J9("money3");return tn((he(),ke("input",sa({id:`${e.id}`},J(S),{type:"tel",class:"v-money3",value:d.value,disabled:r.disabled,onChange:y}),null,16,i1e)),[[I,{precision:J(o),decimal:r.decimal,thousands:r.thousands,prefix:r.prefix,suffix:r.suffix,disableNegative:r.disableNegative,min:r.min,max:r.max,allowBlank:r.allowBlank,minimumNumberOfCharacters:r.minimumNumberOfCharacters,debug:r.debug,modelModifiers:J(a),shouldRound:J(l),focusOnRight:J(f)}]])}}}),s1e={install(e){e.component("money3",o1e),e.directive("money3",wN)}};/*!
@@ -836,7 +836,7 @@ Component that was made reactive: `,e)),ze(e,t,r,n,a,o,i,!0)}function rge(e){ret
836
836
  * Released under the MIT License.
837
837
  */const g1e=/\{([0-9a-zA-Z]+)\}/g;function y1e(e,...t){return t.length===1&&b1e(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(g1e,(r,n)=>t.hasOwnProperty(n)?t[n]:"")}const b1e=e=>e!==null&&typeof e=="object",On={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},_1e={[On.EXPECTED_TOKEN]:"Expected token: '{0}'",[On.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[On.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[On.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[On.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[On.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[On.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[On.EMPTY_PLACEHOLDER]:"Empty placeholder",[On.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[On.INVALID_LINKED_FORMAT]:"Invalid linked format",[On.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[On.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[On.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[On.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[On.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[On.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function BN(e,t,r={}){const{domain:n,messages:a,args:i}=r,o=y1e((a||_1e)[e]||"",...i||[]),l=new SyntaxError(String(o));return l.code=e,t&&(l.location=t),l.domain=n,l}function w1e(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Rh().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Rh().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Ys=[];Ys[0]={w:[0],i:[3,0],"[":[4],o:[7]},Ys[1]={w:[1],".":[2],"[":[4],o:[7]},Ys[2]={w:[2],i:[3,0],0:[3,0]},Ys[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Ys[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Ys[5]={"'":[4,0],o:8,l:[5,0]},Ys[6]={'"':[4,0],o:8,l:[6,0]};const E1e=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function x1e(e){return E1e.test(e)}function S1e(e){const t=e.charCodeAt(0),r=e.charCodeAt(e.length-1);return t===r&&(t===34||t===39)?e.slice(1,-1):e}function M1e(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function C1e(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:x1e(t)?S1e(t):"*"+t}function T1e(e){const t=[];let r=-1,n=0,a=0,i,o,l,f,c,d,v;const m=[];m[0]=()=>{o===void 0?o=l:o+=l},m[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},m[2]=()=>{m[0](),a++},m[3]=()=>{if(a>0)a--,n=4,m[0]();else{if(a=0,o===void 0||(o=C1e(o),o===!1))return!1;m[1]()}};function y(){const b=e[r+1];if(n===5&&b==="'"||n===6&&b==='"')return r++,l="\\"+b,m[0](),!0}for(;n!==null;)if(r++,i=e[r],!(i==="\\"&&y())){if(f=M1e(i),v=Ys[n],c=v[f]||v.l||8,c===8||(n=c[0],c[1]!==void 0&&(d=m[c[1]],d&&(l=i,d()===!1))))return;if(n===7)return t}}const kN=new Map;function A1e(e,t){return cr(e)?e[t]:null}function I1e(e,t){if(!cr(e))return null;let r=kN.get(t);if(r||(r=T1e(t),r&&kN.set(t,r)),!r)return null;const n=r.length;let a=e,i=0;for(;i<n;){const o=a[r[i]];if(o===void 0)return null;a=o,i++}return a}const B1e=e=>e,k1e=e=>"",N1e="text",O1e=e=>e.length===0?"":p1e(e),R1e=d1e;function NN(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function P1e(e){const t=Tn(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Tn(e.named.count)||Tn(e.named.n))?Tn(e.named.count)?e.named.count:Tn(e.named.n)?e.named.n:t:t}function F1e(e,t){t.count||(t.count=e),t.n||(t.n=e)}function L1e(e={}){const t=e.locale,r=P1e(e),n=cr(e.pluralRules)&&pt(t)&&An(e.pluralRules[t])?e.pluralRules[t]:NN,a=cr(e.pluralRules)&&pt(t)&&An(e.pluralRules[t])?NN:void 0,i=C=>C[n(r,C.length,a)],o=e.list||[],l=C=>o[C],f=e.named||{};Tn(e.pluralIndex)&&F1e(r,f);const c=C=>f[C];function d(C){const I=An(e.messages)?e.messages(C):cr(e.messages)?e.messages[C]:!1;return I||(e.parent?e.parent.message(C):k1e)}const v=C=>e.modifiers?e.modifiers[C]:B1e,m=rr(e.processor)&&An(e.processor.normalize)?e.processor.normalize:O1e,y=rr(e.processor)&&An(e.processor.interpolate)?e.processor.interpolate:R1e,b=rr(e.processor)&&pt(e.processor.type)?e.processor.type:N1e,T={list:l,named:c,plural:i,linked:(C,...I)=>{const[B,N]=I;let R="text",P="";I.length===1?cr(B)?(P=B.modifier||P,R=B.type||R):pt(B)&&(P=B||P):I.length===2&&(pt(B)&&(P=B||P),pt(N)&&(R=N||R));const D=d(C)(T),$=R==="vnode"&&hn(D)&&P?D[0]:D;return P?v(P)($,R):$},message:d,type:b,interpolate:y,normalize:m,values:Kn({},o,f)};return T}let Ph=null;function D1e(e){Ph=e}function $1e(e,t,r){Ph&&Ph.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:r})}const U1e=z1e("function:translate");function z1e(e){return t=>Ph&&Ph.emit(e,t)}const si={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},V1e={[si.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[si.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[si.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[si.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[si.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[si.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[si.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function yf(e,...t){return EN(V1e[e],...t)}function q1e(e,t,r){return[...new Set([r,...hn(t)?t:cr(t)?Object.keys(t):pt(t)?[t]:[r]])]}function ON(e,t,r){const n=pt(r)?r:gE,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let i=a.__localeChainCache.get(n);if(!i){i=[];let o=[r];for(;hn(o);)o=RN(i,o,t);const l=hn(t)||!rr(t)?t:t.default?t.default:null;o=pt(l)?[l]:l,hn(o)&&RN(i,o,!1),a.__localeChainCache.set(n,i)}return i}function RN(e,t,r){let n=!0;for(let a=0;a<t.length&&nn(n);a++){const i=t[a];pt(i)&&(n=H1e(e,t[a],r))}return n}function H1e(e,t,r){let n;const a=t.split("-");do{const i=a.join("-");n=j1e(e,i,r),a.splice(-1,1)}while(a.length&&n===!0);return n}function j1e(e,t,r){let n=!1;if(!e.includes(t)&&(n=!0,t)){n=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(hn(r)||rr(r))&&r[a]&&(n=r[a])}return n}const K1e="9.4.1",zv=-1,gE="en-US",Vv="",PN=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function W1e(){return{upper:(e,t)=>t==="text"&&pt(e)?e.toUpperCase():t==="vnode"&&cr(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&pt(e)?e.toLowerCase():t==="vnode"&&cr(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&pt(e)?PN(e):t==="vnode"&&cr(e)&&"__v_isVNode"in e?PN(e.children):e}}let G1e,FN;function Z1e(e){FN=e}let LN;function J1e(e){LN=e}let DN=null;const $N=e=>{DN=e},Y1e=()=>DN;let UN=null;const zN=e=>{UN=e},X1e=()=>UN;let VN=0;function Q1e(e={}){const t=An(e.onWarn)?e.onWarn:Js,r=pt(e.version)?e.version:K1e,n=pt(e.locale)?e.locale:gE,a=hn(e.fallbackLocale)||rr(e.fallbackLocale)||pt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,i=rr(e.messages)?e.messages:{[n]:{}},o=rr(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},l=rr(e.numberFormats)?e.numberFormats:{[n]:{}},f=Kn({},e.modifiers||{},W1e()),c=e.pluralRules||{},d=An(e.missing)?e.missing:null,v=nn(e.missingWarn)||$v(e.missingWarn)?e.missingWarn:!0,m=nn(e.fallbackWarn)||$v(e.fallbackWarn)?e.fallbackWarn:!0,y=!!e.fallbackFormat,b=!!e.unresolving,S=An(e.postTranslation)?e.postTranslation:null,T=rr(e.processor)?e.processor:null,C=nn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,I=!!e.escapeParameter,B=An(e.messageCompiler)?e.messageCompiler:G1e;fe.env.NODE_ENV!=="production"&&An(e.messageCompiler)&&m1e(yf(si.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const N=An(e.messageResolver)?e.messageResolver:FN||A1e,R=An(e.localeFallbacker)?e.localeFallbacker:LN||q1e,P=cr(e.fallbackContext)?e.fallbackContext:void 0,D=e,$=cr(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,U=cr(D.__numberFormatters)?D.__numberFormatters:new Map,K=cr(D.__meta)?D.__meta:{};VN++;const M={version:r,cid:VN,locale:n,fallbackLocale:a,messages:i,modifiers:f,pluralRules:c,missing:d,missingWarn:v,fallbackWarn:m,fallbackFormat:y,unresolving:b,postTranslation:S,processor:T,warnHtmlMessage:C,escapeParameter:I,messageCompiler:B,messageResolver:N,localeFallbacker:R,fallbackContext:P,onWarn:t,__meta:K};return M.datetimeFormats=o,M.numberFormats=l,M.__datetimeFormatters=$,M.__numberFormatters=U,fe.env.NODE_ENV!=="production"&&(M.__v_emitter=D.__v_emitter!=null?D.__v_emitter:void 0),(fe.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&$1e(M,r,K),M}function qv(e,t){return e instanceof RegExp?e.test(t):e}function qN(e,t){return e instanceof RegExp?e.test(t):e}function yE(e,t,r,n,a){const{missing:i,onWarn:o}=e;if(fe.env.NODE_ENV!=="production"){const l=e.__v_emitter;l&&l.emit("missing",{locale:r,key:t,type:a,groupId:`${a}:${t}`})}if(i!==null){const l=i(e,r,t,a);return pt(l)?l:t}else return fe.env.NODE_ENV!=="production"&&qN(n,t)&&o(yf(si.NOT_FOUND_KEY,{key:t,locale:r})),t}function Fh(e,t,r){const n=e;n.__localeChainCache=new Map,e.localeFallbacker(e,r,t)}const HN=On.__EXTEND_POINT__,Hv=mE(HN),Aa={INVALID_ARGUMENT:HN,INVALID_DATE_ARGUMENT:Hv(),INVALID_ISO_DATE_ARGUMENT:Hv(),NOT_SUPPORT_NON_STRING_MESSAGE:Hv(),__EXTEND_POINT__:Hv()};function $u(e){return BN(e,null,fe.env.NODE_ENV!=="production"?{messages:eye}:void 0)}const eye={[Aa.INVALID_ARGUMENT]:"Invalid arguments",[Aa.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[Aa.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[Aa.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message"},Uu=e=>cr(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e),jN=()=>"",Ia=e=>An(e);function KN(e,...t){const{fallbackFormat:r,postTranslation:n,unresolving:a,messageCompiler:i,fallbackLocale:o,messages:l}=e,[f,c]=bE(...t),d=nn(c.missingWarn)?c.missingWarn:e.missingWarn,v=nn(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,m=nn(c.escapeParameter)?c.escapeParameter:e.escapeParameter,y=!!c.resolvedMessage,b=pt(c.default)||nn(c.default)?nn(c.default)?i?f:()=>f:c.default:r?i?f:()=>f:"",S=r||b!=="",T=pt(c.locale)?c.locale:e.locale;m&&tye(c);let[C,I,B]=y?[f,T,l[T]||{}]:WN(e,f,T,o,v,d),N=C,R=f;if(!y&&!(pt(N)||Uu(N)||Ia(N))&&S&&(N=b,R=N),!y&&(!(pt(N)||Uu(N)||Ia(N))||!pt(I)))return a?zv:f;if(fe.env.NODE_ENV!=="production"&&pt(N)&&e.messageCompiler==null)return Js(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${f}'.`),f;let P=!1;const D=()=>{P=!0},$=Ia(N)?N:GN(e,f,I,N,R,D);if(P)return N;const U=aye(e,I,B,c),K=L1e(U),M=rye(e,$,K),s=n?n(M,f):M;if(fe.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const h={timestamp:Date.now(),key:pt(f)?f:Ia(N)?N.key:"",locale:I||(Ia(N)?N.locale:""),format:pt(N)?N:Ia(N)?N.source:"",message:s};h.meta=Kn({},e.__meta,Y1e()||{}),U1e(h)}return s}function tye(e){hn(e.list)?e.list=e.list.map(t=>pt(t)?SN(t):t):cr(e.named)&&Object.keys(e.named).forEach(t=>{pt(e.named[t])&&(e.named[t]=SN(e.named[t]))})}function WN(e,t,r,n,a,i){const{messages:o,onWarn:l,messageResolver:f,localeFallbacker:c}=e,d=c(e,n,r);let v={},m,y=null,b=r,S=null;const T="translate";for(let C=0;C<d.length;C++){if(m=S=d[C],fe.env.NODE_ENV!=="production"&&r!==m&&qv(a,t)&&l(yf(si.FALLBACK_TO_TRANSLATE,{key:t,target:m})),fe.env.NODE_ENV!=="production"&&r!==m){const P=e.__v_emitter;P&&P.emit("fallback",{type:T,key:t,from:b,to:S,groupId:`${T}:${t}`})}v=o[m]||{};let I=null,B,N;if(fe.env.NODE_ENV!=="production"&&go&&(I=window.performance.now(),B="intlify-message-resolve-start",N="intlify-message-resolve-end",Ai&&Ai(B)),(y=f(v,t))===null&&(y=v[t]),fe.env.NODE_ENV!=="production"&&go){const P=window.performance.now(),D=e.__v_emitter;D&&I&&y&&D.emit("message-resolve",{type:"message-resolve",key:t,message:y,time:P-I,groupId:`${T}:${t}`}),B&&N&&Ai&&gf&&(Ai(N),gf("intlify message resolve",B,N))}if(pt(y)||Uu(y)||Ia(y))break;const R=yE(e,t,m,i,T);R!==t&&(y=R),b=S}return[y,m,v]}function GN(e,t,r,n,a,i){const{messageCompiler:o,warnHtmlMessage:l}=e;if(Ia(n)){const m=n;return m.locale=m.locale||r,m.key=m.key||t,m}if(o==null){const m=()=>n;return m.locale=r,m.key=t,m}let f=null,c,d;fe.env.NODE_ENV!=="production"&&go&&(f=window.performance.now(),c="intlify-message-compilation-start",d="intlify-message-compilation-end",Ai&&Ai(c));const v=o(n,nye(e,r,a,n,l,i));if(fe.env.NODE_ENV!=="production"&&go){const m=window.performance.now(),y=e.__v_emitter;y&&f&&y.emit("message-compilation",{type:"message-compilation",message:n,time:m-f,groupId:`translate:${t}`}),c&&d&&Ai&&gf&&(Ai(d),gf("intlify message compilation",c,d))}return v.locale=r,v.key=t,v.source=n,v}function rye(e,t,r){let n=null,a,i;fe.env.NODE_ENV!=="production"&&go&&(n=window.performance.now(),a="intlify-message-evaluation-start",i="intlify-message-evaluation-end",Ai&&Ai(a));const o=t(r);if(fe.env.NODE_ENV!=="production"&&go){const l=window.performance.now(),f=e.__v_emitter;f&&n&&f.emit("message-evaluation",{type:"message-evaluation",value:o,time:l-n,groupId:`translate:${t.key}`}),a&&i&&Ai&&gf&&(Ai(i),gf("intlify message evaluation",a,i))}return o}function bE(...e){const[t,r,n]=e,a={};if(!pt(t)&&!Tn(t)&&!Ia(t)&&!Uu(t))throw $u(Aa.INVALID_ARGUMENT);const i=Tn(t)?String(t):(Ia(t),t);return Tn(r)?a.plural=r:pt(r)?a.default=r:rr(r)&&!Uv(r)?a.named=r:hn(r)&&(a.list=r),Tn(n)?a.plural=n:pt(n)?a.default=n:rr(n)&&Kn(a,n),[i,a]}function nye(e,t,r,n,a,i){return{locale:t,key:r,warnHtmlMessage:a,onError:o=>{if(i&&i(o),fe.env.NODE_ENV!=="production"){const l=iye(n),f=`Message compilation error: ${o.message}`,c=o.location&&l&&v1e(l,o.location.start.offset,o.location.end.offset),d=e.__v_emitter;d&&l&&d.emit("compile-error",{message:l,error:o.message,start:o.location&&o.location.start.offset,end:o.location&&o.location.end.offset,groupId:`translate:${r}`}),console.error(c?`${f}
838
838
  ${c}`:f)}else throw o},onCacheKey:o=>f1e(t,r,o)}}function iye(e){var t;if(!pt(e)){if((t=e.loc)!=null&&t.source)return e.loc.source}}function aye(e,t,r,n){const{modifiers:a,pluralRules:i,messageResolver:o,fallbackLocale:l,fallbackWarn:f,missingWarn:c,fallbackContext:d}=e,m={locale:t,modifiers:a,pluralRules:i,messages:y=>{let b=o(r,y);if(b==null&&d){const[,,S]=WN(d,y,t,l,f,c);b=o(S,y)}if(pt(b)||Uu(b)){let S=!1;const C=GN(e,y,t,b,y,()=>{S=!0});return S?jN:C}else return Ia(b)?b:jN}};return e.processor&&(m.processor=e.processor),n.list&&(m.list=n.list),n.named&&(m.named=n.named),Tn(n.plural)&&(m.pluralIndex=n.plural),m}const ZN=typeof Intl<"u",JN={dateTimeFormat:ZN&&typeof Intl.DateTimeFormat<"u",numberFormat:ZN&&typeof Intl.NumberFormat<"u"};function YN(e,...t){const{datetimeFormats:r,unresolving:n,fallbackLocale:a,onWarn:i,localeFallbacker:o}=e,{__datetimeFormatters:l}=e;if(fe.env.NODE_ENV!=="production"&&!JN.dateTimeFormat)return i(yf(si.CANNOT_FORMAT_DATE)),Vv;const[f,c,d,v]=_E(...t),m=nn(d.missingWarn)?d.missingWarn:e.missingWarn,y=nn(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,b=!!d.part,S=pt(d.locale)?d.locale:e.locale,T=o(e,a,S);if(!pt(f)||f==="")return new Intl.DateTimeFormat(S,v).format(c);let C={},I,B=null,N=S,R=null;const P="datetime format";for(let U=0;U<T.length;U++){if(I=R=T[U],fe.env.NODE_ENV!=="production"&&S!==I&&qv(y,f)&&i(yf(si.FALLBACK_TO_DATE_FORMAT,{key:f,target:I})),fe.env.NODE_ENV!=="production"&&S!==I){const K=e.__v_emitter;K&&K.emit("fallback",{type:P,key:f,from:N,to:R,groupId:`${P}:${f}`})}if(C=r[I]||{},B=C[f],rr(B))break;yE(e,f,I,m,P),N=R}if(!rr(B)||!pt(I))return n?zv:f;let D=`${I}__${f}`;Uv(v)||(D=`${D}__${JSON.stringify(v)}`);let $=l.get(D);return $||($=new Intl.DateTimeFormat(I,Kn({},B,v)),l.set(D,$)),b?$.formatToParts(c):$.format(c)}const XN=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function _E(...e){const[t,r,n,a]=e,i={};let o={},l;if(pt(t)){const f=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!f)throw $u(Aa.INVALID_ISO_DATE_ARGUMENT);const c=f[3]?f[3].trim().startsWith("T")?`${f[1].trim()}${f[3].trim()}`:`${f[1].trim()}T${f[3].trim()}`:f[1].trim();l=new Date(c);try{l.toISOString()}catch{throw $u(Aa.INVALID_ISO_DATE_ARGUMENT)}}else if(c1e(t)){if(isNaN(t.getTime()))throw $u(Aa.INVALID_DATE_ARGUMENT);l=t}else if(Tn(t))l=t;else throw $u(Aa.INVALID_ARGUMENT);return pt(r)?i.key=r:rr(r)&&Object.keys(r).forEach(f=>{XN.includes(f)?o[f]=r[f]:i[f]=r[f]}),pt(n)?i.locale=n:rr(n)&&(o=n),rr(a)&&(o=a),[i.key||"",l,i,o]}function QN(e,t,r){const n=e;for(const a in r){const i=`${t}__${a}`;n.__datetimeFormatters.has(i)&&n.__datetimeFormatters.delete(i)}}function eO(e,...t){const{numberFormats:r,unresolving:n,fallbackLocale:a,onWarn:i,localeFallbacker:o}=e,{__numberFormatters:l}=e;if(fe.env.NODE_ENV!=="production"&&!JN.numberFormat)return i(yf(si.CANNOT_FORMAT_NUMBER)),Vv;const[f,c,d,v]=wE(...t),m=nn(d.missingWarn)?d.missingWarn:e.missingWarn,y=nn(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,b=!!d.part,S=pt(d.locale)?d.locale:e.locale,T=o(e,a,S);if(!pt(f)||f==="")return new Intl.NumberFormat(S,v).format(c);let C={},I,B=null,N=S,R=null;const P="number format";for(let U=0;U<T.length;U++){if(I=R=T[U],fe.env.NODE_ENV!=="production"&&S!==I&&qv(y,f)&&i(yf(si.FALLBACK_TO_NUMBER_FORMAT,{key:f,target:I})),fe.env.NODE_ENV!=="production"&&S!==I){const K=e.__v_emitter;K&&K.emit("fallback",{type:P,key:f,from:N,to:R,groupId:`${P}:${f}`})}if(C=r[I]||{},B=C[f],rr(B))break;yE(e,f,I,m,P),N=R}if(!rr(B)||!pt(I))return n?zv:f;let D=`${I}__${f}`;Uv(v)||(D=`${D}__${JSON.stringify(v)}`);let $=l.get(D);return $||($=new Intl.NumberFormat(I,Kn({},B,v)),l.set(D,$)),b?$.formatToParts(c):$.format(c)}const tO=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function wE(...e){const[t,r,n,a]=e,i={};let o={};if(!Tn(t))throw $u(Aa.INVALID_ARGUMENT);const l=t;return pt(r)?i.key=r:rr(r)&&Object.keys(r).forEach(f=>{tO.includes(f)?o[f]=r[f]:i[f]=r[f]}),pt(n)?i.locale=n:rr(n)&&(o=n),rr(a)&&(o=a),[i.key||"",l,i,o]}function rO(e,t,r){const n=e;for(const a in r){const i=`${t}__${a}`;n.__numberFormatters.has(i)&&n.__numberFormatters.delete(i)}}w1e();function oye(){return nO().__VUE_DEVTOOLS_GLOBAL_HOOK__}function nO(){return typeof navigator<"u"&&typeof window<"u"?window:typeof wn<"u"?wn:{}}const sye=typeof Proxy=="function",lye="devtools-plugin:setup",fye="plugin:settings:set";let zu,EE;function uye(){var e;return zu!==void 0||(typeof window<"u"&&window.performance?(zu=!0,EE=window.performance):typeof wn<"u"&&(!((e=wn.perf_hooks)===null||e===void 0)&&e.performance)?(zu=!0,EE=wn.perf_hooks.performance):zu=!1),zu}function cye(){return uye()?EE.now():Date.now()}class hye{constructor(t,r){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=r;const n={};if(t.settings)for(const o in t.settings){const l=t.settings[o];n[o]=l.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let i=Object.assign({},n);try{const o=localStorage.getItem(a),l=JSON.parse(o);Object.assign(i,l)}catch{}this.fallbacks={getSettings(){return i},setSettings(o){try{localStorage.setItem(a,JSON.stringify(o))}catch{}i=o},now(){return cye()}},r&&r.on(fye,(o,l)=>{o===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(o,l)=>this.target?this.target.on[l]:(...f)=>{this.onQueue.push({method:l,args:f})}}),this.proxiedTarget=new Proxy({},{get:(o,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...f)=>(this.targetQueue.push({method:l,args:f,resolve:()=>{}}),this.fallbacks[l](...f)):(...f)=>new Promise(c=>{this.targetQueue.push({method:l,args:f,resolve:c})})})}async setRealTarget(t){this.target=t;for(const r of this.onQueue)this.target.on[r.method](...r.args);for(const r of this.targetQueue)r.resolve(await this.target[r.method](...r.args))}}function dye(e,t){const r=e,n=nO(),a=oye(),i=sye&&r.enableEarlyProxy;if(a&&(n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))a.emit(lye,e,t);else{const o=i?new hye(r,a):null;(n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}const pye="9.4.1";function vye(){typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Rh().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Rh().__INTLIFY_PROD_DEVTOOLS__=!1)}const iO=si.__EXTEND_POINT__,Xs=mE(iO),gi={FALLBACK_TO_ROOT:iO,NOT_SUPPORTED_PRESERVE:Xs(),NOT_SUPPORTED_FORMATTER:Xs(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Xs(),NOT_SUPPORTED_GET_CHOICE_INDEX:Xs(),COMPONENT_NAME_LEGACY_COMPATIBLE:Xs(),NOT_FOUND_PARENT_SCOPE:Xs(),IGNORE_OBJ_FLATTEN:Xs(),NOTICE_DROP_ALLOW_COMPOSITION:Xs()},mye={[gi.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[gi.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[gi.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[gi.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[gi.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[gi.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[gi.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[gi.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[gi.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze"};function Lh(e,...t){return EN(mye[e],...t)}const aO=Aa.__EXTEND_POINT__,yi=mE(aO),Er={UNEXPECTED_RETURN_TYPE:aO,INVALID_ARGUMENT:yi(),MUST_BE_CALL_SETUP_TOP:yi(),NOT_INSTALLED:yi(),NOT_AVAILABLE_IN_LEGACY_MODE:yi(),REQUIRED_VALUE:yi(),INVALID_VALUE:yi(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:yi(),NOT_INSTALLED_WITH_PROVIDE:yi(),UNEXPECTED_ERROR:yi(),NOT_COMPATIBLE_LEGACY_VUE_I18N:yi(),BRIDGE_SUPPORT_VUE_2_ONLY:yi(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:yi(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:yi(),__EXTEND_POINT__:yi()};function Ii(e,...t){return BN(e,null,fe.env.NODE_ENV!=="production"?{messages:gye,args:t}:void 0)}const gye={[Er.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Er.INVALID_ARGUMENT]:"Invalid argument",[Er.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Er.NOT_INSTALLED]:"Need to install with `app.use` function",[Er.UNEXPECTED_ERROR]:"Unexpected error",[Er.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[Er.REQUIRED_VALUE]:"Required in value: {0}",[Er.INVALID_VALUE]:"Invalid value",[Er.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Er.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Er.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Er.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[Er.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[Er.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},xE=yo("__translateVNode"),SE=yo("__datetimeParts"),ME=yo("__numberParts"),Dh=yo("__enableEmitter"),CE=yo("__disableEmitter"),yye=yo("__setPluralRules"),bye=yo("__injectWithOption"),TE=yo("__dispose");function AE(e){if(!cr(e))return e;for(const t in e)if(vE(e,t))if(!t.includes("."))cr(e[t])&&AE(e[t]);else{const r=t.split("."),n=r.length-1;let a=e,i=!1;for(let o=0;o<n;o++){if(r[o]in a||(a[r[o]]={}),!cr(a[r[o]])){fe.env.NODE_ENV!=="production"&&Js(Lh(gi.IGNORE_OBJ_FLATTEN,{key:r[o]})),i=!0;break}a=a[r[o]]}i||(a[r[n]]=e[t],delete e[t]),cr(a[r[n]])&&AE(a[r[n]])}return e}function oO(e,t){const{messages:r,__i18n:n,messageResolver:a,flatJson:i}=t,o=rr(r)?r:hn(n)?{}:{[e]:{}};if(hn(n)&&n.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:f,resource:c}=l;f?(o[f]=o[f]||{},$h(c,o[f])):$h(c,o)}else pt(l)&&$h(JSON.parse(l),o)}),a==null&&i)for(const l in o)vE(o,l)&&AE(o[l]);return o}const jv=e=>!cr(e)||hn(e);function $h(e,t){if(jv(e)||jv(t))throw Ii(Er.INVALID_VALUE);for(const r in e)vE(e,r)&&(jv(e[r])||jv(t[r])?t[r]=e[r]:$h(e[r],t[r]))}function sO(e){return e.type}function _ye(e,t,r){let n=cr(t.messages)?t.messages:{};"__i18nGlobal"in r&&(n=oO(e.locale.value,{messages:n,__i18n:r.__i18nGlobal}));const a=Object.keys(n);a.length&&a.forEach(i=>{e.mergeLocaleMessage(i,n[i])});{if(cr(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(cr(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function lO(e){return Et(Ks,null,e,0)}const fO="__INTLIFY_META__";let uO=0;function cO(e){return(t,r,n,a)=>e(r,n,Cr()||void 0,a)}const wye=()=>{const e=Cr();let t=null;return e&&(t=sO(e)[fO])?{[fO]:t}:null};function hO(e={},t){const{__root:r,__injectWithOption:n}=e,a=r===void 0;let i=nn(e.inheritLocale)?e.inheritLocale:!0;const o=Oe(r&&i?r.locale.value:pt(e.locale)?e.locale:gE),l=Oe(r&&i?r.fallbackLocale.value:pt(e.fallbackLocale)||hn(e.fallbackLocale)||rr(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o.value),f=Oe(oO(o.value,e)),c=Oe(rr(e.datetimeFormats)?e.datetimeFormats:{[o.value]:{}}),d=Oe(rr(e.numberFormats)?e.numberFormats:{[o.value]:{}});let v=r?r.missingWarn:nn(e.missingWarn)||$v(e.missingWarn)?e.missingWarn:!0,m=r?r.fallbackWarn:nn(e.fallbackWarn)||$v(e.fallbackWarn)?e.fallbackWarn:!0,y=r?r.fallbackRoot:nn(e.fallbackRoot)?e.fallbackRoot:!0,b=!!e.fallbackFormat,S=An(e.missing)?e.missing:null,T=An(e.missing)?cO(e.missing):null,C=An(e.postTranslation)?e.postTranslation:null,I=r?r.warnHtmlMessage:nn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,B=!!e.escapeParameter;const N=r?r.modifiers:rr(e.modifiers)?e.modifiers:{};let R=e.pluralRules||r&&r.pluralRules,P;P=(()=>{a&&zN(null);const H={version:pye,locale:o.value,fallbackLocale:l.value,messages:f.value,modifiers:N,pluralRules:R,missing:T===null?void 0:T,missingWarn:v,fallbackWarn:m,fallbackFormat:b,unresolving:!0,postTranslation:C===null?void 0:C,warnHtmlMessage:I,escapeParameter:B,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};H.datetimeFormats=c.value,H.numberFormats=d.value,H.__datetimeFormatters=rr(P)?P.__datetimeFormatters:void 0,H.__numberFormatters=rr(P)?P.__numberFormatters:void 0,fe.env.NODE_ENV!=="production"&&(H.__v_emitter=rr(P)?P.__v_emitter:void 0);const G=Q1e(H);return a&&zN(G),G})(),Fh(P,o.value,l.value);function $(){return[o.value,l.value,f.value,c.value,d.value]}const U=be({get:()=>o.value,set:H=>{o.value=H,P.locale=o.value}}),K=be({get:()=>l.value,set:H=>{l.value=H,P.fallbackLocale=l.value,Fh(P,o.value,H)}}),M=be(()=>f.value),s=be(()=>c.value),h=be(()=>d.value);function p(){return An(C)?C:null}function g(H){C=H,P.postTranslation=H}function _(){return S}function w(H){H!==null&&(T=cO(H)),S=H,P.missing=T}function A(H,G){return H!=="translate"||!G.resolvedMessage}const E=(H,G,me,oe,de,Xe)=>{$();let Ee;try{(fe.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&$N(wye()),a||(P.fallbackContext=r?X1e():void 0),Ee=H(P)}finally{(fe.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&$N(null),a||(P.fallbackContext=void 0)}if(Tn(Ee)&&Ee===zv){const[Se,_e]=G();if(fe.env.NODE_ENV!=="production"&&r&&pt(Se)&&A(me,_e)&&(y&&(qv(m,Se)||qN(v,Se))&&Js(Lh(gi.FALLBACK_TO_ROOT,{key:Se,type:me})),fe.env.NODE_ENV!=="production")){const{__v_emitter:pe}=P;pe&&y&&pe.emit("fallback",{type:me,key:Se,to:"global",groupId:`${me}:${Se}`})}return r&&y?oe(r):de(Se)}else{if(Xe(Ee))return Ee;throw Ii(Er.UNEXPECTED_RETURN_TYPE)}};function u(...H){return E(G=>Reflect.apply(KN,null,[G,...H]),()=>bE(...H),"translate",G=>Reflect.apply(G.t,G,[...H]),G=>G,G=>pt(G))}function x(...H){const[G,me,oe]=H;if(oe&&!cr(oe))throw Ii(Er.INVALID_ARGUMENT);return u(G,me,Kn({resolvedMessage:!0},oe||{}))}function k(...H){return E(G=>Reflect.apply(YN,null,[G,...H]),()=>_E(...H),"datetime format",G=>Reflect.apply(G.d,G,[...H]),()=>Vv,G=>pt(G))}function O(...H){return E(G=>Reflect.apply(eO,null,[G,...H]),()=>wE(...H),"number format",G=>Reflect.apply(G.n,G,[...H]),()=>Vv,G=>pt(G))}function q(H){return H.map(G=>pt(G)||Tn(G)||nn(G)?lO(String(G)):G)}const W={normalize:q,interpolate:H=>H,type:"vnode"};function X(...H){return E(G=>{let me;const oe=G;try{oe.processor=W,me=Reflect.apply(KN,null,[oe,...H])}finally{oe.processor=null}return me},()=>bE(...H),"translate",G=>G[xE](...H),G=>[lO(G)],G=>hn(G))}function ie(...H){return E(G=>Reflect.apply(eO,null,[G,...H]),()=>wE(...H),"number format",G=>G[ME](...H),()=>[],G=>pt(G)||hn(G))}function ne(...H){return E(G=>Reflect.apply(YN,null,[G,...H]),()=>_E(...H),"datetime format",G=>G[SE](...H),()=>[],G=>pt(G)||hn(G))}function ce(H){R=H,P.pluralRules=R}function te(H,G){const me=pt(G)?G:o.value,oe=ae(me);return P.messageResolver(oe,H)!==null}function Z(H){let G=null;const me=ON(P,l.value,o.value);for(let oe=0;oe<me.length;oe++){const de=f.value[me[oe]]||{},Xe=P.messageResolver(de,H);if(Xe!=null){G=Xe;break}}return G}function j(H){const G=Z(H);return G??(r?r.tm(H)||{}:{})}function ae(H){return f.value[H]||{}}function se(H,G){f.value[H]=G,P.messages=f.value}function V(H,G){f.value[H]=f.value[H]||{},$h(G,f.value[H]),P.messages=f.value}function L(H){return c.value[H]||{}}function F(H,G){c.value[H]=G,P.datetimeFormats=c.value,QN(P,H,G)}function z(H,G){c.value[H]=Kn(c.value[H]||{},G),P.datetimeFormats=c.value,QN(P,H,G)}function le(H){return d.value[H]||{}}function Q(H,G){d.value[H]=G,P.numberFormats=d.value,rO(P,H,G)}function re(H,G){d.value[H]=Kn(d.value[H]||{},G),P.numberFormats=d.value,rO(P,H,G)}uO++,r&&go&&(dt(r.locale,H=>{i&&(o.value=H,P.locale=H,Fh(P,o.value,l.value))}),dt(r.fallbackLocale,H=>{i&&(l.value=H,P.fallbackLocale=H,Fh(P,o.value,l.value))}));const ue={id:uO,locale:U,fallbackLocale:K,get inheritLocale(){return i},set inheritLocale(H){i=H,H&&r&&(o.value=r.locale.value,l.value=r.fallbackLocale.value,Fh(P,o.value,l.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:M,get modifiers(){return N},get pluralRules(){return R||{}},get isGlobal(){return a},get missingWarn(){return v},set missingWarn(H){v=H,P.missingWarn=v},get fallbackWarn(){return m},set fallbackWarn(H){m=H,P.fallbackWarn=m},get fallbackRoot(){return y},set fallbackRoot(H){y=H},get fallbackFormat(){return b},set fallbackFormat(H){b=H,P.fallbackFormat=b},get warnHtmlMessage(){return I},set warnHtmlMessage(H){I=H,P.warnHtmlMessage=H},get escapeParameter(){return B},set escapeParameter(H){B=H,P.escapeParameter=H},t:u,getLocaleMessage:ae,setLocaleMessage:se,mergeLocaleMessage:V,getPostTranslationHandler:p,setPostTranslationHandler:g,getMissingHandler:_,setMissingHandler:w,[yye]:ce};return ue.datetimeFormats=s,ue.numberFormats=h,ue.rt=x,ue.te=te,ue.tm=j,ue.d=k,ue.n=O,ue.getDateTimeFormat=L,ue.setDateTimeFormat=F,ue.mergeDateTimeFormat=z,ue.getNumberFormat=le,ue.setNumberFormat=Q,ue.mergeNumberFormat=re,ue[bye]=n,ue[xE]=X,ue[SE]=ne,ue[ME]=ie,fe.env.NODE_ENV!=="production"&&(ue[Dh]=H=>{P.__v_emitter=H},ue[CE]=()=>{P.__v_emitter=void 0}),ue}const IE={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Eye({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((n,a)=>[...n,...a.type===Ct?a.children:[a]],[]):t.reduce((r,n)=>{const a=e[n];return a&&(r[n]=a()),r},{})}function dO(e){return Ct}const BE=rt({name:"i18n-t",props:Kn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Tn(e)||!isNaN(e)}},IE),setup(e,t){const{slots:r,attrs:n}=t,a=e.i18n||bo({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(r).filter(v=>v!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=pt(e.plural)?+e.plural:e.plural);const l=Eye(t,i),f=a[xE](e.keypath,l,o),c=Kn({},n),d=pt(e.tag)||cr(e.tag)?e.tag:dO();return Ot(d,c,f)}}});function xye(e){return hn(e)&&!pt(e[0])}function pO(e,t,r,n){const{slots:a,attrs:i}=t;return()=>{const o={part:!0};let l={};e.locale&&(o.locale=e.locale),pt(e.format)?o.key=e.format:cr(e.format)&&(pt(e.format.key)&&(o.key=e.format.key),l=Object.keys(e.format).reduce((m,y)=>r.includes(y)?Kn({},m,{[y]:e.format[y]}):m,{}));const f=n(e.value,o,l);let c=[o.key];hn(f)?c=f.map((m,y)=>{const b=a[m.type],S=b?b({[m.type]:m.value,index:y,parts:f}):[m.value];return xye(S)&&(S[0].key=`${m.type}-${y}`),S}):pt(f)&&(c=[f]);const d=Kn({},i),v=pt(e.tag)||cr(e.tag)?e.tag:dO();return Ot(v,d,c)}}const vO=rt({name:"i18n-n",props:Kn({value:{type:Number,required:!0},format:{type:[String,Object]}},IE),setup(e,t){const r=e.i18n||bo({useScope:"parent",__useComponent:!0});return pO(e,t,tO,(...n)=>r[ME](...n))}}),mO=rt({name:"i18n-d",props:Kn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},IE),setup(e,t){const r=e.i18n||bo({useScope:"parent",__useComponent:!0});return pO(e,t,XN,(...n)=>r[SE](...n))}});function Sye(e,t){const r=e;if(e.mode==="composition")return r.__getInstance(t)||e.global;{const n=r.__getInstance(t);return n!=null?n.__composer:e.global.__composer}}function Mye(e){const t=o=>{const{instance:l,modifiers:f,value:c}=o;if(!l||!l.$)throw Ii(Er.UNEXPECTED_ERROR);const d=Sye(e,l.$);fe.env.NODE_ENV!=="production"&&f.preserve&&Js(Lh(gi.NOT_SUPPORTED_PRESERVE));const v=gO(c);return[Reflect.apply(d.t,d,[...yO(v)]),d]};return{created:(o,l)=>{const[f,c]=t(l);go&&e.global===c&&(o.__i18nWatcher=dt(c.locale,()=>{l.instance&&l.instance.$forceUpdate()})),o.__composer=c,o.textContent=f},unmounted:o=>{go&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:l})=>{if(o.__composer){const f=o.__composer,c=gO(l);o.textContent=Reflect.apply(f.t,f,[...yO(c)])}},getSSRProps:o=>{const[l]=t(o);return{textContent:l}}}}function gO(e){if(pt(e))return{path:e};if(rr(e)){if(!("path"in e))throw Ii(Er.REQUIRED_VALUE,"path");return e}else throw Ii(Er.INVALID_VALUE)}function yO(e){const{path:t,locale:r,args:n,choice:a,plural:i}=e,o={},l=n||{};return pt(r)&&(o.locale=r),Tn(a)&&(o.plural=a),Tn(i)&&(o.plural=i),[t,l,o]}function Cye(e,t,...r){const n=rr(r[0])?r[0]:{},a=!!n.useI18nComponentName,i=nn(n.globalInstall)?n.globalInstall:!0;fe.env.NODE_ENV!=="production"&&i&&a&&Js(Lh(gi.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:BE.name})),i&&([a?"i18n":BE.name,"I18nT"].forEach(o=>e.component(o,BE)),[vO.name,"I18nN"].forEach(o=>e.component(o,vO)),[mO.name,"I18nD"].forEach(o=>e.component(o,mO))),e.directive("t",Mye(t))}const kE={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},Tye={"vue-i18n-resource-inspector":"Search for scopes ..."},Aye={"vue-i18n-timeline":16764185},bO="vue-i18n: composer properties";let NE;async function Iye(e,t){return new Promise((r,n)=>{try{dye({id:"vue-devtools-plugin-vue-i18n",label:kE["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[bO],app:e},a=>{NE=a,a.on.visitComponentTree(({componentInstance:o,treeNode:l})=>{Bye(o,l,t)}),a.on.inspectComponent(({componentInstance:o,instanceData:l})=>{o.vnode.el&&o.vnode.el.__VUE_I18N__&&l&&(t.mode==="legacy"?o.vnode.el.__VUE_I18N__!==t.global.__composer&&wO(l,o.vnode.el.__VUE_I18N__):wO(l,o.vnode.el.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:kE["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Tye["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&Pye(o,t)});const i=new Map;a.on.getInspectorState(async o=>{if(o.app===e&&o.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),Lye(o,t),o.nodeId==="global"){if(!i.has(o.app)){const[l]=await a.getComponentInstances(o.app);i.set(o.app,l)}a.highlightElement(i.get(o.app))}else{const l=Fye(o.nodeId,t);l&&a.highlightElement(l)}}),a.on.editInspectorState(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&$ye(o,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:kE["vue-i18n-timeline"],color:Aye["vue-i18n-timeline"]}),r(!0)})}catch(a){console.error(a),n(!1)}})}function _O(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Bye(e,t,r){const n=r.mode==="composition"?r.global:r.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==n){const a={label:`i18n (${_O(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function wO(e,t){const r=bO;e.state.push({type:r,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:r,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:r,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:r,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:r,key:"messages",editable:!1,value:OE(t.messages.value)}),e.state.push({type:r,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:r,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function OE(e){const t={};return Object.keys(e).forEach(r=>{const n=e[r];An(n)&&"source"in n?t[r]=Rye(n):Uu(n)&&n.loc&&n.loc.source?t[r]=n.loc.source:cr(n)?t[r]=OE(n):t[r]=n}),t}const kye={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function Nye(e){return e.replace(/[<>"&]/g,Oye)}function Oye(e){return kye[e]||e}function Rye(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Nye(e.source)}")`:"(?)"}`}}}function Pye(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const r=t.mode==="composition"?t.global:t.global.__composer;for(const[n,a]of t.__instances){const i=t.mode==="composition"?a:a.__composer;r!==i&&e.rootNodes.push({id:i.id.toString(),label:`${_O(n)} Scope`})}}function Fye(e,t){let r=null;if(e!=="global"){for(const[n,a]of t.__instances.entries())if(a.id.toString()===e){r=n;break}}return r}function EO(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const r=Array.from(t.__instances.values()).find(n=>n.id.toString()===e);return r?t.mode==="composition"?r:r.__composer:null}}function Lye(e,t){const r=EO(e.nodeId,t);return r&&(e.state=Dye(r)),null}function Dye(e){const t={},r="Locale related info",n=[{type:r,key:"locale",editable:!0,value:e.locale.value},{type:r,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:r,key:"availableLocales",editable:!1,value:e.availableLocales},{type:r,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[r]=n;const a="Locale messages info",i=[{type:a,key:"messages",editable:!1,value:OE(e.messages.value)}];t[a]=i;{const o="Datetime formats info",l=[{type:o,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[o]=l;const f="Datetime formats info",c=[{type:f,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[f]=c}return t}function RE(e,t){if(NE){let r;t&&"groupId"in t&&(r=t.groupId,delete t.groupId),NE.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:r,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function $ye(e,t){const r=EO(e.nodeId,t);if(r){const[n]=e.path;n==="locale"&&pt(e.state.value)?r.locale.value=e.state.value:n==="fallbackLocale"&&(pt(e.state.value)||hn(e.state.value)||cr(e.state.value))?r.fallbackLocale.value=e.state.value:n==="inheritLocale"&&nn(e.state.value)&&(r.inheritLocale=e.state.value)}}const Uye=yo("global-vue-i18n");function zye(e={},t){const r=nn(e.globalInjection)?e.globalInjection:!0,n=!0,a=new Map,[i,o]=Vye(e),l=yo(fe.env.NODE_ENV!=="production"?"vue-i18n":"");fe.env.NODE_ENV;function f(v){return a.get(v)||null}function c(v,m){a.set(v,m)}function d(v){a.delete(v)}{const v={get mode(){return"composition"},get allowComposition(){return n},async install(m,...y){if(fe.env.NODE_ENV!=="production"&&(m.__VUE_I18N__=v),m.__VUE_I18N_SYMBOL__=l,m.provide(m.__VUE_I18N_SYMBOL__,v),rr(y[0])){const T=y[0];v.__composerExtend=T.__composerExtend,v.__vueI18nExtend=T.__vueI18nExtend}let b=null;r&&(b=Jye(m,v.global)),Cye(m,v,...y);const S=m.unmount;if(m.unmount=()=>{b&&b(),v.dispose(),S()},fe.env.NODE_ENV!=="production"){if(!await Iye(m,v))throw Ii(Er.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const C=IN();{const I=o;I[Dh]&&I[Dh](C)}C.on("*",RE)}},get global(){return o},dispose(){i.stop()},__instances:a,__getInstance:f,__setInstance:c,__deleteInstance:d};return v}}function bo(e={}){const t=Cr();if(t==null)throw Ii(Er.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ii(Er.NOT_INSTALLED);const r=qye(t),n=jye(r),a=sO(t),i=Hye(e,a);if(i==="global")return _ye(n,e,a),n;if(i==="parent"){let f=Kye(r,t,e.__useComponent);return f==null&&(fe.env.NODE_ENV!=="production"&&Js(Lh(gi.NOT_FOUND_PARENT_SCOPE)),f=n),f}const o=r;let l=o.__getInstance(t);if(l==null){const f=Kn({},e);"__i18n"in a&&(f.__i18n=a.__i18n),n&&(f.__root=n),l=hO(f),o.__composerExtend&&(l[TE]=o.__composerExtend(l)),Gye(o,t,l),o.__setInstance(t,l)}return l}function Vye(e,t,r){const n=eve();{const a=n.run(()=>hO(e));if(a==null)throw Ii(Er.UNEXPECTED_ERROR);return[n,a]}}function qye(e){{const t=wt(e.isCE?Uye:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ii(e.isCE?Er.NOT_INSTALLED_WITH_PROVIDE:Er.UNEXPECTED_ERROR);return t}}function Hye(e,t){return Uv(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function jye(e){return e.mode==="composition"?e.global:e.global.__composer}function Kye(e,t,r=!1){let n=null;const a=t.root;let i=Wye(t,r);for(;i!=null;){const o=e;if(e.mode==="composition"&&(n=o.__getInstance(i)),n!=null||a===i)break;i=i.parent}return n}function Wye(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Gye(e,t,r){let n=null;ur(()=>{if(fe.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=r,n=IN();const a=r;a[Dh]&&a[Dh](n),n.on("*",RE)}},t),xv(()=>{const a=r;fe.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(n&&n.off("*",RE),a[CE]&&a[CE](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const i=a[TE];i&&(i(),delete a[TE])},t)}const Zye=["locale","fallbackLocale","availableLocales"],xO=["t","rt","d","n","tm","te"];function Jye(e,t){const r=Object.create(null);return Zye.forEach(a=>{const i=Object.getOwnPropertyDescriptor(t,a);if(!i)throw Ii(Er.UNEXPECTED_ERROR);const o=gr(i.value)?{get(){return i.value.value},set(l){i.value.value=l}}:{get(){return i.get&&i.get()}};Object.defineProperty(r,a,o)}),e.config.globalProperties.$i18n=r,xO.forEach(a=>{const i=Object.getOwnPropertyDescriptor(t,a);if(!i||!i.value)throw Ii(Er.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,i)}),()=>{delete e.config.globalProperties.$i18n,xO.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}if(vye(),Z1e(I1e),J1e(ON),fe.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Rh();e.__INTLIFY__=!0,D1e(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}fe.env.NODE_ENV;const SO=Symbol(),Kv="el",Yye="is-",bf=(e,t,r,n,a)=>{let i=`${e}-${t}`;return r&&(i+=`-${r}`),n&&(i+=`__${n}`),a&&(i+=`--${a}`),i},MO=Symbol("namespaceContextKey"),PE=e=>{const t=e||(Cr()?wt(MO,Oe(Kv)):Oe(Kv));return be(()=>J(t)||Kv)},Gt=(e,t)=>{const r=PE(t);return{namespace:r,b:(S="")=>bf(r.value,e,S,"",""),e:S=>S?bf(r.value,e,"",S,""):"",m:S=>S?bf(r.value,e,"","",S):"",be:(S,T)=>S&&T?bf(r.value,e,S,T,""):"",em:(S,T)=>S&&T?bf(r.value,e,"",S,T):"",bm:(S,T)=>S&&T?bf(r.value,e,S,"",T):"",bem:(S,T,C)=>S&&T&&C?bf(r.value,e,S,T,C):"",is:(S,...T)=>{const C=T.length>=1?T[0]:!0;return S&&C?`${Yye}${S}`:""},cssVar:S=>{const T={};for(const C in S)S[C]&&(T[`--${r.value}-${C}`]=S[C]);return T},cssVarName:S=>`--${r.value}-${S}`,cssVarBlock:S=>{const T={};for(const C in S)S[C]&&(T[`--${r.value}-${e}-${C}`]=S[C]);return T},cssVarBlockName:S=>`--${r.value}-${e}-${S}`}};var Xye=typeof wn=="object"&&wn&&wn.Object===Object&&wn;const CO=Xye;var Qye=typeof self=="object"&&self&&self.Object===Object&&self,ebe=CO||Qye||Function("return this")();const Ba=ebe;var tbe=Ba.Symbol;const fa=tbe;var TO=Object.prototype,rbe=TO.hasOwnProperty,nbe=TO.toString,Uh=fa?fa.toStringTag:void 0;function ibe(e){var t=rbe.call(e,Uh),r=e[Uh];try{e[Uh]=void 0;var n=!0}catch{}var a=nbe.call(e);return n&&(t?e[Uh]=r:delete e[Uh]),a}var abe=Object.prototype,obe=abe.toString;function sbe(e){return obe.call(e)}var lbe="[object Null]",fbe="[object Undefined]",AO=fa?fa.toStringTag:void 0;function Vu(e){return e==null?e===void 0?fbe:lbe:AO&&AO in Object(e)?ibe(e):sbe(e)}function Qs(e){return e!=null&&typeof e=="object"}var ube="[object Symbol]";function Wv(e){return typeof e=="symbol"||Qs(e)&&Vu(e)==ube}function cbe(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var hbe=Array.isArray;const ua=hbe;var dbe=1/0,IO=fa?fa.prototype:void 0,BO=IO?IO.toString:void 0;function kO(e){if(typeof e=="string")return e;if(ua(e))return cbe(e,kO)+"";if(Wv(e))return BO?BO.call(e):"";var t=e+"";return t=="0"&&1/e==-dbe?"-0":t}var pbe=/\s/;function vbe(e){for(var t=e.length;t--&&pbe.test(e.charAt(t)););return t}var mbe=/^\s+/;function gbe(e){return e&&e.slice(0,vbe(e)+1).replace(mbe,"")}function ka(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var NO=0/0,ybe=/^[-+]0x[0-9a-f]+$/i,bbe=/^0b[01]+$/i,_be=/^0o[0-7]+$/i,wbe=parseInt;function FE(e){if(typeof e=="number")return e;if(Wv(e))return NO;if(ka(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ka(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=gbe(e);var r=bbe.test(e);return r||_be.test(e)?wbe(e.slice(2),r?2:8):ybe.test(e)?NO:+e}var OO=1/0,Ebe=17976931348623157e292;function xbe(e){if(!e)return e===0?e:0;if(e=FE(e),e===OO||e===-OO){var t=e<0?-1:1;return t*Ebe}return e===e?e:0}function Sbe(e){var t=xbe(e),r=t%1;return t===t?r?t-r:t:0}function RO(e){return e}var Mbe="[object AsyncFunction]",Cbe="[object Function]",Tbe="[object GeneratorFunction]",Abe="[object Proxy]";function PO(e){if(!ka(e))return!1;var t=Vu(e);return t==Cbe||t==Tbe||t==Mbe||t==Abe}var Ibe=Ba["__core-js_shared__"];const LE=Ibe;var FO=function(){var e=/[^.]+$/.exec(LE&&LE.keys&&LE.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Bbe(e){return!!FO&&FO in e}var kbe=Function.prototype,Nbe=kbe.toString;function _f(e){if(e!=null){try{return Nbe.call(e)}catch{}try{return e+""}catch{}}return""}var Obe=/[\\^$.*+?()[\]{}|]/g,Rbe=/^\[object .+?Constructor\]$/,Pbe=Function.prototype,Fbe=Object.prototype,Lbe=Pbe.toString,Dbe=Fbe.hasOwnProperty,$be=RegExp("^"+Lbe.call(Dbe).replace(Obe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ube(e){if(!ka(e)||Bbe(e))return!1;var t=PO(e)?$be:Rbe;return t.test(_f(e))}function zbe(e,t){return e==null?void 0:e[t]}function wf(e,t){var r=zbe(e,t);return Ube(r)?r:void 0}var Vbe=wf(Ba,"WeakMap");const DE=Vbe;var LO=Object.create,qbe=function(){function e(){}return function(t){if(!ka(t))return{};if(LO)return LO(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const Hbe=qbe;function jbe(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Kbe(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Wbe=800,Gbe=16,Zbe=Date.now;function Jbe(e){var t=0,r=0;return function(){var n=Zbe(),a=Gbe-(n-r);if(r=n,a>0){if(++t>=Wbe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ybe(e){return function(){return e}}var Xbe=function(){try{var e=wf(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Gv=Xbe;var Qbe=Gv?function(e,t){return Gv(e,"toString",{configurable:!0,enumerable:!1,value:Ybe(t),writable:!0})}:RO,e2e=Jbe(Qbe);const t2e=e2e;function r2e(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}function n2e(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var i2e=9007199254740991,a2e=/^(?:0|[1-9]\d*)$/;function $E(e,t){var r=typeof e;return t=t??i2e,!!t&&(r=="number"||r!="symbol"&&a2e.test(e))&&e>-1&&e%1==0&&e<t}function DO(e,t,r){t=="__proto__"&&Gv?Gv(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function UE(e,t){return e===t||e!==e&&t!==t}var o2e=Object.prototype,s2e=o2e.hasOwnProperty;function zE(e,t,r){var n=e[t];(!(s2e.call(e,t)&&UE(n,r))||r===void 0&&!(t in e))&&DO(e,t,r)}function Zv(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var l=t[i],f=n?n(r[l],e[l],l,r,e):void 0;f===void 0&&(f=e[l]),a?DO(r,l,f):zE(r,l,f)}return r}var $O=Math.max;function l2e(e,t,r){return t=$O(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=$O(n.length-t,0),o=Array(i);++a<i;)o[a]=n[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=n[a];return l[t]=r(o),jbe(e,this,l)}}var f2e=9007199254740991;function VE(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=f2e}function UO(e){return e!=null&&VE(e.length)&&!PO(e)}var u2e=Object.prototype;function qE(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||u2e;return e===r}function c2e(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var h2e="[object Arguments]";function zO(e){return Qs(e)&&Vu(e)==h2e}var VO=Object.prototype,d2e=VO.hasOwnProperty,p2e=VO.propertyIsEnumerable,v2e=zO(function(){return arguments}())?zO:function(e){return Qs(e)&&d2e.call(e,"callee")&&!p2e.call(e,"callee")};const HE=v2e;function m2e(){return!1}var qO=typeof exports=="object"&&exports&&!exports.nodeType&&exports,HO=qO&&typeof module=="object"&&module&&!module.nodeType&&module,g2e=HO&&HO.exports===qO,jO=g2e?Ba.Buffer:void 0,y2e=jO?jO.isBuffer:void 0,b2e=y2e||m2e;const Jv=b2e;var _2e="[object Arguments]",w2e="[object Array]",E2e="[object Boolean]",x2e="[object Date]",S2e="[object Error]",M2e="[object Function]",C2e="[object Map]",T2e="[object Number]",A2e="[object Object]",I2e="[object RegExp]",B2e="[object Set]",k2e="[object String]",N2e="[object WeakMap]",O2e="[object ArrayBuffer]",R2e="[object DataView]",P2e="[object Float32Array]",F2e="[object Float64Array]",L2e="[object Int8Array]",D2e="[object Int16Array]",$2e="[object Int32Array]",U2e="[object Uint8Array]",z2e="[object Uint8ClampedArray]",V2e="[object Uint16Array]",q2e="[object Uint32Array]",Gr={};Gr[P2e]=Gr[F2e]=Gr[L2e]=Gr[D2e]=Gr[$2e]=Gr[U2e]=Gr[z2e]=Gr[V2e]=Gr[q2e]=!0,Gr[_2e]=Gr[w2e]=Gr[O2e]=Gr[E2e]=Gr[R2e]=Gr[x2e]=Gr[S2e]=Gr[M2e]=Gr[C2e]=Gr[T2e]=Gr[A2e]=Gr[I2e]=Gr[B2e]=Gr[k2e]=Gr[N2e]=!1;function H2e(e){return Qs(e)&&VE(e.length)&&!!Gr[Vu(e)]}function jE(e){return function(t){return e(t)}}var KO=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zh=KO&&typeof module=="object"&&module&&!module.nodeType&&module,j2e=zh&&zh.exports===KO,KE=j2e&&CO.process,K2e=function(){try{var e=zh&&zh.require&&zh.require("util").types;return e||KE&&KE.binding&&KE.binding("util")}catch{}}();const qu=K2e;var WO=qu&&qu.isTypedArray,W2e=WO?jE(WO):H2e;const GO=W2e;var G2e=Object.prototype,Z2e=G2e.hasOwnProperty;function ZO(e,t){var r=ua(e),n=!r&&HE(e),a=!r&&!n&&Jv(e),i=!r&&!n&&!a&&GO(e),o=r||n||a||i,l=o?c2e(e.length,String):[],f=l.length;for(var c in e)(t||Z2e.call(e,c))&&!(o&&(c=="length"||a&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||$E(c,f)))&&l.push(c);return l}function JO(e,t){return function(r){return e(t(r))}}var J2e=JO(Object.keys,Object);const Y2e=J2e;var X2e=Object.prototype,Q2e=X2e.hasOwnProperty;function e_e(e){if(!qE(e))return Y2e(e);var t=[];for(var r in Object(e))Q2e.call(e,r)&&r!="constructor"&&t.push(r);return t}function Yv(e){return UO(e)?ZO(e):e_e(e)}function t_e(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var r_e=Object.prototype,n_e=r_e.hasOwnProperty;function i_e(e){if(!ka(e))return t_e(e);var t=qE(e),r=[];for(var n in e)n=="constructor"&&(t||!n_e.call(e,n))||r.push(n);return r}function WE(e){return UO(e)?ZO(e,!0):i_e(e)}var a_e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o_e=/^\w*$/;function GE(e,t){if(ua(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Wv(e)?!0:o_e.test(e)||!a_e.test(e)||t!=null&&e in Object(t)}var s_e=wf(Object,"create");const Vh=s_e;function l_e(){this.__data__=Vh?Vh(null):{},this.size=0}function f_e(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var u_e="__lodash_hash_undefined__",c_e=Object.prototype,h_e=c_e.hasOwnProperty;function d_e(e){var t=this.__data__;if(Vh){var r=t[e];return r===u_e?void 0:r}return h_e.call(t,e)?t[e]:void 0}var p_e=Object.prototype,v_e=p_e.hasOwnProperty;function m_e(e){var t=this.__data__;return Vh?t[e]!==void 0:v_e.call(t,e)}var g_e="__lodash_hash_undefined__";function y_e(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Vh&&t===void 0?g_e:t,this}function Ef(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ef.prototype.clear=l_e,Ef.prototype.delete=f_e,Ef.prototype.get=d_e,Ef.prototype.has=m_e,Ef.prototype.set=y_e;function b_e(){this.__data__=[],this.size=0}function Xv(e,t){for(var r=e.length;r--;)if(UE(e[r][0],t))return r;return-1}var __e=Array.prototype,w_e=__e.splice;function E_e(e){var t=this.__data__,r=Xv(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():w_e.call(t,r,1),--this.size,!0}function x_e(e){var t=this.__data__,r=Xv(t,e);return r<0?void 0:t[r][1]}function S_e(e){return Xv(this.__data__,e)>-1}function M_e(e,t){var r=this.__data__,n=Xv(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Yo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Yo.prototype.clear=b_e,Yo.prototype.delete=E_e,Yo.prototype.get=x_e,Yo.prototype.has=S_e,Yo.prototype.set=M_e;var C_e=wf(Ba,"Map");const qh=C_e;function T_e(){this.size=0,this.__data__={hash:new Ef,map:new(qh||Yo),string:new Ef}}function A_e(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Qv(e,t){var r=e.__data__;return A_e(t)?r[typeof t=="string"?"string":"hash"]:r.map}function I_e(e){var t=Qv(this,e).delete(e);return this.size-=t?1:0,t}function B_e(e){return Qv(this,e).get(e)}function k_e(e){return Qv(this,e).has(e)}function N_e(e,t){var r=Qv(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Xo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Xo.prototype.clear=T_e,Xo.prototype.delete=I_e,Xo.prototype.get=B_e,Xo.prototype.has=k_e,Xo.prototype.set=N_e;var O_e="Expected a function";function ZE(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(O_e);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(ZE.Cache||Xo),r}ZE.Cache=Xo;var R_e=500;function P_e(e){var t=ZE(e,function(n){return r.size===R_e&&r.clear(),n}),r=t.cache;return t}var F_e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,L_e=/\\(\\)?/g,D_e=P_e(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(F_e,function(r,n,a,i){t.push(a?i.replace(L_e,"$1"):n||r)}),t});const $_e=D_e;function U_e(e){return e==null?"":kO(e)}function em(e,t){return ua(e)?e:GE(e,t)?[e]:$_e(U_e(e))}var z_e=1/0;function Hh(e){if(typeof e=="string"||Wv(e))return e;var t=e+"";return t=="0"&&1/e==-z_e?"-0":t}function JE(e,t){t=em(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Hh(t[r++])];return r&&r==n?e:void 0}function Qo(e,t,r){var n=e==null?void 0:JE(e,t);return n===void 0?r:n}function YE(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var YO=fa?fa.isConcatSpreadable:void 0;function V_e(e){return ua(e)||HE(e)||!!(YO&&e&&e[YO])}function XO(e,t,r,n,a){var i=-1,o=e.length;for(r||(r=V_e),a||(a=[]);++i<o;){var l=e[i];t>0&&r(l)?t>1?XO(l,t-1,r,n,a):YE(a,l):n||(a[a.length]=l)}return a}function q_e(e){var t=e==null?0:e.length;return t?XO(e,1):[]}function H_e(e){return t2e(l2e(e,void 0,q_e),e+"")}var j_e=JO(Object.getPrototypeOf,Object);const QO=j_e;function Na(){if(!arguments.length)return[];var e=arguments[0];return ua(e)?e:[e]}function K_e(){this.__data__=new Yo,this.size=0}function W_e(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function G_e(e){return this.__data__.get(e)}function Z_e(e){return this.__data__.has(e)}var J_e=200;function Y_e(e,t){var r=this.__data__;if(r instanceof Yo){var n=r.__data__;if(!qh||n.length<J_e-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Xo(n)}return r.set(e,t),this.size=r.size,this}function _o(e){var t=this.__data__=new Yo(e);this.size=t.size}_o.prototype.clear=K_e,_o.prototype.delete=W_e,_o.prototype.get=G_e,_o.prototype.has=Z_e,_o.prototype.set=Y_e;function X_e(e,t){return e&&Zv(t,Yv(t),e)}function Q_e(e,t){return e&&Zv(t,WE(t),e)}var eR=typeof exports=="object"&&exports&&!exports.nodeType&&exports,tR=eR&&typeof module=="object"&&module&&!module.nodeType&&module,ewe=tR&&tR.exports===eR,rR=ewe?Ba.Buffer:void 0,nR=rR?rR.allocUnsafe:void 0;function twe(e,t){if(t)return e.slice();var r=e.length,n=nR?nR(r):new e.constructor(r);return e.copy(n),n}function rwe(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}function iR(){return[]}var nwe=Object.prototype,iwe=nwe.propertyIsEnumerable,aR=Object.getOwnPropertySymbols,awe=aR?function(e){return e==null?[]:(e=Object(e),rwe(aR(e),function(t){return iwe.call(e,t)}))}:iR;const XE=awe;function owe(e,t){return Zv(e,XE(e),t)}var swe=Object.getOwnPropertySymbols,lwe=swe?function(e){for(var t=[];e;)YE(t,XE(e)),e=QO(e);return t}:iR;const oR=lwe;function fwe(e,t){return Zv(e,oR(e),t)}function sR(e,t,r){var n=t(e);return ua(e)?n:YE(n,r(e))}function QE(e){return sR(e,Yv,XE)}function uwe(e){return sR(e,WE,oR)}var cwe=wf(Ba,"DataView");const e3=cwe;var hwe=wf(Ba,"Promise");const t3=hwe;var dwe=wf(Ba,"Set");const r3=dwe;var lR="[object Map]",pwe="[object Object]",fR="[object Promise]",uR="[object Set]",cR="[object WeakMap]",hR="[object DataView]",vwe=_f(e3),mwe=_f(qh),gwe=_f(t3),ywe=_f(r3),bwe=_f(DE),xf=Vu;(e3&&xf(new e3(new ArrayBuffer(1)))!=hR||qh&&xf(new qh)!=lR||t3&&xf(t3.resolve())!=fR||r3&&xf(new r3)!=uR||DE&&xf(new DE)!=cR)&&(xf=function(e){var t=Vu(e),r=t==pwe?e.constructor:void 0,n=r?_f(r):"";if(n)switch(n){case vwe:return hR;case mwe:return lR;case gwe:return fR;case ywe:return uR;case bwe:return cR}return t});const jh=xf;var _we=Object.prototype,wwe=_we.hasOwnProperty;function Ewe(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&wwe.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var xwe=Ba.Uint8Array;const tm=xwe;function n3(e){var t=new e.constructor(e.byteLength);return new tm(t).set(new tm(e)),t}function Swe(e,t){var r=t?n3(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Mwe=/\w*$/;function Cwe(e){var t=new e.constructor(e.source,Mwe.exec(e));return t.lastIndex=e.lastIndex,t}var dR=fa?fa.prototype:void 0,pR=dR?dR.valueOf:void 0;function Twe(e){return pR?Object(pR.call(e)):{}}function Awe(e,t){var r=t?n3(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Iwe="[object Boolean]",Bwe="[object Date]",kwe="[object Map]",Nwe="[object Number]",Owe="[object RegExp]",Rwe="[object Set]",Pwe="[object String]",Fwe="[object Symbol]",Lwe="[object ArrayBuffer]",Dwe="[object DataView]",$we="[object Float32Array]",Uwe="[object Float64Array]",zwe="[object Int8Array]",Vwe="[object Int16Array]",qwe="[object Int32Array]",Hwe="[object Uint8Array]",jwe="[object Uint8ClampedArray]",Kwe="[object Uint16Array]",Wwe="[object Uint32Array]";function Gwe(e,t,r){var n=e.constructor;switch(t){case Lwe:return n3(e);case Iwe:case Bwe:return new n(+e);case Dwe:return Swe(e,r);case $we:case Uwe:case zwe:case Vwe:case qwe:case Hwe:case jwe:case Kwe:case Wwe:return Awe(e,r);case kwe:return new n;case Nwe:case Pwe:return new n(e);case Owe:return Cwe(e);case Rwe:return new n;case Fwe:return Twe(e)}}function Zwe(e){return typeof e.constructor=="function"&&!qE(e)?Hbe(QO(e)):{}}var Jwe="[object Map]";function Ywe(e){return Qs(e)&&jh(e)==Jwe}var vR=qu&&qu.isMap,Xwe=vR?jE(vR):Ywe;const Qwe=Xwe;var eEe="[object Set]";function tEe(e){return Qs(e)&&jh(e)==eEe}var mR=qu&&qu.isSet,rEe=mR?jE(mR):tEe;const nEe=rEe;var iEe=1,aEe=2,oEe=4,gR="[object Arguments]",sEe="[object Array]",lEe="[object Boolean]",fEe="[object Date]",uEe="[object Error]",yR="[object Function]",cEe="[object GeneratorFunction]",hEe="[object Map]",dEe="[object Number]",bR="[object Object]",pEe="[object RegExp]",vEe="[object Set]",mEe="[object String]",gEe="[object Symbol]",yEe="[object WeakMap]",bEe="[object ArrayBuffer]",_Ee="[object DataView]",wEe="[object Float32Array]",EEe="[object Float64Array]",xEe="[object Int8Array]",SEe="[object Int16Array]",MEe="[object Int32Array]",CEe="[object Uint8Array]",TEe="[object Uint8ClampedArray]",AEe="[object Uint16Array]",IEe="[object Uint32Array]",qr={};qr[gR]=qr[sEe]=qr[bEe]=qr[_Ee]=qr[lEe]=qr[fEe]=qr[wEe]=qr[EEe]=qr[xEe]=qr[SEe]=qr[MEe]=qr[hEe]=qr[dEe]=qr[bR]=qr[pEe]=qr[vEe]=qr[mEe]=qr[gEe]=qr[CEe]=qr[TEe]=qr[AEe]=qr[IEe]=!0,qr[uEe]=qr[yR]=qr[yEe]=!1;function rm(e,t,r,n,a,i){var o,l=t&iEe,f=t&aEe,c=t&oEe;if(r&&(o=a?r(e,n,a,i):r(e)),o!==void 0)return o;if(!ka(e))return e;var d=ua(e);if(d){if(o=Ewe(e),!l)return Kbe(e,o)}else{var v=jh(e),m=v==yR||v==cEe;if(Jv(e))return twe(e,l);if(v==bR||v==gR||m&&!a){if(o=f||m?{}:Zwe(e),!l)return f?fwe(e,Q_e(o,e)):owe(e,X_e(o,e))}else{if(!qr[v])return a?e:{};o=Gwe(e,v,l)}}i||(i=new _o);var y=i.get(e);if(y)return y;i.set(e,o),nEe(e)?e.forEach(function(T){o.add(rm(T,t,r,T,e,i))}):Qwe(e)&&e.forEach(function(T,C){o.set(C,rm(T,t,r,C,e,i))});var b=c?f?uwe:QE:f?WE:Yv,S=d?void 0:b(e);return r2e(S||e,function(T,C){S&&(C=T,T=e[C]),zE(o,C,rm(T,t,r,C,e,i))}),o}var BEe=4;function _R(e){return rm(e,BEe)}var kEe="__lodash_hash_undefined__";function NEe(e){return this.__data__.set(e,kEe),this}function OEe(e){return this.__data__.has(e)}function nm(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Xo;++t<r;)this.add(e[t])}nm.prototype.add=nm.prototype.push=NEe,nm.prototype.has=OEe;function REe(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function PEe(e,t){return e.has(t)}var FEe=1,LEe=2;function wR(e,t,r,n,a,i){var o=r&FEe,l=e.length,f=t.length;if(l!=f&&!(o&&f>l))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var v=-1,m=!0,y=r&LEe?new nm:void 0;for(i.set(e,t),i.set(t,e);++v<l;){var b=e[v],S=t[v];if(n)var T=o?n(S,b,v,t,e,i):n(b,S,v,e,t,i);if(T!==void 0){if(T)continue;m=!1;break}if(y){if(!REe(t,function(C,I){if(!PEe(y,I)&&(b===C||a(b,C,r,n,i)))return y.push(I)})){m=!1;break}}else if(!(b===S||a(b,S,r,n,i))){m=!1;break}}return i.delete(e),i.delete(t),m}function DEe(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}function $Ee(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var UEe=1,zEe=2,VEe="[object Boolean]",qEe="[object Date]",HEe="[object Error]",jEe="[object Map]",KEe="[object Number]",WEe="[object RegExp]",GEe="[object Set]",ZEe="[object String]",JEe="[object Symbol]",YEe="[object ArrayBuffer]",XEe="[object DataView]",ER=fa?fa.prototype:void 0,i3=ER?ER.valueOf:void 0;function QEe(e,t,r,n,a,i,o){switch(r){case XEe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case YEe:return!(e.byteLength!=t.byteLength||!i(new tm(e),new tm(t)));case VEe:case qEe:case KEe:return UE(+e,+t);case HEe:return e.name==t.name&&e.message==t.message;case WEe:case ZEe:return e==t+"";case jEe:var l=DEe;case GEe:var f=n&UEe;if(l||(l=$Ee),e.size!=t.size&&!f)return!1;var c=o.get(e);if(c)return c==t;n|=zEe,o.set(e,t);var d=wR(l(e),l(t),n,a,i,o);return o.delete(e),d;case JEe:if(i3)return i3.call(e)==i3.call(t)}return!1}var e3e=1,t3e=Object.prototype,r3e=t3e.hasOwnProperty;function n3e(e,t,r,n,a,i){var o=r&e3e,l=QE(e),f=l.length,c=QE(t),d=c.length;if(f!=d&&!o)return!1;for(var v=f;v--;){var m=l[v];if(!(o?m in t:r3e.call(t,m)))return!1}var y=i.get(e),b=i.get(t);if(y&&b)return y==t&&b==e;var S=!0;i.set(e,t),i.set(t,e);for(var T=o;++v<f;){m=l[v];var C=e[m],I=t[m];if(n)var B=o?n(I,C,m,t,e,i):n(C,I,m,e,t,i);if(!(B===void 0?C===I||a(C,I,r,n,i):B)){S=!1;break}T||(T=m=="constructor")}if(S&&!T){var N=e.constructor,R=t.constructor;N!=R&&"constructor"in e&&"constructor"in t&&!(typeof N=="function"&&N instanceof N&&typeof R=="function"&&R instanceof R)&&(S=!1)}return i.delete(e),i.delete(t),S}var i3e=1,xR="[object Arguments]",SR="[object Array]",im="[object Object]",a3e=Object.prototype,MR=a3e.hasOwnProperty;function o3e(e,t,r,n,a,i){var o=ua(e),l=ua(t),f=o?SR:jh(e),c=l?SR:jh(t);f=f==xR?im:f,c=c==xR?im:c;var d=f==im,v=c==im,m=f==c;if(m&&Jv(e)){if(!Jv(t))return!1;o=!0,d=!1}if(m&&!d)return i||(i=new _o),o||GO(e)?wR(e,t,r,n,a,i):QEe(e,t,f,r,n,a,i);if(!(r&i3e)){var y=d&&MR.call(e,"__wrapped__"),b=v&&MR.call(t,"__wrapped__");if(y||b){var S=y?e.value():e,T=b?t.value():t;return i||(i=new _o),a(S,T,r,n,i)}}return m?(i||(i=new _o),n3e(e,t,r,n,a,i)):!1}function am(e,t,r,n,a){return e===t?!0:e==null||t==null||!Qs(e)&&!Qs(t)?e!==e&&t!==t:o3e(e,t,r,n,am,a)}var s3e=1,l3e=2;function f3e(e,t,r,n){var a=r.length,i=a,o=!n;if(e==null)return!i;for(e=Object(e);a--;){var l=r[a];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<i;){l=r[a];var f=l[0],c=e[f],d=l[1];if(o&&l[2]){if(c===void 0&&!(f in e))return!1}else{var v=new _o;if(n)var m=n(c,d,f,e,t,v);if(!(m===void 0?am(d,c,s3e|l3e,n,v):m))return!1}}return!0}function CR(e){return e===e&&!ka(e)}function u3e(e){for(var t=Yv(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,CR(a)]}return t}function TR(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function c3e(e){var t=u3e(e);return t.length==1&&t[0][2]?TR(t[0][0],t[0][1]):function(r){return r===e||f3e(r,e,t)}}function h3e(e,t){return e!=null&&t in Object(e)}function d3e(e,t,r){t=em(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=Hh(t[n]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&VE(a)&&$E(o,a)&&(ua(e)||HE(e)))}function AR(e,t){return e!=null&&d3e(e,t,h3e)}var p3e=1,v3e=2;function m3e(e,t){return GE(e)&&CR(t)?TR(Hh(e),t):function(r){var n=Qo(r,e);return n===void 0&&n===t?AR(r,e):am(t,n,p3e|v3e)}}function g3e(e){return function(t){return t==null?void 0:t[e]}}function y3e(e){return function(t){return JE(t,e)}}function b3e(e){return GE(e)?g3e(Hh(e)):y3e(e)}function _3e(e){return typeof e=="function"?e:e==null?RO:typeof e=="object"?ua(e)?m3e(e[0],e[1]):c3e(e):b3e(e)}var w3e=function(){return Ba.Date.now()};const a3=w3e;var E3e="Expected a function",x3e=Math.max,S3e=Math.min;function M3e(e,t,r){var n,a,i,o,l,f,c=0,d=!1,v=!1,m=!0;if(typeof e!="function")throw new TypeError(E3e);t=FE(t)||0,ka(r)&&(d=!!r.leading,v="maxWait"in r,i=v?x3e(FE(r.maxWait)||0,t):i,m="trailing"in r?!!r.trailing:m);function y(P){var D=n,$=a;return n=a=void 0,c=P,o=e.apply($,D),o}function b(P){return c=P,l=setTimeout(C,t),d?y(P):o}function S(P){var D=P-f,$=P-c,U=t-D;return v?S3e(U,i-$):U}function T(P){var D=P-f,$=P-c;return f===void 0||D>=t||D<0||v&&$>=i}function C(){var P=a3();if(T(P))return I(P);l=setTimeout(C,S(P))}function I(P){return l=void 0,m&&n?y(P):(n=a=void 0,o)}function B(){l!==void 0&&clearTimeout(l),c=0,n=f=a=l=void 0}function N(){return l===void 0?o:I(a3())}function R(){var P=a3(),D=T(P);if(n=arguments,a=this,f=P,D){if(l===void 0)return b(f);if(v)return clearTimeout(l),l=setTimeout(C,t),y(f)}return l===void 0&&(l=setTimeout(C,t)),o}return R.cancel=B,R.flush=N,R}var C3e=Math.max,T3e=Math.min;function A3e(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var a=n-1;return r!==void 0&&(a=Sbe(r),a=r<0?C3e(n+a,0):T3e(a,n-1)),n2e(e,_3e(t),a,!0)}function om(e){for(var t=-1,r=e==null?0:e.length,n={};++t<r;){var a=e[t];n[a[0]]=a[1]}return n}function Kh(e,t){return am(e,t)}function Sf(e){return e==null}function I3e(e){return e===void 0}function IR(e,t,r,n){if(!ka(e))return e;t=em(t,e);for(var a=-1,i=t.length,o=i-1,l=e;l!=null&&++a<i;){var f=Hh(t[a]),c=r;if(f==="__proto__"||f==="constructor"||f==="prototype")return e;if(a!=o){var d=l[f];c=n?n(d,f,l):void 0,c===void 0&&(c=ka(d)?d:$E(t[a+1])?[]:{})}zE(l,f,c),l=l[f]}return e}function B3e(e,t,r){for(var n=-1,a=t.length,i={};++n<a;){var o=t[n],l=JE(e,o);r(l,o)&&IR(i,em(o,e),l)}return i}function k3e(e,t){return B3e(e,t,function(r,n){return AR(e,n)})}var N3e=H_e(function(e,t){return e==null?{}:k3e(e,t)});const BR=N3e;function O3e(e,t,r){return e==null?e:IR(e,t,r)}const es=e=>e===void 0,Mf=e=>typeof e=="boolean",Wn=e=>typeof e=="number",ts=e=>typeof Element>"u"?!1:e instanceof Element,o3=e=>Sf(e),R3e=e=>It(e)?!Number.isNaN(Number(e)):!1;var P3e=Object.defineProperty,F3e=Object.defineProperties,L3e=Object.getOwnPropertyDescriptors,kR=Object.getOwnPropertySymbols,D3e=Object.prototype.hasOwnProperty,$3e=Object.prototype.propertyIsEnumerable,NR=(e,t,r)=>t in e?P3e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,U3e=(e,t)=>{for(var r in t||(t={}))D3e.call(t,r)&&NR(e,r,t[r]);if(kR)for(var r of kR(t))$3e.call(t,r)&&NR(e,r,t[r]);return e},z3e=(e,t)=>F3e(e,L3e(t));function V3e(e,t){var r;const n=Nu();return Uw(()=>{n.value=e()},z3e(U3e({},t),{flush:(r=t==null?void 0:t.flush)!=null?r:"sync"})),uv(n)}var OR;const ln=typeof window<"u",q3e=e=>typeof e=="string",s3=()=>{},RR=ln&&((OR=window==null?void 0:window.navigator)==null?void 0:OR.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function sm(e){return typeof e=="function"?e():J(e)}function H3e(e,t){function r(...n){return new Promise((a,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(a).catch(i)})}return r}function j3e(e,t={}){let r,n,a=s3;const i=l=>{clearTimeout(l),a(),a=s3};return l=>{const f=sm(e),c=sm(t.maxWait);return r&&i(r),f<=0||c!==void 0&&c<=0?(n&&(i(n),n=null),Promise.resolve(l())):new Promise((d,v)=>{a=t.rejectOnCancel?v:d,c&&!n&&(n=setTimeout(()=>{r&&i(r),n=null,d(l())},c)),r=setTimeout(()=>{n&&i(n),n=null,d(l())},f)})}}function K3e(e){return e}function Wh(e){return JB()?(rve(e),!0):!1}function W3e(e,t=200,r={}){return H3e(j3e(t,r),e)}function G3e(e,t=200,r={}){const n=Oe(e.value),a=W3e(()=>{n.value=e.value},t,r);return dt(e,()=>a()),n}function Z3e(e,t=!0){Cr()?ur(e):t?e():Xt(e)}function l3(e,t,r={}){const{immediate:n=!0}=r,a=Oe(!1);let i=null;function o(){i&&(clearTimeout(i),i=null)}function l(){a.value=!1,o()}function f(...c){o(),a.value=!0,i=setTimeout(()=>{a.value=!1,i=null,e(...c)},sm(t))}return n&&(a.value=!0,ln&&f()),Wh(l),{isPending:a,start:f,stop:l}}function rs(e){var t;const r=sm(e);return(t=r==null?void 0:r.$el)!=null?t:r}const lm=ln?window:void 0;function Bi(...e){let t,r,n,a;if(q3e(e[0])||Array.isArray(e[0])?([r,n,a]=e,t=lm):[t,r,n,a]=e,!t)return s3;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const i=[],o=()=>{i.forEach(d=>d()),i.length=0},l=(d,v,m)=>(d.addEventListener(v,m,a),()=>d.removeEventListener(v,m,a)),f=dt(()=>rs(t),d=>{o(),d&&i.push(...r.flatMap(v=>n.map(m=>l(d,v,m))))},{immediate:!0,flush:"post"}),c=()=>{f(),o()};return Wh(c),c}function J3e(e,t,r={}){const{window:n=lm,ignore:a=[],capture:i=!0,detectIframe:o=!1}=r;if(!n)return;let l=!0,f;const c=y=>a.some(b=>{if(typeof b=="string")return Array.from(n.document.querySelectorAll(b)).some(S=>S===y.target||y.composedPath().includes(S));{const S=rs(b);return S&&(y.target===S||y.composedPath().includes(S))}}),d=y=>{n.clearTimeout(f);const b=rs(e);if(!(!b||b===y.target||y.composedPath().includes(b))){if(y.detail===0&&(l=!c(y)),!l){l=!0;return}t(y)}},v=[Bi(n,"click",d,{passive:!0,capture:i}),Bi(n,"pointerdown",y=>{const b=rs(e);b&&(l=!y.composedPath().includes(b)&&!c(y))},{passive:!0}),Bi(n,"pointerup",y=>{if(y.button===0){const b=y.composedPath();y.composedPath=()=>b,f=n.setTimeout(()=>d(y),50)}},{passive:!0}),o&&Bi(n,"blur",y=>{var b;const S=rs(e);((b=n.document.activeElement)==null?void 0:b.tagName)==="IFRAME"&&!(S!=null&&S.contains(n.document.activeElement))&&t(y)})].filter(Boolean);return()=>v.forEach(y=>y())}function PR(e,t=!1){const r=Oe(),n=()=>r.value=!!e();return n(),Z3e(n,t),r}const f3=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof wn<"u"?wn:typeof self<"u"?self:{},u3="__vueuse_ssr_handlers__";f3[u3]=f3[u3]||{},f3[u3];var FR=Object.getOwnPropertySymbols,Y3e=Object.prototype.hasOwnProperty,X3e=Object.prototype.propertyIsEnumerable,Q3e=(e,t)=>{var r={};for(var n in e)Y3e.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&FR)for(var n of FR(e))t.indexOf(n)<0&&X3e.call(e,n)&&(r[n]=e[n]);return r};function Oa(e,t,r={}){const n=r,{window:a=lm}=n,i=Q3e(n,["window"]);let o;const l=PR(()=>a&&"ResizeObserver"in a),f=()=>{o&&(o.disconnect(),o=void 0)},c=dt(()=>rs(e),v=>{f(),l.value&&a&&v&&(o=new ResizeObserver(t),o.observe(v,i))},{immediate:!0,flush:"post"}),d=()=>{f(),c()};return Wh(d),{isSupported:l,stop:d}}var LR=Object.getOwnPropertySymbols,exe=Object.prototype.hasOwnProperty,txe=Object.prototype.propertyIsEnumerable,rxe=(e,t)=>{var r={};for(var n in e)exe.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&LR)for(var n of LR(e))t.indexOf(n)<0&&txe.call(e,n)&&(r[n]=e[n]);return r};function nxe(e,t,r={}){const n=r,{window:a=lm}=n,i=rxe(n,["window"]);let o;const l=PR(()=>a&&"MutationObserver"in a),f=()=>{o&&(o.disconnect(),o=void 0)},c=dt(()=>rs(e),v=>{f(),l.value&&a&&v&&(o=new MutationObserver(t),o.observe(v,i))},{immediate:!0}),d=()=>{f(),c()};return Wh(d),{isSupported:l,stop:d}}var DR;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(DR||(DR={}));var ixe=Object.defineProperty,$R=Object.getOwnPropertySymbols,axe=Object.prototype.hasOwnProperty,oxe=Object.prototype.propertyIsEnumerable,UR=(e,t,r)=>t in e?ixe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,sxe=(e,t)=>{for(var r in t||(t={}))axe.call(t,r)&&UR(e,r,t[r]);if($R)for(var r of $R(t))oxe.call(t,r)&&UR(e,r,t[r]);return e};sxe({linear:K3e},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});class zR extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Hu(e,t){throw new zR(`[${e}] ${t}`)}function Yr(e,t){if(fe.env.NODE_ENV!=="production"){const r=It(e)?new zR(`[${e}] ${t}`):e;console.warn(r)}}const VR={current:0},qR=Oe(0),HR=2e3,jR=Symbol("elZIndexContextKey"),KR=Symbol("zIndexContextKey"),WR=e=>{const t=Cr()?wt(jR,VR):VR,r=e||(Cr()?wt(KR,void 0):void 0),n=be(()=>{const o=J(r);return Wn(o)?o:HR}),a=be(()=>n.value+qR.value),i=()=>(t.current++,qR.value=t.current,a.value);return!ln&&!wt(jR)&&Yr("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
839
- usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:n,currentZIndex:a,nextZIndex:i}};var lxe={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const fxe=e=>(t,r)=>uxe(t,r,J(e)),uxe=(e,t,r)=>Qo(r,e,e).replace(/\{(\w+)\}/g,(n,a)=>{var i;return`${(i=t==null?void 0:t[a])!=null?i:`{${a}}`}`}),cxe=e=>{const t=be(()=>J(e).name),r=gr(e)?e:Oe(e);return{lang:t,locale:r,t:fxe(e)}},GR=Symbol("localeContextKey"),ZR=e=>{const t=e||wt(GR,Oe());return cxe(be(()=>t.value||lxe))},JR="__epPropKey",Tt=e=>e,hxe=e=>At(e)&&!!e[JR],fm=(e,t)=>{if(!At(e)||hxe(e))return e;const{values:r,required:n,default:a,type:i,validator:o}=e,f={type:i,required:!!n,validator:r||o?c=>{let d=!1,v=[];if(r&&(v=Array.from(r),Wt(e,"default")&&v.push(a),d||(d=v.includes(c))),o&&(d||(d=o(c))),!d&&v.length>0){const m=[...new Set(v)].map(y=>JSON.stringify(y)).join(", ");et(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${m}], got value ${JSON.stringify(c)}.`)}return d}:void 0,[JR]:!0};return Wt(e,"default")&&(f.default=a),f},hr=e=>om(Object.entries(e).map(([t,r])=>[t,fm(r,t)])),um=["","default","small","large"],ju=fm({type:String,values:um,required:!1}),YR=Symbol("size"),dxe=()=>{const e=wt(YR,{});return be(()=>J(e.size)||"")},XR=Symbol("emptyValuesContextKey"),pxe="use-empty-values",vxe=["",void 0,null],mxe=void 0,QR=hr({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>vt(e)?!e():!e}}),gxe=(e,t)=>{const r=Cr()?wt(XR,Oe({})):Oe({}),n=be(()=>e.emptyValues||r.value.emptyValues||vxe),a=be(()=>vt(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:vt(r.value.valueOnClear)?r.value.valueOnClear():r.value.valueOnClear!==void 0?r.value.valueOnClear:t!==void 0?t:mxe),i=o=>n.value.includes(o);return n.value.includes(a.value)||Yr(pxe,"value-on-clear should be a value of empty-values"),{emptyValues:n,valueOnClear:a,isEmptyValue:i}},c3=e=>Object.keys(e),h3=(e,t,r)=>({get value(){return Qo(e,t,r)},set value(n){O3e(e,t,n)}}),cm=Oe();function d3(e,t=void 0){const r=Cr()?wt(SO,cm):cm;return e?be(()=>{var n,a;return(a=(n=r.value)==null?void 0:n[e])!=null?a:t}):r}function eP(e,t){const r=d3(),n=Gt(e,be(()=>{var l;return((l=r.value)==null?void 0:l.namespace)||Kv})),a=ZR(be(()=>{var l;return(l=r.value)==null?void 0:l.locale})),i=WR(be(()=>{var l;return((l=r.value)==null?void 0:l.zIndex)||HR})),o=be(()=>{var l;return J(t)||((l=r.value)==null?void 0:l.size)||""});return tP(be(()=>J(r)||{})),{ns:n,locale:a,zIndex:i,size:o}}const tP=(e,t,r=!1)=>{var n;const a=!!Cr(),i=a?d3():void 0,o=(n=t==null?void 0:t.provide)!=null?n:a?sn:void 0;if(!o){Yr("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const l=be(()=>{const f=J(e);return i!=null&&i.value?yxe(i.value,f):f});return o(SO,l),o(GR,be(()=>l.value.locale)),o(MO,be(()=>l.value.namespace)),o(KR,be(()=>l.value.zIndex)),o(YR,{size:be(()=>l.value.size||"")}),o(XR,be(()=>({emptyValues:l.value.emptyValues,valueOnClear:l.value.valueOnClear}))),(r||!cm.value)&&(cm.value=l.value),l},yxe=(e,t)=>{const r=[...new Set([...c3(e),...c3(t)])],n={};for(const a of r)n[a]=t[a]!==void 0?t[a]:e[a];return n},ki="update:modelValue",rP="change";var ir=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r};const bxe="utils/dom/style",nP=(e="")=>e.split(" ").filter(t=>!!t.trim()),_xe=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ku=(e,t)=>{!e||!t.trim()||e.classList.add(...nP(t))},Cf=(e,t)=>{!e||!t.trim()||e.classList.remove(...nP(t))},Gh=(e,t)=>{var r;if(!ln||!e||!t)return"";let n=xa(t);n==="float"&&(n="cssFloat");try{const a=e.style[n];if(a)return a;const i=(r=document.defaultView)==null?void 0:r.getComputedStyle(e,"");return i?i[n]:""}catch{return e.style[n]}};function Zh(e,t="px"){if(!e)return"";if(Wn(e)||R3e(e))return`${e}${t}`;if(It(e))return e;Yr(bxe,"binding value must be a string or number")}function wxe(e,t){if(!ln)return;if(!t){e.scrollTop=0;return}const r=[];let n=t.offsetParent;for(;n!==null&&e!==n&&e.contains(n);)r.push(n),n=n.offsetParent;const a=t.offsetTop+r.reduce((f,c)=>f+c.offsetTop,0),i=a+t.offsetHeight,o=e.scrollTop,l=o+e.clientHeight;a<o?e.scrollTop=a:i>l&&(e.scrollTop=i-e.clientHeight)}const Rn=(e,t)=>{if(e.install=r=>{for(const n of[e,...Object.values(t??{})])r.component(n.name,n)},t)for(const[r,n]of Object.entries(t))e[r]=n;return e},Exe=(e,t)=>(e.install=r=>{e._context=r._context,r.config.globalProperties[t]=e},e),ns=e=>(e.install=Qr,e),xxe=hr({size:{type:Tt([Number,String])},color:{type:String}}),Sxe=rt({name:"ElIcon",inheritAttrs:!1}),Mxe=rt({...Sxe,props:xxe,setup(e){const t=e,r=Gt("icon"),n=be(()=>{const{size:a,color:i}=t;return!a&&!i?{}:{fontSize:es(a)?void 0:Zh(a),"--color":i}});return(a,i)=>(he(),ke("i",sa({class:J(r).b(),style:J(n)},a.$attrs),[yt(a.$slots,"default")],16))}});var Cxe=ir(Mxe,[["__file","icon.vue"]]);const Pn=Rn(Cxe);/*! Element Plus Icons Vue v2.3.1 */var Txe=rt({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,r)=>(he(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ze("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),iP=Txe,Axe=rt({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,r)=>(he(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ze("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Ixe=Axe,Bxe=rt({name:"CircleCheck",__name:"circle-check",setup(e){return(t,r)=>(he(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ze("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),ze("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),kxe=Bxe,Nxe=rt({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,r)=>(he(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ze("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),aP=Nxe,Oxe=rt({name:"CircleClose",__name:"circle-close",setup(e){return(t,r)=>(he(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ze("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),ze("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),p3=Oxe,Rxe=rt({name:"Close",__name:"close",setup(e){return(t,r)=>(he(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ze("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),hm=Rxe,Pxe=rt({name:"Hide",__name:"hide",setup(e){return(t,r)=>(he(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ze("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),ze("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),Fxe=Pxe,Lxe=rt({name:"InfoFilled",__name:"info-filled",setup(e){return(t,r)=>(he(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ze("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),oP=Lxe,Dxe=rt({name:"Loading",__name:"loading",setup(e){return(t,r)=>(he(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ze("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),sP=Dxe,$xe=rt({name:"More",__name:"more",setup(e){return(t,r)=>(he(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ze("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),Uxe=$xe,zxe=rt({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,r)=>(he(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ze("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),lP=zxe,Vxe=rt({name:"View",__name:"view",setup(e){return(t,r)=>(he(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ze("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),qxe=Vxe,Hxe=rt({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,r)=>(he(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ze("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),fP=Hxe;const Ni=Tt([String,Object,Function]),jxe={Close:hm},Kxe={Close:hm,SuccessFilled:lP,InfoFilled:oP,WarningFilled:fP,CircleCloseFilled:aP},dm={success:lP,warning:fP,error:aP,info:oP},uP={validating:sP,success:kxe,error:p3},Wxe=["light","dark"],Gxe=hr({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:c3(dm),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:Wxe,default:"light"}}),Zxe={close:e=>e instanceof MouseEvent},Jxe=rt({name:"ElAlert"}),Yxe=rt({...Jxe,props:Gxe,emits:Zxe,setup(e,{emit:t}){const r=e,{Close:n}=Kxe,a=Pu(),i=Gt("alert"),o=Oe(!0),l=be(()=>dm[r.type]),f=be(()=>!!(r.description||a.default)),c=d=>{o.value=!1,t("close",d)};return(d,v)=>(he(),nt(mo,{name:J(i).b("fade"),persisted:""},{default:st(()=>[tn(ze("div",{class:Ce([J(i).b(),J(i).m(d.type),J(i).is("center",d.center),J(i).is(d.effect)]),role:"alert"},[d.showIcon&&J(l)?(he(),nt(J(Pn),{key:0,class:Ce([J(i).e("icon"),{[J(i).is("big")]:J(f)}])},{default:st(()=>[(he(),nt(Nn(J(l))))]),_:1},8,["class"])):Ye("v-if",!0),ze("div",{class:Ce(J(i).e("content"))},[d.title||d.$slots.title?(he(),ke("span",{key:0,class:Ce([J(i).e("title"),{"with-description":J(f)}])},[yt(d.$slots,"title",{},()=>[Cn(lt(d.title),1)])],2)):Ye("v-if",!0),J(f)?(he(),ke("p",{key:1,class:Ce(J(i).e("description"))},[yt(d.$slots,"default",{},()=>[Cn(lt(d.description),1)])],2)):Ye("v-if",!0),d.closable?(he(),ke(Ct,{key:2},[d.closeText?(he(),ke("div",{key:0,class:Ce([J(i).e("close-btn"),J(i).is("customed")]),onClick:c},lt(d.closeText),3)):(he(),nt(J(Pn),{key:1,class:Ce(J(i).e("close-btn")),onClick:c},{default:st(()=>[Et(J(n))]),_:1},8,["class"]))],64)):Ye("v-if",!0)],2)],2),[[la,o.value]])]),_:3},8,["name"]))}});var Xxe=ir(Yxe,[["__file","alert.vue"]]);const Qxe=Rn(Xxe),e6e=()=>ln&&/firefox/i.test(window.navigator.userAgent);let Ra;const t6e=`
839
+ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:n,currentZIndex:a,nextZIndex:i}};var lxe={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const fxe=e=>(t,r)=>uxe(t,r,J(e)),uxe=(e,t,r)=>Qo(r,e,e).replace(/\{(\w+)\}/g,(n,a)=>{var i;return`${(i=t==null?void 0:t[a])!=null?i:`{${a}}`}`}),cxe=e=>{const t=be(()=>J(e).name),r=gr(e)?e:Oe(e);return{lang:t,locale:r,t:fxe(e)}},GR=Symbol("localeContextKey"),ZR=e=>{const t=e||wt(GR,Oe());return cxe(be(()=>t.value||lxe))},JR="__epPropKey",Tt=e=>e,hxe=e=>At(e)&&!!e[JR],fm=(e,t)=>{if(!At(e)||hxe(e))return e;const{values:r,required:n,default:a,type:i,validator:o}=e,f={type:i,required:!!n,validator:r||o?c=>{let d=!1,v=[];if(r&&(v=Array.from(r),Wt(e,"default")&&v.push(a),d||(d=v.includes(c))),o&&(d||(d=o(c))),!d&&v.length>0){const m=[...new Set(v)].map(y=>JSON.stringify(y)).join(", ");et(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${m}], got value ${JSON.stringify(c)}.`)}return d}:void 0,[JR]:!0};return Wt(e,"default")&&(f.default=a),f},hr=e=>om(Object.entries(e).map(([t,r])=>[t,fm(r,t)])),um=["","default","small","large"],ju=fm({type:String,values:um,required:!1}),YR=Symbol("size"),dxe=()=>{const e=wt(YR,{});return be(()=>J(e.size)||"")},XR=Symbol("emptyValuesContextKey"),pxe="use-empty-values",vxe=["",void 0,null],mxe=void 0,QR=hr({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>vt(e)?!e():!e}}),gxe=(e,t)=>{const r=Cr()?wt(XR,Oe({})):Oe({}),n=be(()=>e.emptyValues||r.value.emptyValues||vxe),a=be(()=>vt(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:vt(r.value.valueOnClear)?r.value.valueOnClear():r.value.valueOnClear!==void 0?r.value.valueOnClear:t!==void 0?t:mxe),i=o=>n.value.includes(o);return n.value.includes(a.value)||Yr(pxe,"value-on-clear should be a value of empty-values"),{emptyValues:n,valueOnClear:a,isEmptyValue:i}},c3=e=>Object.keys(e),h3=(e,t,r)=>({get value(){return Qo(e,t,r)},set value(n){O3e(e,t,n)}}),cm=Oe();function d3(e,t=void 0){const r=Cr()?wt(SO,cm):cm;return e?be(()=>{var n,a;return(a=(n=r.value)==null?void 0:n[e])!=null?a:t}):r}function eP(e,t){const r=d3(),n=Gt(e,be(()=>{var l;return((l=r.value)==null?void 0:l.namespace)||Kv})),a=ZR(be(()=>{var l;return(l=r.value)==null?void 0:l.locale})),i=WR(be(()=>{var l;return((l=r.value)==null?void 0:l.zIndex)||HR})),o=be(()=>{var l;return J(t)||((l=r.value)==null?void 0:l.size)||""});return tP(be(()=>J(r)||{})),{ns:n,locale:a,zIndex:i,size:o}}const tP=(e,t,r=!1)=>{var n;const a=!!Cr(),i=a?d3():void 0,o=(n=t==null?void 0:t.provide)!=null?n:a?sn:void 0;if(!o){Yr("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const l=be(()=>{const f=J(e);return i!=null&&i.value?yxe(i.value,f):f});return o(SO,l),o(GR,be(()=>l.value.locale)),o(MO,be(()=>l.value.namespace)),o(KR,be(()=>l.value.zIndex)),o(YR,{size:be(()=>l.value.size||"")}),o(XR,be(()=>({emptyValues:l.value.emptyValues,valueOnClear:l.value.valueOnClear}))),(r||!cm.value)&&(cm.value=l.value),l},yxe=(e,t)=>{const r=[...new Set([...c3(e),...c3(t)])],n={};for(const a of r)n[a]=t[a]!==void 0?t[a]:e[a];return n},ki="update:modelValue",rP="change";var ir=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r};const bxe="utils/dom/style",nP=(e="")=>e.split(" ").filter(t=>!!t.trim()),_xe=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ku=(e,t)=>{!e||!t.trim()||e.classList.add(...nP(t))},Cf=(e,t)=>{!e||!t.trim()||e.classList.remove(...nP(t))},Gh=(e,t)=>{var r;if(!ln||!e||!t)return"";let n=xa(t);n==="float"&&(n="cssFloat");try{const a=e.style[n];if(a)return a;const i=(r=document.defaultView)==null?void 0:r.getComputedStyle(e,"");return i?i[n]:""}catch{return e.style[n]}};function Zh(e,t="px"){if(!e)return"";if(Wn(e)||R3e(e))return`${e}${t}`;if(It(e))return e;Yr(bxe,"binding value must be a string or number")}function wxe(e,t){if(!ln)return;if(!t){e.scrollTop=0;return}const r=[];let n=t.offsetParent;for(;n!==null&&e!==n&&e.contains(n);)r.push(n),n=n.offsetParent;const a=t.offsetTop+r.reduce((f,c)=>f+c.offsetTop,0),i=a+t.offsetHeight,o=e.scrollTop,l=o+e.clientHeight;a<o?e.scrollTop=a:i>l&&(e.scrollTop=i-e.clientHeight)}const Rn=(e,t)=>{if(e.install=r=>{for(const n of[e,...Object.values(t??{})])r.component(n.name,n)},t)for(const[r,n]of Object.entries(t))e[r]=n;return e},Exe=(e,t)=>(e.install=r=>{e._context=r._context,r.config.globalProperties[t]=e},e),ns=e=>(e.install=Qr,e),xxe=hr({size:{type:Tt([Number,String])},color:{type:String}}),Sxe=rt({name:"ElIcon",inheritAttrs:!1}),Mxe=rt({...Sxe,props:xxe,setup(e){const t=e,r=Gt("icon"),n=be(()=>{const{size:a,color:i}=t;return!a&&!i?{}:{fontSize:es(a)?void 0:Zh(a),"--color":i}});return(a,i)=>(he(),ke("i",sa({class:J(r).b(),style:J(n)},a.$attrs),[yt(a.$slots,"default")],16))}});var Cxe=ir(Mxe,[["__file","icon.vue"]]);const Pn=Rn(Cxe);/*! Element Plus Icons Vue v2.3.1 */var Txe=rt({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,r)=>(he(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ze("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),iP=Txe,Axe=rt({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,r)=>(he(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ze("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Ixe=Axe,Bxe=rt({name:"CircleCheck",__name:"circle-check",setup(e){return(t,r)=>(he(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ze("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),ze("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),kxe=Bxe,Nxe=rt({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,r)=>(he(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ze("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),aP=Nxe,Oxe=rt({name:"CircleClose",__name:"circle-close",setup(e){return(t,r)=>(he(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ze("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),ze("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),p3=Oxe,Rxe=rt({name:"Close",__name:"close",setup(e){return(t,r)=>(he(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ze("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),hm=Rxe,Pxe=rt({name:"Hide",__name:"hide",setup(e){return(t,r)=>(he(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ze("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),ze("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),Fxe=Pxe,Lxe=rt({name:"InfoFilled",__name:"info-filled",setup(e){return(t,r)=>(he(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ze("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),oP=Lxe,Dxe=rt({name:"Loading",__name:"loading",setup(e){return(t,r)=>(he(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ze("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),sP=Dxe,$xe=rt({name:"More",__name:"more",setup(e){return(t,r)=>(he(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ze("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),Uxe=$xe,zxe=rt({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,r)=>(he(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ze("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),lP=zxe,Vxe=rt({name:"View",__name:"view",setup(e){return(t,r)=>(he(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ze("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),qxe=Vxe,Hxe=rt({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,r)=>(he(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ze("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),fP=Hxe;const Ni=Tt([String,Object,Function]),jxe={Close:hm},Kxe={Close:hm,SuccessFilled:lP,InfoFilled:oP,WarningFilled:fP,CircleCloseFilled:aP},dm={success:lP,warning:fP,error:aP,info:oP},uP={validating:sP,success:kxe,error:p3},Wxe=["light","dark"],Gxe=hr({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:c3(dm),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:Wxe,default:"light"}}),Zxe={close:e=>e instanceof MouseEvent},Jxe=rt({name:"ElAlert"}),Yxe=rt({...Jxe,props:Gxe,emits:Zxe,setup(e,{emit:t}){const r=e,{Close:n}=Kxe,a=Pu(),i=Gt("alert"),o=Oe(!0),l=be(()=>dm[r.type]),f=be(()=>!!(r.description||a.default)),c=d=>{o.value=!1,t("close",d)};return(d,v)=>(he(),nt(mo,{name:J(i).b("fade"),persisted:""},{default:lt(()=>[tn(ze("div",{class:Ce([J(i).b(),J(i).m(d.type),J(i).is("center",d.center),J(i).is(d.effect)]),role:"alert"},[d.showIcon&&J(l)?(he(),nt(J(Pn),{key:0,class:Ce([J(i).e("icon"),{[J(i).is("big")]:J(f)}])},{default:lt(()=>[(he(),nt(Nn(J(l))))]),_:1},8,["class"])):Ye("v-if",!0),ze("div",{class:Ce(J(i).e("content"))},[d.title||d.$slots.title?(he(),ke("span",{key:0,class:Ce([J(i).e("title"),{"with-description":J(f)}])},[yt(d.$slots,"title",{},()=>[Cn(st(d.title),1)])],2)):Ye("v-if",!0),J(f)?(he(),ke("p",{key:1,class:Ce(J(i).e("description"))},[yt(d.$slots,"default",{},()=>[Cn(st(d.description),1)])],2)):Ye("v-if",!0),d.closable?(he(),ke(Ct,{key:2},[d.closeText?(he(),ke("div",{key:0,class:Ce([J(i).e("close-btn"),J(i).is("customed")]),onClick:c},st(d.closeText),3)):(he(),nt(J(Pn),{key:1,class:Ce(J(i).e("close-btn")),onClick:c},{default:lt(()=>[Et(J(n))]),_:1},8,["class"]))],64)):Ye("v-if",!0)],2)],2),[[la,o.value]])]),_:3},8,["name"]))}});var Xxe=ir(Yxe,[["__file","alert.vue"]]);const Qxe=Rn(Xxe),e6e=()=>ln&&/firefox/i.test(window.navigator.userAgent);let Ra;const t6e=`
840
840
  height:0 !important;
841
841
  visibility:hidden !important;
842
842
  ${e6e()?"":"overflow:hidden !important;"}
@@ -848,9 +848,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:n,curr
848
848
  usage: app.provide(ID_INJECTION_KEY, {
849
849
  prefix: number,
850
850
  current: number,
851
- })`);const r=PE();return V3e(()=>J(e)||`${r.value}-id-${t.prefix}-${t.current++}`)},Gu=()=>{const e=wt(Wu,void 0),t=wt(Af,void 0);return{form:e,formItem:t}},pm=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:n})=>{r||(r=Oe(!1)),n||(n=Oe(!1));const a=Oe();let i;const o=be(()=>{var l;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((l=t.inputIds)==null?void 0:l.length)<=1)});return ur(()=>{i=dt([ia(e,"id"),r],([l,f])=>{const c=l??(f?void 0:Jh().value);c!==a.value&&(t!=null&&t.removeInputId&&(a.value&&t.removeInputId(a.value),!(n!=null&&n.value)&&!f&&c&&t.addInputId(c)),a.value=c)},{immediate:!0})}),xv(()=>{i&&i(),t!=null&&t.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:o,inputId:a}},pP=e=>{const t=Cr();return be(()=>{var r,n;return(n=(r=t==null?void 0:t.proxy)==null?void 0:r.$props)==null?void 0:n[e]})},el=(e,t={})=>{const r=Oe(void 0),n=t.prop?r:pP("size"),a=t.global?r:dxe(),i=t.form?{size:void 0}:wt(Wu,void 0),o=t.formItem?{size:void 0}:wt(Af,void 0);return be(()=>n.value||J(e)||(o==null?void 0:o.size)||(i==null?void 0:i.size)||a.value||"")},vm=e=>{const t=pP("disabled"),r=wt(Wu,void 0);return be(()=>t.value||J(e)||(r==null?void 0:r.disabled)||!1)};function vP(e,{beforeFocus:t,afterFocus:r,beforeBlur:n,afterBlur:a}={}){const i=Cr(),{emit:o}=i,l=Nu(),f=Oe(!1),c=m=>{vt(t)&&t(m)||f.value||(f.value=!0,o("focus",m),r==null||r())},d=m=>{var y;vt(n)&&n(m)||m.relatedTarget&&((y=l.value)!=null&&y.contains(m.relatedTarget))||(f.value=!1,o("blur",m),a==null||a())},v=()=>{var m,y;(m=l.value)!=null&&m.contains(document.activeElement)&&l.value!==document.activeElement||(y=e.value)==null||y.focus()};return dt(l,m=>{m&&m.setAttribute("tabindex","-1")}),Bi(l,"focus",c,!0),Bi(l,"blur",d,!0),Bi(l,"click",v,!0),fe.env.NODE_ENV==="test"&&ur(()=>{const m=ts(e.value)?e.value:document.querySelector("input,textarea");m&&(Bi(m,"focus",c,!0),Bi(m,"blur",d,!0))}),{isFocused:f,wrapperRef:l,handleFocus:c,handleBlur:d}}const c6e=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);function mP({afterComposition:e,emit:t}){const r=Oe(!1),n=l=>{t==null||t("compositionstart",l),r.value=!0},a=l=>{var f;t==null||t("compositionupdate",l);const c=(f=l.target)==null?void 0:f.value,d=c[c.length-1]||"";r.value=!c6e(d)},i=l=>{t==null||t("compositionend",l),r.value&&(r.value=!1,Xt(()=>e(l)))};return{isComposing:r,handleComposition:l=>{l.type==="compositionend"?i(l):a(l)},handleCompositionStart:n,handleCompositionUpdate:a,handleCompositionEnd:i}}function h6e(e){let t;function r(){if(e.value==null)return;const{selectionStart:a,selectionEnd:i,value:o}=e.value;if(a==null||i==null)return;const l=o.slice(0,Math.max(0,a)),f=o.slice(Math.max(0,i));t={selectionStart:a,selectionEnd:i,value:o,beforeTxt:l,afterTxt:f}}function n(){if(e.value==null||t==null)return;const{value:a}=e.value,{beforeTxt:i,afterTxt:o,selectionStart:l}=t;if(i==null||o==null||l==null)return;let f=a.length;if(a.endsWith(o))f=a.length-o.length;else if(a.startsWith(i))f=i.length;else{const c=i[l-1],d=a.indexOf(c,l-1);d!==-1&&(f=d+1)}e.value.setSelectionRange(f,f)}return[r,n]}const d6e=rt({name:"ElInput",inheritAttrs:!1}),p6e=rt({...d6e,props:a6e,emits:o6e,setup(e,{expose:t,emit:r}){const n=e,a=tk(),i=f6e(),o=Pu(),l=be(()=>[n.type==="textarea"?S.b():b.b(),b.m(m.value),b.is("disabled",y.value),b.is("exceed",k.value),{[b.b("group")]:o.prepend||o.append,[b.m("prefix")]:o.prefix||n.prefixIcon,[b.m("suffix")]:o.suffix||n.suffixIcon||n.clearable||n.showPassword,[b.bm("suffix","password-clear")]:A.value&&E.value,[b.b("hidden")]:n.type==="hidden"},a.class]),f=be(()=>[b.e("wrapper"),b.is("focus",$.value)]),{form:c,formItem:d}=Gu(),{inputId:v}=pm(n,{formItemContext:d}),m=el(),y=vm(),b=Gt("input"),S=Gt("textarea"),T=Nu(),C=Nu(),I=Oe(!1),B=Oe(!1),N=Oe(),R=Nu(n.inputStyle),P=be(()=>T.value||C.value),{wrapperRef:D,isFocused:$,handleFocus:U,handleBlur:K}=vP(P,{beforeFocus(){return y.value},afterBlur(){var H;n.validateEvent&&((H=d==null?void 0:d.validate)==null||H.call(d,"blur").catch(G=>Yr(G)))}}),M=be(()=>{var H;return(H=c==null?void 0:c.statusIcon)!=null?H:!1}),s=be(()=>(d==null?void 0:d.validateState)||""),h=be(()=>s.value&&uP[s.value]),p=be(()=>B.value?qxe:Fxe),g=be(()=>[a.style]),_=be(()=>[n.inputStyle,R.value,{resize:n.resize}]),w=be(()=>Sf(n.modelValue)?"":String(n.modelValue)),A=be(()=>n.clearable&&!y.value&&!n.readonly&&!!w.value&&($.value||I.value)),E=be(()=>n.showPassword&&!y.value&&!!w.value&&(!!w.value||$.value)),u=be(()=>n.showWordLimit&&!!n.maxlength&&(n.type==="text"||n.type==="textarea")&&!y.value&&!n.readonly&&!n.showPassword),x=be(()=>w.value.length),k=be(()=>!!u.value&&x.value>Number(n.maxlength)),O=be(()=>!!o.suffix||!!n.suffixIcon||A.value||n.showPassword||u.value||!!s.value&&M.value),[q,Y]=h6e(T);Oa(C,H=>{if(ie(),!u.value||n.resize!=="both")return;const G=H[0],{width:me}=G.contentRect;N.value={right:`calc(100% - ${me+15+6}px)`}});const W=()=>{const{type:H,autosize:G}=n;if(!(!ln||H!=="textarea"||!C.value))if(G){const me=At(G)?G.minRows:void 0,oe=At(G)?G.maxRows:void 0,de=cP(C.value,me,oe);R.value={overflowY:"hidden",...de},Xt(()=>{C.value.offsetHeight,R.value=de})}else R.value={minHeight:cP(C.value).minHeight}},ie=(H=>{let G=!1;return()=>{var me;if(G||!n.autosize)return;((me=C.value)==null?void 0:me.offsetParent)===null||(H(),G=!0)}})(W),ne=()=>{const H=P.value,G=n.formatter?n.formatter(w.value):w.value;!H||H.value===G||(H.value=G)},ce=async H=>{q();let{value:G}=H.target;if(n.formatter&&(G=n.parser?n.parser(G):G),!Z.value){if(G===w.value){ne();return}r(ki,G),r("input",G),await Xt(),ne(),Y()}},te=H=>{r("change",H.target.value)},{isComposing:Z,handleCompositionStart:j,handleCompositionUpdate:ae,handleCompositionEnd:se}=mP({emit:r,afterComposition:ce}),V=()=>{q(),B.value=!B.value,setTimeout(Y)},L=()=>{var H;return(H=P.value)==null?void 0:H.focus()},F=()=>{var H;return(H=P.value)==null?void 0:H.blur()},z=H=>{I.value=!1,r("mouseleave",H)},le=H=>{I.value=!0,r("mouseenter",H)},Q=H=>{r("keydown",H)},re=()=>{var H;(H=P.value)==null||H.select()},ue=()=>{r(ki,""),r("change",""),r("clear"),r("input","")};return dt(()=>n.modelValue,()=>{var H;Xt(()=>W()),n.validateEvent&&((H=d==null?void 0:d.validate)==null||H.call(d,"change").catch(G=>Yr(G)))}),dt(w,()=>ne()),dt(()=>n.type,async()=>{await Xt(),ne(),W()}),ur(()=>{!n.formatter&&n.parser&&Yr("ElInput","If you set the parser, you also need to set the formatter."),ne(),Xt(W)}),t({input:T,textarea:C,ref:P,textareaStyle:_,autosize:ia(n,"autosize"),isComposing:Z,focus:L,blur:F,select:re,clear:ue,resizeTextarea:W}),(H,G)=>(he(),ke("div",{class:Ce([J(l),{[J(b).bm("group","append")]:H.$slots.append,[J(b).bm("group","prepend")]:H.$slots.prepend}]),style:en(J(g)),onMouseenter:le,onMouseleave:z},[Ye(" input "),H.type!=="textarea"?(he(),ke(Ct,{key:0},[Ye(" prepend slot "),H.$slots.prepend?(he(),ke("div",{key:0,class:Ce(J(b).be("group","prepend"))},[yt(H.$slots,"prepend")],2)):Ye("v-if",!0),ze("div",{ref_key:"wrapperRef",ref:D,class:Ce(J(f))},[Ye(" prefix slot "),H.$slots.prefix||H.prefixIcon?(he(),ke("span",{key:0,class:Ce(J(b).e("prefix"))},[ze("span",{class:Ce(J(b).e("prefix-inner"))},[yt(H.$slots,"prefix"),H.prefixIcon?(he(),nt(J(Pn),{key:0,class:Ce(J(b).e("icon"))},{default:st(()=>[(he(),nt(Nn(H.prefixIcon)))]),_:1},8,["class"])):Ye("v-if",!0)],2)],2)):Ye("v-if",!0),ze("input",sa({id:J(v),ref_key:"input",ref:T,class:J(b).e("inner")},J(i),{minlength:H.minlength,maxlength:H.maxlength,type:H.showPassword?B.value?"text":"password":H.type,disabled:J(y),readonly:H.readonly,autocomplete:H.autocomplete,tabindex:H.tabindex,"aria-label":H.ariaLabel,placeholder:H.placeholder,style:H.inputStyle,form:H.form,autofocus:H.autofocus,role:H.containerRole,onCompositionstart:J(j),onCompositionupdate:J(ae),onCompositionend:J(se),onInput:ce,onChange:te,onKeydown:Q}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","onCompositionstart","onCompositionupdate","onCompositionend"]),Ye(" suffix slot "),J(O)?(he(),ke("span",{key:1,class:Ce(J(b).e("suffix"))},[ze("span",{class:Ce(J(b).e("suffix-inner"))},[!J(A)||!J(E)||!J(u)?(he(),ke(Ct,{key:0},[yt(H.$slots,"suffix"),H.suffixIcon?(he(),nt(J(Pn),{key:0,class:Ce(J(b).e("icon"))},{default:st(()=>[(he(),nt(Nn(H.suffixIcon)))]),_:1},8,["class"])):Ye("v-if",!0)],64)):Ye("v-if",!0),J(A)?(he(),nt(J(Pn),{key:1,class:Ce([J(b).e("icon"),J(b).e("clear")]),onMousedown:rn(J(Qr),["prevent"]),onClick:ue},{default:st(()=>[Et(J(p3))]),_:1},8,["class","onMousedown"])):Ye("v-if",!0),J(E)?(he(),nt(J(Pn),{key:2,class:Ce([J(b).e("icon"),J(b).e("password")]),onClick:V},{default:st(()=>[(he(),nt(Nn(J(p))))]),_:1},8,["class"])):Ye("v-if",!0),J(u)?(he(),ke("span",{key:3,class:Ce(J(b).e("count"))},[ze("span",{class:Ce(J(b).e("count-inner"))},lt(J(x))+" / "+lt(H.maxlength),3)],2)):Ye("v-if",!0),J(s)&&J(h)&&J(M)?(he(),nt(J(Pn),{key:4,class:Ce([J(b).e("icon"),J(b).e("validateIcon"),J(b).is("loading",J(s)==="validating")])},{default:st(()=>[(he(),nt(Nn(J(h))))]),_:1},8,["class"])):Ye("v-if",!0)],2)],2)):Ye("v-if",!0)],2),Ye(" append slot "),H.$slots.append?(he(),ke("div",{key:1,class:Ce(J(b).be("group","append"))},[yt(H.$slots,"append")],2)):Ye("v-if",!0)],64)):(he(),ke(Ct,{key:1},[Ye(" textarea "),ze("textarea",sa({id:J(v),ref_key:"textarea",ref:C,class:[J(S).e("inner"),J(b).is("focus",J($))]},J(i),{minlength:H.minlength,maxlength:H.maxlength,tabindex:H.tabindex,disabled:J(y),readonly:H.readonly,autocomplete:H.autocomplete,style:J(_),"aria-label":H.ariaLabel,placeholder:H.placeholder,form:H.form,autofocus:H.autofocus,rows:H.rows,role:H.containerRole,onCompositionstart:J(j),onCompositionupdate:J(ae),onCompositionend:J(se),onInput:ce,onFocus:J(U),onBlur:J(K),onChange:te,onKeydown:Q}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),J(u)?(he(),ke("span",{key:0,style:en(N.value),class:Ce(J(b).e("count"))},lt(J(x))+" / "+lt(H.maxlength),7)):Ye("v-if",!0)],64))],38))}});var v6e=ir(p6e,[["__file","input.vue"]]);const m3=Rn(v6e),Zu=4,m6e={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},g6e=({move:e,size:t,bar:r})=>({[r.size]:t,transform:`translate${r.axis}(${e}%)`}),g3=Symbol("scrollbarContextKey"),y6e=hr({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),b6e="Thumb";var gP=ir(rt({__name:"thumb",props:y6e,setup(e){const t=e,r=wt(g3),n=Gt("scrollbar");r||Hu(b6e,"can not inject scrollbar context");const a=Oe(),i=Oe(),o=Oe({}),l=Oe(!1);let f=!1,c=!1,d=ln?document.onselectstart:null;const v=be(()=>m6e[t.vertical?"vertical":"horizontal"]),m=be(()=>g6e({size:t.size,move:t.move,bar:v.value})),y=be(()=>a.value[v.value.offset]**2/r.wrapElement[v.value.scrollSize]/t.ratio/i.value[v.value.offset]),b=P=>{var D;if(P.stopPropagation(),P.ctrlKey||[1,2].includes(P.button))return;(D=window.getSelection())==null||D.removeAllRanges(),T(P);const $=P.currentTarget;$&&(o.value[v.value.axis]=$[v.value.offset]-(P[v.value.client]-$.getBoundingClientRect()[v.value.direction]))},S=P=>{if(!i.value||!a.value||!r.wrapElement)return;const D=Math.abs(P.target.getBoundingClientRect()[v.value.direction]-P[v.value.client]),$=i.value[v.value.offset]/2,U=(D-$)*100*y.value/a.value[v.value.offset];r.wrapElement[v.value.scroll]=U*r.wrapElement[v.value.scrollSize]/100},T=P=>{P.stopImmediatePropagation(),f=!0,document.addEventListener("mousemove",C),document.addEventListener("mouseup",I),d=document.onselectstart,document.onselectstart=()=>!1},C=P=>{if(!a.value||!i.value||f===!1)return;const D=o.value[v.value.axis];if(!D)return;const $=(a.value.getBoundingClientRect()[v.value.direction]-P[v.value.client])*-1,U=i.value[v.value.offset]-D,K=($-U)*100*y.value/a.value[v.value.offset];r.wrapElement[v.value.scroll]=K*r.wrapElement[v.value.scrollSize]/100},I=()=>{f=!1,o.value[v.value.axis]=0,document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",I),R(),c&&(l.value=!1)},B=()=>{c=!1,l.value=!!t.size},N=()=>{c=!0,l.value=f};gn(()=>{R(),document.removeEventListener("mouseup",I)});const R=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return Bi(ia(r,"scrollbarElement"),"mousemove",B),Bi(ia(r,"scrollbarElement"),"mouseleave",N),(P,D)=>(he(),nt(mo,{name:J(n).b("fade"),persisted:""},{default:st(()=>[tn(ze("div",{ref_key:"instance",ref:a,class:Ce([J(n).e("bar"),J(n).is(J(v).key)]),onMousedown:S},[ze("div",{ref_key:"thumb",ref:i,class:Ce(J(n).e("thumb")),style:en(J(m)),onMousedown:b},null,38)],34),[[la,P.always||l.value]])]),_:1},8,["name"]))}}),[["__file","thumb.vue"]]);const _6e=hr({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}});var w6e=ir(rt({__name:"bar",props:_6e,setup(e,{expose:t}){const r=e,n=wt(g3),a=Oe(0),i=Oe(0),o=Oe(""),l=Oe(""),f=Oe(1),c=Oe(1);return t({handleScroll:m=>{if(m){const y=m.offsetHeight-Zu,b=m.offsetWidth-Zu;i.value=m.scrollTop*100/y*f.value,a.value=m.scrollLeft*100/b*c.value}},update:()=>{const m=n==null?void 0:n.wrapElement;if(!m)return;const y=m.offsetHeight-Zu,b=m.offsetWidth-Zu,S=y**2/m.scrollHeight,T=b**2/m.scrollWidth,C=Math.max(S,r.minSize),I=Math.max(T,r.minSize);f.value=S/(y-S)/(C/(y-C)),c.value=T/(b-T)/(I/(b-I)),l.value=C+Zu<y?`${C}px`:"",o.value=I+Zu<b?`${I}px`:""}}),(m,y)=>(he(),ke(Ct,null,[Et(gP,{move:a.value,ratio:c.value,size:o.value,always:m.always},null,8,["move","ratio","size","always"]),Et(gP,{move:i.value,ratio:f.value,size:l.value,vertical:"",always:m.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]);const E6e=hr({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Tt([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...Tf(["ariaLabel","ariaOrientation"])}),x6e={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Wn)},y3="ElScrollbar",S6e=rt({name:y3}),M6e=rt({...S6e,props:E6e,emits:x6e,setup(e,{expose:t,emit:r}){const n=e,a=Gt("scrollbar");let i,o,l=0,f=0;const c=Oe(),d=Oe(),v=Oe(),m=Oe(),y=be(()=>{const R={};return n.height&&(R.height=Zh(n.height)),n.maxHeight&&(R.maxHeight=Zh(n.maxHeight)),[n.wrapStyle,R]}),b=be(()=>[n.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!n.native}]),S=be(()=>[a.e("view"),n.viewClass]),T=()=>{var R;d.value&&((R=m.value)==null||R.handleScroll(d.value),l=d.value.scrollTop,f=d.value.scrollLeft,r("scroll",{scrollTop:d.value.scrollTop,scrollLeft:d.value.scrollLeft}))};function C(R,P){At(R)?d.value.scrollTo(R):Wn(R)&&Wn(P)&&d.value.scrollTo(R,P)}const I=R=>{if(!Wn(R)){Yr(y3,"value must be a number");return}d.value.scrollTop=R},B=R=>{if(!Wn(R)){Yr(y3,"value must be a number");return}d.value.scrollLeft=R},N=()=>{var R;(R=m.value)==null||R.update()};return dt(()=>n.noresize,R=>{R?(i==null||i(),o==null||o()):({stop:i}=Oa(v,N),o=Bi("resize",N))},{immediate:!0}),dt(()=>[n.maxHeight,n.height],()=>{n.native||Xt(()=>{var R;N(),d.value&&((R=m.value)==null||R.handleScroll(d.value))})}),sn(g3,vn({scrollbarElement:c,wrapElement:d})),j9(()=>{d.value&&(d.value.scrollTop=l,d.value.scrollLeft=f)}),ur(()=>{n.native||Xt(()=>{N()})}),xh(()=>N()),t({wrapRef:d,update:N,scrollTo:C,setScrollTop:I,setScrollLeft:B,handleScroll:T}),(R,P)=>(he(),ke("div",{ref_key:"scrollbarRef",ref:c,class:Ce(J(a).b())},[ze("div",{ref_key:"wrapRef",ref:d,class:Ce(J(b)),style:en(J(y)),tabindex:R.tabindex,onScroll:T},[(he(),nt(Nn(R.tag),{id:R.id,ref_key:"resizeRef",ref:v,class:Ce(J(S)),style:en(R.viewStyle),role:R.role,"aria-label":R.ariaLabel,"aria-orientation":R.ariaOrientation},{default:st(()=>[yt(R.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),R.native?Ye("v-if",!0):(he(),nt(w6e,{key:0,ref_key:"barRef",ref:m,always:R.always,"min-size":R.minSize},null,8,["always","min-size"]))],2))}});var C6e=ir(M6e,[["__file","scrollbar.vue"]]);const T6e=Rn(C6e),b3=Symbol("popper"),yP=Symbol("popperContent"),bP=hr({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),A6e=rt({name:"ElPopper",inheritAttrs:!1}),I6e=rt({...A6e,props:bP,setup(e,{expose:t}){const r=e,n=Oe(),a=Oe(),i=Oe(),o=Oe(),l=be(()=>r.role),f={triggerRef:n,popperInstanceRef:a,contentRef:i,referenceRef:o,role:l};return t(f),sn(b3,f),(c,d)=>yt(c.$slots,"default")}});var B6e=ir(I6e,[["__file","popper.vue"]]);const _P=hr({arrowOffset:{type:Number,default:5}}),k6e=rt({name:"ElPopperArrow",inheritAttrs:!1}),N6e=rt({...k6e,props:_P,setup(e,{expose:t}){const r=e,n=Gt("popper"),{arrowOffset:a,arrowRef:i,arrowStyle:o}=wt(yP,void 0);return dt(()=>r.arrowOffset,l=>{a.value=l}),gn(()=>{i.value=void 0}),t({arrowRef:i}),(l,f)=>(he(),ke("span",{ref_key:"arrowRef",ref:i,class:Ce(J(n).e("arrow")),style:en(J(o)),"data-popper-arrow":""},null,6))}});var O6e=ir(N6e,[["__file","arrow.vue"]]);const wP=hr({virtualRef:{type:Tt(Object)},virtualTriggering:Boolean,onMouseenter:{type:Tt(Function)},onMouseleave:{type:Tt(Function)},onClick:{type:Tt(Function)},onKeydown:{type:Tt(Function)},onFocus:{type:Tt(Function)},onBlur:{type:Tt(Function)},onContextmenu:{type:Tt(Function)},id:String,open:Boolean}),EP=Symbol("elForwardRef"),R6e=e=>{sn(EP,{setForwardRef:r=>{e.value=r}})},P6e=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),xP=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},mm=function(e,t,...r){let n;t.includes("mouse")||t.includes("click")?n="MouseEvents":t.includes("key")?n="KeyboardEvent":n="HTMLEvents";const a=document.createEvent(n);return a.initEvent(t,...r),e.dispatchEvent(a),e},_3="ElOnlyChild",F6e=rt({name:_3,setup(e,{slots:t,attrs:r}){var n;const a=wt(EP),i=P6e((n=a==null?void 0:a.setForwardRef)!=null?n:Qr);return()=>{var o;const l=(o=t.default)==null?void 0:o.call(t,r);if(!l)return null;if(l.length>1)return Yr(_3,"requires exact only one valid child."),null;const f=SP(l);return f?tn(Ca(f,r),[[i]]):(Yr(_3,"no valid child node found"),null)}}});function SP(e){if(!e)return null;const t=e;for(const r of t){if(At(r))switch(r.type){case yn:continue;case Ks:case"svg":return MP(r);case Ct:return SP(r.children);default:return r}return MP(r)}return null}function MP(e){const t=Gt("only-child");return Et("span",{class:t.e("content")},[e])}const L6e=rt({name:"ElPopperTrigger",inheritAttrs:!1}),D6e=rt({...L6e,props:wP,setup(e,{expose:t}){const r=e,{role:n,triggerRef:a}=wt(b3,void 0);R6e(a);const i=be(()=>l.value?r.id:void 0),o=be(()=>{if(n&&n.value==="tooltip")return r.open&&r.id?r.id:void 0}),l=be(()=>{if(n&&n.value!=="tooltip")return n.value}),f=be(()=>l.value?`${r.open}`:void 0);let c;const d=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return ur(()=>{dt(()=>r.virtualRef,v=>{v&&(a.value=rs(v))},{immediate:!0}),dt(a,(v,m)=>{c==null||c(),c=void 0,ts(v)&&(d.forEach(y=>{var b;const S=r[y];S&&(v.addEventListener(y.slice(2).toLowerCase(),S),(b=m==null?void 0:m.removeEventListener)==null||b.call(m,y.slice(2).toLowerCase(),S))}),xP(v)&&(c=dt([i,o,l,f],y=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((b,S)=>{Sf(y[S])?v.removeAttribute(b):v.setAttribute(b,y[S])})},{immediate:!0}))),ts(m)&&xP(m)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(y=>m.removeAttribute(y))},{immediate:!0})}),gn(()=>{if(c==null||c(),c=void 0,a.value&&ts(a.value)){const v=a.value;d.forEach(m=>{const y=r[m];y&&v.removeEventListener(m.slice(2).toLowerCase(),y)}),a.value=void 0}}),t({triggerRef:a}),(v,m)=>v.virtualTriggering?Ye("v-if",!0):(he(),nt(J(F6e),sa({key:0},v.$attrs,{"aria-controls":J(i),"aria-describedby":J(o),"aria-expanded":J(f),"aria-haspopup":J(l)}),{default:st(()=>[yt(v.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var $6e=ir(D6e,[["__file","trigger.vue"]]);const w3="focus-trap.focus-after-trapped",E3="focus-trap.focus-after-released",U6e="focus-trap.focusout-prevented",CP={cancelable:!0,bubbles:!1},z6e={cancelable:!0,bubbles:!1},TP="focusAfterTrapped",AP="focusAfterReleased",V6e=Symbol("elFocusTrap"),x3=Oe(),gm=Oe(0),S3=Oe(0);let ym=0;const IP=e=>{const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t},BP=(e,t)=>{for(const r of e)if(!q6e(r,t))return r},q6e=(e,t)=>{if(fe.env.NODE_ENV==="test")return!1;if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},H6e=e=>{const t=IP(e),r=BP(t,e),n=BP(t.reverse(),e);return[r,n]},j6e=e=>e instanceof HTMLInputElement&&"select"in e,tl=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),S3.value=window.performance.now(),e!==r&&j6e(e)&&t&&e.select()}};function kP(e,t){const r=[...e],n=e.indexOf(t);return n!==-1&&r.splice(n,1),r}const K6e=()=>{let e=[];return{push:n=>{const a=e[0];a&&n!==a&&a.pause(),e=kP(e,n),e.unshift(n)},remove:n=>{var a,i;e=kP(e,n),(i=(a=e[0])==null?void 0:a.resume)==null||i.call(a)}}},W6e=(e,t=!1)=>{const r=document.activeElement;for(const n of e)if(tl(n,t),document.activeElement!==r)return},NP=K6e(),G6e=()=>gm.value>S3.value,bm=()=>{x3.value="pointer",gm.value=window.performance.now()},OP=()=>{x3.value="keyboard",gm.value=window.performance.now()},Z6e=()=>(ur(()=>{ym===0&&(document.addEventListener("mousedown",bm),document.addEventListener("touchstart",bm),document.addEventListener("keydown",OP)),ym++}),gn(()=>{ym--,ym<=0&&(document.removeEventListener("mousedown",bm),document.removeEventListener("touchstart",bm),document.removeEventListener("keydown",OP))}),{focusReason:x3,lastUserFocusTimestamp:gm,lastAutomatedFocusTimestamp:S3}),_m=e=>new CustomEvent(U6e,{...z6e,detail:e}),fn={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"};let Ju=[];const RP=e=>{e.code===fn.esc&&Ju.forEach(t=>t(e))},J6e=e=>{ur(()=>{Ju.length===0&&document.addEventListener("keydown",RP),ln&&Ju.push(e)}),gn(()=>{Ju=Ju.filter(t=>t!==e),Ju.length===0&&ln&&document.removeEventListener("keydown",RP)})},Y6e=rt({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[TP,AP,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const r=Oe();let n,a;const{focusReason:i}=Z6e();J6e(b=>{e.trapped&&!o.paused&&t("release-requested",b)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=b=>{if(!e.loop&&!e.trapped||o.paused)return;const{code:S,altKey:T,ctrlKey:C,metaKey:I,currentTarget:B,shiftKey:N}=b,{loop:R}=e,P=S===fn.tab&&!T&&!C&&!I,D=document.activeElement;if(P&&D){const $=B,[U,K]=H6e($);if(U&&K){if(!N&&D===K){const s=_m({focusReason:i.value});t("focusout-prevented",s),s.defaultPrevented||(b.preventDefault(),R&&tl(U,!0))}else if(N&&[U,$].includes(D)){const s=_m({focusReason:i.value});t("focusout-prevented",s),s.defaultPrevented||(b.preventDefault(),R&&tl(K,!0))}}else if(D===$){const s=_m({focusReason:i.value});t("focusout-prevented",s),s.defaultPrevented||b.preventDefault()}}};sn(V6e,{focusTrapRef:r,onKeydown:l}),dt(()=>e.focusTrapEl,b=>{b&&(r.value=b)},{immediate:!0}),dt([r],([b],[S])=>{b&&(b.addEventListener("keydown",l),b.addEventListener("focusin",d),b.addEventListener("focusout",v)),S&&(S.removeEventListener("keydown",l),S.removeEventListener("focusin",d),S.removeEventListener("focusout",v))});const f=b=>{t(TP,b)},c=b=>t(AP,b),d=b=>{const S=J(r);if(!S)return;const T=b.target,C=b.relatedTarget,I=T&&S.contains(T);e.trapped||C&&S.contains(C)||(n=C),I&&t("focusin",b),!o.paused&&e.trapped&&(I?a=T:tl(a,!0))},v=b=>{const S=J(r);if(!(o.paused||!S))if(e.trapped){const T=b.relatedTarget;!Sf(T)&&!S.contains(T)&&setTimeout(()=>{if(!o.paused&&e.trapped){const C=_m({focusReason:i.value});t("focusout-prevented",C),C.defaultPrevented||tl(a,!0)}},0)}else{const T=b.target;T&&S.contains(T)||t("focusout",b)}};async function m(){await Xt();const b=J(r);if(b){NP.push(o);const S=b.contains(document.activeElement)?n:document.activeElement;if(n=S,!b.contains(S)){const C=new Event(w3,CP);b.addEventListener(w3,f),b.dispatchEvent(C),C.defaultPrevented||Xt(()=>{let I=e.focusStartEl;It(I)||(tl(I),document.activeElement!==I&&(I="first")),I==="first"&&W6e(IP(b),!0),(document.activeElement===S||I==="container")&&tl(b)})}}}function y(){const b=J(r);if(b){b.removeEventListener(w3,f);const S=new CustomEvent(E3,{...CP,detail:{focusReason:i.value}});b.addEventListener(E3,c),b.dispatchEvent(S),!S.defaultPrevented&&(i.value=="keyboard"||!G6e()||b.contains(document.activeElement))&&tl(n??document.body),b.removeEventListener(E3,c),NP.remove(o)}}return ur(()=>{e.trapped&&m(),dt(()=>e.trapped,b=>{b?m():y()})}),gn(()=>{e.trapped&&y(),r.value&&(r.value.removeEventListener("keydown",l),r.value.removeEventListener("focusin",d),r.value.removeEventListener("focusout",v),r.value=void 0)}),{onKeydown:l}}});function X6e(e,t,r,n,a,i){return yt(e.$slots,"default",{handleKeydown:e.onKeydown})}var Q6e=ir(Y6e,[["render",X6e],["__file","focus-trap.vue"]]),bi="top",ca="bottom",ha="right",_i="left",M3="auto",Yh=[bi,ca,ha,_i],Yu="start",Xh="end",e4e="clippingParents",PP="viewport",Qh="popper",t4e="reference",FP=Yh.reduce(function(e,t){return e.concat([t+"-"+Yu,t+"-"+Xh])},[]),wm=[].concat(Yh,[M3]).reduce(function(e,t){return e.concat([t,t+"-"+Yu,t+"-"+Xh])},[]),r4e="beforeRead",n4e="read",i4e="afterRead",a4e="beforeMain",o4e="main",s4e="afterMain",l4e="beforeWrite",f4e="write",u4e="afterWrite",c4e=[r4e,n4e,i4e,a4e,o4e,s4e,l4e,f4e,u4e];function wo(e){return e?(e.nodeName||"").toLowerCase():null}function Pa(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xu(e){var t=Pa(e).Element;return e instanceof t||e instanceof Element}function da(e){var t=Pa(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function C3(e){if(typeof ShadowRoot>"u")return!1;var t=Pa(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function h4e(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},i=t.elements[r];!da(i)||!wo(i)||(Object.assign(i.style,n),Object.keys(a).forEach(function(o){var l=a[o];l===!1?i.removeAttribute(o):i.setAttribute(o,l===!0?"":l)}))})}function d4e(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],i=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=o.reduce(function(f,c){return f[c]="",f},{});!da(a)||!wo(a)||(Object.assign(a.style,l),Object.keys(i).forEach(function(f){a.removeAttribute(f)}))})}}var LP={name:"applyStyles",enabled:!0,phase:"write",fn:h4e,effect:d4e,requires:["computeStyles"]};function Eo(e){return e.split("-")[0]}var If=Math.max,Em=Math.min,Qu=Math.round;function ec(e,t){t===void 0&&(t=!1);var r=e.getBoundingClientRect(),n=1,a=1;if(da(e)&&t){var i=e.offsetHeight,o=e.offsetWidth;o>0&&(n=Qu(r.width)/o||1),i>0&&(a=Qu(r.height)/i||1)}return{width:r.width/n,height:r.height/a,top:r.top/a,right:r.right/n,bottom:r.bottom/a,left:r.left/n,x:r.left/n,y:r.top/a}}function T3(e){var t=ec(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function DP(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&C3(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function is(e){return Pa(e).getComputedStyle(e)}function p4e(e){return["table","td","th"].indexOf(wo(e))>=0}function rl(e){return((Xu(e)?e.ownerDocument:e.document)||window.document).documentElement}function xm(e){return wo(e)==="html"?e:e.assignedSlot||e.parentNode||(C3(e)?e.host:null)||rl(e)}function $P(e){return!da(e)||is(e).position==="fixed"?null:e.offsetParent}function v4e(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&da(e)){var n=is(e);if(n.position==="fixed")return null}var a=xm(e);for(C3(a)&&(a=a.host);da(a)&&["html","body"].indexOf(wo(a))<0;){var i=is(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function ed(e){for(var t=Pa(e),r=$P(e);r&&p4e(r)&&is(r).position==="static";)r=$P(r);return r&&(wo(r)==="html"||wo(r)==="body"&&is(r).position==="static")?t:r||v4e(e)||t}function A3(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function td(e,t,r){return If(e,Em(t,r))}function m4e(e,t,r){var n=td(e,t,r);return n>r?r:n}function UP(){return{top:0,right:0,bottom:0,left:0}}function zP(e){return Object.assign({},UP(),e)}function VP(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var g4e=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,zP(typeof e!="number"?e:VP(e,Yh))};function y4e(e){var t,r=e.state,n=e.name,a=e.options,i=r.elements.arrow,o=r.modifiersData.popperOffsets,l=Eo(r.placement),f=A3(l),c=[_i,ha].indexOf(l)>=0,d=c?"height":"width";if(!(!i||!o)){var v=g4e(a.padding,r),m=T3(i),y=f==="y"?bi:_i,b=f==="y"?ca:ha,S=r.rects.reference[d]+r.rects.reference[f]-o[f]-r.rects.popper[d],T=o[f]-r.rects.reference[f],C=ed(i),I=C?f==="y"?C.clientHeight||0:C.clientWidth||0:0,B=S/2-T/2,N=v[y],R=I-m[d]-v[b],P=I/2-m[d]/2+B,D=td(N,P,R),$=f;r.modifiersData[n]=(t={},t[$]=D,t.centerOffset=D-P,t)}}function b4e(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!DP(t.elements.popper,a)||(t.elements.arrow=a))}var _4e={name:"arrow",enabled:!0,phase:"main",fn:y4e,effect:b4e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function tc(e){return e.split("-")[1]}var w4e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function E4e(e){var t=e.x,r=e.y,n=window,a=n.devicePixelRatio||1;return{x:Qu(t*a)/a||0,y:Qu(r*a)/a||0}}function qP(e){var t,r=e.popper,n=e.popperRect,a=e.placement,i=e.variation,o=e.offsets,l=e.position,f=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,v=e.isFixed,m=o.x,y=m===void 0?0:m,b=o.y,S=b===void 0?0:b,T=typeof d=="function"?d({x:y,y:S}):{x:y,y:S};y=T.x,S=T.y;var C=o.hasOwnProperty("x"),I=o.hasOwnProperty("y"),B=_i,N=bi,R=window;if(c){var P=ed(r),D="clientHeight",$="clientWidth";if(P===Pa(r)&&(P=rl(r),is(P).position!=="static"&&l==="absolute"&&(D="scrollHeight",$="scrollWidth")),P=P,a===bi||(a===_i||a===ha)&&i===Xh){N=ca;var U=v&&P===R&&R.visualViewport?R.visualViewport.height:P[D];S-=U-n.height,S*=f?1:-1}if(a===_i||(a===bi||a===ca)&&i===Xh){B=ha;var K=v&&P===R&&R.visualViewport?R.visualViewport.width:P[$];y-=K-n.width,y*=f?1:-1}}var M=Object.assign({position:l},c&&w4e),s=d===!0?E4e({x:y,y:S}):{x:y,y:S};if(y=s.x,S=s.y,f){var h;return Object.assign({},M,(h={},h[N]=I?"0":"",h[B]=C?"0":"",h.transform=(R.devicePixelRatio||1)<=1?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",h))}return Object.assign({},M,(t={},t[N]=I?S+"px":"",t[B]=C?y+"px":"",t.transform="",t))}function x4e(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,i=r.adaptive,o=i===void 0?!0:i,l=r.roundOffsets,f=l===void 0?!0:l,c={placement:Eo(t.placement),variation:tc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,qP(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,qP(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var HP={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:x4e,data:{}},Sm={passive:!0};function S4e(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,i=a===void 0?!0:a,o=n.resize,l=o===void 0?!0:o,f=Pa(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",r.update,Sm)}),l&&f.addEventListener("resize",r.update,Sm),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",r.update,Sm)}),l&&f.removeEventListener("resize",r.update,Sm)}}var jP={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:S4e,data:{}},M4e={left:"right",right:"left",bottom:"top",top:"bottom"};function Mm(e){return e.replace(/left|right|bottom|top/g,function(t){return M4e[t]})}var C4e={start:"end",end:"start"};function KP(e){return e.replace(/start|end/g,function(t){return C4e[t]})}function I3(e){var t=Pa(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function B3(e){return ec(rl(e)).left+I3(e).scrollLeft}function T4e(e){var t=Pa(e),r=rl(e),n=t.visualViewport,a=r.clientWidth,i=r.clientHeight,o=0,l=0;return n&&(a=n.width,i=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=n.offsetLeft,l=n.offsetTop)),{width:a,height:i,x:o+B3(e),y:l}}function A4e(e){var t,r=rl(e),n=I3(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=If(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=If(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-n.scrollLeft+B3(e),f=-n.scrollTop;return is(a||r).direction==="rtl"&&(l+=If(r.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:l,y:f}}function k3(e){var t=is(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function WP(e){return["html","body","#document"].indexOf(wo(e))>=0?e.ownerDocument.body:da(e)&&k3(e)?e:WP(xm(e))}function rd(e,t){var r;t===void 0&&(t=[]);var n=WP(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),i=Pa(n),o=a?[i].concat(i.visualViewport||[],k3(n)?n:[]):n,l=t.concat(o);return a?l:l.concat(rd(xm(o)))}function N3(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function I4e(e){var t=ec(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function GP(e,t){return t===PP?N3(T4e(e)):Xu(t)?I4e(t):N3(A4e(rl(e)))}function B4e(e){var t=rd(xm(e)),r=["absolute","fixed"].indexOf(is(e).position)>=0,n=r&&da(e)?ed(e):e;return Xu(n)?t.filter(function(a){return Xu(a)&&DP(a,n)&&wo(a)!=="body"}):[]}function k4e(e,t,r){var n=t==="clippingParents"?B4e(e):[].concat(t),a=[].concat(n,[r]),i=a[0],o=a.reduce(function(l,f){var c=GP(e,f);return l.top=If(c.top,l.top),l.right=Em(c.right,l.right),l.bottom=Em(c.bottom,l.bottom),l.left=If(c.left,l.left),l},GP(e,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function ZP(e){var t=e.reference,r=e.element,n=e.placement,a=n?Eo(n):null,i=n?tc(n):null,o=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,f;switch(a){case bi:f={x:o,y:t.y-r.height};break;case ca:f={x:o,y:t.y+t.height};break;case ha:f={x:t.x+t.width,y:l};break;case _i:f={x:t.x-r.width,y:l};break;default:f={x:t.x,y:t.y}}var c=a?A3(a):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case Yu:f[c]=f[c]-(t[d]/2-r[d]/2);break;case Xh:f[c]=f[c]+(t[d]/2-r[d]/2);break}}return f}function nd(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,i=r.boundary,o=i===void 0?e4e:i,l=r.rootBoundary,f=l===void 0?PP:l,c=r.elementContext,d=c===void 0?Qh:c,v=r.altBoundary,m=v===void 0?!1:v,y=r.padding,b=y===void 0?0:y,S=zP(typeof b!="number"?b:VP(b,Yh)),T=d===Qh?t4e:Qh,C=e.rects.popper,I=e.elements[m?T:d],B=k4e(Xu(I)?I:I.contextElement||rl(e.elements.popper),o,f),N=ec(e.elements.reference),R=ZP({reference:N,element:C,strategy:"absolute",placement:a}),P=N3(Object.assign({},C,R)),D=d===Qh?P:N,$={top:B.top-D.top+S.top,bottom:D.bottom-B.bottom+S.bottom,left:B.left-D.left+S.left,right:D.right-B.right+S.right},U=e.modifiersData.offset;if(d===Qh&&U){var K=U[a];Object.keys($).forEach(function(M){var s=[ha,ca].indexOf(M)>=0?1:-1,h=[bi,ca].indexOf(M)>=0?"y":"x";$[M]+=K[h]*s})}return $}function N4e(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,i=r.rootBoundary,o=r.padding,l=r.flipVariations,f=r.allowedAutoPlacements,c=f===void 0?wm:f,d=tc(n),v=d?l?FP:FP.filter(function(b){return tc(b)===d}):Yh,m=v.filter(function(b){return c.indexOf(b)>=0});m.length===0&&(m=v);var y=m.reduce(function(b,S){return b[S]=nd(e,{placement:S,boundary:a,rootBoundary:i,padding:o})[Eo(S)],b},{});return Object.keys(y).sort(function(b,S){return y[b]-y[S]})}function O4e(e){if(Eo(e)===M3)return[];var t=Mm(e);return[KP(e),t,KP(t)]}function R4e(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,i=a===void 0?!0:a,o=r.altAxis,l=o===void 0?!0:o,f=r.fallbackPlacements,c=r.padding,d=r.boundary,v=r.rootBoundary,m=r.altBoundary,y=r.flipVariations,b=y===void 0?!0:y,S=r.allowedAutoPlacements,T=t.options.placement,C=Eo(T),I=C===T,B=f||(I||!b?[Mm(T)]:O4e(T)),N=[T].concat(B).reduce(function(q,Y){return q.concat(Eo(Y)===M3?N4e(t,{placement:Y,boundary:d,rootBoundary:v,padding:c,flipVariations:b,allowedAutoPlacements:S}):Y)},[]),R=t.rects.reference,P=t.rects.popper,D=new Map,$=!0,U=N[0],K=0;K<N.length;K++){var M=N[K],s=Eo(M),h=tc(M)===Yu,p=[bi,ca].indexOf(s)>=0,g=p?"width":"height",_=nd(t,{placement:M,boundary:d,rootBoundary:v,altBoundary:m,padding:c}),w=p?h?ha:_i:h?ca:bi;R[g]>P[g]&&(w=Mm(w));var A=Mm(w),E=[];if(i&&E.push(_[s]<=0),l&&E.push(_[w]<=0,_[A]<=0),E.every(function(q){return q})){U=M,$=!1;break}D.set(M,E)}if($)for(var u=b?3:1,x=function(q){var Y=N.find(function(W){var X=D.get(W);if(X)return X.slice(0,q).every(function(ie){return ie})});if(Y)return U=Y,"break"},k=u;k>0;k--){var O=x(k);if(O==="break")break}t.placement!==U&&(t.modifiersData[n]._skip=!0,t.placement=U,t.reset=!0)}}var P4e={name:"flip",enabled:!0,phase:"main",fn:R4e,requiresIfExists:["offset"],data:{_skip:!1}};function JP(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function YP(e){return[bi,ha,ca,_i].some(function(t){return e[t]>=0})}function F4e(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=nd(t,{elementContext:"reference"}),l=nd(t,{altBoundary:!0}),f=JP(o,n),c=JP(l,a,i),d=YP(f),v=YP(c);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":v})}var L4e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:F4e};function D4e(e,t,r){var n=Eo(e),a=[_i,bi].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=i[0],l=i[1];return o=o||0,l=(l||0)*a,[_i,ha].indexOf(n)>=0?{x:l,y:o}:{x:o,y:l}}function $4e(e){var t=e.state,r=e.options,n=e.name,a=r.offset,i=a===void 0?[0,0]:a,o=wm.reduce(function(d,v){return d[v]=D4e(v,t.rects,i),d},{}),l=o[t.placement],f=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=o}var U4e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$4e};function z4e(e){var t=e.state,r=e.name;t.modifiersData[r]=ZP({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var XP={name:"popperOffsets",enabled:!0,phase:"read",fn:z4e,data:{}};function V4e(e){return e==="x"?"y":"x"}function q4e(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,i=a===void 0?!0:a,o=r.altAxis,l=o===void 0?!1:o,f=r.boundary,c=r.rootBoundary,d=r.altBoundary,v=r.padding,m=r.tether,y=m===void 0?!0:m,b=r.tetherOffset,S=b===void 0?0:b,T=nd(t,{boundary:f,rootBoundary:c,padding:v,altBoundary:d}),C=Eo(t.placement),I=tc(t.placement),B=!I,N=A3(C),R=V4e(N),P=t.modifiersData.popperOffsets,D=t.rects.reference,$=t.rects.popper,U=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,K=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,s={x:0,y:0};if(P){if(i){var h,p=N==="y"?bi:_i,g=N==="y"?ca:ha,_=N==="y"?"height":"width",w=P[N],A=w+T[p],E=w-T[g],u=y?-$[_]/2:0,x=I===Yu?D[_]:$[_],k=I===Yu?-$[_]:-D[_],O=t.elements.arrow,q=y&&O?T3(O):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:UP(),W=Y[p],X=Y[g],ie=td(0,D[_],q[_]),ne=B?D[_]/2-u-ie-W-K.mainAxis:x-ie-W-K.mainAxis,ce=B?-D[_]/2+u+ie+X+K.mainAxis:k+ie+X+K.mainAxis,te=t.elements.arrow&&ed(t.elements.arrow),Z=te?N==="y"?te.clientTop||0:te.clientLeft||0:0,j=(h=M==null?void 0:M[N])!=null?h:0,ae=w+ne-j-Z,se=w+ce-j,V=td(y?Em(A,ae):A,w,y?If(E,se):E);P[N]=V,s[N]=V-w}if(l){var L,F=N==="x"?bi:_i,z=N==="x"?ca:ha,le=P[R],Q=R==="y"?"height":"width",re=le+T[F],ue=le-T[z],H=[bi,_i].indexOf(C)!==-1,G=(L=M==null?void 0:M[R])!=null?L:0,me=H?re:le-D[Q]-$[Q]-G+K.altAxis,oe=H?le+D[Q]+$[Q]-G-K.altAxis:ue,de=y&&H?m4e(me,le,oe):td(y?me:re,le,y?oe:ue);P[R]=de,s[R]=de-le}t.modifiersData[n]=s}}var H4e={name:"preventOverflow",enabled:!0,phase:"main",fn:q4e,requiresIfExists:["offset"]};function j4e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function K4e(e){return e===Pa(e)||!da(e)?I3(e):j4e(e)}function W4e(e){var t=e.getBoundingClientRect(),r=Qu(t.width)/e.offsetWidth||1,n=Qu(t.height)/e.offsetHeight||1;return r!==1||n!==1}function G4e(e,t,r){r===void 0&&(r=!1);var n=da(t),a=da(t)&&W4e(t),i=rl(t),o=ec(e,a),l={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(n||!n&&!r)&&((wo(t)!=="body"||k3(i))&&(l=K4e(t)),da(t)?(f=ec(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):i&&(f.x=B3(i))),{x:o.left+l.scrollLeft-f.x,y:o.top+l.scrollTop-f.y,width:o.width,height:o.height}}function Z4e(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function a(i){r.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(l){if(!r.has(l)){var f=t.get(l);f&&a(f)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||a(i)}),n}function J4e(e){var t=Z4e(e);return c4e.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function Y4e(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function X4e(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var QP={placement:"bottom",modifiers:[],strategy:"absolute"};function eF(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function O3(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,a=t.defaultOptions,i=a===void 0?QP:a;return function(o,l,f){f===void 0&&(f=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},QP,i),modifiersData:{},elements:{reference:o,popper:l},attributes:{},styles:{}},d=[],v=!1,m={state:c,setOptions:function(S){var T=typeof S=="function"?S(c.options):S;b(),c.options=Object.assign({},i,c.options,T),c.scrollParents={reference:Xu(o)?rd(o):o.contextElement?rd(o.contextElement):[],popper:rd(l)};var C=J4e(X4e([].concat(n,c.options.modifiers)));return c.orderedModifiers=C.filter(function(I){return I.enabled}),y(),m.update()},forceUpdate:function(){if(!v){var S=c.elements,T=S.reference,C=S.popper;if(eF(T,C)){c.rects={reference:G4e(T,ed(C),c.options.strategy==="fixed"),popper:T3(C)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function($){return c.modifiersData[$.name]=Object.assign({},$.data)});for(var I=0;I<c.orderedModifiers.length;I++){if(c.reset===!0){c.reset=!1,I=-1;continue}var B=c.orderedModifiers[I],N=B.fn,R=B.options,P=R===void 0?{}:R,D=B.name;typeof N=="function"&&(c=N({state:c,options:P,name:D,instance:m})||c)}}}},update:Y4e(function(){return new Promise(function(S){m.forceUpdate(),S(c)})}),destroy:function(){b(),v=!0}};if(!eF(o,l))return m;m.setOptions(f).then(function(S){!v&&f.onFirstUpdate&&f.onFirstUpdate(S)});function y(){c.orderedModifiers.forEach(function(S){var T=S.name,C=S.options,I=C===void 0?{}:C,B=S.effect;if(typeof B=="function"){var N=B({state:c,name:T,instance:m,options:I}),R=function(){};d.push(N||R)}})}function b(){d.forEach(function(S){return S()}),d=[]}return m}}O3();var Q4e=[jP,XP,HP,LP];O3({defaultModifiers:Q4e});var eSe=[jP,XP,HP,LP,U4e,P4e,H4e,_4e,L4e],tSe=O3({defaultModifiers:eSe});const rSe=["fixed","absolute"],nSe=hr({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Tt(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:wm,default:"bottom"},popperOptions:{type:Tt(Object),default:()=>({})},strategy:{type:String,values:rSe,default:"absolute"}}),tF=hr({...nSe,id:String,style:{type:Tt([String,Array,Object])},className:{type:Tt([String,Array,Object])},effect:{type:Tt(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Tt([String,Array,Object])},popperStyle:{type:Tt([String,Array,Object])},referenceEl:{type:Tt(Object)},triggerTargetEl:{type:Tt(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...Tf(["ariaLabel"])}),iSe={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},aSe=(e,t)=>{const r=Oe(!1),n=Oe();return{focusStartRef:n,trapped:r,onFocusAfterReleased:c=>{var d;((d=c.detail)==null?void 0:d.focusReason)!=="pointer"&&(n.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:c=>{e.visible&&!r.value&&(c.target&&(n.value=c.target),r.value=!0)},onFocusoutPrevented:c=>{e.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),r.value=!1)},onReleaseRequested:()=>{r.value=!1,t("close")}}},oSe=(e,t=[])=>{const{placement:r,strategy:n,popperOptions:a}=e,i={placement:r,strategy:n,...a,modifiers:[...lSe(e),...t]};return fSe(i,a==null?void 0:a.modifiers),i},sSe=e=>{if(ln)return rs(e)};function lSe(e){const{offset:t,gpuAcceleration:r,fallbackPlacements:n}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:n}},{name:"computeStyles",options:{gpuAcceleration:r}}]}function fSe(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const uSe=(e,t,r={})=>{const n={name:"updateState",enabled:!0,phase:"write",fn:({state:f})=>{const c=cSe(f);Object.assign(o.value,c)},requires:["computeStyles"]},a=be(()=>{const{onFirstUpdate:f,placement:c,strategy:d,modifiers:v}=J(r);return{onFirstUpdate:f,placement:c||"bottom",strategy:d||"absolute",modifiers:[...v||[],n,{name:"applyStyles",enabled:!1}]}}),i=Nu(),o=Oe({styles:{popper:{position:J(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return dt(a,f=>{const c=J(i);c&&c.setOptions(f)},{deep:!0}),dt([e,t],([f,c])=>{l(),!(!f||!c)&&(i.value=tSe(f,c,J(a)))}),gn(()=>{l()}),{state:be(()=>{var f;return{...((f=J(i))==null?void 0:f.state)||{}}}),styles:be(()=>J(o).styles),attributes:be(()=>J(o).attributes),update:()=>{var f;return(f=J(i))==null?void 0:f.update()},forceUpdate:()=>{var f;return(f=J(i))==null?void 0:f.forceUpdate()},instanceRef:be(()=>J(i))}};function cSe(e){const t=Object.keys(e.elements),r=om(t.map(a=>[a,e.styles[a]||{}])),n=om(t.map(a=>[a,e.attributes[a]]));return{styles:r,attributes:n}}const hSe=0,dSe=e=>{const{popperInstanceRef:t,contentRef:r,triggerRef:n,role:a}=wt(b3,void 0),i=Oe(),o=Oe(),l=be(()=>({name:"eventListeners",enabled:!!e.visible})),f=be(()=>{var C;const I=J(i),B=(C=J(o))!=null?C:hSe;return{name:"arrow",enabled:!I3e(I),options:{element:I,padding:B}}}),c=be(()=>({onFirstUpdate:()=>{b()},...oSe(e,[J(f),J(l)])})),d=be(()=>sSe(e.referenceEl)||J(n)),{attributes:v,state:m,styles:y,update:b,forceUpdate:S,instanceRef:T}=uSe(d,r,c);return dt(T,C=>t.value=C),ur(()=>{dt(()=>{var C;return(C=J(d))==null?void 0:C.getBoundingClientRect()},()=>{b()})}),{attributes:v,arrowRef:i,contentRef:r,instanceRef:T,state:m,styles:y,role:a,forceUpdate:S,update:b}},pSe=(e,{attributes:t,styles:r,role:n})=>{const{nextZIndex:a}=WR(),i=Gt("popper"),o=be(()=>J(t).popper),l=Oe(Wn(e.zIndex)?e.zIndex:a()),f=be(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),c=be(()=>[{zIndex:J(l)},J(r).popper,e.popperStyle||{}]),d=be(()=>n.value==="dialog"?"false":void 0),v=be(()=>J(r).arrow||{});return{ariaModal:d,arrowStyle:v,contentAttrs:o,contentClass:f,contentStyle:c,contentZIndex:l,updateZIndex:()=>{l.value=Wn(e.zIndex)?e.zIndex:a()}}},vSe=rt({name:"ElPopperContent"}),mSe=rt({...vSe,props:tF,emits:iSe,setup(e,{expose:t,emit:r}){const n=e,{focusStartRef:a,trapped:i,onFocusAfterReleased:o,onFocusAfterTrapped:l,onFocusInTrap:f,onFocusoutPrevented:c,onReleaseRequested:d}=aSe(n,r),{attributes:v,arrowRef:m,contentRef:y,styles:b,instanceRef:S,role:T,update:C}=dSe(n),{ariaModal:I,arrowStyle:B,contentAttrs:N,contentClass:R,contentStyle:P,updateZIndex:D}=pSe(n,{styles:b,attributes:v,role:T}),$=wt(Af,void 0),U=Oe();sn(yP,{arrowStyle:B,arrowRef:m,arrowOffset:U}),$&&sn(Af,{...$,addInputId:Qr,removeInputId:Qr});let K;const M=(h=!0)=>{C(),h&&D()},s=()=>{M(!1),n.visible&&n.focusOnShow?i.value=!0:n.visible===!1&&(i.value=!1)};return ur(()=>{dt(()=>n.triggerTargetEl,(h,p)=>{K==null||K(),K=void 0;const g=J(h||y.value),_=J(p||y.value);ts(g)&&(K=dt([T,()=>n.ariaLabel,I,()=>n.id],w=>{["role","aria-label","aria-modal","id"].forEach((A,E)=>{Sf(w[E])?g.removeAttribute(A):g.setAttribute(A,w[E])})},{immediate:!0})),_!==g&&ts(_)&&["role","aria-label","aria-modal","id"].forEach(w=>{_.removeAttribute(w)})},{immediate:!0}),dt(()=>n.visible,s,{immediate:!0})}),gn(()=>{K==null||K(),K=void 0}),t({popperContentRef:y,popperInstanceRef:S,updatePopper:M,contentStyle:P}),(h,p)=>(he(),ke("div",sa({ref_key:"contentRef",ref:y},J(N),{style:J(P),class:J(R),tabindex:"-1",onMouseenter:g=>h.$emit("mouseenter",g),onMouseleave:g=>h.$emit("mouseleave",g)}),[Et(J(Q6e),{trapped:J(i),"trap-on-focus-in":!0,"focus-trap-el":J(y),"focus-start-el":J(a),onFocusAfterTrapped:J(l),onFocusAfterReleased:J(o),onFocusin:J(f),onFocusoutPrevented:J(c),onReleaseRequested:J(d)},{default:st(()=>[yt(h.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var gSe=ir(mSe,[["__file","content.vue"]]);const ySe=Rn(B6e),R3=Symbol("elTooltip");function rF(){let e;const t=(n,a)=>{r(),e=window.setTimeout(n,a)},r=()=>window.clearTimeout(e);return Wh(()=>r()),{registerTimeout:t,cancelTimeout:r}}const bSe=hr({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),_Se=({showAfter:e,hideAfter:t,autoClose:r,open:n,close:a})=>{const{registerTimeout:i}=rF(),{registerTimeout:o,cancelTimeout:l}=rF();return{onOpen:d=>{i(()=>{n(d);const v=J(r);Wn(v)&&v>0&&o(()=>{a(d)},v)},J(e))},onClose:d=>{l(),i(()=>{a(d)},J(t))}}},P3=hr({...bSe,...tF,appendTo:{type:Tt([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:Tt(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...Tf(["ariaLabel"])}),nF=hr({...wP,disabled:Boolean,trigger:{type:Tt([String,Array]),default:"hover"},triggerKeys:{type:Tt(Array),default:()=>[fn.enter,fn.numpadEnter,fn.space]}}),wSe=fm({type:Tt(Boolean),default:null}),ESe=fm({type:Tt(Function)}),iF=e=>{const t=`update:${e}`,r=`onUpdate:${e}`,n=[t],a={[e]:wSe,[r]:ESe};return{useModelToggle:({indicator:o,toggleReason:l,shouldHideWhenRouteChanges:f,shouldProceed:c,onShow:d,onHide:v})=>{const m=Cr(),{emit:y}=m,b=m.props,S=be(()=>vt(b[r])),T=be(()=>b[e]===null),C=D=>{o.value!==!0&&(o.value=!0,l&&(l.value=D),vt(d)&&d(D))},I=D=>{o.value!==!1&&(o.value=!1,l&&(l.value=D),vt(v)&&v(D))},B=D=>{if(b.disabled===!0||vt(c)&&!c())return;const $=S.value&&ln;$&&y(t,!0),(T.value||!$)&&C(D)},N=D=>{if(b.disabled===!0||!ln)return;const $=S.value&&ln;$&&y(t,!1),(T.value||!$)&&I(D)},R=D=>{Mf(D)&&(b.disabled&&D?S.value&&y(t,!1):o.value!==D&&(D?C():I()))},P=()=>{o.value?N():B()};return dt(()=>b[e],R),f&&m.appContext.config.globalProperties.$route!==void 0&&dt(()=>({...m.proxy.$route}),()=>{f.value&&o.value&&N()}),ur(()=>{R(b[e])}),{hide:N,show:B,toggle:P,hasUpdateHandler:S}},useModelToggleProps:a,useModelToggleEmits:n}};iF("modelValue");const{useModelToggleProps:xSe,useModelToggleEmits:SSe,useModelToggle:MSe}=iF("visible"),CSe=hr({...bP,...xSe,...P3,...nF,..._P,showArrow:{type:Boolean,default:!0}}),TSe=[...SSe,"before-show","before-hide","show","hide","open","close"],ASe=(e,t)=>ot(e)?e.includes(t):e===t,rc=(e,t,r)=>n=>{ASe(J(e),t)&&r(n)},as=(e,t,{checkForDefaultPrevented:r=!0}={})=>a=>{const i=e==null?void 0:e(a);if(r===!1||!i)return t==null?void 0:t(a)},ISe=rt({name:"ElTooltipTrigger"}),BSe=rt({...ISe,props:nF,setup(e,{expose:t}){const r=e,n=Gt("tooltip"),{controlled:a,id:i,open:o,onOpen:l,onClose:f,onToggle:c}=wt(R3,void 0),d=Oe(null),v=()=>{if(J(a)||r.disabled)return!0},m=ia(r,"trigger"),y=as(v,rc(m,"hover",l)),b=as(v,rc(m,"hover",f)),S=as(v,rc(m,"click",N=>{N.button===0&&c(N)})),T=as(v,rc(m,"focus",l)),C=as(v,rc(m,"focus",f)),I=as(v,rc(m,"contextmenu",N=>{N.preventDefault(),c(N)})),B=as(v,N=>{const{code:R}=N;r.triggerKeys.includes(R)&&(N.preventDefault(),c(N))});return t({triggerRef:d}),(N,R)=>(he(),nt(J($6e),{id:J(i),"virtual-ref":N.virtualRef,open:J(o),"virtual-triggering":N.virtualTriggering,class:Ce(J(n).e("trigger")),onBlur:J(C),onClick:J(S),onContextmenu:J(I),onFocus:J(T),onMouseenter:J(y),onMouseleave:J(b),onKeydown:J(B)},{default:st(()=>[yt(N.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var kSe=ir(BSe,[["__file","trigger.vue"]]);const NSe=hr({to:{type:Tt([String,Object]),required:!0},disabled:Boolean});var OSe=ir(rt({__name:"teleport",props:NSe,setup(e){return(t,r)=>t.disabled?yt(t.$slots,"default",{key:0}):(he(),nt(Qme,{key:1,to:t.to},[yt(t.$slots,"default")],8,["to"]))}}),[["__file","teleport.vue"]]);const RSe=Rn(OSe),aF=()=>{const e=PE(),t=dP(),r=be(()=>`${e.value}-popper-container-${t.prefix}`),n=be(()=>`#${r.value}`);return{id:r,selector:n}},PSe=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},FSe=()=>{const{id:e,selector:t}=aF();return G9(()=>{ln&&(fe.env.NODE_ENV==="test"||!document.body.querySelector(t.value))&&PSe(e.value)}),{id:e,selector:t}},LSe=rt({name:"ElTooltipContent",inheritAttrs:!1}),DSe=rt({...LSe,props:P3,setup(e,{expose:t}){const r=e,{selector:n}=aF(),a=Gt("tooltip"),i=Oe();let o;const{controlled:l,id:f,open:c,trigger:d,onClose:v,onOpen:m,onShow:y,onHide:b,onBeforeShow:S,onBeforeHide:T}=wt(R3,void 0),C=be(()=>r.transition||`${a.namespace.value}-fade-in-linear`),I=be(()=>fe.env.NODE_ENV==="test"?!0:r.persistent);gn(()=>{o==null||o()});const B=be(()=>J(I)?!0:J(c)),N=be(()=>r.disabled?!1:J(c)),R=be(()=>r.appendTo||n.value),P=be(()=>{var _;return(_=r.style)!=null?_:{}}),D=Oe(!0),$=()=>{b(),D.value=!0},U=()=>{if(J(l))return!0},K=as(U,()=>{r.enterable&&J(d)==="hover"&&m()}),M=as(U,()=>{J(d)==="hover"&&v()}),s=()=>{var _,w;(w=(_=i.value)==null?void 0:_.updatePopper)==null||w.call(_),S==null||S()},h=()=>{T==null||T()},p=()=>{y(),o=J3e(be(()=>{var _;return(_=i.value)==null?void 0:_.popperContentRef}),()=>{if(J(l))return;J(d)!=="hover"&&v()})},g=()=>{r.virtualTriggering||v()};return dt(()=>J(c),_=>{_?D.value=!1:o==null||o()},{flush:"post"}),dt(()=>r.content,()=>{var _,w;(w=(_=i.value)==null?void 0:_.updatePopper)==null||w.call(_)}),t({contentRef:i}),(_,w)=>(he(),nt(J(RSe),{disabled:!_.teleported,to:J(R)},{default:st(()=>[Et(mo,{name:J(C),onAfterLeave:$,onBeforeEnter:s,onAfterEnter:p,onBeforeLeave:h},{default:st(()=>[J(B)?tn((he(),nt(J(gSe),sa({key:0,id:J(f),ref_key:"contentRef",ref:i},_.$attrs,{"aria-label":_.ariaLabel,"aria-hidden":D.value,"boundaries-padding":_.boundariesPadding,"fallback-placements":_.fallbackPlacements,"gpu-acceleration":_.gpuAcceleration,offset:_.offset,placement:_.placement,"popper-options":_.popperOptions,strategy:_.strategy,effect:_.effect,enterable:_.enterable,pure:_.pure,"popper-class":_.popperClass,"popper-style":[_.popperStyle,J(P)],"reference-el":_.referenceEl,"trigger-target-el":_.triggerTargetEl,visible:J(N),"z-index":_.zIndex,onMouseenter:J(K),onMouseleave:J(M),onBlur:g,onClose:J(v)}),{default:st(()=>[yt(_.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[la,J(N)]]):Ye("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var $Se=ir(DSe,[["__file","content.vue"]]);const USe=rt({name:"ElTooltip"}),zSe=rt({...USe,props:CSe,emits:TSe,setup(e,{expose:t,emit:r}){const n=e;FSe();const a=Jh(),i=Oe(),o=Oe(),l=()=>{var C;const I=J(i);I&&((C=I.popperInstanceRef)==null||C.update())},f=Oe(!1),c=Oe(),{show:d,hide:v,hasUpdateHandler:m}=MSe({indicator:f,toggleReason:c}),{onOpen:y,onClose:b}=_Se({showAfter:ia(n,"showAfter"),hideAfter:ia(n,"hideAfter"),autoClose:ia(n,"autoClose"),open:d,close:v}),S=be(()=>Mf(n.visible)&&!m.value);sn(R3,{controlled:S,id:a,open:uv(f),trigger:ia(n,"trigger"),onOpen:C=>{y(C)},onClose:C=>{b(C)},onToggle:C=>{J(f)?b(C):y(C)},onShow:()=>{r("show",c.value)},onHide:()=>{r("hide",c.value)},onBeforeShow:()=>{r("before-show",c.value)},onBeforeHide:()=>{r("before-hide",c.value)},updatePopper:l}),dt(()=>n.disabled,C=>{C&&f.value&&(f.value=!1)});const T=C=>{var I,B;const N=(B=(I=o.value)==null?void 0:I.contentRef)==null?void 0:B.popperContentRef,R=(C==null?void 0:C.relatedTarget)||document.activeElement;return N&&N.contains(R)};return K9(()=>f.value&&v()),t({popperRef:i,contentRef:o,isFocusInsideContent:T,updatePopper:l,onOpen:y,onClose:b,hide:v}),(C,I)=>(he(),nt(J(ySe),{ref_key:"popperRef",ref:i,role:C.role},{default:st(()=>[Et(kSe,{disabled:C.disabled,trigger:C.trigger,"trigger-keys":C.triggerKeys,"virtual-ref":C.virtualRef,"virtual-triggering":C.virtualTriggering},{default:st(()=>[C.$slots.default?yt(C.$slots,"default",{key:0}):Ye("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),Et($Se,{ref_key:"contentRef",ref:o,"aria-label":C.ariaLabel,"boundaries-padding":C.boundariesPadding,content:C.content,disabled:C.disabled,effect:C.effect,enterable:C.enterable,"fallback-placements":C.fallbackPlacements,"hide-after":C.hideAfter,"gpu-acceleration":C.gpuAcceleration,offset:C.offset,persistent:C.persistent,"popper-class":C.popperClass,"popper-style":C.popperStyle,placement:C.placement,"popper-options":C.popperOptions,pure:C.pure,"raw-content":C.rawContent,"reference-el":C.referenceEl,"trigger-target-el":C.triggerTargetEl,"show-after":C.showAfter,strategy:C.strategy,teleported:C.teleported,transition:C.transition,"virtual-triggering":C.virtualTriggering,"z-index":C.zIndex,"append-to":C.appendTo},{default:st(()=>[yt(C.$slots,"content",{},()=>[C.rawContent?(he(),ke("span",{key:0,innerHTML:C.content},null,8,["innerHTML"])):(he(),ke("span",{key:1},lt(C.content),1))]),C.showArrow?(he(),nt(J(O6e),{key:0,"arrow-offset":C.arrowOffset},null,8,["arrow-offset"])):Ye("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var VSe=ir(zSe,[["__file","tooltip.vue"]]);const F3=Rn(VSe),oF=Symbol("buttonGroupContextKey"),Cm=({from:e,replacement:t,scope:r,version:n,ref:a,type:i="API"},o)=>{dt(()=>J(o),l=>{l&&Yr(r,`[${i}] ${e} is about to be deprecated in version ${n}, please use ${t} instead.
851
+ })`);const r=PE();return V3e(()=>J(e)||`${r.value}-id-${t.prefix}-${t.current++}`)},Gu=()=>{const e=wt(Wu,void 0),t=wt(Af,void 0);return{form:e,formItem:t}},pm=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:n})=>{r||(r=Oe(!1)),n||(n=Oe(!1));const a=Oe();let i;const o=be(()=>{var l;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((l=t.inputIds)==null?void 0:l.length)<=1)});return ur(()=>{i=dt([ia(e,"id"),r],([l,f])=>{const c=l??(f?void 0:Jh().value);c!==a.value&&(t!=null&&t.removeInputId&&(a.value&&t.removeInputId(a.value),!(n!=null&&n.value)&&!f&&c&&t.addInputId(c)),a.value=c)},{immediate:!0})}),xv(()=>{i&&i(),t!=null&&t.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:o,inputId:a}},pP=e=>{const t=Cr();return be(()=>{var r,n;return(n=(r=t==null?void 0:t.proxy)==null?void 0:r.$props)==null?void 0:n[e]})},el=(e,t={})=>{const r=Oe(void 0),n=t.prop?r:pP("size"),a=t.global?r:dxe(),i=t.form?{size:void 0}:wt(Wu,void 0),o=t.formItem?{size:void 0}:wt(Af,void 0);return be(()=>n.value||J(e)||(o==null?void 0:o.size)||(i==null?void 0:i.size)||a.value||"")},vm=e=>{const t=pP("disabled"),r=wt(Wu,void 0);return be(()=>t.value||J(e)||(r==null?void 0:r.disabled)||!1)};function vP(e,{beforeFocus:t,afterFocus:r,beforeBlur:n,afterBlur:a}={}){const i=Cr(),{emit:o}=i,l=Nu(),f=Oe(!1),c=m=>{vt(t)&&t(m)||f.value||(f.value=!0,o("focus",m),r==null||r())},d=m=>{var y;vt(n)&&n(m)||m.relatedTarget&&((y=l.value)!=null&&y.contains(m.relatedTarget))||(f.value=!1,o("blur",m),a==null||a())},v=()=>{var m,y;(m=l.value)!=null&&m.contains(document.activeElement)&&l.value!==document.activeElement||(y=e.value)==null||y.focus()};return dt(l,m=>{m&&m.setAttribute("tabindex","-1")}),Bi(l,"focus",c,!0),Bi(l,"blur",d,!0),Bi(l,"click",v,!0),fe.env.NODE_ENV==="test"&&ur(()=>{const m=ts(e.value)?e.value:document.querySelector("input,textarea");m&&(Bi(m,"focus",c,!0),Bi(m,"blur",d,!0))}),{isFocused:f,wrapperRef:l,handleFocus:c,handleBlur:d}}const c6e=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);function mP({afterComposition:e,emit:t}){const r=Oe(!1),n=l=>{t==null||t("compositionstart",l),r.value=!0},a=l=>{var f;t==null||t("compositionupdate",l);const c=(f=l.target)==null?void 0:f.value,d=c[c.length-1]||"";r.value=!c6e(d)},i=l=>{t==null||t("compositionend",l),r.value&&(r.value=!1,Xt(()=>e(l)))};return{isComposing:r,handleComposition:l=>{l.type==="compositionend"?i(l):a(l)},handleCompositionStart:n,handleCompositionUpdate:a,handleCompositionEnd:i}}function h6e(e){let t;function r(){if(e.value==null)return;const{selectionStart:a,selectionEnd:i,value:o}=e.value;if(a==null||i==null)return;const l=o.slice(0,Math.max(0,a)),f=o.slice(Math.max(0,i));t={selectionStart:a,selectionEnd:i,value:o,beforeTxt:l,afterTxt:f}}function n(){if(e.value==null||t==null)return;const{value:a}=e.value,{beforeTxt:i,afterTxt:o,selectionStart:l}=t;if(i==null||o==null||l==null)return;let f=a.length;if(a.endsWith(o))f=a.length-o.length;else if(a.startsWith(i))f=i.length;else{const c=i[l-1],d=a.indexOf(c,l-1);d!==-1&&(f=d+1)}e.value.setSelectionRange(f,f)}return[r,n]}const d6e=rt({name:"ElInput",inheritAttrs:!1}),p6e=rt({...d6e,props:a6e,emits:o6e,setup(e,{expose:t,emit:r}){const n=e,a=tk(),i=f6e(),o=Pu(),l=be(()=>[n.type==="textarea"?S.b():b.b(),b.m(m.value),b.is("disabled",y.value),b.is("exceed",k.value),{[b.b("group")]:o.prepend||o.append,[b.m("prefix")]:o.prefix||n.prefixIcon,[b.m("suffix")]:o.suffix||n.suffixIcon||n.clearable||n.showPassword,[b.bm("suffix","password-clear")]:A.value&&E.value,[b.b("hidden")]:n.type==="hidden"},a.class]),f=be(()=>[b.e("wrapper"),b.is("focus",$.value)]),{form:c,formItem:d}=Gu(),{inputId:v}=pm(n,{formItemContext:d}),m=el(),y=vm(),b=Gt("input"),S=Gt("textarea"),T=Nu(),C=Nu(),I=Oe(!1),B=Oe(!1),N=Oe(),R=Nu(n.inputStyle),P=be(()=>T.value||C.value),{wrapperRef:D,isFocused:$,handleFocus:U,handleBlur:K}=vP(P,{beforeFocus(){return y.value},afterBlur(){var H;n.validateEvent&&((H=d==null?void 0:d.validate)==null||H.call(d,"blur").catch(G=>Yr(G)))}}),M=be(()=>{var H;return(H=c==null?void 0:c.statusIcon)!=null?H:!1}),s=be(()=>(d==null?void 0:d.validateState)||""),h=be(()=>s.value&&uP[s.value]),p=be(()=>B.value?qxe:Fxe),g=be(()=>[a.style]),_=be(()=>[n.inputStyle,R.value,{resize:n.resize}]),w=be(()=>Sf(n.modelValue)?"":String(n.modelValue)),A=be(()=>n.clearable&&!y.value&&!n.readonly&&!!w.value&&($.value||I.value)),E=be(()=>n.showPassword&&!y.value&&!!w.value&&(!!w.value||$.value)),u=be(()=>n.showWordLimit&&!!n.maxlength&&(n.type==="text"||n.type==="textarea")&&!y.value&&!n.readonly&&!n.showPassword),x=be(()=>w.value.length),k=be(()=>!!u.value&&x.value>Number(n.maxlength)),O=be(()=>!!o.suffix||!!n.suffixIcon||A.value||n.showPassword||u.value||!!s.value&&M.value),[q,Y]=h6e(T);Oa(C,H=>{if(ie(),!u.value||n.resize!=="both")return;const G=H[0],{width:me}=G.contentRect;N.value={right:`calc(100% - ${me+15+6}px)`}});const W=()=>{const{type:H,autosize:G}=n;if(!(!ln||H!=="textarea"||!C.value))if(G){const me=At(G)?G.minRows:void 0,oe=At(G)?G.maxRows:void 0,de=cP(C.value,me,oe);R.value={overflowY:"hidden",...de},Xt(()=>{C.value.offsetHeight,R.value=de})}else R.value={minHeight:cP(C.value).minHeight}},ie=(H=>{let G=!1;return()=>{var me;if(G||!n.autosize)return;((me=C.value)==null?void 0:me.offsetParent)===null||(H(),G=!0)}})(W),ne=()=>{const H=P.value,G=n.formatter?n.formatter(w.value):w.value;!H||H.value===G||(H.value=G)},ce=async H=>{q();let{value:G}=H.target;if(n.formatter&&(G=n.parser?n.parser(G):G),!Z.value){if(G===w.value){ne();return}r(ki,G),r("input",G),await Xt(),ne(),Y()}},te=H=>{r("change",H.target.value)},{isComposing:Z,handleCompositionStart:j,handleCompositionUpdate:ae,handleCompositionEnd:se}=mP({emit:r,afterComposition:ce}),V=()=>{q(),B.value=!B.value,setTimeout(Y)},L=()=>{var H;return(H=P.value)==null?void 0:H.focus()},F=()=>{var H;return(H=P.value)==null?void 0:H.blur()},z=H=>{I.value=!1,r("mouseleave",H)},le=H=>{I.value=!0,r("mouseenter",H)},Q=H=>{r("keydown",H)},re=()=>{var H;(H=P.value)==null||H.select()},ue=()=>{r(ki,""),r("change",""),r("clear"),r("input","")};return dt(()=>n.modelValue,()=>{var H;Xt(()=>W()),n.validateEvent&&((H=d==null?void 0:d.validate)==null||H.call(d,"change").catch(G=>Yr(G)))}),dt(w,()=>ne()),dt(()=>n.type,async()=>{await Xt(),ne(),W()}),ur(()=>{!n.formatter&&n.parser&&Yr("ElInput","If you set the parser, you also need to set the formatter."),ne(),Xt(W)}),t({input:T,textarea:C,ref:P,textareaStyle:_,autosize:ia(n,"autosize"),isComposing:Z,focus:L,blur:F,select:re,clear:ue,resizeTextarea:W}),(H,G)=>(he(),ke("div",{class:Ce([J(l),{[J(b).bm("group","append")]:H.$slots.append,[J(b).bm("group","prepend")]:H.$slots.prepend}]),style:en(J(g)),onMouseenter:le,onMouseleave:z},[Ye(" input "),H.type!=="textarea"?(he(),ke(Ct,{key:0},[Ye(" prepend slot "),H.$slots.prepend?(he(),ke("div",{key:0,class:Ce(J(b).be("group","prepend"))},[yt(H.$slots,"prepend")],2)):Ye("v-if",!0),ze("div",{ref_key:"wrapperRef",ref:D,class:Ce(J(f))},[Ye(" prefix slot "),H.$slots.prefix||H.prefixIcon?(he(),ke("span",{key:0,class:Ce(J(b).e("prefix"))},[ze("span",{class:Ce(J(b).e("prefix-inner"))},[yt(H.$slots,"prefix"),H.prefixIcon?(he(),nt(J(Pn),{key:0,class:Ce(J(b).e("icon"))},{default:lt(()=>[(he(),nt(Nn(H.prefixIcon)))]),_:1},8,["class"])):Ye("v-if",!0)],2)],2)):Ye("v-if",!0),ze("input",sa({id:J(v),ref_key:"input",ref:T,class:J(b).e("inner")},J(i),{minlength:H.minlength,maxlength:H.maxlength,type:H.showPassword?B.value?"text":"password":H.type,disabled:J(y),readonly:H.readonly,autocomplete:H.autocomplete,tabindex:H.tabindex,"aria-label":H.ariaLabel,placeholder:H.placeholder,style:H.inputStyle,form:H.form,autofocus:H.autofocus,role:H.containerRole,onCompositionstart:J(j),onCompositionupdate:J(ae),onCompositionend:J(se),onInput:ce,onChange:te,onKeydown:Q}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","onCompositionstart","onCompositionupdate","onCompositionend"]),Ye(" suffix slot "),J(O)?(he(),ke("span",{key:1,class:Ce(J(b).e("suffix"))},[ze("span",{class:Ce(J(b).e("suffix-inner"))},[!J(A)||!J(E)||!J(u)?(he(),ke(Ct,{key:0},[yt(H.$slots,"suffix"),H.suffixIcon?(he(),nt(J(Pn),{key:0,class:Ce(J(b).e("icon"))},{default:lt(()=>[(he(),nt(Nn(H.suffixIcon)))]),_:1},8,["class"])):Ye("v-if",!0)],64)):Ye("v-if",!0),J(A)?(he(),nt(J(Pn),{key:1,class:Ce([J(b).e("icon"),J(b).e("clear")]),onMousedown:rn(J(Qr),["prevent"]),onClick:ue},{default:lt(()=>[Et(J(p3))]),_:1},8,["class","onMousedown"])):Ye("v-if",!0),J(E)?(he(),nt(J(Pn),{key:2,class:Ce([J(b).e("icon"),J(b).e("password")]),onClick:V},{default:lt(()=>[(he(),nt(Nn(J(p))))]),_:1},8,["class"])):Ye("v-if",!0),J(u)?(he(),ke("span",{key:3,class:Ce(J(b).e("count"))},[ze("span",{class:Ce(J(b).e("count-inner"))},st(J(x))+" / "+st(H.maxlength),3)],2)):Ye("v-if",!0),J(s)&&J(h)&&J(M)?(he(),nt(J(Pn),{key:4,class:Ce([J(b).e("icon"),J(b).e("validateIcon"),J(b).is("loading",J(s)==="validating")])},{default:lt(()=>[(he(),nt(Nn(J(h))))]),_:1},8,["class"])):Ye("v-if",!0)],2)],2)):Ye("v-if",!0)],2),Ye(" append slot "),H.$slots.append?(he(),ke("div",{key:1,class:Ce(J(b).be("group","append"))},[yt(H.$slots,"append")],2)):Ye("v-if",!0)],64)):(he(),ke(Ct,{key:1},[Ye(" textarea "),ze("textarea",sa({id:J(v),ref_key:"textarea",ref:C,class:[J(S).e("inner"),J(b).is("focus",J($))]},J(i),{minlength:H.minlength,maxlength:H.maxlength,tabindex:H.tabindex,disabled:J(y),readonly:H.readonly,autocomplete:H.autocomplete,style:J(_),"aria-label":H.ariaLabel,placeholder:H.placeholder,form:H.form,autofocus:H.autofocus,rows:H.rows,role:H.containerRole,onCompositionstart:J(j),onCompositionupdate:J(ae),onCompositionend:J(se),onInput:ce,onFocus:J(U),onBlur:J(K),onChange:te,onKeydown:Q}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),J(u)?(he(),ke("span",{key:0,style:en(N.value),class:Ce(J(b).e("count"))},st(J(x))+" / "+st(H.maxlength),7)):Ye("v-if",!0)],64))],38))}});var v6e=ir(p6e,[["__file","input.vue"]]);const m3=Rn(v6e),Zu=4,m6e={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},g6e=({move:e,size:t,bar:r})=>({[r.size]:t,transform:`translate${r.axis}(${e}%)`}),g3=Symbol("scrollbarContextKey"),y6e=hr({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),b6e="Thumb";var gP=ir(rt({__name:"thumb",props:y6e,setup(e){const t=e,r=wt(g3),n=Gt("scrollbar");r||Hu(b6e,"can not inject scrollbar context");const a=Oe(),i=Oe(),o=Oe({}),l=Oe(!1);let f=!1,c=!1,d=ln?document.onselectstart:null;const v=be(()=>m6e[t.vertical?"vertical":"horizontal"]),m=be(()=>g6e({size:t.size,move:t.move,bar:v.value})),y=be(()=>a.value[v.value.offset]**2/r.wrapElement[v.value.scrollSize]/t.ratio/i.value[v.value.offset]),b=P=>{var D;if(P.stopPropagation(),P.ctrlKey||[1,2].includes(P.button))return;(D=window.getSelection())==null||D.removeAllRanges(),T(P);const $=P.currentTarget;$&&(o.value[v.value.axis]=$[v.value.offset]-(P[v.value.client]-$.getBoundingClientRect()[v.value.direction]))},S=P=>{if(!i.value||!a.value||!r.wrapElement)return;const D=Math.abs(P.target.getBoundingClientRect()[v.value.direction]-P[v.value.client]),$=i.value[v.value.offset]/2,U=(D-$)*100*y.value/a.value[v.value.offset];r.wrapElement[v.value.scroll]=U*r.wrapElement[v.value.scrollSize]/100},T=P=>{P.stopImmediatePropagation(),f=!0,document.addEventListener("mousemove",C),document.addEventListener("mouseup",I),d=document.onselectstart,document.onselectstart=()=>!1},C=P=>{if(!a.value||!i.value||f===!1)return;const D=o.value[v.value.axis];if(!D)return;const $=(a.value.getBoundingClientRect()[v.value.direction]-P[v.value.client])*-1,U=i.value[v.value.offset]-D,K=($-U)*100*y.value/a.value[v.value.offset];r.wrapElement[v.value.scroll]=K*r.wrapElement[v.value.scrollSize]/100},I=()=>{f=!1,o.value[v.value.axis]=0,document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",I),R(),c&&(l.value=!1)},B=()=>{c=!1,l.value=!!t.size},N=()=>{c=!0,l.value=f};gn(()=>{R(),document.removeEventListener("mouseup",I)});const R=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return Bi(ia(r,"scrollbarElement"),"mousemove",B),Bi(ia(r,"scrollbarElement"),"mouseleave",N),(P,D)=>(he(),nt(mo,{name:J(n).b("fade"),persisted:""},{default:lt(()=>[tn(ze("div",{ref_key:"instance",ref:a,class:Ce([J(n).e("bar"),J(n).is(J(v).key)]),onMousedown:S},[ze("div",{ref_key:"thumb",ref:i,class:Ce(J(n).e("thumb")),style:en(J(m)),onMousedown:b},null,38)],34),[[la,P.always||l.value]])]),_:1},8,["name"]))}}),[["__file","thumb.vue"]]);const _6e=hr({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}});var w6e=ir(rt({__name:"bar",props:_6e,setup(e,{expose:t}){const r=e,n=wt(g3),a=Oe(0),i=Oe(0),o=Oe(""),l=Oe(""),f=Oe(1),c=Oe(1);return t({handleScroll:m=>{if(m){const y=m.offsetHeight-Zu,b=m.offsetWidth-Zu;i.value=m.scrollTop*100/y*f.value,a.value=m.scrollLeft*100/b*c.value}},update:()=>{const m=n==null?void 0:n.wrapElement;if(!m)return;const y=m.offsetHeight-Zu,b=m.offsetWidth-Zu,S=y**2/m.scrollHeight,T=b**2/m.scrollWidth,C=Math.max(S,r.minSize),I=Math.max(T,r.minSize);f.value=S/(y-S)/(C/(y-C)),c.value=T/(b-T)/(I/(b-I)),l.value=C+Zu<y?`${C}px`:"",o.value=I+Zu<b?`${I}px`:""}}),(m,y)=>(he(),ke(Ct,null,[Et(gP,{move:a.value,ratio:c.value,size:o.value,always:m.always},null,8,["move","ratio","size","always"]),Et(gP,{move:i.value,ratio:f.value,size:l.value,vertical:"",always:m.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]);const E6e=hr({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Tt([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...Tf(["ariaLabel","ariaOrientation"])}),x6e={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Wn)},y3="ElScrollbar",S6e=rt({name:y3}),M6e=rt({...S6e,props:E6e,emits:x6e,setup(e,{expose:t,emit:r}){const n=e,a=Gt("scrollbar");let i,o,l=0,f=0;const c=Oe(),d=Oe(),v=Oe(),m=Oe(),y=be(()=>{const R={};return n.height&&(R.height=Zh(n.height)),n.maxHeight&&(R.maxHeight=Zh(n.maxHeight)),[n.wrapStyle,R]}),b=be(()=>[n.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!n.native}]),S=be(()=>[a.e("view"),n.viewClass]),T=()=>{var R;d.value&&((R=m.value)==null||R.handleScroll(d.value),l=d.value.scrollTop,f=d.value.scrollLeft,r("scroll",{scrollTop:d.value.scrollTop,scrollLeft:d.value.scrollLeft}))};function C(R,P){At(R)?d.value.scrollTo(R):Wn(R)&&Wn(P)&&d.value.scrollTo(R,P)}const I=R=>{if(!Wn(R)){Yr(y3,"value must be a number");return}d.value.scrollTop=R},B=R=>{if(!Wn(R)){Yr(y3,"value must be a number");return}d.value.scrollLeft=R},N=()=>{var R;(R=m.value)==null||R.update()};return dt(()=>n.noresize,R=>{R?(i==null||i(),o==null||o()):({stop:i}=Oa(v,N),o=Bi("resize",N))},{immediate:!0}),dt(()=>[n.maxHeight,n.height],()=>{n.native||Xt(()=>{var R;N(),d.value&&((R=m.value)==null||R.handleScroll(d.value))})}),sn(g3,vn({scrollbarElement:c,wrapElement:d})),j9(()=>{d.value&&(d.value.scrollTop=l,d.value.scrollLeft=f)}),ur(()=>{n.native||Xt(()=>{N()})}),xh(()=>N()),t({wrapRef:d,update:N,scrollTo:C,setScrollTop:I,setScrollLeft:B,handleScroll:T}),(R,P)=>(he(),ke("div",{ref_key:"scrollbarRef",ref:c,class:Ce(J(a).b())},[ze("div",{ref_key:"wrapRef",ref:d,class:Ce(J(b)),style:en(J(y)),tabindex:R.tabindex,onScroll:T},[(he(),nt(Nn(R.tag),{id:R.id,ref_key:"resizeRef",ref:v,class:Ce(J(S)),style:en(R.viewStyle),role:R.role,"aria-label":R.ariaLabel,"aria-orientation":R.ariaOrientation},{default:lt(()=>[yt(R.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),R.native?Ye("v-if",!0):(he(),nt(w6e,{key:0,ref_key:"barRef",ref:m,always:R.always,"min-size":R.minSize},null,8,["always","min-size"]))],2))}});var C6e=ir(M6e,[["__file","scrollbar.vue"]]);const T6e=Rn(C6e),b3=Symbol("popper"),yP=Symbol("popperContent"),bP=hr({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),A6e=rt({name:"ElPopper",inheritAttrs:!1}),I6e=rt({...A6e,props:bP,setup(e,{expose:t}){const r=e,n=Oe(),a=Oe(),i=Oe(),o=Oe(),l=be(()=>r.role),f={triggerRef:n,popperInstanceRef:a,contentRef:i,referenceRef:o,role:l};return t(f),sn(b3,f),(c,d)=>yt(c.$slots,"default")}});var B6e=ir(I6e,[["__file","popper.vue"]]);const _P=hr({arrowOffset:{type:Number,default:5}}),k6e=rt({name:"ElPopperArrow",inheritAttrs:!1}),N6e=rt({...k6e,props:_P,setup(e,{expose:t}){const r=e,n=Gt("popper"),{arrowOffset:a,arrowRef:i,arrowStyle:o}=wt(yP,void 0);return dt(()=>r.arrowOffset,l=>{a.value=l}),gn(()=>{i.value=void 0}),t({arrowRef:i}),(l,f)=>(he(),ke("span",{ref_key:"arrowRef",ref:i,class:Ce(J(n).e("arrow")),style:en(J(o)),"data-popper-arrow":""},null,6))}});var O6e=ir(N6e,[["__file","arrow.vue"]]);const wP=hr({virtualRef:{type:Tt(Object)},virtualTriggering:Boolean,onMouseenter:{type:Tt(Function)},onMouseleave:{type:Tt(Function)},onClick:{type:Tt(Function)},onKeydown:{type:Tt(Function)},onFocus:{type:Tt(Function)},onBlur:{type:Tt(Function)},onContextmenu:{type:Tt(Function)},id:String,open:Boolean}),EP=Symbol("elForwardRef"),R6e=e=>{sn(EP,{setForwardRef:r=>{e.value=r}})},P6e=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),xP=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},mm=function(e,t,...r){let n;t.includes("mouse")||t.includes("click")?n="MouseEvents":t.includes("key")?n="KeyboardEvent":n="HTMLEvents";const a=document.createEvent(n);return a.initEvent(t,...r),e.dispatchEvent(a),e},_3="ElOnlyChild",F6e=rt({name:_3,setup(e,{slots:t,attrs:r}){var n;const a=wt(EP),i=P6e((n=a==null?void 0:a.setForwardRef)!=null?n:Qr);return()=>{var o;const l=(o=t.default)==null?void 0:o.call(t,r);if(!l)return null;if(l.length>1)return Yr(_3,"requires exact only one valid child."),null;const f=SP(l);return f?tn(Ca(f,r),[[i]]):(Yr(_3,"no valid child node found"),null)}}});function SP(e){if(!e)return null;const t=e;for(const r of t){if(At(r))switch(r.type){case yn:continue;case Ks:case"svg":return MP(r);case Ct:return SP(r.children);default:return r}return MP(r)}return null}function MP(e){const t=Gt("only-child");return Et("span",{class:t.e("content")},[e])}const L6e=rt({name:"ElPopperTrigger",inheritAttrs:!1}),D6e=rt({...L6e,props:wP,setup(e,{expose:t}){const r=e,{role:n,triggerRef:a}=wt(b3,void 0);R6e(a);const i=be(()=>l.value?r.id:void 0),o=be(()=>{if(n&&n.value==="tooltip")return r.open&&r.id?r.id:void 0}),l=be(()=>{if(n&&n.value!=="tooltip")return n.value}),f=be(()=>l.value?`${r.open}`:void 0);let c;const d=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return ur(()=>{dt(()=>r.virtualRef,v=>{v&&(a.value=rs(v))},{immediate:!0}),dt(a,(v,m)=>{c==null||c(),c=void 0,ts(v)&&(d.forEach(y=>{var b;const S=r[y];S&&(v.addEventListener(y.slice(2).toLowerCase(),S),(b=m==null?void 0:m.removeEventListener)==null||b.call(m,y.slice(2).toLowerCase(),S))}),xP(v)&&(c=dt([i,o,l,f],y=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((b,S)=>{Sf(y[S])?v.removeAttribute(b):v.setAttribute(b,y[S])})},{immediate:!0}))),ts(m)&&xP(m)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(y=>m.removeAttribute(y))},{immediate:!0})}),gn(()=>{if(c==null||c(),c=void 0,a.value&&ts(a.value)){const v=a.value;d.forEach(m=>{const y=r[m];y&&v.removeEventListener(m.slice(2).toLowerCase(),y)}),a.value=void 0}}),t({triggerRef:a}),(v,m)=>v.virtualTriggering?Ye("v-if",!0):(he(),nt(J(F6e),sa({key:0},v.$attrs,{"aria-controls":J(i),"aria-describedby":J(o),"aria-expanded":J(f),"aria-haspopup":J(l)}),{default:lt(()=>[yt(v.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var $6e=ir(D6e,[["__file","trigger.vue"]]);const w3="focus-trap.focus-after-trapped",E3="focus-trap.focus-after-released",U6e="focus-trap.focusout-prevented",CP={cancelable:!0,bubbles:!1},z6e={cancelable:!0,bubbles:!1},TP="focusAfterTrapped",AP="focusAfterReleased",V6e=Symbol("elFocusTrap"),x3=Oe(),gm=Oe(0),S3=Oe(0);let ym=0;const IP=e=>{const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t},BP=(e,t)=>{for(const r of e)if(!q6e(r,t))return r},q6e=(e,t)=>{if(fe.env.NODE_ENV==="test")return!1;if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},H6e=e=>{const t=IP(e),r=BP(t,e),n=BP(t.reverse(),e);return[r,n]},j6e=e=>e instanceof HTMLInputElement&&"select"in e,tl=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),S3.value=window.performance.now(),e!==r&&j6e(e)&&t&&e.select()}};function kP(e,t){const r=[...e],n=e.indexOf(t);return n!==-1&&r.splice(n,1),r}const K6e=()=>{let e=[];return{push:n=>{const a=e[0];a&&n!==a&&a.pause(),e=kP(e,n),e.unshift(n)},remove:n=>{var a,i;e=kP(e,n),(i=(a=e[0])==null?void 0:a.resume)==null||i.call(a)}}},W6e=(e,t=!1)=>{const r=document.activeElement;for(const n of e)if(tl(n,t),document.activeElement!==r)return},NP=K6e(),G6e=()=>gm.value>S3.value,bm=()=>{x3.value="pointer",gm.value=window.performance.now()},OP=()=>{x3.value="keyboard",gm.value=window.performance.now()},Z6e=()=>(ur(()=>{ym===0&&(document.addEventListener("mousedown",bm),document.addEventListener("touchstart",bm),document.addEventListener("keydown",OP)),ym++}),gn(()=>{ym--,ym<=0&&(document.removeEventListener("mousedown",bm),document.removeEventListener("touchstart",bm),document.removeEventListener("keydown",OP))}),{focusReason:x3,lastUserFocusTimestamp:gm,lastAutomatedFocusTimestamp:S3}),_m=e=>new CustomEvent(U6e,{...z6e,detail:e}),fn={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"};let Ju=[];const RP=e=>{e.code===fn.esc&&Ju.forEach(t=>t(e))},J6e=e=>{ur(()=>{Ju.length===0&&document.addEventListener("keydown",RP),ln&&Ju.push(e)}),gn(()=>{Ju=Ju.filter(t=>t!==e),Ju.length===0&&ln&&document.removeEventListener("keydown",RP)})},Y6e=rt({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[TP,AP,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const r=Oe();let n,a;const{focusReason:i}=Z6e();J6e(b=>{e.trapped&&!o.paused&&t("release-requested",b)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=b=>{if(!e.loop&&!e.trapped||o.paused)return;const{code:S,altKey:T,ctrlKey:C,metaKey:I,currentTarget:B,shiftKey:N}=b,{loop:R}=e,P=S===fn.tab&&!T&&!C&&!I,D=document.activeElement;if(P&&D){const $=B,[U,K]=H6e($);if(U&&K){if(!N&&D===K){const s=_m({focusReason:i.value});t("focusout-prevented",s),s.defaultPrevented||(b.preventDefault(),R&&tl(U,!0))}else if(N&&[U,$].includes(D)){const s=_m({focusReason:i.value});t("focusout-prevented",s),s.defaultPrevented||(b.preventDefault(),R&&tl(K,!0))}}else if(D===$){const s=_m({focusReason:i.value});t("focusout-prevented",s),s.defaultPrevented||b.preventDefault()}}};sn(V6e,{focusTrapRef:r,onKeydown:l}),dt(()=>e.focusTrapEl,b=>{b&&(r.value=b)},{immediate:!0}),dt([r],([b],[S])=>{b&&(b.addEventListener("keydown",l),b.addEventListener("focusin",d),b.addEventListener("focusout",v)),S&&(S.removeEventListener("keydown",l),S.removeEventListener("focusin",d),S.removeEventListener("focusout",v))});const f=b=>{t(TP,b)},c=b=>t(AP,b),d=b=>{const S=J(r);if(!S)return;const T=b.target,C=b.relatedTarget,I=T&&S.contains(T);e.trapped||C&&S.contains(C)||(n=C),I&&t("focusin",b),!o.paused&&e.trapped&&(I?a=T:tl(a,!0))},v=b=>{const S=J(r);if(!(o.paused||!S))if(e.trapped){const T=b.relatedTarget;!Sf(T)&&!S.contains(T)&&setTimeout(()=>{if(!o.paused&&e.trapped){const C=_m({focusReason:i.value});t("focusout-prevented",C),C.defaultPrevented||tl(a,!0)}},0)}else{const T=b.target;T&&S.contains(T)||t("focusout",b)}};async function m(){await Xt();const b=J(r);if(b){NP.push(o);const S=b.contains(document.activeElement)?n:document.activeElement;if(n=S,!b.contains(S)){const C=new Event(w3,CP);b.addEventListener(w3,f),b.dispatchEvent(C),C.defaultPrevented||Xt(()=>{let I=e.focusStartEl;It(I)||(tl(I),document.activeElement!==I&&(I="first")),I==="first"&&W6e(IP(b),!0),(document.activeElement===S||I==="container")&&tl(b)})}}}function y(){const b=J(r);if(b){b.removeEventListener(w3,f);const S=new CustomEvent(E3,{...CP,detail:{focusReason:i.value}});b.addEventListener(E3,c),b.dispatchEvent(S),!S.defaultPrevented&&(i.value=="keyboard"||!G6e()||b.contains(document.activeElement))&&tl(n??document.body),b.removeEventListener(E3,c),NP.remove(o)}}return ur(()=>{e.trapped&&m(),dt(()=>e.trapped,b=>{b?m():y()})}),gn(()=>{e.trapped&&y(),r.value&&(r.value.removeEventListener("keydown",l),r.value.removeEventListener("focusin",d),r.value.removeEventListener("focusout",v),r.value=void 0)}),{onKeydown:l}}});function X6e(e,t,r,n,a,i){return yt(e.$slots,"default",{handleKeydown:e.onKeydown})}var Q6e=ir(Y6e,[["render",X6e],["__file","focus-trap.vue"]]),bi="top",ca="bottom",ha="right",_i="left",M3="auto",Yh=[bi,ca,ha,_i],Yu="start",Xh="end",e4e="clippingParents",PP="viewport",Qh="popper",t4e="reference",FP=Yh.reduce(function(e,t){return e.concat([t+"-"+Yu,t+"-"+Xh])},[]),wm=[].concat(Yh,[M3]).reduce(function(e,t){return e.concat([t,t+"-"+Yu,t+"-"+Xh])},[]),r4e="beforeRead",n4e="read",i4e="afterRead",a4e="beforeMain",o4e="main",s4e="afterMain",l4e="beforeWrite",f4e="write",u4e="afterWrite",c4e=[r4e,n4e,i4e,a4e,o4e,s4e,l4e,f4e,u4e];function wo(e){return e?(e.nodeName||"").toLowerCase():null}function Pa(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xu(e){var t=Pa(e).Element;return e instanceof t||e instanceof Element}function da(e){var t=Pa(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function C3(e){if(typeof ShadowRoot>"u")return!1;var t=Pa(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function h4e(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},i=t.elements[r];!da(i)||!wo(i)||(Object.assign(i.style,n),Object.keys(a).forEach(function(o){var l=a[o];l===!1?i.removeAttribute(o):i.setAttribute(o,l===!0?"":l)}))})}function d4e(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],i=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=o.reduce(function(f,c){return f[c]="",f},{});!da(a)||!wo(a)||(Object.assign(a.style,l),Object.keys(i).forEach(function(f){a.removeAttribute(f)}))})}}var LP={name:"applyStyles",enabled:!0,phase:"write",fn:h4e,effect:d4e,requires:["computeStyles"]};function Eo(e){return e.split("-")[0]}var If=Math.max,Em=Math.min,Qu=Math.round;function ec(e,t){t===void 0&&(t=!1);var r=e.getBoundingClientRect(),n=1,a=1;if(da(e)&&t){var i=e.offsetHeight,o=e.offsetWidth;o>0&&(n=Qu(r.width)/o||1),i>0&&(a=Qu(r.height)/i||1)}return{width:r.width/n,height:r.height/a,top:r.top/a,right:r.right/n,bottom:r.bottom/a,left:r.left/n,x:r.left/n,y:r.top/a}}function T3(e){var t=ec(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function DP(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&C3(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function is(e){return Pa(e).getComputedStyle(e)}function p4e(e){return["table","td","th"].indexOf(wo(e))>=0}function rl(e){return((Xu(e)?e.ownerDocument:e.document)||window.document).documentElement}function xm(e){return wo(e)==="html"?e:e.assignedSlot||e.parentNode||(C3(e)?e.host:null)||rl(e)}function $P(e){return!da(e)||is(e).position==="fixed"?null:e.offsetParent}function v4e(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&da(e)){var n=is(e);if(n.position==="fixed")return null}var a=xm(e);for(C3(a)&&(a=a.host);da(a)&&["html","body"].indexOf(wo(a))<0;){var i=is(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function ed(e){for(var t=Pa(e),r=$P(e);r&&p4e(r)&&is(r).position==="static";)r=$P(r);return r&&(wo(r)==="html"||wo(r)==="body"&&is(r).position==="static")?t:r||v4e(e)||t}function A3(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function td(e,t,r){return If(e,Em(t,r))}function m4e(e,t,r){var n=td(e,t,r);return n>r?r:n}function UP(){return{top:0,right:0,bottom:0,left:0}}function zP(e){return Object.assign({},UP(),e)}function VP(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var g4e=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,zP(typeof e!="number"?e:VP(e,Yh))};function y4e(e){var t,r=e.state,n=e.name,a=e.options,i=r.elements.arrow,o=r.modifiersData.popperOffsets,l=Eo(r.placement),f=A3(l),c=[_i,ha].indexOf(l)>=0,d=c?"height":"width";if(!(!i||!o)){var v=g4e(a.padding,r),m=T3(i),y=f==="y"?bi:_i,b=f==="y"?ca:ha,S=r.rects.reference[d]+r.rects.reference[f]-o[f]-r.rects.popper[d],T=o[f]-r.rects.reference[f],C=ed(i),I=C?f==="y"?C.clientHeight||0:C.clientWidth||0:0,B=S/2-T/2,N=v[y],R=I-m[d]-v[b],P=I/2-m[d]/2+B,D=td(N,P,R),$=f;r.modifiersData[n]=(t={},t[$]=D,t.centerOffset=D-P,t)}}function b4e(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!DP(t.elements.popper,a)||(t.elements.arrow=a))}var _4e={name:"arrow",enabled:!0,phase:"main",fn:y4e,effect:b4e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function tc(e){return e.split("-")[1]}var w4e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function E4e(e){var t=e.x,r=e.y,n=window,a=n.devicePixelRatio||1;return{x:Qu(t*a)/a||0,y:Qu(r*a)/a||0}}function qP(e){var t,r=e.popper,n=e.popperRect,a=e.placement,i=e.variation,o=e.offsets,l=e.position,f=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,v=e.isFixed,m=o.x,y=m===void 0?0:m,b=o.y,S=b===void 0?0:b,T=typeof d=="function"?d({x:y,y:S}):{x:y,y:S};y=T.x,S=T.y;var C=o.hasOwnProperty("x"),I=o.hasOwnProperty("y"),B=_i,N=bi,R=window;if(c){var P=ed(r),D="clientHeight",$="clientWidth";if(P===Pa(r)&&(P=rl(r),is(P).position!=="static"&&l==="absolute"&&(D="scrollHeight",$="scrollWidth")),P=P,a===bi||(a===_i||a===ha)&&i===Xh){N=ca;var U=v&&P===R&&R.visualViewport?R.visualViewport.height:P[D];S-=U-n.height,S*=f?1:-1}if(a===_i||(a===bi||a===ca)&&i===Xh){B=ha;var K=v&&P===R&&R.visualViewport?R.visualViewport.width:P[$];y-=K-n.width,y*=f?1:-1}}var M=Object.assign({position:l},c&&w4e),s=d===!0?E4e({x:y,y:S}):{x:y,y:S};if(y=s.x,S=s.y,f){var h;return Object.assign({},M,(h={},h[N]=I?"0":"",h[B]=C?"0":"",h.transform=(R.devicePixelRatio||1)<=1?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",h))}return Object.assign({},M,(t={},t[N]=I?S+"px":"",t[B]=C?y+"px":"",t.transform="",t))}function x4e(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,i=r.adaptive,o=i===void 0?!0:i,l=r.roundOffsets,f=l===void 0?!0:l,c={placement:Eo(t.placement),variation:tc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,qP(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,qP(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var HP={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:x4e,data:{}},Sm={passive:!0};function S4e(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,i=a===void 0?!0:a,o=n.resize,l=o===void 0?!0:o,f=Pa(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",r.update,Sm)}),l&&f.addEventListener("resize",r.update,Sm),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",r.update,Sm)}),l&&f.removeEventListener("resize",r.update,Sm)}}var jP={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:S4e,data:{}},M4e={left:"right",right:"left",bottom:"top",top:"bottom"};function Mm(e){return e.replace(/left|right|bottom|top/g,function(t){return M4e[t]})}var C4e={start:"end",end:"start"};function KP(e){return e.replace(/start|end/g,function(t){return C4e[t]})}function I3(e){var t=Pa(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function B3(e){return ec(rl(e)).left+I3(e).scrollLeft}function T4e(e){var t=Pa(e),r=rl(e),n=t.visualViewport,a=r.clientWidth,i=r.clientHeight,o=0,l=0;return n&&(a=n.width,i=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=n.offsetLeft,l=n.offsetTop)),{width:a,height:i,x:o+B3(e),y:l}}function A4e(e){var t,r=rl(e),n=I3(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=If(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=If(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-n.scrollLeft+B3(e),f=-n.scrollTop;return is(a||r).direction==="rtl"&&(l+=If(r.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:l,y:f}}function k3(e){var t=is(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function WP(e){return["html","body","#document"].indexOf(wo(e))>=0?e.ownerDocument.body:da(e)&&k3(e)?e:WP(xm(e))}function rd(e,t){var r;t===void 0&&(t=[]);var n=WP(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),i=Pa(n),o=a?[i].concat(i.visualViewport||[],k3(n)?n:[]):n,l=t.concat(o);return a?l:l.concat(rd(xm(o)))}function N3(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function I4e(e){var t=ec(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function GP(e,t){return t===PP?N3(T4e(e)):Xu(t)?I4e(t):N3(A4e(rl(e)))}function B4e(e){var t=rd(xm(e)),r=["absolute","fixed"].indexOf(is(e).position)>=0,n=r&&da(e)?ed(e):e;return Xu(n)?t.filter(function(a){return Xu(a)&&DP(a,n)&&wo(a)!=="body"}):[]}function k4e(e,t,r){var n=t==="clippingParents"?B4e(e):[].concat(t),a=[].concat(n,[r]),i=a[0],o=a.reduce(function(l,f){var c=GP(e,f);return l.top=If(c.top,l.top),l.right=Em(c.right,l.right),l.bottom=Em(c.bottom,l.bottom),l.left=If(c.left,l.left),l},GP(e,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function ZP(e){var t=e.reference,r=e.element,n=e.placement,a=n?Eo(n):null,i=n?tc(n):null,o=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,f;switch(a){case bi:f={x:o,y:t.y-r.height};break;case ca:f={x:o,y:t.y+t.height};break;case ha:f={x:t.x+t.width,y:l};break;case _i:f={x:t.x-r.width,y:l};break;default:f={x:t.x,y:t.y}}var c=a?A3(a):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case Yu:f[c]=f[c]-(t[d]/2-r[d]/2);break;case Xh:f[c]=f[c]+(t[d]/2-r[d]/2);break}}return f}function nd(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,i=r.boundary,o=i===void 0?e4e:i,l=r.rootBoundary,f=l===void 0?PP:l,c=r.elementContext,d=c===void 0?Qh:c,v=r.altBoundary,m=v===void 0?!1:v,y=r.padding,b=y===void 0?0:y,S=zP(typeof b!="number"?b:VP(b,Yh)),T=d===Qh?t4e:Qh,C=e.rects.popper,I=e.elements[m?T:d],B=k4e(Xu(I)?I:I.contextElement||rl(e.elements.popper),o,f),N=ec(e.elements.reference),R=ZP({reference:N,element:C,strategy:"absolute",placement:a}),P=N3(Object.assign({},C,R)),D=d===Qh?P:N,$={top:B.top-D.top+S.top,bottom:D.bottom-B.bottom+S.bottom,left:B.left-D.left+S.left,right:D.right-B.right+S.right},U=e.modifiersData.offset;if(d===Qh&&U){var K=U[a];Object.keys($).forEach(function(M){var s=[ha,ca].indexOf(M)>=0?1:-1,h=[bi,ca].indexOf(M)>=0?"y":"x";$[M]+=K[h]*s})}return $}function N4e(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,i=r.rootBoundary,o=r.padding,l=r.flipVariations,f=r.allowedAutoPlacements,c=f===void 0?wm:f,d=tc(n),v=d?l?FP:FP.filter(function(b){return tc(b)===d}):Yh,m=v.filter(function(b){return c.indexOf(b)>=0});m.length===0&&(m=v);var y=m.reduce(function(b,S){return b[S]=nd(e,{placement:S,boundary:a,rootBoundary:i,padding:o})[Eo(S)],b},{});return Object.keys(y).sort(function(b,S){return y[b]-y[S]})}function O4e(e){if(Eo(e)===M3)return[];var t=Mm(e);return[KP(e),t,KP(t)]}function R4e(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,i=a===void 0?!0:a,o=r.altAxis,l=o===void 0?!0:o,f=r.fallbackPlacements,c=r.padding,d=r.boundary,v=r.rootBoundary,m=r.altBoundary,y=r.flipVariations,b=y===void 0?!0:y,S=r.allowedAutoPlacements,T=t.options.placement,C=Eo(T),I=C===T,B=f||(I||!b?[Mm(T)]:O4e(T)),N=[T].concat(B).reduce(function(q,Y){return q.concat(Eo(Y)===M3?N4e(t,{placement:Y,boundary:d,rootBoundary:v,padding:c,flipVariations:b,allowedAutoPlacements:S}):Y)},[]),R=t.rects.reference,P=t.rects.popper,D=new Map,$=!0,U=N[0],K=0;K<N.length;K++){var M=N[K],s=Eo(M),h=tc(M)===Yu,p=[bi,ca].indexOf(s)>=0,g=p?"width":"height",_=nd(t,{placement:M,boundary:d,rootBoundary:v,altBoundary:m,padding:c}),w=p?h?ha:_i:h?ca:bi;R[g]>P[g]&&(w=Mm(w));var A=Mm(w),E=[];if(i&&E.push(_[s]<=0),l&&E.push(_[w]<=0,_[A]<=0),E.every(function(q){return q})){U=M,$=!1;break}D.set(M,E)}if($)for(var u=b?3:1,x=function(q){var Y=N.find(function(W){var X=D.get(W);if(X)return X.slice(0,q).every(function(ie){return ie})});if(Y)return U=Y,"break"},k=u;k>0;k--){var O=x(k);if(O==="break")break}t.placement!==U&&(t.modifiersData[n]._skip=!0,t.placement=U,t.reset=!0)}}var P4e={name:"flip",enabled:!0,phase:"main",fn:R4e,requiresIfExists:["offset"],data:{_skip:!1}};function JP(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function YP(e){return[bi,ha,ca,_i].some(function(t){return e[t]>=0})}function F4e(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=nd(t,{elementContext:"reference"}),l=nd(t,{altBoundary:!0}),f=JP(o,n),c=JP(l,a,i),d=YP(f),v=YP(c);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":v})}var L4e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:F4e};function D4e(e,t,r){var n=Eo(e),a=[_i,bi].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=i[0],l=i[1];return o=o||0,l=(l||0)*a,[_i,ha].indexOf(n)>=0?{x:l,y:o}:{x:o,y:l}}function $4e(e){var t=e.state,r=e.options,n=e.name,a=r.offset,i=a===void 0?[0,0]:a,o=wm.reduce(function(d,v){return d[v]=D4e(v,t.rects,i),d},{}),l=o[t.placement],f=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=o}var U4e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$4e};function z4e(e){var t=e.state,r=e.name;t.modifiersData[r]=ZP({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var XP={name:"popperOffsets",enabled:!0,phase:"read",fn:z4e,data:{}};function V4e(e){return e==="x"?"y":"x"}function q4e(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,i=a===void 0?!0:a,o=r.altAxis,l=o===void 0?!1:o,f=r.boundary,c=r.rootBoundary,d=r.altBoundary,v=r.padding,m=r.tether,y=m===void 0?!0:m,b=r.tetherOffset,S=b===void 0?0:b,T=nd(t,{boundary:f,rootBoundary:c,padding:v,altBoundary:d}),C=Eo(t.placement),I=tc(t.placement),B=!I,N=A3(C),R=V4e(N),P=t.modifiersData.popperOffsets,D=t.rects.reference,$=t.rects.popper,U=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,K=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,s={x:0,y:0};if(P){if(i){var h,p=N==="y"?bi:_i,g=N==="y"?ca:ha,_=N==="y"?"height":"width",w=P[N],A=w+T[p],E=w-T[g],u=y?-$[_]/2:0,x=I===Yu?D[_]:$[_],k=I===Yu?-$[_]:-D[_],O=t.elements.arrow,q=y&&O?T3(O):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:UP(),W=Y[p],X=Y[g],ie=td(0,D[_],q[_]),ne=B?D[_]/2-u-ie-W-K.mainAxis:x-ie-W-K.mainAxis,ce=B?-D[_]/2+u+ie+X+K.mainAxis:k+ie+X+K.mainAxis,te=t.elements.arrow&&ed(t.elements.arrow),Z=te?N==="y"?te.clientTop||0:te.clientLeft||0:0,j=(h=M==null?void 0:M[N])!=null?h:0,ae=w+ne-j-Z,se=w+ce-j,V=td(y?Em(A,ae):A,w,y?If(E,se):E);P[N]=V,s[N]=V-w}if(l){var L,F=N==="x"?bi:_i,z=N==="x"?ca:ha,le=P[R],Q=R==="y"?"height":"width",re=le+T[F],ue=le-T[z],H=[bi,_i].indexOf(C)!==-1,G=(L=M==null?void 0:M[R])!=null?L:0,me=H?re:le-D[Q]-$[Q]-G+K.altAxis,oe=H?le+D[Q]+$[Q]-G-K.altAxis:ue,de=y&&H?m4e(me,le,oe):td(y?me:re,le,y?oe:ue);P[R]=de,s[R]=de-le}t.modifiersData[n]=s}}var H4e={name:"preventOverflow",enabled:!0,phase:"main",fn:q4e,requiresIfExists:["offset"]};function j4e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function K4e(e){return e===Pa(e)||!da(e)?I3(e):j4e(e)}function W4e(e){var t=e.getBoundingClientRect(),r=Qu(t.width)/e.offsetWidth||1,n=Qu(t.height)/e.offsetHeight||1;return r!==1||n!==1}function G4e(e,t,r){r===void 0&&(r=!1);var n=da(t),a=da(t)&&W4e(t),i=rl(t),o=ec(e,a),l={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(n||!n&&!r)&&((wo(t)!=="body"||k3(i))&&(l=K4e(t)),da(t)?(f=ec(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):i&&(f.x=B3(i))),{x:o.left+l.scrollLeft-f.x,y:o.top+l.scrollTop-f.y,width:o.width,height:o.height}}function Z4e(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function a(i){r.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(l){if(!r.has(l)){var f=t.get(l);f&&a(f)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||a(i)}),n}function J4e(e){var t=Z4e(e);return c4e.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function Y4e(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function X4e(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var QP={placement:"bottom",modifiers:[],strategy:"absolute"};function eF(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function O3(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,a=t.defaultOptions,i=a===void 0?QP:a;return function(o,l,f){f===void 0&&(f=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},QP,i),modifiersData:{},elements:{reference:o,popper:l},attributes:{},styles:{}},d=[],v=!1,m={state:c,setOptions:function(S){var T=typeof S=="function"?S(c.options):S;b(),c.options=Object.assign({},i,c.options,T),c.scrollParents={reference:Xu(o)?rd(o):o.contextElement?rd(o.contextElement):[],popper:rd(l)};var C=J4e(X4e([].concat(n,c.options.modifiers)));return c.orderedModifiers=C.filter(function(I){return I.enabled}),y(),m.update()},forceUpdate:function(){if(!v){var S=c.elements,T=S.reference,C=S.popper;if(eF(T,C)){c.rects={reference:G4e(T,ed(C),c.options.strategy==="fixed"),popper:T3(C)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function($){return c.modifiersData[$.name]=Object.assign({},$.data)});for(var I=0;I<c.orderedModifiers.length;I++){if(c.reset===!0){c.reset=!1,I=-1;continue}var B=c.orderedModifiers[I],N=B.fn,R=B.options,P=R===void 0?{}:R,D=B.name;typeof N=="function"&&(c=N({state:c,options:P,name:D,instance:m})||c)}}}},update:Y4e(function(){return new Promise(function(S){m.forceUpdate(),S(c)})}),destroy:function(){b(),v=!0}};if(!eF(o,l))return m;m.setOptions(f).then(function(S){!v&&f.onFirstUpdate&&f.onFirstUpdate(S)});function y(){c.orderedModifiers.forEach(function(S){var T=S.name,C=S.options,I=C===void 0?{}:C,B=S.effect;if(typeof B=="function"){var N=B({state:c,name:T,instance:m,options:I}),R=function(){};d.push(N||R)}})}function b(){d.forEach(function(S){return S()}),d=[]}return m}}O3();var Q4e=[jP,XP,HP,LP];O3({defaultModifiers:Q4e});var eSe=[jP,XP,HP,LP,U4e,P4e,H4e,_4e,L4e],tSe=O3({defaultModifiers:eSe});const rSe=["fixed","absolute"],nSe=hr({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Tt(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:wm,default:"bottom"},popperOptions:{type:Tt(Object),default:()=>({})},strategy:{type:String,values:rSe,default:"absolute"}}),tF=hr({...nSe,id:String,style:{type:Tt([String,Array,Object])},className:{type:Tt([String,Array,Object])},effect:{type:Tt(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Tt([String,Array,Object])},popperStyle:{type:Tt([String,Array,Object])},referenceEl:{type:Tt(Object)},triggerTargetEl:{type:Tt(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...Tf(["ariaLabel"])}),iSe={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},aSe=(e,t)=>{const r=Oe(!1),n=Oe();return{focusStartRef:n,trapped:r,onFocusAfterReleased:c=>{var d;((d=c.detail)==null?void 0:d.focusReason)!=="pointer"&&(n.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:c=>{e.visible&&!r.value&&(c.target&&(n.value=c.target),r.value=!0)},onFocusoutPrevented:c=>{e.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),r.value=!1)},onReleaseRequested:()=>{r.value=!1,t("close")}}},oSe=(e,t=[])=>{const{placement:r,strategy:n,popperOptions:a}=e,i={placement:r,strategy:n,...a,modifiers:[...lSe(e),...t]};return fSe(i,a==null?void 0:a.modifiers),i},sSe=e=>{if(ln)return rs(e)};function lSe(e){const{offset:t,gpuAcceleration:r,fallbackPlacements:n}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:n}},{name:"computeStyles",options:{gpuAcceleration:r}}]}function fSe(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const uSe=(e,t,r={})=>{const n={name:"updateState",enabled:!0,phase:"write",fn:({state:f})=>{const c=cSe(f);Object.assign(o.value,c)},requires:["computeStyles"]},a=be(()=>{const{onFirstUpdate:f,placement:c,strategy:d,modifiers:v}=J(r);return{onFirstUpdate:f,placement:c||"bottom",strategy:d||"absolute",modifiers:[...v||[],n,{name:"applyStyles",enabled:!1}]}}),i=Nu(),o=Oe({styles:{popper:{position:J(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return dt(a,f=>{const c=J(i);c&&c.setOptions(f)},{deep:!0}),dt([e,t],([f,c])=>{l(),!(!f||!c)&&(i.value=tSe(f,c,J(a)))}),gn(()=>{l()}),{state:be(()=>{var f;return{...((f=J(i))==null?void 0:f.state)||{}}}),styles:be(()=>J(o).styles),attributes:be(()=>J(o).attributes),update:()=>{var f;return(f=J(i))==null?void 0:f.update()},forceUpdate:()=>{var f;return(f=J(i))==null?void 0:f.forceUpdate()},instanceRef:be(()=>J(i))}};function cSe(e){const t=Object.keys(e.elements),r=om(t.map(a=>[a,e.styles[a]||{}])),n=om(t.map(a=>[a,e.attributes[a]]));return{styles:r,attributes:n}}const hSe=0,dSe=e=>{const{popperInstanceRef:t,contentRef:r,triggerRef:n,role:a}=wt(b3,void 0),i=Oe(),o=Oe(),l=be(()=>({name:"eventListeners",enabled:!!e.visible})),f=be(()=>{var C;const I=J(i),B=(C=J(o))!=null?C:hSe;return{name:"arrow",enabled:!I3e(I),options:{element:I,padding:B}}}),c=be(()=>({onFirstUpdate:()=>{b()},...oSe(e,[J(f),J(l)])})),d=be(()=>sSe(e.referenceEl)||J(n)),{attributes:v,state:m,styles:y,update:b,forceUpdate:S,instanceRef:T}=uSe(d,r,c);return dt(T,C=>t.value=C),ur(()=>{dt(()=>{var C;return(C=J(d))==null?void 0:C.getBoundingClientRect()},()=>{b()})}),{attributes:v,arrowRef:i,contentRef:r,instanceRef:T,state:m,styles:y,role:a,forceUpdate:S,update:b}},pSe=(e,{attributes:t,styles:r,role:n})=>{const{nextZIndex:a}=WR(),i=Gt("popper"),o=be(()=>J(t).popper),l=Oe(Wn(e.zIndex)?e.zIndex:a()),f=be(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),c=be(()=>[{zIndex:J(l)},J(r).popper,e.popperStyle||{}]),d=be(()=>n.value==="dialog"?"false":void 0),v=be(()=>J(r).arrow||{});return{ariaModal:d,arrowStyle:v,contentAttrs:o,contentClass:f,contentStyle:c,contentZIndex:l,updateZIndex:()=>{l.value=Wn(e.zIndex)?e.zIndex:a()}}},vSe=rt({name:"ElPopperContent"}),mSe=rt({...vSe,props:tF,emits:iSe,setup(e,{expose:t,emit:r}){const n=e,{focusStartRef:a,trapped:i,onFocusAfterReleased:o,onFocusAfterTrapped:l,onFocusInTrap:f,onFocusoutPrevented:c,onReleaseRequested:d}=aSe(n,r),{attributes:v,arrowRef:m,contentRef:y,styles:b,instanceRef:S,role:T,update:C}=dSe(n),{ariaModal:I,arrowStyle:B,contentAttrs:N,contentClass:R,contentStyle:P,updateZIndex:D}=pSe(n,{styles:b,attributes:v,role:T}),$=wt(Af,void 0),U=Oe();sn(yP,{arrowStyle:B,arrowRef:m,arrowOffset:U}),$&&sn(Af,{...$,addInputId:Qr,removeInputId:Qr});let K;const M=(h=!0)=>{C(),h&&D()},s=()=>{M(!1),n.visible&&n.focusOnShow?i.value=!0:n.visible===!1&&(i.value=!1)};return ur(()=>{dt(()=>n.triggerTargetEl,(h,p)=>{K==null||K(),K=void 0;const g=J(h||y.value),_=J(p||y.value);ts(g)&&(K=dt([T,()=>n.ariaLabel,I,()=>n.id],w=>{["role","aria-label","aria-modal","id"].forEach((A,E)=>{Sf(w[E])?g.removeAttribute(A):g.setAttribute(A,w[E])})},{immediate:!0})),_!==g&&ts(_)&&["role","aria-label","aria-modal","id"].forEach(w=>{_.removeAttribute(w)})},{immediate:!0}),dt(()=>n.visible,s,{immediate:!0})}),gn(()=>{K==null||K(),K=void 0}),t({popperContentRef:y,popperInstanceRef:S,updatePopper:M,contentStyle:P}),(h,p)=>(he(),ke("div",sa({ref_key:"contentRef",ref:y},J(N),{style:J(P),class:J(R),tabindex:"-1",onMouseenter:g=>h.$emit("mouseenter",g),onMouseleave:g=>h.$emit("mouseleave",g)}),[Et(J(Q6e),{trapped:J(i),"trap-on-focus-in":!0,"focus-trap-el":J(y),"focus-start-el":J(a),onFocusAfterTrapped:J(l),onFocusAfterReleased:J(o),onFocusin:J(f),onFocusoutPrevented:J(c),onReleaseRequested:J(d)},{default:lt(()=>[yt(h.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var gSe=ir(mSe,[["__file","content.vue"]]);const ySe=Rn(B6e),R3=Symbol("elTooltip");function rF(){let e;const t=(n,a)=>{r(),e=window.setTimeout(n,a)},r=()=>window.clearTimeout(e);return Wh(()=>r()),{registerTimeout:t,cancelTimeout:r}}const bSe=hr({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),_Se=({showAfter:e,hideAfter:t,autoClose:r,open:n,close:a})=>{const{registerTimeout:i}=rF(),{registerTimeout:o,cancelTimeout:l}=rF();return{onOpen:d=>{i(()=>{n(d);const v=J(r);Wn(v)&&v>0&&o(()=>{a(d)},v)},J(e))},onClose:d=>{l(),i(()=>{a(d)},J(t))}}},P3=hr({...bSe,...tF,appendTo:{type:Tt([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:Tt(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...Tf(["ariaLabel"])}),nF=hr({...wP,disabled:Boolean,trigger:{type:Tt([String,Array]),default:"hover"},triggerKeys:{type:Tt(Array),default:()=>[fn.enter,fn.numpadEnter,fn.space]}}),wSe=fm({type:Tt(Boolean),default:null}),ESe=fm({type:Tt(Function)}),iF=e=>{const t=`update:${e}`,r=`onUpdate:${e}`,n=[t],a={[e]:wSe,[r]:ESe};return{useModelToggle:({indicator:o,toggleReason:l,shouldHideWhenRouteChanges:f,shouldProceed:c,onShow:d,onHide:v})=>{const m=Cr(),{emit:y}=m,b=m.props,S=be(()=>vt(b[r])),T=be(()=>b[e]===null),C=D=>{o.value!==!0&&(o.value=!0,l&&(l.value=D),vt(d)&&d(D))},I=D=>{o.value!==!1&&(o.value=!1,l&&(l.value=D),vt(v)&&v(D))},B=D=>{if(b.disabled===!0||vt(c)&&!c())return;const $=S.value&&ln;$&&y(t,!0),(T.value||!$)&&C(D)},N=D=>{if(b.disabled===!0||!ln)return;const $=S.value&&ln;$&&y(t,!1),(T.value||!$)&&I(D)},R=D=>{Mf(D)&&(b.disabled&&D?S.value&&y(t,!1):o.value!==D&&(D?C():I()))},P=()=>{o.value?N():B()};return dt(()=>b[e],R),f&&m.appContext.config.globalProperties.$route!==void 0&&dt(()=>({...m.proxy.$route}),()=>{f.value&&o.value&&N()}),ur(()=>{R(b[e])}),{hide:N,show:B,toggle:P,hasUpdateHandler:S}},useModelToggleProps:a,useModelToggleEmits:n}};iF("modelValue");const{useModelToggleProps:xSe,useModelToggleEmits:SSe,useModelToggle:MSe}=iF("visible"),CSe=hr({...bP,...xSe,...P3,...nF,..._P,showArrow:{type:Boolean,default:!0}}),TSe=[...SSe,"before-show","before-hide","show","hide","open","close"],ASe=(e,t)=>ot(e)?e.includes(t):e===t,rc=(e,t,r)=>n=>{ASe(J(e),t)&&r(n)},as=(e,t,{checkForDefaultPrevented:r=!0}={})=>a=>{const i=e==null?void 0:e(a);if(r===!1||!i)return t==null?void 0:t(a)},ISe=rt({name:"ElTooltipTrigger"}),BSe=rt({...ISe,props:nF,setup(e,{expose:t}){const r=e,n=Gt("tooltip"),{controlled:a,id:i,open:o,onOpen:l,onClose:f,onToggle:c}=wt(R3,void 0),d=Oe(null),v=()=>{if(J(a)||r.disabled)return!0},m=ia(r,"trigger"),y=as(v,rc(m,"hover",l)),b=as(v,rc(m,"hover",f)),S=as(v,rc(m,"click",N=>{N.button===0&&c(N)})),T=as(v,rc(m,"focus",l)),C=as(v,rc(m,"focus",f)),I=as(v,rc(m,"contextmenu",N=>{N.preventDefault(),c(N)})),B=as(v,N=>{const{code:R}=N;r.triggerKeys.includes(R)&&(N.preventDefault(),c(N))});return t({triggerRef:d}),(N,R)=>(he(),nt(J($6e),{id:J(i),"virtual-ref":N.virtualRef,open:J(o),"virtual-triggering":N.virtualTriggering,class:Ce(J(n).e("trigger")),onBlur:J(C),onClick:J(S),onContextmenu:J(I),onFocus:J(T),onMouseenter:J(y),onMouseleave:J(b),onKeydown:J(B)},{default:lt(()=>[yt(N.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var kSe=ir(BSe,[["__file","trigger.vue"]]);const NSe=hr({to:{type:Tt([String,Object]),required:!0},disabled:Boolean});var OSe=ir(rt({__name:"teleport",props:NSe,setup(e){return(t,r)=>t.disabled?yt(t.$slots,"default",{key:0}):(he(),nt(Qme,{key:1,to:t.to},[yt(t.$slots,"default")],8,["to"]))}}),[["__file","teleport.vue"]]);const RSe=Rn(OSe),aF=()=>{const e=PE(),t=dP(),r=be(()=>`${e.value}-popper-container-${t.prefix}`),n=be(()=>`#${r.value}`);return{id:r,selector:n}},PSe=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},FSe=()=>{const{id:e,selector:t}=aF();return G9(()=>{ln&&(fe.env.NODE_ENV==="test"||!document.body.querySelector(t.value))&&PSe(e.value)}),{id:e,selector:t}},LSe=rt({name:"ElTooltipContent",inheritAttrs:!1}),DSe=rt({...LSe,props:P3,setup(e,{expose:t}){const r=e,{selector:n}=aF(),a=Gt("tooltip"),i=Oe();let o;const{controlled:l,id:f,open:c,trigger:d,onClose:v,onOpen:m,onShow:y,onHide:b,onBeforeShow:S,onBeforeHide:T}=wt(R3,void 0),C=be(()=>r.transition||`${a.namespace.value}-fade-in-linear`),I=be(()=>fe.env.NODE_ENV==="test"?!0:r.persistent);gn(()=>{o==null||o()});const B=be(()=>J(I)?!0:J(c)),N=be(()=>r.disabled?!1:J(c)),R=be(()=>r.appendTo||n.value),P=be(()=>{var _;return(_=r.style)!=null?_:{}}),D=Oe(!0),$=()=>{b(),D.value=!0},U=()=>{if(J(l))return!0},K=as(U,()=>{r.enterable&&J(d)==="hover"&&m()}),M=as(U,()=>{J(d)==="hover"&&v()}),s=()=>{var _,w;(w=(_=i.value)==null?void 0:_.updatePopper)==null||w.call(_),S==null||S()},h=()=>{T==null||T()},p=()=>{y(),o=J3e(be(()=>{var _;return(_=i.value)==null?void 0:_.popperContentRef}),()=>{if(J(l))return;J(d)!=="hover"&&v()})},g=()=>{r.virtualTriggering||v()};return dt(()=>J(c),_=>{_?D.value=!1:o==null||o()},{flush:"post"}),dt(()=>r.content,()=>{var _,w;(w=(_=i.value)==null?void 0:_.updatePopper)==null||w.call(_)}),t({contentRef:i}),(_,w)=>(he(),nt(J(RSe),{disabled:!_.teleported,to:J(R)},{default:lt(()=>[Et(mo,{name:J(C),onAfterLeave:$,onBeforeEnter:s,onAfterEnter:p,onBeforeLeave:h},{default:lt(()=>[J(B)?tn((he(),nt(J(gSe),sa({key:0,id:J(f),ref_key:"contentRef",ref:i},_.$attrs,{"aria-label":_.ariaLabel,"aria-hidden":D.value,"boundaries-padding":_.boundariesPadding,"fallback-placements":_.fallbackPlacements,"gpu-acceleration":_.gpuAcceleration,offset:_.offset,placement:_.placement,"popper-options":_.popperOptions,strategy:_.strategy,effect:_.effect,enterable:_.enterable,pure:_.pure,"popper-class":_.popperClass,"popper-style":[_.popperStyle,J(P)],"reference-el":_.referenceEl,"trigger-target-el":_.triggerTargetEl,visible:J(N),"z-index":_.zIndex,onMouseenter:J(K),onMouseleave:J(M),onBlur:g,onClose:J(v)}),{default:lt(()=>[yt(_.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[la,J(N)]]):Ye("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var $Se=ir(DSe,[["__file","content.vue"]]);const USe=rt({name:"ElTooltip"}),zSe=rt({...USe,props:CSe,emits:TSe,setup(e,{expose:t,emit:r}){const n=e;FSe();const a=Jh(),i=Oe(),o=Oe(),l=()=>{var C;const I=J(i);I&&((C=I.popperInstanceRef)==null||C.update())},f=Oe(!1),c=Oe(),{show:d,hide:v,hasUpdateHandler:m}=MSe({indicator:f,toggleReason:c}),{onOpen:y,onClose:b}=_Se({showAfter:ia(n,"showAfter"),hideAfter:ia(n,"hideAfter"),autoClose:ia(n,"autoClose"),open:d,close:v}),S=be(()=>Mf(n.visible)&&!m.value);sn(R3,{controlled:S,id:a,open:uv(f),trigger:ia(n,"trigger"),onOpen:C=>{y(C)},onClose:C=>{b(C)},onToggle:C=>{J(f)?b(C):y(C)},onShow:()=>{r("show",c.value)},onHide:()=>{r("hide",c.value)},onBeforeShow:()=>{r("before-show",c.value)},onBeforeHide:()=>{r("before-hide",c.value)},updatePopper:l}),dt(()=>n.disabled,C=>{C&&f.value&&(f.value=!1)});const T=C=>{var I,B;const N=(B=(I=o.value)==null?void 0:I.contentRef)==null?void 0:B.popperContentRef,R=(C==null?void 0:C.relatedTarget)||document.activeElement;return N&&N.contains(R)};return K9(()=>f.value&&v()),t({popperRef:i,contentRef:o,isFocusInsideContent:T,updatePopper:l,onOpen:y,onClose:b,hide:v}),(C,I)=>(he(),nt(J(ySe),{ref_key:"popperRef",ref:i,role:C.role},{default:lt(()=>[Et(kSe,{disabled:C.disabled,trigger:C.trigger,"trigger-keys":C.triggerKeys,"virtual-ref":C.virtualRef,"virtual-triggering":C.virtualTriggering},{default:lt(()=>[C.$slots.default?yt(C.$slots,"default",{key:0}):Ye("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),Et($Se,{ref_key:"contentRef",ref:o,"aria-label":C.ariaLabel,"boundaries-padding":C.boundariesPadding,content:C.content,disabled:C.disabled,effect:C.effect,enterable:C.enterable,"fallback-placements":C.fallbackPlacements,"hide-after":C.hideAfter,"gpu-acceleration":C.gpuAcceleration,offset:C.offset,persistent:C.persistent,"popper-class":C.popperClass,"popper-style":C.popperStyle,placement:C.placement,"popper-options":C.popperOptions,pure:C.pure,"raw-content":C.rawContent,"reference-el":C.referenceEl,"trigger-target-el":C.triggerTargetEl,"show-after":C.showAfter,strategy:C.strategy,teleported:C.teleported,transition:C.transition,"virtual-triggering":C.virtualTriggering,"z-index":C.zIndex,"append-to":C.appendTo},{default:lt(()=>[yt(C.$slots,"content",{},()=>[C.rawContent?(he(),ke("span",{key:0,innerHTML:C.content},null,8,["innerHTML"])):(he(),ke("span",{key:1},st(C.content),1))]),C.showArrow?(he(),nt(J(O6e),{key:0,"arrow-offset":C.arrowOffset},null,8,["arrow-offset"])):Ye("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var VSe=ir(zSe,[["__file","tooltip.vue"]]);const F3=Rn(VSe),oF=Symbol("buttonGroupContextKey"),Cm=({from:e,replacement:t,scope:r,version:n,ref:a,type:i="API"},o)=>{dt(()=>J(o),l=>{l&&Yr(r,`[${i}] ${e} is about to be deprecated in version ${n}, please use ${t} instead.
852
852
  For more detail, please visit: ${a}
853
- `)},{immediate:!0})},qSe=(e,t)=>{Cm({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},be(()=>e.type==="text"));const r=wt(oF,void 0),n=d3("button"),{form:a}=Gu(),i=el(be(()=>r==null?void 0:r.size)),o=vm(),l=Oe(),f=Pu(),c=be(()=>e.type||(r==null?void 0:r.type)||""),d=be(()=>{var b,S,T;return(T=(S=e.autoInsertSpace)!=null?S:(b=n.value)==null?void 0:b.autoInsertSpace)!=null?T:!1}),v=be(()=>e.tag==="button"?{ariaDisabled:o.value||e.loading,disabled:o.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),m=be(()=>{var b;const S=(b=f.default)==null?void 0:b.call(f);if(d.value&&(S==null?void 0:S.length)===1){const T=S[0];if((T==null?void 0:T.type)===Ks){const C=T.children;return/^\p{Unified_Ideograph}{2}$/u.test(C.trim())}}return!1});return{_disabled:o,_size:i,_type:c,_ref:l,_props:v,shouldAddSpace:m,handleClick:b=>{if(o.value||e.loading){b.stopPropagation();return}e.nativeType==="reset"&&(a==null||a.resetFields()),t("click",b)}}},L3=hr({size:ju,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:Ni},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:Ni,default:()=>sP},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:Tt([String,Object]),default:"button"}}),HSe={click:e=>e instanceof MouseEvent};function Fn(e,t){jSe(e)&&(e="100%");var r=KSe(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Tm(e){return Math.min(1,Math.max(0,e))}function jSe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function KSe(e){return typeof e=="string"&&e.indexOf("%")!==-1}function sF(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Am(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Bf(e){return e.length===1?"0"+e:String(e)}function WSe(e,t,r){return{r:Fn(e,255)*255,g:Fn(t,255)*255,b:Fn(r,255)*255}}function lF(e,t,r){e=Fn(e,255),t=Fn(t,255),r=Fn(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,o=0,l=(n+a)/2;if(n===a)o=0,i=0;else{var f=n-a;switch(o=l>.5?f/(2-n-a):f/(n+a),n){case e:i=(t-r)/f+(t<r?6:0);break;case t:i=(r-e)/f+2;break;case r:i=(e-t)/f+4;break}i/=6}return{h:i,s:o,l}}function D3(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function GSe(e,t,r){var n,a,i;if(e=Fn(e,360),t=Fn(t,100),r=Fn(r,100),t===0)a=r,i=r,n=r;else{var o=r<.5?r*(1+t):r+t-r*t,l=2*r-o;n=D3(l,o,e+1/3),a=D3(l,o,e),i=D3(l,o,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function fF(e,t,r){e=Fn(e,255),t=Fn(t,255),r=Fn(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,o=n,l=n-a,f=n===0?0:l/n;if(n===a)i=0;else{switch(n){case e:i=(t-r)/l+(t<r?6:0);break;case t:i=(r-e)/l+2;break;case r:i=(e-t)/l+4;break}i/=6}return{h:i,s:f,v:o}}function ZSe(e,t,r){e=Fn(e,360)*6,t=Fn(t,100),r=Fn(r,100);var n=Math.floor(e),a=e-n,i=r*(1-t),o=r*(1-a*t),l=r*(1-(1-a)*t),f=n%6,c=[r,o,i,i,l,r][f],d=[l,r,r,o,i,i][f],v=[i,i,l,r,r,o][f];return{r:c*255,g:d*255,b:v*255}}function uF(e,t,r,n){var a=[Bf(Math.round(e).toString(16)),Bf(Math.round(t).toString(16)),Bf(Math.round(r).toString(16))];return n&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function JSe(e,t,r,n,a){var i=[Bf(Math.round(e).toString(16)),Bf(Math.round(t).toString(16)),Bf(Math.round(r).toString(16)),Bf(YSe(n))];return a&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function YSe(e){return Math.round(parseFloat(e)*255).toString(16)}function cF(e){return Oi(e)/255}function Oi(e){return parseInt(e,16)}function XSe(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var $3={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function QSe(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,l=!1;return typeof e=="string"&&(e=r8e(e)),typeof e=="object"&&(os(e.r)&&os(e.g)&&os(e.b)?(t=WSe(e.r,e.g,e.b),o=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):os(e.h)&&os(e.s)&&os(e.v)?(n=Am(e.s),a=Am(e.v),t=ZSe(e.h,n,a),o=!0,l="hsv"):os(e.h)&&os(e.s)&&os(e.l)&&(n=Am(e.s),i=Am(e.l),t=GSe(e.h,n,i),o=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=sF(r),{ok:o,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var e8e="[-\\+]?\\d+%?",t8e="[-\\+]?\\d*\\.\\d+%?",nl="(?:".concat(t8e,")|(?:").concat(e8e,")"),U3="[\\s|\\(]+(".concat(nl,")[,|\\s]+(").concat(nl,")[,|\\s]+(").concat(nl,")\\s*\\)?"),z3="[\\s|\\(]+(".concat(nl,")[,|\\s]+(").concat(nl,")[,|\\s]+(").concat(nl,")[,|\\s]+(").concat(nl,")\\s*\\)?"),Fa={CSS_UNIT:new RegExp(nl),rgb:new RegExp("rgb"+U3),rgba:new RegExp("rgba"+z3),hsl:new RegExp("hsl"+U3),hsla:new RegExp("hsla"+z3),hsv:new RegExp("hsv"+U3),hsva:new RegExp("hsva"+z3),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function r8e(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if($3[e])e=$3[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=Fa.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=Fa.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Fa.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=Fa.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Fa.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=Fa.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Fa.hex8.exec(e),r?{r:Oi(r[1]),g:Oi(r[2]),b:Oi(r[3]),a:cF(r[4]),format:t?"name":"hex8"}:(r=Fa.hex6.exec(e),r?{r:Oi(r[1]),g:Oi(r[2]),b:Oi(r[3]),format:t?"name":"hex"}:(r=Fa.hex4.exec(e),r?{r:Oi(r[1]+r[1]),g:Oi(r[2]+r[2]),b:Oi(r[3]+r[3]),a:cF(r[4]+r[4]),format:t?"name":"hex8"}:(r=Fa.hex3.exec(e),r?{r:Oi(r[1]+r[1]),g:Oi(r[2]+r[2]),b:Oi(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function os(e){return!!Fa.CSS_UNIT.exec(String(e))}var hF=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=XSe(t)),this.originalInput=t;var a=QSe(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:a.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,a,i=t.r/255,o=t.g/255,l=t.b/255;return i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),l<=.03928?a=l/12.92:a=Math.pow((l+.055)/1.055,2.4),.2126*r+.7152*n+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=sF(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=fF(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=fF(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=lF(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=lF(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),uF(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),JSe(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(Fn(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(Fn(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+uF(this.r,this.g,this.b,!1),r=0,n=Object.entries($3);r<n.length;r++){var a=n[r],i=a[0],o=a[1];if(t===o)return i}return!1},e.prototype.toString=function(t){var r=!!t;t=t??this.format;var n=!1,a=this.a<1&&this.a>=0,i=!r&&a&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=Tm(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=Tm(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=Tm(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=Tm(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),a=new e(t).toRgb(),i=r/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return new e(o)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),a=360/r,i=[this];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(new e(n));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,a=r.s,i=r.v,o=[],l=1/t;t--;)o.push(new e({h:n,s:a,v:i})),i=(i+l)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb();return new e({r:n.r+(r.r-n.r)*r.a,g:n.g+(r.g-n.g)*r.a,b:n.b+(r.b-n.b)*r.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,a=[this],i=360/t,o=1;o<t;o++)a.push(new e({h:(n+o*i)%360,s:r.s,l:r.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function il(e,t=20){return e.mix("#141414",t).toString()}function n8e(e){const t=vm(),r=Gt("button");return be(()=>{let n={},a=e.color;if(a){const i=a.match(/var\((.*?)\)/);i&&(a=window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));const o=new hF(a),l=e.dark?o.tint(20).toString():il(o,20);if(e.plain)n=r.cssVarBlock({"bg-color":e.dark?il(o,90):o.tint(90).toString(),"text-color":a,"border-color":e.dark?il(o,50):o.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":l,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":l}),t.value&&(n[r.cssVarBlockName("disabled-bg-color")]=e.dark?il(o,90):o.tint(90).toString(),n[r.cssVarBlockName("disabled-text-color")]=e.dark?il(o,50):o.tint(50).toString(),n[r.cssVarBlockName("disabled-border-color")]=e.dark?il(o,80):o.tint(80).toString());else{const f=e.dark?il(o,30):o.tint(30).toString(),c=o.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(n=r.cssVarBlock({"bg-color":a,"text-color":c,"border-color":a,"hover-bg-color":f,"hover-text-color":c,"hover-border-color":f,"active-bg-color":l,"active-border-color":l}),t.value){const d=e.dark?il(o,50):o.tint(50).toString();n[r.cssVarBlockName("disabled-bg-color")]=d,n[r.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,n[r.cssVarBlockName("disabled-border-color")]=d}}}return n})}const i8e=rt({name:"ElButton"}),a8e=rt({...i8e,props:L3,emits:HSe,setup(e,{expose:t,emit:r}){const n=e,a=n8e(n),i=Gt("button"),{_ref:o,_size:l,_type:f,_disabled:c,_props:d,shouldAddSpace:v,handleClick:m}=qSe(n,r),y=be(()=>[i.b(),i.m(f.value),i.m(l.value),i.is("disabled",c.value),i.is("loading",n.loading),i.is("plain",n.plain),i.is("round",n.round),i.is("circle",n.circle),i.is("text",n.text),i.is("link",n.link),i.is("has-bg",n.bg)]);return t({ref:o,size:l,type:f,disabled:c,shouldAddSpace:v}),(b,S)=>(he(),nt(Nn(b.tag),sa({ref_key:"_ref",ref:o},J(d),{class:J(y),style:J(a),onClick:J(m)}),{default:st(()=>[b.loading?(he(),ke(Ct,{key:0},[b.$slots.loading?yt(b.$slots,"loading",{key:0}):(he(),nt(J(Pn),{key:1,class:Ce(J(i).is("loading"))},{default:st(()=>[(he(),nt(Nn(b.loadingIcon)))]),_:1},8,["class"]))],64)):b.icon||b.$slots.icon?(he(),nt(J(Pn),{key:1},{default:st(()=>[b.icon?(he(),nt(Nn(b.icon),{key:0})):yt(b.$slots,"icon",{key:1})]),_:3})):Ye("v-if",!0),b.$slots.default?(he(),ke("span",{key:2,class:Ce({[J(i).em("text","expand")]:J(v)})},[yt(b.$slots,"default")],2)):Ye("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var o8e=ir(a8e,[["__file","button.vue"]]);const s8e={size:L3.size,type:L3.type},l8e=rt({name:"ElButtonGroup"}),f8e=rt({...l8e,props:s8e,setup(e){const t=e;sn(oF,vn({size:ia(t,"size"),type:ia(t,"type")}));const r=Gt("button");return(n,a)=>(he(),ke("div",{class:Ce(J(r).b("group"))},[yt(n.$slots,"default")],2))}});var dF=ir(f8e,[["__file","button-group.vue"]]);const Im=Rn(o8e,{ButtonGroup:dF});ns(dF);const Bm=e=>{const t=ot(e)?e:[e],r=[];return t.forEach(n=>{var a;ot(n)?r.push(...Bm(n)):Ma(n)&&((a=n.component)!=null&&a.subTree)?r.push(n,...Bm(n.component.subTree)):Ma(n)&&ot(n.children)?r.push(...Bm(n.children)):r.push(n)}),r},pF={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:ju,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...Tf(["ariaControls"])},vF={[ki]:e=>It(e)||Wn(e)||Mf(e),change:e=>It(e)||Wn(e)||Mf(e)},nc=Symbol("checkboxGroupContextKey"),u8e=({model:e,isChecked:t})=>{const r=wt(nc,void 0),n=be(()=>{var i,o;const l=(i=r==null?void 0:r.max)==null?void 0:i.value,f=(o=r==null?void 0:r.min)==null?void 0:o.value;return!es(l)&&e.value.length>=l&&!t.value||!es(f)&&e.value.length<=f&&t.value});return{isDisabled:vm(be(()=>(r==null?void 0:r.disabled.value)||n.value)),isLimitDisabled:n}},c8e=(e,{model:t,isLimitExceeded:r,hasOwnLabel:n,isDisabled:a,isLabeledByFormItem:i})=>{const o=wt(nc,void 0),{formItem:l}=Gu(),{emit:f}=Cr();function c(b){var S,T,C,I;return[!0,e.trueValue,e.trueLabel].includes(b)?(T=(S=e.trueValue)!=null?S:e.trueLabel)!=null?T:!0:(I=(C=e.falseValue)!=null?C:e.falseLabel)!=null?I:!1}function d(b,S){f("change",c(b),S)}function v(b){if(r.value)return;const S=b.target;f("change",c(S.checked),b)}async function m(b){r.value||!n.value&&!a.value&&i.value&&(b.composedPath().some(C=>C.tagName==="LABEL")||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await Xt(),d(t.value,b)))}const y=be(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return dt(()=>e.modelValue,()=>{y.value&&(l==null||l.validate("change").catch(b=>Yr(b)))}),{handleChange:v,onClickRoot:m}},h8e=e=>{const t=Oe(!1),{emit:r}=Cr(),n=wt(nc,void 0),a=be(()=>es(n)===!1),i=Oe(!1),o=be({get(){var l,f;return a.value?(l=n==null?void 0:n.modelValue)==null?void 0:l.value:(f=e.modelValue)!=null?f:t.value},set(l){var f,c;a.value&&ot(l)?(i.value=((f=n==null?void 0:n.max)==null?void 0:f.value)!==void 0&&l.length>(n==null?void 0:n.max.value)&&l.length>o.value.length,i.value===!1&&((c=n==null?void 0:n.changeEvent)==null||c.call(n,l))):(r(ki,l),t.value=l)}});return{model:o,isGroup:a,isLimitExceeded:i}},d8e=(e,t,{model:r})=>{const n=wt(nc,void 0),a=Oe(!1),i=be(()=>o3(e.value)?e.label:e.value),o=be(()=>{const d=r.value;return Mf(d)?d:ot(d)?At(i.value)?d.map(Nt).some(v=>Kh(v,i.value)):d.map(Nt).includes(i.value):d!=null?d===e.trueValue||d===e.trueLabel:!!d}),l=el(be(()=>{var d;return(d=n==null?void 0:n.size)==null?void 0:d.value}),{prop:!0}),f=el(be(()=>{var d;return(d=n==null?void 0:n.size)==null?void 0:d.value})),c=be(()=>!!t.default||!o3(i.value));return{checkboxButtonSize:l,isChecked:o,isFocused:a,checkboxSize:f,hasOwnLabel:c,actualValue:i}},mF=(e,t)=>{const{formItem:r}=Gu(),{model:n,isGroup:a,isLimitExceeded:i}=h8e(e),{isFocused:o,isChecked:l,checkboxButtonSize:f,checkboxSize:c,hasOwnLabel:d,actualValue:v}=d8e(e,t,{model:n}),{isDisabled:m}=u8e({model:n,isChecked:l}),{inputId:y,isLabeledByFormItem:b}=pm(e,{formItemContext:r,disableIdGeneration:d,disableIdManagement:a}),{handleChange:S,onClickRoot:T}=c8e(e,{model:n,isLimitExceeded:i,hasOwnLabel:d,isDisabled:m,isLabeledByFormItem:b});return(()=>{function I(){var B,N;ot(n.value)&&!n.value.includes(v.value)?n.value.push(v.value):n.value=(N=(B=e.trueValue)!=null?B:e.trueLabel)!=null?N:!0}e.checked&&I()})(),Cm({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},be(()=>a.value&&o3(e.value))),Cm({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},be(()=>!!e.trueLabel)),Cm({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},be(()=>!!e.falseLabel)),{inputId:y,isLabeledByFormItem:b,isChecked:l,isDisabled:m,isFocused:o,checkboxButtonSize:f,checkboxSize:c,hasOwnLabel:d,model:n,actualValue:v,handleChange:S,onClickRoot:T}},p8e=rt({name:"ElCheckbox"}),v8e=rt({...p8e,props:pF,emits:vF,setup(e){const t=e,r=Pu(),{inputId:n,isLabeledByFormItem:a,isChecked:i,isDisabled:o,isFocused:l,checkboxSize:f,hasOwnLabel:c,model:d,actualValue:v,handleChange:m,onClickRoot:y}=mF(t,r),b=Gt("checkbox"),S=be(()=>[b.b(),b.m(f.value),b.is("disabled",o.value),b.is("bordered",t.border),b.is("checked",i.value)]),T=be(()=>[b.e("input"),b.is("disabled",o.value),b.is("checked",i.value),b.is("indeterminate",t.indeterminate),b.is("focus",l.value)]);return(C,I)=>(he(),nt(Nn(!J(c)&&J(a)?"span":"label"),{class:Ce(J(S)),"aria-controls":C.indeterminate?C.ariaControls:null,onClick:J(y)},{default:st(()=>{var B,N,R,P;return[ze("span",{class:Ce(J(T))},[C.trueValue||C.falseValue||C.trueLabel||C.falseLabel?tn((he(),ke("input",{key:0,id:J(n),"onUpdate:modelValue":D=>gr(d)?d.value=D:null,class:Ce(J(b).e("original")),type:"checkbox",indeterminate:C.indeterminate,name:C.name,tabindex:C.tabindex,disabled:J(o),"true-value":(N=(B=C.trueValue)!=null?B:C.trueLabel)!=null?N:!0,"false-value":(P=(R=C.falseValue)!=null?R:C.falseLabel)!=null?P:!1,onChange:J(m),onFocus:D=>l.value=!0,onBlur:D=>l.value=!1,onClick:rn(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[Pv,J(d)]]):tn((he(),ke("input",{key:1,id:J(n),"onUpdate:modelValue":D=>gr(d)?d.value=D:null,class:Ce(J(b).e("original")),type:"checkbox",indeterminate:C.indeterminate,disabled:J(o),value:J(v),name:C.name,tabindex:C.tabindex,onChange:J(m),onFocus:D=>l.value=!0,onBlur:D=>l.value=!1,onClick:rn(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[Pv,J(d)]]),ze("span",{class:Ce(J(b).e("inner"))},null,2)],2),J(c)?(he(),ke("span",{key:0,class:Ce(J(b).e("label"))},[yt(C.$slots,"default"),C.$slots.default?Ye("v-if",!0):(he(),ke(Ct,{key:0},[Cn(lt(C.label),1)],64))],2)):Ye("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var m8e=ir(v8e,[["__file","checkbox.vue"]]);const g8e=rt({name:"ElCheckboxButton"}),y8e=rt({...g8e,props:pF,emits:vF,setup(e){const t=e,r=Pu(),{isFocused:n,isChecked:a,isDisabled:i,checkboxButtonSize:o,model:l,actualValue:f,handleChange:c}=mF(t,r),d=wt(nc,void 0),v=Gt("checkbox"),m=be(()=>{var b,S,T,C;const I=(S=(b=d==null?void 0:d.fill)==null?void 0:b.value)!=null?S:"";return{backgroundColor:I,borderColor:I,color:(C=(T=d==null?void 0:d.textColor)==null?void 0:T.value)!=null?C:"",boxShadow:I?`-1px 0 0 0 ${I}`:void 0}}),y=be(()=>[v.b("button"),v.bm("button",o.value),v.is("disabled",i.value),v.is("checked",a.value),v.is("focus",n.value)]);return(b,S)=>{var T,C,I,B;return he(),ke("label",{class:Ce(J(y))},[b.trueValue||b.falseValue||b.trueLabel||b.falseLabel?tn((he(),ke("input",{key:0,"onUpdate:modelValue":N=>gr(l)?l.value=N:null,class:Ce(J(v).be("button","original")),type:"checkbox",name:b.name,tabindex:b.tabindex,disabled:J(i),"true-value":(C=(T=b.trueValue)!=null?T:b.trueLabel)!=null?C:!0,"false-value":(B=(I=b.falseValue)!=null?I:b.falseLabel)!=null?B:!1,onChange:J(c),onFocus:N=>n.value=!0,onBlur:N=>n.value=!1,onClick:rn(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[Pv,J(l)]]):tn((he(),ke("input",{key:1,"onUpdate:modelValue":N=>gr(l)?l.value=N:null,class:Ce(J(v).be("button","original")),type:"checkbox",name:b.name,tabindex:b.tabindex,disabled:J(i),value:J(f),onChange:J(c),onFocus:N=>n.value=!0,onBlur:N=>n.value=!1,onClick:rn(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[Pv,J(l)]]),b.$slots.default||b.label?(he(),ke("span",{key:2,class:Ce(J(v).be("button","inner")),style:en(J(a)?J(m):void 0)},[yt(b.$slots,"default",{},()=>[Cn(lt(b.label),1)])],6)):Ye("v-if",!0)],2)}}});var gF=ir(y8e,[["__file","checkbox-button.vue"]]);const b8e=hr({modelValue:{type:Tt(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:ju,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...Tf(["ariaLabel"])}),_8e={[ki]:e=>ot(e),change:e=>ot(e)},w8e=rt({name:"ElCheckboxGroup"}),E8e=rt({...w8e,props:b8e,emits:_8e,setup(e,{emit:t}){const r=e,n=Gt("checkbox"),{formItem:a}=Gu(),{inputId:i,isLabeledByFormItem:o}=pm(r,{formItemContext:a}),l=async c=>{t(ki,c),await Xt(),t("change",c)},f=be({get(){return r.modelValue},set(c){l(c)}});return sn(nc,{...BR(zs(r),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:f,changeEvent:l}),dt(()=>r.modelValue,()=>{r.validateEvent&&(a==null||a.validate("change").catch(c=>Yr(c)))}),(c,d)=>{var v;return he(),nt(Nn(c.tag),{id:J(i),class:Ce(J(n).b("group")),role:"group","aria-label":J(o)?void 0:c.ariaLabel||"checkbox-group","aria-labelledby":J(o)?(v=J(a))==null?void 0:v.labelId:void 0},{default:st(()=>[yt(c.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var yF=ir(E8e,[["__file","checkbox-group.vue"]]);const x8e=Rn(m8e,{CheckboxButton:gF,CheckboxGroup:yF});ns(gF);const S8e=ns(yF),M8e=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),V3=hr({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:um},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),C8e={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},T8e=rt({name:"ElTag"}),A8e=rt({...T8e,props:V3,emits:C8e,setup(e,{emit:t}){const r=e,n=el(),a=Gt("tag"),i=be(()=>{const{type:c,hit:d,effect:v,closable:m,round:y}=r;return[a.b(),a.is("closable",m),a.m(c||"primary"),a.m(n.value),a.m(v),a.is("hit",d),a.is("round",y)]}),o=c=>{t("close",c)},l=c=>{t("click",c)},f=c=>{var d,v,m;(m=(v=(d=c==null?void 0:c.component)==null?void 0:d.subTree)==null?void 0:v.component)!=null&&m.bum&&(c.component.subTree.component.bum=null)};return(c,d)=>c.disableTransitions?(he(),ke("span",{key:0,class:Ce(J(i)),style:en({backgroundColor:c.color}),onClick:l},[ze("span",{class:Ce(J(a).e("content"))},[yt(c.$slots,"default")],2),c.closable?(he(),nt(J(Pn),{key:0,class:Ce(J(a).e("close")),onClick:rn(o,["stop"])},{default:st(()=>[Et(J(hm))]),_:1},8,["class","onClick"])):Ye("v-if",!0)],6)):(he(),nt(mo,{key:1,name:`${J(a).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:f},{default:st(()=>[ze("span",{class:Ce(J(i)),style:en({backgroundColor:c.color}),onClick:l},[ze("span",{class:Ce(J(a).e("content"))},[yt(c.$slots,"default")],2),c.closable?(he(),nt(J(Pn),{key:0,class:Ce(J(a).e("close")),onClick:rn(o,["stop"])},{default:st(()=>[Et(J(hm))]),_:1},8,["class","onClick"])):Ye("v-if",!0)],6)]),_:3},8,["name"]))}});var I8e=ir(A8e,[["__file","tag.vue"]]);const B8e=Rn(I8e),al=new Map;if(ln){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const r of al.values())for(const{documentHandler:n}of r)n(t,e);e=void 0}})}function bF(e,t){let r=[];return ot(t.arg)?r=t.arg:ts(t.arg)&&r.push(t.arg),function(n,a){const i=t.instance.popperRef,o=n.target,l=a==null?void 0:a.target,f=!t||!t.instance,c=!o||!l,d=e.contains(o)||e.contains(l),v=e===o,m=r.length&&r.some(b=>b==null?void 0:b.contains(o))||r.length&&r.includes(l),y=i&&(i.contains(o)||i.contains(l));f||c||d||v||m||y||t.value(n,a)}}const _F={beforeMount(e,t){al.has(e)||al.set(e,[]),al.get(e).push({documentHandler:bF(e,t),bindingFn:t.value})},updated(e,t){al.has(e)||al.set(e,[]);const r=al.get(e),n=r.findIndex(i=>i.bindingFn===t.oldValue),a={documentHandler:bF(e,t),bindingFn:t.value};n>=0?r.splice(n,1,a):r.push(a)},unmounted(e){al.delete(e)}},k8e=rt({name:"ElCollapseTransition"}),N8e=rt({...k8e,setup(e){const t=Gt("collapse-transition"),r=a=>{a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom},n={beforeEnter(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.style.height&&(a.dataset.elExistsHeight=a.style.height),a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0},enter(a){requestAnimationFrame(()=>{a.dataset.oldOverflow=a.style.overflow,a.dataset.elExistsHeight?a.style.maxHeight=a.dataset.elExistsHeight:a.scrollHeight!==0?a.style.maxHeight=`${a.scrollHeight}px`:a.style.maxHeight=0,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom,a.style.overflow="hidden"})},afterEnter(a){a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow},enterCancelled(a){r(a)},beforeLeave(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.dataset.oldOverflow=a.style.overflow,a.style.maxHeight=`${a.scrollHeight}px`,a.style.overflow="hidden"},leave(a){a.scrollHeight!==0&&(a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0)},afterLeave(a){r(a)},leaveCancelled(a){r(a)}};return(a,i)=>(he(),nt(mo,sa({name:J(t).b()},xme(n)),{default:st(()=>[yt(a.$slots,"default")]),_:3},16,["name"]))}});var O8e=ir(N8e,[["__file","collapse-transition.vue"]]);const R8e=Rn(O8e),P8e=hr({a11y:{type:Boolean,default:!0},locale:{type:Tt(Object)},size:ju,button:{type:Tt(Object)},experimentalFeatures:{type:Tt(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Tt(Object)},zIndex:Number,namespace:{type:String,default:"el"},...QR}),F8e={},L8e=rt({name:"ElConfigProvider",props:P8e,setup(e,{slots:t}){dt(()=>e.message,n=>{Object.assign(F8e,n??{})},{immediate:!0,deep:!0});const r=tP(e);return()=>yt(t,"default",{config:r==null?void 0:r.value})}}),D8e=Rn(L8e),$8e=hr({size:{type:String,values:um},disabled:Boolean}),U8e=hr({...$8e,model:Object,rules:{type:Tt(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),z8e={validate:(e,t,r)=>(ot(e)||It(e))&&Mf(t)&&It(r)},V8e="ElForm";function q8e(){const e=Oe([]),t=be(()=>{if(!e.value.length)return"0";const i=Math.max(...e.value);return i?`${i}px`:""});function r(i){const o=e.value.indexOf(i);return o===-1&&t.value==="0"&&Yr(V8e,`unexpected width ${i}`),o}function n(i,o){if(i&&o){const l=r(o);e.value.splice(l,1,i)}else i&&e.value.push(i)}function a(i){const o=r(i);o>-1&&e.value.splice(o,1)}return{autoLabelWidth:t,registerLabelWidth:n,deregisterLabelWidth:a}}const km=(e,t)=>{const r=Na(t);return r.length>0?e.filter(n=>n.prop&&r.includes(n.prop)):e},Nm="ElForm",H8e=rt({name:Nm}),j8e=rt({...H8e,props:U8e,emits:z8e,setup(e,{expose:t,emit:r}){const n=e,a=[],i=el(),o=Gt("form"),l=be(()=>{const{labelPosition:B,inline:N}=n;return[o.b(),o.m(i.value||"default"),{[o.m(`label-${B}`)]:B,[o.m("inline")]:N}]}),f=B=>a.find(N=>N.prop===B),c=B=>{a.push(B)},d=B=>{B.prop&&a.splice(a.indexOf(B),1)},v=(B=[])=>{if(!n.model){Yr(Nm,"model is required for resetFields to work.");return}km(a,B).forEach(N=>N.resetField())},m=(B=[])=>{km(a,B).forEach(N=>N.clearValidate())},y=be(()=>{const B=!!n.model;return B||Yr(Nm,"model is required for validate to work."),B}),b=B=>{if(a.length===0)return[];const N=km(a,B);return N.length?N:(Yr(Nm,"please pass correct props!"),[])},S=async B=>C(void 0,B),T=async(B=[])=>{if(!y.value)return!1;const N=b(B);if(N.length===0)return!0;let R={};for(const P of N)try{await P.validate("")}catch(D){R={...R,...D}}return Object.keys(R).length===0?!0:Promise.reject(R)},C=async(B=[],N)=>{const R=!vt(N);try{const P=await T(B);return P===!0&&await(N==null?void 0:N(P)),P}catch(P){if(P instanceof Error)throw P;const D=P;return n.scrollToError&&I(Object.keys(D)[0]),await(N==null?void 0:N(!1,D)),R&&Promise.reject(D)}},I=B=>{var N;const R=km(a,B)[0];R&&((N=R.$el)==null||N.scrollIntoView(n.scrollIntoViewOptions))};return dt(()=>n.rules,()=>{n.validateOnRuleChange&&S().catch(B=>Yr(B))},{deep:!0}),sn(Wu,vn({...zs(n),emit:r,resetFields:v,clearValidate:m,validateField:C,getField:f,addField:c,removeField:d,...q8e()})),t({validate:S,validateField:C,resetFields:v,clearValidate:m,scrollToField:I,fields:a}),(B,N)=>(he(),ke("form",{class:Ce(J(l))},[yt(B.$slots,"default")],2))}});var K8e=ir(j8e,[["__file","form.vue"]]);function kf(){return kf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kf.apply(this,arguments)}function W8e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,id(e,t)}function q3(e){return q3=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},q3(e)}function id(e,t){return id=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},id(e,t)}function G8e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Om(e,t,r){return G8e()?Om=Reflect.construct.bind():Om=function(a,i,o){var l=[null];l.push.apply(l,i);var f=Function.bind.apply(a,l),c=new f;return o&&id(c,o.prototype),c},Om.apply(null,arguments)}function Z8e(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function H3(e){var t=typeof Map=="function"?new Map:void 0;return H3=function(n){if(n===null||!Z8e(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return Om(n,arguments,q3(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),id(a,n)},H3(e)}var J8e=/%[sdj%]/g,wF=function(){};typeof fe<"u"&&fe.env&&fe.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(wF=function(t,r){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&r.every(function(n){return typeof n=="string"})&&console.warn(t,r)});function j3(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Ri(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=0,i=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var o=e.replace(J8e,function(l){if(l==="%%")return"%";if(a>=i)return l;switch(l){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch{return"[Circular]"}break;default:return l}});return o}return e}function Y8e(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function _n(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Y8e(t)&&typeof e=="string"&&!e)}function X8e(e,t,r){var n=[],a=0,i=e.length;function o(l){n.push.apply(n,l||[]),a++,a===i&&r(n)}e.forEach(function(l){t(l,o)})}function EF(e,t,r){var n=0,a=e.length;function i(o){if(o&&o.length){r(o);return}var l=n;n=n+1,l<a?t(e[l],i):r([])}i([])}function Q8e(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,e[r]||[])}),t}var xF=function(e){W8e(t,e);function t(r,n){var a;return a=e.call(this,"Async Validation Error")||this,a.errors=r,a.fields=n,a}return t}(H3(Error));function eMe(e,t,r,n,a){if(t.first){var i=new Promise(function(m,y){var b=function(C){return n(C),C.length?y(new xF(C,j3(C))):m(a)},S=Q8e(e);EF(S,r,b)});return i.catch(function(m){return m}),i}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),f=l.length,c=0,d=[],v=new Promise(function(m,y){var b=function(T){if(d.push.apply(d,T),c++,c===f)return n(d),d.length?y(new xF(d,j3(d))):m(a)};l.length||(n(d),m(a)),l.forEach(function(S){var T=e[S];o.indexOf(S)!==-1?EF(T,r,b):X8e(T,r,b)})});return v.catch(function(m){return m}),v}function tMe(e){return!!(e&&e.message!==void 0)}function rMe(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function SF(e,t){return function(r){var n;return e.fullFields?n=rMe(t,e.fullFields):n=t[r.field||e.fullField],tMe(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function MF(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];typeof n=="object"&&typeof e[r]=="object"?e[r]=kf({},e[r],n):e[r]=n}}return e}var CF=function(t,r,n,a,i,o){t.required&&(!n.hasOwnProperty(t.field)||_n(r,o||t.type))&&a.push(Ri(i.messages.required,t.fullField))},nMe=function(t,r,n,a,i){(/^\s+$/.test(r)||r==="")&&a.push(Ri(i.messages.whitespace,t.fullField))},Rm,iMe=function(){if(Rm)return Rm;var e="[a-fA-F\\d:]",t=function(N){return N&&N.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",a=(`
853
+ `)},{immediate:!0})},qSe=(e,t)=>{Cm({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},be(()=>e.type==="text"));const r=wt(oF,void 0),n=d3("button"),{form:a}=Gu(),i=el(be(()=>r==null?void 0:r.size)),o=vm(),l=Oe(),f=Pu(),c=be(()=>e.type||(r==null?void 0:r.type)||""),d=be(()=>{var b,S,T;return(T=(S=e.autoInsertSpace)!=null?S:(b=n.value)==null?void 0:b.autoInsertSpace)!=null?T:!1}),v=be(()=>e.tag==="button"?{ariaDisabled:o.value||e.loading,disabled:o.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),m=be(()=>{var b;const S=(b=f.default)==null?void 0:b.call(f);if(d.value&&(S==null?void 0:S.length)===1){const T=S[0];if((T==null?void 0:T.type)===Ks){const C=T.children;return/^\p{Unified_Ideograph}{2}$/u.test(C.trim())}}return!1});return{_disabled:o,_size:i,_type:c,_ref:l,_props:v,shouldAddSpace:m,handleClick:b=>{if(o.value||e.loading){b.stopPropagation();return}e.nativeType==="reset"&&(a==null||a.resetFields()),t("click",b)}}},L3=hr({size:ju,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:Ni},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:Ni,default:()=>sP},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:Tt([String,Object]),default:"button"}}),HSe={click:e=>e instanceof MouseEvent};function Fn(e,t){jSe(e)&&(e="100%");var r=KSe(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Tm(e){return Math.min(1,Math.max(0,e))}function jSe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function KSe(e){return typeof e=="string"&&e.indexOf("%")!==-1}function sF(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Am(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Bf(e){return e.length===1?"0"+e:String(e)}function WSe(e,t,r){return{r:Fn(e,255)*255,g:Fn(t,255)*255,b:Fn(r,255)*255}}function lF(e,t,r){e=Fn(e,255),t=Fn(t,255),r=Fn(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,o=0,l=(n+a)/2;if(n===a)o=0,i=0;else{var f=n-a;switch(o=l>.5?f/(2-n-a):f/(n+a),n){case e:i=(t-r)/f+(t<r?6:0);break;case t:i=(r-e)/f+2;break;case r:i=(e-t)/f+4;break}i/=6}return{h:i,s:o,l}}function D3(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function GSe(e,t,r){var n,a,i;if(e=Fn(e,360),t=Fn(t,100),r=Fn(r,100),t===0)a=r,i=r,n=r;else{var o=r<.5?r*(1+t):r+t-r*t,l=2*r-o;n=D3(l,o,e+1/3),a=D3(l,o,e),i=D3(l,o,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function fF(e,t,r){e=Fn(e,255),t=Fn(t,255),r=Fn(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,o=n,l=n-a,f=n===0?0:l/n;if(n===a)i=0;else{switch(n){case e:i=(t-r)/l+(t<r?6:0);break;case t:i=(r-e)/l+2;break;case r:i=(e-t)/l+4;break}i/=6}return{h:i,s:f,v:o}}function ZSe(e,t,r){e=Fn(e,360)*6,t=Fn(t,100),r=Fn(r,100);var n=Math.floor(e),a=e-n,i=r*(1-t),o=r*(1-a*t),l=r*(1-(1-a)*t),f=n%6,c=[r,o,i,i,l,r][f],d=[l,r,r,o,i,i][f],v=[i,i,l,r,r,o][f];return{r:c*255,g:d*255,b:v*255}}function uF(e,t,r,n){var a=[Bf(Math.round(e).toString(16)),Bf(Math.round(t).toString(16)),Bf(Math.round(r).toString(16))];return n&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function JSe(e,t,r,n,a){var i=[Bf(Math.round(e).toString(16)),Bf(Math.round(t).toString(16)),Bf(Math.round(r).toString(16)),Bf(YSe(n))];return a&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function YSe(e){return Math.round(parseFloat(e)*255).toString(16)}function cF(e){return Oi(e)/255}function Oi(e){return parseInt(e,16)}function XSe(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var $3={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function QSe(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,l=!1;return typeof e=="string"&&(e=r8e(e)),typeof e=="object"&&(os(e.r)&&os(e.g)&&os(e.b)?(t=WSe(e.r,e.g,e.b),o=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):os(e.h)&&os(e.s)&&os(e.v)?(n=Am(e.s),a=Am(e.v),t=ZSe(e.h,n,a),o=!0,l="hsv"):os(e.h)&&os(e.s)&&os(e.l)&&(n=Am(e.s),i=Am(e.l),t=GSe(e.h,n,i),o=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=sF(r),{ok:o,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var e8e="[-\\+]?\\d+%?",t8e="[-\\+]?\\d*\\.\\d+%?",nl="(?:".concat(t8e,")|(?:").concat(e8e,")"),U3="[\\s|\\(]+(".concat(nl,")[,|\\s]+(").concat(nl,")[,|\\s]+(").concat(nl,")\\s*\\)?"),z3="[\\s|\\(]+(".concat(nl,")[,|\\s]+(").concat(nl,")[,|\\s]+(").concat(nl,")[,|\\s]+(").concat(nl,")\\s*\\)?"),Fa={CSS_UNIT:new RegExp(nl),rgb:new RegExp("rgb"+U3),rgba:new RegExp("rgba"+z3),hsl:new RegExp("hsl"+U3),hsla:new RegExp("hsla"+z3),hsv:new RegExp("hsv"+U3),hsva:new RegExp("hsva"+z3),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function r8e(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if($3[e])e=$3[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=Fa.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=Fa.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Fa.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=Fa.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Fa.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=Fa.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Fa.hex8.exec(e),r?{r:Oi(r[1]),g:Oi(r[2]),b:Oi(r[3]),a:cF(r[4]),format:t?"name":"hex8"}:(r=Fa.hex6.exec(e),r?{r:Oi(r[1]),g:Oi(r[2]),b:Oi(r[3]),format:t?"name":"hex"}:(r=Fa.hex4.exec(e),r?{r:Oi(r[1]+r[1]),g:Oi(r[2]+r[2]),b:Oi(r[3]+r[3]),a:cF(r[4]+r[4]),format:t?"name":"hex8"}:(r=Fa.hex3.exec(e),r?{r:Oi(r[1]+r[1]),g:Oi(r[2]+r[2]),b:Oi(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function os(e){return!!Fa.CSS_UNIT.exec(String(e))}var hF=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=XSe(t)),this.originalInput=t;var a=QSe(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:a.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,a,i=t.r/255,o=t.g/255,l=t.b/255;return i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),l<=.03928?a=l/12.92:a=Math.pow((l+.055)/1.055,2.4),.2126*r+.7152*n+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=sF(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=fF(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=fF(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=lF(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=lF(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),uF(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),JSe(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(Fn(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(Fn(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+uF(this.r,this.g,this.b,!1),r=0,n=Object.entries($3);r<n.length;r++){var a=n[r],i=a[0],o=a[1];if(t===o)return i}return!1},e.prototype.toString=function(t){var r=!!t;t=t??this.format;var n=!1,a=this.a<1&&this.a>=0,i=!r&&a&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=Tm(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=Tm(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=Tm(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=Tm(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),a=new e(t).toRgb(),i=r/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return new e(o)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),a=360/r,i=[this];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(new e(n));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,a=r.s,i=r.v,o=[],l=1/t;t--;)o.push(new e({h:n,s:a,v:i})),i=(i+l)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb();return new e({r:n.r+(r.r-n.r)*r.a,g:n.g+(r.g-n.g)*r.a,b:n.b+(r.b-n.b)*r.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,a=[this],i=360/t,o=1;o<t;o++)a.push(new e({h:(n+o*i)%360,s:r.s,l:r.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function il(e,t=20){return e.mix("#141414",t).toString()}function n8e(e){const t=vm(),r=Gt("button");return be(()=>{let n={},a=e.color;if(a){const i=a.match(/var\((.*?)\)/);i&&(a=window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));const o=new hF(a),l=e.dark?o.tint(20).toString():il(o,20);if(e.plain)n=r.cssVarBlock({"bg-color":e.dark?il(o,90):o.tint(90).toString(),"text-color":a,"border-color":e.dark?il(o,50):o.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":l,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":l}),t.value&&(n[r.cssVarBlockName("disabled-bg-color")]=e.dark?il(o,90):o.tint(90).toString(),n[r.cssVarBlockName("disabled-text-color")]=e.dark?il(o,50):o.tint(50).toString(),n[r.cssVarBlockName("disabled-border-color")]=e.dark?il(o,80):o.tint(80).toString());else{const f=e.dark?il(o,30):o.tint(30).toString(),c=o.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(n=r.cssVarBlock({"bg-color":a,"text-color":c,"border-color":a,"hover-bg-color":f,"hover-text-color":c,"hover-border-color":f,"active-bg-color":l,"active-border-color":l}),t.value){const d=e.dark?il(o,50):o.tint(50).toString();n[r.cssVarBlockName("disabled-bg-color")]=d,n[r.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,n[r.cssVarBlockName("disabled-border-color")]=d}}}return n})}const i8e=rt({name:"ElButton"}),a8e=rt({...i8e,props:L3,emits:HSe,setup(e,{expose:t,emit:r}){const n=e,a=n8e(n),i=Gt("button"),{_ref:o,_size:l,_type:f,_disabled:c,_props:d,shouldAddSpace:v,handleClick:m}=qSe(n,r),y=be(()=>[i.b(),i.m(f.value),i.m(l.value),i.is("disabled",c.value),i.is("loading",n.loading),i.is("plain",n.plain),i.is("round",n.round),i.is("circle",n.circle),i.is("text",n.text),i.is("link",n.link),i.is("has-bg",n.bg)]);return t({ref:o,size:l,type:f,disabled:c,shouldAddSpace:v}),(b,S)=>(he(),nt(Nn(b.tag),sa({ref_key:"_ref",ref:o},J(d),{class:J(y),style:J(a),onClick:J(m)}),{default:lt(()=>[b.loading?(he(),ke(Ct,{key:0},[b.$slots.loading?yt(b.$slots,"loading",{key:0}):(he(),nt(J(Pn),{key:1,class:Ce(J(i).is("loading"))},{default:lt(()=>[(he(),nt(Nn(b.loadingIcon)))]),_:1},8,["class"]))],64)):b.icon||b.$slots.icon?(he(),nt(J(Pn),{key:1},{default:lt(()=>[b.icon?(he(),nt(Nn(b.icon),{key:0})):yt(b.$slots,"icon",{key:1})]),_:3})):Ye("v-if",!0),b.$slots.default?(he(),ke("span",{key:2,class:Ce({[J(i).em("text","expand")]:J(v)})},[yt(b.$slots,"default")],2)):Ye("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var o8e=ir(a8e,[["__file","button.vue"]]);const s8e={size:L3.size,type:L3.type},l8e=rt({name:"ElButtonGroup"}),f8e=rt({...l8e,props:s8e,setup(e){const t=e;sn(oF,vn({size:ia(t,"size"),type:ia(t,"type")}));const r=Gt("button");return(n,a)=>(he(),ke("div",{class:Ce(J(r).b("group"))},[yt(n.$slots,"default")],2))}});var dF=ir(f8e,[["__file","button-group.vue"]]);const Im=Rn(o8e,{ButtonGroup:dF});ns(dF);const Bm=e=>{const t=ot(e)?e:[e],r=[];return t.forEach(n=>{var a;ot(n)?r.push(...Bm(n)):Ma(n)&&((a=n.component)!=null&&a.subTree)?r.push(n,...Bm(n.component.subTree)):Ma(n)&&ot(n.children)?r.push(...Bm(n.children)):r.push(n)}),r},pF={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:ju,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...Tf(["ariaControls"])},vF={[ki]:e=>It(e)||Wn(e)||Mf(e),change:e=>It(e)||Wn(e)||Mf(e)},nc=Symbol("checkboxGroupContextKey"),u8e=({model:e,isChecked:t})=>{const r=wt(nc,void 0),n=be(()=>{var i,o;const l=(i=r==null?void 0:r.max)==null?void 0:i.value,f=(o=r==null?void 0:r.min)==null?void 0:o.value;return!es(l)&&e.value.length>=l&&!t.value||!es(f)&&e.value.length<=f&&t.value});return{isDisabled:vm(be(()=>(r==null?void 0:r.disabled.value)||n.value)),isLimitDisabled:n}},c8e=(e,{model:t,isLimitExceeded:r,hasOwnLabel:n,isDisabled:a,isLabeledByFormItem:i})=>{const o=wt(nc,void 0),{formItem:l}=Gu(),{emit:f}=Cr();function c(b){var S,T,C,I;return[!0,e.trueValue,e.trueLabel].includes(b)?(T=(S=e.trueValue)!=null?S:e.trueLabel)!=null?T:!0:(I=(C=e.falseValue)!=null?C:e.falseLabel)!=null?I:!1}function d(b,S){f("change",c(b),S)}function v(b){if(r.value)return;const S=b.target;f("change",c(S.checked),b)}async function m(b){r.value||!n.value&&!a.value&&i.value&&(b.composedPath().some(C=>C.tagName==="LABEL")||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await Xt(),d(t.value,b)))}const y=be(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return dt(()=>e.modelValue,()=>{y.value&&(l==null||l.validate("change").catch(b=>Yr(b)))}),{handleChange:v,onClickRoot:m}},h8e=e=>{const t=Oe(!1),{emit:r}=Cr(),n=wt(nc,void 0),a=be(()=>es(n)===!1),i=Oe(!1),o=be({get(){var l,f;return a.value?(l=n==null?void 0:n.modelValue)==null?void 0:l.value:(f=e.modelValue)!=null?f:t.value},set(l){var f,c;a.value&&ot(l)?(i.value=((f=n==null?void 0:n.max)==null?void 0:f.value)!==void 0&&l.length>(n==null?void 0:n.max.value)&&l.length>o.value.length,i.value===!1&&((c=n==null?void 0:n.changeEvent)==null||c.call(n,l))):(r(ki,l),t.value=l)}});return{model:o,isGroup:a,isLimitExceeded:i}},d8e=(e,t,{model:r})=>{const n=wt(nc,void 0),a=Oe(!1),i=be(()=>o3(e.value)?e.label:e.value),o=be(()=>{const d=r.value;return Mf(d)?d:ot(d)?At(i.value)?d.map(Nt).some(v=>Kh(v,i.value)):d.map(Nt).includes(i.value):d!=null?d===e.trueValue||d===e.trueLabel:!!d}),l=el(be(()=>{var d;return(d=n==null?void 0:n.size)==null?void 0:d.value}),{prop:!0}),f=el(be(()=>{var d;return(d=n==null?void 0:n.size)==null?void 0:d.value})),c=be(()=>!!t.default||!o3(i.value));return{checkboxButtonSize:l,isChecked:o,isFocused:a,checkboxSize:f,hasOwnLabel:c,actualValue:i}},mF=(e,t)=>{const{formItem:r}=Gu(),{model:n,isGroup:a,isLimitExceeded:i}=h8e(e),{isFocused:o,isChecked:l,checkboxButtonSize:f,checkboxSize:c,hasOwnLabel:d,actualValue:v}=d8e(e,t,{model:n}),{isDisabled:m}=u8e({model:n,isChecked:l}),{inputId:y,isLabeledByFormItem:b}=pm(e,{formItemContext:r,disableIdGeneration:d,disableIdManagement:a}),{handleChange:S,onClickRoot:T}=c8e(e,{model:n,isLimitExceeded:i,hasOwnLabel:d,isDisabled:m,isLabeledByFormItem:b});return(()=>{function I(){var B,N;ot(n.value)&&!n.value.includes(v.value)?n.value.push(v.value):n.value=(N=(B=e.trueValue)!=null?B:e.trueLabel)!=null?N:!0}e.checked&&I()})(),Cm({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},be(()=>a.value&&o3(e.value))),Cm({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},be(()=>!!e.trueLabel)),Cm({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},be(()=>!!e.falseLabel)),{inputId:y,isLabeledByFormItem:b,isChecked:l,isDisabled:m,isFocused:o,checkboxButtonSize:f,checkboxSize:c,hasOwnLabel:d,model:n,actualValue:v,handleChange:S,onClickRoot:T}},p8e=rt({name:"ElCheckbox"}),v8e=rt({...p8e,props:pF,emits:vF,setup(e){const t=e,r=Pu(),{inputId:n,isLabeledByFormItem:a,isChecked:i,isDisabled:o,isFocused:l,checkboxSize:f,hasOwnLabel:c,model:d,actualValue:v,handleChange:m,onClickRoot:y}=mF(t,r),b=Gt("checkbox"),S=be(()=>[b.b(),b.m(f.value),b.is("disabled",o.value),b.is("bordered",t.border),b.is("checked",i.value)]),T=be(()=>[b.e("input"),b.is("disabled",o.value),b.is("checked",i.value),b.is("indeterminate",t.indeterminate),b.is("focus",l.value)]);return(C,I)=>(he(),nt(Nn(!J(c)&&J(a)?"span":"label"),{class:Ce(J(S)),"aria-controls":C.indeterminate?C.ariaControls:null,onClick:J(y)},{default:lt(()=>{var B,N,R,P;return[ze("span",{class:Ce(J(T))},[C.trueValue||C.falseValue||C.trueLabel||C.falseLabel?tn((he(),ke("input",{key:0,id:J(n),"onUpdate:modelValue":D=>gr(d)?d.value=D:null,class:Ce(J(b).e("original")),type:"checkbox",indeterminate:C.indeterminate,name:C.name,tabindex:C.tabindex,disabled:J(o),"true-value":(N=(B=C.trueValue)!=null?B:C.trueLabel)!=null?N:!0,"false-value":(P=(R=C.falseValue)!=null?R:C.falseLabel)!=null?P:!1,onChange:J(m),onFocus:D=>l.value=!0,onBlur:D=>l.value=!1,onClick:rn(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[Pv,J(d)]]):tn((he(),ke("input",{key:1,id:J(n),"onUpdate:modelValue":D=>gr(d)?d.value=D:null,class:Ce(J(b).e("original")),type:"checkbox",indeterminate:C.indeterminate,disabled:J(o),value:J(v),name:C.name,tabindex:C.tabindex,onChange:J(m),onFocus:D=>l.value=!0,onBlur:D=>l.value=!1,onClick:rn(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[Pv,J(d)]]),ze("span",{class:Ce(J(b).e("inner"))},null,2)],2),J(c)?(he(),ke("span",{key:0,class:Ce(J(b).e("label"))},[yt(C.$slots,"default"),C.$slots.default?Ye("v-if",!0):(he(),ke(Ct,{key:0},[Cn(st(C.label),1)],64))],2)):Ye("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var m8e=ir(v8e,[["__file","checkbox.vue"]]);const g8e=rt({name:"ElCheckboxButton"}),y8e=rt({...g8e,props:pF,emits:vF,setup(e){const t=e,r=Pu(),{isFocused:n,isChecked:a,isDisabled:i,checkboxButtonSize:o,model:l,actualValue:f,handleChange:c}=mF(t,r),d=wt(nc,void 0),v=Gt("checkbox"),m=be(()=>{var b,S,T,C;const I=(S=(b=d==null?void 0:d.fill)==null?void 0:b.value)!=null?S:"";return{backgroundColor:I,borderColor:I,color:(C=(T=d==null?void 0:d.textColor)==null?void 0:T.value)!=null?C:"",boxShadow:I?`-1px 0 0 0 ${I}`:void 0}}),y=be(()=>[v.b("button"),v.bm("button",o.value),v.is("disabled",i.value),v.is("checked",a.value),v.is("focus",n.value)]);return(b,S)=>{var T,C,I,B;return he(),ke("label",{class:Ce(J(y))},[b.trueValue||b.falseValue||b.trueLabel||b.falseLabel?tn((he(),ke("input",{key:0,"onUpdate:modelValue":N=>gr(l)?l.value=N:null,class:Ce(J(v).be("button","original")),type:"checkbox",name:b.name,tabindex:b.tabindex,disabled:J(i),"true-value":(C=(T=b.trueValue)!=null?T:b.trueLabel)!=null?C:!0,"false-value":(B=(I=b.falseValue)!=null?I:b.falseLabel)!=null?B:!1,onChange:J(c),onFocus:N=>n.value=!0,onBlur:N=>n.value=!1,onClick:rn(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[Pv,J(l)]]):tn((he(),ke("input",{key:1,"onUpdate:modelValue":N=>gr(l)?l.value=N:null,class:Ce(J(v).be("button","original")),type:"checkbox",name:b.name,tabindex:b.tabindex,disabled:J(i),value:J(f),onChange:J(c),onFocus:N=>n.value=!0,onBlur:N=>n.value=!1,onClick:rn(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[Pv,J(l)]]),b.$slots.default||b.label?(he(),ke("span",{key:2,class:Ce(J(v).be("button","inner")),style:en(J(a)?J(m):void 0)},[yt(b.$slots,"default",{},()=>[Cn(st(b.label),1)])],6)):Ye("v-if",!0)],2)}}});var gF=ir(y8e,[["__file","checkbox-button.vue"]]);const b8e=hr({modelValue:{type:Tt(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:ju,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...Tf(["ariaLabel"])}),_8e={[ki]:e=>ot(e),change:e=>ot(e)},w8e=rt({name:"ElCheckboxGroup"}),E8e=rt({...w8e,props:b8e,emits:_8e,setup(e,{emit:t}){const r=e,n=Gt("checkbox"),{formItem:a}=Gu(),{inputId:i,isLabeledByFormItem:o}=pm(r,{formItemContext:a}),l=async c=>{t(ki,c),await Xt(),t("change",c)},f=be({get(){return r.modelValue},set(c){l(c)}});return sn(nc,{...BR(zs(r),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:f,changeEvent:l}),dt(()=>r.modelValue,()=>{r.validateEvent&&(a==null||a.validate("change").catch(c=>Yr(c)))}),(c,d)=>{var v;return he(),nt(Nn(c.tag),{id:J(i),class:Ce(J(n).b("group")),role:"group","aria-label":J(o)?void 0:c.ariaLabel||"checkbox-group","aria-labelledby":J(o)?(v=J(a))==null?void 0:v.labelId:void 0},{default:lt(()=>[yt(c.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var yF=ir(E8e,[["__file","checkbox-group.vue"]]);const x8e=Rn(m8e,{CheckboxButton:gF,CheckboxGroup:yF});ns(gF);const S8e=ns(yF),M8e=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),V3=hr({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:um},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),C8e={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},T8e=rt({name:"ElTag"}),A8e=rt({...T8e,props:V3,emits:C8e,setup(e,{emit:t}){const r=e,n=el(),a=Gt("tag"),i=be(()=>{const{type:c,hit:d,effect:v,closable:m,round:y}=r;return[a.b(),a.is("closable",m),a.m(c||"primary"),a.m(n.value),a.m(v),a.is("hit",d),a.is("round",y)]}),o=c=>{t("close",c)},l=c=>{t("click",c)},f=c=>{var d,v,m;(m=(v=(d=c==null?void 0:c.component)==null?void 0:d.subTree)==null?void 0:v.component)!=null&&m.bum&&(c.component.subTree.component.bum=null)};return(c,d)=>c.disableTransitions?(he(),ke("span",{key:0,class:Ce(J(i)),style:en({backgroundColor:c.color}),onClick:l},[ze("span",{class:Ce(J(a).e("content"))},[yt(c.$slots,"default")],2),c.closable?(he(),nt(J(Pn),{key:0,class:Ce(J(a).e("close")),onClick:rn(o,["stop"])},{default:lt(()=>[Et(J(hm))]),_:1},8,["class","onClick"])):Ye("v-if",!0)],6)):(he(),nt(mo,{key:1,name:`${J(a).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:f},{default:lt(()=>[ze("span",{class:Ce(J(i)),style:en({backgroundColor:c.color}),onClick:l},[ze("span",{class:Ce(J(a).e("content"))},[yt(c.$slots,"default")],2),c.closable?(he(),nt(J(Pn),{key:0,class:Ce(J(a).e("close")),onClick:rn(o,["stop"])},{default:lt(()=>[Et(J(hm))]),_:1},8,["class","onClick"])):Ye("v-if",!0)],6)]),_:3},8,["name"]))}});var I8e=ir(A8e,[["__file","tag.vue"]]);const B8e=Rn(I8e),al=new Map;if(ln){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const r of al.values())for(const{documentHandler:n}of r)n(t,e);e=void 0}})}function bF(e,t){let r=[];return ot(t.arg)?r=t.arg:ts(t.arg)&&r.push(t.arg),function(n,a){const i=t.instance.popperRef,o=n.target,l=a==null?void 0:a.target,f=!t||!t.instance,c=!o||!l,d=e.contains(o)||e.contains(l),v=e===o,m=r.length&&r.some(b=>b==null?void 0:b.contains(o))||r.length&&r.includes(l),y=i&&(i.contains(o)||i.contains(l));f||c||d||v||m||y||t.value(n,a)}}const _F={beforeMount(e,t){al.has(e)||al.set(e,[]),al.get(e).push({documentHandler:bF(e,t),bindingFn:t.value})},updated(e,t){al.has(e)||al.set(e,[]);const r=al.get(e),n=r.findIndex(i=>i.bindingFn===t.oldValue),a={documentHandler:bF(e,t),bindingFn:t.value};n>=0?r.splice(n,1,a):r.push(a)},unmounted(e){al.delete(e)}},k8e=rt({name:"ElCollapseTransition"}),N8e=rt({...k8e,setup(e){const t=Gt("collapse-transition"),r=a=>{a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom},n={beforeEnter(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.style.height&&(a.dataset.elExistsHeight=a.style.height),a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0},enter(a){requestAnimationFrame(()=>{a.dataset.oldOverflow=a.style.overflow,a.dataset.elExistsHeight?a.style.maxHeight=a.dataset.elExistsHeight:a.scrollHeight!==0?a.style.maxHeight=`${a.scrollHeight}px`:a.style.maxHeight=0,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom,a.style.overflow="hidden"})},afterEnter(a){a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow},enterCancelled(a){r(a)},beforeLeave(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.dataset.oldOverflow=a.style.overflow,a.style.maxHeight=`${a.scrollHeight}px`,a.style.overflow="hidden"},leave(a){a.scrollHeight!==0&&(a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0)},afterLeave(a){r(a)},leaveCancelled(a){r(a)}};return(a,i)=>(he(),nt(mo,sa({name:J(t).b()},xme(n)),{default:lt(()=>[yt(a.$slots,"default")]),_:3},16,["name"]))}});var O8e=ir(N8e,[["__file","collapse-transition.vue"]]);const R8e=Rn(O8e),P8e=hr({a11y:{type:Boolean,default:!0},locale:{type:Tt(Object)},size:ju,button:{type:Tt(Object)},experimentalFeatures:{type:Tt(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Tt(Object)},zIndex:Number,namespace:{type:String,default:"el"},...QR}),F8e={},L8e=rt({name:"ElConfigProvider",props:P8e,setup(e,{slots:t}){dt(()=>e.message,n=>{Object.assign(F8e,n??{})},{immediate:!0,deep:!0});const r=tP(e);return()=>yt(t,"default",{config:r==null?void 0:r.value})}}),D8e=Rn(L8e),$8e=hr({size:{type:String,values:um},disabled:Boolean}),U8e=hr({...$8e,model:Object,rules:{type:Tt(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),z8e={validate:(e,t,r)=>(ot(e)||It(e))&&Mf(t)&&It(r)},V8e="ElForm";function q8e(){const e=Oe([]),t=be(()=>{if(!e.value.length)return"0";const i=Math.max(...e.value);return i?`${i}px`:""});function r(i){const o=e.value.indexOf(i);return o===-1&&t.value==="0"&&Yr(V8e,`unexpected width ${i}`),o}function n(i,o){if(i&&o){const l=r(o);e.value.splice(l,1,i)}else i&&e.value.push(i)}function a(i){const o=r(i);o>-1&&e.value.splice(o,1)}return{autoLabelWidth:t,registerLabelWidth:n,deregisterLabelWidth:a}}const km=(e,t)=>{const r=Na(t);return r.length>0?e.filter(n=>n.prop&&r.includes(n.prop)):e},Nm="ElForm",H8e=rt({name:Nm}),j8e=rt({...H8e,props:U8e,emits:z8e,setup(e,{expose:t,emit:r}){const n=e,a=[],i=el(),o=Gt("form"),l=be(()=>{const{labelPosition:B,inline:N}=n;return[o.b(),o.m(i.value||"default"),{[o.m(`label-${B}`)]:B,[o.m("inline")]:N}]}),f=B=>a.find(N=>N.prop===B),c=B=>{a.push(B)},d=B=>{B.prop&&a.splice(a.indexOf(B),1)},v=(B=[])=>{if(!n.model){Yr(Nm,"model is required for resetFields to work.");return}km(a,B).forEach(N=>N.resetField())},m=(B=[])=>{km(a,B).forEach(N=>N.clearValidate())},y=be(()=>{const B=!!n.model;return B||Yr(Nm,"model is required for validate to work."),B}),b=B=>{if(a.length===0)return[];const N=km(a,B);return N.length?N:(Yr(Nm,"please pass correct props!"),[])},S=async B=>C(void 0,B),T=async(B=[])=>{if(!y.value)return!1;const N=b(B);if(N.length===0)return!0;let R={};for(const P of N)try{await P.validate("")}catch(D){R={...R,...D}}return Object.keys(R).length===0?!0:Promise.reject(R)},C=async(B=[],N)=>{const R=!vt(N);try{const P=await T(B);return P===!0&&await(N==null?void 0:N(P)),P}catch(P){if(P instanceof Error)throw P;const D=P;return n.scrollToError&&I(Object.keys(D)[0]),await(N==null?void 0:N(!1,D)),R&&Promise.reject(D)}},I=B=>{var N;const R=km(a,B)[0];R&&((N=R.$el)==null||N.scrollIntoView(n.scrollIntoViewOptions))};return dt(()=>n.rules,()=>{n.validateOnRuleChange&&S().catch(B=>Yr(B))},{deep:!0}),sn(Wu,vn({...zs(n),emit:r,resetFields:v,clearValidate:m,validateField:C,getField:f,addField:c,removeField:d,...q8e()})),t({validate:S,validateField:C,resetFields:v,clearValidate:m,scrollToField:I,fields:a}),(B,N)=>(he(),ke("form",{class:Ce(J(l))},[yt(B.$slots,"default")],2))}});var K8e=ir(j8e,[["__file","form.vue"]]);function kf(){return kf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kf.apply(this,arguments)}function W8e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,id(e,t)}function q3(e){return q3=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},q3(e)}function id(e,t){return id=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},id(e,t)}function G8e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Om(e,t,r){return G8e()?Om=Reflect.construct.bind():Om=function(a,i,o){var l=[null];l.push.apply(l,i);var f=Function.bind.apply(a,l),c=new f;return o&&id(c,o.prototype),c},Om.apply(null,arguments)}function Z8e(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function H3(e){var t=typeof Map=="function"?new Map:void 0;return H3=function(n){if(n===null||!Z8e(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return Om(n,arguments,q3(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),id(a,n)},H3(e)}var J8e=/%[sdj%]/g,wF=function(){};typeof fe<"u"&&fe.env&&fe.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(wF=function(t,r){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&r.every(function(n){return typeof n=="string"})&&console.warn(t,r)});function j3(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Ri(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=0,i=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var o=e.replace(J8e,function(l){if(l==="%%")return"%";if(a>=i)return l;switch(l){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch{return"[Circular]"}break;default:return l}});return o}return e}function Y8e(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function _n(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Y8e(t)&&typeof e=="string"&&!e)}function X8e(e,t,r){var n=[],a=0,i=e.length;function o(l){n.push.apply(n,l||[]),a++,a===i&&r(n)}e.forEach(function(l){t(l,o)})}function EF(e,t,r){var n=0,a=e.length;function i(o){if(o&&o.length){r(o);return}var l=n;n=n+1,l<a?t(e[l],i):r([])}i([])}function Q8e(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,e[r]||[])}),t}var xF=function(e){W8e(t,e);function t(r,n){var a;return a=e.call(this,"Async Validation Error")||this,a.errors=r,a.fields=n,a}return t}(H3(Error));function eMe(e,t,r,n,a){if(t.first){var i=new Promise(function(m,y){var b=function(C){return n(C),C.length?y(new xF(C,j3(C))):m(a)},S=Q8e(e);EF(S,r,b)});return i.catch(function(m){return m}),i}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),f=l.length,c=0,d=[],v=new Promise(function(m,y){var b=function(T){if(d.push.apply(d,T),c++,c===f)return n(d),d.length?y(new xF(d,j3(d))):m(a)};l.length||(n(d),m(a)),l.forEach(function(S){var T=e[S];o.indexOf(S)!==-1?EF(T,r,b):X8e(T,r,b)})});return v.catch(function(m){return m}),v}function tMe(e){return!!(e&&e.message!==void 0)}function rMe(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function SF(e,t){return function(r){var n;return e.fullFields?n=rMe(t,e.fullFields):n=t[r.field||e.fullField],tMe(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function MF(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];typeof n=="object"&&typeof e[r]=="object"?e[r]=kf({},e[r],n):e[r]=n}}return e}var CF=function(t,r,n,a,i,o){t.required&&(!n.hasOwnProperty(t.field)||_n(r,o||t.type))&&a.push(Ri(i.messages.required,t.fullField))},nMe=function(t,r,n,a,i){(/^\s+$/.test(r)||r==="")&&a.push(Ri(i.messages.whitespace,t.fullField))},Rm,iMe=function(){if(Rm)return Rm;var e="[a-fA-F\\d:]",t=function(N){return N&&N.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",a=(`
854
854
  (?:
855
855
  (?:`+n+":){7}(?:"+n+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
856
856
  (?:`+n+":){6}(?:"+r+"|:"+n+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
@@ -861,9 +861,9 @@ For more detail, please visit: ${a}
861
861
  (?:`+n+":){1}(?:(?::"+n+"){0,4}:"+r+"|(?::"+n+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
862
862
  (?::(?:(?::`+n+"){0,5}:"+r+"|(?::"+n+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
863
863
  )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
864
- `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+r+"$)|(?:^"+a+"$)"),o=new RegExp("^"+r+"$"),l=new RegExp("^"+a+"$"),f=function(N){return N&&N.exact?i:new RegExp("(?:"+t(N)+r+t(N)+")|(?:"+t(N)+a+t(N)+")","g")};f.v4=function(B){return B&&B.exact?o:new RegExp(""+t(B)+r+t(B),"g")},f.v6=function(B){return B&&B.exact?l:new RegExp(""+t(B)+a+t(B),"g")};var c="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",v=f.v4().source,m=f.v6().source,y="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",S="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",T="(?::\\d{2,5})?",C='(?:[/?#][^\\s"]*)?',I="(?:"+c+"|www\\.)"+d+"(?:localhost|"+v+"|"+m+"|"+y+b+S+")"+T+C;return Rm=new RegExp("(?:^"+I+"$)","i"),Rm},TF={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ad={integer:function(t){return ad.number(t)&&parseInt(t,10)===t},float:function(t){return ad.number(t)&&!ad.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!ad.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(TF.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(iMe())},hex:function(t){return typeof t=="string"&&!!t.match(TF.hex)}},aMe=function(t,r,n,a,i){if(t.required&&r===void 0){CF(t,r,n,a,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;o.indexOf(l)>-1?ad[l](r)||a.push(Ri(i.messages.types[l],t.fullField,t.type)):l&&typeof r!==t.type&&a.push(Ri(i.messages.types[l],t.fullField,t.type))},oMe=function(t,r,n,a,i){var o=typeof t.len=="number",l=typeof t.min=="number",f=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,v=null,m=typeof r=="number",y=typeof r=="string",b=Array.isArray(r);if(m?v="number":y?v="string":b&&(v="array"),!v)return!1;b&&(d=r.length),y&&(d=r.replace(c,"_").length),o?d!==t.len&&a.push(Ri(i.messages[v].len,t.fullField,t.len)):l&&!f&&d<t.min?a.push(Ri(i.messages[v].min,t.fullField,t.min)):f&&!l&&d>t.max?a.push(Ri(i.messages[v].max,t.fullField,t.max)):l&&f&&(d<t.min||d>t.max)&&a.push(Ri(i.messages[v].range,t.fullField,t.min,t.max))},ic="enum",sMe=function(t,r,n,a,i){t[ic]=Array.isArray(t[ic])?t[ic]:[],t[ic].indexOf(r)===-1&&a.push(Ri(i.messages[ic],t.fullField,t[ic].join(", ")))},lMe=function(t,r,n,a,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||a.push(Ri(i.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(r)||a.push(Ri(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Qt={required:CF,whitespace:nMe,type:aMe,range:oMe,enum:sMe,pattern:lMe},fMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(_n(r,"string")&&!t.required)return n();Qt.required(t,r,a,o,i,"string"),_n(r,"string")||(Qt.type(t,r,a,o,i),Qt.range(t,r,a,o,i),Qt.pattern(t,r,a,o,i),t.whitespace===!0&&Qt.whitespace(t,r,a,o,i))}n(o)},uMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(_n(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&Qt.type(t,r,a,o,i)}n(o)},cMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(r===""&&(r=void 0),_n(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&(Qt.type(t,r,a,o,i),Qt.range(t,r,a,o,i))}n(o)},hMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(_n(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&Qt.type(t,r,a,o,i)}n(o)},dMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(_n(r)&&!t.required)return n();Qt.required(t,r,a,o,i),_n(r)||Qt.type(t,r,a,o,i)}n(o)},pMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(_n(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&(Qt.type(t,r,a,o,i),Qt.range(t,r,a,o,i))}n(o)},vMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(_n(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&(Qt.type(t,r,a,o,i),Qt.range(t,r,a,o,i))}n(o)},mMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(r==null&&!t.required)return n();Qt.required(t,r,a,o,i,"array"),r!=null&&(Qt.type(t,r,a,o,i),Qt.range(t,r,a,o,i))}n(o)},gMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(_n(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&Qt.type(t,r,a,o,i)}n(o)},yMe="enum",bMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(_n(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&Qt[yMe](t,r,a,o,i)}n(o)},_Me=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(_n(r,"string")&&!t.required)return n();Qt.required(t,r,a,o,i),_n(r,"string")||Qt.pattern(t,r,a,o,i)}n(o)},wMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(_n(r,"date")&&!t.required)return n();if(Qt.required(t,r,a,o,i),!_n(r,"date")){var f;r instanceof Date?f=r:f=new Date(r),Qt.type(t,f,a,o,i),f&&Qt.range(t,f.getTime(),a,o,i)}}n(o)},EMe=function(t,r,n,a,i){var o=[],l=Array.isArray(r)?"array":typeof r;Qt.required(t,r,a,o,i,l),n(o)},K3=function(t,r,n,a,i){var o=t.type,l=[],f=t.required||!t.required&&a.hasOwnProperty(t.field);if(f){if(_n(r,o)&&!t.required)return n();Qt.required(t,r,a,l,i,o),_n(r,o)||Qt.type(t,r,a,l,i)}n(l)},xMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(_n(r)&&!t.required)return n();Qt.required(t,r,a,o,i)}n(o)},od={string:fMe,method:uMe,number:cMe,boolean:hMe,regexp:dMe,integer:pMe,float:vMe,array:mMe,object:gMe,enum:bMe,pattern:_Me,date:wMe,url:K3,hex:K3,email:K3,required:EMe,any:xMe};function W3(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var G3=W3(),sd=function(){function e(r){this.rules=null,this._messages=G3,this.define(r)}var t=e.prototype;return t.define=function(n){var a=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var o=n[i];a.rules[i]=Array.isArray(o)?o:[o]})},t.messages=function(n){return n&&(this._messages=MF(W3(),n)),this._messages},t.validate=function(n,a,i){var o=this;a===void 0&&(a={}),i===void 0&&(i=function(){});var l=n,f=a,c=i;if(typeof f=="function"&&(c=f,f={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function d(S){var T=[],C={};function I(N){if(Array.isArray(N)){var R;T=(R=T).concat.apply(R,N)}else T.push(N)}for(var B=0;B<S.length;B++)I(S[B]);T.length?(C=j3(T),c(T,C)):c(null,l)}if(f.messages){var v=this.messages();v===G3&&(v=W3()),MF(v,f.messages),f.messages=v}else f.messages=this.messages();var m={},y=f.keys||Object.keys(this.rules);y.forEach(function(S){var T=o.rules[S],C=l[S];T.forEach(function(I){var B=I;typeof B.transform=="function"&&(l===n&&(l=kf({},l)),C=l[S]=B.transform(C)),typeof B=="function"?B={validator:B}:B=kf({},B),B.validator=o.getValidationMethod(B),B.validator&&(B.field=S,B.fullField=B.fullField||S,B.type=o.getType(B),m[S]=m[S]||[],m[S].push({rule:B,value:C,source:l,field:S}))})});var b={};return eMe(m,f,function(S,T){var C=S.rule,I=(C.type==="object"||C.type==="array")&&(typeof C.fields=="object"||typeof C.defaultField=="object");I=I&&(C.required||!C.required&&S.value),C.field=S.field;function B(P,D){return kf({},D,{fullField:C.fullField+"."+P,fullFields:C.fullFields?[].concat(C.fullFields,[P]):[P]})}function N(P){P===void 0&&(P=[]);var D=Array.isArray(P)?P:[P];!f.suppressWarning&&D.length&&e.warning("async-validator:",D),D.length&&C.message!==void 0&&(D=[].concat(C.message));var $=D.map(SF(C,l));if(f.first&&$.length)return b[C.field]=1,T($);if(!I)T($);else{if(C.required&&!S.value)return C.message!==void 0?$=[].concat(C.message).map(SF(C,l)):f.error&&($=[f.error(C,Ri(f.messages.required,C.field))]),T($);var U={};C.defaultField&&Object.keys(S.value).map(function(s){U[s]=C.defaultField}),U=kf({},U,S.rule.fields);var K={};Object.keys(U).forEach(function(s){var h=U[s],p=Array.isArray(h)?h:[h];K[s]=p.map(B.bind(null,s))});var M=new e(K);M.messages(f.messages),S.rule.options&&(S.rule.options.messages=f.messages,S.rule.options.error=f.error),M.validate(S.value,S.rule.options||f,function(s){var h=[];$&&$.length&&h.push.apply(h,$),s&&s.length&&h.push.apply(h,s),T(h.length?h:null)})}}var R;if(C.asyncValidator)R=C.asyncValidator(C,S.value,N,S.source,f);else if(C.validator){try{R=C.validator(C,S.value,N,S.source,f)}catch(P){console.error==null||console.error(P),f.suppressValidatorError||setTimeout(function(){throw P},0),N(P.message)}R===!0?N():R===!1?N(typeof C.message=="function"?C.message(C.fullField||C.field):C.message||(C.fullField||C.field)+" fails"):R instanceof Array?N(R):R instanceof Error&&N(R.message)}R&&R.then&&R.then(function(){return N()},function(P){return N(P)})},function(S){d(S)},l)},t.getType=function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!od.hasOwnProperty(n.type))throw new Error(Ri("Unknown rule type %s",n.type));return n.type||"string"},t.getValidationMethod=function(n){if(typeof n.validator=="function")return n.validator;var a=Object.keys(n),i=a.indexOf("message");return i!==-1&&a.splice(i,1),a.length===1&&a[0]==="required"?od.required:od[this.getType(n)]||void 0},e}();sd.register=function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");od[t]=r},sd.warning=wF,sd.messages=G3,sd.validators=od;const SMe=["","error","validating","success"],MMe=hr({label:String,labelWidth:{type:[String,Number],default:""},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:Tt([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Tt([Object,Array])},error:String,validateStatus:{type:String,values:SMe},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:um}}),AF="ElLabelWrap";var CMe=rt({name:AF,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const r=wt(Wu,void 0),n=wt(Af);n||Hu(AF,"usage: <el-form-item><label-wrap /></el-form-item>");const a=Gt("form"),i=Oe(),o=Oe(0),l=()=>{var d;if((d=i.value)!=null&&d.firstElementChild){const v=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(v))}else return 0},f=(d="update")=>{Xt(()=>{t.default&&e.isAutoWidth&&(d==="update"?o.value=l():d==="remove"&&(r==null||r.deregisterLabelWidth(o.value)))})},c=()=>f("update");return ur(()=>{c()}),gn(()=>{f("remove")}),xh(()=>c()),dt(o,(d,v)=>{e.updateAll&&(r==null||r.registerLabelWidth(d,v))}),Oa(be(()=>{var d,v;return(v=(d=i.value)==null?void 0:d.firstElementChild)!=null?v:null}),c),()=>{var d,v;if(!t)return null;const{isAutoWidth:m}=e;if(m){const y=r==null?void 0:r.autoLabelWidth,b=n==null?void 0:n.hasLabel,S={};if(b&&y&&y!=="auto"){const T=Math.max(0,Number.parseInt(y,10)-o.value),I=(n.labelPosition||r.labelPosition)==="left"?"marginRight":"marginLeft";T&&(S[I]=`${T}px`)}return Et("div",{ref:i,class:[a.be("item","label-wrap")],style:S},[(d=t.default)==null?void 0:d.call(t)])}else return Et(Ct,{ref:i},[(v=t.default)==null?void 0:v.call(t)])}}});const TMe=rt({name:"ElFormItem"}),AMe=rt({...TMe,props:MMe,setup(e,{expose:t}){const r=e,n=Pu(),a=wt(Wu,void 0),i=wt(Af,void 0),o=el(void 0,{formItem:!1}),l=Gt("form-item"),f=Jh().value,c=Oe([]),d=Oe(""),v=G3e(d,100),m=Oe(""),y=Oe();let b,S=!1;const T=be(()=>r.labelPosition||(a==null?void 0:a.labelPosition)),C=be(()=>{if(T.value==="top")return{};const ie=Zh(r.labelWidth||(a==null?void 0:a.labelWidth)||"");return ie?{width:ie}:{}}),I=be(()=>{if(T.value==="top"||a!=null&&a.inline)return{};if(!r.label&&!r.labelWidth&&K)return{};const ie=Zh(r.labelWidth||(a==null?void 0:a.labelWidth)||"");return!r.label&&!n.label?{marginLeft:ie}:{}}),B=be(()=>[l.b(),l.m(o.value),l.is("error",d.value==="error"),l.is("validating",d.value==="validating"),l.is("success",d.value==="success"),l.is("required",g.value||r.required),l.is("no-asterisk",a==null?void 0:a.hideRequiredAsterisk),(a==null?void 0:a.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[l.m("feedback")]:a==null?void 0:a.statusIcon,[l.m(`label-${T.value}`)]:T.value}]),N=be(()=>Mf(r.inlineMessage)?r.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),R=be(()=>[l.e("error"),{[l.em("error","inline")]:N.value}]),P=be(()=>r.prop?It(r.prop)?r.prop:r.prop.join("."):""),D=be(()=>!!(r.label||n.label)),$=be(()=>r.for||(c.value.length===1?c.value[0]:void 0)),U=be(()=>!$.value&&D.value),K=!!i,M=be(()=>{const ie=a==null?void 0:a.model;if(!(!ie||!r.prop))return h3(ie,r.prop).value}),s=be(()=>{const{required:ie}=r,ne=[];r.rules&&ne.push(...Na(r.rules));const ce=a==null?void 0:a.rules;if(ce&&r.prop){const te=h3(ce,r.prop).value;te&&ne.push(...Na(te))}if(ie!==void 0){const te=ne.map((Z,j)=>[Z,j]).filter(([Z])=>Object.keys(Z).includes("required"));if(te.length>0)for(const[Z,j]of te)Z.required!==ie&&(ne[j]={...Z,required:ie});else ne.push({required:ie})}return ne}),h=be(()=>s.value.length>0),p=ie=>s.value.filter(ce=>!ce.trigger||!ie?!0:ot(ce.trigger)?ce.trigger.includes(ie):ce.trigger===ie).map(({trigger:ce,...te})=>te),g=be(()=>s.value.some(ie=>ie.required)),_=be(()=>{var ie;return v.value==="error"&&r.showMessage&&((ie=a==null?void 0:a.showMessage)!=null?ie:!0)}),w=be(()=>`${r.label||""}${(a==null?void 0:a.labelSuffix)||""}`),A=ie=>{d.value=ie},E=ie=>{var ne,ce;const{errors:te,fields:Z}=ie;(!te||!Z)&&console.error(ie),A("error"),m.value=te?(ce=(ne=te==null?void 0:te[0])==null?void 0:ne.message)!=null?ce:`${r.prop} is required`:"",a==null||a.emit("validate",r.prop,!1,m.value)},u=()=>{A("success"),a==null||a.emit("validate",r.prop,!0,"")},x=async ie=>{const ne=P.value;return new sd({[ne]:ie}).validate({[ne]:M.value},{firstFields:!0}).then(()=>(u(),!0)).catch(te=>(E(te),Promise.reject(te)))},k=async(ie,ne)=>{if(S||!r.prop)return!1;const ce=vt(ne);if(!h.value)return ne==null||ne(!1),!1;const te=p(ie);return te.length===0?(ne==null||ne(!0),!0):(A("validating"),x(te).then(()=>(ne==null||ne(!0),!0)).catch(Z=>{const{fields:j}=Z;return ne==null||ne(!1,j),ce?!1:Promise.reject(j)}))},O=()=>{A(""),m.value="",S=!1},q=async()=>{const ie=a==null?void 0:a.model;if(!ie||!r.prop)return;const ne=h3(ie,r.prop);S=!0,ne.value=_R(b),await Xt(),O(),S=!1},Y=ie=>{c.value.includes(ie)||c.value.push(ie)},W=ie=>{c.value=c.value.filter(ne=>ne!==ie)};dt(()=>r.error,ie=>{m.value=ie||"",A(ie?"error":"")},{immediate:!0}),dt(()=>r.validateStatus,ie=>A(ie||""));const X=vn({...zs(r),$el:y,size:o,validateState:d,labelId:f,inputIds:c,isGroup:U,hasLabel:D,fieldValue:M,addInputId:Y,removeInputId:W,resetField:q,clearValidate:O,validate:k});return sn(Af,X),ur(()=>{r.prop&&(a==null||a.addField(X),b=_R(M.value))}),gn(()=>{a==null||a.removeField(X)}),t({size:o,validateMessage:m,validateState:d,validate:k,clearValidate:O,resetField:q}),(ie,ne)=>{var ce;return he(),ke("div",{ref_key:"formItemRef",ref:y,class:Ce(J(B)),role:J(U)?"group":void 0,"aria-labelledby":J(U)?J(f):void 0},[Et(J(CMe),{"is-auto-width":J(C).width==="auto","update-all":((ce=J(a))==null?void 0:ce.labelWidth)==="auto"},{default:st(()=>[J(D)?(he(),nt(Nn(J($)?"label":"div"),{key:0,id:J(f),for:J($),class:Ce(J(l).e("label")),style:en(J(C))},{default:st(()=>[yt(ie.$slots,"label",{label:J(w)},()=>[Cn(lt(J(w)),1)])]),_:3},8,["id","for","class","style"])):Ye("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),ze("div",{class:Ce(J(l).e("content")),style:en(J(I))},[yt(ie.$slots,"default"),Et(Lge,{name:`${J(l).namespace.value}-zoom-in-top`},{default:st(()=>[J(_)?yt(ie.$slots,"error",{key:0,error:m.value},()=>[ze("div",{class:Ce(J(R))},lt(m.value),3)]):Ye("v-if",!0)]),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}});var IF=ir(AMe,[["__file","form-item.vue"]]);const Z3=Rn(K8e,{FormItem:IF}),J3=ns(IF),IMe=hr({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:Ni}}),BMe={click:e=>e instanceof MouseEvent},kMe=rt({name:"ElLink"}),NMe=rt({...kMe,props:IMe,emits:BMe,setup(e,{emit:t}){const r=e,n=Gt("link"),a=be(()=>[n.b(),n.m(r.type),n.is("disabled",r.disabled),n.is("underline",r.underline&&!r.disabled)]);function i(o){r.disabled||t("click",o)}return(o,l)=>(he(),ke("a",{class:Ce(J(a)),href:o.disabled||!o.href?void 0:o.href,target:o.disabled||!o.href?void 0:o.target,onClick:i},[o.icon?(he(),nt(J(Pn),{key:0},{default:st(()=>[(he(),nt(Nn(o.icon)))]),_:1})):Ye("v-if",!0),o.$slots.default?(he(),ke("span",{key:1,class:Ce(J(n).e("inner"))},[yt(o.$slots,"default")],2)):Ye("v-if",!0),o.$slots.icon?yt(o.$slots,"icon",{key:2}):Ye("v-if",!0)],10,["href","target"]))}});var OMe=ir(NMe,[["__file","link.vue"]]);const RMe=Rn(OMe);let PMe=class{constructor(t,r){this.parent=t,this.domNode=r,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,r=>{r.addEventListener("keydown",n=>{let a=!1;switch(n.code){case fn.down:{this.gotoSubIndex(this.subIndex+1),a=!0;break}case fn.up:{this.gotoSubIndex(this.subIndex-1),a=!0;break}case fn.tab:{mm(t,"mouseleave");break}case fn.enter:case fn.numpadEnter:case fn.space:{a=!0,n.currentTarget.click();break}}return a&&(n.preventDefault(),n.stopPropagation()),!1})})}},FMe=class{constructor(t,r){this.domNode=t,this.submenu=null,this.submenu=null,this.init(r)}init(t){this.domNode.setAttribute("tabindex","0");const r=this.domNode.querySelector(`.${t}-menu`);r&&(this.submenu=new PMe(this,r)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let r=!1;switch(t.code){case fn.down:{mm(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),r=!0;break}case fn.up:{mm(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),r=!0;break}case fn.tab:{mm(t.currentTarget,"mouseleave");break}case fn.enter:case fn.numpadEnter:case fn.space:{r=!0,t.currentTarget.click();break}}r&&t.preventDefault()})}},LMe=class{constructor(t,r){this.domNode=t,this.init(r)}init(t){const r=this.domNode.childNodes;Array.from(r).forEach(n=>{n.nodeType===1&&new FMe(n,t)})}};const DMe=rt({name:"ElMenuCollapseTransition",setup(){const e=Gt("menu");return{listeners:{onBeforeEnter:r=>r.style.opacity="0.2",onEnter(r,n){Ku(r,`${e.namespace.value}-opacity-transition`),r.style.opacity="1",n()},onAfterEnter(r){Cf(r,`${e.namespace.value}-opacity-transition`),r.style.opacity=""},onBeforeLeave(r){r.dataset||(r.dataset={}),_xe(r,e.m("collapse"))?(Cf(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Ku(r,e.m("collapse"))):(Ku(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Cf(r,e.m("collapse"))),r.style.width=`${r.scrollWidth}px`,r.style.overflow="hidden"},onLeave(r){Ku(r,"horizontal-collapse-transition"),r.style.width=`${r.dataset.scrollWidth}px`}}}}});function $Me(e,t,r,n,a,i){return he(),nt(mo,sa({mode:"out-in"},e.listeners),{default:st(()=>[yt(e.$slots,"default")]),_:3},16)}var UMe=ir(DMe,[["render",$Me],["__file","menu-collapse-transition.vue"]]);function BF(e,t){const r=be(()=>{let a=e.parent;const i=[t.value];for(;a.type.name!=="ElMenu";)a.props.index&&i.unshift(a.props.index),a=a.parent;return i});return{parentMenu:be(()=>{let a=e.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:r}}function zMe(e){return be(()=>{const r=e.backgroundColor;return r?new hF(r).shade(20).toString():""})}const kF=(e,t)=>{const r=Gt("menu");return be(()=>r.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":zMe(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},VMe=hr({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:Ni},expandOpenIcon:{type:Ni},collapseCloseIcon:{type:Ni},collapseOpenIcon:{type:Ni}}),Y3="ElSubMenu";var X3=rt({name:Y3,props:VMe,setup(e,{slots:t,expose:r}){const n=Cr(),{indexPath:a,parentMenu:i}=BF(n,be(()=>e.index)),o=Gt("menu"),l=Gt("sub-menu"),f=wt("rootMenu");f||Hu(Y3,"can not inject root menu");const c=wt(`subMenu:${i.value.uid}`);c||Hu(Y3,"can not inject sub menu");const d=Oe({}),v=Oe({});let m;const y=Oe(!1),b=Oe(),S=Oe(null),T=be(()=>$.value==="horizontal"&&I.value?"bottom-start":"right-start"),C=be(()=>$.value==="horizontal"&&I.value||$.value==="vertical"&&!f.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?P.value?e.expandOpenIcon:e.expandCloseIcon:iP:e.collapseCloseIcon&&e.collapseOpenIcon?P.value?e.collapseOpenIcon:e.collapseCloseIcon:Ixe),I=be(()=>c.level===0),B=be(()=>{const u=e.teleported;return u===void 0?I.value:u}),N=be(()=>f.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),R=be(()=>$.value==="horizontal"&&I.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),P=be(()=>f.openedMenus.includes(e.index)),D=be(()=>{let u=!1;return Object.values(d.value).forEach(x=>{x.active&&(u=!0)}),Object.values(v.value).forEach(x=>{x.active&&(u=!0)}),u}),$=be(()=>f.props.mode),U=vn({index:e.index,indexPath:a,active:D}),K=kF(f.props,c.level+1),M=be(()=>{var u;return(u=e.popperOffset)!=null?u:f.props.popperOffset}),s=be(()=>{var u;return(u=e.popperClass)!=null?u:f.props.popperClass}),h=be(()=>{var u;return(u=e.showTimeout)!=null?u:f.props.showTimeout}),p=be(()=>{var u;return(u=e.hideTimeout)!=null?u:f.props.hideTimeout}),g=()=>{var u,x,k;return(k=(x=(u=S.value)==null?void 0:u.popperRef)==null?void 0:x.popperInstanceRef)==null?void 0:k.destroy()},_=u=>{u||g()},w=()=>{f.props.menuTrigger==="hover"&&f.props.mode==="horizontal"||f.props.collapse&&f.props.mode==="vertical"||e.disabled||f.handleSubMenuClick({index:e.index,indexPath:a.value,active:D.value})},A=(u,x=h.value)=>{var k;if(u.type!=="focus"){if(f.props.menuTrigger==="click"&&f.props.mode==="horizontal"||!f.props.collapse&&f.props.mode==="vertical"||e.disabled){c.mouseInChild.value=!0;return}c.mouseInChild.value=!0,m==null||m(),{stop:m}=l3(()=>{f.openMenu(e.index,a.value)},x),B.value&&((k=i.value.vnode.el)==null||k.dispatchEvent(new MouseEvent("mouseenter")))}},E=(u=!1)=>{var x;if(f.props.menuTrigger==="click"&&f.props.mode==="horizontal"||!f.props.collapse&&f.props.mode==="vertical"){c.mouseInChild.value=!1;return}m==null||m(),c.mouseInChild.value=!1,{stop:m}=l3(()=>!y.value&&f.closeMenu(e.index,a.value),p.value),B.value&&u&&((x=c.handleMouseleave)==null||x.call(c,!0))};dt(()=>f.props.collapse,u=>_(!!u));{const u=k=>{v.value[k.index]=k},x=k=>{delete v.value[k.index]};sn(`subMenu:${n.uid}`,{addSubMenu:u,removeSubMenu:x,handleMouseleave:E,mouseInChild:y,level:c.level+1})}return r({opened:P}),ur(()=>{f.addSubMenu(U),c.addSubMenu(U)}),gn(()=>{c.removeSubMenu(U),f.removeSubMenu(U)}),()=>{var u;const x=[(u=t.title)==null?void 0:u.call(t),Ot(Pn,{class:l.e("icon-arrow"),style:{transform:P.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&f.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>It(C.value)?Ot(n.appContext.components[C.value]):Ot(C.value)})],k=f.isMenuPopup?Ot(F3,{ref:S,visible:P.value,effect:"light",pure:!0,offset:M.value,showArrow:!1,persistent:!0,popperClass:s.value,placement:T.value,teleported:B.value,fallbackPlacements:R.value,transition:N.value,gpuAcceleration:!1},{content:()=>{var O;return Ot("div",{class:[o.m($.value),o.m("popup-container"),s.value],onMouseenter:q=>A(q,100),onMouseleave:()=>E(!0),onFocus:q=>A(q,100)},[Ot("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${T.value}`)],style:K.value},[(O=t.default)==null?void 0:O.call(t)])])},default:()=>Ot("div",{class:l.e("title"),onClick:w},x)}):Ot(Ct,{},[Ot("div",{class:l.e("title"),ref:b,onClick:w},x),Ot(R8e,{},{default:()=>{var O;return tn(Ot("ul",{role:"menu",class:[o.b(),o.m("inline")],style:K.value},[(O=t.default)==null?void 0:O.call(t)]),[[la,P.value]])}})]);return Ot("li",{class:[l.b(),l.is("active",D.value),l.is("opened",P.value),l.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:P.value,onMouseenter:A,onMouseleave:()=>E(),onFocus:A},[k])}}});const qMe=hr({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Tt(Array),default:()=>hP([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:Ni,default:()=>Uxe},popperEffect:{type:Tt(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300}}),Q3=e=>ot(e)&&e.every(t=>It(t));var HMe=rt({name:"ElMenu",props:qMe,emits:{close:(e,t)=>It(e)&&Q3(t),open:(e,t)=>It(e)&&Q3(t),select:(e,t,r,n)=>It(e)&&Q3(t)&&At(r)&&(n===void 0||n instanceof Promise)},setup(e,{emit:t,slots:r,expose:n}){const a=Cr(),i=a.appContext.config.globalProperties.$router,o=Oe(),l=Gt("menu"),f=Gt("sub-menu"),c=Oe(-1),d=Oe(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),v=Oe(e.defaultActive),m=Oe({}),y=Oe({}),b=be(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),S=()=>{const g=v.value&&m.value[v.value];if(!g||e.mode==="horizontal"||e.collapse)return;g.indexPath.forEach(w=>{const A=y.value[w];A&&T(w,A.indexPath)})},T=(g,_)=>{d.value.includes(g)||(e.uniqueOpened&&(d.value=d.value.filter(w=>_.includes(w))),d.value.push(g),t("open",g,_))},C=g=>{const _=d.value.indexOf(g);_!==-1&&d.value.splice(_,1)},I=(g,_)=>{C(g),t("close",g,_)},B=({index:g,indexPath:_})=>{d.value.includes(g)?I(g,_):T(g,_)},N=g=>{(e.mode==="horizontal"||e.collapse)&&(d.value=[]);const{index:_,indexPath:w}=g;if(!(Sf(_)||Sf(w)))if(e.router&&i){const A=g.route||_,E=i.push(A).then(u=>(u||(v.value=_),u));t("select",_,w,{index:_,indexPath:w,route:A},E)}else v.value=_,t("select",_,w,{index:_,indexPath:w})},R=g=>{const _=m.value,w=_[g]||v.value&&_[v.value]||_[e.defaultActive];w?v.value=w.index:v.value=g},P=g=>{const _=getComputedStyle(g),w=Number.parseInt(_.marginLeft,10),A=Number.parseInt(_.marginRight,10);return g.offsetWidth+w+A||0},D=()=>{var g,_;if(!o.value)return-1;const w=Array.from((_=(g=o.value)==null?void 0:g.childNodes)!=null?_:[]).filter(Y=>Y.nodeName!=="#comment"&&(Y.nodeName!=="#text"||Y.nodeValue)),A=64,E=getComputedStyle(o.value),u=Number.parseInt(E.paddingLeft,10),x=Number.parseInt(E.paddingRight,10),k=o.value.clientWidth-u-x;let O=0,q=0;return w.forEach((Y,W)=>{O+=P(Y),O<=k-A&&(q=W+1)}),q===w.length?-1:q},$=g=>y.value[g].indexPath,U=(g,_=33.34)=>{let w;return()=>{w&&clearTimeout(w),w=setTimeout(()=>{g()},_)}};let K=!0;const M=()=>{if(c.value===D())return;const g=()=>{c.value=-1,Xt(()=>{c.value=D()})};K?g():U(g)(),K=!1};dt(()=>e.defaultActive,g=>{m.value[g]||(v.value=""),R(g)}),dt(()=>e.collapse,g=>{g&&(d.value=[])}),dt(m.value,S);let s;Uw(()=>{e.mode==="horizontal"&&e.ellipsis?s=Oa(o,M).stop:s==null||s()});const h=Oe(!1);{const g=E=>{y.value[E.index]=E},_=E=>{delete y.value[E.index]};sn("rootMenu",vn({props:e,openedMenus:d,items:m,subMenus:y,activeIndex:v,isMenuPopup:b,addMenuItem:E=>{m.value[E.index]=E},removeMenuItem:E=>{delete m.value[E.index]},addSubMenu:g,removeSubMenu:_,openMenu:T,closeMenu:I,handleMenuItemClick:N,handleSubMenuClick:B})),sn(`subMenu:${a.uid}`,{addSubMenu:g,removeSubMenu:_,mouseInChild:h,level:0})}ur(()=>{e.mode==="horizontal"&&new LMe(a.vnode.el,l.namespace.value)}),n({open:_=>{const{indexPath:w}=y.value[_];w.forEach(A=>T(A,w))},close:C,handleResize:M});const p=kF(e,0);return()=>{var g,_;let w=(_=(g=r.default)==null?void 0:g.call(r))!=null?_:[];const A=[];if(e.mode==="horizontal"&&o.value){const x=Bm(w),k=c.value===-1?x:x.slice(0,c.value),O=c.value===-1?[]:x.slice(c.value);O!=null&&O.length&&e.ellipsis&&(w=k,A.push(Ot(X3,{index:"sub-menu-more",class:f.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>Ot(Pn,{class:f.e("icon-more")},{default:()=>Ot(e.ellipsisIcon)}),default:()=>O})))}const E=e.closeOnClickOutside?[[_F,()=>{d.value.length&&(h.value||(d.value.forEach(x=>t("close",x,$(x))),d.value=[]))}]]:[],u=tn(Ot("ul",{key:String(e.collapse),role:"menubar",ref:o,style:p.value,class:{[l.b()]:!0,[l.m(e.mode)]:!0,[l.m("collapse")]:e.collapse}},[...w,...A]),E);return e.collapseTransition&&e.mode==="vertical"?Ot(UMe,()=>u):u}}});const jMe=hr({index:{type:Tt([String,null]),default:null},route:{type:Tt([String,Object])},disabled:Boolean}),KMe={click:e=>It(e.index)&&ot(e.indexPath)},ex="ElMenuItem",WMe=rt({name:ex,components:{ElTooltip:F3},props:jMe,emits:KMe,setup(e,{emit:t}){const r=Cr(),n=wt("rootMenu"),a=Gt("menu"),i=Gt("menu-item");n||Hu(ex,"can not inject root menu");const{parentMenu:o,indexPath:l}=BF(r,ia(e,"index")),f=wt(`subMenu:${o.value.uid}`);f||Hu(ex,"can not inject sub menu");const c=be(()=>e.index===n.activeIndex),d=vn({index:e.index,indexPath:l,active:c}),v=()=>{e.disabled||(n.handleMenuItemClick({index:e.index,indexPath:l.value,route:e.route}),t("click",d))};return ur(()=>{f.addSubMenu(d),n.addMenuItem(d)}),gn(()=>{f.removeSubMenu(d),n.removeMenuItem(d)}),{parentMenu:o,rootMenu:n,active:c,nsMenu:a,nsMenuItem:i,handleClick:v}}});function GMe(e,t,r,n,a,i){const o=Hs("el-tooltip");return he(),ke("li",{class:Ce([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:e.handleClick},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(he(),nt(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:st(()=>[yt(e.$slots,"title")]),default:st(()=>[ze("div",{class:Ce(e.nsMenu.be("tooltip","trigger"))},[yt(e.$slots,"default")],2)]),_:3},8,["effect"])):(he(),ke(Ct,{key:1},[yt(e.$slots,"default"),yt(e.$slots,"title")],64))],10,["onClick"])}var NF=ir(WMe,[["render",GMe],["__file","menu-item.vue"]]);const ZMe=rt({name:"ElMenuItemGroup",props:{title:String},setup(){return{ns:Gt("menu-item-group")}}});function JMe(e,t,r,n,a,i){return he(),ke("li",{class:Ce(e.ns.b())},[ze("div",{class:Ce(e.ns.e("title"))},[e.$slots.title?yt(e.$slots,"title",{key:1}):(he(),ke(Ct,{key:0},[Cn(lt(e.title),1)],64))],2),ze("ul",null,[yt(e.$slots,"default")])],2)}var OF=ir(ZMe,[["render",JMe],["__file","menu-item-group.vue"]]);const YMe=Rn(HMe,{MenuItem:NF,MenuItemGroup:OF,SubMenu:X3}),XMe=ns(NF);ns(OF),ns(X3);const RF=Symbol("ElSelectGroup"),Pm=Symbol("ElSelect");function QMe(e,t){const r=wt(Pm),n=wt(RF,{disabled:!1}),a=be(()=>d(Na(r.props.modelValue),e.value)),i=be(()=>{var y;if(r.props.multiple){const b=Na((y=r.props.modelValue)!=null?y:[]);return!a.value&&b.length>=r.props.multipleLimit&&r.props.multipleLimit>0}else return!1}),o=be(()=>e.label||(At(e.value)?"":e.value)),l=be(()=>e.value||e.label||""),f=be(()=>e.disabled||t.groupDisabled||i.value),c=Cr(),d=(y=[],b)=>{if(At(e.value)){const S=r.props.valueKey;return y&&y.some(T=>Nt(Qo(T,S))===Qo(b,S))}else return y&&y.includes(b)},v=()=>{!e.disabled&&!n.disabled&&(r.states.hoveringIndex=r.optionsArray.indexOf(c.proxy))},m=y=>{const b=new RegExp(M8e(y),"i");t.visible=b.test(o.value)||e.created};return dt(()=>o.value,()=>{!e.created&&!r.props.remote&&r.setSelected()}),dt(()=>e.value,(y,b)=>{const{remote:S,valueKey:T}=r.props;if(y!==b&&(r.onOptionDestroy(b,c.proxy),r.onOptionCreate(c.proxy)),!e.created&&!S){if(T&&At(y)&&At(b)&&y[T]===b[T])return;r.setSelected()}}),dt(()=>n.disabled,()=>{t.groupDisabled=n.disabled},{immediate:!0}),{select:r,currentLabel:o,currentValue:l,itemSelected:a,isDisabled:f,hoverItem:v,updateOption:m}}const eCe=rt({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=Gt("select"),r=Jh(),n=be(()=>[t.be("dropdown","item"),t.is("disabled",J(l)),t.is("selected",J(o)),t.is("hovering",J(m))]),a=vn({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:i,itemSelected:o,isDisabled:l,select:f,hoverItem:c,updateOption:d}=QMe(e,a),{visible:v,hover:m}=zs(a),y=Cr().proxy;f.onOptionCreate(y),gn(()=>{const S=y.value,{selected:T}=f.states,C=T.some(I=>I.value===y.value);Xt(()=>{f.states.cachedOptions.get(S)===y&&!C&&f.states.cachedOptions.delete(S)}),f.onOptionDestroy(S,y)});function b(){l.value||f.handleOptionSelect(y)}return{ns:t,id:r,containerKls:n,currentLabel:i,itemSelected:o,isDisabled:l,select:f,hoverItem:c,updateOption:d,visible:v,hover:m,selectOptionClick:b,states:a}}});function tCe(e,t,r,n,a,i){return tn((he(),ke("li",{id:e.id,class:Ce(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:e.hoverItem,onClick:rn(e.selectOptionClick,["stop"])},[yt(e.$slots,"default",{},()=>[ze("span",null,lt(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[la,e.visible]])}var tx=ir(eCe,[["render",tCe],["__file","option.vue"]]);const rCe=rt({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=wt(Pm),t=Gt("select"),r=be(()=>e.props.popperClass),n=be(()=>e.props.multiple),a=be(()=>e.props.fitInputWidth),i=Oe("");function o(){var l;i.value=`${(l=e.selectRef)==null?void 0:l.offsetWidth}px`}return ur(()=>{o(),Oa(e.selectRef,o)}),{ns:t,minWidth:i,popperClass:r,isMultiple:n,isFitInputWidth:a}}});function nCe(e,t,r,n,a,i){return he(),ke("div",{class:Ce([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:en({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(he(),ke("div",{key:0,class:Ce(e.ns.be("dropdown","header"))},[yt(e.$slots,"header")],2)):Ye("v-if",!0),yt(e.$slots,"default"),e.$slots.footer?(he(),ke("div",{key:1,class:Ce(e.ns.be("dropdown","footer"))},[yt(e.$slots,"footer")],2)):Ye("v-if",!0)],6)}var iCe=ir(rCe,[["render",nCe],["__file","select-dropdown.vue"]]);const aCe=11,oCe=(e,t)=>{const{t:r}=ZR(),n=Jh(),a=Gt("select"),i=Gt("input"),o=vn({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),l=Oe(null),f=Oe(null),c=Oe(null),d=Oe(null),v=Oe(null),m=Oe(null),y=Oe(null),b=Oe(null),S=Oe(null),T=Oe(null),C=Oe(null),I=Oe(null),{isComposing:B,handleCompositionStart:N,handleCompositionUpdate:R,handleCompositionEnd:P}=mP({afterComposition:Ae=>Xe(Ae)}),{wrapperRef:D,isFocused:$,handleBlur:U}=vP(v,{beforeFocus(){return w.value},afterFocus(){e.automaticDropdown&&!K.value&&(K.value=!0,o.menuVisibleOnFocus=!0)},beforeBlur(Ae){var ge,Ie;return((ge=c.value)==null?void 0:ge.isFocusInsideContent(Ae))||((Ie=d.value)==null?void 0:Ie.isFocusInsideContent(Ae))},afterBlur(){K.value=!1,o.menuVisibleOnFocus=!1}}),K=Oe(!1),M=Oe(),{form:s,formItem:h}=Gu(),{inputId:p}=pm(e,{formItemContext:h}),{valueOnClear:g,isEmptyValue:_}=gxe(e),w=be(()=>e.disabled||(s==null?void 0:s.disabled)),A=be(()=>ot(e.modelValue)?e.modelValue.length>0:!_(e.modelValue)),E=be(()=>{var Ae;return(Ae=s==null?void 0:s.statusIcon)!=null?Ae:!1}),u=be(()=>e.clearable&&!w.value&&o.inputHovering&&A.value),x=be(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),k=be(()=>a.is("reverse",x.value&&K.value)),O=be(()=>(h==null?void 0:h.validateState)||""),q=be(()=>uP[O.value]),Y=be(()=>e.remote?300:0),W=be(()=>e.loading?e.loadingText||r("el.select.loading"):e.remote&&!o.inputValue&&o.options.size===0?!1:e.filterable&&o.inputValue&&o.options.size>0&&X.value===0?e.noMatchText||r("el.select.noMatch"):o.options.size===0?e.noDataText||r("el.select.noData"):null),X=be(()=>ie.value.filter(Ae=>Ae.visible).length),ie=be(()=>{const Ae=Array.from(o.options.values()),ge=[];return o.optionValues.forEach(Ie=>{const gt=Ae.findIndex(_t=>_t.value===Ie);gt>-1&&ge.push(Ae[gt])}),ge.length>=Ae.length?ge:Ae}),ne=be(()=>Array.from(o.cachedOptions.values())),ce=be(()=>{const Ae=ie.value.filter(ge=>!ge.created).some(ge=>ge.currentLabel===o.inputValue);return e.filterable&&e.allowCreate&&o.inputValue!==""&&!Ae}),te=()=>{e.filterable&&vt(e.filterMethod)||e.filterable&&e.remote&&vt(e.remoteMethod)||ie.value.forEach(Ae=>{var ge;(ge=Ae.updateOption)==null||ge.call(Ae,o.inputValue)})},Z=el(),j=be(()=>["small"].includes(Z.value)?"small":"default"),ae=be({get(){return K.value&&W.value!==!1},set(Ae){K.value=Ae}}),se=be(()=>{if(e.multiple&&!es(e.modelValue))return Na(e.modelValue).length===0&&!o.inputValue;const Ae=ot(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||es(Ae)?!o.inputValue:!0}),V=be(()=>{var Ae;const ge=(Ae=e.placeholder)!=null?Ae:r("el.select.placeholder");return e.multiple||!A.value?ge:o.selectedLabel}),L=be(()=>RR?null:"mouseenter");dt(()=>e.modelValue,(Ae,ge)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(o.inputValue="",F("")),le(),!Kh(Ae,ge)&&e.validateEvent&&(h==null||h.validate("change").catch(Ie=>Yr(Ie)))},{flush:"post",deep:!0}),dt(()=>K.value,Ae=>{Ae?F(o.inputValue):(o.inputValue="",o.previousQuery=null,o.isBeforeHide=!0),t("visible-change",Ae)}),dt(()=>o.options.entries(),()=>{ln&&(le(),e.defaultFirstOption&&(e.filterable||e.remote)&&X.value&&z())},{flush:"post"}),dt(()=>o.hoveringIndex,Ae=>{Wn(Ae)&&Ae>-1?M.value=ie.value[Ae]||{}:M.value={},ie.value.forEach(ge=>{ge.hover=M.value===ge})}),Uw(()=>{o.isBeforeHide||te()});const F=Ae=>{o.previousQuery===Ae||B.value||(o.previousQuery=Ae,e.filterable&&vt(e.filterMethod)?e.filterMethod(Ae):e.filterable&&e.remote&&vt(e.remoteMethod)&&e.remoteMethod(Ae),e.defaultFirstOption&&(e.filterable||e.remote)&&X.value?Xt(z):Xt(re))},z=()=>{const Ae=ie.value.filter(_t=>_t.visible&&!_t.disabled&&!_t.states.groupDisabled),ge=Ae.find(_t=>_t.created),Ie=Ae[0],gt=ie.value.map(_t=>_t.value);o.hoveringIndex=Ne(gt,ge||Ie)},le=()=>{if(e.multiple)o.selectedLabel="";else{const ge=ot(e.modelValue)?e.modelValue[0]:e.modelValue,Ie=Q(ge);o.selectedLabel=Ie.currentLabel,o.selected=[Ie];return}const Ae=[];es(e.modelValue)||Na(e.modelValue).forEach(ge=>{Ae.push(Q(ge))}),o.selected=Ae},Q=Ae=>{let ge;const Ie=Ew(Ae);for(let ar=o.cachedOptions.size-1;ar>=0;ar--){const er=ne.value[ar];if(Ie?Qo(er.value,e.valueKey)===Qo(Ae,e.valueKey):er.value===Ae){ge={value:Ae,currentLabel:er.currentLabel,get isDisabled(){return er.isDisabled}};break}}if(ge)return ge;const gt=Ie?Ae.label:Ae??"";return{value:Ae,currentLabel:gt}},re=()=>{o.hoveringIndex=ie.value.findIndex(Ae=>o.selected.some(ge=>Pt(ge)===Pt(Ae)))},ue=()=>{o.selectionWidth=f.value.getBoundingClientRect().width},H=()=>{o.calculatorWidth=m.value.getBoundingClientRect().width},G=()=>{o.collapseItemWidth=C.value.getBoundingClientRect().width},me=()=>{var Ae,ge;(ge=(Ae=c.value)==null?void 0:Ae.updatePopper)==null||ge.call(Ae)},oe=()=>{var Ae,ge;(ge=(Ae=d.value)==null?void 0:Ae.updatePopper)==null||ge.call(Ae)},de=()=>{o.inputValue.length>0&&!K.value&&(K.value=!0),F(o.inputValue)},Xe=Ae=>{if(o.inputValue=Ae.target.value,e.remote)Ee();else return de()},Ee=M3e(()=>{de()},Y.value),Se=Ae=>{Kh(e.modelValue,Ae)||t(rP,Ae)},_e=Ae=>A3e(Ae,ge=>{const Ie=o.cachedOptions.get(ge);return Ie&&!Ie.disabled&&!Ie.states.groupDisabled}),pe=Ae=>{if(e.multiple&&Ae.code!==fn.delete&&Ae.target.value.length<=0){const ge=Na(e.modelValue).slice(),Ie=_e(ge);if(Ie<0)return;const gt=ge[Ie];ge.splice(Ie,1),t(ki,ge),Se(ge),t("remove-tag",gt)}},Te=(Ae,ge)=>{const Ie=o.selected.indexOf(ge);if(Ie>-1&&!w.value){const gt=Na(e.modelValue).slice();gt.splice(Ie,1),t(ki,gt),Se(gt),t("remove-tag",ge.value)}Ae.stopPropagation(),qe()},it=Ae=>{Ae.stopPropagation();const ge=e.multiple?[]:g.value;if(e.multiple)for(const Ie of o.selected)Ie.isDisabled&&ge.push(Ie.value);t(ki,ge),Se(ge),o.hoveringIndex=-1,K.value=!1,t("clear"),qe()},Me=Ae=>{var ge;if(e.multiple){const Ie=Na((ge=e.modelValue)!=null?ge:[]).slice(),gt=Ne(Ie,Ae);gt>-1?Ie.splice(gt,1):(e.multipleLimit<=0||Ie.length<e.multipleLimit)&&Ie.push(Ae.value),t(ki,Ie),Se(Ie),Ae.created&&F(""),e.filterable&&!e.reserveKeyword&&(o.inputValue="")}else t(ki,Ae.value),Se(Ae.value),K.value=!1;qe(),!K.value&&Xt(()=>{mt(Ae)})},Ne=(Ae=[],ge)=>es(ge)?-1:At(ge.value)?Ae.findIndex(Ie=>Kh(Qo(Ie,e.valueKey),Pt(ge))):Ae.indexOf(ge.value),mt=Ae=>{var ge,Ie,gt,_t,ar;const er=ot(Ae)?Ae[0]:Ae;let dr=null;if(er!=null&&er.value){const lr=ie.value.filter(yr=>yr.value===er.value);lr.length>0&&(dr=lr[0].$el)}if(c.value&&dr){const lr=(_t=(gt=(Ie=(ge=c.value)==null?void 0:ge.popperRef)==null?void 0:Ie.contentRef)==null?void 0:gt.querySelector)==null?void 0:_t.call(gt,`.${a.be("dropdown","wrap")}`);lr&&wxe(lr,dr)}(ar=I.value)==null||ar.handleScroll()},Re=Ae=>{o.options.set(Ae.value,Ae),o.cachedOptions.set(Ae.value,Ae)},He=(Ae,ge)=>{o.options.get(Ae)===ge&&o.options.delete(Ae)},Ut=be(()=>{var Ae,ge;return(ge=(Ae=c.value)==null?void 0:Ae.popperRef)==null?void 0:ge.contentRef}),Le=()=>{o.isBeforeHide=!1,Xt(()=>mt(o.selected))},qe=()=>{var Ae;(Ae=v.value)==null||Ae.focus()},zt=()=>{var Ae;if(K.value){K.value=!1,Xt(()=>{var ge;return(ge=v.value)==null?void 0:ge.blur()});return}(Ae=v.value)==null||Ae.blur()},De=Ae=>{it(Ae)},je=Ae=>{if(K.value=!1,$.value){const ge=new FocusEvent("focus",Ae);Xt(()=>U(ge))}},Vt=()=>{o.inputValue.length>0?o.inputValue="":K.value=!1},Pe=()=>{w.value||(RR&&(o.inputHovering=!0),o.menuVisibleOnFocus?o.menuVisibleOnFocus=!1:K.value=!K.value)},Ke=()=>{if(!K.value)Pe();else{const Ae=ie.value[o.hoveringIndex];Ae&&!Ae.isDisabled&&Me(Ae)}},Pt=Ae=>At(Ae.value)?Qo(Ae.value,e.valueKey):Ae.value,$e=be(()=>ie.value.filter(Ae=>Ae.visible).every(Ae=>Ae.isDisabled)),We=be(()=>e.multiple?e.collapseTags?o.selected.slice(0,e.maxCollapseTags):o.selected:[]),qt=be(()=>e.multiple?e.collapseTags?o.selected.slice(e.maxCollapseTags):[]:[]),Fe=Ae=>{if(!K.value){K.value=!0;return}if(!(o.options.size===0||X.value===0||B.value)&&!$e.value){Ae==="next"?(o.hoveringIndex++,o.hoveringIndex===o.options.size&&(o.hoveringIndex=0)):Ae==="prev"&&(o.hoveringIndex--,o.hoveringIndex<0&&(o.hoveringIndex=o.options.size-1));const ge=ie.value[o.hoveringIndex];(ge.isDisabled||!ge.visible)&&Fe(Ae),Xt(()=>mt(M.value))}},Ge=()=>{if(!f.value)return 0;const Ae=window.getComputedStyle(f.value);return Number.parseFloat(Ae.gap||"6px")},Ht=be(()=>{const Ae=Ge();return{maxWidth:`${C.value&&e.maxCollapseTags===1?o.selectionWidth-o.collapseItemWidth-Ae:o.selectionWidth}px`}}),Ue=be(()=>({maxWidth:`${o.selectionWidth}px`})),Ze=be(()=>({width:`${Math.max(o.calculatorWidth,aCe)}px`}));return Oa(f,ue),Oa(m,H),Oa(S,me),Oa(D,me),Oa(T,oe),Oa(C,G),ur(()=>{le()}),{inputId:p,contentId:n,nsSelect:a,nsInput:i,states:o,isFocused:$,expanded:K,optionsArray:ie,hoverOption:M,selectSize:Z,filteredOptionsCount:X,resetCalculatorWidth:H,updateTooltip:me,updateTagTooltip:oe,debouncedOnInputChange:Ee,onInput:Xe,deletePrevTag:pe,deleteTag:Te,deleteSelected:it,handleOptionSelect:Me,scrollToOption:mt,hasModelValue:A,shouldShowPlaceholder:se,currentPlaceholder:V,mouseEnterEventName:L,needStatusIcon:E,showClose:u,iconComponent:x,iconReverse:k,validateState:O,validateIcon:q,showNewOption:ce,updateOptions:te,collapseTagSize:j,setSelected:le,selectDisabled:w,emptyText:W,handleCompositionStart:N,handleCompositionUpdate:R,handleCompositionEnd:P,onOptionCreate:Re,onOptionDestroy:He,handleMenuEnter:Le,focus:qe,blur:zt,handleClearClick:De,handleClickOutside:je,handleEsc:Vt,toggleMenu:Pe,selectOption:Ke,getValueKey:Pt,navigateOptions:Fe,dropdownMenuVisible:ae,showTagList:We,collapseTagList:qt,tagStyle:Ht,collapseTagStyle:Ue,inputStyle:Ze,popperRef:Ut,inputRef:v,tooltipRef:c,tagTooltipRef:d,calculatorRef:m,prefixRef:y,suffixRef:b,selectRef:l,wrapperRef:D,selectionRef:f,scrollbarRef:I,menuRef:S,tagMenuRef:T,collapseItemRef:C}};var sCe=rt({name:"ElOptions",setup(e,{slots:t}){const r=wt(Pm);let n=[];return()=>{var a,i;const o=(a=t.default)==null?void 0:a.call(t),l=[];function f(c){ot(c)&&c.forEach(d=>{var v,m,y,b;const S=(v=(d==null?void 0:d.type)||{})==null?void 0:v.name;S==="ElOptionGroup"?f(!It(d.children)&&!ot(d.children)&&vt((m=d.children)==null?void 0:m.default)?(y=d.children)==null?void 0:y.default():d.children):S==="ElOption"?l.push((b=d.props)==null?void 0:b.value):ot(d.children)&&f(d.children)})}return o.length&&f((i=o[0])==null?void 0:i.children),Kh(l,n)||(n=l,r&&(r.states.optionValues=l)),o}}});const lCe=hr({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:ju,effect:{type:Tt(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Tt(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:P3.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Ni,default:p3},fitInputWidth:Boolean,suffixIcon:{type:Ni,default:iP},tagType:{...V3.type,default:"info"},tagEffect:{...V3.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:Tt(String),values:wm,default:"bottom-start"},fallbackPlacements:{type:Tt(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:String,...QR,...Tf(["ariaLabel"])}),PF="ElSelect",fCe=rt({name:PF,componentName:PF,components:{ElSelectMenu:iCe,ElOption:tx,ElOptions:sCe,ElTag:B8e,ElScrollbar:T6e,ElTooltip:F3,ElIcon:Pn},directives:{ClickOutside:_F},props:lCe,emits:[ki,rP,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const r=be(()=>{const{modelValue:o,multiple:l}=e,f=l?[]:void 0;return ot(o)?l?o:f:l?f:o}),n=vn({...zs(e),modelValue:r}),a=oCe(n,t);sn(Pm,vn({props:n,states:a.states,optionsArray:a.optionsArray,handleOptionSelect:a.handleOptionSelect,onOptionCreate:a.onOptionCreate,onOptionDestroy:a.onOptionDestroy,selectRef:a.selectRef,setSelected:a.setSelected}));const i=be(()=>e.multiple?a.states.selected.map(o=>o.currentLabel):a.states.selectedLabel);return{...a,modelValue:r,selectedLabel:i}}});function uCe(e,t,r,n,a,i){const o=Hs("el-tag"),l=Hs("el-tooltip"),f=Hs("el-icon"),c=Hs("el-option"),d=Hs("el-options"),v=Hs("el-scrollbar"),m=Hs("el-select-menu"),y=J9("click-outside");return tn((he(),ke("div",{ref:"selectRef",class:Ce([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[Ho(e.mouseEnterEventName)]:b=>e.states.inputHovering=!0,onMouseleave:b=>e.states.inputHovering=!1},[Et(l,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:b=>e.states.isBeforeHide=!1},{default:st(()=>{var b;return[ze("div",{ref:"wrapperRef",class:Ce([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:rn(e.toggleMenu,["prevent"])},[e.$slots.prefix?(he(),ke("div",{key:0,ref:"prefixRef",class:Ce(e.nsSelect.e("prefix"))},[yt(e.$slots,"prefix")],2)):Ye("v-if",!0),ze("div",{ref:"selectionRef",class:Ce([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?yt(e.$slots,"tag",{key:0},()=>[(he(!0),ke(Ct,null,ii(e.showTagList,S=>(he(),ke("div",{key:e.getValueKey(S),class:Ce(e.nsSelect.e("selected-item"))},[Et(o,{closable:!e.selectDisabled&&!S.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:en(e.tagStyle),onClose:T=>e.deleteTag(T,S)},{default:st(()=>[ze("span",{class:Ce(e.nsSelect.e("tags-text"))},[yt(e.$slots,"label",{label:S.currentLabel,value:S.value},()=>[Cn(lt(S.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(he(),nt(l,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:st(()=>[ze("div",{ref:"collapseItemRef",class:Ce(e.nsSelect.e("selected-item"))},[Et(o,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:en(e.collapseTagStyle)},{default:st(()=>[ze("span",{class:Ce(e.nsSelect.e("tags-text"))}," + "+lt(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:st(()=>[ze("div",{ref:"tagMenuRef",class:Ce(e.nsSelect.e("selection"))},[(he(!0),ke(Ct,null,ii(e.collapseTagList,S=>(he(),ke("div",{key:e.getValueKey(S),class:Ce(e.nsSelect.e("selected-item"))},[Et(o,{class:"in-tooltip",closable:!e.selectDisabled&&!S.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:T=>e.deleteTag(T,S)},{default:st(()=>[ze("span",{class:Ce(e.nsSelect.e("tags-text"))},[yt(e.$slots,"label",{label:S.currentLabel,value:S.value},()=>[Cn(lt(S.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):Ye("v-if",!0)]):Ye("v-if",!0),ze("div",{class:Ce([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[tn(ze("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":S=>e.states.inputValue=S,type:"text",name:e.name,class:Ce([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:en(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((b=e.hoverOption)==null?void 0:b.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[kh(rn(S=>e.navigateOptions("next"),["stop","prevent"]),["down"]),kh(rn(S=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),kh(rn(e.handleEsc,["stop","prevent"]),["esc"]),kh(rn(e.selectOption,["stop","prevent"]),["enter"]),kh(rn(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:rn(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[qge,e.states.inputValue]]),e.filterable?(he(),ke("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:Ce(e.nsSelect.e("input-calculator")),textContent:lt(e.states.inputValue)},null,10,["textContent"])):Ye("v-if",!0)],2),e.shouldShowPlaceholder?(he(),ke("div",{key:1,class:Ce([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?yt(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[ze("span",null,lt(e.currentPlaceholder),1)]):(he(),ke("span",{key:1},lt(e.currentPlaceholder),1))],2)):Ye("v-if",!0)],2),ze("div",{ref:"suffixRef",class:Ce(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(he(),nt(f,{key:0,class:Ce([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:st(()=>[(he(),nt(Nn(e.iconComponent)))]),_:1},8,["class"])):Ye("v-if",!0),e.showClose&&e.clearIcon?(he(),nt(f,{key:1,class:Ce([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:st(()=>[(he(),nt(Nn(e.clearIcon)))]),_:1},8,["class","onClick"])):Ye("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(he(),nt(f,{key:2,class:Ce([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:st(()=>[(he(),nt(Nn(e.validateIcon)))]),_:1},8,["class"])):Ye("v-if",!0)],2)],10,["onClick"])]}),content:st(()=>[Et(m,{ref:"menuRef"},{default:st(()=>[e.$slots.header?(he(),ke("div",{key:0,class:Ce(e.nsSelect.be("dropdown","header")),onClick:rn(()=>{},["stop"])},[yt(e.$slots,"header")],10,["onClick"])):Ye("v-if",!0),tn(Et(v,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:Ce([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:st(()=>[e.showNewOption?(he(),nt(c,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):Ye("v-if",!0),Et(d,null,{default:st(()=>[yt(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[la,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(he(),ke("div",{key:1,class:Ce(e.nsSelect.be("dropdown","loading"))},[yt(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(he(),ke("div",{key:2,class:Ce(e.nsSelect.be("dropdown","empty"))},[yt(e.$slots,"empty",{},()=>[ze("span",null,lt(e.emptyText),1)])],2)):Ye("v-if",!0),e.$slots.footer?(he(),ke("div",{key:3,class:Ce(e.nsSelect.be("dropdown","footer")),onClick:rn(()=>{},["stop"])},[yt(e.$slots,"footer")],10,["onClick"])):Ye("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[y,e.handleClickOutside,e.popperRef]])}var cCe=ir(fCe,[["render",uCe],["__file","select.vue"]]);const hCe=rt({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Gt("select"),r=Oe(null),n=Cr(),a=Oe([]);sn(RF,vn({...zs(e)}));const i=be(()=>a.value.some(c=>c.visible===!0)),o=c=>{var d,v;return((d=c.type)==null?void 0:d.name)==="ElOption"&&!!((v=c.component)!=null&&v.proxy)},l=c=>{const d=Na(c),v=[];return d.forEach(m=>{var y,b;o(m)?v.push(m.component.proxy):(y=m.children)!=null&&y.length?v.push(...l(m.children)):(b=m.component)!=null&&b.subTree&&v.push(...l(m.component.subTree))}),v},f=()=>{a.value=l(n.subTree)};return ur(()=>{f()}),nxe(r,f,{attributes:!0,subtree:!0,childList:!0}),{groupRef:r,visible:i,ns:t}}});function dCe(e,t,r,n,a,i){return tn((he(),ke("ul",{ref:"groupRef",class:Ce(e.ns.be("group","wrap"))},[ze("li",{class:Ce(e.ns.be("group","title"))},lt(e.label),3),ze("li",null,[ze("ul",{class:Ce(e.ns.b("group"))},[yt(e.$slots,"default")],2)])],2)),[[la,e.visible]])}var FF=ir(hCe,[["render",dCe],["__file","option-group.vue"]]);const Fm=Rn(cCe,{Option:tx,OptionGroup:FF}),Lm=ns(tx);ns(FF);const pCe=hr({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:Tt([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:Tt([String,Object,Array])}}),vCe=rt({name:"ElStatistic"}),mCe=rt({...vCe,props:pCe,setup(e,{expose:t}){const r=e,n=Gt("statistic"),a=be(()=>{const{value:i,formatter:o,precision:l,decimalSeparator:f,groupSeparator:c}=r;if(vt(o))return o(i);if(!Wn(i)||Number.isNaN(i))return i;let[d,v=""]=String(i).split(".");return v=v.padEnd(l,"0").slice(0,l>0?l:0),d=d.replace(/\B(?=(\d{3})+(?!\d))/g,c),[d,v].join(v?f:"")});return t({displayValue:a}),(i,o)=>(he(),ke("div",{class:Ce(J(n).b())},[i.$slots.title||i.title?(he(),ke("div",{key:0,class:Ce(J(n).e("head"))},[yt(i.$slots,"title",{},()=>[Cn(lt(i.title),1)])],2)):Ye("v-if",!0),ze("div",{class:Ce(J(n).e("content"))},[i.$slots.prefix||i.prefix?(he(),ke("div",{key:0,class:Ce(J(n).e("prefix"))},[yt(i.$slots,"prefix",{},()=>[ze("span",null,lt(i.prefix),1)])],2)):Ye("v-if",!0),ze("span",{class:Ce(J(n).e("number")),style:en(i.valueStyle)},lt(J(a)),7),i.$slots.suffix||i.suffix?(he(),ke("div",{key:1,class:Ce(J(n).e("suffix"))},[yt(i.$slots,"suffix",{},()=>[ze("span",null,lt(i.suffix),1)])],2)):Ye("v-if",!0)],2)],2))}});var gCe=ir(mCe,[["__file","statistic.vue"]]);const yCe=Rn(gCe);function bCe(e){let t;const r=Oe(!1),n=vn({...e,originalPosition:"",originalOverflow:"",visible:!1});function a(m){n.text=m}function i(){const m=n.parent,y=v.ns;if(!m.vLoadingAddClassList){let b=m.getAttribute("loading-number");b=Number.parseInt(b)-1,b?m.setAttribute("loading-number",b.toString()):(Cf(m,y.bm("parent","relative")),m.removeAttribute("loading-number")),Cf(m,y.bm("parent","hidden"))}o(),d.unmount()}function o(){var m,y;(y=(m=v.$el)==null?void 0:m.parentNode)==null||y.removeChild(v.$el)}function l(){var m;e.beforeClose&&!e.beforeClose()||(r.value=!0,clearTimeout(t),t=setTimeout(f,400),n.visible=!1,(m=e.closed)==null||m.call(e))}function f(){if(!r.value)return;const m=n.parent;r.value=!1,m.vLoadingAddClassList=void 0,i()}const c=rt({name:"ElLoading",setup(m,{expose:y}){const{ns:b,zIndex:S}=eP("loading");return y({ns:b,zIndex:S}),()=>{const T=n.spinner||n.svg,C=Ot("svg",{class:"circular",viewBox:n.svgViewBox?n.svgViewBox:"0 0 50 50",...T?{innerHTML:T}:{}},[Ot("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),I=n.text?Ot("p",{class:b.b("text")},[n.text]):void 0;return Ot(mo,{name:b.b("fade"),onAfterLeave:f},{default:st(()=>[tn(Et("div",{style:{backgroundColor:n.background||""},class:[b.b("mask"),n.customClass,n.fullscreen?"is-fullscreen":""]},[Ot("div",{class:b.b("spinner")},[C,I])]),[[la,n.visible]])])})}}}),d=aN(c),v=d.mount(document.createElement("div"));return{...zs(n),setText:a,removeElLoadingChild:o,close:l,handleAfterLeave:f,vm:v,get $el(){return v.$el}}}let Dm;const _Ce=function(e={}){if(!ln)return;const t=wCe(e);if(t.fullscreen&&Dm)return Dm;const r=bCe({...t,closed:()=>{var a;(a=t.closed)==null||a.call(t),t.fullscreen&&(Dm=void 0)}});ECe(t,t.parent,r),LF(t,t.parent,r),t.parent.vLoadingAddClassList=()=>LF(t,t.parent,r);let n=t.parent.getAttribute("loading-number");return n?n=`${Number.parseInt(n)+1}`:n="1",t.parent.setAttribute("loading-number",n),t.parent.appendChild(r.$el),Xt(()=>r.visible.value=t.visible),t.fullscreen&&(Dm=r),r},wCe=e=>{var t,r,n,a;let i;return It(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((r=e.fullscreen)!=null?r:!0),lock:(n=e.lock)!=null?n:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,beforeClose:e.beforeClose,closed:e.closed,target:i}},ECe=async(e,t,r)=>{const{nextZIndex:n}=r.vm.zIndex||r.vm._.exposed.zIndex,a={};if(e.fullscreen)r.originalPosition.value=Gh(document.body,"position"),r.originalOverflow.value=Gh(document.body,"overflow"),a.zIndex=n();else if(e.parent===document.body){r.originalPosition.value=Gh(document.body,"position"),await Xt();for(const i of["top","left"]){const o=i==="top"?"scrollTop":"scrollLeft";a[i]=`${e.target.getBoundingClientRect()[i]+document.body[o]+document.documentElement[o]-Number.parseInt(Gh(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])a[i]=`${e.target.getBoundingClientRect()[i]}px`}else r.originalPosition.value=Gh(t,"position");for(const[i,o]of Object.entries(a))r.$el.style[i]=o},LF=(e,t,r)=>{const n=r.vm.ns||r.vm._.exposed.ns;["absolute","fixed","sticky"].includes(r.originalPosition.value)?Cf(t,n.bm("parent","relative")):Ku(t,n.bm("parent","relative")),e.fullscreen&&e.lock?Ku(t,n.bm("parent","hidden")):Cf(t,n.bm("parent","hidden"))},$m=Symbol("ElLoading"),DF=(e,t)=>{var r,n,a,i;const o=t.instance,l=m=>At(t.value)?t.value[m]:void 0,f=m=>{const y=It(m)&&(o==null?void 0:o[m])||m;return y&&Oe(y)},c=m=>f(l(m)||e.getAttribute(`element-loading-${fo(m)}`)),d=(r=l("fullscreen"))!=null?r:t.modifiers.fullscreen,v={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:d,target:(n=l("target"))!=null?n:d?void 0:e,body:(a=l("body"))!=null?a:t.modifiers.body,lock:(i=l("lock"))!=null?i:t.modifiers.lock};e[$m]={options:v,instance:_Ce(v)}},xCe=(e,t)=>{for(const r of Object.keys(t))gr(t[r])&&(t[r].value=e[r])},SCe={mounted(e,t){t.value&&DF(e,t)},updated(e,t){const r=e[$m];t.oldValue!==t.value&&(t.value&&!t.oldValue?DF(e,t):t.value&&t.oldValue?At(t.value)&&xCe(t.value,r.options):r==null||r.instance.close())},unmounted(e){var t;(t=e[$m])==null||t.instance.close(),e[$m]=null}},$F=["success","info","warning","error"],MCe=hr({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:Ni},id:{type:String,default:""},message:{type:Tt([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:Tt(Function),default:()=>{}},onClose:{type:Tt(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...$F,""],default:""},zIndex:Number}),CCe={destroy:()=>!0},TCe=rt({name:"ElNotification"}),ACe=rt({...TCe,props:MCe,emits:CCe,setup(e,{expose:t}){const r=e,{ns:n,zIndex:a}=eP("notification"),{nextZIndex:i,currentZIndex:o}=a,{Close:l}=jxe,f=Oe(!1);let c;const d=be(()=>{const B=r.type;return B&&dm[r.type]?n.m(B):""}),v=be(()=>r.type&&dm[r.type]||r.icon),m=be(()=>r.position.endsWith("right")?"right":"left"),y=be(()=>r.position.startsWith("top")?"top":"bottom"),b=be(()=>{var B;return{[y.value]:`${r.offset}px`,zIndex:(B=r.zIndex)!=null?B:o.value}});function S(){r.duration>0&&({stop:c}=l3(()=>{f.value&&C()},r.duration))}function T(){c==null||c()}function C(){f.value=!1}function I({code:B}){B===fn.delete||B===fn.backspace?T():B===fn.esc?f.value&&C():S()}return ur(()=>{S(),i(),f.value=!0}),Bi(document,"keydown",I),t({visible:f,close:C}),(B,N)=>(he(),nt(mo,{name:J(n).b("fade"),onBeforeLeave:B.onClose,onAfterLeave:R=>B.$emit("destroy"),persisted:""},{default:st(()=>[tn(ze("div",{id:B.id,class:Ce([J(n).b(),B.customClass,J(m)]),style:en(J(b)),role:"alert",onMouseenter:T,onMouseleave:S,onClick:B.onClick},[J(v)?(he(),nt(J(Pn),{key:0,class:Ce([J(n).e("icon"),J(d)])},{default:st(()=>[(he(),nt(Nn(J(v))))]),_:1},8,["class"])):Ye("v-if",!0),ze("div",{class:Ce(J(n).e("group"))},[ze("h2",{class:Ce(J(n).e("title")),textContent:lt(B.title)},null,10,["textContent"]),tn(ze("div",{class:Ce(J(n).e("content")),style:en(B.title?void 0:{margin:0})},[yt(B.$slots,"default",{},()=>[B.dangerouslyUseHTMLString?(he(),ke(Ct,{key:1},[Ye(" Caution here, message could've been compromised, never use user's input as message "),ze("p",{innerHTML:B.message},null,8,["innerHTML"])],2112)):(he(),ke("p",{key:0},lt(B.message),1))])],6),[[la,B.message]]),B.showClose?(he(),nt(J(Pn),{key:0,class:Ce(J(n).e("closeBtn")),onClick:rn(C,["stop"])},{default:st(()=>[Et(J(l))]),_:1},8,["class","onClick"])):Ye("v-if",!0)],2)],46,["id","onClick"]),[[la,f.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var ICe=ir(ACe,[["__file","notification.vue"]]);const Um={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},rx=16;let BCe=1;const ac=function(e={},t){if(!ln)return{close:()=>{}};(It(e)||Ma(e))&&(e={message:e});const r=e.position||"top-right";let n=e.offset||0;Um[r].forEach(({vm:d})=>{var v;n+=(((v=d.el)==null?void 0:v.offsetHeight)||0)+rx}),n+=rx;const a=`notification_${BCe++}`,i=e.onClose,o={...e,offset:n,id:a,onClose:()=>{kCe(a,r,i)}};let l=document.body;ts(e.appendTo)?l=e.appendTo:It(e.appendTo)&&(l=document.querySelector(e.appendTo)),ts(l)||(Yr("ElNotification","the appendTo option is not an HTMLElement. Falling back to document.body."),l=document.body);const f=document.createElement("div"),c=Et(ICe,o,vt(o.message)?o.message:Ma(o.message)?()=>o.message:null);return c.appContext=es(t)?ac._context:t,c.props.onDestroy=()=>{iN(null,f)},iN(c,f),Um[r].push({vm:c}),l.appendChild(f.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};$F.forEach(e=>{ac[e]=(t={},r)=>((It(t)||Ma(t))&&(t={message:t}),ac({...t,type:e},r))});function kCe(e,t,r){const n=Um[t],a=n.findIndex(({vm:c})=>{var d;return((d=c.component)==null?void 0:d.props.id)===e});if(a===-1)return;const{vm:i}=n[a];if(!i)return;r==null||r(i);const o=i.el.offsetHeight,l=t.split("-")[0];n.splice(a,1);const f=n.length;if(!(f<1))for(let c=a;c<f;c++){const{el:d,component:v}=n[c].vm,m=Number.parseInt(d.style[l],10)-o-rx;v.props.offset=m}}function NCe(){for(const e of Object.values(Um))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}ac.closeAll=NCe,ac._context=null;const an=Exe(ac,"$notify");/*! Element Plus v2.9.1 */var OCe={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};/*! Element Plus v2.9.1 */var RCe={name:"es",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"Confirmar",clear:"Despejar"},datepicker:{now:"Ahora",today:"Hoy",cancel:"Cancelar",clear:"Despejar",confirm:"Confirmar",selectDate:"Seleccionar fecha",selectTime:"Seleccionar hora",startDate:"Fecha Incial",startTime:"Hora Inicial",endDate:"Fecha Final",endTime:"Hora Final",prevYear:"Año Anterior",nextYear:"Próximo Año",prevMonth:"Mes Anterior",nextMonth:"Próximo Mes",year:"",month1:"enero",month2:"febrero",month3:"marzo",month4:"abril",month5:"mayo",month6:"junio",month7:"julio",month8:"agosto",month9:"septiembre",month10:"octubre",month11:"noviembre",month12:"diciembre",weeks:{sun:"dom",mon:"lun",tue:"mar",wed:"mié",thu:"jue",fri:"vie",sat:"sáb"},months:{jan:"ene",feb:"feb",mar:"mar",apr:"abr",may:"may",jun:"jun",jul:"jul",aug:"ago",sep:"sep",oct:"oct",nov:"nov",dec:"dic"}},select:{loading:"Cargando",noMatch:"No hay datos que coincidan",noData:"Sin datos",placeholder:"Seleccionar"},mention:{loading:"Cargando"},cascader:{noMatch:"No hay datos que coincidan",loading:"Cargando",placeholder:"Seleccionar",noData:"Sin datos"},pagination:{goto:"Ir a",pagesize:"/página",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages"},messagebox:{confirm:"Aceptar",cancel:"Cancelar",error:"Entrada inválida"},upload:{deleteTip:"Pulse Eliminar para retirar",delete:"Eliminar",preview:"Vista Previa",continue:"Continuar"},table:{emptyText:"Sin Datos",confirmFilter:"Confirmar",resetFilter:"Reiniciar",clearFilter:"Despejar",sumText:"Suma"},tree:{emptyText:"Sin Datos"},transfer:{noMatch:"No hay datos que coincidan",noData:"Sin datos",titles:["Lista 1","Lista 2"],filterPlaceholder:"Ingresar palabra clave",noCheckedFormat:"{total} artículos",hasCheckedFormat:"{checked}/{total} revisados"},image:{error:"HA FALLADO"},pageHeader:{title:"Volver"},popconfirm:{confirmButtonText:"Si",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const PCe={key:0,width:"30",height:"28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},FCe=[ze("path",{d:"M2 14.219h26.5M2 13.781 13.781 2M2 14.219 13.781 26",stroke:"#000","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)],LCe={key:1,xmlns:"http://www.w3.org/2000/svg",width:"23",height:"23",fill:"none"},DCe=[ze("path",{d:"m2 2 18.738 18.738M2.12 21.107 20.857 2.37",stroke:"#000","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)],$Ce={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},UCe=[ze("circle",{cx:"25",cy:"25",r:"25",fill:"#d75a4a"},null,-1),ze("path",{fill:"none",stroke:"#fff","stroke-width":"2","stroke-linecap":"round","stroke-miterlimit":"10",d:"M16 34l9-9 9-9M16 16l9 9 9 9"},null,-1)],zCe={key:3,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"#31383e"},VCe=[ze("path",{d:"M12 9q1.219 0 2.109.891T15 12t-.891 2.109T12 15t-2.109-.891T9 12t.891-2.109T12 9zm0 8.016q2.063 0 3.539-1.477T17.016 12t-1.477-3.539T12 6.984 8.461 8.461 6.984 12t1.477 3.539T12 17.016zM12 4.5q3.703 0 6.703 2.063t4.313 5.438q-1.313 3.375-4.313 5.438T12 19.502t-6.703-2.063-4.313-5.438q1.313-3.375 4.313-5.438T12 4.5z"},null,-1)],qCe={key:4,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"#31383e"},HCe=[ze("path",{d:"M11.859 9H12q1.219 0 2.109.891T15 12v.188zm-4.312.797Q6.984 10.922 6.984 12q0 2.063 1.477 3.539T12 17.016q1.078 0 2.203-.563l-1.547-1.547Q12.281 15 12 15q-1.219 0-2.109-.891T9 12q0-.281.094-.656zM2.016 4.266L3.282 3l17.719 17.719-1.266 1.266q-.234-.234-1.477-1.453t-1.898-1.875q-2.016.844-4.359.844-3.703 0-6.703-2.063T.985 12q.516-1.219 1.617-2.695t2.133-2.273q-.563-.563-1.57-1.594T2.017 4.266zM12 6.984q-.938 0-1.828.375L8.016 5.203Q9.844 4.5 12 4.5q3.703 0 6.68 2.063t4.289 5.438q-1.125 2.766-3.422 4.734l-2.906-2.906q.375-.891.375-1.828 0-2.063-1.477-3.539T12 6.985z"},null,-1)],jCe={key:5,xmlns:"http://www.w3.org/2000/svg",width:"22",height:"23",fill:"none",stroke:"#969eab","stroke-width":"3","stroke-linejoin":"round","xmlns:v":"https://vecta.io/nano"},KCe=[ze("circle",{cx:"9.451",cy:"9.451",r:"7.451"},null,-1),ze("path",{d:"M13.921 15.412 19.51 21","stroke-linecap":"round"},null,-1)],WCe={key:6,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},GCe=[ze("circle",{cx:"25",cy:"25",r:"25",fill:"#25ae88"},null,-1),ze("path",{fill:"none",stroke:"#fff","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":"10",d:"M38 15L22 33l-10-8"},null,-1)],ol=rt({__name:"CustomIcon",props:{icon:{}},setup(e){const t=e;return(r,n)=>t.icon==="back"?(he(),ke("svg",PCe,FCe)):t.icon==="close"?(he(),ke("svg",LCe,DCe)):t.icon==="error"?(he(),ke("svg",$Ce,UCe)):t.icon==="eye"?(he(),ke("svg",zCe,VCe)):t.icon==="eye-slash"?(he(),ke("svg",qCe,HCe)):t.icon==="search"?(he(),ke("svg",jCe,KCe)):t.icon==="success"?(he(),ke("svg",WCe,GCe)):Ye("",!0)}}),ZCe=["src"],JCe=[ze("span",null,null,-1)],YCe=rt({__name:"AppLoader",props:{avatar:{default:void 0},grow:{type:Boolean,default:!0},icon:{default:void 0},message:{default:void 0},size:{default:"small"},title:{default:void 0},type:{default:"loading"}},emits:["imagesLoaded","imagesLoading"],setup(e,{emit:t}){const r=e;return ur(()=>{r.avatar&&t("imagesLoading")}),(n,a)=>(he(),ke("div",{class:Ce([n.$style["loader-body"],[n.$style[`loader-${n.size}`]],[n.$style[`loader-${n.type}`]],{[n.$style["loader-no-grow"]]:n.grow===!1}])},[ze("div",{class:Ce(n.$style["loader-container"])},[ze("div",{class:Ce(n.$style["loader-inner"])},[ze("div",{class:Ce(n.$style["loader-mask"])},[n.avatar?(he(),ke("img",{key:0,alt:"",src:n.avatar,width:"1",height:"1",onLoad:a[0]||(a[0]=()=>t("imagesLoaded"))},null,40,ZCe)):Ye("",!0),n.icon?(he(),nt(ol,{key:1,icon:n.icon},null,8,["icon"])):Ye("",!0)],2)],2),ze("div",{class:Ce(n.$style.loader)},JCe,2)],2),n.title?(he(),ke("h2",{key:0,class:Ce(n.$style["loader-title"])},lt(n.title),3)):Ye("",!0),n.message?(he(),ke("p",{key:1,class:Ce(n.$style["loader-message"])},lt(n.message),3)):Ye("",!0)],2))}}),XCe={loader:"pb-w-sync_loader","loader-container-animation":"pb-w-sync_loader-container-animation","loader-clip-animation":"pb-w-sync_loader-clip-animation","loader-bar-animation":"pb-w-sync_loader-bar-animation","loader-body":"pb-w-sync_loader-body","loader-error":"pb-w-sync_loader-error","loader-title":"pb-w-sync_loader-title","loader-success":"pb-w-sync_loader-success","loader-large":"pb-w-sync_loader-large","loader-container":"pb-w-sync_loader-container","loader-inner":"pb-w-sync_loader-inner","loader-loading":"pb-w-sync_loader-loading","loader-no-grow":"pb-w-sync_loader-no-grow","loader-small":"pb-w-sync_loader-small","loader-mask":"pb-w-sync_loader-mask","loader-message":"pb-w-sync_loader-message"},wi=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},Nf=wi(YCe,[["__cssModules",{$style:XCe}]]),a7e="",o7e="",s7e="",l7e="",f7e="",QCe=["disabled"],eTe=rt({__name:"AccountsSelection",props:{avatar:{default:void 0},buttonDisabledStyle:{type:Boolean,default:!1},client:{},credential:{},disableFormAutocomplete:{type:Boolean,default:!1},selectClass:{default:""},sync:{}},emits:["done"],setup(e,{emit:t}){const r=e,n=wt(Ea),{t:a}=bo(),i=Oe([]),o=Oe(null),l=vn({accounts:[]}),f=Oe(!0),c=Oe(!0),d=vn({accounts:[{type:"array",required:!0,message:a("accounts_selection.form_error"),trigger:"change"}]});function v(){const S=setInterval(()=>{r.sync.getAccounts({id_credential:r.credential}).then(T=>{T.length>0&&i.value.length===0&&(clearInterval(S),i.value=T,l.accounts=i.value.map(C=>C.id_account),c.value=!1)})},2e3)}function m(S){return`**${S.slice(-4)}`}const y=async(S,T)=>{S.preventDefault(),T&&await T.validate(C=>{C&&(n("accounts-selected",l.accounts),t("done"))})};function b(S,T){f.value=!T}return v(),(S,T)=>c.value?(he(),nt(Nf,{key:0,avatar:r.avatar,message:J(a)("accounts_selection.fetching"),title:J(a)("accounts_selection.fetching"),size:"large",onImagesLoaded:T[0]||(T[0]=()=>J(n)("images-loaded")),onImagesLoading:T[1]||(T[1]=()=>J(n)("images-loading"))},null,8,["avatar","message","title"])):(he(),nt(J(Z3),{key:1,ref_key:"accountsFormRef",ref:o,class:Ce(S.$style["accounts-form"]),autocomplete:S.disableFormAutocomplete?"off":"on",disabled:c.value,"hide-required-asterisk":!0,"label-position":"top",model:l,name:"accounts-selection",rules:d,onSubmit:T[3]||(T[3]=C=>y(C,o.value)),onValidate:b},{default:st(()=>[Et(J(J3),{label:r.client.name?J(a)("accounts_selection.form_label_client",{client:r.client.name}):J(a)("accounts_selection.form_label"),prop:"accounts"},{default:st(()=>[Et(J(S8e),{modelValue:l.accounts,"onUpdate:modelValue":T[2]||(T[2]=C=>l.accounts=C),class:Ce(S.$style["accounts-checkboxes"])},{default:st(()=>[(he(!0),ke(Ct,null,ii(i.value,C=>(he(),nt(J(x8e),{key:C.id_account,class:Ce(S.$style["accounts-checkbox"]),name:"accounts",value:C.id_account},{default:st(()=>[ze("div",{class:Ce(S.$style["accounts-checkbox-content"])},[ze("div",null,lt(C.account_type),1),ze("div",{class:Ce(S.$style["accounts-checkbox-row"])},[ze("div",null,lt(m(C.number)),1),ze("div",null,[Et(J(yCe),{class:Ce(S.$style["accounts-balance"]),value:C.balance,precision:2},null,8,["class","value"]),Cn(" "+lt(C.currency),1)])],2)],2)]),_:2},1032,["class","value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["label"]),ze("button",{class:"pb-w-sync_primary-button","data-testid":"site-button",disabled:S.buttonDisabledStyle&&f.value,type:"submit"},lt(J(a)("accounts_selection.done")),9,QCe)]),_:1},8,["class","autocomplete","disabled","model","rules"]))}}),tTe={"accounts-balance":"pb-w-sync_accounts-balance","accounts-checkbox":"pb-w-sync_accounts-checkbox","accounts-checkbox-content":"pb-w-sync_accounts-checkbox-content","accounts-checkbox-row":"pb-w-sync_accounts-checkbox-row","accounts-checkboxes":"pb-w-sync_accounts-checkboxes","accounts-form":"pb-w-sync_accounts-form"},u7e="",rTe=wi(eTe,[["__cssModules",{$style:tTe}]]),h7e="",nTe=wi(rt({__name:"FinalResponse",props:{avatar:{},displayAccountsSelection:{type:Boolean},longMessage:{default:""},message:{default:""},oneSiteFlow:{type:Boolean,default:!1},showLogo:{type:Boolean},type:{default:"error"}},emits:["add-other","select-accounts"],setup(e,{emit:t}){const r=e,n=wt(Ea),{t:a}=bo();return(i,o)=>(he(),ke("div",{class:Ce(i.$style["final-response-container"])},[Et(Nf,{avatar:i.showLogo?i.avatar:void 0,grow:!1,icon:i.showLogo?void 0:i.type,message:i.longMessage,size:"large",title:i.message,type:i.type,onImagesLoaded:o[0]||(o[0]=()=>J(n)("images-loaded")),onImagesLoading:o[1]||(o[1]=()=>J(n)("images-loading"))},null,8,["avatar","icon","message","title","type"]),!r.oneSiteFlow&&(!r.displayAccountsSelection||r.type==="error")?(he(),ke("button",{key:0,class:"pb-w-sync_primary-button",onClick:o[2]||(o[2]=l=>t("add-other"))},lt(J(a)("common.add_other")),1)):Ye("",!0),r.displayAccountsSelection&&r.type==="success"?(he(),ke("button",{key:1,class:"pb-w-sync_primary-button",onClick:o[3]||(o[3]=l=>t("select-accounts"))},lt(J(a)("common.next")),1)):Ye("",!0)],2))}}),[["__cssModules",{$style:{"final-response-container":"pb-w-sync_final-response-container"}}]]),m7e="",g7e="",y7e="",b7e="",_7e="",w7e="",E7e="",x7e="",S7e="",iTe=["src"],aTe=["src"],oTe=["onClick"],sTe=rt({__name:"InstitutionFilters",props:{countryId:{},filteredCountries:{},filteredOrganizationTypes:{},showCountries:{type:Boolean},organizationTypeId:{},selectClass:{}},emits:["update:countryId","update:organizationTypeId"],setup(e,{emit:t}){const r=e,{t:n}=bo(),a=be(()=>o(r.filteredCountries.find(f=>f.id_country===r.countryId)));function i(f){Ln("open_country",{id_country:f}),t("update:countryId",f)}function o(f){return`https://hatscripts.github.io/circle-flags/flags/${f.code.toLocaleLowerCase()}.svg`}function l(f){Ln("open_site_organization_type",{id_site_organization_type:f}),t("update:organizationTypeId",f)}return(f,c)=>(he(),ke(Ct,null,[ze("p",{class:Ce(f.$style["institution-filters-intro"])},lt(J(n)("common.intro")),3),f.showCountries?(he(),nt(J(Fm),{key:0,class:Ce(f.$style["widget-country"]),"model-value":r.countryId,"popper-class":r.selectClass,onChange:i},{prefix:st(()=>[ze("img",{src:a.value,width:"44",height:"44",alt:""},null,8,iTe)]),default:st(()=>[(he(!0),ke(Ct,null,ii(f.filteredCountries,d=>(he(),nt(J(Lm),{key:d.id_country,class:Ce(f.$style["widget-country-option"]),value:d.id_country,label:d.name},{default:st(()=>[ze("img",{src:o(d),width:"44",height:"44",alt:""},null,8,aTe),ze("span",null,lt(d.name),1)]),_:2},1032,["class","value","label"]))),128))]),_:1},8,["class","model-value","popper-class"])):Ye("",!0),ze("div",{class:Ce(f.$style["organization-types-list"])},[(he(!0),ke(Ct,null,ii(f.filteredOrganizationTypes,d=>(he(),ke("button",{key:d.id_site_organization_type,onClick:()=>l(d.id_site_organization_type)},lt(J(n)(`common.${d.label}`)),9,oTe))),128))],2)],64))}}),lTe={"institution-filters-intro":"pb-w-sync_institution-filters-intro","organization-types-list":"pb-w-sync_organization-types-list","widget-country":"pb-w-sync_widget-country","widget-country-option":"pb-w-sync_widget-country-option"},M7e="",fTe=wi(sTe,[["__cssModules",{$style:lTe}]]),uTe=["onClick"],cTe=["alt","src"],hTe={key:1},dTe=wi(rt({__name:"OrganizationSitesList",props:{assetsPath:{default:"https://s.paybook.com"},items:{default:()=>[]},showLogo:{type:Boolean,default:!0},showPlaidSitesButton:{type:Boolean,default:!1}},emits:["select"],setup(e,{emit:t}){const r=e,n=wt(Ea),{t:a}=bo(),i=Oe("");let o=0;const l=be(()=>{const d=i.value.toLocaleLowerCase();return r.items.map(v=>({...v,show:d===""?!0:v.name.toLocaleLowerCase().includes(d)}))});ur(()=>{r.items.length>0&&r.showLogo&&(o=0,n("images-loading"))}),dt(()=>r.items,d=>{d.length>0&&r.showLogo&&(o=0,n("images-loading"))});function f(){o++,o===r.items.length&&n("images-loaded")}function c(d){t("select",d)}return(d,v)=>d.showPlaidSitesButton?(he(),ke("div",{key:0,class:Ce(d.$style["widget-plaid-container"])},[ze("button",{class:"pb-w-sync_primary-button",onClick:v[0]||(v[0]=()=>J(n)("__internal__.plaid-sites-clicked"))},lt(J(a)("common.find_your_institution")),1)],2)):(he(),ke(Ct,{key:1},[Et(J(m3),{modelValue:i.value,"onUpdate:modelValue":v[1]||(v[1]=m=>i.value=m),"data-testid":"search-organization",placeholder:J(a)("common.search")},{prefix:st(()=>[Et(ol,{icon:"search"})]),_:1},8,["modelValue","placeholder"]),ze("div",{class:Ce(d.$style["organization-sites"])},[(he(!0),ke(Ct,null,ii(l.value,(m,y)=>tn((he(),ke("button",{key:`${m.id_site_organization}-${y}`,class:Ce(d.$style["organization-button"]),type:"button",onClick:()=>c(m)},[d.showLogo?(he(),ke("img",{key:0,alt:m.name,src:`${d.assetsPath}${m.small_cover}`,loading:"lazy",height:"66",width:"220",onLoad:f},null,40,cTe)):(he(),ke("span",hTe,lt(m.name),1))],10,uTe)),[[la,m.show]])),128))],2)],64))}}),[["__cssModules",{$style:{"widget-plaid-container":"pb-w-sync_widget-plaid-container","organization-sites":"pb-w-sync_organization-sites","organization-button":"pb-w-sync_organization-button"}}]]),pTe=["for"],vTe=["accept","name"],mTe=wi(rt({__name:"FileInput",props:{credential:{},displayError:{type:Boolean},idSite:{}},emits:["input","validate"],setup(e,{emit:t}){const r=e,n=Oe(null),a=Oe(null),i=Oe(!1),o=Oe(!1),l=be(()=>i.value&&!a.value&&!o.value);dt(()=>r.displayError,y=>{y&&(i.value=!0)});function f(y){const b=new FileReader;b.onload=S=>{a.value={file:S.target.result,info:{type:y.type,name:y.name}},t("input",S.target.result)},b.readAsDataURL(y)}function c(y){y.preventDefault(),y.dataTransfer.files[0]&&f(y.dataTransfer.files[0])}function d(y){o.value=!1;const b=y.srcElement.value;y.preventDefault(),y.stopPropagation(),b.length>0?b.includes(r.credential.accept)?(t("validate",!0),f(y.target.files[0])):a.value||(o.value=!0,t("validate",!1)):a.value||t("validate",!1)}function v(y){y.stopPropagation(),y.preventDefault(),setTimeout(()=>{i.value=!0},2e3)}function m(y){y.preventDefault(),n.value.click(),setTimeout(()=>{i.value=!0},5e3)}return(y,b)=>(he(),ke("div",{class:Ce(y.$style["upload-document"])},[ze("label",{class:Ce(y.$style["upload-document-label"]),for:`${r.idSite}[${r.credential.name}]`},lt(r.credential.label),11,pTe),ze("div",{class:Ce([y.$style["upload-document-input"],{[y.$style["upload-document-input-error"]]:l.value}]),onClick:b[0]||(b[0]=S=>m(S)),onDrop:b[1]||(b[1]=S=>c(S)),onDragover:b[2]||(b[2]=S=>v(S))},[ze("button",{class:Ce(y.$style["upload-document-button"])},lt(y.$t("file.choose")),3),ze("span",{class:Ce(y.$style["upload-document-name"])},lt(a.value?a.value.info.name:y.$t("file.no_chosen")),3)],34),l.value?(he(),ke("div",{key:0,class:Ce(y.$style["upload-document-required-error"])},lt(r.credential.label)+" "+lt(y.$t("file.required")),3)):Ye("",!0),o.value?(he(),ke("div",{key:1,class:Ce(y.$style["upload-document-required-error"])},lt(y.$t("file.invalid",{extension:y.credential.accept})),3)):Ye("",!0),ze("input",{ref_key:"fileInput",ref:n,type:"file","data-testid":"file-input",accept:r.credential.accept,style:{position:"absolute",left:"-99999999px"},name:`${r.idSite}[${r.credential.name}]`,onClick:b[3]||(b[3]=S=>S.stopPropagation()),onChange:b[4]||(b[4]=S=>d(S))},null,40,vTe)],2))}}),[["__cssModules",{$style:{"upload-document":"pb-w-sync_upload-document","upload-document-button":"pb-w-sync_upload-document-button","upload-document-input":"pb-w-sync_upload-document-input","upload-document-input-error":"pb-w-sync_upload-document-input-error","upload-document-label":"pb-w-sync_upload-document-label","upload-document-name":"pb-w-sync_upload-document-name","upload-document-required-error":"pb-w-sync_upload-document-required-error"}}]]),O7e="",R7e="",gTe={key:1},yTe=["alt","src"],bTe=["aria-label"],_Te={class:"el-form-item__error"},wTe=["disabled"],ETe=wi(rt({__name:"SiteForm",props:{assetsPath:{default:"https://s.paybook.com"},buttonDisabledStyle:{type:Boolean,default:!1},disableFormAutocomplete:{type:Boolean,default:!1},errorMessage:{default:null},loaderMessage:{},selectClass:{default:""},showLogo:{type:Boolean,default:!0},showPasswordStyle:{default:"icon"},site:{},testMode:{type:Boolean,default:!1}},emits:["back","error","success","valid"],setup(e,{emit:t}){const r=e,n=wt(Ea),a=Oe("0"),i=Oe({...r.site.config.version===1?r.site.data:r.site.input[a.value].data}),o=Oe(!0),l=Oe(!1),f=Oe(!1),c=Oe(!1),d=Oe(!1);let v=0,m,y={};const b=Oe(null),S=Oe(null),T=be(()=>{switch(r.site.config.version){case 3:return r.site.config.input[a.value].fields;case 1:return r.site.config.credentials;default:return null}}),C=be(()=>{switch(r.site.config.version){case 3:return r.site.input[a.value].rules;case 1:return r.site.rules;default:return null}}),I=be(()=>r.site.config.version===3?r.site.config.input.length>1:!1),{t:B}=bo();gn(()=>{clearTimeout(m)}),ur(()=>{r.showLogo&&n("images-loading"),P(),K(),r.site.on("status-update",M=>{M==="loading"?l.value=!0:l.value=!1})});function N(M){return!!i.value[M]}function R(){clearTimeout(m),r.testMode&&(v<2?(v+=1,m=setTimeout(()=>{v=0},500)):(r.site.toggleTestMode(),d.value=r.site.testMode,v=0))}function P(){b.value[0].focus()}function D(){n("images-loaded")}function $(M){r.site.updateData(Number.parseInt(M),i.value),a.value=M,i.value={...r.site.input[a.value].data},Xt(()=>{P()})}const U=async(M,s)=>{M.preventDefault();let h;s&&await s.validate(p=>{p&&!o.value?(t("valid"),n("submitted"),r.site.config.version===1?h=r.site.connect(i.value):h=r.site.connect(Number.parseInt(a.value),i.value),h.then(g=>(t("success",g),r.site.config.request||n("updated",r.site.response),g)).catch(g=>{t("error",g)})):c.value=!0})};function K(M,s){M&&(y[M]=s),o.value=Object.keys(C.value).reduce((h,p)=>C.value[p].length===0?h:h||!y[p],!1)}return(M,s)=>l.value?(he(),ke("div",{key:0,class:Ce(M.$style["widget-form-loader"])},[Et(Nf,{avatar:M.showLogo?`${M.assetsPath}${M.site.config.organizationSite.avatar}`:void 0,message:r.loaderMessage.long,title:r.loaderMessage.short,size:"large",onImagesLoaded:s[0]||(s[0]=()=>J(n)("images-loaded")),onImagesLoading:s[1]||(s[1]=()=>J(n)("images-loading"))},null,8,["avatar","message","title"])],2)):(he(),ke("div",gTe,[ze("div",{class:Ce(M.$style["site-form-header"])},[d.value?(he(),nt(J(Qxe),{key:0,center:"",closable:!1,effect:"dark"},{default:st(()=>[Cn(lt(J(B)("common.test_mode")),1)]),_:1})):Ye("",!0),M.showLogo?(he(),ke("img",{key:1,alt:M.site.config.organizationSite.name,class:Ce(M.$style["site-cover"]),src:`${M.assetsPath}${M.site.config.organizationSite.cover}`,width:"1600",height:"480",onLoad:D},null,42,yTe)):Ye("",!0),ze("h2",{onClick:R},lt(M.site.config.name),1)],2),M.errorMessage?(he(),ke("div",{key:0,class:Ce(M.$style["auth-error"])},[ze("h3",null,lt(M.errorMessage.short),1),ze("p",null,lt(M.errorMessage.long),1)],2)):Ye("",!0),I.value?(he(),nt(J(YMe),{key:1,"default-active":"0",mode:"horizontal",onSelect:$},{default:st(()=>[(he(!0),ke(Ct,null,ii(M.site.config.input,(h,p)=>(he(),nt(J(XMe),{key:p,index:`${p}`},{default:st(()=>[Cn(lt(h.label),1)]),_:2},1032,["index"]))),128))]),_:1})):Ye("",!0),Et(J(Z3),{ref_key:"siteFormRef",ref:S,autocomplete:M.disableFormAutocomplete?"off":"on",disabled:l.value,"hide-required-asterisk":!0,"label-position":"top",model:i.value,name:`${M.site.config.id_site}`,rules:C.value,onSubmit:s[5]||(s[5]=h=>U(h,S.value)),onValidate:K},{default:st(()=>[(he(!0),ke(Ct,null,ii(T.value,(h,p)=>(he(),ke(Ct,{key:`${p}-${h.name}`},[h.type==="file"?(he(),nt(mTe,{ref_for:!0,ref_key:"firstInput",ref:b,key:`${p}-${h.name}`,credential:h,"display-error":c.value,"id-site":M.site.config.id_site,onInput:g=>i.value[h.name]=g,onValidate:g=>K(h.name,g)},null,8,["credential","display-error","id-site","onInput","onValidate"])):(he(),nt(J(J3),{key:1,label:h.label,prop:h.name,for:`${M.site.config.id_site}[${h.name}]`},{error:st(({error:g})=>[ze("div",_Te,lt(J(B)(`form_errors.${g}`,{label:h.label})),1)]),default:st(()=>[h.type==="text"||h.type==="password"?(he(),nt(J(m3),{key:0,ref_for:!0,ref_key:"firstInput",ref:b,modelValue:i.value[h.name],"onUpdate:modelValue":g=>i.value[h.name]=g,"data-testid":"site-input",autocomplete:h.name==="password"?`${M.site.config.id_site} new-password`:M.disableFormAutocomplete?"off":`${M.site.config.id_site} ${h.name}`,name:`${M.site.config.id_site}[${h.name}]`,type:h.type==="password"&&f.value?"text":h.type},X9({_:2},[h.type==="password"&&M.showPasswordStyle==="icon"?{name:"append",fn:st(()=>[ze("button",{class:Ce(M.$style["icon-eye"]),"aria-label":J(B)(`common.${f.value?"hide":"show_password"}`),type:"button",onClick:s[2]||(s[2]=()=>{f.value=!f.value})},[f.value?(he(),nt(ol,{key:0,icon:"eye-slash"})):(he(),nt(ol,{key:1,icon:"eye"}))],10,bTe)]),key:"0"}:void 0]),1032,["modelValue","onUpdate:modelValue","autocomplete","name","type"])):Ye("",!0),h.type==="select"?(he(),nt(J(Fm),{key:1,ref_for:!0,ref_key:"firstInput",ref:b,modelValue:i.value[h.name],"onUpdate:modelValue":g=>i.value[h.name]=g,"data-testid":"site-select","popper-class":M.selectClass,autocomplete:M.disableFormAutocomplete?"off":`${M.site.config.id_site} ${h.name}`},{default:st(()=>[(he(!0),ke(Ct,null,ii(h.options,(g,_)=>(he(),nt(J(Lm),{key:_,value:g.value,label:g.label},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","popper-class","autocomplete"])):Ye("",!0)]),_:2},1032,["label","prop","for"])),h.type==="password"&&M.showPasswordStyle==="text"&&N(h.name)?(he(),nt(J(Im),{key:`${p}-${h.name}-toggle`,class:Ce(M.$style["show-hide"]),"native-type":"button",onClick:s[3]||(s[3]=()=>{f.value=!f.value})},{default:st(()=>[Cn(lt(J(B)(`common.${f.value?"hide":"show_password"}`)),1)]),_:2},1032,["class"])):Ye("",!0)],64))),128)),ze("div",{class:Ce(M.$style["site-buttons"])},[ze("button",{class:"pb-w-sync_secondary-button","data-testid":"site-button-back",type:"button",onClick:s[4]||(s[4]=()=>t("back"))},lt(J(B)("common.back")),1),ze("button",{class:"pb-w-sync_primary-button","data-testid":"site-button",disabled:M.buttonDisabledStyle&&o.value,type:"submit"},lt(J(B)("common.next")),9,wTe)],2)]),_:1},8,["autocomplete","disabled","model","name","rules"])]))}}),[["__cssModules",{$style:{"auth-error":"pb-w-sync_auth-error","icon-eye":"pb-w-sync_icon-eye","show-hide":"pb-w-sync_show-hide","site-buttons":"pb-w-sync_site-buttons","site-form-header":"pb-w-sync_site-form-header","site-cover":"pb-w-sync_site-cover","widget-form-loader":"pb-w-sync_widget-form-loader"}}]]),xTe=["alt","src"],STe=["onClick"],MTe=wi(rt({__name:"SitesList",props:{assetsPath:{},items:{},organization:{},showLogo:{type:Boolean}},emits:["select"],setup(e,{emit:t}){const r=e,n=wt(Ea);ur(()=>{r.showLogo&&n("images-loading")});function a(){n("images-loaded")}function i(o){t("select",o)}return(o,l)=>(he(),ke("div",{class:Ce(o.$style["sites-container"])},[o.showLogo?(he(),ke("img",{key:0,class:Ce(o.$style["organization-cover"]),alt:o.organization.name,src:`${o.assetsPath}${o.organization.cover}`,width:"1600",height:"480",onLoad:a},null,42,xTe)):Ye("",!0),ze("div",{class:Ce(o.$style.sites)},[(he(!0),ke(Ct,null,ii(o.items,(f,c)=>(he(),ke("button",{key:`${f.id_site}-${c}`,type:"button",onClick:()=>i(f)},lt(f.name),9,STe))),128))],2)],2))}}),[["__cssModules",{$style:{"organization-cover":"pb-w-sync_organization-cover","sites-container":"pb-w-sync_sites-container",sites:"pb-w-sync_sites"}}]]),CTe=wi(rt({__name:"TheModal",props:{mobile:{type:Boolean,default:!1},visible:{type:Boolean,default:!1}},emits:["update:visible"],setup(e,{emit:t}){const r=e,n=wt(Ea);function a(){Ln("close"),t("update:visible",!1),n("closed")}return(i,o)=>tn((he(),ke("div",{class:Ce(i.$style["modal-container"])},[ze("div",{class:Ce(i.$style["modal-overlay-backdrop"]),onClick:a},null,2),ze("div",{class:Ce(i.$style["modal-wrapper"])},[ze("div",{class:Ce([i.$style.modal,{[i.$style["is-mobile"]]:r.mobile}])},[yt(i.$slots,"default")],2)],2)],2)),[[la,i.visible]])}}),[["__cssModules",{$style:{"modal-container":"pb-w-sync_modal-container","modal-wrapper":"pb-w-sync_modal-wrapper","modal-overlay-backdrop":"pb-w-sync_modal-overlay-backdrop",modal:"pb-w-sync_modal","is-mobile":"pb-w-sync_is-mobile"}}]]),K7e="",TTe=["onClick"],ATe=["src"],ITe=wi(rt({__name:"MultipleImages",props:{credential:{default:()=>({type:"options",name:"token",label:"Por favor, revisa las imágenes que se te presentan y selecciona la correcta",options:[]})},modelValue:{default:void 0}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=wt(Ea);let a=0;const i=be(()=>{const f=Math.sqrt(r.credential.options.length);return f%1===0?[f,f]:o(Math.floor(f))});ur(()=>{n("images-loading")});function o(f){if(r.credential.options.length%f===0){const c=r.credential.options.length/f;return[f,c]}return o(f-1)}function l(){a++,a===r.credential.options.length&&n("images-loaded")}return(f,c)=>(he(),ke("div",{class:Ce(f.$style["multiple-images-container"])},[ze("div",{class:Ce(f.$style["multiple-images-wrapper"])},[(he(!0),ke(Ct,null,ii(i.value[0],d=>(he(),ke("div",{key:d,class:Ce(f.$style["credential-options-row"])},[(he(!0),ke(Ct,null,ii(i.value[1],v=>(he(),ke("div",{key:v,class:Ce([f.$style["credential-options-col"],{[f.$style.selected]:f.modelValue===f.credential.options[v-1+(d-1)*i.value[1]].value}]),onClick:m=>t("update:modelValue",f.credential.options[v-1+(d-1)*i.value[1]].value)},[ze("img",{class:Ce(f.$style["credental-options-img"]),src:f.credential.options[v-1+(d-1)*i.value[1]].imgBase64File||f.credential.options[v-1+(d-1)*i.value[1]].imgURL,onLoad:l},null,42,ATe)],10,TTe))),128))],2))),128))],2)],2))}}),[["__cssModules",{$style:{"multiple-images-container":"pb-w-sync_multiple-images-container","multiple-images-wrapper":"pb-w-sync_multiple-images-wrapper","credential-options-row":"pb-w-sync_credential-options-row","credential-options-col":"pb-w-sync_credential-options-col",selected:"pb-w-sync_selected","credental-options-img":"pb-w-sync_credental-options-img"}}]]),BTe=["alt","src"],kTe={key:0},NTe=["src"],OTe={key:1},RTe=["src","onLoad"],PTe=["aria-label"],FTe=["disabled"],nx=wi(rt({__name:"TwofaForm",props:{avatar:{},buttonDisabledStyle:{type:Boolean},cover:{},disableFormAutocomplete:{type:Boolean},enableBackNavigation:{type:Boolean},inNotification:{type:Boolean},loaderMessage:{},selectClass:{},siteName:{},showLogo:{type:Boolean},showPasswordStyle:{},twofa:{}},emits:["back","error"],setup(e,{emit:t}){const r=e,n=wt(Ea),a=wt(mw),i=Oe({}),o=Oe({...r.twofa.data}),l=Oe({}),f=Oe([]),c=Oe(!1);let d=0,v=!0,m=!1,y={};const b=be(()=>r.twofa.config.twofa.reduce((h,p)=>p.imgBase64File?h+1:h,0)),S=Oe(null),T=Oe(null);dt(()=>r.twofa,()=>{K()});function C(){K()}function I(h){return l.value[h]||{}}function B(h){return!!o[h]}function N(h){const p=f.value[h];p&&(l.value={...l.value,[h]:{width:`${p.naturalWidth}px`}},Xt(P))}function R(){S.value&&S.value[0].focus()}function P(){d++,d===b.value&&n("images-loaded")}function D(){const h={};r.twofa.config.twofa&&r.twofa.config.twofa.length&&r.twofa.config.twofa.forEach(p=>{p.type==="accounts"&&(h[p.name]=[])}),i.value=h}function $(h){return["text","password","textOptions","accounts","options"].includes(h)}function U(h){o.value={...o.value,[h]:i.value[h].join()}}function K(){i.value={},o.value={...r.twofa.data},l.value={},f.value=[],c.value=!1,d=0,v=!0,m=!1,y={},r.twofa.defineRules(a),D(),r.twofa.on("loading",()=>{c.value=!0}),r.twofa.on("twofa-device-error",h=>{t("error",h)}),r.twofa.on("token-received",()=>{o.value={...r.twofa.data}}),b.value&&n("images-loading"),s(),r.twofa.config.twofa.forEach(h=>{["connection","challenge"].includes(h.type)&&s(h.name,!0)}),Xt(()=>{R()})}function M(){T.value.validate(h=>{h&&(n("submitted"),r.twofa.authenticate({...o.value}).then(p=>p).catch(p=>{t("error",p)}))})}function s(h,p){h&&(y[h]=p),v=Object.getOwnPropertyNames(r.twofa.rules).reduce((g,_)=>_==="__ob__"||r.twofa.rules[_].length===0?g:g||!y[_],!1)}return C(),(h,p)=>c.value?(he(),ke("div",{key:0,class:Ce(h.$style["twofa-form-loader"])},[Et(Nf,{avatar:h.showLogo?h.avatar:void 0,message:r.loaderMessage.long,title:r.loaderMessage.short,size:"large",onImagesLoaded:p[0]||(p[0]=()=>J(n)("images-loaded")),onImagesLoading:p[1]||(p[1]=()=>J(n)("images-loading"))},null,8,["avatar","message","title"])],2)):(he(),ke("div",{key:1,class:Ce(h.$style["twofa-form"])},[h.inNotification?Ye("",!0):(he(),ke("div",{key:0,class:Ce(h.$style["twofa-form-header"])},[h.showLogo?(he(),ke("img",{key:0,alt:h.siteName,class:Ce(h.$style["twofa-cover"]),src:h.cover,width:"1600",height:"480",onLoad:P},null,42,BTe)):Ye("",!0),ze("h2",null,lt(h.siteName),1)],2)),r.twofa?(he(),nt(J(Z3),{key:1,ref_key:"twofaForm",ref:T,"label-position":"top",disabled:c.value,model:o.value,rules:r.twofa.rules,name:`twofa-${r.twofa.config.id_site}`,autocomplete:r.disableFormAutocomplete?"off":"on",onSubmit:rn(M,["prevent"]),onValidate:s},{default:st(()=>[(he(!0),ke(Ct,null,ii(r.twofa.config.twofa,(g,_)=>(he(),ke(Ct,{key:`${_}-${g.name}`},[g.type==="externalAction"?(he(),ke("div",kTe,[ze("label",{class:Ce(h.$style["external-action-label"])},lt(g.label),3),ze("div",{class:Ce(h.$style["external-action-img-container"])},[g.imgBase64File?(he(),ke("img",{key:0,alt:"",src:g.imgBase64File,onLoad:P},null,40,NTe)):Ye("",!0)],2)])):g.type==="instructions"?(he(),ke("div",OTe,[ze("label",{class:Ce(h.$style["external-action-label"])},lt(g.label),3)])):Ye("",!0),$(g.type)?(he(),nt(J(J3),{key:2,label:g.label,prop:g.name,for:`twofa-${r.twofa.config.id_site}[${g.name}]`},{default:st(()=>[g.imgBase64File?(he(),ke("img",{key:0,ref_for:!0,ref_key:"imageWithoutSize",ref:f,src:g.imgBase64File,class:Ce(h.$style["input-image"]),style:en(I(_)),alt:"",onLoad:w=>N(_)},null,46,RTe)):Ye("",!0),g.type==="text"||g.type==="password"?(he(),nt(J(m3),{key:1,ref_for:!0,ref:_===0&&"firstInput",modelValue:o.value[g.name],"onUpdate:modelValue":w=>o.value[g.name]=w,"data-testid":"twofa-input",name:`twofa-${r.twofa.config.id_site}[${g.name}]`,autocomplete:g.name==="password"?`${r.twofa.config.id_site} new-password`:r.disableFormAutocomplete?"off":`${r.twofa.config.id_site} ${g.name}`,disabled:g.disabled,type:g.type==="password"&&J(m)?"text":g.type},X9({_:2},[g.type==="password"&&r.showPasswordStyle==="icon"?{name:"append",fn:st(()=>[ze("button",{class:Ce(h.$style["icon-eye-twofa"]),"aria-label":J(a)(`common.${J(m)?"hide":"show_password"}`),type:"button",onClick:p[2]||(p[2]=()=>{gr(m)?m.value=!J(m):m=!J(m)})},[J(m)?(he(),nt(ol,{key:1,icon:"eye-slash"})):(he(),nt(ol,{key:0,icon:"eye"}))],10,PTe)]),key:"0"}:void 0]),1032,["modelValue","onUpdate:modelValue","name","autocomplete","disabled","type"])):Ye("",!0),g.type==="textOptions"?(he(),nt(J(Fm),{key:2,ref_for:!0,ref:_===0&&"firstInput",modelValue:o.value[g.name],"onUpdate:modelValue":w=>o.value[g.name]=w,"data-testid":"twofa-select",autocomplete:r.disableFormAutocomplete?"off":`twofa-${r.twofa.config.id_site} ${g.name}`,name:`twofa-${r.twofa.config.id_site}[${g.name}]`,"popper-class":r.selectClass},{default:st(()=>[(he(!0),ke(Ct,null,ii(g.options,(w,A)=>(he(),nt(J(Lm),{key:A,value:w.value,label:w.label},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","autocomplete","name","popper-class"])):Ye("",!0),g.type==="accounts"?(he(),nt(J(Fm),{key:3,ref_for:!0,ref:_===0&&"firstInput",modelValue:i.value[g.name],"onUpdate:modelValue":w=>i.value[g.name]=w,"data-testid":"twofa-multi-select",autocomplete:r.disableFormAutocomplete?"off":`twofa-${r.twofa.config.id_site} ${g.name}`,filterable:"",multiple:"",name:`twofa-${r.twofa.config.id_site}[${g.name}]`,"popper-class":r.selectClass,onChange:()=>U(g.name)},{default:st(()=>[(he(!0),ke(Ct,null,ii(g.options,(w,A)=>(he(),nt(J(Lm),{key:A,value:w.value,label:w.label},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","autocomplete","name","popper-class","onChange"])):Ye("",!0),g.type==="options"?(he(),nt(ITe,{key:4,modelValue:o.value[g.name],"onUpdate:modelValue":[w=>o.value[g.name]=w,()=>{s(g.name,!0)}],credential:g},null,8,["modelValue","onUpdate:modelValue","credential"])):Ye("",!0)]),_:2},1032,["label","prop","for"])):Ye("",!0),g.type==="password"&&r.showPasswordStyle==="text"&&B(g.name)?(he(),nt(J(Im),{key:`${_}-${g.name}-toggle`,class:Ce(h.$style["show-hide"]),"native-type":"button",onClick:p[3]||(p[3]=()=>{gr(m)?m.value=!J(m):m=!J(m)})},{default:st(()=>[Cn(lt(J(a)(`common.${J(m)?"hide":"show_password"}`)),1)]),_:2},1032,["class"])):Ye("",!0)],64))),128)),ze("div",{class:Ce(h.$style["twofa-buttons"])},[r.enableBackNavigation?(he(),ke("button",{key:0,class:"pb-w-sync_secondary-button","data-testid":"twofa-back",type:"button",onClick:p[4]||(p[4]=()=>{t("back")})},lt(J(a)("common.back")),1)):Ye("",!0),r.twofa.displaySubmitButton?(he(),ke("button",{key:1,class:"pb-w-sync_primary-button",disabled:r.buttonDisabledStyle&&J(v),"data-testid":"twofa-button",type:"submit"},lt(J(a)("common.next")),9,FTe)):Ye("",!0)],2)]),_:1},8,["disabled","model","rules","name","autocomplete","onSubmit"])):Ye("",!0)],2))}}),[["__cssModules",{$style:{"external-action-img-container":"pb-w-sync_external-action-img-container","external-action-label":"pb-w-sync_external-action-label","icon-eye-twofa":"pb-w-sync_icon-eye-twofa","input-image":"pb-w-sync_input-image","show-hide":"pb-w-sync_show-hide","twofa-buttons":"pb-w-sync_twofa-buttons","twofa-form-header":"pb-w-sync_twofa-form-header","twofa-cover":"pb-w-sync_twofa-cover","twofa-form-loader":"pb-w-sync_twofa-form-loader"}}]]);function ix(){const e=Oe(!1);function t(){Xt(()=>{e.value=yw.device.type==="mobile"||window.innerWidth<540})}return gn(()=>{}),ur(()=>{t(),window.addEventListener("resize",t)}),{mobile:e}}const eBe="",un=wi(rt({__name:"TwofaNotification",props:{assetsPath:{default:"https://s.paybook.com"},buttonDisabledStyle:{type:Boolean,default:!1},disableFormAutocomplete:{type:Boolean,default:!1},displayLongDescription:{type:Boolean,default:!1},duration:{},enableBackNavigation:{type:Boolean,default:!1},hideForm:{type:Boolean,default:!1},initLongMessage:{default:null},initMessage:{default:null},initTitle:{default:""},item:{default:null},messagesUpdater:{default:null},rootEmit:{type:Function,default:null},selectClass:{default:""},showLogo:{type:Boolean,default:!1},showPasswordStyle:{default:"icon"},t:{},type:{}},emits:["back","error","imagesLoaded","imagesLoading"],setup(e,{emit:t}){var P,D,$,U;const r=e;sn(Ea,r.rootEmit),sn(mw,r.t);let n=Oe(r.initLongMessage||((P=r.messagesUpdater)==null?void 0:P.getMessages().long)||""),a=Oe(r.initMessage||((D=r.messagesUpdater)==null?void 0:D.getMessages().short)||""),i=null,o=Oe(r.displayLongDescription||!1),l=Oe(!1),f=Oe(($=r.item)==null?void 0:$.status),c=Oe(r.item&&((U=r.item)!=null&&U.config)?r.item.config.name:r.initTitle);const{mobile:d}=ix(),v=be(()=>r.item&&r.item.config?`${r.assetsPath}${r.item.config.avatar}`:""),m=be(()=>r.item&&r.item.config?`${r.assetsPath}${r.item.config.cover}`:""),y=be(()=>r.item?d.value?f.value==="twofa":(f.value==="twofa"||f.value==="twofa-loading")&&!r.hideForm:!1),b=be(()=>r.item?r.type==="info"&&f.value!=="twofa":r.type==="info"),S=be(()=>r.item?f.value!=="twofa-loading":!0);function T(){r.messagesUpdater&&r.messagesUpdater.subscribe(()=>{const K=r.messagesUpdater.getMessages();n.value=K.long,a.value=K.short}),r.item&&(r.item.on("twofa",()=>{f.value="twofa",l.value=!0}),r.item.on("twofa-loading",()=>{f.value="twofa-loading",l.value=!1}))}ur(()=>{Xt(()=>{r.type!=="info"&&d.value&&(l.value=!0,B())})});function C(){clearTimeout(i)}function I(){return Math.round(r.duration*.75)}function B(){d.value&&r.duration>0&&(i=setTimeout(()=>{l.value=!1},I()))}function N(){r.type!=="info"&&d.value&&(l.value=!l.value,C())}function R(){o.value=!o.value}return T(),(K,M)=>(he(),ke("div",null,[ze("div",{class:Ce([K.$style["site-indentifier"],{[K.$style["is-mobile"]]:J(d)}]),onClick:N,onMouseleave:B},[b.value||K.showLogo?(he(),nt(Nf,{key:0,avatar:K.showLogo?v.value:void 0,type:r.type==="info"?"loading":r.type,onImagesLoaded:M[0]||(M[0]=()=>t("imagesLoaded")),onImagesLoading:M[1]||(M[1]=()=>t("imagesLoading"))},null,8,["avatar","type"])):Ye("",!0),!J(d)||J(l)?(he(),ke("div",{key:1,class:Ce([K.$style["site-identifier-description"],{[K.$style["with-loader"]]:b.value||K.showLogo}])},[ze("span",{class:Ce([K.$style["site-name"],K.$style[r.type]])},lt(J(c)),3),S.value?(he(),ke("p",{key:0,class:Ce(K.$style["site-identifier-message"])},lt(J(a)),3)):Ye("",!0),J(o)?(he(),ke("p",{key:1,class:Ce(K.$style["site-identifier-long-message"])},lt(J(n)),3)):Ye("",!0),r.type!=="info"?(he(),ke("div",{key:2,class:Ce(K.$style["widget-notification-show-more-container"])},[J(n)?(he(),nt(J(RMe),{key:0,type:"primary",onClick:rn(R,["stop"])},{default:st(()=>[Cn(lt(r.t("common.show",{msg:r.t(`common.${J(o)?"less":"more"}`)})),1)]),_:1},8,["onClick"])):Ye("",!0)],2)):Ye("",!0)],2)):Ye("",!0)],34),y.value?(he(),ke("div",{key:0,class:Ce(K.$style["notification-form"])},[Et(nx,{avatar:v.value,"button-disabled-style":K.buttonDisabledStyle,cover:m.value,"disable-form-autocomplete":K.disableFormAutocomplete,"enable-back-navigation":K.enableBackNavigation,"in-notification":!0,"loader-message":J(a),"select-class":K.selectClass,"show-logo":K.showLogo,"show-password-style":K.showPasswordStyle,"site-name":J(c),twofa:r.item.twofa,onBack:M[2]||(M[2]=()=>t("back")),onError:M[3]||(M[3]=s=>t("error",s))},null,8,["avatar","button-disabled-style","cover","disable-form-autocomplete","enable-back-navigation","loader-message","select-class","show-logo","show-password-style","site-name","twofa"])],2)):Ye("",!0)]))}}),[["__cssModules",{$style:{"site-indentifier":"pb-w-sync_site-indentifier","site-identifier-description":"pb-w-sync_site-identifier-description","with-loader":"pb-w-sync_with-loader","site-name":"pb-w-sync_site-name",error:"pb-w-sync_error",success:"pb-w-sync_success","site-identifier-long-message":"pb-w-sync_site-identifier-long-message","site-identifier-message":"pb-w-sync_site-identifier-message","is-mobile":"pb-w-sync_is-mobile","widget-avatar-container":"pb-w-sync_widget-avatar-container","widget-notification-show-more-container":"pb-w-sync_widget-notification-show-more-container","notification-form":"pb-w-sync_notification-form"}}]]),LTe=ze("div",null,null,-1),DTe=wi(rt({__name:"UnauthorizedNotification",props:{initMessage:{default:""},initTitle:{default:""},refreshTokenFunction:{},t:{}},emits:["closed","closeNotification","refreshToken","refreshTokenError"],setup(e,{emit:t}){const r=e;let n=Oe(!1);const{mobile:a}=ix();gn(()=>{t("closed")});function i(){n.value=!0,r.refreshTokenFunction().then(({token:o,strict:l})=>{if(typeof o!="string")throw new Error("Refresh token is not valid. Promise should return a valid token.");return new Promise(f=>{t("refreshToken",{token:o,strict:l,resolve:f})})}).catch(()=>{t("refreshTokenError")}).finally(()=>{n.value=!1})}return(o,l)=>(he(),ke("div",null,[ze("div",{class:Ce([o.$style["site-indentifier"],{[o.$style["is-mobile"]]:J(a)}])},[LTe,ze("div",{class:Ce([o.$style["site-identifier-description"],o.$style["with-loader"]])},[ze("span",{class:Ce([o.$style["site-name"],o.$style.error])},lt(r.initTitle),3),ze("p",{class:Ce(o.$style["site-identifier-message"])},lt(r.initMessage),3),ze("div",{class:Ce(o.$style["unauthorized-button-container"])},[tn((he(),nt(J(Im),{disabled:J(n),type:"primary",onClick:rn(i,["stop"])},{default:st(()=>[Cn(lt(r.t("common.refresh")),1)]),_:1},8,["disabled","onClick"])),[[J(SCe),J(n)]]),Et(J(Im),{disabled:J(n),onClick:l[0]||(l[0]=rn(()=>{t("closeNotification")},["stop"]))},{default:st(()=>[Cn(lt(r.t("common.cancel")),1)]),_:1},8,["disabled"])],2)],2)],2)]))}}),[["__cssModules",{$style:{"site-indentifier":"pb-w-sync_site-indentifier","site-identifier-description":"pb-w-sync_site-identifier-description","with-loader":"pb-w-sync_with-loader","site-name":"pb-w-sync_site-name","site-identifier-message":"pb-w-sync_site-identifier-message","is-mobile":"pb-w-sync_is-mobile","unauthorized-icon-cotainer":"pb-w-sync_unauthorized-icon-cotainer","widget-notification-show-more-container":"pb-w-sync_widget-notification-show-more-container","unauthorized-icon":"pb-w-sync_unauthorized-icon","unauthorized-button-container":"pb-w-sync_unauthorized-button-container"}}]]);function UF(e,t){return function(){return e.apply(t,arguments)}}const{toString:$Te}=Object.prototype,{getPrototypeOf:ax}=Object,zm=(e=>t=>{const r=$Te.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),La=e=>(e=e.toLowerCase(),t=>zm(t)===e),Vm=e=>t=>typeof t===e,{isArray:oc}=Array,ld=Vm("undefined");function UTe(e){return e!==null&&!ld(e)&&e.constructor!==null&&!ld(e.constructor)&&Pi(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const zF=La("ArrayBuffer");function zTe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&zF(e.buffer),t}const VTe=Vm("string"),Pi=Vm("function"),VF=Vm("number"),qm=e=>e!==null&&typeof e=="object",qTe=e=>e===!0||e===!1,Hm=e=>{if(zm(e)!=="object")return!1;const t=ax(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},HTe=La("Date"),jTe=La("File"),KTe=La("Blob"),WTe=La("FileList"),GTe=e=>qm(e)&&Pi(e.pipe),ZTe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Pi(e.append)&&((t=zm(e))==="formdata"||t==="object"&&Pi(e.toString)&&e.toString()==="[object FormData]"))},JTe=La("URLSearchParams"),[YTe,XTe,QTe,eAe]=["ReadableStream","Request","Response","Headers"].map(La),tAe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function fd(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),oc(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let l;for(n=0;n<o;n++)l=i[n],t.call(null,e[l],l,e)}}function qF(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,a;for(;n-- >0;)if(a=r[n],t===a.toLowerCase())return a;return null}const Of=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:wn)(),HF=e=>!ld(e)&&e!==Of;function ox(){const{caseless:e}=HF(this)&&this||{},t={},r=(n,a)=>{const i=e&&qF(t,a)||a;Hm(t[i])&&Hm(n)?t[i]=ox(t[i],n):Hm(n)?t[i]=ox({},n):oc(n)?t[i]=n.slice():t[i]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&fd(arguments[n],r);return t}const rAe=(e,t,r,{allOwnKeys:n}={})=>(fd(t,(a,i)=>{r&&Pi(a)?e[i]=UF(a,r):e[i]=a},{allOwnKeys:n}),e),nAe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),iAe=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},aAe=(e,t,r,n)=>{let a,i,o;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!n||n(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=r!==!1&&ax(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},oAe=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},sAe=e=>{if(!e)return null;if(oc(e))return e;let t=e.length;if(!VF(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},lAe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ax(Uint8Array)),fAe=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},uAe=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},cAe=La("HTMLFormElement"),hAe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),jF=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),dAe=La("RegExp"),KF=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};fd(r,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(n[i]=o||a)}),Object.defineProperties(e,n)},pAe=e=>{KF(e,(t,r)=>{if(Pi(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Pi(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},vAe=(e,t)=>{const r={},n=a=>{a.forEach(i=>{r[i]=!0})};return oc(e)?n(e):n(String(e).split(t)),r},mAe=()=>{},gAe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,sx="abcdefghijklmnopqrstuvwxyz",WF="0123456789",GF={DIGIT:WF,ALPHA:sx,ALPHA_DIGIT:sx+sx.toUpperCase()+WF},yAe=(e=16,t=GF.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function bAe(e){return!!(e&&Pi(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const _Ae=e=>{const t=new Array(10),r=(n,a)=>{if(qm(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const i=oc(n)?[]:{};return fd(n,(o,l)=>{const f=r(o,a+1);!ld(f)&&(i[l]=f)}),t[a]=void 0,i}}return n};return r(e,0)},wAe=La("AsyncFunction"),EAe=e=>e&&(qm(e)||Pi(e))&&Pi(e.then)&&Pi(e.catch),ZF=((e,t)=>e?setImmediate:t?((r,n)=>(Of.addEventListener("message",({source:a,data:i})=>{a===Of&&i===r&&n.length&&n.shift()()},!1),a=>{n.push(a),Of.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Pi(Of.postMessage)),xAe=typeof queueMicrotask<"u"?queueMicrotask.bind(Of):typeof fe<"u"&&fe.nextTick||ZF,Ve={isArray:oc,isArrayBuffer:zF,isBuffer:UTe,isFormData:ZTe,isArrayBufferView:zTe,isString:VTe,isNumber:VF,isBoolean:qTe,isObject:qm,isPlainObject:Hm,isReadableStream:YTe,isRequest:XTe,isResponse:QTe,isHeaders:eAe,isUndefined:ld,isDate:HTe,isFile:jTe,isBlob:KTe,isRegExp:dAe,isFunction:Pi,isStream:GTe,isURLSearchParams:JTe,isTypedArray:lAe,isFileList:WTe,forEach:fd,merge:ox,extend:rAe,trim:tAe,stripBOM:nAe,inherits:iAe,toFlatObject:aAe,kindOf:zm,kindOfTest:La,endsWith:oAe,toArray:sAe,forEachEntry:fAe,matchAll:uAe,isHTMLForm:cAe,hasOwnProperty:jF,hasOwnProp:jF,reduceDescriptors:KF,freezeMethods:pAe,toObjectSet:vAe,toCamelCase:hAe,noop:mAe,toFiniteNumber:gAe,findKey:qF,global:Of,isContextDefined:HF,ALPHABET:GF,generateString:yAe,isSpecCompliantForm:bAe,toJSONObject:_Ae,isAsyncFn:wAe,isThenable:EAe,setImmediate:ZF,asap:xAe};function Ft(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}Ve.inherits(Ft,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ve.toJSONObject(this.config),code:this.code,status:this.status}}});const JF=Ft.prototype,YF={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{YF[e]={value:e}}),Object.defineProperties(Ft,YF),Object.defineProperty(JF,"isAxiosError",{value:!0}),Ft.from=(e,t,r,n,a,i)=>{const o=Object.create(JF);return Ve.toFlatObject(e,o,function(f){return f!==Error.prototype},l=>l!=="isAxiosError"),Ft.call(o,e.message,t,r,n,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const SAe=null;function lx(e){return Ve.isPlainObject(e)||Ve.isArray(e)}function XF(e){return Ve.endsWith(e,"[]")?e.slice(0,-2):e}function QF(e,t,r){return e?e.concat(t).map(function(a,i){return a=XF(a),!r&&i?"["+a+"]":a}).join(r?".":""):t}function MAe(e){return Ve.isArray(e)&&!e.some(lx)}const CAe=Ve.toFlatObject(Ve,{},null,function(t){return/^is[A-Z]/.test(t)});function jm(e,t,r){if(!Ve.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Ve.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,T){return!Ve.isUndefined(T[S])});const n=r.metaTokens,a=r.visitor||d,i=r.dots,o=r.indexes,f=(r.Blob||typeof Blob<"u"&&Blob)&&Ve.isSpecCompliantForm(t);if(!Ve.isFunction(a))throw new TypeError("visitor must be a function");function c(b){if(b===null)return"";if(Ve.isDate(b))return b.toISOString();if(!f&&Ve.isBlob(b))throw new Ft("Blob is not supported. Use a Buffer instead.");return Ve.isArrayBuffer(b)||Ve.isTypedArray(b)?f&&typeof Blob=="function"?new Blob([b]):ve.Buffer.from(b):b}function d(b,S,T){let C=b;if(b&&!T&&typeof b=="object"){if(Ve.endsWith(S,"{}"))S=n?S:S.slice(0,-2),b=JSON.stringify(b);else if(Ve.isArray(b)&&MAe(b)||(Ve.isFileList(b)||Ve.endsWith(S,"[]"))&&(C=Ve.toArray(b)))return S=XF(S),C.forEach(function(B,N){!(Ve.isUndefined(B)||B===null)&&t.append(o===!0?QF([S],N,i):o===null?S:S+"[]",c(B))}),!1}return lx(b)?!0:(t.append(QF(T,S,i),c(b)),!1)}const v=[],m=Object.assign(CAe,{defaultVisitor:d,convertValue:c,isVisitable:lx});function y(b,S){if(!Ve.isUndefined(b)){if(v.indexOf(b)!==-1)throw Error("Circular reference detected in "+S.join("."));v.push(b),Ve.forEach(b,function(C,I){(!(Ve.isUndefined(C)||C===null)&&a.call(t,C,Ve.isString(I)?I.trim():I,S,m))===!0&&y(C,S?S.concat(I):[I])}),v.pop()}}if(!Ve.isObject(e))throw new TypeError("data must be an object");return y(e),t}function eL(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function fx(e,t){this._pairs=[],e&&jm(e,this,t)}const tL=fx.prototype;tL.append=function(t,r){this._pairs.push([t,r])},tL.toString=function(t){const r=t?function(n){return t.call(this,n,eL)}:eL;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function TAe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rL(e,t,r){if(!t)return e;const n=r&&r.encode||TAe;Ve.isFunction(r)&&(r={serialize:r});const a=r&&r.serialize;let i;if(a?i=a(t,r):i=Ve.isURLSearchParams(t)?t.toString():new fx(t,r).toString(n),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class AAe{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ve.forEach(this.handlers,function(n){n!==null&&t(n)})}}const nL=AAe,iL={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},IAe={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:fx,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ux=typeof window<"u"&&typeof document<"u",cx=typeof navigator=="object"&&navigator||void 0,BAe=ux&&(!cx||["ReactNative","NativeScript","NS"].indexOf(cx.product)<0),kAe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),NAe=ux&&window.location.href||"http://localhost",Gn={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ux,hasStandardBrowserEnv:BAe,hasStandardBrowserWebWorkerEnv:kAe,navigator:cx,origin:NAe},Symbol.toStringTag,{value:"Module"})),...IAe};function OAe(e,t){return jm(e,new Gn.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,i){return Gn.isNode&&Ve.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function RAe(e){return Ve.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function PAe(e){const t={},r=Object.keys(e);let n;const a=r.length;let i;for(n=0;n<a;n++)i=r[n],t[i]=e[i];return t}function aL(e){function t(r,n,a,i){let o=r[i++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),f=i>=r.length;return o=!o&&Ve.isArray(a)?a.length:o,f?(Ve.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!l):((!a[o]||!Ve.isObject(a[o]))&&(a[o]=[]),t(r,n,a[o],i)&&Ve.isArray(a[o])&&(a[o]=PAe(a[o])),!l)}if(Ve.isFormData(e)&&Ve.isFunction(e.entries)){const r={};return Ve.forEachEntry(e,(n,a)=>{t(RAe(n),a,r,0)}),r}return null}function FAe(e,t,r){if(Ve.isString(e))try{return(t||JSON.parse)(e),Ve.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const hx={transitional:iL,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,i=Ve.isObject(t);if(i&&Ve.isHTMLForm(t)&&(t=new FormData(t)),Ve.isFormData(t))return a?JSON.stringify(aL(t)):t;if(Ve.isArrayBuffer(t)||Ve.isBuffer(t)||Ve.isStream(t)||Ve.isFile(t)||Ve.isBlob(t)||Ve.isReadableStream(t))return t;if(Ve.isArrayBufferView(t))return t.buffer;if(Ve.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return OAe(t,this.formSerializer).toString();if((l=Ve.isFileList(t))||n.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return jm(l?{"files[]":t}:t,f&&new f,this.formSerializer)}}return i||a?(r.setContentType("application/json",!1),FAe(t)):t}],transformResponse:[function(t){const r=this.transitional||hx.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(Ve.isResponse(t)||Ve.isReadableStream(t))return t;if(t&&Ve.isString(t)&&(n&&!this.responseType||a)){const o=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(l){if(o)throw l.name==="SyntaxError"?Ft.from(l,Ft.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Gn.classes.FormData,Blob:Gn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ve.forEach(["delete","get","head","post","put","patch"],e=>{hx.headers[e]={}});const dx=hx,LAe=Ve.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),DAe=e=>{const t={};let r,n,a;return e&&e.split(`
864
+ `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+r+"$)|(?:^"+a+"$)"),o=new RegExp("^"+r+"$"),l=new RegExp("^"+a+"$"),f=function(N){return N&&N.exact?i:new RegExp("(?:"+t(N)+r+t(N)+")|(?:"+t(N)+a+t(N)+")","g")};f.v4=function(B){return B&&B.exact?o:new RegExp(""+t(B)+r+t(B),"g")},f.v6=function(B){return B&&B.exact?l:new RegExp(""+t(B)+a+t(B),"g")};var c="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",v=f.v4().source,m=f.v6().source,y="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",S="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",T="(?::\\d{2,5})?",C='(?:[/?#][^\\s"]*)?',I="(?:"+c+"|www\\.)"+d+"(?:localhost|"+v+"|"+m+"|"+y+b+S+")"+T+C;return Rm=new RegExp("(?:^"+I+"$)","i"),Rm},TF={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ad={integer:function(t){return ad.number(t)&&parseInt(t,10)===t},float:function(t){return ad.number(t)&&!ad.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!ad.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(TF.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(iMe())},hex:function(t){return typeof t=="string"&&!!t.match(TF.hex)}},aMe=function(t,r,n,a,i){if(t.required&&r===void 0){CF(t,r,n,a,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;o.indexOf(l)>-1?ad[l](r)||a.push(Ri(i.messages.types[l],t.fullField,t.type)):l&&typeof r!==t.type&&a.push(Ri(i.messages.types[l],t.fullField,t.type))},oMe=function(t,r,n,a,i){var o=typeof t.len=="number",l=typeof t.min=="number",f=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,v=null,m=typeof r=="number",y=typeof r=="string",b=Array.isArray(r);if(m?v="number":y?v="string":b&&(v="array"),!v)return!1;b&&(d=r.length),y&&(d=r.replace(c,"_").length),o?d!==t.len&&a.push(Ri(i.messages[v].len,t.fullField,t.len)):l&&!f&&d<t.min?a.push(Ri(i.messages[v].min,t.fullField,t.min)):f&&!l&&d>t.max?a.push(Ri(i.messages[v].max,t.fullField,t.max)):l&&f&&(d<t.min||d>t.max)&&a.push(Ri(i.messages[v].range,t.fullField,t.min,t.max))},ic="enum",sMe=function(t,r,n,a,i){t[ic]=Array.isArray(t[ic])?t[ic]:[],t[ic].indexOf(r)===-1&&a.push(Ri(i.messages[ic],t.fullField,t[ic].join(", ")))},lMe=function(t,r,n,a,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||a.push(Ri(i.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(r)||a.push(Ri(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Qt={required:CF,whitespace:nMe,type:aMe,range:oMe,enum:sMe,pattern:lMe},fMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(_n(r,"string")&&!t.required)return n();Qt.required(t,r,a,o,i,"string"),_n(r,"string")||(Qt.type(t,r,a,o,i),Qt.range(t,r,a,o,i),Qt.pattern(t,r,a,o,i),t.whitespace===!0&&Qt.whitespace(t,r,a,o,i))}n(o)},uMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(_n(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&Qt.type(t,r,a,o,i)}n(o)},cMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(r===""&&(r=void 0),_n(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&(Qt.type(t,r,a,o,i),Qt.range(t,r,a,o,i))}n(o)},hMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(_n(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&Qt.type(t,r,a,o,i)}n(o)},dMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(_n(r)&&!t.required)return n();Qt.required(t,r,a,o,i),_n(r)||Qt.type(t,r,a,o,i)}n(o)},pMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(_n(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&(Qt.type(t,r,a,o,i),Qt.range(t,r,a,o,i))}n(o)},vMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(_n(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&(Qt.type(t,r,a,o,i),Qt.range(t,r,a,o,i))}n(o)},mMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(r==null&&!t.required)return n();Qt.required(t,r,a,o,i,"array"),r!=null&&(Qt.type(t,r,a,o,i),Qt.range(t,r,a,o,i))}n(o)},gMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(_n(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&Qt.type(t,r,a,o,i)}n(o)},yMe="enum",bMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(_n(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&Qt[yMe](t,r,a,o,i)}n(o)},_Me=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(_n(r,"string")&&!t.required)return n();Qt.required(t,r,a,o,i),_n(r,"string")||Qt.pattern(t,r,a,o,i)}n(o)},wMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(_n(r,"date")&&!t.required)return n();if(Qt.required(t,r,a,o,i),!_n(r,"date")){var f;r instanceof Date?f=r:f=new Date(r),Qt.type(t,f,a,o,i),f&&Qt.range(t,f.getTime(),a,o,i)}}n(o)},EMe=function(t,r,n,a,i){var o=[],l=Array.isArray(r)?"array":typeof r;Qt.required(t,r,a,o,i,l),n(o)},K3=function(t,r,n,a,i){var o=t.type,l=[],f=t.required||!t.required&&a.hasOwnProperty(t.field);if(f){if(_n(r,o)&&!t.required)return n();Qt.required(t,r,a,l,i,o),_n(r,o)||Qt.type(t,r,a,l,i)}n(l)},xMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(_n(r)&&!t.required)return n();Qt.required(t,r,a,o,i)}n(o)},od={string:fMe,method:uMe,number:cMe,boolean:hMe,regexp:dMe,integer:pMe,float:vMe,array:mMe,object:gMe,enum:bMe,pattern:_Me,date:wMe,url:K3,hex:K3,email:K3,required:EMe,any:xMe};function W3(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var G3=W3(),sd=function(){function e(r){this.rules=null,this._messages=G3,this.define(r)}var t=e.prototype;return t.define=function(n){var a=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var o=n[i];a.rules[i]=Array.isArray(o)?o:[o]})},t.messages=function(n){return n&&(this._messages=MF(W3(),n)),this._messages},t.validate=function(n,a,i){var o=this;a===void 0&&(a={}),i===void 0&&(i=function(){});var l=n,f=a,c=i;if(typeof f=="function"&&(c=f,f={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function d(S){var T=[],C={};function I(N){if(Array.isArray(N)){var R;T=(R=T).concat.apply(R,N)}else T.push(N)}for(var B=0;B<S.length;B++)I(S[B]);T.length?(C=j3(T),c(T,C)):c(null,l)}if(f.messages){var v=this.messages();v===G3&&(v=W3()),MF(v,f.messages),f.messages=v}else f.messages=this.messages();var m={},y=f.keys||Object.keys(this.rules);y.forEach(function(S){var T=o.rules[S],C=l[S];T.forEach(function(I){var B=I;typeof B.transform=="function"&&(l===n&&(l=kf({},l)),C=l[S]=B.transform(C)),typeof B=="function"?B={validator:B}:B=kf({},B),B.validator=o.getValidationMethod(B),B.validator&&(B.field=S,B.fullField=B.fullField||S,B.type=o.getType(B),m[S]=m[S]||[],m[S].push({rule:B,value:C,source:l,field:S}))})});var b={};return eMe(m,f,function(S,T){var C=S.rule,I=(C.type==="object"||C.type==="array")&&(typeof C.fields=="object"||typeof C.defaultField=="object");I=I&&(C.required||!C.required&&S.value),C.field=S.field;function B(P,D){return kf({},D,{fullField:C.fullField+"."+P,fullFields:C.fullFields?[].concat(C.fullFields,[P]):[P]})}function N(P){P===void 0&&(P=[]);var D=Array.isArray(P)?P:[P];!f.suppressWarning&&D.length&&e.warning("async-validator:",D),D.length&&C.message!==void 0&&(D=[].concat(C.message));var $=D.map(SF(C,l));if(f.first&&$.length)return b[C.field]=1,T($);if(!I)T($);else{if(C.required&&!S.value)return C.message!==void 0?$=[].concat(C.message).map(SF(C,l)):f.error&&($=[f.error(C,Ri(f.messages.required,C.field))]),T($);var U={};C.defaultField&&Object.keys(S.value).map(function(s){U[s]=C.defaultField}),U=kf({},U,S.rule.fields);var K={};Object.keys(U).forEach(function(s){var h=U[s],p=Array.isArray(h)?h:[h];K[s]=p.map(B.bind(null,s))});var M=new e(K);M.messages(f.messages),S.rule.options&&(S.rule.options.messages=f.messages,S.rule.options.error=f.error),M.validate(S.value,S.rule.options||f,function(s){var h=[];$&&$.length&&h.push.apply(h,$),s&&s.length&&h.push.apply(h,s),T(h.length?h:null)})}}var R;if(C.asyncValidator)R=C.asyncValidator(C,S.value,N,S.source,f);else if(C.validator){try{R=C.validator(C,S.value,N,S.source,f)}catch(P){console.error==null||console.error(P),f.suppressValidatorError||setTimeout(function(){throw P},0),N(P.message)}R===!0?N():R===!1?N(typeof C.message=="function"?C.message(C.fullField||C.field):C.message||(C.fullField||C.field)+" fails"):R instanceof Array?N(R):R instanceof Error&&N(R.message)}R&&R.then&&R.then(function(){return N()},function(P){return N(P)})},function(S){d(S)},l)},t.getType=function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!od.hasOwnProperty(n.type))throw new Error(Ri("Unknown rule type %s",n.type));return n.type||"string"},t.getValidationMethod=function(n){if(typeof n.validator=="function")return n.validator;var a=Object.keys(n),i=a.indexOf("message");return i!==-1&&a.splice(i,1),a.length===1&&a[0]==="required"?od.required:od[this.getType(n)]||void 0},e}();sd.register=function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");od[t]=r},sd.warning=wF,sd.messages=G3,sd.validators=od;const SMe=["","error","validating","success"],MMe=hr({label:String,labelWidth:{type:[String,Number],default:""},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:Tt([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Tt([Object,Array])},error:String,validateStatus:{type:String,values:SMe},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:um}}),AF="ElLabelWrap";var CMe=rt({name:AF,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const r=wt(Wu,void 0),n=wt(Af);n||Hu(AF,"usage: <el-form-item><label-wrap /></el-form-item>");const a=Gt("form"),i=Oe(),o=Oe(0),l=()=>{var d;if((d=i.value)!=null&&d.firstElementChild){const v=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(v))}else return 0},f=(d="update")=>{Xt(()=>{t.default&&e.isAutoWidth&&(d==="update"?o.value=l():d==="remove"&&(r==null||r.deregisterLabelWidth(o.value)))})},c=()=>f("update");return ur(()=>{c()}),gn(()=>{f("remove")}),xh(()=>c()),dt(o,(d,v)=>{e.updateAll&&(r==null||r.registerLabelWidth(d,v))}),Oa(be(()=>{var d,v;return(v=(d=i.value)==null?void 0:d.firstElementChild)!=null?v:null}),c),()=>{var d,v;if(!t)return null;const{isAutoWidth:m}=e;if(m){const y=r==null?void 0:r.autoLabelWidth,b=n==null?void 0:n.hasLabel,S={};if(b&&y&&y!=="auto"){const T=Math.max(0,Number.parseInt(y,10)-o.value),I=(n.labelPosition||r.labelPosition)==="left"?"marginRight":"marginLeft";T&&(S[I]=`${T}px`)}return Et("div",{ref:i,class:[a.be("item","label-wrap")],style:S},[(d=t.default)==null?void 0:d.call(t)])}else return Et(Ct,{ref:i},[(v=t.default)==null?void 0:v.call(t)])}}});const TMe=rt({name:"ElFormItem"}),AMe=rt({...TMe,props:MMe,setup(e,{expose:t}){const r=e,n=Pu(),a=wt(Wu,void 0),i=wt(Af,void 0),o=el(void 0,{formItem:!1}),l=Gt("form-item"),f=Jh().value,c=Oe([]),d=Oe(""),v=G3e(d,100),m=Oe(""),y=Oe();let b,S=!1;const T=be(()=>r.labelPosition||(a==null?void 0:a.labelPosition)),C=be(()=>{if(T.value==="top")return{};const ie=Zh(r.labelWidth||(a==null?void 0:a.labelWidth)||"");return ie?{width:ie}:{}}),I=be(()=>{if(T.value==="top"||a!=null&&a.inline)return{};if(!r.label&&!r.labelWidth&&K)return{};const ie=Zh(r.labelWidth||(a==null?void 0:a.labelWidth)||"");return!r.label&&!n.label?{marginLeft:ie}:{}}),B=be(()=>[l.b(),l.m(o.value),l.is("error",d.value==="error"),l.is("validating",d.value==="validating"),l.is("success",d.value==="success"),l.is("required",g.value||r.required),l.is("no-asterisk",a==null?void 0:a.hideRequiredAsterisk),(a==null?void 0:a.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[l.m("feedback")]:a==null?void 0:a.statusIcon,[l.m(`label-${T.value}`)]:T.value}]),N=be(()=>Mf(r.inlineMessage)?r.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),R=be(()=>[l.e("error"),{[l.em("error","inline")]:N.value}]),P=be(()=>r.prop?It(r.prop)?r.prop:r.prop.join("."):""),D=be(()=>!!(r.label||n.label)),$=be(()=>r.for||(c.value.length===1?c.value[0]:void 0)),U=be(()=>!$.value&&D.value),K=!!i,M=be(()=>{const ie=a==null?void 0:a.model;if(!(!ie||!r.prop))return h3(ie,r.prop).value}),s=be(()=>{const{required:ie}=r,ne=[];r.rules&&ne.push(...Na(r.rules));const ce=a==null?void 0:a.rules;if(ce&&r.prop){const te=h3(ce,r.prop).value;te&&ne.push(...Na(te))}if(ie!==void 0){const te=ne.map((Z,j)=>[Z,j]).filter(([Z])=>Object.keys(Z).includes("required"));if(te.length>0)for(const[Z,j]of te)Z.required!==ie&&(ne[j]={...Z,required:ie});else ne.push({required:ie})}return ne}),h=be(()=>s.value.length>0),p=ie=>s.value.filter(ce=>!ce.trigger||!ie?!0:ot(ce.trigger)?ce.trigger.includes(ie):ce.trigger===ie).map(({trigger:ce,...te})=>te),g=be(()=>s.value.some(ie=>ie.required)),_=be(()=>{var ie;return v.value==="error"&&r.showMessage&&((ie=a==null?void 0:a.showMessage)!=null?ie:!0)}),w=be(()=>`${r.label||""}${(a==null?void 0:a.labelSuffix)||""}`),A=ie=>{d.value=ie},E=ie=>{var ne,ce;const{errors:te,fields:Z}=ie;(!te||!Z)&&console.error(ie),A("error"),m.value=te?(ce=(ne=te==null?void 0:te[0])==null?void 0:ne.message)!=null?ce:`${r.prop} is required`:"",a==null||a.emit("validate",r.prop,!1,m.value)},u=()=>{A("success"),a==null||a.emit("validate",r.prop,!0,"")},x=async ie=>{const ne=P.value;return new sd({[ne]:ie}).validate({[ne]:M.value},{firstFields:!0}).then(()=>(u(),!0)).catch(te=>(E(te),Promise.reject(te)))},k=async(ie,ne)=>{if(S||!r.prop)return!1;const ce=vt(ne);if(!h.value)return ne==null||ne(!1),!1;const te=p(ie);return te.length===0?(ne==null||ne(!0),!0):(A("validating"),x(te).then(()=>(ne==null||ne(!0),!0)).catch(Z=>{const{fields:j}=Z;return ne==null||ne(!1,j),ce?!1:Promise.reject(j)}))},O=()=>{A(""),m.value="",S=!1},q=async()=>{const ie=a==null?void 0:a.model;if(!ie||!r.prop)return;const ne=h3(ie,r.prop);S=!0,ne.value=_R(b),await Xt(),O(),S=!1},Y=ie=>{c.value.includes(ie)||c.value.push(ie)},W=ie=>{c.value=c.value.filter(ne=>ne!==ie)};dt(()=>r.error,ie=>{m.value=ie||"",A(ie?"error":"")},{immediate:!0}),dt(()=>r.validateStatus,ie=>A(ie||""));const X=vn({...zs(r),$el:y,size:o,validateState:d,labelId:f,inputIds:c,isGroup:U,hasLabel:D,fieldValue:M,addInputId:Y,removeInputId:W,resetField:q,clearValidate:O,validate:k});return sn(Af,X),ur(()=>{r.prop&&(a==null||a.addField(X),b=_R(M.value))}),gn(()=>{a==null||a.removeField(X)}),t({size:o,validateMessage:m,validateState:d,validate:k,clearValidate:O,resetField:q}),(ie,ne)=>{var ce;return he(),ke("div",{ref_key:"formItemRef",ref:y,class:Ce(J(B)),role:J(U)?"group":void 0,"aria-labelledby":J(U)?J(f):void 0},[Et(J(CMe),{"is-auto-width":J(C).width==="auto","update-all":((ce=J(a))==null?void 0:ce.labelWidth)==="auto"},{default:lt(()=>[J(D)?(he(),nt(Nn(J($)?"label":"div"),{key:0,id:J(f),for:J($),class:Ce(J(l).e("label")),style:en(J(C))},{default:lt(()=>[yt(ie.$slots,"label",{label:J(w)},()=>[Cn(st(J(w)),1)])]),_:3},8,["id","for","class","style"])):Ye("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),ze("div",{class:Ce(J(l).e("content")),style:en(J(I))},[yt(ie.$slots,"default"),Et(Lge,{name:`${J(l).namespace.value}-zoom-in-top`},{default:lt(()=>[J(_)?yt(ie.$slots,"error",{key:0,error:m.value},()=>[ze("div",{class:Ce(J(R))},st(m.value),3)]):Ye("v-if",!0)]),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}});var IF=ir(AMe,[["__file","form-item.vue"]]);const Z3=Rn(K8e,{FormItem:IF}),J3=ns(IF),IMe=hr({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:Ni}}),BMe={click:e=>e instanceof MouseEvent},kMe=rt({name:"ElLink"}),NMe=rt({...kMe,props:IMe,emits:BMe,setup(e,{emit:t}){const r=e,n=Gt("link"),a=be(()=>[n.b(),n.m(r.type),n.is("disabled",r.disabled),n.is("underline",r.underline&&!r.disabled)]);function i(o){r.disabled||t("click",o)}return(o,l)=>(he(),ke("a",{class:Ce(J(a)),href:o.disabled||!o.href?void 0:o.href,target:o.disabled||!o.href?void 0:o.target,onClick:i},[o.icon?(he(),nt(J(Pn),{key:0},{default:lt(()=>[(he(),nt(Nn(o.icon)))]),_:1})):Ye("v-if",!0),o.$slots.default?(he(),ke("span",{key:1,class:Ce(J(n).e("inner"))},[yt(o.$slots,"default")],2)):Ye("v-if",!0),o.$slots.icon?yt(o.$slots,"icon",{key:2}):Ye("v-if",!0)],10,["href","target"]))}});var OMe=ir(NMe,[["__file","link.vue"]]);const RMe=Rn(OMe);let PMe=class{constructor(t,r){this.parent=t,this.domNode=r,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,r=>{r.addEventListener("keydown",n=>{let a=!1;switch(n.code){case fn.down:{this.gotoSubIndex(this.subIndex+1),a=!0;break}case fn.up:{this.gotoSubIndex(this.subIndex-1),a=!0;break}case fn.tab:{mm(t,"mouseleave");break}case fn.enter:case fn.numpadEnter:case fn.space:{a=!0,n.currentTarget.click();break}}return a&&(n.preventDefault(),n.stopPropagation()),!1})})}},FMe=class{constructor(t,r){this.domNode=t,this.submenu=null,this.submenu=null,this.init(r)}init(t){this.domNode.setAttribute("tabindex","0");const r=this.domNode.querySelector(`.${t}-menu`);r&&(this.submenu=new PMe(this,r)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let r=!1;switch(t.code){case fn.down:{mm(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),r=!0;break}case fn.up:{mm(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),r=!0;break}case fn.tab:{mm(t.currentTarget,"mouseleave");break}case fn.enter:case fn.numpadEnter:case fn.space:{r=!0,t.currentTarget.click();break}}r&&t.preventDefault()})}},LMe=class{constructor(t,r){this.domNode=t,this.init(r)}init(t){const r=this.domNode.childNodes;Array.from(r).forEach(n=>{n.nodeType===1&&new FMe(n,t)})}};const DMe=rt({name:"ElMenuCollapseTransition",setup(){const e=Gt("menu");return{listeners:{onBeforeEnter:r=>r.style.opacity="0.2",onEnter(r,n){Ku(r,`${e.namespace.value}-opacity-transition`),r.style.opacity="1",n()},onAfterEnter(r){Cf(r,`${e.namespace.value}-opacity-transition`),r.style.opacity=""},onBeforeLeave(r){r.dataset||(r.dataset={}),_xe(r,e.m("collapse"))?(Cf(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Ku(r,e.m("collapse"))):(Ku(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Cf(r,e.m("collapse"))),r.style.width=`${r.scrollWidth}px`,r.style.overflow="hidden"},onLeave(r){Ku(r,"horizontal-collapse-transition"),r.style.width=`${r.dataset.scrollWidth}px`}}}}});function $Me(e,t,r,n,a,i){return he(),nt(mo,sa({mode:"out-in"},e.listeners),{default:lt(()=>[yt(e.$slots,"default")]),_:3},16)}var UMe=ir(DMe,[["render",$Me],["__file","menu-collapse-transition.vue"]]);function BF(e,t){const r=be(()=>{let a=e.parent;const i=[t.value];for(;a.type.name!=="ElMenu";)a.props.index&&i.unshift(a.props.index),a=a.parent;return i});return{parentMenu:be(()=>{let a=e.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:r}}function zMe(e){return be(()=>{const r=e.backgroundColor;return r?new hF(r).shade(20).toString():""})}const kF=(e,t)=>{const r=Gt("menu");return be(()=>r.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":zMe(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},VMe=hr({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:Ni},expandOpenIcon:{type:Ni},collapseCloseIcon:{type:Ni},collapseOpenIcon:{type:Ni}}),Y3="ElSubMenu";var X3=rt({name:Y3,props:VMe,setup(e,{slots:t,expose:r}){const n=Cr(),{indexPath:a,parentMenu:i}=BF(n,be(()=>e.index)),o=Gt("menu"),l=Gt("sub-menu"),f=wt("rootMenu");f||Hu(Y3,"can not inject root menu");const c=wt(`subMenu:${i.value.uid}`);c||Hu(Y3,"can not inject sub menu");const d=Oe({}),v=Oe({});let m;const y=Oe(!1),b=Oe(),S=Oe(null),T=be(()=>$.value==="horizontal"&&I.value?"bottom-start":"right-start"),C=be(()=>$.value==="horizontal"&&I.value||$.value==="vertical"&&!f.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?P.value?e.expandOpenIcon:e.expandCloseIcon:iP:e.collapseCloseIcon&&e.collapseOpenIcon?P.value?e.collapseOpenIcon:e.collapseCloseIcon:Ixe),I=be(()=>c.level===0),B=be(()=>{const u=e.teleported;return u===void 0?I.value:u}),N=be(()=>f.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),R=be(()=>$.value==="horizontal"&&I.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),P=be(()=>f.openedMenus.includes(e.index)),D=be(()=>{let u=!1;return Object.values(d.value).forEach(x=>{x.active&&(u=!0)}),Object.values(v.value).forEach(x=>{x.active&&(u=!0)}),u}),$=be(()=>f.props.mode),U=vn({index:e.index,indexPath:a,active:D}),K=kF(f.props,c.level+1),M=be(()=>{var u;return(u=e.popperOffset)!=null?u:f.props.popperOffset}),s=be(()=>{var u;return(u=e.popperClass)!=null?u:f.props.popperClass}),h=be(()=>{var u;return(u=e.showTimeout)!=null?u:f.props.showTimeout}),p=be(()=>{var u;return(u=e.hideTimeout)!=null?u:f.props.hideTimeout}),g=()=>{var u,x,k;return(k=(x=(u=S.value)==null?void 0:u.popperRef)==null?void 0:x.popperInstanceRef)==null?void 0:k.destroy()},_=u=>{u||g()},w=()=>{f.props.menuTrigger==="hover"&&f.props.mode==="horizontal"||f.props.collapse&&f.props.mode==="vertical"||e.disabled||f.handleSubMenuClick({index:e.index,indexPath:a.value,active:D.value})},A=(u,x=h.value)=>{var k;if(u.type!=="focus"){if(f.props.menuTrigger==="click"&&f.props.mode==="horizontal"||!f.props.collapse&&f.props.mode==="vertical"||e.disabled){c.mouseInChild.value=!0;return}c.mouseInChild.value=!0,m==null||m(),{stop:m}=l3(()=>{f.openMenu(e.index,a.value)},x),B.value&&((k=i.value.vnode.el)==null||k.dispatchEvent(new MouseEvent("mouseenter")))}},E=(u=!1)=>{var x;if(f.props.menuTrigger==="click"&&f.props.mode==="horizontal"||!f.props.collapse&&f.props.mode==="vertical"){c.mouseInChild.value=!1;return}m==null||m(),c.mouseInChild.value=!1,{stop:m}=l3(()=>!y.value&&f.closeMenu(e.index,a.value),p.value),B.value&&u&&((x=c.handleMouseleave)==null||x.call(c,!0))};dt(()=>f.props.collapse,u=>_(!!u));{const u=k=>{v.value[k.index]=k},x=k=>{delete v.value[k.index]};sn(`subMenu:${n.uid}`,{addSubMenu:u,removeSubMenu:x,handleMouseleave:E,mouseInChild:y,level:c.level+1})}return r({opened:P}),ur(()=>{f.addSubMenu(U),c.addSubMenu(U)}),gn(()=>{c.removeSubMenu(U),f.removeSubMenu(U)}),()=>{var u;const x=[(u=t.title)==null?void 0:u.call(t),Ot(Pn,{class:l.e("icon-arrow"),style:{transform:P.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&f.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>It(C.value)?Ot(n.appContext.components[C.value]):Ot(C.value)})],k=f.isMenuPopup?Ot(F3,{ref:S,visible:P.value,effect:"light",pure:!0,offset:M.value,showArrow:!1,persistent:!0,popperClass:s.value,placement:T.value,teleported:B.value,fallbackPlacements:R.value,transition:N.value,gpuAcceleration:!1},{content:()=>{var O;return Ot("div",{class:[o.m($.value),o.m("popup-container"),s.value],onMouseenter:q=>A(q,100),onMouseleave:()=>E(!0),onFocus:q=>A(q,100)},[Ot("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${T.value}`)],style:K.value},[(O=t.default)==null?void 0:O.call(t)])])},default:()=>Ot("div",{class:l.e("title"),onClick:w},x)}):Ot(Ct,{},[Ot("div",{class:l.e("title"),ref:b,onClick:w},x),Ot(R8e,{},{default:()=>{var O;return tn(Ot("ul",{role:"menu",class:[o.b(),o.m("inline")],style:K.value},[(O=t.default)==null?void 0:O.call(t)]),[[la,P.value]])}})]);return Ot("li",{class:[l.b(),l.is("active",D.value),l.is("opened",P.value),l.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:P.value,onMouseenter:A,onMouseleave:()=>E(),onFocus:A},[k])}}});const qMe=hr({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Tt(Array),default:()=>hP([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:Ni,default:()=>Uxe},popperEffect:{type:Tt(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300}}),Q3=e=>ot(e)&&e.every(t=>It(t));var HMe=rt({name:"ElMenu",props:qMe,emits:{close:(e,t)=>It(e)&&Q3(t),open:(e,t)=>It(e)&&Q3(t),select:(e,t,r,n)=>It(e)&&Q3(t)&&At(r)&&(n===void 0||n instanceof Promise)},setup(e,{emit:t,slots:r,expose:n}){const a=Cr(),i=a.appContext.config.globalProperties.$router,o=Oe(),l=Gt("menu"),f=Gt("sub-menu"),c=Oe(-1),d=Oe(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),v=Oe(e.defaultActive),m=Oe({}),y=Oe({}),b=be(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),S=()=>{const g=v.value&&m.value[v.value];if(!g||e.mode==="horizontal"||e.collapse)return;g.indexPath.forEach(w=>{const A=y.value[w];A&&T(w,A.indexPath)})},T=(g,_)=>{d.value.includes(g)||(e.uniqueOpened&&(d.value=d.value.filter(w=>_.includes(w))),d.value.push(g),t("open",g,_))},C=g=>{const _=d.value.indexOf(g);_!==-1&&d.value.splice(_,1)},I=(g,_)=>{C(g),t("close",g,_)},B=({index:g,indexPath:_})=>{d.value.includes(g)?I(g,_):T(g,_)},N=g=>{(e.mode==="horizontal"||e.collapse)&&(d.value=[]);const{index:_,indexPath:w}=g;if(!(Sf(_)||Sf(w)))if(e.router&&i){const A=g.route||_,E=i.push(A).then(u=>(u||(v.value=_),u));t("select",_,w,{index:_,indexPath:w,route:A},E)}else v.value=_,t("select",_,w,{index:_,indexPath:w})},R=g=>{const _=m.value,w=_[g]||v.value&&_[v.value]||_[e.defaultActive];w?v.value=w.index:v.value=g},P=g=>{const _=getComputedStyle(g),w=Number.parseInt(_.marginLeft,10),A=Number.parseInt(_.marginRight,10);return g.offsetWidth+w+A||0},D=()=>{var g,_;if(!o.value)return-1;const w=Array.from((_=(g=o.value)==null?void 0:g.childNodes)!=null?_:[]).filter(Y=>Y.nodeName!=="#comment"&&(Y.nodeName!=="#text"||Y.nodeValue)),A=64,E=getComputedStyle(o.value),u=Number.parseInt(E.paddingLeft,10),x=Number.parseInt(E.paddingRight,10),k=o.value.clientWidth-u-x;let O=0,q=0;return w.forEach((Y,W)=>{O+=P(Y),O<=k-A&&(q=W+1)}),q===w.length?-1:q},$=g=>y.value[g].indexPath,U=(g,_=33.34)=>{let w;return()=>{w&&clearTimeout(w),w=setTimeout(()=>{g()},_)}};let K=!0;const M=()=>{if(c.value===D())return;const g=()=>{c.value=-1,Xt(()=>{c.value=D()})};K?g():U(g)(),K=!1};dt(()=>e.defaultActive,g=>{m.value[g]||(v.value=""),R(g)}),dt(()=>e.collapse,g=>{g&&(d.value=[])}),dt(m.value,S);let s;Uw(()=>{e.mode==="horizontal"&&e.ellipsis?s=Oa(o,M).stop:s==null||s()});const h=Oe(!1);{const g=E=>{y.value[E.index]=E},_=E=>{delete y.value[E.index]};sn("rootMenu",vn({props:e,openedMenus:d,items:m,subMenus:y,activeIndex:v,isMenuPopup:b,addMenuItem:E=>{m.value[E.index]=E},removeMenuItem:E=>{delete m.value[E.index]},addSubMenu:g,removeSubMenu:_,openMenu:T,closeMenu:I,handleMenuItemClick:N,handleSubMenuClick:B})),sn(`subMenu:${a.uid}`,{addSubMenu:g,removeSubMenu:_,mouseInChild:h,level:0})}ur(()=>{e.mode==="horizontal"&&new LMe(a.vnode.el,l.namespace.value)}),n({open:_=>{const{indexPath:w}=y.value[_];w.forEach(A=>T(A,w))},close:C,handleResize:M});const p=kF(e,0);return()=>{var g,_;let w=(_=(g=r.default)==null?void 0:g.call(r))!=null?_:[];const A=[];if(e.mode==="horizontal"&&o.value){const x=Bm(w),k=c.value===-1?x:x.slice(0,c.value),O=c.value===-1?[]:x.slice(c.value);O!=null&&O.length&&e.ellipsis&&(w=k,A.push(Ot(X3,{index:"sub-menu-more",class:f.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>Ot(Pn,{class:f.e("icon-more")},{default:()=>Ot(e.ellipsisIcon)}),default:()=>O})))}const E=e.closeOnClickOutside?[[_F,()=>{d.value.length&&(h.value||(d.value.forEach(x=>t("close",x,$(x))),d.value=[]))}]]:[],u=tn(Ot("ul",{key:String(e.collapse),role:"menubar",ref:o,style:p.value,class:{[l.b()]:!0,[l.m(e.mode)]:!0,[l.m("collapse")]:e.collapse}},[...w,...A]),E);return e.collapseTransition&&e.mode==="vertical"?Ot(UMe,()=>u):u}}});const jMe=hr({index:{type:Tt([String,null]),default:null},route:{type:Tt([String,Object])},disabled:Boolean}),KMe={click:e=>It(e.index)&&ot(e.indexPath)},ex="ElMenuItem",WMe=rt({name:ex,components:{ElTooltip:F3},props:jMe,emits:KMe,setup(e,{emit:t}){const r=Cr(),n=wt("rootMenu"),a=Gt("menu"),i=Gt("menu-item");n||Hu(ex,"can not inject root menu");const{parentMenu:o,indexPath:l}=BF(r,ia(e,"index")),f=wt(`subMenu:${o.value.uid}`);f||Hu(ex,"can not inject sub menu");const c=be(()=>e.index===n.activeIndex),d=vn({index:e.index,indexPath:l,active:c}),v=()=>{e.disabled||(n.handleMenuItemClick({index:e.index,indexPath:l.value,route:e.route}),t("click",d))};return ur(()=>{f.addSubMenu(d),n.addMenuItem(d)}),gn(()=>{f.removeSubMenu(d),n.removeMenuItem(d)}),{parentMenu:o,rootMenu:n,active:c,nsMenu:a,nsMenuItem:i,handleClick:v}}});function GMe(e,t,r,n,a,i){const o=Hs("el-tooltip");return he(),ke("li",{class:Ce([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:e.handleClick},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(he(),nt(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:lt(()=>[yt(e.$slots,"title")]),default:lt(()=>[ze("div",{class:Ce(e.nsMenu.be("tooltip","trigger"))},[yt(e.$slots,"default")],2)]),_:3},8,["effect"])):(he(),ke(Ct,{key:1},[yt(e.$slots,"default"),yt(e.$slots,"title")],64))],10,["onClick"])}var NF=ir(WMe,[["render",GMe],["__file","menu-item.vue"]]);const ZMe=rt({name:"ElMenuItemGroup",props:{title:String},setup(){return{ns:Gt("menu-item-group")}}});function JMe(e,t,r,n,a,i){return he(),ke("li",{class:Ce(e.ns.b())},[ze("div",{class:Ce(e.ns.e("title"))},[e.$slots.title?yt(e.$slots,"title",{key:1}):(he(),ke(Ct,{key:0},[Cn(st(e.title),1)],64))],2),ze("ul",null,[yt(e.$slots,"default")])],2)}var OF=ir(ZMe,[["render",JMe],["__file","menu-item-group.vue"]]);const YMe=Rn(HMe,{MenuItem:NF,MenuItemGroup:OF,SubMenu:X3}),XMe=ns(NF);ns(OF),ns(X3);const RF=Symbol("ElSelectGroup"),Pm=Symbol("ElSelect");function QMe(e,t){const r=wt(Pm),n=wt(RF,{disabled:!1}),a=be(()=>d(Na(r.props.modelValue),e.value)),i=be(()=>{var y;if(r.props.multiple){const b=Na((y=r.props.modelValue)!=null?y:[]);return!a.value&&b.length>=r.props.multipleLimit&&r.props.multipleLimit>0}else return!1}),o=be(()=>e.label||(At(e.value)?"":e.value)),l=be(()=>e.value||e.label||""),f=be(()=>e.disabled||t.groupDisabled||i.value),c=Cr(),d=(y=[],b)=>{if(At(e.value)){const S=r.props.valueKey;return y&&y.some(T=>Nt(Qo(T,S))===Qo(b,S))}else return y&&y.includes(b)},v=()=>{!e.disabled&&!n.disabled&&(r.states.hoveringIndex=r.optionsArray.indexOf(c.proxy))},m=y=>{const b=new RegExp(M8e(y),"i");t.visible=b.test(o.value)||e.created};return dt(()=>o.value,()=>{!e.created&&!r.props.remote&&r.setSelected()}),dt(()=>e.value,(y,b)=>{const{remote:S,valueKey:T}=r.props;if(y!==b&&(r.onOptionDestroy(b,c.proxy),r.onOptionCreate(c.proxy)),!e.created&&!S){if(T&&At(y)&&At(b)&&y[T]===b[T])return;r.setSelected()}}),dt(()=>n.disabled,()=>{t.groupDisabled=n.disabled},{immediate:!0}),{select:r,currentLabel:o,currentValue:l,itemSelected:a,isDisabled:f,hoverItem:v,updateOption:m}}const eCe=rt({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=Gt("select"),r=Jh(),n=be(()=>[t.be("dropdown","item"),t.is("disabled",J(l)),t.is("selected",J(o)),t.is("hovering",J(m))]),a=vn({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:i,itemSelected:o,isDisabled:l,select:f,hoverItem:c,updateOption:d}=QMe(e,a),{visible:v,hover:m}=zs(a),y=Cr().proxy;f.onOptionCreate(y),gn(()=>{const S=y.value,{selected:T}=f.states,C=T.some(I=>I.value===y.value);Xt(()=>{f.states.cachedOptions.get(S)===y&&!C&&f.states.cachedOptions.delete(S)}),f.onOptionDestroy(S,y)});function b(){l.value||f.handleOptionSelect(y)}return{ns:t,id:r,containerKls:n,currentLabel:i,itemSelected:o,isDisabled:l,select:f,hoverItem:c,updateOption:d,visible:v,hover:m,selectOptionClick:b,states:a}}});function tCe(e,t,r,n,a,i){return tn((he(),ke("li",{id:e.id,class:Ce(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:e.hoverItem,onClick:rn(e.selectOptionClick,["stop"])},[yt(e.$slots,"default",{},()=>[ze("span",null,st(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[la,e.visible]])}var tx=ir(eCe,[["render",tCe],["__file","option.vue"]]);const rCe=rt({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=wt(Pm),t=Gt("select"),r=be(()=>e.props.popperClass),n=be(()=>e.props.multiple),a=be(()=>e.props.fitInputWidth),i=Oe("");function o(){var l;i.value=`${(l=e.selectRef)==null?void 0:l.offsetWidth}px`}return ur(()=>{o(),Oa(e.selectRef,o)}),{ns:t,minWidth:i,popperClass:r,isMultiple:n,isFitInputWidth:a}}});function nCe(e,t,r,n,a,i){return he(),ke("div",{class:Ce([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:en({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(he(),ke("div",{key:0,class:Ce(e.ns.be("dropdown","header"))},[yt(e.$slots,"header")],2)):Ye("v-if",!0),yt(e.$slots,"default"),e.$slots.footer?(he(),ke("div",{key:1,class:Ce(e.ns.be("dropdown","footer"))},[yt(e.$slots,"footer")],2)):Ye("v-if",!0)],6)}var iCe=ir(rCe,[["render",nCe],["__file","select-dropdown.vue"]]);const aCe=11,oCe=(e,t)=>{const{t:r}=ZR(),n=Jh(),a=Gt("select"),i=Gt("input"),o=vn({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),l=Oe(null),f=Oe(null),c=Oe(null),d=Oe(null),v=Oe(null),m=Oe(null),y=Oe(null),b=Oe(null),S=Oe(null),T=Oe(null),C=Oe(null),I=Oe(null),{isComposing:B,handleCompositionStart:N,handleCompositionUpdate:R,handleCompositionEnd:P}=mP({afterComposition:Ae=>Xe(Ae)}),{wrapperRef:D,isFocused:$,handleBlur:U}=vP(v,{beforeFocus(){return w.value},afterFocus(){e.automaticDropdown&&!K.value&&(K.value=!0,o.menuVisibleOnFocus=!0)},beforeBlur(Ae){var ge,Ie;return((ge=c.value)==null?void 0:ge.isFocusInsideContent(Ae))||((Ie=d.value)==null?void 0:Ie.isFocusInsideContent(Ae))},afterBlur(){K.value=!1,o.menuVisibleOnFocus=!1}}),K=Oe(!1),M=Oe(),{form:s,formItem:h}=Gu(),{inputId:p}=pm(e,{formItemContext:h}),{valueOnClear:g,isEmptyValue:_}=gxe(e),w=be(()=>e.disabled||(s==null?void 0:s.disabled)),A=be(()=>ot(e.modelValue)?e.modelValue.length>0:!_(e.modelValue)),E=be(()=>{var Ae;return(Ae=s==null?void 0:s.statusIcon)!=null?Ae:!1}),u=be(()=>e.clearable&&!w.value&&o.inputHovering&&A.value),x=be(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),k=be(()=>a.is("reverse",x.value&&K.value)),O=be(()=>(h==null?void 0:h.validateState)||""),q=be(()=>uP[O.value]),Y=be(()=>e.remote?300:0),W=be(()=>e.loading?e.loadingText||r("el.select.loading"):e.remote&&!o.inputValue&&o.options.size===0?!1:e.filterable&&o.inputValue&&o.options.size>0&&X.value===0?e.noMatchText||r("el.select.noMatch"):o.options.size===0?e.noDataText||r("el.select.noData"):null),X=be(()=>ie.value.filter(Ae=>Ae.visible).length),ie=be(()=>{const Ae=Array.from(o.options.values()),ge=[];return o.optionValues.forEach(Ie=>{const gt=Ae.findIndex(_t=>_t.value===Ie);gt>-1&&ge.push(Ae[gt])}),ge.length>=Ae.length?ge:Ae}),ne=be(()=>Array.from(o.cachedOptions.values())),ce=be(()=>{const Ae=ie.value.filter(ge=>!ge.created).some(ge=>ge.currentLabel===o.inputValue);return e.filterable&&e.allowCreate&&o.inputValue!==""&&!Ae}),te=()=>{e.filterable&&vt(e.filterMethod)||e.filterable&&e.remote&&vt(e.remoteMethod)||ie.value.forEach(Ae=>{var ge;(ge=Ae.updateOption)==null||ge.call(Ae,o.inputValue)})},Z=el(),j=be(()=>["small"].includes(Z.value)?"small":"default"),ae=be({get(){return K.value&&W.value!==!1},set(Ae){K.value=Ae}}),se=be(()=>{if(e.multiple&&!es(e.modelValue))return Na(e.modelValue).length===0&&!o.inputValue;const Ae=ot(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||es(Ae)?!o.inputValue:!0}),V=be(()=>{var Ae;const ge=(Ae=e.placeholder)!=null?Ae:r("el.select.placeholder");return e.multiple||!A.value?ge:o.selectedLabel}),L=be(()=>RR?null:"mouseenter");dt(()=>e.modelValue,(Ae,ge)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(o.inputValue="",F("")),le(),!Kh(Ae,ge)&&e.validateEvent&&(h==null||h.validate("change").catch(Ie=>Yr(Ie)))},{flush:"post",deep:!0}),dt(()=>K.value,Ae=>{Ae?F(o.inputValue):(o.inputValue="",o.previousQuery=null,o.isBeforeHide=!0),t("visible-change",Ae)}),dt(()=>o.options.entries(),()=>{ln&&(le(),e.defaultFirstOption&&(e.filterable||e.remote)&&X.value&&z())},{flush:"post"}),dt(()=>o.hoveringIndex,Ae=>{Wn(Ae)&&Ae>-1?M.value=ie.value[Ae]||{}:M.value={},ie.value.forEach(ge=>{ge.hover=M.value===ge})}),Uw(()=>{o.isBeforeHide||te()});const F=Ae=>{o.previousQuery===Ae||B.value||(o.previousQuery=Ae,e.filterable&&vt(e.filterMethod)?e.filterMethod(Ae):e.filterable&&e.remote&&vt(e.remoteMethod)&&e.remoteMethod(Ae),e.defaultFirstOption&&(e.filterable||e.remote)&&X.value?Xt(z):Xt(re))},z=()=>{const Ae=ie.value.filter(_t=>_t.visible&&!_t.disabled&&!_t.states.groupDisabled),ge=Ae.find(_t=>_t.created),Ie=Ae[0],gt=ie.value.map(_t=>_t.value);o.hoveringIndex=Ne(gt,ge||Ie)},le=()=>{if(e.multiple)o.selectedLabel="";else{const ge=ot(e.modelValue)?e.modelValue[0]:e.modelValue,Ie=Q(ge);o.selectedLabel=Ie.currentLabel,o.selected=[Ie];return}const Ae=[];es(e.modelValue)||Na(e.modelValue).forEach(ge=>{Ae.push(Q(ge))}),o.selected=Ae},Q=Ae=>{let ge;const Ie=Ew(Ae);for(let ar=o.cachedOptions.size-1;ar>=0;ar--){const er=ne.value[ar];if(Ie?Qo(er.value,e.valueKey)===Qo(Ae,e.valueKey):er.value===Ae){ge={value:Ae,currentLabel:er.currentLabel,get isDisabled(){return er.isDisabled}};break}}if(ge)return ge;const gt=Ie?Ae.label:Ae??"";return{value:Ae,currentLabel:gt}},re=()=>{o.hoveringIndex=ie.value.findIndex(Ae=>o.selected.some(ge=>Pt(ge)===Pt(Ae)))},ue=()=>{o.selectionWidth=f.value.getBoundingClientRect().width},H=()=>{o.calculatorWidth=m.value.getBoundingClientRect().width},G=()=>{o.collapseItemWidth=C.value.getBoundingClientRect().width},me=()=>{var Ae,ge;(ge=(Ae=c.value)==null?void 0:Ae.updatePopper)==null||ge.call(Ae)},oe=()=>{var Ae,ge;(ge=(Ae=d.value)==null?void 0:Ae.updatePopper)==null||ge.call(Ae)},de=()=>{o.inputValue.length>0&&!K.value&&(K.value=!0),F(o.inputValue)},Xe=Ae=>{if(o.inputValue=Ae.target.value,e.remote)Ee();else return de()},Ee=M3e(()=>{de()},Y.value),Se=Ae=>{Kh(e.modelValue,Ae)||t(rP,Ae)},_e=Ae=>A3e(Ae,ge=>{const Ie=o.cachedOptions.get(ge);return Ie&&!Ie.disabled&&!Ie.states.groupDisabled}),pe=Ae=>{if(e.multiple&&Ae.code!==fn.delete&&Ae.target.value.length<=0){const ge=Na(e.modelValue).slice(),Ie=_e(ge);if(Ie<0)return;const gt=ge[Ie];ge.splice(Ie,1),t(ki,ge),Se(ge),t("remove-tag",gt)}},Te=(Ae,ge)=>{const Ie=o.selected.indexOf(ge);if(Ie>-1&&!w.value){const gt=Na(e.modelValue).slice();gt.splice(Ie,1),t(ki,gt),Se(gt),t("remove-tag",ge.value)}Ae.stopPropagation(),qe()},it=Ae=>{Ae.stopPropagation();const ge=e.multiple?[]:g.value;if(e.multiple)for(const Ie of o.selected)Ie.isDisabled&&ge.push(Ie.value);t(ki,ge),Se(ge),o.hoveringIndex=-1,K.value=!1,t("clear"),qe()},Me=Ae=>{var ge;if(e.multiple){const Ie=Na((ge=e.modelValue)!=null?ge:[]).slice(),gt=Ne(Ie,Ae);gt>-1?Ie.splice(gt,1):(e.multipleLimit<=0||Ie.length<e.multipleLimit)&&Ie.push(Ae.value),t(ki,Ie),Se(Ie),Ae.created&&F(""),e.filterable&&!e.reserveKeyword&&(o.inputValue="")}else t(ki,Ae.value),Se(Ae.value),K.value=!1;qe(),!K.value&&Xt(()=>{mt(Ae)})},Ne=(Ae=[],ge)=>es(ge)?-1:At(ge.value)?Ae.findIndex(Ie=>Kh(Qo(Ie,e.valueKey),Pt(ge))):Ae.indexOf(ge.value),mt=Ae=>{var ge,Ie,gt,_t,ar;const er=ot(Ae)?Ae[0]:Ae;let dr=null;if(er!=null&&er.value){const lr=ie.value.filter(yr=>yr.value===er.value);lr.length>0&&(dr=lr[0].$el)}if(c.value&&dr){const lr=(_t=(gt=(Ie=(ge=c.value)==null?void 0:ge.popperRef)==null?void 0:Ie.contentRef)==null?void 0:gt.querySelector)==null?void 0:_t.call(gt,`.${a.be("dropdown","wrap")}`);lr&&wxe(lr,dr)}(ar=I.value)==null||ar.handleScroll()},Re=Ae=>{o.options.set(Ae.value,Ae),o.cachedOptions.set(Ae.value,Ae)},He=(Ae,ge)=>{o.options.get(Ae)===ge&&o.options.delete(Ae)},Ut=be(()=>{var Ae,ge;return(ge=(Ae=c.value)==null?void 0:Ae.popperRef)==null?void 0:ge.contentRef}),Le=()=>{o.isBeforeHide=!1,Xt(()=>mt(o.selected))},qe=()=>{var Ae;(Ae=v.value)==null||Ae.focus()},zt=()=>{var Ae;if(K.value){K.value=!1,Xt(()=>{var ge;return(ge=v.value)==null?void 0:ge.blur()});return}(Ae=v.value)==null||Ae.blur()},De=Ae=>{it(Ae)},je=Ae=>{if(K.value=!1,$.value){const ge=new FocusEvent("focus",Ae);Xt(()=>U(ge))}},Vt=()=>{o.inputValue.length>0?o.inputValue="":K.value=!1},Pe=()=>{w.value||(RR&&(o.inputHovering=!0),o.menuVisibleOnFocus?o.menuVisibleOnFocus=!1:K.value=!K.value)},Ke=()=>{if(!K.value)Pe();else{const Ae=ie.value[o.hoveringIndex];Ae&&!Ae.isDisabled&&Me(Ae)}},Pt=Ae=>At(Ae.value)?Qo(Ae.value,e.valueKey):Ae.value,$e=be(()=>ie.value.filter(Ae=>Ae.visible).every(Ae=>Ae.isDisabled)),We=be(()=>e.multiple?e.collapseTags?o.selected.slice(0,e.maxCollapseTags):o.selected:[]),qt=be(()=>e.multiple?e.collapseTags?o.selected.slice(e.maxCollapseTags):[]:[]),Fe=Ae=>{if(!K.value){K.value=!0;return}if(!(o.options.size===0||X.value===0||B.value)&&!$e.value){Ae==="next"?(o.hoveringIndex++,o.hoveringIndex===o.options.size&&(o.hoveringIndex=0)):Ae==="prev"&&(o.hoveringIndex--,o.hoveringIndex<0&&(o.hoveringIndex=o.options.size-1));const ge=ie.value[o.hoveringIndex];(ge.isDisabled||!ge.visible)&&Fe(Ae),Xt(()=>mt(M.value))}},Ge=()=>{if(!f.value)return 0;const Ae=window.getComputedStyle(f.value);return Number.parseFloat(Ae.gap||"6px")},Ht=be(()=>{const Ae=Ge();return{maxWidth:`${C.value&&e.maxCollapseTags===1?o.selectionWidth-o.collapseItemWidth-Ae:o.selectionWidth}px`}}),Ue=be(()=>({maxWidth:`${o.selectionWidth}px`})),Ze=be(()=>({width:`${Math.max(o.calculatorWidth,aCe)}px`}));return Oa(f,ue),Oa(m,H),Oa(S,me),Oa(D,me),Oa(T,oe),Oa(C,G),ur(()=>{le()}),{inputId:p,contentId:n,nsSelect:a,nsInput:i,states:o,isFocused:$,expanded:K,optionsArray:ie,hoverOption:M,selectSize:Z,filteredOptionsCount:X,resetCalculatorWidth:H,updateTooltip:me,updateTagTooltip:oe,debouncedOnInputChange:Ee,onInput:Xe,deletePrevTag:pe,deleteTag:Te,deleteSelected:it,handleOptionSelect:Me,scrollToOption:mt,hasModelValue:A,shouldShowPlaceholder:se,currentPlaceholder:V,mouseEnterEventName:L,needStatusIcon:E,showClose:u,iconComponent:x,iconReverse:k,validateState:O,validateIcon:q,showNewOption:ce,updateOptions:te,collapseTagSize:j,setSelected:le,selectDisabled:w,emptyText:W,handleCompositionStart:N,handleCompositionUpdate:R,handleCompositionEnd:P,onOptionCreate:Re,onOptionDestroy:He,handleMenuEnter:Le,focus:qe,blur:zt,handleClearClick:De,handleClickOutside:je,handleEsc:Vt,toggleMenu:Pe,selectOption:Ke,getValueKey:Pt,navigateOptions:Fe,dropdownMenuVisible:ae,showTagList:We,collapseTagList:qt,tagStyle:Ht,collapseTagStyle:Ue,inputStyle:Ze,popperRef:Ut,inputRef:v,tooltipRef:c,tagTooltipRef:d,calculatorRef:m,prefixRef:y,suffixRef:b,selectRef:l,wrapperRef:D,selectionRef:f,scrollbarRef:I,menuRef:S,tagMenuRef:T,collapseItemRef:C}};var sCe=rt({name:"ElOptions",setup(e,{slots:t}){const r=wt(Pm);let n=[];return()=>{var a,i;const o=(a=t.default)==null?void 0:a.call(t),l=[];function f(c){ot(c)&&c.forEach(d=>{var v,m,y,b;const S=(v=(d==null?void 0:d.type)||{})==null?void 0:v.name;S==="ElOptionGroup"?f(!It(d.children)&&!ot(d.children)&&vt((m=d.children)==null?void 0:m.default)?(y=d.children)==null?void 0:y.default():d.children):S==="ElOption"?l.push((b=d.props)==null?void 0:b.value):ot(d.children)&&f(d.children)})}return o.length&&f((i=o[0])==null?void 0:i.children),Kh(l,n)||(n=l,r&&(r.states.optionValues=l)),o}}});const lCe=hr({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:ju,effect:{type:Tt(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Tt(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:P3.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Ni,default:p3},fitInputWidth:Boolean,suffixIcon:{type:Ni,default:iP},tagType:{...V3.type,default:"info"},tagEffect:{...V3.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:Tt(String),values:wm,default:"bottom-start"},fallbackPlacements:{type:Tt(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:String,...QR,...Tf(["ariaLabel"])}),PF="ElSelect",fCe=rt({name:PF,componentName:PF,components:{ElSelectMenu:iCe,ElOption:tx,ElOptions:sCe,ElTag:B8e,ElScrollbar:T6e,ElTooltip:F3,ElIcon:Pn},directives:{ClickOutside:_F},props:lCe,emits:[ki,rP,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const r=be(()=>{const{modelValue:o,multiple:l}=e,f=l?[]:void 0;return ot(o)?l?o:f:l?f:o}),n=vn({...zs(e),modelValue:r}),a=oCe(n,t);sn(Pm,vn({props:n,states:a.states,optionsArray:a.optionsArray,handleOptionSelect:a.handleOptionSelect,onOptionCreate:a.onOptionCreate,onOptionDestroy:a.onOptionDestroy,selectRef:a.selectRef,setSelected:a.setSelected}));const i=be(()=>e.multiple?a.states.selected.map(o=>o.currentLabel):a.states.selectedLabel);return{...a,modelValue:r,selectedLabel:i}}});function uCe(e,t,r,n,a,i){const o=Hs("el-tag"),l=Hs("el-tooltip"),f=Hs("el-icon"),c=Hs("el-option"),d=Hs("el-options"),v=Hs("el-scrollbar"),m=Hs("el-select-menu"),y=J9("click-outside");return tn((he(),ke("div",{ref:"selectRef",class:Ce([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[Ho(e.mouseEnterEventName)]:b=>e.states.inputHovering=!0,onMouseleave:b=>e.states.inputHovering=!1},[Et(l,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:b=>e.states.isBeforeHide=!1},{default:lt(()=>{var b;return[ze("div",{ref:"wrapperRef",class:Ce([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:rn(e.toggleMenu,["prevent"])},[e.$slots.prefix?(he(),ke("div",{key:0,ref:"prefixRef",class:Ce(e.nsSelect.e("prefix"))},[yt(e.$slots,"prefix")],2)):Ye("v-if",!0),ze("div",{ref:"selectionRef",class:Ce([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?yt(e.$slots,"tag",{key:0},()=>[(he(!0),ke(Ct,null,ii(e.showTagList,S=>(he(),ke("div",{key:e.getValueKey(S),class:Ce(e.nsSelect.e("selected-item"))},[Et(o,{closable:!e.selectDisabled&&!S.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:en(e.tagStyle),onClose:T=>e.deleteTag(T,S)},{default:lt(()=>[ze("span",{class:Ce(e.nsSelect.e("tags-text"))},[yt(e.$slots,"label",{label:S.currentLabel,value:S.value},()=>[Cn(st(S.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(he(),nt(l,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:lt(()=>[ze("div",{ref:"collapseItemRef",class:Ce(e.nsSelect.e("selected-item"))},[Et(o,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:en(e.collapseTagStyle)},{default:lt(()=>[ze("span",{class:Ce(e.nsSelect.e("tags-text"))}," + "+st(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:lt(()=>[ze("div",{ref:"tagMenuRef",class:Ce(e.nsSelect.e("selection"))},[(he(!0),ke(Ct,null,ii(e.collapseTagList,S=>(he(),ke("div",{key:e.getValueKey(S),class:Ce(e.nsSelect.e("selected-item"))},[Et(o,{class:"in-tooltip",closable:!e.selectDisabled&&!S.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:T=>e.deleteTag(T,S)},{default:lt(()=>[ze("span",{class:Ce(e.nsSelect.e("tags-text"))},[yt(e.$slots,"label",{label:S.currentLabel,value:S.value},()=>[Cn(st(S.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):Ye("v-if",!0)]):Ye("v-if",!0),ze("div",{class:Ce([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[tn(ze("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":S=>e.states.inputValue=S,type:"text",name:e.name,class:Ce([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:en(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((b=e.hoverOption)==null?void 0:b.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[kh(rn(S=>e.navigateOptions("next"),["stop","prevent"]),["down"]),kh(rn(S=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),kh(rn(e.handleEsc,["stop","prevent"]),["esc"]),kh(rn(e.selectOption,["stop","prevent"]),["enter"]),kh(rn(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:rn(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[qge,e.states.inputValue]]),e.filterable?(he(),ke("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:Ce(e.nsSelect.e("input-calculator")),textContent:st(e.states.inputValue)},null,10,["textContent"])):Ye("v-if",!0)],2),e.shouldShowPlaceholder?(he(),ke("div",{key:1,class:Ce([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?yt(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[ze("span",null,st(e.currentPlaceholder),1)]):(he(),ke("span",{key:1},st(e.currentPlaceholder),1))],2)):Ye("v-if",!0)],2),ze("div",{ref:"suffixRef",class:Ce(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(he(),nt(f,{key:0,class:Ce([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:lt(()=>[(he(),nt(Nn(e.iconComponent)))]),_:1},8,["class"])):Ye("v-if",!0),e.showClose&&e.clearIcon?(he(),nt(f,{key:1,class:Ce([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:lt(()=>[(he(),nt(Nn(e.clearIcon)))]),_:1},8,["class","onClick"])):Ye("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(he(),nt(f,{key:2,class:Ce([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:lt(()=>[(he(),nt(Nn(e.validateIcon)))]),_:1},8,["class"])):Ye("v-if",!0)],2)],10,["onClick"])]}),content:lt(()=>[Et(m,{ref:"menuRef"},{default:lt(()=>[e.$slots.header?(he(),ke("div",{key:0,class:Ce(e.nsSelect.be("dropdown","header")),onClick:rn(()=>{},["stop"])},[yt(e.$slots,"header")],10,["onClick"])):Ye("v-if",!0),tn(Et(v,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:Ce([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:lt(()=>[e.showNewOption?(he(),nt(c,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):Ye("v-if",!0),Et(d,null,{default:lt(()=>[yt(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[la,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(he(),ke("div",{key:1,class:Ce(e.nsSelect.be("dropdown","loading"))},[yt(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(he(),ke("div",{key:2,class:Ce(e.nsSelect.be("dropdown","empty"))},[yt(e.$slots,"empty",{},()=>[ze("span",null,st(e.emptyText),1)])],2)):Ye("v-if",!0),e.$slots.footer?(he(),ke("div",{key:3,class:Ce(e.nsSelect.be("dropdown","footer")),onClick:rn(()=>{},["stop"])},[yt(e.$slots,"footer")],10,["onClick"])):Ye("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[y,e.handleClickOutside,e.popperRef]])}var cCe=ir(fCe,[["render",uCe],["__file","select.vue"]]);const hCe=rt({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Gt("select"),r=Oe(null),n=Cr(),a=Oe([]);sn(RF,vn({...zs(e)}));const i=be(()=>a.value.some(c=>c.visible===!0)),o=c=>{var d,v;return((d=c.type)==null?void 0:d.name)==="ElOption"&&!!((v=c.component)!=null&&v.proxy)},l=c=>{const d=Na(c),v=[];return d.forEach(m=>{var y,b;o(m)?v.push(m.component.proxy):(y=m.children)!=null&&y.length?v.push(...l(m.children)):(b=m.component)!=null&&b.subTree&&v.push(...l(m.component.subTree))}),v},f=()=>{a.value=l(n.subTree)};return ur(()=>{f()}),nxe(r,f,{attributes:!0,subtree:!0,childList:!0}),{groupRef:r,visible:i,ns:t}}});function dCe(e,t,r,n,a,i){return tn((he(),ke("ul",{ref:"groupRef",class:Ce(e.ns.be("group","wrap"))},[ze("li",{class:Ce(e.ns.be("group","title"))},st(e.label),3),ze("li",null,[ze("ul",{class:Ce(e.ns.b("group"))},[yt(e.$slots,"default")],2)])],2)),[[la,e.visible]])}var FF=ir(hCe,[["render",dCe],["__file","option-group.vue"]]);const Fm=Rn(cCe,{Option:tx,OptionGroup:FF}),Lm=ns(tx);ns(FF);const pCe=hr({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:Tt([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:Tt([String,Object,Array])}}),vCe=rt({name:"ElStatistic"}),mCe=rt({...vCe,props:pCe,setup(e,{expose:t}){const r=e,n=Gt("statistic"),a=be(()=>{const{value:i,formatter:o,precision:l,decimalSeparator:f,groupSeparator:c}=r;if(vt(o))return o(i);if(!Wn(i)||Number.isNaN(i))return i;let[d,v=""]=String(i).split(".");return v=v.padEnd(l,"0").slice(0,l>0?l:0),d=d.replace(/\B(?=(\d{3})+(?!\d))/g,c),[d,v].join(v?f:"")});return t({displayValue:a}),(i,o)=>(he(),ke("div",{class:Ce(J(n).b())},[i.$slots.title||i.title?(he(),ke("div",{key:0,class:Ce(J(n).e("head"))},[yt(i.$slots,"title",{},()=>[Cn(st(i.title),1)])],2)):Ye("v-if",!0),ze("div",{class:Ce(J(n).e("content"))},[i.$slots.prefix||i.prefix?(he(),ke("div",{key:0,class:Ce(J(n).e("prefix"))},[yt(i.$slots,"prefix",{},()=>[ze("span",null,st(i.prefix),1)])],2)):Ye("v-if",!0),ze("span",{class:Ce(J(n).e("number")),style:en(i.valueStyle)},st(J(a)),7),i.$slots.suffix||i.suffix?(he(),ke("div",{key:1,class:Ce(J(n).e("suffix"))},[yt(i.$slots,"suffix",{},()=>[ze("span",null,st(i.suffix),1)])],2)):Ye("v-if",!0)],2)],2))}});var gCe=ir(mCe,[["__file","statistic.vue"]]);const yCe=Rn(gCe);function bCe(e){let t;const r=Oe(!1),n=vn({...e,originalPosition:"",originalOverflow:"",visible:!1});function a(m){n.text=m}function i(){const m=n.parent,y=v.ns;if(!m.vLoadingAddClassList){let b=m.getAttribute("loading-number");b=Number.parseInt(b)-1,b?m.setAttribute("loading-number",b.toString()):(Cf(m,y.bm("parent","relative")),m.removeAttribute("loading-number")),Cf(m,y.bm("parent","hidden"))}o(),d.unmount()}function o(){var m,y;(y=(m=v.$el)==null?void 0:m.parentNode)==null||y.removeChild(v.$el)}function l(){var m;e.beforeClose&&!e.beforeClose()||(r.value=!0,clearTimeout(t),t=setTimeout(f,400),n.visible=!1,(m=e.closed)==null||m.call(e))}function f(){if(!r.value)return;const m=n.parent;r.value=!1,m.vLoadingAddClassList=void 0,i()}const c=rt({name:"ElLoading",setup(m,{expose:y}){const{ns:b,zIndex:S}=eP("loading");return y({ns:b,zIndex:S}),()=>{const T=n.spinner||n.svg,C=Ot("svg",{class:"circular",viewBox:n.svgViewBox?n.svgViewBox:"0 0 50 50",...T?{innerHTML:T}:{}},[Ot("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),I=n.text?Ot("p",{class:b.b("text")},[n.text]):void 0;return Ot(mo,{name:b.b("fade"),onAfterLeave:f},{default:lt(()=>[tn(Et("div",{style:{backgroundColor:n.background||""},class:[b.b("mask"),n.customClass,n.fullscreen?"is-fullscreen":""]},[Ot("div",{class:b.b("spinner")},[C,I])]),[[la,n.visible]])])})}}}),d=aN(c),v=d.mount(document.createElement("div"));return{...zs(n),setText:a,removeElLoadingChild:o,close:l,handleAfterLeave:f,vm:v,get $el(){return v.$el}}}let Dm;const _Ce=function(e={}){if(!ln)return;const t=wCe(e);if(t.fullscreen&&Dm)return Dm;const r=bCe({...t,closed:()=>{var a;(a=t.closed)==null||a.call(t),t.fullscreen&&(Dm=void 0)}});ECe(t,t.parent,r),LF(t,t.parent,r),t.parent.vLoadingAddClassList=()=>LF(t,t.parent,r);let n=t.parent.getAttribute("loading-number");return n?n=`${Number.parseInt(n)+1}`:n="1",t.parent.setAttribute("loading-number",n),t.parent.appendChild(r.$el),Xt(()=>r.visible.value=t.visible),t.fullscreen&&(Dm=r),r},wCe=e=>{var t,r,n,a;let i;return It(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((r=e.fullscreen)!=null?r:!0),lock:(n=e.lock)!=null?n:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,beforeClose:e.beforeClose,closed:e.closed,target:i}},ECe=async(e,t,r)=>{const{nextZIndex:n}=r.vm.zIndex||r.vm._.exposed.zIndex,a={};if(e.fullscreen)r.originalPosition.value=Gh(document.body,"position"),r.originalOverflow.value=Gh(document.body,"overflow"),a.zIndex=n();else if(e.parent===document.body){r.originalPosition.value=Gh(document.body,"position"),await Xt();for(const i of["top","left"]){const o=i==="top"?"scrollTop":"scrollLeft";a[i]=`${e.target.getBoundingClientRect()[i]+document.body[o]+document.documentElement[o]-Number.parseInt(Gh(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])a[i]=`${e.target.getBoundingClientRect()[i]}px`}else r.originalPosition.value=Gh(t,"position");for(const[i,o]of Object.entries(a))r.$el.style[i]=o},LF=(e,t,r)=>{const n=r.vm.ns||r.vm._.exposed.ns;["absolute","fixed","sticky"].includes(r.originalPosition.value)?Cf(t,n.bm("parent","relative")):Ku(t,n.bm("parent","relative")),e.fullscreen&&e.lock?Ku(t,n.bm("parent","hidden")):Cf(t,n.bm("parent","hidden"))},$m=Symbol("ElLoading"),DF=(e,t)=>{var r,n,a,i;const o=t.instance,l=m=>At(t.value)?t.value[m]:void 0,f=m=>{const y=It(m)&&(o==null?void 0:o[m])||m;return y&&Oe(y)},c=m=>f(l(m)||e.getAttribute(`element-loading-${fo(m)}`)),d=(r=l("fullscreen"))!=null?r:t.modifiers.fullscreen,v={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:d,target:(n=l("target"))!=null?n:d?void 0:e,body:(a=l("body"))!=null?a:t.modifiers.body,lock:(i=l("lock"))!=null?i:t.modifiers.lock};e[$m]={options:v,instance:_Ce(v)}},xCe=(e,t)=>{for(const r of Object.keys(t))gr(t[r])&&(t[r].value=e[r])},SCe={mounted(e,t){t.value&&DF(e,t)},updated(e,t){const r=e[$m];t.oldValue!==t.value&&(t.value&&!t.oldValue?DF(e,t):t.value&&t.oldValue?At(t.value)&&xCe(t.value,r.options):r==null||r.instance.close())},unmounted(e){var t;(t=e[$m])==null||t.instance.close(),e[$m]=null}},$F=["success","info","warning","error"],MCe=hr({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:Ni},id:{type:String,default:""},message:{type:Tt([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:Tt(Function),default:()=>{}},onClose:{type:Tt(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...$F,""],default:""},zIndex:Number}),CCe={destroy:()=>!0},TCe=rt({name:"ElNotification"}),ACe=rt({...TCe,props:MCe,emits:CCe,setup(e,{expose:t}){const r=e,{ns:n,zIndex:a}=eP("notification"),{nextZIndex:i,currentZIndex:o}=a,{Close:l}=jxe,f=Oe(!1);let c;const d=be(()=>{const B=r.type;return B&&dm[r.type]?n.m(B):""}),v=be(()=>r.type&&dm[r.type]||r.icon),m=be(()=>r.position.endsWith("right")?"right":"left"),y=be(()=>r.position.startsWith("top")?"top":"bottom"),b=be(()=>{var B;return{[y.value]:`${r.offset}px`,zIndex:(B=r.zIndex)!=null?B:o.value}});function S(){r.duration>0&&({stop:c}=l3(()=>{f.value&&C()},r.duration))}function T(){c==null||c()}function C(){f.value=!1}function I({code:B}){B===fn.delete||B===fn.backspace?T():B===fn.esc?f.value&&C():S()}return ur(()=>{S(),i(),f.value=!0}),Bi(document,"keydown",I),t({visible:f,close:C}),(B,N)=>(he(),nt(mo,{name:J(n).b("fade"),onBeforeLeave:B.onClose,onAfterLeave:R=>B.$emit("destroy"),persisted:""},{default:lt(()=>[tn(ze("div",{id:B.id,class:Ce([J(n).b(),B.customClass,J(m)]),style:en(J(b)),role:"alert",onMouseenter:T,onMouseleave:S,onClick:B.onClick},[J(v)?(he(),nt(J(Pn),{key:0,class:Ce([J(n).e("icon"),J(d)])},{default:lt(()=>[(he(),nt(Nn(J(v))))]),_:1},8,["class"])):Ye("v-if",!0),ze("div",{class:Ce(J(n).e("group"))},[ze("h2",{class:Ce(J(n).e("title")),textContent:st(B.title)},null,10,["textContent"]),tn(ze("div",{class:Ce(J(n).e("content")),style:en(B.title?void 0:{margin:0})},[yt(B.$slots,"default",{},()=>[B.dangerouslyUseHTMLString?(he(),ke(Ct,{key:1},[Ye(" Caution here, message could've been compromised, never use user's input as message "),ze("p",{innerHTML:B.message},null,8,["innerHTML"])],2112)):(he(),ke("p",{key:0},st(B.message),1))])],6),[[la,B.message]]),B.showClose?(he(),nt(J(Pn),{key:0,class:Ce(J(n).e("closeBtn")),onClick:rn(C,["stop"])},{default:lt(()=>[Et(J(l))]),_:1},8,["class","onClick"])):Ye("v-if",!0)],2)],46,["id","onClick"]),[[la,f.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var ICe=ir(ACe,[["__file","notification.vue"]]);const Um={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},rx=16;let BCe=1;const ac=function(e={},t){if(!ln)return{close:()=>{}};(It(e)||Ma(e))&&(e={message:e});const r=e.position||"top-right";let n=e.offset||0;Um[r].forEach(({vm:d})=>{var v;n+=(((v=d.el)==null?void 0:v.offsetHeight)||0)+rx}),n+=rx;const a=`notification_${BCe++}`,i=e.onClose,o={...e,offset:n,id:a,onClose:()=>{kCe(a,r,i)}};let l=document.body;ts(e.appendTo)?l=e.appendTo:It(e.appendTo)&&(l=document.querySelector(e.appendTo)),ts(l)||(Yr("ElNotification","the appendTo option is not an HTMLElement. Falling back to document.body."),l=document.body);const f=document.createElement("div"),c=Et(ICe,o,vt(o.message)?o.message:Ma(o.message)?()=>o.message:null);return c.appContext=es(t)?ac._context:t,c.props.onDestroy=()=>{iN(null,f)},iN(c,f),Um[r].push({vm:c}),l.appendChild(f.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};$F.forEach(e=>{ac[e]=(t={},r)=>((It(t)||Ma(t))&&(t={message:t}),ac({...t,type:e},r))});function kCe(e,t,r){const n=Um[t],a=n.findIndex(({vm:c})=>{var d;return((d=c.component)==null?void 0:d.props.id)===e});if(a===-1)return;const{vm:i}=n[a];if(!i)return;r==null||r(i);const o=i.el.offsetHeight,l=t.split("-")[0];n.splice(a,1);const f=n.length;if(!(f<1))for(let c=a;c<f;c++){const{el:d,component:v}=n[c].vm,m=Number.parseInt(d.style[l],10)-o-rx;v.props.offset=m}}function NCe(){for(const e of Object.values(Um))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}ac.closeAll=NCe,ac._context=null;const an=Exe(ac,"$notify");/*! Element Plus v2.9.1 */var OCe={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};/*! Element Plus v2.9.1 */var RCe={name:"es",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"Confirmar",clear:"Despejar"},datepicker:{now:"Ahora",today:"Hoy",cancel:"Cancelar",clear:"Despejar",confirm:"Confirmar",selectDate:"Seleccionar fecha",selectTime:"Seleccionar hora",startDate:"Fecha Incial",startTime:"Hora Inicial",endDate:"Fecha Final",endTime:"Hora Final",prevYear:"Año Anterior",nextYear:"Próximo Año",prevMonth:"Mes Anterior",nextMonth:"Próximo Mes",year:"",month1:"enero",month2:"febrero",month3:"marzo",month4:"abril",month5:"mayo",month6:"junio",month7:"julio",month8:"agosto",month9:"septiembre",month10:"octubre",month11:"noviembre",month12:"diciembre",weeks:{sun:"dom",mon:"lun",tue:"mar",wed:"mié",thu:"jue",fri:"vie",sat:"sáb"},months:{jan:"ene",feb:"feb",mar:"mar",apr:"abr",may:"may",jun:"jun",jul:"jul",aug:"ago",sep:"sep",oct:"oct",nov:"nov",dec:"dic"}},select:{loading:"Cargando",noMatch:"No hay datos que coincidan",noData:"Sin datos",placeholder:"Seleccionar"},mention:{loading:"Cargando"},cascader:{noMatch:"No hay datos que coincidan",loading:"Cargando",placeholder:"Seleccionar",noData:"Sin datos"},pagination:{goto:"Ir a",pagesize:"/página",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages"},messagebox:{confirm:"Aceptar",cancel:"Cancelar",error:"Entrada inválida"},upload:{deleteTip:"Pulse Eliminar para retirar",delete:"Eliminar",preview:"Vista Previa",continue:"Continuar"},table:{emptyText:"Sin Datos",confirmFilter:"Confirmar",resetFilter:"Reiniciar",clearFilter:"Despejar",sumText:"Suma"},tree:{emptyText:"Sin Datos"},transfer:{noMatch:"No hay datos que coincidan",noData:"Sin datos",titles:["Lista 1","Lista 2"],filterPlaceholder:"Ingresar palabra clave",noCheckedFormat:"{total} artículos",hasCheckedFormat:"{checked}/{total} revisados"},image:{error:"HA FALLADO"},pageHeader:{title:"Volver"},popconfirm:{confirmButtonText:"Si",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const PCe={key:0,width:"30",height:"28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},FCe=[ze("path",{d:"M2 14.219h26.5M2 13.781 13.781 2M2 14.219 13.781 26",stroke:"#000","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)],LCe={key:1,xmlns:"http://www.w3.org/2000/svg",width:"23",height:"23",fill:"none"},DCe=[ze("path",{d:"m2 2 18.738 18.738M2.12 21.107 20.857 2.37",stroke:"#000","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)],$Ce={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},UCe=[ze("circle",{cx:"25",cy:"25",r:"25",fill:"#d75a4a"},null,-1),ze("path",{fill:"none",stroke:"#fff","stroke-width":"2","stroke-linecap":"round","stroke-miterlimit":"10",d:"M16 34l9-9 9-9M16 16l9 9 9 9"},null,-1)],zCe={key:3,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"#31383e"},VCe=[ze("path",{d:"M12 9q1.219 0 2.109.891T15 12t-.891 2.109T12 15t-2.109-.891T9 12t.891-2.109T12 9zm0 8.016q2.063 0 3.539-1.477T17.016 12t-1.477-3.539T12 6.984 8.461 8.461 6.984 12t1.477 3.539T12 17.016zM12 4.5q3.703 0 6.703 2.063t4.313 5.438q-1.313 3.375-4.313 5.438T12 19.502t-6.703-2.063-4.313-5.438q1.313-3.375 4.313-5.438T12 4.5z"},null,-1)],qCe={key:4,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"#31383e"},HCe=[ze("path",{d:"M11.859 9H12q1.219 0 2.109.891T15 12v.188zm-4.312.797Q6.984 10.922 6.984 12q0 2.063 1.477 3.539T12 17.016q1.078 0 2.203-.563l-1.547-1.547Q12.281 15 12 15q-1.219 0-2.109-.891T9 12q0-.281.094-.656zM2.016 4.266L3.282 3l17.719 17.719-1.266 1.266q-.234-.234-1.477-1.453t-1.898-1.875q-2.016.844-4.359.844-3.703 0-6.703-2.063T.985 12q.516-1.219 1.617-2.695t2.133-2.273q-.563-.563-1.57-1.594T2.017 4.266zM12 6.984q-.938 0-1.828.375L8.016 5.203Q9.844 4.5 12 4.5q3.703 0 6.68 2.063t4.289 5.438q-1.125 2.766-3.422 4.734l-2.906-2.906q.375-.891.375-1.828 0-2.063-1.477-3.539T12 6.985z"},null,-1)],jCe={key:5,xmlns:"http://www.w3.org/2000/svg",width:"22",height:"23",fill:"none",stroke:"#969eab","stroke-width":"3","stroke-linejoin":"round","xmlns:v":"https://vecta.io/nano"},KCe=[ze("circle",{cx:"9.451",cy:"9.451",r:"7.451"},null,-1),ze("path",{d:"M13.921 15.412 19.51 21","stroke-linecap":"round"},null,-1)],WCe={key:6,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},GCe=[ze("circle",{cx:"25",cy:"25",r:"25",fill:"#25ae88"},null,-1),ze("path",{fill:"none",stroke:"#fff","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":"10",d:"M38 15L22 33l-10-8"},null,-1)],ol=rt({__name:"CustomIcon",props:{icon:{}},setup(e){const t=e;return(r,n)=>t.icon==="back"?(he(),ke("svg",PCe,FCe)):t.icon==="close"?(he(),ke("svg",LCe,DCe)):t.icon==="error"?(he(),ke("svg",$Ce,UCe)):t.icon==="eye"?(he(),ke("svg",zCe,VCe)):t.icon==="eye-slash"?(he(),ke("svg",qCe,HCe)):t.icon==="search"?(he(),ke("svg",jCe,KCe)):t.icon==="success"?(he(),ke("svg",WCe,GCe)):Ye("",!0)}}),ZCe=["src"],JCe=[ze("span",null,null,-1)],YCe=rt({__name:"AppLoader",props:{avatar:{default:void 0},grow:{type:Boolean,default:!0},icon:{default:void 0},message:{default:void 0},size:{default:"small"},title:{default:void 0},type:{default:"loading"}},emits:["imagesLoaded","imagesLoading"],setup(e,{emit:t}){const r=e;return ur(()=>{r.avatar&&t("imagesLoading")}),(n,a)=>(he(),ke("div",{class:Ce([n.$style["loader-body"],[n.$style[`loader-${n.size}`]],[n.$style[`loader-${n.type}`]],{[n.$style["loader-no-grow"]]:n.grow===!1}])},[ze("div",{class:Ce(n.$style["loader-container"])},[ze("div",{class:Ce(n.$style["loader-inner"])},[ze("div",{class:Ce(n.$style["loader-mask"])},[n.avatar?(he(),ke("img",{key:0,alt:"",src:n.avatar,width:"1",height:"1",onLoad:a[0]||(a[0]=()=>t("imagesLoaded"))},null,40,ZCe)):Ye("",!0),n.icon?(he(),nt(ol,{key:1,icon:n.icon},null,8,["icon"])):Ye("",!0)],2)],2),ze("div",{class:Ce(n.$style.loader)},JCe,2)],2),n.title?(he(),ke("h2",{key:0,class:Ce(n.$style["loader-title"])},st(n.title),3)):Ye("",!0),n.message?(he(),ke("p",{key:1,class:Ce(n.$style["loader-message"])},st(n.message),3)):Ye("",!0)],2))}}),XCe={loader:"pb-w-sync_loader","loader-container-animation":"pb-w-sync_loader-container-animation","loader-clip-animation":"pb-w-sync_loader-clip-animation","loader-bar-animation":"pb-w-sync_loader-bar-animation","loader-body":"pb-w-sync_loader-body","loader-error":"pb-w-sync_loader-error","loader-title":"pb-w-sync_loader-title","loader-success":"pb-w-sync_loader-success","loader-large":"pb-w-sync_loader-large","loader-container":"pb-w-sync_loader-container","loader-inner":"pb-w-sync_loader-inner","loader-loading":"pb-w-sync_loader-loading","loader-no-grow":"pb-w-sync_loader-no-grow","loader-small":"pb-w-sync_loader-small","loader-mask":"pb-w-sync_loader-mask","loader-message":"pb-w-sync_loader-message"},wi=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},Nf=wi(YCe,[["__cssModules",{$style:XCe}]]),a7e="",o7e="",s7e="",l7e="",f7e="",QCe=["disabled"],eTe=rt({__name:"AccountsSelection",props:{avatar:{default:void 0},buttonDisabledStyle:{type:Boolean,default:!1},client:{},credential:{},disableFormAutocomplete:{type:Boolean,default:!1},selectClass:{default:""},sync:{}},emits:["done"],setup(e,{emit:t}){const r=e,n=wt(Ea),{t:a}=bo(),i=Oe([]),o=Oe(null),l=Oe(!1),f=vn({accounts:[]}),c=Oe(!0),d=Oe(!0),v=vn({accounts:[{type:"array",required:!0,message:a("accounts_selection.form_error"),trigger:"change"}]});function m(){const T=setInterval(()=>{r.sync.getAccounts({id_credential:r.credential}).then(C=>{C.length>0&&i.value.length===0&&(clearInterval(T),i.value=C,f.accounts=i.value.map(I=>I.id_account),d.value=!1)}).catch(()=>{clearInterval(T),d.value=!1,l.value=!0,n("accounts-error")})},2e3)}function y(T){return`**${T.slice(-4)}`}const b=async(T,C)=>{T.preventDefault(),C&&await C.validate(I=>{I&&(n("accounts-selected",f.accounts),t("done"))})};function S(T,C){c.value=!C}return m(),(T,C)=>(he(),ke(Ct,null,[d.value?(he(),nt(Nf,{key:0,avatar:r.avatar,message:l.value?J(a)("accounts_selection.error"):J(a)("accounts_selection.fetching"),size:"large",title:J(a)("accounts_selection.fetching"),type:l.value?"error":"loading",onImagesLoaded:C[0]||(C[0]=()=>J(n)("images-loaded")),onImagesLoading:C[1]||(C[1]=()=>J(n)("images-loading"))},null,8,["avatar","message","title","type"])):(he(),nt(J(Z3),{key:1,ref_key:"accountsFormRef",ref:o,class:Ce(T.$style["accounts-form"]),autocomplete:T.disableFormAutocomplete?"off":"on",disabled:d.value,"hide-required-asterisk":!0,"label-position":"top",model:f,name:"accounts-selection",rules:v,onSubmit:C[3]||(C[3]=I=>b(I,o.value)),onValidate:S},{default:lt(()=>[Et(J(J3),{label:r.client.name?J(a)("accounts_selection.form_label_client",{client:r.client.name}):J(a)("accounts_selection.form_label"),prop:"accounts"},{default:lt(()=>[Et(J(S8e),{modelValue:f.accounts,"onUpdate:modelValue":C[2]||(C[2]=I=>f.accounts=I),class:Ce(T.$style["accounts-checkboxes"])},{default:lt(()=>[(he(!0),ke(Ct,null,ii(i.value,I=>(he(),nt(J(x8e),{key:I.id_account,class:Ce(T.$style["accounts-checkbox"]),name:"accounts",value:I.id_account},{default:lt(()=>[ze("div",{class:Ce(T.$style["accounts-checkbox-content"])},[ze("div",null,st(I.account_type),1),ze("div",{class:Ce(T.$style["accounts-checkbox-row"])},[ze("div",null,st(y(I.number)),1),ze("div",null,[Et(J(yCe),{class:Ce(T.$style["accounts-balance"]),value:I.balance,precision:2},null,8,["class","value"]),Cn(" "+st(I.currency),1)])],2)],2)]),_:2},1032,["class","value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["label"]),ze("button",{class:"pb-w-sync_primary-button","data-testid":"accounts-button",disabled:T.buttonDisabledStyle&&c.value,type:"submit"},st(J(a)("accounts_selection.done")),9,QCe)]),_:1},8,["class","autocomplete","disabled","model","rules"])),ze("button",{class:Ce(["pb-w-sync_primary-button",T.$style["accounts-error-button"]]),"data-testid":"accounts-button",type:"button",onClick:C[4]||(C[4]=()=>t("done"))},st(J(a)("accounts_selection.done")),3)],64))}}),tTe={"accounts-balance":"pb-w-sync_accounts-balance","accounts-checkbox":"pb-w-sync_accounts-checkbox","accounts-checkbox-content":"pb-w-sync_accounts-checkbox-content","accounts-checkbox-row":"pb-w-sync_accounts-checkbox-row","accounts-checkboxes":"pb-w-sync_accounts-checkboxes","accounts-error-button":"pb-w-sync_accounts-error-button","accounts-form":"pb-w-sync_accounts-form"},u7e="",rTe=wi(eTe,[["__cssModules",{$style:tTe}]]),h7e="",nTe=wi(rt({__name:"FinalResponse",props:{avatar:{},displayAccountsSelection:{type:Boolean},longMessage:{default:""},message:{default:""},oneSiteFlow:{type:Boolean,default:!1},showLogo:{type:Boolean},type:{default:"error"}},emits:["add-other","select-accounts"],setup(e,{emit:t}){const r=e,n=wt(Ea),{t:a}=bo();return(i,o)=>(he(),ke("div",{class:Ce(i.$style["final-response-container"])},[Et(Nf,{avatar:i.showLogo?i.avatar:void 0,grow:!1,icon:i.showLogo?void 0:i.type,message:i.longMessage,size:"large",title:i.message,type:i.type,onImagesLoaded:o[0]||(o[0]=()=>J(n)("images-loaded")),onImagesLoading:o[1]||(o[1]=()=>J(n)("images-loading"))},null,8,["avatar","icon","message","title","type"]),!r.oneSiteFlow&&(!r.displayAccountsSelection||r.type==="error")?(he(),ke("button",{key:0,class:"pb-w-sync_primary-button",onClick:o[2]||(o[2]=l=>t("add-other"))},st(J(a)("common.add_other")),1)):Ye("",!0),r.displayAccountsSelection&&r.type==="success"?(he(),ke("button",{key:1,class:"pb-w-sync_primary-button",onClick:o[3]||(o[3]=l=>t("select-accounts"))},st(J(a)("common.next")),1)):Ye("",!0)],2))}}),[["__cssModules",{$style:{"final-response-container":"pb-w-sync_final-response-container"}}]]),m7e="",g7e="",y7e="",b7e="",_7e="",w7e="",E7e="",x7e="",S7e="",iTe=["src"],aTe=["src"],oTe=["onClick"],sTe=rt({__name:"InstitutionFilters",props:{countryId:{},filteredCountries:{},filteredOrganizationTypes:{},showCountries:{type:Boolean},organizationTypeId:{},selectClass:{}},emits:["update:countryId","update:organizationTypeId"],setup(e,{emit:t}){const r=e,{t:n}=bo(),a=be(()=>o(r.filteredCountries.find(f=>f.id_country===r.countryId)));function i(f){Ln("open_country",{id_country:f}),t("update:countryId",f)}function o(f){return`https://hatscripts.github.io/circle-flags/flags/${f.code.toLocaleLowerCase()}.svg`}function l(f){Ln("open_site_organization_type",{id_site_organization_type:f}),t("update:organizationTypeId",f)}return(f,c)=>(he(),ke(Ct,null,[ze("p",{class:Ce(f.$style["institution-filters-intro"])},st(J(n)("common.intro")),3),f.showCountries?(he(),nt(J(Fm),{key:0,class:Ce(f.$style["widget-country"]),"model-value":r.countryId,"popper-class":r.selectClass,onChange:i},{prefix:lt(()=>[ze("img",{src:a.value,width:"44",height:"44",alt:""},null,8,iTe)]),default:lt(()=>[(he(!0),ke(Ct,null,ii(f.filteredCountries,d=>(he(),nt(J(Lm),{key:d.id_country,class:Ce(f.$style["widget-country-option"]),value:d.id_country,label:d.name},{default:lt(()=>[ze("img",{src:o(d),width:"44",height:"44",alt:""},null,8,aTe),ze("span",null,st(d.name),1)]),_:2},1032,["class","value","label"]))),128))]),_:1},8,["class","model-value","popper-class"])):Ye("",!0),ze("div",{class:Ce(f.$style["organization-types-list"])},[(he(!0),ke(Ct,null,ii(f.filteredOrganizationTypes,d=>(he(),ke("button",{key:d.id_site_organization_type,onClick:()=>l(d.id_site_organization_type)},st(J(n)(`common.${d.label}`)),9,oTe))),128))],2)],64))}}),lTe={"institution-filters-intro":"pb-w-sync_institution-filters-intro","organization-types-list":"pb-w-sync_organization-types-list","widget-country":"pb-w-sync_widget-country","widget-country-option":"pb-w-sync_widget-country-option"},M7e="",fTe=wi(sTe,[["__cssModules",{$style:lTe}]]),uTe=["onClick"],cTe=["alt","src"],hTe={key:1},dTe=wi(rt({__name:"OrganizationSitesList",props:{assetsPath:{default:"https://s.paybook.com"},items:{default:()=>[]},showLogo:{type:Boolean,default:!0},showPlaidSitesButton:{type:Boolean,default:!1}},emits:["select"],setup(e,{emit:t}){const r=e,n=wt(Ea),{t:a}=bo(),i=Oe("");let o=0;const l=be(()=>{const d=i.value.toLocaleLowerCase();return r.items.map(v=>({...v,show:d===""?!0:v.name.toLocaleLowerCase().includes(d)}))});ur(()=>{r.items.length>0&&r.showLogo&&(o=0,n("images-loading"))}),dt(()=>r.items,d=>{d.length>0&&r.showLogo&&(o=0,n("images-loading"))});function f(){o++,o===r.items.length&&n("images-loaded")}function c(d){t("select",d)}return(d,v)=>d.showPlaidSitesButton?(he(),ke("div",{key:0,class:Ce(d.$style["widget-plaid-container"])},[ze("button",{class:"pb-w-sync_primary-button",onClick:v[0]||(v[0]=()=>J(n)("__internal__.plaid-sites-clicked"))},st(J(a)("common.find_your_institution")),1)],2)):(he(),ke(Ct,{key:1},[Et(J(m3),{modelValue:i.value,"onUpdate:modelValue":v[1]||(v[1]=m=>i.value=m),"data-testid":"search-organization",placeholder:J(a)("common.search")},{prefix:lt(()=>[Et(ol,{icon:"search"})]),_:1},8,["modelValue","placeholder"]),ze("div",{class:Ce(d.$style["organization-sites"])},[(he(!0),ke(Ct,null,ii(l.value,(m,y)=>tn((he(),ke("button",{key:`${m.id_site_organization}-${y}`,class:Ce(d.$style["organization-button"]),type:"button",onClick:()=>c(m)},[d.showLogo?(he(),ke("img",{key:0,alt:m.name,src:`${d.assetsPath}${m.small_cover}`,loading:"lazy",height:"66",width:"220",onLoad:f},null,40,cTe)):(he(),ke("span",hTe,st(m.name),1))],10,uTe)),[[la,m.show]])),128))],2)],64))}}),[["__cssModules",{$style:{"widget-plaid-container":"pb-w-sync_widget-plaid-container","organization-sites":"pb-w-sync_organization-sites","organization-button":"pb-w-sync_organization-button"}}]]),pTe=["for"],vTe=["accept","name"],mTe=wi(rt({__name:"FileInput",props:{credential:{},displayError:{type:Boolean},idSite:{}},emits:["input","validate"],setup(e,{emit:t}){const r=e,n=Oe(null),a=Oe(null),i=Oe(!1),o=Oe(!1),l=be(()=>i.value&&!a.value&&!o.value);dt(()=>r.displayError,y=>{y&&(i.value=!0)});function f(y){const b=new FileReader;b.onload=S=>{a.value={file:S.target.result,info:{type:y.type,name:y.name}},t("input",S.target.result)},b.readAsDataURL(y)}function c(y){y.preventDefault(),y.dataTransfer.files[0]&&f(y.dataTransfer.files[0])}function d(y){o.value=!1;const b=y.srcElement.value;y.preventDefault(),y.stopPropagation(),b.length>0?b.includes(r.credential.accept)?(t("validate",!0),f(y.target.files[0])):a.value||(o.value=!0,t("validate",!1)):a.value||t("validate",!1)}function v(y){y.stopPropagation(),y.preventDefault(),setTimeout(()=>{i.value=!0},2e3)}function m(y){y.preventDefault(),n.value.click(),setTimeout(()=>{i.value=!0},5e3)}return(y,b)=>(he(),ke("div",{class:Ce(y.$style["upload-document"])},[ze("label",{class:Ce(y.$style["upload-document-label"]),for:`${r.idSite}[${r.credential.name}]`},st(r.credential.label),11,pTe),ze("div",{class:Ce([y.$style["upload-document-input"],{[y.$style["upload-document-input-error"]]:l.value}]),onClick:b[0]||(b[0]=S=>m(S)),onDrop:b[1]||(b[1]=S=>c(S)),onDragover:b[2]||(b[2]=S=>v(S))},[ze("button",{class:Ce(y.$style["upload-document-button"])},st(y.$t("file.choose")),3),ze("span",{class:Ce(y.$style["upload-document-name"])},st(a.value?a.value.info.name:y.$t("file.no_chosen")),3)],34),l.value?(he(),ke("div",{key:0,class:Ce(y.$style["upload-document-required-error"])},st(r.credential.label)+" "+st(y.$t("file.required")),3)):Ye("",!0),o.value?(he(),ke("div",{key:1,class:Ce(y.$style["upload-document-required-error"])},st(y.$t("file.invalid",{extension:y.credential.accept})),3)):Ye("",!0),ze("input",{ref_key:"fileInput",ref:n,type:"file","data-testid":"file-input",accept:r.credential.accept,style:{position:"absolute",left:"-99999999px"},name:`${r.idSite}[${r.credential.name}]`,onClick:b[3]||(b[3]=S=>S.stopPropagation()),onChange:b[4]||(b[4]=S=>d(S))},null,40,vTe)],2))}}),[["__cssModules",{$style:{"upload-document":"pb-w-sync_upload-document","upload-document-button":"pb-w-sync_upload-document-button","upload-document-input":"pb-w-sync_upload-document-input","upload-document-input-error":"pb-w-sync_upload-document-input-error","upload-document-label":"pb-w-sync_upload-document-label","upload-document-name":"pb-w-sync_upload-document-name","upload-document-required-error":"pb-w-sync_upload-document-required-error"}}]]),O7e="",R7e="",gTe={key:1},yTe=["alt","src"],bTe=["aria-label"],_Te={class:"el-form-item__error"},wTe=["disabled"],ETe=wi(rt({__name:"SiteForm",props:{assetsPath:{default:"https://s.paybook.com"},buttonDisabledStyle:{type:Boolean,default:!1},disableFormAutocomplete:{type:Boolean,default:!1},errorMessage:{default:null},loaderMessage:{},selectClass:{default:""},showLogo:{type:Boolean,default:!0},showPasswordStyle:{default:"icon"},site:{},testMode:{type:Boolean,default:!1}},emits:["back","error","success","valid"],setup(e,{emit:t}){const r=e,n=wt(Ea),a=Oe("0"),i=Oe({...r.site.config.version===1?r.site.data:r.site.input[a.value].data}),o=Oe(!0),l=Oe(!1),f=Oe(!1),c=Oe(!1),d=Oe(!1);let v=0,m,y={};const b=Oe(null),S=Oe(null),T=be(()=>{switch(r.site.config.version){case 3:return r.site.config.input[a.value].fields;case 1:return r.site.config.credentials;default:return null}}),C=be(()=>{switch(r.site.config.version){case 3:return r.site.input[a.value].rules;case 1:return r.site.rules;default:return null}}),I=be(()=>r.site.config.version===3?r.site.config.input.length>1:!1),{t:B}=bo();gn(()=>{clearTimeout(m)}),ur(()=>{r.showLogo&&n("images-loading"),P(),K(),r.site.on("status-update",M=>{M==="loading"?l.value=!0:l.value=!1})});function N(M){return!!i.value[M]}function R(){clearTimeout(m),r.testMode&&(v<2?(v+=1,m=setTimeout(()=>{v=0},500)):(r.site.toggleTestMode(),d.value=r.site.testMode,v=0))}function P(){b.value[0].focus()}function D(){n("images-loaded")}function $(M){r.site.updateData(Number.parseInt(M),i.value),a.value=M,i.value={...r.site.input[a.value].data},Xt(()=>{P()})}const U=async(M,s)=>{M.preventDefault();let h;s&&await s.validate(p=>{p&&!o.value?(t("valid"),n("submitted"),r.site.config.version===1?h=r.site.connect(i.value):h=r.site.connect(Number.parseInt(a.value),i.value),h.then(g=>(t("success",g),r.site.config.request||n("updated",r.site.response),g)).catch(g=>{t("error",g)})):c.value=!0})};function K(M,s){M&&(y[M]=s),o.value=Object.keys(C.value).reduce((h,p)=>C.value[p].length===0?h:h||!y[p],!1)}return(M,s)=>l.value?(he(),ke("div",{key:0,class:Ce(M.$style["widget-form-loader"])},[Et(Nf,{avatar:M.showLogo?`${M.assetsPath}${M.site.config.organizationSite.avatar}`:void 0,message:r.loaderMessage.long,title:r.loaderMessage.short,size:"large",onImagesLoaded:s[0]||(s[0]=()=>J(n)("images-loaded")),onImagesLoading:s[1]||(s[1]=()=>J(n)("images-loading"))},null,8,["avatar","message","title"])],2)):(he(),ke("div",gTe,[ze("div",{class:Ce(M.$style["site-form-header"])},[d.value?(he(),nt(J(Qxe),{key:0,center:"",closable:!1,effect:"dark"},{default:lt(()=>[Cn(st(J(B)("common.test_mode")),1)]),_:1})):Ye("",!0),M.showLogo?(he(),ke("img",{key:1,alt:M.site.config.organizationSite.name,class:Ce(M.$style["site-cover"]),src:`${M.assetsPath}${M.site.config.organizationSite.cover}`,width:"1600",height:"480",onLoad:D},null,42,yTe)):Ye("",!0),ze("h2",{onClick:R},st(M.site.config.name),1)],2),M.errorMessage?(he(),ke("div",{key:0,class:Ce(M.$style["auth-error"])},[ze("h3",null,st(M.errorMessage.short),1),ze("p",null,st(M.errorMessage.long),1)],2)):Ye("",!0),I.value?(he(),nt(J(YMe),{key:1,"default-active":"0",mode:"horizontal",onSelect:$},{default:lt(()=>[(he(!0),ke(Ct,null,ii(M.site.config.input,(h,p)=>(he(),nt(J(XMe),{key:p,index:`${p}`},{default:lt(()=>[Cn(st(h.label),1)]),_:2},1032,["index"]))),128))]),_:1})):Ye("",!0),Et(J(Z3),{ref_key:"siteFormRef",ref:S,autocomplete:M.disableFormAutocomplete?"off":"on",disabled:l.value,"hide-required-asterisk":!0,"label-position":"top",model:i.value,name:`${M.site.config.id_site}`,rules:C.value,onSubmit:s[5]||(s[5]=h=>U(h,S.value)),onValidate:K},{default:lt(()=>[(he(!0),ke(Ct,null,ii(T.value,(h,p)=>(he(),ke(Ct,{key:`${p}-${h.name}`},[h.type==="file"?(he(),nt(mTe,{ref_for:!0,ref_key:"firstInput",ref:b,key:`${p}-${h.name}`,credential:h,"display-error":c.value,"id-site":M.site.config.id_site,onInput:g=>i.value[h.name]=g,onValidate:g=>K(h.name,g)},null,8,["credential","display-error","id-site","onInput","onValidate"])):(he(),nt(J(J3),{key:1,label:h.label,prop:h.name,for:`${M.site.config.id_site}[${h.name}]`},{error:lt(({error:g})=>[ze("div",_Te,st(J(B)(`form_errors.${g}`,{label:h.label})),1)]),default:lt(()=>[h.type==="text"||h.type==="password"?(he(),nt(J(m3),{key:0,ref_for:!0,ref_key:"firstInput",ref:b,modelValue:i.value[h.name],"onUpdate:modelValue":g=>i.value[h.name]=g,"data-testid":"site-input",autocomplete:h.name==="password"?`${M.site.config.id_site} new-password`:M.disableFormAutocomplete?"off":`${M.site.config.id_site} ${h.name}`,name:`${M.site.config.id_site}[${h.name}]`,type:h.type==="password"&&f.value?"text":h.type},X9({_:2},[h.type==="password"&&M.showPasswordStyle==="icon"?{name:"append",fn:lt(()=>[ze("button",{class:Ce(M.$style["icon-eye"]),"aria-label":J(B)(`common.${f.value?"hide":"show_password"}`),type:"button",onClick:s[2]||(s[2]=()=>{f.value=!f.value})},[f.value?(he(),nt(ol,{key:0,icon:"eye-slash"})):(he(),nt(ol,{key:1,icon:"eye"}))],10,bTe)]),key:"0"}:void 0]),1032,["modelValue","onUpdate:modelValue","autocomplete","name","type"])):Ye("",!0),h.type==="select"?(he(),nt(J(Fm),{key:1,ref_for:!0,ref_key:"firstInput",ref:b,modelValue:i.value[h.name],"onUpdate:modelValue":g=>i.value[h.name]=g,"data-testid":"site-select","popper-class":M.selectClass,autocomplete:M.disableFormAutocomplete?"off":`${M.site.config.id_site} ${h.name}`},{default:lt(()=>[(he(!0),ke(Ct,null,ii(h.options,(g,_)=>(he(),nt(J(Lm),{key:_,value:g.value,label:g.label},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","popper-class","autocomplete"])):Ye("",!0)]),_:2},1032,["label","prop","for"])),h.type==="password"&&M.showPasswordStyle==="text"&&N(h.name)?(he(),nt(J(Im),{key:`${p}-${h.name}-toggle`,class:Ce(M.$style["show-hide"]),"native-type":"button",onClick:s[3]||(s[3]=()=>{f.value=!f.value})},{default:lt(()=>[Cn(st(J(B)(`common.${f.value?"hide":"show_password"}`)),1)]),_:2},1032,["class"])):Ye("",!0)],64))),128)),ze("div",{class:Ce(M.$style["site-buttons"])},[ze("button",{class:"pb-w-sync_secondary-button","data-testid":"site-button-back",type:"button",onClick:s[4]||(s[4]=()=>t("back"))},st(J(B)("common.back")),1),ze("button",{class:"pb-w-sync_primary-button","data-testid":"site-button",disabled:M.buttonDisabledStyle&&o.value,type:"submit"},st(J(B)("common.next")),9,wTe)],2)]),_:1},8,["autocomplete","disabled","model","name","rules"])]))}}),[["__cssModules",{$style:{"auth-error":"pb-w-sync_auth-error","icon-eye":"pb-w-sync_icon-eye","show-hide":"pb-w-sync_show-hide","site-buttons":"pb-w-sync_site-buttons","site-form-header":"pb-w-sync_site-form-header","site-cover":"pb-w-sync_site-cover","widget-form-loader":"pb-w-sync_widget-form-loader"}}]]),xTe=["alt","src"],STe=["onClick"],MTe=wi(rt({__name:"SitesList",props:{assetsPath:{},items:{},organization:{},showLogo:{type:Boolean}},emits:["select"],setup(e,{emit:t}){const r=e,n=wt(Ea);ur(()=>{r.showLogo&&n("images-loading")});function a(){n("images-loaded")}function i(o){t("select",o)}return(o,l)=>(he(),ke("div",{class:Ce(o.$style["sites-container"])},[o.showLogo?(he(),ke("img",{key:0,class:Ce(o.$style["organization-cover"]),alt:o.organization.name,src:`${o.assetsPath}${o.organization.cover}`,width:"1600",height:"480",onLoad:a},null,42,xTe)):Ye("",!0),ze("div",{class:Ce(o.$style.sites)},[(he(!0),ke(Ct,null,ii(o.items,(f,c)=>(he(),ke("button",{key:`${f.id_site}-${c}`,type:"button",onClick:()=>i(f)},st(f.name),9,STe))),128))],2)],2))}}),[["__cssModules",{$style:{"organization-cover":"pb-w-sync_organization-cover","sites-container":"pb-w-sync_sites-container",sites:"pb-w-sync_sites"}}]]),CTe=wi(rt({__name:"TheModal",props:{mobile:{type:Boolean,default:!1},visible:{type:Boolean,default:!1}},emits:["update:visible"],setup(e,{emit:t}){const r=e,n=wt(Ea);function a(){Ln("close"),t("update:visible",!1),n("closed")}return(i,o)=>tn((he(),ke("div",{class:Ce(i.$style["modal-container"])},[ze("div",{class:Ce(i.$style["modal-overlay-backdrop"]),onClick:a},null,2),ze("div",{class:Ce(i.$style["modal-wrapper"])},[ze("div",{class:Ce([i.$style.modal,{[i.$style["is-mobile"]]:r.mobile}])},[yt(i.$slots,"default")],2)],2)],2)),[[la,i.visible]])}}),[["__cssModules",{$style:{"modal-container":"pb-w-sync_modal-container","modal-wrapper":"pb-w-sync_modal-wrapper","modal-overlay-backdrop":"pb-w-sync_modal-overlay-backdrop",modal:"pb-w-sync_modal","is-mobile":"pb-w-sync_is-mobile"}}]]),K7e="",TTe=["onClick"],ATe=["src"],ITe=wi(rt({__name:"MultipleImages",props:{credential:{default:()=>({type:"options",name:"token",label:"Por favor, revisa las imágenes que se te presentan y selecciona la correcta",options:[]})},modelValue:{default:void 0}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=wt(Ea);let a=0;const i=be(()=>{const f=Math.sqrt(r.credential.options.length);return f%1===0?[f,f]:o(Math.floor(f))});ur(()=>{n("images-loading")});function o(f){if(r.credential.options.length%f===0){const c=r.credential.options.length/f;return[f,c]}return o(f-1)}function l(){a++,a===r.credential.options.length&&n("images-loaded")}return(f,c)=>(he(),ke("div",{class:Ce(f.$style["multiple-images-container"])},[ze("div",{class:Ce(f.$style["multiple-images-wrapper"])},[(he(!0),ke(Ct,null,ii(i.value[0],d=>(he(),ke("div",{key:d,class:Ce(f.$style["credential-options-row"])},[(he(!0),ke(Ct,null,ii(i.value[1],v=>(he(),ke("div",{key:v,class:Ce([f.$style["credential-options-col"],{[f.$style.selected]:f.modelValue===f.credential.options[v-1+(d-1)*i.value[1]].value}]),onClick:m=>t("update:modelValue",f.credential.options[v-1+(d-1)*i.value[1]].value)},[ze("img",{class:Ce(f.$style["credental-options-img"]),src:f.credential.options[v-1+(d-1)*i.value[1]].imgBase64File||f.credential.options[v-1+(d-1)*i.value[1]].imgURL,onLoad:l},null,42,ATe)],10,TTe))),128))],2))),128))],2)],2))}}),[["__cssModules",{$style:{"multiple-images-container":"pb-w-sync_multiple-images-container","multiple-images-wrapper":"pb-w-sync_multiple-images-wrapper","credential-options-row":"pb-w-sync_credential-options-row","credential-options-col":"pb-w-sync_credential-options-col",selected:"pb-w-sync_selected","credental-options-img":"pb-w-sync_credental-options-img"}}]]),BTe=["alt","src"],kTe={key:0},NTe=["src"],OTe={key:1},RTe=["src","onLoad"],PTe=["aria-label"],FTe=["disabled"],nx=wi(rt({__name:"TwofaForm",props:{avatar:{},buttonDisabledStyle:{type:Boolean},cover:{},disableFormAutocomplete:{type:Boolean},enableBackNavigation:{type:Boolean},inNotification:{type:Boolean},loaderMessage:{},selectClass:{},siteName:{},showLogo:{type:Boolean},showPasswordStyle:{},twofa:{}},emits:["back","error"],setup(e,{emit:t}){const r=e,n=wt(Ea),a=wt(mw),i=Oe({}),o=Oe({...r.twofa.data}),l=Oe({}),f=Oe([]),c=Oe(!1);let d=0,v=!0,m=!1,y={};const b=be(()=>r.twofa.config.twofa.reduce((h,p)=>p.imgBase64File?h+1:h,0)),S=Oe(null),T=Oe(null);dt(()=>r.twofa,()=>{K()});function C(){K()}function I(h){return l.value[h]||{}}function B(h){return!!o[h]}function N(h){const p=f.value[h];p&&(l.value={...l.value,[h]:{width:`${p.naturalWidth}px`}},Xt(P))}function R(){S.value&&S.value[0].focus()}function P(){d++,d===b.value&&n("images-loaded")}function D(){const h={};r.twofa.config.twofa&&r.twofa.config.twofa.length&&r.twofa.config.twofa.forEach(p=>{p.type==="accounts"&&(h[p.name]=[])}),i.value=h}function $(h){return["text","password","textOptions","accounts","options"].includes(h)}function U(h){o.value={...o.value,[h]:i.value[h].join()}}function K(){i.value={},o.value={...r.twofa.data},l.value={},f.value=[],c.value=!1,d=0,v=!0,m=!1,y={},r.twofa.defineRules(a),D(),r.twofa.on("loading",()=>{c.value=!0}),r.twofa.on("twofa-device-error",h=>{t("error",h)}),r.twofa.on("token-received",()=>{o.value={...r.twofa.data}}),b.value&&n("images-loading"),s(),r.twofa.config.twofa.forEach(h=>{["connection","challenge"].includes(h.type)&&s(h.name,!0)}),Xt(()=>{R()})}function M(){T.value.validate(h=>{h&&(n("submitted"),r.twofa.authenticate({...o.value}).then(p=>p).catch(p=>{t("error",p)}))})}function s(h,p){h&&(y[h]=p),v=Object.getOwnPropertyNames(r.twofa.rules).reduce((g,_)=>_==="__ob__"||r.twofa.rules[_].length===0?g:g||!y[_],!1)}return C(),(h,p)=>c.value?(he(),ke("div",{key:0,class:Ce(h.$style["twofa-form-loader"])},[Et(Nf,{avatar:h.showLogo?h.avatar:void 0,message:r.loaderMessage.long,title:r.loaderMessage.short,size:"large",onImagesLoaded:p[0]||(p[0]=()=>J(n)("images-loaded")),onImagesLoading:p[1]||(p[1]=()=>J(n)("images-loading"))},null,8,["avatar","message","title"])],2)):(he(),ke("div",{key:1,class:Ce(h.$style["twofa-form"])},[h.inNotification?Ye("",!0):(he(),ke("div",{key:0,class:Ce(h.$style["twofa-form-header"])},[h.showLogo?(he(),ke("img",{key:0,alt:h.siteName,class:Ce(h.$style["twofa-cover"]),src:h.cover,width:"1600",height:"480",onLoad:P},null,42,BTe)):Ye("",!0),ze("h2",null,st(h.siteName),1)],2)),r.twofa?(he(),nt(J(Z3),{key:1,ref_key:"twofaForm",ref:T,"label-position":"top",disabled:c.value,model:o.value,rules:r.twofa.rules,name:`twofa-${r.twofa.config.id_site}`,autocomplete:r.disableFormAutocomplete?"off":"on",onSubmit:rn(M,["prevent"]),onValidate:s},{default:lt(()=>[(he(!0),ke(Ct,null,ii(r.twofa.config.twofa,(g,_)=>(he(),ke(Ct,{key:`${_}-${g.name}`},[g.type==="externalAction"?(he(),ke("div",kTe,[ze("label",{class:Ce(h.$style["external-action-label"])},st(g.label),3),ze("div",{class:Ce(h.$style["external-action-img-container"])},[g.imgBase64File?(he(),ke("img",{key:0,alt:"",src:g.imgBase64File,onLoad:P},null,40,NTe)):Ye("",!0)],2)])):g.type==="instructions"?(he(),ke("div",OTe,[ze("label",{class:Ce(h.$style["external-action-label"])},st(g.label),3)])):Ye("",!0),$(g.type)?(he(),nt(J(J3),{key:2,label:g.label,prop:g.name,for:`twofa-${r.twofa.config.id_site}[${g.name}]`},{default:lt(()=>[g.imgBase64File?(he(),ke("img",{key:0,ref_for:!0,ref_key:"imageWithoutSize",ref:f,src:g.imgBase64File,class:Ce(h.$style["input-image"]),style:en(I(_)),alt:"",onLoad:w=>N(_)},null,46,RTe)):Ye("",!0),g.type==="text"||g.type==="password"?(he(),nt(J(m3),{key:1,ref_for:!0,ref:_===0&&"firstInput",modelValue:o.value[g.name],"onUpdate:modelValue":w=>o.value[g.name]=w,"data-testid":"twofa-input",name:`twofa-${r.twofa.config.id_site}[${g.name}]`,autocomplete:g.name==="password"?`${r.twofa.config.id_site} new-password`:r.disableFormAutocomplete?"off":`${r.twofa.config.id_site} ${g.name}`,disabled:g.disabled,type:g.type==="password"&&J(m)?"text":g.type},X9({_:2},[g.type==="password"&&r.showPasswordStyle==="icon"?{name:"append",fn:lt(()=>[ze("button",{class:Ce(h.$style["icon-eye-twofa"]),"aria-label":J(a)(`common.${J(m)?"hide":"show_password"}`),type:"button",onClick:p[2]||(p[2]=()=>{gr(m)?m.value=!J(m):m=!J(m)})},[J(m)?(he(),nt(ol,{key:1,icon:"eye-slash"})):(he(),nt(ol,{key:0,icon:"eye"}))],10,PTe)]),key:"0"}:void 0]),1032,["modelValue","onUpdate:modelValue","name","autocomplete","disabled","type"])):Ye("",!0),g.type==="textOptions"?(he(),nt(J(Fm),{key:2,ref_for:!0,ref:_===0&&"firstInput",modelValue:o.value[g.name],"onUpdate:modelValue":w=>o.value[g.name]=w,"data-testid":"twofa-select",autocomplete:r.disableFormAutocomplete?"off":`twofa-${r.twofa.config.id_site} ${g.name}`,name:`twofa-${r.twofa.config.id_site}[${g.name}]`,"popper-class":r.selectClass},{default:lt(()=>[(he(!0),ke(Ct,null,ii(g.options,(w,A)=>(he(),nt(J(Lm),{key:A,value:w.value,label:w.label},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","autocomplete","name","popper-class"])):Ye("",!0),g.type==="accounts"?(he(),nt(J(Fm),{key:3,ref_for:!0,ref:_===0&&"firstInput",modelValue:i.value[g.name],"onUpdate:modelValue":w=>i.value[g.name]=w,"data-testid":"twofa-multi-select",autocomplete:r.disableFormAutocomplete?"off":`twofa-${r.twofa.config.id_site} ${g.name}`,filterable:"",multiple:"",name:`twofa-${r.twofa.config.id_site}[${g.name}]`,"popper-class":r.selectClass,onChange:()=>U(g.name)},{default:lt(()=>[(he(!0),ke(Ct,null,ii(g.options,(w,A)=>(he(),nt(J(Lm),{key:A,value:w.value,label:w.label},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","autocomplete","name","popper-class","onChange"])):Ye("",!0),g.type==="options"?(he(),nt(ITe,{key:4,modelValue:o.value[g.name],"onUpdate:modelValue":[w=>o.value[g.name]=w,()=>{s(g.name,!0)}],credential:g},null,8,["modelValue","onUpdate:modelValue","credential"])):Ye("",!0)]),_:2},1032,["label","prop","for"])):Ye("",!0),g.type==="password"&&r.showPasswordStyle==="text"&&B(g.name)?(he(),nt(J(Im),{key:`${_}-${g.name}-toggle`,class:Ce(h.$style["show-hide"]),"native-type":"button",onClick:p[3]||(p[3]=()=>{gr(m)?m.value=!J(m):m=!J(m)})},{default:lt(()=>[Cn(st(J(a)(`common.${J(m)?"hide":"show_password"}`)),1)]),_:2},1032,["class"])):Ye("",!0)],64))),128)),ze("div",{class:Ce(h.$style["twofa-buttons"])},[r.enableBackNavigation?(he(),ke("button",{key:0,class:"pb-w-sync_secondary-button","data-testid":"twofa-back",type:"button",onClick:p[4]||(p[4]=()=>{t("back")})},st(J(a)("common.back")),1)):Ye("",!0),r.twofa.displaySubmitButton?(he(),ke("button",{key:1,class:"pb-w-sync_primary-button",disabled:r.buttonDisabledStyle&&J(v),"data-testid":"twofa-button",type:"submit"},st(J(a)("common.next")),9,FTe)):Ye("",!0)],2)]),_:1},8,["disabled","model","rules","name","autocomplete","onSubmit"])):Ye("",!0)],2))}}),[["__cssModules",{$style:{"external-action-img-container":"pb-w-sync_external-action-img-container","external-action-label":"pb-w-sync_external-action-label","icon-eye-twofa":"pb-w-sync_icon-eye-twofa","input-image":"pb-w-sync_input-image","show-hide":"pb-w-sync_show-hide","twofa-buttons":"pb-w-sync_twofa-buttons","twofa-form-header":"pb-w-sync_twofa-form-header","twofa-cover":"pb-w-sync_twofa-cover","twofa-form-loader":"pb-w-sync_twofa-form-loader"}}]]);function ix(){const e=Oe(!1);function t(){Xt(()=>{e.value=yw.device.type==="mobile"||window.innerWidth<540})}return gn(()=>{}),ur(()=>{t(),window.addEventListener("resize",t)}),{mobile:e}}const eBe="",un=wi(rt({__name:"TwofaNotification",props:{assetsPath:{default:"https://s.paybook.com"},buttonDisabledStyle:{type:Boolean,default:!1},disableFormAutocomplete:{type:Boolean,default:!1},displayLongDescription:{type:Boolean,default:!1},duration:{},enableBackNavigation:{type:Boolean,default:!1},hideForm:{type:Boolean,default:!1},initLongMessage:{default:null},initMessage:{default:null},initTitle:{default:""},item:{default:null},messagesUpdater:{default:null},rootEmit:{type:Function,default:null},selectClass:{default:""},showLogo:{type:Boolean,default:!1},showPasswordStyle:{default:"icon"},t:{},type:{}},emits:["back","error","imagesLoaded","imagesLoading"],setup(e,{emit:t}){var P,D,$,U;const r=e;sn(Ea,r.rootEmit),sn(mw,r.t);let n=Oe(r.initLongMessage||((P=r.messagesUpdater)==null?void 0:P.getMessages().long)||""),a=Oe(r.initMessage||((D=r.messagesUpdater)==null?void 0:D.getMessages().short)||""),i=null,o=Oe(r.displayLongDescription||!1),l=Oe(!1),f=Oe(($=r.item)==null?void 0:$.status),c=Oe(r.item&&((U=r.item)!=null&&U.config)?r.item.config.name:r.initTitle);const{mobile:d}=ix(),v=be(()=>r.item&&r.item.config?`${r.assetsPath}${r.item.config.avatar}`:""),m=be(()=>r.item&&r.item.config?`${r.assetsPath}${r.item.config.cover}`:""),y=be(()=>r.item?d.value?f.value==="twofa":(f.value==="twofa"||f.value==="twofa-loading")&&!r.hideForm:!1),b=be(()=>r.item?r.type==="info"&&f.value!=="twofa":r.type==="info"),S=be(()=>r.item?f.value!=="twofa-loading":!0);function T(){r.messagesUpdater&&r.messagesUpdater.subscribe(()=>{const K=r.messagesUpdater.getMessages();n.value=K.long,a.value=K.short}),r.item&&(r.item.on("twofa",()=>{f.value="twofa",l.value=!0}),r.item.on("twofa-loading",()=>{f.value="twofa-loading",l.value=!1}))}ur(()=>{Xt(()=>{r.type!=="info"&&d.value&&(l.value=!0,B())})});function C(){clearTimeout(i)}function I(){return Math.round(r.duration*.75)}function B(){d.value&&r.duration>0&&(i=setTimeout(()=>{l.value=!1},I()))}function N(){r.type!=="info"&&d.value&&(l.value=!l.value,C())}function R(){o.value=!o.value}return T(),(K,M)=>(he(),ke("div",null,[ze("div",{class:Ce([K.$style["site-indentifier"],{[K.$style["is-mobile"]]:J(d)}]),onClick:N,onMouseleave:B},[b.value||K.showLogo?(he(),nt(Nf,{key:0,avatar:K.showLogo?v.value:void 0,type:r.type==="info"?"loading":r.type,onImagesLoaded:M[0]||(M[0]=()=>t("imagesLoaded")),onImagesLoading:M[1]||(M[1]=()=>t("imagesLoading"))},null,8,["avatar","type"])):Ye("",!0),!J(d)||J(l)?(he(),ke("div",{key:1,class:Ce([K.$style["site-identifier-description"],{[K.$style["with-loader"]]:b.value||K.showLogo}])},[ze("span",{class:Ce([K.$style["site-name"],K.$style[r.type]])},st(J(c)),3),S.value?(he(),ke("p",{key:0,class:Ce(K.$style["site-identifier-message"])},st(J(a)),3)):Ye("",!0),J(o)?(he(),ke("p",{key:1,class:Ce(K.$style["site-identifier-long-message"])},st(J(n)),3)):Ye("",!0),r.type!=="info"?(he(),ke("div",{key:2,class:Ce(K.$style["widget-notification-show-more-container"])},[J(n)?(he(),nt(J(RMe),{key:0,type:"primary",onClick:rn(R,["stop"])},{default:lt(()=>[Cn(st(r.t("common.show",{msg:r.t(`common.${J(o)?"less":"more"}`)})),1)]),_:1},8,["onClick"])):Ye("",!0)],2)):Ye("",!0)],2)):Ye("",!0)],34),y.value?(he(),ke("div",{key:0,class:Ce(K.$style["notification-form"])},[Et(nx,{avatar:v.value,"button-disabled-style":K.buttonDisabledStyle,cover:m.value,"disable-form-autocomplete":K.disableFormAutocomplete,"enable-back-navigation":K.enableBackNavigation,"in-notification":!0,"loader-message":J(a),"select-class":K.selectClass,"show-logo":K.showLogo,"show-password-style":K.showPasswordStyle,"site-name":J(c),twofa:r.item.twofa,onBack:M[2]||(M[2]=()=>t("back")),onError:M[3]||(M[3]=s=>t("error",s))},null,8,["avatar","button-disabled-style","cover","disable-form-autocomplete","enable-back-navigation","loader-message","select-class","show-logo","show-password-style","site-name","twofa"])],2)):Ye("",!0)]))}}),[["__cssModules",{$style:{"site-indentifier":"pb-w-sync_site-indentifier","site-identifier-description":"pb-w-sync_site-identifier-description","with-loader":"pb-w-sync_with-loader","site-name":"pb-w-sync_site-name",error:"pb-w-sync_error",success:"pb-w-sync_success","site-identifier-long-message":"pb-w-sync_site-identifier-long-message","site-identifier-message":"pb-w-sync_site-identifier-message","is-mobile":"pb-w-sync_is-mobile","widget-avatar-container":"pb-w-sync_widget-avatar-container","widget-notification-show-more-container":"pb-w-sync_widget-notification-show-more-container","notification-form":"pb-w-sync_notification-form"}}]]),LTe=ze("div",null,null,-1),DTe=wi(rt({__name:"UnauthorizedNotification",props:{initMessage:{default:""},initTitle:{default:""},refreshTokenFunction:{},t:{}},emits:["closed","closeNotification","refreshToken","refreshTokenError"],setup(e,{emit:t}){const r=e;let n=Oe(!1);const{mobile:a}=ix();gn(()=>{t("closed")});function i(){n.value=!0,r.refreshTokenFunction().then(({token:o,strict:l})=>{if(typeof o!="string")throw new Error("Refresh token is not valid. Promise should return a valid token.");return new Promise(f=>{t("refreshToken",{token:o,strict:l,resolve:f})})}).catch(()=>{t("refreshTokenError")}).finally(()=>{n.value=!1})}return(o,l)=>(he(),ke("div",null,[ze("div",{class:Ce([o.$style["site-indentifier"],{[o.$style["is-mobile"]]:J(a)}])},[LTe,ze("div",{class:Ce([o.$style["site-identifier-description"],o.$style["with-loader"]])},[ze("span",{class:Ce([o.$style["site-name"],o.$style.error])},st(r.initTitle),3),ze("p",{class:Ce(o.$style["site-identifier-message"])},st(r.initMessage),3),ze("div",{class:Ce(o.$style["unauthorized-button-container"])},[tn((he(),nt(J(Im),{disabled:J(n),type:"primary",onClick:rn(i,["stop"])},{default:lt(()=>[Cn(st(r.t("common.refresh")),1)]),_:1},8,["disabled","onClick"])),[[J(SCe),J(n)]]),Et(J(Im),{disabled:J(n),onClick:l[0]||(l[0]=rn(()=>{t("closeNotification")},["stop"]))},{default:lt(()=>[Cn(st(r.t("common.cancel")),1)]),_:1},8,["disabled"])],2)],2)],2)]))}}),[["__cssModules",{$style:{"site-indentifier":"pb-w-sync_site-indentifier","site-identifier-description":"pb-w-sync_site-identifier-description","with-loader":"pb-w-sync_with-loader","site-name":"pb-w-sync_site-name","site-identifier-message":"pb-w-sync_site-identifier-message","is-mobile":"pb-w-sync_is-mobile","unauthorized-icon-cotainer":"pb-w-sync_unauthorized-icon-cotainer","widget-notification-show-more-container":"pb-w-sync_widget-notification-show-more-container","unauthorized-icon":"pb-w-sync_unauthorized-icon","unauthorized-button-container":"pb-w-sync_unauthorized-button-container"}}]]);function UF(e,t){return function(){return e.apply(t,arguments)}}const{toString:$Te}=Object.prototype,{getPrototypeOf:ax}=Object,zm=(e=>t=>{const r=$Te.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),La=e=>(e=e.toLowerCase(),t=>zm(t)===e),Vm=e=>t=>typeof t===e,{isArray:oc}=Array,ld=Vm("undefined");function UTe(e){return e!==null&&!ld(e)&&e.constructor!==null&&!ld(e.constructor)&&Pi(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const zF=La("ArrayBuffer");function zTe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&zF(e.buffer),t}const VTe=Vm("string"),Pi=Vm("function"),VF=Vm("number"),qm=e=>e!==null&&typeof e=="object",qTe=e=>e===!0||e===!1,Hm=e=>{if(zm(e)!=="object")return!1;const t=ax(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},HTe=La("Date"),jTe=La("File"),KTe=La("Blob"),WTe=La("FileList"),GTe=e=>qm(e)&&Pi(e.pipe),ZTe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Pi(e.append)&&((t=zm(e))==="formdata"||t==="object"&&Pi(e.toString)&&e.toString()==="[object FormData]"))},JTe=La("URLSearchParams"),[YTe,XTe,QTe,eAe]=["ReadableStream","Request","Response","Headers"].map(La),tAe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function fd(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),oc(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let l;for(n=0;n<o;n++)l=i[n],t.call(null,e[l],l,e)}}function qF(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,a;for(;n-- >0;)if(a=r[n],t===a.toLowerCase())return a;return null}const Of=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:wn)(),HF=e=>!ld(e)&&e!==Of;function ox(){const{caseless:e}=HF(this)&&this||{},t={},r=(n,a)=>{const i=e&&qF(t,a)||a;Hm(t[i])&&Hm(n)?t[i]=ox(t[i],n):Hm(n)?t[i]=ox({},n):oc(n)?t[i]=n.slice():t[i]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&fd(arguments[n],r);return t}const rAe=(e,t,r,{allOwnKeys:n}={})=>(fd(t,(a,i)=>{r&&Pi(a)?e[i]=UF(a,r):e[i]=a},{allOwnKeys:n}),e),nAe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),iAe=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},aAe=(e,t,r,n)=>{let a,i,o;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!n||n(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=r!==!1&&ax(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},oAe=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},sAe=e=>{if(!e)return null;if(oc(e))return e;let t=e.length;if(!VF(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},lAe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ax(Uint8Array)),fAe=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},uAe=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},cAe=La("HTMLFormElement"),hAe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),jF=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),dAe=La("RegExp"),KF=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};fd(r,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(n[i]=o||a)}),Object.defineProperties(e,n)},pAe=e=>{KF(e,(t,r)=>{if(Pi(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Pi(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},vAe=(e,t)=>{const r={},n=a=>{a.forEach(i=>{r[i]=!0})};return oc(e)?n(e):n(String(e).split(t)),r},mAe=()=>{},gAe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,sx="abcdefghijklmnopqrstuvwxyz",WF="0123456789",GF={DIGIT:WF,ALPHA:sx,ALPHA_DIGIT:sx+sx.toUpperCase()+WF},yAe=(e=16,t=GF.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function bAe(e){return!!(e&&Pi(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const _Ae=e=>{const t=new Array(10),r=(n,a)=>{if(qm(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const i=oc(n)?[]:{};return fd(n,(o,l)=>{const f=r(o,a+1);!ld(f)&&(i[l]=f)}),t[a]=void 0,i}}return n};return r(e,0)},wAe=La("AsyncFunction"),EAe=e=>e&&(qm(e)||Pi(e))&&Pi(e.then)&&Pi(e.catch),ZF=((e,t)=>e?setImmediate:t?((r,n)=>(Of.addEventListener("message",({source:a,data:i})=>{a===Of&&i===r&&n.length&&n.shift()()},!1),a=>{n.push(a),Of.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Pi(Of.postMessage)),xAe=typeof queueMicrotask<"u"?queueMicrotask.bind(Of):typeof fe<"u"&&fe.nextTick||ZF,Ve={isArray:oc,isArrayBuffer:zF,isBuffer:UTe,isFormData:ZTe,isArrayBufferView:zTe,isString:VTe,isNumber:VF,isBoolean:qTe,isObject:qm,isPlainObject:Hm,isReadableStream:YTe,isRequest:XTe,isResponse:QTe,isHeaders:eAe,isUndefined:ld,isDate:HTe,isFile:jTe,isBlob:KTe,isRegExp:dAe,isFunction:Pi,isStream:GTe,isURLSearchParams:JTe,isTypedArray:lAe,isFileList:WTe,forEach:fd,merge:ox,extend:rAe,trim:tAe,stripBOM:nAe,inherits:iAe,toFlatObject:aAe,kindOf:zm,kindOfTest:La,endsWith:oAe,toArray:sAe,forEachEntry:fAe,matchAll:uAe,isHTMLForm:cAe,hasOwnProperty:jF,hasOwnProp:jF,reduceDescriptors:KF,freezeMethods:pAe,toObjectSet:vAe,toCamelCase:hAe,noop:mAe,toFiniteNumber:gAe,findKey:qF,global:Of,isContextDefined:HF,ALPHABET:GF,generateString:yAe,isSpecCompliantForm:bAe,toJSONObject:_Ae,isAsyncFn:wAe,isThenable:EAe,setImmediate:ZF,asap:xAe};function Ft(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}Ve.inherits(Ft,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ve.toJSONObject(this.config),code:this.code,status:this.status}}});const JF=Ft.prototype,YF={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{YF[e]={value:e}}),Object.defineProperties(Ft,YF),Object.defineProperty(JF,"isAxiosError",{value:!0}),Ft.from=(e,t,r,n,a,i)=>{const o=Object.create(JF);return Ve.toFlatObject(e,o,function(f){return f!==Error.prototype},l=>l!=="isAxiosError"),Ft.call(o,e.message,t,r,n,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const SAe=null;function lx(e){return Ve.isPlainObject(e)||Ve.isArray(e)}function XF(e){return Ve.endsWith(e,"[]")?e.slice(0,-2):e}function QF(e,t,r){return e?e.concat(t).map(function(a,i){return a=XF(a),!r&&i?"["+a+"]":a}).join(r?".":""):t}function MAe(e){return Ve.isArray(e)&&!e.some(lx)}const CAe=Ve.toFlatObject(Ve,{},null,function(t){return/^is[A-Z]/.test(t)});function jm(e,t,r){if(!Ve.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Ve.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,T){return!Ve.isUndefined(T[S])});const n=r.metaTokens,a=r.visitor||d,i=r.dots,o=r.indexes,f=(r.Blob||typeof Blob<"u"&&Blob)&&Ve.isSpecCompliantForm(t);if(!Ve.isFunction(a))throw new TypeError("visitor must be a function");function c(b){if(b===null)return"";if(Ve.isDate(b))return b.toISOString();if(!f&&Ve.isBlob(b))throw new Ft("Blob is not supported. Use a Buffer instead.");return Ve.isArrayBuffer(b)||Ve.isTypedArray(b)?f&&typeof Blob=="function"?new Blob([b]):ve.Buffer.from(b):b}function d(b,S,T){let C=b;if(b&&!T&&typeof b=="object"){if(Ve.endsWith(S,"{}"))S=n?S:S.slice(0,-2),b=JSON.stringify(b);else if(Ve.isArray(b)&&MAe(b)||(Ve.isFileList(b)||Ve.endsWith(S,"[]"))&&(C=Ve.toArray(b)))return S=XF(S),C.forEach(function(B,N){!(Ve.isUndefined(B)||B===null)&&t.append(o===!0?QF([S],N,i):o===null?S:S+"[]",c(B))}),!1}return lx(b)?!0:(t.append(QF(T,S,i),c(b)),!1)}const v=[],m=Object.assign(CAe,{defaultVisitor:d,convertValue:c,isVisitable:lx});function y(b,S){if(!Ve.isUndefined(b)){if(v.indexOf(b)!==-1)throw Error("Circular reference detected in "+S.join("."));v.push(b),Ve.forEach(b,function(C,I){(!(Ve.isUndefined(C)||C===null)&&a.call(t,C,Ve.isString(I)?I.trim():I,S,m))===!0&&y(C,S?S.concat(I):[I])}),v.pop()}}if(!Ve.isObject(e))throw new TypeError("data must be an object");return y(e),t}function eL(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function fx(e,t){this._pairs=[],e&&jm(e,this,t)}const tL=fx.prototype;tL.append=function(t,r){this._pairs.push([t,r])},tL.toString=function(t){const r=t?function(n){return t.call(this,n,eL)}:eL;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function TAe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rL(e,t,r){if(!t)return e;const n=r&&r.encode||TAe;Ve.isFunction(r)&&(r={serialize:r});const a=r&&r.serialize;let i;if(a?i=a(t,r):i=Ve.isURLSearchParams(t)?t.toString():new fx(t,r).toString(n),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class AAe{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ve.forEach(this.handlers,function(n){n!==null&&t(n)})}}const nL=AAe,iL={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},IAe={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:fx,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ux=typeof window<"u"&&typeof document<"u",cx=typeof navigator=="object"&&navigator||void 0,BAe=ux&&(!cx||["ReactNative","NativeScript","NS"].indexOf(cx.product)<0),kAe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),NAe=ux&&window.location.href||"http://localhost",Gn={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ux,hasStandardBrowserEnv:BAe,hasStandardBrowserWebWorkerEnv:kAe,navigator:cx,origin:NAe},Symbol.toStringTag,{value:"Module"})),...IAe};function OAe(e,t){return jm(e,new Gn.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,i){return Gn.isNode&&Ve.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function RAe(e){return Ve.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function PAe(e){const t={},r=Object.keys(e);let n;const a=r.length;let i;for(n=0;n<a;n++)i=r[n],t[i]=e[i];return t}function aL(e){function t(r,n,a,i){let o=r[i++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),f=i>=r.length;return o=!o&&Ve.isArray(a)?a.length:o,f?(Ve.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!l):((!a[o]||!Ve.isObject(a[o]))&&(a[o]=[]),t(r,n,a[o],i)&&Ve.isArray(a[o])&&(a[o]=PAe(a[o])),!l)}if(Ve.isFormData(e)&&Ve.isFunction(e.entries)){const r={};return Ve.forEachEntry(e,(n,a)=>{t(RAe(n),a,r,0)}),r}return null}function FAe(e,t,r){if(Ve.isString(e))try{return(t||JSON.parse)(e),Ve.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const hx={transitional:iL,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,i=Ve.isObject(t);if(i&&Ve.isHTMLForm(t)&&(t=new FormData(t)),Ve.isFormData(t))return a?JSON.stringify(aL(t)):t;if(Ve.isArrayBuffer(t)||Ve.isBuffer(t)||Ve.isStream(t)||Ve.isFile(t)||Ve.isBlob(t)||Ve.isReadableStream(t))return t;if(Ve.isArrayBufferView(t))return t.buffer;if(Ve.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return OAe(t,this.formSerializer).toString();if((l=Ve.isFileList(t))||n.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return jm(l?{"files[]":t}:t,f&&new f,this.formSerializer)}}return i||a?(r.setContentType("application/json",!1),FAe(t)):t}],transformResponse:[function(t){const r=this.transitional||hx.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(Ve.isResponse(t)||Ve.isReadableStream(t))return t;if(t&&Ve.isString(t)&&(n&&!this.responseType||a)){const o=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(l){if(o)throw l.name==="SyntaxError"?Ft.from(l,Ft.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Gn.classes.FormData,Blob:Gn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ve.forEach(["delete","get","head","post","put","patch"],e=>{hx.headers[e]={}});const dx=hx,LAe=Ve.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),DAe=e=>{const t={};let r,n,a;return e&&e.split(`
865
865
  `).forEach(function(o){a=o.indexOf(":"),r=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!r||t[r]&&LAe[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},oL=Symbol("internals");function ud(e){return e&&String(e).trim().toLowerCase()}function Km(e){return e===!1||e==null?e:Ve.isArray(e)?e.map(Km):String(e)}function $Ae(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const UAe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function px(e,t,r,n,a){if(Ve.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!Ve.isString(t)){if(Ve.isString(n))return t.indexOf(n)!==-1;if(Ve.isRegExp(n))return n.test(t)}}function zAe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function VAe(e,t){const r=Ve.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(a,i,o){return this[n].call(this,t,a,i,o)},configurable:!0})})}class Wm{constructor(t){t&&this.set(t)}set(t,r,n){const a=this;function i(l,f,c){const d=ud(f);if(!d)throw new Error("header name must be a non-empty string");const v=Ve.findKey(a,d);(!v||a[v]===void 0||c===!0||c===void 0&&a[v]!==!1)&&(a[v||f]=Km(l))}const o=(l,f)=>Ve.forEach(l,(c,d)=>i(c,d,f));if(Ve.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(Ve.isString(t)&&(t=t.trim())&&!UAe(t))o(DAe(t),r);else if(Ve.isHeaders(t))for(const[l,f]of t.entries())i(f,l,n);else t!=null&&i(r,t,n);return this}get(t,r){if(t=ud(t),t){const n=Ve.findKey(this,t);if(n){const a=this[n];if(!r)return a;if(r===!0)return $Ae(a);if(Ve.isFunction(r))return r.call(this,a,n);if(Ve.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=ud(t),t){const n=Ve.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||px(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let a=!1;function i(o){if(o=ud(o),o){const l=Ve.findKey(n,o);l&&(!r||px(n,n[l],l,r))&&(delete n[l],a=!0)}}return Ve.isArray(t)?t.forEach(i):i(t),a}clear(t){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const i=r[n];(!t||px(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const r=this,n={};return Ve.forEach(this,(a,i)=>{const o=Ve.findKey(n,i);if(o){r[o]=Km(a),delete r[i];return}const l=t?zAe(i):String(i).trim();l!==i&&delete r[i],r[l]=Km(a),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return Ve.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&Ve.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
866
866
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[oL]=this[oL]={accessors:{}}).accessors,a=this.prototype;function i(o){const l=ud(o);n[l]||(VAe(a,o),n[l]=!0)}return Ve.isArray(t)?t.forEach(i):i(t),this}}Wm.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ve.reduceDescriptors(Wm.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),Ve.freezeMethods(Wm);const Da=Wm;function vx(e,t){const r=this||dx,n=t||r,a=Da.from(n.headers);let i=n.data;return Ve.forEach(e,function(l){i=l.call(r,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function sL(e){return!!(e&&e.__CANCEL__)}function sc(e,t,r){Ft.call(this,e??"canceled",Ft.ERR_CANCELED,t,r),this.name="CanceledError"}Ve.inherits(sc,Ft,{__CANCEL__:!0});function lL(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Ft("Request failed with status code "+r.status,[Ft.ERR_BAD_REQUEST,Ft.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function qAe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function HAe(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(f){const c=Date.now(),d=n[i];o||(o=c),r[a]=f,n[a]=c;let v=i,m=0;for(;v!==a;)m+=r[v++],v=v%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),c-o<t)return;const y=d&&c-d;return y?Math.round(m*1e3/y):void 0}}function jAe(e,t){let r=0,n=1e3/t,a,i;const o=(c,d=Date.now())=>{r=d,a=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),v=d-r;v>=n?o(c,d):(a=c,i||(i=setTimeout(()=>{i=null,o(a)},n-v)))},()=>a&&o(a)]}const Gm=(e,t,r=3)=>{let n=0;const a=HAe(50,250);return jAe(i=>{const o=i.loaded,l=i.lengthComputable?i.total:void 0,f=o-n,c=a(f),d=o<=l;n=o;const v={loaded:o,total:l,progress:l?o/l:void 0,bytes:f,rate:c||void 0,estimated:c&&l&&d?(l-o)/c:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(v)},r)},fL=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},uL=e=>(...t)=>Ve.asap(()=>e(...t)),KAe=Gn.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Gn.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Gn.origin),Gn.navigator&&/(msie|trident)/i.test(Gn.navigator.userAgent)):()=>!0,WAe=Gn.hasStandardBrowserEnv?{write(e,t,r,n,a,i){const o=[e+"="+encodeURIComponent(t)];Ve.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),Ve.isString(n)&&o.push("path="+n),Ve.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.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 GAe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ZAe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function cL(e,t){return e&&!GAe(t)?ZAe(e,t):t}const hL=e=>e instanceof Da?{...e}:e;function Rf(e,t){t=t||{};const r={};function n(c,d,v,m){return Ve.isPlainObject(c)&&Ve.isPlainObject(d)?Ve.merge.call({caseless:m},c,d):Ve.isPlainObject(d)?Ve.merge({},d):Ve.isArray(d)?d.slice():d}function a(c,d,v,m){if(Ve.isUndefined(d)){if(!Ve.isUndefined(c))return n(void 0,c,v,m)}else return n(c,d,v,m)}function i(c,d){if(!Ve.isUndefined(d))return n(void 0,d)}function o(c,d){if(Ve.isUndefined(d)){if(!Ve.isUndefined(c))return n(void 0,c)}else return n(void 0,d)}function l(c,d,v){if(v in t)return n(c,d);if(v in e)return n(void 0,c)}const f={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(c,d,v)=>a(hL(c),hL(d),v,!0)};return Ve.forEach(Object.keys(Object.assign({},e,t)),function(d){const v=f[d]||a,m=v(e[d],t[d],d);Ve.isUndefined(m)&&v!==l||(r[d]=m)}),r}const dL=e=>{const t=Rf({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:i,headers:o,auth:l}=t;t.headers=o=Da.from(o),t.url=rL(cL(t.baseURL,t.url),e.params,e.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let f;if(Ve.isFormData(r)){if(Gn.hasStandardBrowserEnv||Gn.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((f=o.getContentType())!==!1){const[c,...d]=f?f.split(";").map(v=>v.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Gn.hasStandardBrowserEnv&&(n&&Ve.isFunction(n)&&(n=n(t)),n||n!==!1&&KAe(t.url))){const c=a&&i&&WAe.read(i);c&&o.set(a,c)}return t},JAe=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const a=dL(e);let i=a.data;const o=Da.from(a.headers).normalize();let{responseType:l,onUploadProgress:f,onDownloadProgress:c}=a,d,v,m,y,b;function S(){y&&y(),b&&b(),a.cancelToken&&a.cancelToken.unsubscribe(d),a.signal&&a.signal.removeEventListener("abort",d)}let T=new XMLHttpRequest;T.open(a.method.toUpperCase(),a.url,!0),T.timeout=a.timeout;function C(){if(!T)return;const B=Da.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),R={data:!l||l==="text"||l==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:B,config:e,request:T};lL(function(D){r(D),S()},function(D){n(D),S()},R),T=null}"onloadend"in T?T.onloadend=C:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(C)},T.onabort=function(){T&&(n(new Ft("Request aborted",Ft.ECONNABORTED,e,T)),T=null)},T.onerror=function(){n(new Ft("Network Error",Ft.ERR_NETWORK,e,T)),T=null},T.ontimeout=function(){let N=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const R=a.transitional||iL;a.timeoutErrorMessage&&(N=a.timeoutErrorMessage),n(new Ft(N,R.clarifyTimeoutError?Ft.ETIMEDOUT:Ft.ECONNABORTED,e,T)),T=null},i===void 0&&o.setContentType(null),"setRequestHeader"in T&&Ve.forEach(o.toJSON(),function(N,R){T.setRequestHeader(R,N)}),Ve.isUndefined(a.withCredentials)||(T.withCredentials=!!a.withCredentials),l&&l!=="json"&&(T.responseType=a.responseType),c&&([m,b]=Gm(c,!0),T.addEventListener("progress",m)),f&&T.upload&&([v,y]=Gm(f),T.upload.addEventListener("progress",v),T.upload.addEventListener("loadend",y)),(a.cancelToken||a.signal)&&(d=B=>{T&&(n(!B||B.type?new sc(null,e,T):B),T.abort(),T=null)},a.cancelToken&&a.cancelToken.subscribe(d),a.signal&&(a.signal.aborted?d():a.signal.addEventListener("abort",d)));const I=qAe(a.url);if(I&&Gn.protocols.indexOf(I)===-1){n(new Ft("Unsupported protocol "+I+":",Ft.ERR_BAD_REQUEST,e));return}T.send(i||null)})},YAe=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,a;const i=function(c){if(!a){a=!0,l();const d=c instanceof Error?c:this.reason;n.abort(d instanceof Ft?d:new sc(d instanceof Error?d.message:d))}};let o=t&&setTimeout(()=>{o=null,i(new Ft(`timeout ${t} of ms exceeded`,Ft.ETIMEDOUT))},t);const l=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:f}=n;return f.unsubscribe=()=>Ve.asap(l),f}},XAe=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let n=0,a;for(;n<r;)a=n+t,yield e.slice(n,a),n=a},QAe=async function*(e,t){for await(const r of e5e(e))yield*XAe(r,t)},e5e=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},pL=(e,t,r,n)=>{const a=QAe(e,t);let i=0,o,l=f=>{o||(o=!0,n&&n(f))};return new ReadableStream({async pull(f){try{const{done:c,value:d}=await a.next();if(c){l(),f.close();return}let v=d.byteLength;if(r){let m=i+=v;r(m)}f.enqueue(new Uint8Array(d))}catch(c){throw l(c),c}},cancel(f){return l(f),a.return()}},{highWaterMark:2})},Zm=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",vL=Zm&&typeof ReadableStream=="function",t5e=Zm&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),mL=(e,...t)=>{try{return!!e(...t)}catch{return!1}},r5e=vL&&mL(()=>{let e=!1;const t=new Request(Gn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),gL=64*1024,mx=vL&&mL(()=>Ve.isReadableStream(new Response("").body)),Jm={stream:mx&&(e=>e.body)};Zm&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Jm[t]&&(Jm[t]=Ve.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new Ft(`Response type '${t}' is not supported`,Ft.ERR_NOT_SUPPORT,n)})})})(new Response);const n5e=async e=>{if(e==null)return 0;if(Ve.isBlob(e))return e.size;if(Ve.isSpecCompliantForm(e))return(await new Request(Gn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Ve.isArrayBufferView(e)||Ve.isArrayBuffer(e))return e.byteLength;if(Ve.isURLSearchParams(e)&&(e=e+""),Ve.isString(e))return(await t5e(e)).byteLength},i5e=async(e,t)=>{const r=Ve.toFiniteNumber(e.getContentLength());return r??n5e(t)},gx={http:SAe,xhr:JAe,fetch:Zm&&(async e=>{let{url:t,method:r,data:n,signal:a,cancelToken:i,timeout:o,onDownloadProgress:l,onUploadProgress:f,responseType:c,headers:d,withCredentials:v="same-origin",fetchOptions:m}=dL(e);c=c?(c+"").toLowerCase():"text";let y=YAe([a,i&&i.toAbortSignal()],o),b;const S=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let T;try{if(f&&r5e&&r!=="get"&&r!=="head"&&(T=await i5e(d,n))!==0){let R=new Request(t,{method:"POST",body:n,duplex:"half"}),P;if(Ve.isFormData(n)&&(P=R.headers.get("content-type"))&&d.setContentType(P),R.body){const[D,$]=fL(T,Gm(uL(f)));n=pL(R.body,gL,D,$)}}Ve.isString(v)||(v=v?"include":"omit");const C="credentials"in Request.prototype;b=new Request(t,{...m,signal:y,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:C?v:void 0});let I=await fetch(b);const B=mx&&(c==="stream"||c==="response");if(mx&&(l||B&&S)){const R={};["status","statusText","headers"].forEach(U=>{R[U]=I[U]});const P=Ve.toFiniteNumber(I.headers.get("content-length")),[D,$]=l&&fL(P,Gm(uL(l),!0))||[];I=new Response(pL(I.body,gL,D,()=>{$&&$(),S&&S()}),R)}c=c||"text";let N=await Jm[Ve.findKey(Jm,c)||"text"](I,e);return!B&&S&&S(),await new Promise((R,P)=>{lL(R,P,{data:N,headers:Da.from(I.headers),status:I.status,statusText:I.statusText,config:e,request:b})})}catch(C){throw S&&S(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new Ft("Network Error",Ft.ERR_NETWORK,e,b),{cause:C.cause||C}):Ft.from(C,C&&C.code,e,b)}})};Ve.forEach(gx,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const yL=e=>`- ${e}`,a5e=e=>Ve.isFunction(e)||e===null||e===!1,bL={getAdapter:e=>{e=Ve.isArray(e)?e:[e];const{length:t}=e;let r,n;const a={};for(let i=0;i<t;i++){r=e[i];let o;if(n=r,!a5e(r)&&(n=gx[(o=String(r)).toLowerCase()],n===void 0))throw new Ft(`Unknown adapter '${o}'`);if(n)break;a[o||"#"+i]=n}if(!n){const i=Object.entries(a).map(([l,f])=>`adapter ${l} `+(f===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since :
867
867
  `+i.map(yL).join(`
868
868
  `):" "+yL(i[0]):"as no adapter specified";throw new Ft("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:gx};function yx(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new sc(null,e)}function _L(e){return yx(e),e.headers=Da.from(e.headers),e.data=vx.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),bL.getAdapter(e.adapter||dx.adapter)(e).then(function(n){return yx(e),n.data=vx.call(e,e.transformResponse,n),n.headers=Da.from(n.headers),n},function(n){return sL(n)||(yx(e),n&&n.response&&(n.response.data=vx.call(e,e.transformResponse,n.response),n.response.headers=Da.from(n.response.headers))),Promise.reject(n)})}const wL="1.7.9",Ym={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ym[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const EL={};Ym.transitional=function(t,r,n){function a(i,o){return"[Axios v"+wL+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,l)=>{if(t===!1)throw new Ft(a(o," has been removed"+(r?" in "+r:"")),Ft.ERR_DEPRECATED);return r&&!EL[o]&&(EL[o]=!0,console.warn(a(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,o,l):!0}},Ym.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function o5e(e,t,r){if(typeof e!="object")throw new Ft("options must be an object",Ft.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const i=n[a],o=t[i];if(o){const l=e[i],f=l===void 0||o(l,i,e);if(f!==!0)throw new Ft("option "+i+" must be "+f,Ft.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Ft("Unknown option "+i,Ft.ERR_BAD_OPTION)}}const Xm={assertOptions:o5e,validators:Ym},xo=Xm.validators;class Qm{constructor(t){this.defaults=t,this.interceptors={request:new nL,response:new nL}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
869
- `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Rf(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:i}=r;n!==void 0&&Xm.assertOptions(n,{silentJSONParsing:xo.transitional(xo.boolean),forcedJSONParsing:xo.transitional(xo.boolean),clarifyTimeoutError:xo.transitional(xo.boolean)},!1),a!=null&&(Ve.isFunction(a)?r.paramsSerializer={serialize:a}:Xm.assertOptions(a,{encode:xo.function,serialize:xo.function},!0)),Xm.assertOptions(r,{baseUrl:xo.spelling("baseURL"),withXsrfToken:xo.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=i&&Ve.merge(i.common,i[r.method]);i&&Ve.forEach(["delete","get","head","post","put","patch","common"],b=>{delete i[b]}),r.headers=Da.concat(o,i);const l=[];let f=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(r)===!1||(f=f&&S.synchronous,l.unshift(S.fulfilled,S.rejected))});const c=[];this.interceptors.response.forEach(function(S){c.push(S.fulfilled,S.rejected)});let d,v=0,m;if(!f){const b=[_L.bind(this),void 0];for(b.unshift.apply(b,l),b.push.apply(b,c),m=b.length,d=Promise.resolve(r);v<m;)d=d.then(b[v++],b[v++]);return d}m=l.length;let y=r;for(v=0;v<m;){const b=l[v++],S=l[v++];try{y=b(y)}catch(T){S.call(this,T);break}}try{d=_L.call(this,y)}catch(b){return Promise.reject(b)}for(v=0,m=c.length;v<m;)d=d.then(c[v++],c[v++]);return d}getUri(t){t=Rf(this.defaults,t);const r=cL(t.baseURL,t.url);return rL(r,t.params,t.paramsSerializer)}}Ve.forEach(["delete","get","head","options"],function(t){Qm.prototype[t]=function(r,n){return this.request(Rf(n||{},{method:t,url:r,data:(n||{}).data}))}}),Ve.forEach(["post","put","patch"],function(t){function r(n){return function(i,o,l){return this.request(Rf(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Qm.prototype[t]=r(),Qm.prototype[t+"Form"]=r(!0)});const eg=Qm;class bx{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(a=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](a);n._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(l=>{n.subscribe(l),i=l}).then(a);return o.cancel=function(){n.unsubscribe(i)},o},t(function(i,o,l){n.reason||(n.reason=new sc(i,o,l),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new bx(function(a){t=a}),cancel:t}}}const s5e=bx;function l5e(e){return function(r){return e.apply(null,r)}}function f5e(e){return Ve.isObject(e)&&e.isAxiosError===!0}const _x={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(_x).forEach(([e,t])=>{_x[t]=e});const u5e=_x;function xL(e){const t=new eg(e),r=UF(eg.prototype.request,t);return Ve.extend(r,eg.prototype,t,{allOwnKeys:!0}),Ve.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return xL(Rf(e,a))},r}const dn=xL(dx);dn.Axios=eg,dn.CanceledError=sc,dn.CancelToken=s5e,dn.isCancel=sL,dn.VERSION=wL,dn.toFormData=jm,dn.AxiosError=Ft,dn.Cancel=dn.CanceledError,dn.all=function(t){return Promise.all(t)},dn.spread=l5e,dn.isAxiosError=f5e,dn.mergeConfig=Rf,dn.AxiosHeaders=Da,dn.formToJSON=e=>aL(Ve.isHTMLForm(e)?new FormData(e):e),dn.getAdapter=bL.getAdapter,dn.HttpStatusCode=u5e,dn.default=dn;const $a=dn;function c5e(e,t,r){var n=r||{},a=n.noTrailing,i=a===void 0?!1:a,o=n.noLeading,l=o===void 0?!1:o,f=n.debounceMode,c=f===void 0?void 0:f,d,v=!1,m=0;function y(){d&&clearTimeout(d)}function b(T){var C=T||{},I=C.upcomingOnly,B=I===void 0?!1:I;y(),v=!B}function S(){for(var T=arguments.length,C=new Array(T),I=0;I<T;I++)C[I]=arguments[I];var B=this,N=Date.now()-m;if(v)return;function R(){m=Date.now(),t.apply(B,C)}function P(){d=void 0}!l&&c&&!d&&R(),y(),c===void 0&&N>e?l?(m=Date.now(),i||(d=setTimeout(c?P:R,e))):R():i!==!0&&(d=setTimeout(c?P:R,c===void 0?e-N:e))}return S.cancel=b,S}function SL(e,t,r){var n=r||{},a=n.atBegin,i=a===void 0?!1:a;return c5e(e,t,{debounceMode:i!==!1})}class wx extends gs.EventEmitter{constructor(r,n,a=!0){super();kt(this,"connection");kt(this,"data",{});kt(this,"displaySubmitButton",!0);kt(this,"http");kt(this,"_loading",!1);kt(this,"rules",{});kt(this,"rulesDefined",!1);if(this.config=r,this.measureEvents=a,this.http=n.getInstance(),r.twofa&&r.twofa.length)this.configuredMeasureEvent("twofa_request",{id_site:r.id_site,...r.id_site?{}:{id_request:r.id_request}}),r.twofa.forEach(i=>{const o=i.name;this.data[o]=null,(i.type==="authentication_type"||i.type==="challenge")&&(this.data[o]=i.label),i.type==="connection"&&(this.connection=this.data[o]=i.label),(i.type==="externalAction"||i.type==="instructions")&&(this.displaySubmitButton=!1)}),this.connectSantanderUsbToken(),this.handleBbvaNetcashConnections();else throw new Error("TWOFA credentials are required.")}get loading(){return this._loading}set loading(r){this._loading=r,r&&this.emit("loading")}authenticate(r){return this.data={...r},this.configuredMeasureEvent("twofa_send",{id_site:this.config.id_site,...this.config.id_site?{}:{id_request:this.config.id_request}}),this.loading=!0,this.connection==="eai_otp_GO3"?this.sendBbvaNetcashUsbToken():this.http.post(this.config.address,{twofa:{...this.data}}).then(n=>(this.emit("login-success"),n)).catch(n=>(this.loading=!1,this.emit("twofa-api-error"),Promise.reject(n)))}defineRules(r){this.rulesDefined||(this.rulesDefined=!0,this.config.twofa.forEach(n=>{Object.defineProperty(this.rules,n.name,{value:this.setRules(n,r)})}))}getFields(){return this.config.twofa.filter(r=>r.type!=="challenge"&&r.type!=="connection")}statusChanged(){this.loading||(this.loading=!0)}configuredMeasureEvent(r,n){this.measureEvents&&Ln(r,n)}connectSantanderUsbToken(){this.config.id_site==="57f6dd8c78480602048b4567"&&this.config.twofa[0].type==="instructions"&&Ope(this.config.twofa[0].imgBase64File).then(r=>{this.authenticate(r)}).catch(r=>{this.emit("twofa-api-error"),this.emit("twofa-device-error",r)})}findTwofaByName(r){return this.config.twofa.find(n=>n.name===r)}findTwofaByType(r){return this.config.twofa.find(n=>n.type===r)}handleBbvaNetcashConnections(){this.connection==="eai_otp_GO3"&&this.setBbvaNetcashUsbFields(),this.findTwofaByType("authentication_type")&&this.sendBbvaNetcashBluetoothTimeChallenge(),this.config.id_site==="57239fae78480601038b4567"&&!this.connection&&this.findTwofaByType("challenge")&&this.sendBbvaNetcashBluetoothSecondToken()}sendBbvaNetcashBluetoothSecondToken(){const r=JSON.parse(this.findTwofaByType("challenge").label),n=this.findTwofaByName("token").label;this.displaySubmitButton=!1,this.config.twofa=[{label:n,name:"token",type:"instructions"}],Iz(r).then(a=>{this.authenticate({challenge:a,token:a})})}sendBbvaNetcashBluetoothTimeChallenge(){const r=this.findTwofaByType("authentication_type").label,n=this.findTwofaByName("token").label;this.displaySubmitButton=!1,this.config.twofa=[{label:n,name:"token",type:"instructions"}],kz(r).then(a=>{this.authenticate({authentication_type:"authentication_type",token:a})})}sendBbvaNetcashUsbToken(){return Tz(this.data.token,this.data.challenge).then(r=>this.http.post(this.config.address,{twofa:{...this.data,...r,bluetooth_device:"bluetooth_device",challenge:"challenge",connection:"connection"}}).then(n=>(this.emit("login-success"),n)).catch(n=>(this.loading=!1,this.emit("twofa-api-error"),Promise.reject(n)))).catch(r=>(this.loading=!1,this.emit("twofa-api-error"),Promise.reject(r.response?{...r,response:{...r.response,status:500}}:r)))}setBbvaNetcashUsbFields(){this.config.twofa=[this.findTwofaByType("text")]}setRules(r,n){const a=[];return a.push({required:!0,message:n("form_errors.required",{label:r.label})}),r.validation&&r.validation.forEach(i=>{switch(i.type){case"text":break;case"regex":a.push({pattern:i.value,message:i.error_message});break}}),a}}class h5e extends gs.EventEmitter{constructor(r,n,a,i,o=!1){super();kt(this,"loading",!1);kt(this,"response");kt(this,"_config");kt(this,"_error");kt(this,"_message");kt(this,"_status","searching");kt(this,"_twofa");kt(this,"http");kt(this,"isSocketOpen",!1);kt(this,"options",{});kt(this,"socket");kt(this,"socketOpened",!1);kt(this,"socketTimeoutAfterError");kt(this,"timer",null);this.syncService=n,this.httpService=a,this.socketTimeoutTime=i,this.isHeadless=o,this.http=this.httpService.getInstance(),this.getSitefromCredential({id_credential:r}).then(({site:l,credential:f})=>{this.config={...f,avatar:l.organizationSite.avatar,cover:l.organizationSite.cover,name:l.name,quickAnswer:this.syncService.quickAnswer,site:l},this.status="found",this.sync().then(()=>{this.status="loading"}).catch(c=>{this.error=c,this.status="error"})}).catch(l=>{this.error=l,this.status="not-found"})}get config(){return this._config}set config(r){this._config=r}get error(){return this._error}set error(r){this._error=r}get message(){return this._message}set message(r){this._message=r}get status(){return this._status}set status(r){const n=this._status!==r;this._status=r,n&&(this.emit(r),this.emit("status-updated",r))}get twofa(){return this._twofa}set twofa(r){this._twofa=r,r&&(this.status="twofa",r.on("loading",()=>{this._twofa===r&&this.status==="twofa"&&(this.status="twofa-loading")}),r.on("twofa-api-error",()=>{this.status="twofa-api-error",this.socketClose()}))}getAvatar(){return this.config.avatar}getCover(){return this.config.cover}getCredentialData(){return{...this.config}}getName(){return this.config.name}getSite(){return{...this.config.site}}setOption(r,n){this.options[r]=n}sync(){return this.configuredMeasureEvent("sync_credential",{id_credential:this.config.id_credential,id_site:this.config.id_site}),this.loading=!0,this.startTimer(),this.http.put(`/v1/credentials/${this.config.id_credential}/sync`,{...this.spreadOptions()}).then(r=>(this.response=r,this.setSocket(r.ws),r)).catch(r=>(this.loading=!1,this.configuredMeasureEvent("sync_credential_error",{code:r.response.status,code_origin:"endpoint",id_credential:this.config.id_credential,id_site:this.config.id_site}),this.clearTimer(),Promise.reject(r)))}clearTimer(){clearTimeout(this.timer)}configuredMeasureEvent(r,n){this.isHeadless||Ln(r,n)}getSitefromCredential(r){return this.http.get("/v1/credentials",{params:{...this.syncService.defaultParams,...r}}).then(n=>r.id_credential&&!n.length?Promise.reject({response:{status:"credential_not_found"}}):this.syncService.getOrganizationSites({id_site_organization:n[0].id_site_organization}).then(a=>{if(r.id_credential&&!a.length)return Promise.reject({response:{status:"credential_not_found"}});let i=a[0].sites.find(o=>o.id_site===n[0].id_site);if(i)i={...i};else return Promise.reject({response:{status:"credential_not_found"}});return i.organizationSite=a[0],{site:i,credential:n[0]}}).catch(a=>Promise.reject(a)))}reopenSocket(r){this.isSocketOpen=!1,this.socketTimeoutAfterError||this.setSocket(r.target.url)}reopenSocketAfterError(){if(!this.socketTimeoutAfterError){this.socketTimeoutAfterError=new Date().getTime()+12e4,this.setSocket(this.response.ws);const r=setInterval(()=>{this.isSocketOpen?clearInterval(r):new Date().getTime()<this.socketTimeoutAfterError?(this.socket.close(),this.setSocket(this.response.ws)):(clearInterval(r),this.socket.close(),this.loading=!1,this.status="socket-error")},2e3)}}setSocket(r){this.socket=new WebSocket(r),this.socket.onclose=n=>this.reopenSocket(n),this.socket.onerror=()=>this.socketError(),this.socket.onmessage=n=>this.socketMessage(n),this.socket.onopen=()=>this.socketOpen()}socketClose(r){this.clearTimer(),this.socket.onclose=()=>{this.twofa=null,r&&r(this)},this.socket.close()}socketError(){this.isSocketOpen=!1,this.socketOpened?this.reopenSocketAfterError():(this.loading=!1,this.status="socket-error")}socketMessage(r){const n=JSON.parse(r.data);if(this.clearTimer(),this.config.quickAnswer&&n.code===102){this.socketClose(()=>{this.loading=!1,this.twofa&&(this.twofa.loading=!1),this.status="socket-quick-answer"}),this.configuredMeasureEvent("sync_credential_success",{code:n.code,id_credential:this.config.id_credential,id_site:this.config.id_site});return}n.code===401&&this.configuredMeasureEvent("unauthorized",{id_site:this.config.id_site}),n.code===410&&(this.twofa=new wx({...n,id_site:this.config.id_site},this.httpService)),this.emit("socket-message",n),this.startTimer(),n.code===411&&this.configuredMeasureEvent("twofa_timeout",{id_site:this.config.id_site}),200<=n.code&&n.code<300||400<=n.code&&n.code<600&&n.code!==410?(this.loading=!1,this.twofa&&(this.twofa.loading=!1),n.code<300?(this.configuredMeasureEvent("sync_credential_success",{code:n.code,id_credential:this.config.id_credential,id_site:this.config.id_site}),this.message=n,this.status="success"):(this.configuredMeasureEvent("sync_credential_error",{code:n.code,code_origin:"socket",id_credential:this.config.id_credential,id_site:this.config.id_site}),this.error=n,this.status="error"),this.socketClose()):this.twofa&&n.code!==410&&this.twofa.statusChanged()}socketOpen(){this.isSocketOpen=this.socketOpened=!0,this.socketTimeoutAfterError=void 0}socketTimeout(){this.status="socket-timeout",this.socketClose()}spreadOptions(){return Object.keys(this.options).length?{options:{...this.options}}:{}}startTimer(){this.timer=setTimeout(()=>{this.socketTimeout()},this.socketTimeoutTime)}}$a.defaults.baseURL="https://sync.paybook.com";class ML extends gs.EventEmitter{constructor(r,n={}){super();kt(this,"baseURL");kt(this,"isStrict");kt(this,"jwk");this.token=r,n.baseURL&&(this.baseURL=$a.defaults.baseURL=n.baseURL),this.isStrict=n.isStrict||!1,$a.defaults.headers.common={"x-app-version":`sync-widget:${n.widgetVersion}:${yw.os.name}:${yw.os.version}`},$a.interceptors.request.use(a=>(a.headers.Authorization=`Bearer ${this.token}`,a),function(a){return Promise.reject(a)}),$a.interceptors.response.use(a=>a.data.response||a.data||a,a=>(a.response&&a.response.status===401&&this.emit("401"),Promise.reject(a)))}getInstance(){const r=$a.create({baseURL:this.baseURL});return r.interceptors.request.use(n=>(n.headers.Authorization=`Bearer ${this.token}`,n),function(n){return Promise.reject(n)}),r.interceptors.response.use(n=>n.data.response||n.data||n,n=>(n.response&&n.response.status===401&&this.emit("401"),Promise.reject(n))),this.isStrict&&r.interceptors.request.use(n=>n.data?$B(n.data,this.jwk).then(a=>(n.data={jwe:a},Promise.resolve(n))):Promise.resolve(n),n=>Promise.reject(n)),r}updateToken(r,n){this.token=r,n&&(this.jwk=n)}}class CL extends gs.EventEmitter{constructor(r,n,a){super();kt(this,"config");kt(this,"response");kt(this,"testMode",!1);kt(this,"http");kt(this,"_finalResponse",null);kt(this,"_lastSocketMessage");kt(this,"_loading",!1);kt(this,"_status","start");kt(this,"_twofa");kt(this,"isSocketOpen",!1);kt(this,"options",{});kt(this,"socket");kt(this,"socketOpened",!1);kt(this,"socketTimeoutAfterError");kt(this,"timer",null);this.httpService=n,this.userConfig=a,this.config=r,this.http=n.getInstance()}get finalResponse(){return this._finalResponse}set finalResponse(r){this._finalResponse=r,this.status="finish"}get lastSocketMessage(){return this._lastSocketMessage}set lastSocketMessage(r){this._lastSocketMessage=r}get loading(){return this._loading}set loading(r){this._loading=r,r&&(this.status="loading")}get status(){return this._status}set status(r){const n=this._status!==r;this._status=r,n&&(this.emit(r),this.emit("status-update",r))}get twofa(){return this._twofa}set twofa(r){this._twofa=r,r&&(this.status="twofa",r.on("loading",()=>{this._twofa===r&&this.status==="twofa"&&(this.status="twofa-loading")}))}setOption(r,n){this.options[r]=n}toggleTestMode(){this.testMode=!this.testMode}configuredMeasureEvent(r,n){this.userConfig.isHeadless||Ln(r,n)}clearTimer(){clearTimeout(this.timer)}reopenSocket(r){this.setSocket(r.target.url)}setRules(r){const n=[];return r.required&&n.push({required:!0,message:"required"}),r.validation&&r.validation.forEach(a=>{switch(a.type){case"text":break;case"regex":n.push({pattern:a.value,message:"regex"});break}}),n}setSocket(r){this.socket=new WebSocket(r),this.socket.onclose=n=>this.reopenSocket(n),this.socket.onerror=()=>this.socketError(),this.socket.onmessage=n=>this.socketMessage(n),this.socket.onopen=()=>this.socketOpen()}reopenSocketAfterError(){if(!this.socketTimeoutAfterError){this.socketTimeoutAfterError=new Date().getTime()+12e4,this.setSocket(this.response.ws);const r=setInterval(()=>{this.isSocketOpen?clearInterval(r):new Date().getTime()<this.socketTimeoutAfterError?(this.socket.close(),this.setSocket(this.response.ws)):(clearInterval(r),this.socket.close(),this.loading=!1,this.emit("socket-error"),this.finalResponse="error")},2e3)}}socketClose(r){this.clearTimer(),this.socket.onclose=n=>{this.twofa=null,this.emit("socket-close",n),r&&r(this)},this.socket.close()}socketError(){this.isSocketOpen=!1,this.socketOpened?this.reopenSocketAfterError():(this.loading=!1,this.emit("socket-error"),this.finalResponse="error")}socketMessage(r){const n=JSON.parse(r.data);if(this.lastSocketMessage=n,this.clearTimer(),this.config.quickAnswer&&n.code===102){this.socketClose(()=>{this.finalResponse="success",this.loading=!1,this.twofa&&(this.twofa.loading=!1),this.emit("socket-quick-answer")}),this.configuredMeasureEvent("sync_success",{code:n.code,id_site:this.config.id_site});return}n.code===401&&this.configuredMeasureEvent("unauthorized",{id_site:this.config.id_site}),n.code===410&&(this.twofa=new wx({...n,id_site:this.config.id_site},this.httpService,!this.userConfig.isHeadless),this.emit("twofa",this.twofa),this.twofa.on("twofa-api-error",()=>{this.socketClose()})),this.emit("socket-message",n),this.startTimer(),n.code===411&&this.configuredMeasureEvent("twofa_timeout",{id_site:this.config.id_site}),(200<=n.code&&n.code<300||400<=n.code&&n.code<600&&n.code!==410)&&(n.code<300?(this.finalResponse="success",this.configuredMeasureEvent("sync_success",{code:n.code,id_site:this.config.id_site})):(this.finalResponse="error",this.configuredMeasureEvent("sync_error",{code:n.code,code_origin:"socket",id_site:this.config.id_site})),this.loading=!1,this.twofa&&(this.twofa.loading=!1),this.socketClose()),!(400<=n.code&&n.code<600&&n.code!==410||200<=n.code&&n.code<300)&&this.twofa&&n.code!==410&&(this.twofa.loading=!0,this.status="twofa-loading")}socketOpen(){this.isSocketOpen=this.socketOpened=!0,this.socketTimeoutAfterError=void 0}socketTimeout(){this.socketClose(()=>{this.finalResponse="error",this.loading=!1,this.twofa&&(this.twofa.loading=!1),this.emit("socket-timeout")})}spreadOptions(){return Object.keys(this.options).length?{options:{...this.options}}:{}}startTimer(){this.timer=setTimeout(()=>{this.socketTimeout()},this.userConfig.socketTimeoutTime)}}class d5e extends CL{constructor(r,n,a,i){super(r,n,i);kt(this,"data",{});kt(this,"rules",{});if(this.defaultParams=a,this.userConfig=i,r.credentials&&r.credentials.length)i.isHeadless||r.credentials.forEach(o=>{const l=o.name;Object.defineProperty(this.rules,l,{enumerable:!0,value:this.setRules(o)})});else throw new Error("Site credentials are required.")}get version(){return 1}connect(r){this.data={...r};const n={...this.defaultParams,id_site:this.config.id_site,credentials:{...this.data},...this.spreadOptions()};return this.config.request?Promise.resolve(n.credentials):(this.configuredMeasureEvent("sync",{id_site:this.config.id_site}),this.loading=!0,this.userConfig.saveCredential||(n.save_credential=this.userConfig.saveCredential),this.testMode&&(n.test=1),this.startTimer(),this.http.post(this.config.endpoint,n).then(a=>(this.response=a,this.emit("login-success"),this.setSocket(a.ws),a)).catch(a=>(this.configuredMeasureEvent("sync_error",{code:a.response?a.response.status:a.toString(),code_origin:"endpoint",id_site:this.config.id_site}),this.loading=!1,this.status="start",this.clearTimer(),Promise.reject(a))))}getFields(){return this.config.credentials}}class p5e extends CL{constructor(r,n,a,i){super(r,n,i);kt(this,"input",[]);this.defaultParams=a,this.userConfig=i,r.input.forEach(o=>{const l={rules:{},data:{}};o.fields.forEach(f=>{const c=f.name;Object.defineProperty(l.rules,c,{enumerable:!0,value:this.setRules(f)}),l.data[c]=null}),this.input.push(l)})}get version(){return 3}connect(r,n){this.updateData(r,n);const a=r||0,i={...this.defaultParams,id_site:this.config.id_site,input_name:this.config.input[r].name,input:{...this.input[a].data},...this.spreadOptions()};return this.config.request?Promise.resolve(i.input):(this.configuredMeasureEvent("sync",{id_site:this.config.id_site}),this.loading=!0,this.userConfig.saveCredential||(i.save_credential=this.userConfig.saveCredential),this.testMode&&(i.test=1),this.startTimer(),this.http.post(this.config.endpoint,i).then(o=>(this.response=o,this.emit("login-success"),this.setSocket(o.ws),o)).catch(o=>(this.configuredMeasureEvent("sync_error",{code:o.response?o.response.status:o.toString(),code_origin:"endpoint",id_site:this.config.id_site}),this.loading=!1,this.status="start",this.clearTimer(),Promise.reject(o))))}getFields(r){return this.config.input[r].fields}getOptions(){return this.config.input}updateData(r,n){this.input[r].data={...n}}}class TL extends gs.EventEmitter{constructor(r,n){super();kt(this,"http");kt(this,"httpService");this.token=r,this.config=n,this.httpService=n.http?new ML(r,{...n.http,widgetVersion:n.widgetVersion}):new ML(r,{widgetVersion:n.widgetVersion}),this.http=this.httpService.getInstance(),this.httpService.on("401",this.debounce401())}get defaultParams(){return this.config.defaultParams}set defaultParams(r){this.config.defaultParams=r}get quickAnswer(){return this.config.quickAnswer}getAccounts(r){if(!this.token)throw new Error("Token is required. Try calling first getToken()");return this.http.get("/v1/accounts",{params:{...this.config.defaultParams,...r}})}getCountries(){if(!this.token)throw new Error("Token is required. Try calling first getToken()");return this.http.get("/v1/catalogues/countries",{params:{...this.config.defaultParams}})}getHttpService(){return this.httpService}getOrganizationSites(r){if(!this.token)throw new Error("Token is required. Try calling first getToken()");return this.http.get("/v1/catalogues/organizations/sites",{params:{...this.config.defaultParams,...r}})}getOrganizationTypes(){if(!this.token)throw new Error("Token is required. Try calling first getToken()");return this.http.get("/v1/catalogues/site_organization_types",{params:{...this.config.defaultParams}})}getSite(r){if(!this.token)throw new Error("Token is required. Try calling first getToken()");return this.http.get(`/v1/catalogues/widget/sites/${r}`,{params:{...this.config.defaultParams}})}siteConnection(r){switch(r.version){case 3:return new p5e({...r,quickAnswer:this.config.quickAnswer},this.httpService,this.config.defaultParams,{isHeadless:this.config.isHeadless,saveCredential:this.config.saveCredential,socketTimeoutTime:this.config.socketTimeout});default:return new d5e({...r,quickAnswer:this.config.quickAnswer},this.httpService,this.config.defaultParams,{isHeadless:this.config.isHeadless,saveCredential:this.config.saveCredential,socketTimeoutTime:this.config.socketTimeout})}}strictMode({token:r,strict:n}){return this.token=r,Npe(n).then(({strictAuthorizationKey:a,strictBodyKey:i})=>DB({token:r},a).then(o=>(this.httpService.updateToken(o),kpe().then(({authorization:l})=>{const f={authorization:btoa(JSON.stringify(l.toJSON(!0)))};return $B(f,i).then(c=>this.updateStrictSession(r,o,c).then(()=>DB({token:r},l).then(d=>this.updateToken(d).then(()=>(this.httpService.updateToken(this.token,i),{jws:d,jwe:i})))))}))))}syncCredential(r){return new h5e(r,this,this.httpService,this.config.socketTimeout,this.config.isHeadless)}updateApiBaseUrl(r){this.http.defaults.baseURL=r,$a.defaults.baseURL=r}updateEnvironment(r){switch(r){case"production":this.http.defaults.baseURL="https://sync.paybook.com",$a.defaults.baseURL="https://sync.paybook.com";break;case"development":this.http.defaults.baseURL="https://api.syncfy.paybook.dev",$a.defaults.baseURL="https://api.syncfy.paybook.dev";break;default:this.http.defaults.baseURL="https://sync.paybook.com",$a.defaults.baseURL="https://sync.paybook.com";break}}updateToken(r){return new Promise(n=>{this.token!==r&&(this.token=r,this.httpService.updateToken(this.token)),n({token:r})})}debounce401(){return SL(200,()=>{this.emit("sync_401")})}updateStrictSession(r,n,a){return $a.put(`/v1/sessions/jwt/${r}`,{type:"jwt","payload/jwe":a},{headers:{Authorization:`Bearer ${n}`}})}}class Ex{constructor(t){kt(this,"callback");kt(this,"messages");this.messages=t}getMessages(){return this.messages}subscribe(t){this.callback=t}updateMessages(t){this.messages={...this.messages,...t},this.callback&&this.callback()}}const mBe="",v5e=["aria-label"],m5e={key:1},g5e=["aria-label"],y5e={key:0},b5e=wi(rt({__name:"DataWidget",props:{client:{},enableTestMode:{type:Boolean},entrypoint:{},internal:{},locale:{},navigation:{},refreshTokenFunction:{type:Function},strict:{},token:{}},emits:["tokenRefreshed"],setup(e,{expose:t,emit:r}){const n=e,a=wt(Ea),{t:i,locale:o}=bo({useScope:"global"}),{mobile:l}=ix(),f=Oe([]),c=Oe(null),d=Oe(null),v=Oe(!1),m=Oe(null),y=Oe(null),b=Oe(""),S=Oe(""),T=Oe(!0),C=Oe(!1),I=Oe(null),B=Oe([]),N=Oe(null),R=Oe(!1),P=Oe(null),D=Oe(null),$=Oe(!1);let U="https://s.paybook.com",K=null,M=`${Nd()}${n.strict?"-strict":""}`,s=null,h,p=[],g=null,_=null,w=null;const A=be(()=>T.value?!1:P.value?n.entrypoint.site&&n.navigation.oneSiteFlow?P.value==="twofa":P.value==="finish"?n.navigation.enableBackNavigation:P.value==="twofa"?n.navigation.enableTwofaBackNavigation:n.navigation.enableBackNavigation&&P.value==="start":!!N.value),E=be(()=>f.value.filter(_e=>(_e.id_country==="51ad44db3b8e77631200047d"||_e.id_country==="51ad44793b8e77631200027a")&&n.internal.plaidSites||ae(_e.id_country).length).sort((_e,pe)=>_e.name.localeCompare(pe.name))),u=be(()=>j(c.value,N.value)),x=be(()=>ae(c.value)),k=be(()=>se(c.value,N.value,I.value)),O=be(()=>({short:S.value,long:b.value})),q=be(()=>{let _e=[];return B.value&&B.value.forEach(pe=>{_e=[..._e,...pe.sites.map(Te=>({...Te,avatar:pe.avatar,cover:pe.cover,organizationSite:pe}))]}),_e}),Y=be(()=>v.value||C.value?"":R.value?i("accounts_selection.title"):P.value?P.value==="start"?i("common.header.login"):"":N.value?c.value&&N.value?i("common.header.select"):"":i("common.header.link"));dt(()=>n.locale,(_e,pe)=>{_e!==pe&&["es","en"].includes(_e)&&(o.value=_e)}),dt(()=>n.internal,(_e,pe)=>{if(w.defaultParams=_e.defaultHttpParams||{},w.defaultParams.locale=n.locale,_e.apiEnv!==pe.apiEnv)switch(w.updateEnvironment(_e.apiEnv),_e.apiEnv){case"production":U="https://s.paybook.com";break;case"development":U="https://s.paybook.dev";break;default:U="https://s.paybook.com";break}_e.apiBaseUrl!==pe.apiBaseUrl&&_e.apiBaseUrl&&w.updateApiBaseUrl(_e.apiBaseUrl),_e.assetsBaseUrl!==pe.assetsBaseUrl&&_e.assetsBaseUrl&&(U=_e.assetsBaseUrl),F()}),dt(()=>n.navigation.displayPersonalSites,()=>{F()}),dt(()=>n.navigation.displayBusinessSites,()=>{F()}),dt(S,_e=>{s&&h.updateMessages({short:_e})}),dt(b,_e=>{s&&h.updateMessages({long:_e})}),dt($,()=>{!$.value&&!s&&P.value&&P.value!=="start"&&P.value!=="finish"?(h=new Ex({short:b.value}),s=an.info({duration:0,message:Ot(un,{assetsPath:U,buttonDisabledStyle:n.navigation.formButtonsDisabledStyle,disableFormAutocomplete:n.navigation.disableFormAutocomplete,duration:0,enableBackNavigation:n.navigation.enableTwofaBackNavigation,item:g,messagesUpdater:h,rootEmit:a,selectClass:n.navigation.selectClass,showLogo:n.navigation.displayLogoImages,showPasswordStyle:n.navigation.formShowPasswordStyle,t:i,type:"info",onBack:()=>{a("back"),ie(),g=P.value=null,H(_,!1),$.value=!0},onError:_e=>{ne(_e)},onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),position:n.navigation.toastPosition,showClose:!1})):$.value&&s&&($.value=!1,an.error({duration:0,position:n.navigation.toastPosition,message:Ot(un,{duration:0,initMessage:i("common.process_running"),initTitle:i("common.error"),showLogo:!1,t:i,type:"error",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}})}))}),ur(()=>{Xt(()=>{a("dom-updated")})}),xh(()=>{Xt(()=>{a("dom-updated")})});function W(){["es","en"].includes(n.locale)&&(o.value=n.locale),U=n.internal.apiEnv?n.internal.apiEnv==="production"?"https://s.paybook.com":"https://s.paybook.dev":"https://s.paybook.com",n.internal.assetsBaseUrl&&(U=n.internal.assetsBaseUrl),n.strict?(de(),T.value=!0,setTimeout(()=>{w.strictMode({token:n.token,strict:n.strict}).then(()=>{F()})},400)):(de(),F())}function X(){Ln("close"),$.value=!1,(P.value==="start"||P.value==="finish")&&(P.value=g=null),a("closed")}function ie(){s&&(s.close(),s=null)}function ne(_e){const pe=V(_e);!n.navigation.displayErrorsInToast&&$?(m.value=i(`${pe}long_description`),y.value=i(`${pe}short_description`)):an.error({position:n.navigation.toastPosition,message:Ot(un,{displayLongDescription:n.navigation.displayLongDescription,duration:0,initLongMessage:i(`${pe}long_description`),initMessage:i(`${pe}short_description`),initTitle:i("common.error"),showLogo:!1,t:i,type:"error",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:0}),te(_e,pe)}const ce=SL(200,function(){if(v.value=!1,n.entrypoint.credential)return G(n.entrypoint.credential,!0);if(n.entrypoint.site&&n.navigation.oneSiteFlow)w.getSite(n.entrypoint.site).then(_e=>{if(a("loaded"),_e&&_e.length){const pe=_e[0].site_organization;H({..._e[0],avatar:pe.avatar,cover:pe.avatar,organizationSite:pe})}else z({response:{status:"site_not_found"}})}).catch(z).finally(()=>{T.value=!1});else{const _e={};I.value=null,(n.navigation.displayPersonalSites||n.navigation.displayBusinessSites)&&!(n.navigation.displayPersonalSites&&n.navigation.displayBusinessSites)&&(n.navigation.displayPersonalSites?_e.is_personal=1:_e.is_business=1);const pe=[w.getCountries(),w.getOrganizationTypes(),w.getOrganizationSites(_e)];return Promise.all(pe).then(Te=>{f.value=Te[0],p=Te[1],n.internal.plaidSites&&p.unshift({id_site_organization_type:"__internal__.plaidSites",label:"webapp_add_banks",name:"plaid"}),B.value=Te[2]}).then(()=>Xt().then(()=>{if(a("loaded"),me(),n.entrypoint.site){const Te=q.value.find(it=>it.id_site===n.entrypoint.site);return Te?H(Te):Promise.reject({response:{status:"site_not_found"}})}})).catch(z).finally(()=>{T.value=!1})}});function te(_e,pe){a("api-error",_e.response?_e.response.status:500,{longMessage:i(`${pe}real.long_description`),message:i(`${pe}real.short_description`),noInternet:!_e.response})}function Z(_e){a("socket-error",{longMessage:i(`socket.${_e}.long_description`),type:_e,message:i(`socket.${_e}.short_description`)})}function j(_e,pe){return(n.navigation.displaySiteOrganizations.length||n.navigation.hideSiteOrganizations.length?B.value.filter(Te=>{if(n.navigation.displaySiteOrganizations.length)return!!n.navigation.displaySiteOrganizations.find(it=>it===Te.name||it===Te.id_site_organization);if(n.navigation.hideSiteOrganizations.length)return!n.navigation.hideSiteOrganizations.find(it=>it===Te.name||it===Te.id_site_organization)}):B.value).filter(Te=>_e===Te.id_country&&pe===Te.id_site_organization_type&&se(_e,pe,Te.id_site_organization).length)}function ae(_e){return(n.navigation.displaySiteOrganizationTypes.length||n.navigation.hideSiteOrganizationTypes.length?p.filter(pe=>{if(n.navigation.displaySiteOrganizationTypes.length)return!!n.navigation.displaySiteOrganizationTypes.find(Te=>Te===pe.name||Te===pe.id_site_organization_type);if(n.navigation.hideSiteOrganizationTypes.length)return!n.navigation.hideSiteOrganizationTypes.find(Te=>Te===pe.name||Te===pe.id_site_organization_type)}):p).filter(pe=>(_e==="51ad44db3b8e77631200047d"||_e==="51ad44793b8e77631200027a")&&n.internal.plaidSites&&pe.id_site_organization_type==="__internal__.plaidSites"?!0:j(_e,pe.id_site_organization_type).length)}function se(_e,pe,Te){return(n.navigation.displaySites.length||n.navigation.hideSites.length?q.value.filter(it=>{if(n.navigation.displaySites.length)return!!n.navigation.displaySites.find(Me=>Me===it.name||Me===it.id_site);if(n.navigation.hideSites.length)return!n.navigation.hideSites.find(Me=>Me===it.name||Me===it.id_site)}):q.value).filter(it=>_e===it.organizationSite.id_country&&pe===it.organizationSite.id_site_organization_type&&Te===it.organizationSite.id_site_organization)}function V(_e){return typeof _e=="string"?_e:_e.response&&_e.response.data&&_e.response.data.message==="Credential error, please consider updating credential password"?"api_errors.credential_error.":`api_errors.${_e.response?_e.response.status?_e.response.status:500:"no_internet"}.`}function L(){if(!P.value)I.value?Q():(a("back"),N.value=null);else if(P.value==="finish")re();else if(P.value==="twofa")Se();else return Ee()}function F(){T.value=!0,ce()}function z(_e){const pe=V(_e);v.value=i(`${pe}short_description`),!_e.response&&n.navigation.displayErrorsInToast&&an.error({position:n.navigation.toastPosition,message:Ot(un,{duration:0,initLongMessage:i(`${pe}long_description`),initMessage:i(`${pe}short_description`),showLogo:!1,t:i,type:"error",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:0}),a("loaded"),te(_e,pe)}function le(){Ln("open"),T.value||me(),$.value=!0,a("opened")}function Q(){a("back"),I.value=null}function re(){P.value=I.value=g=null}function ue(_e){a("organization-selected",_e),Ln("open_site_organization",{id_site_organization:_e.id_site_organization}),I.value=_e.id_site_organization,Xt(()=>{k.value.length===1&&H(k.value[0])})}function H(_e,pe=!0){let Te;pe&&(a("organization-site-selected",_e),Ln("open_site",{id_site:_e.id_site})),!g||!g.loading?(_=_e,Te=g=w.siteConnection(_e),P.value="start",y.value=null,m.value=null,g.on("login-success",()=>{$.value&&n.navigation.displayStatusInToast&&X()}),g.on("socket-close",ie),g.on("socket-error",()=>{n.navigation.displayErrorsInToast?an.error({position:n.navigation.toastPosition,message:Ot(un,{assetsPath:U,duration:0,hideForm:!0,initLongMessage:i("socket.error.long_description"),initMessage:i("socket.error.short_description"),item:g,showLogo:n.navigation.displayLogoImages,t:i,type:"error",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:0}):(m.value=i("socket.error.long_description"),y.value=i("socket.error.short_description")),Z("error")}),g.on("socket-message",it=>{const Me=`socket.message.${it.code?it.code:500}.`,Ne=i(`${Me}short_description`),mt=i(`${Me}long_description`);switch(!0){case(400<=it.code&&it.code<600&&it.code!==410):ie(),y.value=Ne,m.value=mt,a("error",g.response,{code:it.code,longMessage:mt,message:Ne}),$.value?n.navigation.returnToSiteFormOnUserError!==!1&&(n.navigation.returnToSiteFormOnUserError===!0&&[401,403,411].includes(it.code)||n.navigation.returnToSiteFormOnUserError!==!0&&n.navigation.returnToSiteFormOnUserError.includes(it.code))&&(P.value=g=null,H(_,!1),D.value={short:Ne,long:mt}):(an.error({position:n.navigation.toastPosition,message:Ot(un,{assetsPath:U,displayLongDescription:n.navigation.displayLongDescription,duration:0,hideForm:!0,initLongMessage:mt,initMessage:Ne,item:g,showLogo:n.navigation.displayLogoImages,t:i,type:"error",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:0}),re(),me());break;case(200<=it.code&&it.code<300):ie(),y.value=Ne,m.value=mt,a("success",g.response),$.value||(an.success({position:n.navigation.toastPosition,message:Ot(un,{assetsPath:U,displayLongDescription:n.navigation.displayLongDescription,duration:n.navigation.toastDuration,hideForm:!0,initLongMessage:mt,initMessage:Ne,item:g,showLogo:n.navigation.displayLogoImages,t:i,type:"success",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:n.navigation.toastDuration}),re(),me());break;default:S.value=Ne,b.value=mt}a("status",it)}),g.on("socket-quick-answer",()=>{y.value=i("socket.quick_answer.short_description"),m.value=i("socket.quick_answer.long_description"),a("success",g.response),ie(),$.value||(an.success({position:n.navigation.toastPosition,message:Ot(un,{assetsPath:U,displayLongDescription:n.navigation.displayLongDescription,duration:n.navigation.toastDuration,hideForm:!0,initLongMessage:i("socket.quick_answer.long_description"),initMessage:i("socket.quick_answer.short_description"),item:g,showLogo:n.navigation.displayLogoImages,t:i,type:"success",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:n.navigation.toastDuration}),re(),me())}),g.on("socket-timeout",()=>{y.value=i("socket.timeout.short_description"),m.value=i("socket.timeout.long_description"),a("error",g.response),$.value||(an.error({position:n.navigation.toastPosition,message:Ot(un,{assetsPath:U,displayLongDescription:n.navigation.displayLongDescription,duration:0,hideForm:!0,initLongMessage:i("socket.timeout.long_description"),initMessage:i("socket.timeout.short_description"),item:g,showLogo:n.navigation.displayLogoImages,t:i,type:"error",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:0}),re(),me()),Z("timeout")}),g.on("status-update",it=>{g===Te&&(P.value=it)}),g.on("twofa",()=>{S.value=i("twofa.waiting")})):an.error({position:n.navigation.toastPosition,message:Ot(un,{duration:0,initMessage:i("common.process_running"),initTitle:i("common.error"),showLogo:!1,t:i,type:"error",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:0})}function G(_e,pe=!1){if(Ln("open_credential",{id_credential:_e}),!K||!K.loading){let Te=new Ex({short:i("credential.search.title")}),it;n.navigation.displayCredentialInModal?(a("opened"),d.value={loaderType:"loading",loading:!0,messages:{short:i("credential.search.title"),long:i("credential.search.message")}}):it=an.info({showClose:!1,position:n.navigation.toastPosition,duration:0,message:Ot(un,{assetsPath:U,duration:0,initTitle:i("credential.search.title"),messagesUpdater:Te,showLogo:!1,t:i,type:"info",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}})}),K=w.syncCredential(_e),K.on("error",()=>{const{code:Me}=K.error,Ne=K.error.response?V(K.error):`socket.message.${Me||500}.`,mt=i(`${Ne}short_description`),Re=i(`${Ne}long_description`);n.navigation.displayCredentialInModal?d.value={...d.value,loaderType:"error",messages:{short:mt,long:Re}}:(K.error.response?it.close():ie(),an.error({position:n.navigation.toastPosition,message:Ot(un,{assetsPath:U,displayLongDescription:n.navigation.displayLongDescription,duration:0,hideForm:!0,initLongMessage:Re,initMessage:mt,item:K,showLogo:n.navigation.displayLogoImages,t:i,type:"error",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:0})),K.error.response?te(K.error,Ne):a("error",K.response,{code:Me,longMessage:Re,message:mt})}),K.on("found",()=>{pe&&a("loaded"),n.navigation.displayCredentialInModal?d.value={...d.value,avatar:n.navigation.displayLogoImages?`${U}${K.config.avatar}`:void 0,messages:{short:i("credential.found.title"),long:i("credential.found.message")}}:Te.updateMessages({short:i("credential.found.message")})}),K.on("loading",()=>{a("updated",K.response),n.navigation.displayCredentialInModal?d.value={...d.value,messages:{short:i("credential.loading.title"),long:i("credential.loading.message")}}:(it.close(),h=new Ex({}),s=an.info({showClose:!1,position:n.navigation.toastPosition,duration:0,message:Ot(un,{assetsPath:U,buttonDisabledStyle:n.navigation.formButtonsDisabledStyle,disableFormAutocomplete:n.navigation.disableFormAutocomplete,duration:0,item:K,messagesUpdater:h,rootEmit:a,selectClass:n.navigation.selectClass,showLogo:n.navigation.displayLogoImages,showPasswordStyle:n.navigation.formShowPasswordStyle,t:i,type:"info",onError:Me=>{ie(),ne(Me)},onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}})}))}),K.on("not-found",()=>{const Me=V(K.error);pe&&a("loaded"),n.navigation.displayCredentialInModal?d.value={...d.value,loaderType:"error",messages:{short:i(`${Me}short_description`),long:i(`${Me}long_description`)}}:(it.close(),an.error({position:n.navigation.toastPosition,message:Ot(un,{assetsPath:U,displayLongDescription:n.navigation.displayLongDescription,duration:0,hideForm:!0,initLongMessage:i(`${Me}long_description`),initMessage:i(`${Me}short_description`),t:i,type:"error",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:0})),te(K.error,Me)}),K.on("socket-error",()=>{n.navigation.displayCredentialInModal?d.value={...d.value,loaderType:"error",messages:{short:i("socket.error.short_description"),long:i("socket.error.long_description")}}:(ie(),an.error({position:n.navigation.toastPosition,message:Ot(un,{assetsPath:U,displayLongDescription:n.navigation.displayLongDescription,duration:0,initLongMessage:i("socket.error.long_description"),initMessage:i("socket.error.short_description"),item:K,hideForm:!0,showLogo:n.navigation.displayLogoImages,t:i,type:"error",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:0})),Z("error")}),K.on("socket-message",Me=>{const Ne=`socket.message.${Me.code?Me.code:500}.`,mt=i(`${Ne}short_description`),Re=i(`${Ne}long_description`);n.navigation.displayCredentialInModal?d.value={...d.value,messages:{short:mt,long:Re}}:h.updateMessages({long:Re,short:mt}),a("status",Me)}),K.on("socket-quick-answer",()=>{y.value=i("socket.quick_answer.short_description"),m.value=i("socket.quick_answer.long_description"),a("success",K.response),n.navigation.displayCredentialInModal?d.value={...d.value,loaderType:"success",messages:{short:i("socket.quick_answer.short_description"),long:i("socket.quick_answer.long_description")}}:(ie(),an.success({position:n.navigation.toastPosition,message:Ot(un,{assetsPath:U,displayLongDescription:n.navigation.displayLongDescription,duration:n.navigation.toastDuration,initLongMessage:i("socket.quick_answer.long_description"),initMessage:i("socket.quick_answer.short_description"),item:K,hideForm:!0,showLogo:n.navigation.displayLogoImages,t:i,type:"success",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:n.navigation.toastDuration}))}),K.on("socket-timeout",()=>{n.navigation.displayCredentialInModal?d.value={...d.value,loaderType:"error",messages:{short:i("socket.timeout.short_description"),long:i("socket.timeout.long_description")}}:(ie(),an.error({position:n.navigation.toastPosition,message:Ot(un,{assetsPath:U,displayLongDescription:n.navigation.displayLongDescription,duration:0,hideForm:!0,initLongMessage:i("socket.timeout.long_description"),initMessage:i("socket.timeout.short_description"),item:K,showLogo:n.navigation.displayLogoImages,t:i,type:"error",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:0})),a("error",K.response),Z("timeout")}),K.on("success",()=>{const{code:Me}=K.message,Ne=`socket.message.${Me||500}.`,mt=i(`${Ne}short_description`),Re=i(`${Ne}long_description`);n.navigation.displayCredentialInModal?d.value={...d.value,loaderType:"success",messages:{short:mt,long:Re}}:(ie(),an.success({position:n.navigation.toastPosition,message:Ot(un,{assetsPath:U,displayLongDescription:n.navigation.displayLongDescription,duration:n.navigation.toastDuration,hideForm:!0,initLongMessage:Re,initMessage:mt,item:K,showLogo:n.navigation.displayLogoImages,t:i,type:"success",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:n.navigation.toastDuration})),a("success",K.response)}),K.on("twofa",()=>{d.value={...d.value,loading:!1}}),K.on("twofa-api-error",()=>{n.navigation.displayCredentialInModal?d.value={...d.value,loaderType:"error",messages:{short:i("credential.api_error.title"),long:i("credential.api_error.message")}}:ie()}),K.on("twofa-loading",()=>{d.value={...d.value,loading:!0,loaderType:"loading",messages:{short:i("twofa.waiting"),long:i("twofa.waiting")}}})}else an.error({position:n.navigation.toastPosition,message:Ot(un,{duration:0,initMessage:i("common.process_running"),initTitle:i("common.error"),showLogo:!1,t:i,type:"error",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:0})}function me(){if(v.value)return;let _e;n.entrypoint.country&&(_e=E.value.find(pe=>pe.code===n.entrypoint.country||pe.id_country===n.entrypoint.country)),E.value.length?(c.value=_e?_e.id_country:E.value[0].id_country,Ln("open_country",{id_country:c.value}),oe(),C.value=!1):C.value=!0}function oe(){if(n.entrypoint.siteOrganizationType){const _e=x.value.find(pe=>pe.id_site_organization_type===n.entrypoint.siteOrganizationType);if(_e){const pe=_e.id_site_organization_type;Ln("open_site_organization_type",{id_site_organization_type:pe}),N.value=pe}}}function de(){w=new TL(n.token,{http:{baseURL:n.internal.apiBaseUrl?n.internal.apiBaseUrl:n.internal.apiEnv?n.internal.apiEnv==="production"?"https://sync.paybook.com":"https://api.syncfy.paybook.dev":"https://sync.paybook.com",isStrict:!!n.strict},defaultParams:{locale:n.locale,...n.internal.defaultHttpParams},isHeadless:!1,quickAnswer:n.navigation.quickAnswer,saveCredential:n.navigation.saveCredential,socketTimeout:n.navigation.socketTimeout,widgetVersion:M});let _e=null;w.on("sync_401",()=>{n.refreshTokenFunction&&!_e&&(_e=an.error({position:n.navigation.toastPosition,showClose:!1,message:Ot(DTe,{initTitle:i("common.unauthorized"),initMessage:i("common.unauthorized_message"),refreshTokenFunction:n.refreshTokenFunction,t:i,onClosed:()=>{_e=null},onCloseNotification:()=>{_e.close()},onRefreshToken:({token:pe,strict:Te,resolve:it})=>{r("tokenRefreshed",pe),Xe(pe,Te).then(()=>(_e.close(),an.success({position:n.navigation.toastPosition,message:Ot(un,{displayLongDescription:!1,duration:n.navigation.toastDuration,initMessage:i("common.session_refreshed_message"),initTitle:i("common.session_refreshed"),showLogo:!1,t:i,type:"success",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:n.navigation.toastDuration}),F(),it(null)))},onRefreshTokenError:()=>{an.error({position:n.navigation.toastPosition,message:Ot(un,{displayLongDescription:!1,duration:0,initMessage:i("common.session_error"),initTitle:i("common.error"),showLogo:!1,t:i,type:"error",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:0})}}),duration:0})),a("401")})}function Xe(_e,pe){return pe?w.strictMode({token:_e,strict:pe}):w.updateToken(_e)}function Ee(){a("back"),Ln("close_site",{id_site:g.config.id_site}),P.value=g=null,D.value=null,k.value.length===1&&(I.value=null)}function Se(_e=!0){_e&&a("back"),P.value=g=null,H(_,!1)}return W(),t({close:X,open:le,setCredential:G,setToken:Xe}),(_e,pe)=>(he(),ke(Ct,null,[Et(CTe,{visible:$.value,"onUpdate:visible":pe[5]||(pe[5]=Te=>$.value=Te),mobile:J(l)},{default:st(()=>[$.value?(he(),ke("div",{key:0,class:Ce([_e.$style.container,{[_e.$style["is-mobile"]]:J(l)}])},[ze("div",{class:Ce(_e.$style["widget-header"])},[A.value?(he(),ke("button",{key:0,"aria-label":J(i)("common.back"),class:Ce(_e.$style["widget-back-button"]),onClick:L},[Et(ol,{icon:"back"})],10,v5e)):(he(),ke("span",m5e)),ze("h1",null,lt(P.value&&n.entrypoint.site?J(i)("common.update_title"):Y.value),1),ze("button",{class:Ce(_e.$style["widget-close-button"]),"aria-label":J(i)("common.close"),onClick:X},[Et(ol,{icon:"close"})],10,g5e)],2),ze("div",{class:Ce(_e.$style["widget-content"])},[d.value?(he(),ke("div",{key:0,class:Ce([[_e.$style["credential-content"]],{[_e.$style["credential-twofa"]]:!d.value.loading}])},[d.value.loading?(he(),nt(Nf,{key:0,avatar:d.value.avatar,grow:d.value.loaderType==="loading",message:d.value.messages.long,size:"large",title:d.value.messages.short,type:d.value.loaderType},null,8,["avatar","grow","message","title","type"])):J(K).twofa?(he(),nt(nx,{key:1,avatar:d.value.avatar,"button-disabled-style":n.navigation.formButtonsDisabledStyle,cover:`${J(U)}${J(K).config.cover}`,"disable-form-autocomplete":n.navigation.disableFormAutocomplete,"enable-back-navigation":!1,"in-notification":!1,"loader-message":O.value,"select-class":n.navigation.selectClass,"show-logo":n.navigation.displayLogoImages,"show-password-style":n.navigation.formShowPasswordStyle,"site-name":J(K).config.name,twofa:J(K).twofa},null,8,["avatar","button-disabled-style","cover","disable-form-autocomplete","loader-message","select-class","show-logo","show-password-style","site-name","twofa"])):Ye("",!0),d.value.loaderType!=="loading"?(he(),ke("button",{key:2,class:"pb-w-sync_primary-button",onClick:X},lt(J(i)("common.finish")),1)):Ye("",!0)],2)):(he(),ke(Ct,{key:1},[T.value?(he(),nt(Nf,{key:0})):Ye("",!0),!T.value&&!v.value&&!C.value?(he(),ke(Ct,{key:1},[P.value?(he(),ke(Ct,{key:1},[P.value==="start"||P.value==="loading"?(he(),nt(ETe,{key:0,"assets-path":J(U),"button-disabled-style":n.navigation.formButtonsDisabledStyle,"disable-form-autocomplete":n.navigation.disableFormAutocomplete,"error-message":D.value,"loader-message":O.value,"select-class":n.navigation.selectClass,"show-logo":n.navigation.displayLogoImages,"show-password-style":n.navigation.formShowPasswordStyle,site:J(g),"test-mode":_e.enableTestMode,onBack:Ee,onError:ne,onSuccess:pe[2]||(pe[2]=()=>{S.value=J(i)("site.login.success")}),onValid:pe[3]||(pe[3]=()=>{S.value=J(i)("site.login.authenticating"),D.value=null})},null,8,["assets-path","button-disabled-style","disable-form-autocomplete","error-message","loader-message","select-class","show-logo","show-password-style","site","test-mode"])):Ye("",!0),P.value==="twofa"||P.value==="twofa-loading"?(he(),nt(nx,{key:1,avatar:`${J(U)}${J(g).config.avatar}`,"button-disabled-style":n.navigation.formButtonsDisabledStyle,cover:`${J(U)}${J(g).config.cover}`,"disable-form-autocomplete":n.navigation.disableFormAutocomplete,"enable-back-navigation":n.navigation.enableTwofaBackNavigation,"in-notification":!1,"loader-message":O.value,"select-class":n.navigation.selectClass,"show-logo":n.navigation.displayLogoImages,"show-password-style":n.navigation.formShowPasswordStyle,"site-name":J(g).config.name,twofa:J(g).twofa,onBack:Se,onError:ne},null,8,["avatar","button-disabled-style","cover","disable-form-autocomplete","enable-back-navigation","loader-message","select-class","show-logo","show-password-style","site-name","twofa"])):Ye("",!0),P.value==="finish"?(he(),ke(Ct,{key:2},[R.value?(he(),nt(rTe,{key:0,avatar:n.navigation.displayLogoImages?`${J(U)}${J(g).config.avatar}`:void 0,"button-disabled-style":n.navigation.formButtonsDisabledStyle,client:n.client,credential:J(g).response.id_credential,"disable-form-autocomplete":n.navigation.disableFormAutocomplete,"select-class":n.navigation.selectClass,sync:J(w),onDone:X},null,8,["avatar","button-disabled-style","client","credential","disable-form-autocomplete","select-class","sync"])):(he(),nt(nTe,{key:1,avatar:`${J(U)}${J(g).config.avatar}`,"display-accounts-selection":n.navigation.displayAccountsSelection,"long-message":m.value,message:y.value,"one-site-flow":n.navigation.oneSiteFlow&&!!n.entrypoint.site,"show-logo":n.navigation.displayLogoImages,type:J(g).finalResponse,onAddOther:re,onSelectAccounts:pe[4]||(pe[4]=()=>{R.value=!0})},null,8,["avatar","display-accounts-selection","long-message","message","one-site-flow","show-logo","type"]))],64)):Ye("",!0)],64)):(he(),ke("div",y5e,[N.value?Ye("",!0):(he(),nt(fTe,{key:0,"country-id":c.value,"onUpdate:countryId":pe[0]||(pe[0]=Te=>c.value=Te),"organization-type-id":N.value,"onUpdate:organizationTypeId":pe[1]||(pe[1]=Te=>N.value=Te),"filtered-countries":E.value,"filtered-organization-types":x.value,"select-class":n.navigation.selectClass,"show-countries":!n.navigation.hideSelectCountry},null,8,["country-id","organization-type-id","filtered-countries","filtered-organization-types","select-class","show-countries"])),c.value&&N.value&&!I.value?(he(),nt(dTe,{key:1,"assets-path":J(U),items:u.value,"show-logo":n.navigation.displayLogoImages,"show-plaid-sites-button":n.internal.plaidSites&&N.value==="__internal__.plaidSites",onSelect:ue},null,8,["assets-path","items","show-logo","show-plaid-sites-button"])):Ye("",!0),c.value&&N.value&&I.value?(he(),nt(MTe,{key:2,"assets-path":J(U),items:k.value,organization:u.value.find(Te=>Te.id_site_organization===I.value),"show-logo":n.navigation.displayLogoImages,onSelect:H},null,8,["assets-path","items","organization","show-logo"])):Ye("",!0)]))],64)):Ye("",!0),v.value?(he(),ke("div",{key:2,class:Ce(_e.$style["widget-data-error"])},[ze("p",null,lt(v.value.length?v.value:J(i)("common.data_error")),1),ze("button",{class:"pb-w-sync_primary-button",onClick:F},lt(J(i)("common.retry")),1)],2)):Ye("",!0),C.value?(he(),ke("div",{key:3,class:Ce(_e.$style["widget-data-error"])},[ze("p",null,lt(J(i)("common.no_filtered_data")),1),ze("button",{class:"pb-w-sync_primary-button",onClick:X},lt(J(i)("common.close")),1)],2)):Ye("",!0)],64)),!T.value&&!v.value&&!C.value||d.value?(he(),ke("div",{key:2,class:Ce(_e.$style["security-banner"])},[ze("p",null,lt(J(i)("common.security_banner_title")),1),ze("p",null,lt(J(i)("common.security_banner_content")),1)],2)):Ye("",!0)],2)],2)):Ye("",!0)]),_:1},8,["visible","mobile"]),ze("div",{class:Ce(_e.$style["widget-version"])},lt(J(M)),3)],64))}}),[["__cssModules",{$style:{container:"pb-w-sync_container","credential-content":"pb-w-sync_credential-content","credential-twofa":"pb-w-sync_credential-twofa","is-mobile":"pb-w-sync_is-mobile","security-banner":"pb-w-sync_security-banner","widget-back-button":"pb-w-sync_widget-back-button","widget-close-button":"pb-w-sync_widget-close-button","widget-content":"pb-w-sync_widget-content","widget-data-error":"pb-w-sync_widget-data-error","widget-header":"pb-w-sync_widget-header","widget-version":"pb-w-sync_widget-version"}}]]),_5e=rt({__name:"App",props:{config:{default:()=>({})},enableTestMode:{type:Boolean,default:!1},refreshTokenFunction:{type:Function,default:void 0},strict:{default:void 0},token:{}},setup(e,{expose:t}){const r=e,n=Oe(null),{t:a}=bo();sn(mw,a);const i={client:{},locale:"en",entrypoint:{country:"MX"},navigation:{disableFormAutocomplete:!1,displayAccountsSelection:!1,displayBusinessSites:!0,displayCredentialInModal:!1,displayErrorsInToast:!0,displayLogoImages:!0,displayLongDescription:!1,displayPersonalSites:!0,displaySiteOrganizations:[],displaySiteOrganizationTypes:[],displaySites:[],displayStatusInToast:!1,enableBackNavigation:!0,enableTwofaBackNavigation:!1,formButtonsDisabledStyle:!1,formShowPasswordStyle:"icon",hideSelectCountry:!1,hideSiteOrganizations:[],hideSiteOrganizationTypes:[],hideSites:[],oneSiteFlow:!1,quickAnswer:!1,returnToSiteFormOnUserError:!1,saveCredential:!0,selectClass:"",socketTimeout:24e4,toastDuration:5e3,toastPosition:"top-right"},__internal__:{apiBaseUrl:null,apiEnv:null,assetsBaseUrl:null,plaidSites:!1,defaultHttpParams:{}}},o=vn({client:{...i.client,...b(r.config.client)},enableTestMode:r.enableTestMode,entrypoint:{...i.entrypoint,...b(r.config.entrypoint)},internal:{...i.__internal__,...b(r.config.__internal__)},locale:r.config.locale||i.locale,navigation:{...i.navigation,...b(r.config.navigation)},refreshTokenFunction:r.refreshTokenFunction,strict:r.strict,token:r.token,onTokenRefreshed:S=>{o.token=S}});function l(){n.value.close()}function f(){Xt(()=>{n.value.open()})}function c(S={}){try{zg.validateSync(S)}catch(T){if(T.name==="ValidationError")throw new Error(`ValidationError: ${T.message}`)}o.client={...i.client,...b(S.client)},o.entrypoint={...i.entrypoint,...b(S.entrypoint)},o.internal={...i.__internal__,...b(S.__internal__)},o.locale=S.locale||i.locale,o.navigation={...i.navigation,...b(S.navigation)}}function d(S){n.value.setCredential&&n.value.setCredential(S)}function v(S){o.entrypoint={...o.entrypoint,site:S},f()}function m(S,T){return n.value.setToken(S,T)}function y(S={}){try{zg.validateSync(S)}catch(T){if(T.name==="ValidationError")throw new Error(`ValidationError: ${T.message}`)}o.client={...o.client,...b(S.client)},o.entrypoint={...o.entrypoint,...b(S.entrypoint)},o.internal={...o.internal,...b(S.__internal__)},o.locale=S.locale||o.locale,o.navigation={...o.navigation,...b(S.navigation)}}function b(S={}){const T={...S};return Object.keys(T).forEach(C=>{T[C]===void 0&&delete T[C]}),T}return t({close:l,open:f,setConfig:c,setEntrypointCredential:d,setEntrypointSite:v,setToken:m,upsertConfig:y}),(S,T)=>(he(),nt(J(D8e),{locale:o.locale==="es"?J(RCe):J(OCe)},{default:st(()=>[Et(b5e,sa(o,{ref_key:"widgetComponent",ref:n}),null,16)]),_:1},8,["locale"]))}});function sl(e){return e||(e={}),{locale:e.locale?e.locale:"en",quickAnswer:!!e.quickAnswer,socketTimeout:e.socketTimeout||24e4}}function ll(e,t){return new Promise(n=>{const a=new TL(e.token,{http:{baseURL:"https://sync.paybook.com",isStrict:!!e.strict},defaultParams:{locale:t.locale},isHeadless:!0,quickAnswer:t.quickAnswer,socketTimeout:t.socketTimeout,widgetVersion:`${Nd()}-headless`});e.strict?a.strictMode({token:e.token,strict:e.strict}).then(()=>{n(a)}):n(a)})}function w5e(e,t,r){return new Promise((a,i)=>{const o=sl(r);ll(e,o).then(l=>{l.getAccounts({id_credential:t}).then(f=>{a(f)}).catch(f=>{i(f)})})})}function E5e(e,t){return new Promise((n,a)=>{const i=sl(t);ll(e,i).then(o=>{o.getCountries().then(l=>{n(l)}).catch(l=>{a(l)})})})}function x5e(e,t={},r){return new Promise((a,i)=>{const o=sl(r);ll(e,o).then(l=>{l.getOrganizationSites(t).then(f=>{a(f)}).catch(f=>{i(f)})})})}function S5e(e,t){return new Promise((n,a)=>{const i=sl(t);ll(e,i).then(o=>{o.getOrganizationTypes().then(l=>{n(l)}).catch(l=>{a(l)})})})}function M5e(e,t,r){return new Promise((a,i)=>{const o=sl(r);ll(e,o).then(l=>{l.getSite(t).then(f=>{a(f[0])}).catch(f=>{i(f)})})})}function C5e(e,t,r){return new Promise(a=>{const i=sl(r);ll(e,i).then(o=>{a(o.siteConnection(t))})})}function T5e(e,t,r){return new Promise(a=>{const i=sl(r);ll(e,i).then(o=>{a(o.syncCredential(t))})})}function A5e(e,t,r,n){return new Promise(i=>{const o=sl(n);ll(e,o).then(l=>{i(new wx({...t,id_site:r},l.getHttpService(),!1))})})}const I5e={getAccounts:w5e,getCountries:E5e,getOrganizationSites:x5e,getOrganizationTypes:S5e,getSite:M5e,siteConnection:C5e,syncCredential:T5e,twofa:A5e},wBe="";$U();class xx{constructor(t){const r=new Lpe({accessToken:"2d928ea9aa674c6ea84dbf6f3901a403",captureUncaught:!1,captureUnhandledRejections:!1,enabled:!0,environment:"production",payload:{code_version:Nd()}});let n;if(typeof t=="string")n={token:t};else if(typeof t=="object")n=t;else throw new Error("Invalid params type. Params must be either string or object.");try{Cz.validateSync(n)}catch(d){if(d.name==="ValidationError")throw new Error(`ValidationError: ${d.message}`)}Ln("instantiation");const a=aN(_5e,{config:n.config,enableTestMode:n.enableTestMode,refreshTokenFunction:n.refreshTokenFunction,strict:n.strict,token:n.token}),i=zye({availableLocales:["en","es"],fallbackLocale:"en",legacy:!1,locale:"en",messages:{en:pa,es:Ei}});a.use(i),a.use(s1e),a.config.errorHandler=d=>{throw r.error(d),d};const o=[];function l(d,v){o.push({callback:v,e:d})}function f(d,...v){o.forEach(({callback:m,e:y})=>{d===y&&m(...v)})}a.provide(Ea,f);const c=a.mount(n.element||"#widget");return{on:l,close:c.close,open:c.open,setConfig:c.setConfig,setEntrypointCredential:c.setEntrypointCredential,setEntrypointSite:c.setEntrypointSite,setToken:c.setToken,upsertConfig:c.upsertConfig}}static getVersion(){return Nd()}}return kt(xx,"headless",I5e),window.SyncfyWidget=xx,xx});
869
+ `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Rf(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:i}=r;n!==void 0&&Xm.assertOptions(n,{silentJSONParsing:xo.transitional(xo.boolean),forcedJSONParsing:xo.transitional(xo.boolean),clarifyTimeoutError:xo.transitional(xo.boolean)},!1),a!=null&&(Ve.isFunction(a)?r.paramsSerializer={serialize:a}:Xm.assertOptions(a,{encode:xo.function,serialize:xo.function},!0)),Xm.assertOptions(r,{baseUrl:xo.spelling("baseURL"),withXsrfToken:xo.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=i&&Ve.merge(i.common,i[r.method]);i&&Ve.forEach(["delete","get","head","post","put","patch","common"],b=>{delete i[b]}),r.headers=Da.concat(o,i);const l=[];let f=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(r)===!1||(f=f&&S.synchronous,l.unshift(S.fulfilled,S.rejected))});const c=[];this.interceptors.response.forEach(function(S){c.push(S.fulfilled,S.rejected)});let d,v=0,m;if(!f){const b=[_L.bind(this),void 0];for(b.unshift.apply(b,l),b.push.apply(b,c),m=b.length,d=Promise.resolve(r);v<m;)d=d.then(b[v++],b[v++]);return d}m=l.length;let y=r;for(v=0;v<m;){const b=l[v++],S=l[v++];try{y=b(y)}catch(T){S.call(this,T);break}}try{d=_L.call(this,y)}catch(b){return Promise.reject(b)}for(v=0,m=c.length;v<m;)d=d.then(c[v++],c[v++]);return d}getUri(t){t=Rf(this.defaults,t);const r=cL(t.baseURL,t.url);return rL(r,t.params,t.paramsSerializer)}}Ve.forEach(["delete","get","head","options"],function(t){Qm.prototype[t]=function(r,n){return this.request(Rf(n||{},{method:t,url:r,data:(n||{}).data}))}}),Ve.forEach(["post","put","patch"],function(t){function r(n){return function(i,o,l){return this.request(Rf(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Qm.prototype[t]=r(),Qm.prototype[t+"Form"]=r(!0)});const eg=Qm;class bx{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(a=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](a);n._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(l=>{n.subscribe(l),i=l}).then(a);return o.cancel=function(){n.unsubscribe(i)},o},t(function(i,o,l){n.reason||(n.reason=new sc(i,o,l),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new bx(function(a){t=a}),cancel:t}}}const s5e=bx;function l5e(e){return function(r){return e.apply(null,r)}}function f5e(e){return Ve.isObject(e)&&e.isAxiosError===!0}const _x={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(_x).forEach(([e,t])=>{_x[t]=e});const u5e=_x;function xL(e){const t=new eg(e),r=UF(eg.prototype.request,t);return Ve.extend(r,eg.prototype,t,{allOwnKeys:!0}),Ve.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return xL(Rf(e,a))},r}const dn=xL(dx);dn.Axios=eg,dn.CanceledError=sc,dn.CancelToken=s5e,dn.isCancel=sL,dn.VERSION=wL,dn.toFormData=jm,dn.AxiosError=Ft,dn.Cancel=dn.CanceledError,dn.all=function(t){return Promise.all(t)},dn.spread=l5e,dn.isAxiosError=f5e,dn.mergeConfig=Rf,dn.AxiosHeaders=Da,dn.formToJSON=e=>aL(Ve.isHTMLForm(e)?new FormData(e):e),dn.getAdapter=bL.getAdapter,dn.HttpStatusCode=u5e,dn.default=dn;const $a=dn;function c5e(e,t,r){var n=r||{},a=n.noTrailing,i=a===void 0?!1:a,o=n.noLeading,l=o===void 0?!1:o,f=n.debounceMode,c=f===void 0?void 0:f,d,v=!1,m=0;function y(){d&&clearTimeout(d)}function b(T){var C=T||{},I=C.upcomingOnly,B=I===void 0?!1:I;y(),v=!B}function S(){for(var T=arguments.length,C=new Array(T),I=0;I<T;I++)C[I]=arguments[I];var B=this,N=Date.now()-m;if(v)return;function R(){m=Date.now(),t.apply(B,C)}function P(){d=void 0}!l&&c&&!d&&R(),y(),c===void 0&&N>e?l?(m=Date.now(),i||(d=setTimeout(c?P:R,e))):R():i!==!0&&(d=setTimeout(c?P:R,c===void 0?e-N:e))}return S.cancel=b,S}function SL(e,t,r){var n=r||{},a=n.atBegin,i=a===void 0?!1:a;return c5e(e,t,{debounceMode:i!==!1})}class wx extends gs.EventEmitter{constructor(r,n,a=!0){super();kt(this,"connection");kt(this,"data",{});kt(this,"displaySubmitButton",!0);kt(this,"http");kt(this,"_loading",!1);kt(this,"rules",{});kt(this,"rulesDefined",!1);if(this.config=r,this.measureEvents=a,this.http=n.getInstance(),r.twofa&&r.twofa.length)this.configuredMeasureEvent("twofa_request",{id_site:r.id_site,...r.id_site?{}:{id_request:r.id_request}}),r.twofa.forEach(i=>{const o=i.name;this.data[o]=null,(i.type==="authentication_type"||i.type==="challenge")&&(this.data[o]=i.label),i.type==="connection"&&(this.connection=this.data[o]=i.label),(i.type==="externalAction"||i.type==="instructions")&&(this.displaySubmitButton=!1)}),this.connectSantanderUsbToken(),this.handleBbvaNetcashConnections();else throw new Error("TWOFA credentials are required.")}get loading(){return this._loading}set loading(r){this._loading=r,r&&this.emit("loading")}authenticate(r){return this.data={...r},this.configuredMeasureEvent("twofa_send",{id_site:this.config.id_site,...this.config.id_site?{}:{id_request:this.config.id_request}}),this.loading=!0,this.connection==="eai_otp_GO3"?this.sendBbvaNetcashUsbToken():this.http.post(this.config.address,{twofa:{...this.data}}).then(n=>(this.emit("login-success"),n)).catch(n=>(this.loading=!1,this.emit("twofa-api-error"),Promise.reject(n)))}defineRules(r){this.rulesDefined||(this.rulesDefined=!0,this.config.twofa.forEach(n=>{Object.defineProperty(this.rules,n.name,{value:this.setRules(n,r)})}))}getFields(){return this.config.twofa.filter(r=>r.type!=="challenge"&&r.type!=="connection")}statusChanged(){this.loading||(this.loading=!0)}configuredMeasureEvent(r,n){this.measureEvents&&Ln(r,n)}connectSantanderUsbToken(){this.config.id_site==="57f6dd8c78480602048b4567"&&this.config.twofa[0].type==="instructions"&&Ope(this.config.twofa[0].imgBase64File).then(r=>{this.authenticate(r)}).catch(r=>{this.emit("twofa-api-error"),this.emit("twofa-device-error",r)})}findTwofaByName(r){return this.config.twofa.find(n=>n.name===r)}findTwofaByType(r){return this.config.twofa.find(n=>n.type===r)}handleBbvaNetcashConnections(){this.connection==="eai_otp_GO3"&&this.setBbvaNetcashUsbFields(),this.findTwofaByType("authentication_type")&&this.sendBbvaNetcashBluetoothTimeChallenge(),this.config.id_site==="57239fae78480601038b4567"&&!this.connection&&this.findTwofaByType("challenge")&&this.sendBbvaNetcashBluetoothSecondToken()}sendBbvaNetcashBluetoothSecondToken(){const r=JSON.parse(this.findTwofaByType("challenge").label),n=this.findTwofaByName("token").label;this.displaySubmitButton=!1,this.config.twofa=[{label:n,name:"token",type:"instructions"}],Iz(r).then(a=>{this.authenticate({challenge:a,token:a})})}sendBbvaNetcashBluetoothTimeChallenge(){const r=this.findTwofaByType("authentication_type").label,n=this.findTwofaByName("token").label;this.displaySubmitButton=!1,this.config.twofa=[{label:n,name:"token",type:"instructions"}],kz(r).then(a=>{this.authenticate({authentication_type:"authentication_type",token:a})})}sendBbvaNetcashUsbToken(){return Tz(this.data.token,this.data.challenge).then(r=>this.http.post(this.config.address,{twofa:{...this.data,...r,bluetooth_device:"bluetooth_device",challenge:"challenge",connection:"connection"}}).then(n=>(this.emit("login-success"),n)).catch(n=>(this.loading=!1,this.emit("twofa-api-error"),Promise.reject(n)))).catch(r=>(this.loading=!1,this.emit("twofa-api-error"),Promise.reject(r.response?{...r,response:{...r.response,status:500}}:r)))}setBbvaNetcashUsbFields(){this.config.twofa=[this.findTwofaByType("text")]}setRules(r,n){const a=[];return a.push({required:!0,message:n("form_errors.required",{label:r.label})}),r.validation&&r.validation.forEach(i=>{switch(i.type){case"text":break;case"regex":a.push({pattern:i.value,message:i.error_message});break}}),a}}class h5e extends gs.EventEmitter{constructor(r,n,a,i,o=!1){super();kt(this,"loading",!1);kt(this,"response");kt(this,"_config");kt(this,"_error");kt(this,"_message");kt(this,"_status","searching");kt(this,"_twofa");kt(this,"http");kt(this,"isSocketOpen",!1);kt(this,"options",{});kt(this,"socket");kt(this,"socketOpened",!1);kt(this,"socketTimeoutAfterError");kt(this,"timer",null);this.syncService=n,this.httpService=a,this.socketTimeoutTime=i,this.isHeadless=o,this.http=this.httpService.getInstance(),this.getSitefromCredential({id_credential:r}).then(({site:l,credential:f})=>{this.config={...f,avatar:l.organizationSite.avatar,cover:l.organizationSite.cover,name:l.name,quickAnswer:this.syncService.quickAnswer,site:l},this.status="found",this.sync().then(()=>{this.status="loading"}).catch(c=>{this.error=c,this.status="error"})}).catch(l=>{this.error=l,this.status="not-found"})}get config(){return this._config}set config(r){this._config=r}get error(){return this._error}set error(r){this._error=r}get message(){return this._message}set message(r){this._message=r}get status(){return this._status}set status(r){const n=this._status!==r;this._status=r,n&&(this.emit(r),this.emit("status-updated",r))}get twofa(){return this._twofa}set twofa(r){this._twofa=r,r&&(this.status="twofa",r.on("loading",()=>{this._twofa===r&&this.status==="twofa"&&(this.status="twofa-loading")}),r.on("twofa-api-error",()=>{this.status="twofa-api-error",this.socketClose()}))}getAvatar(){return this.config.avatar}getCover(){return this.config.cover}getCredentialData(){return{...this.config}}getName(){return this.config.name}getSite(){return{...this.config.site}}setOption(r,n){this.options[r]=n}sync(){return this.configuredMeasureEvent("sync_credential",{id_credential:this.config.id_credential,id_site:this.config.id_site}),this.loading=!0,this.startTimer(),this.http.put(`/v1/credentials/${this.config.id_credential}/sync`,{...this.spreadOptions()}).then(r=>(this.response=r,this.setSocket(r.ws),r)).catch(r=>(this.loading=!1,this.configuredMeasureEvent("sync_credential_error",{code:r.response.status,code_origin:"endpoint",id_credential:this.config.id_credential,id_site:this.config.id_site}),this.clearTimer(),Promise.reject(r)))}clearTimer(){clearTimeout(this.timer)}configuredMeasureEvent(r,n){this.isHeadless||Ln(r,n)}getSitefromCredential(r){return this.http.get("/v1/credentials",{params:{...this.syncService.defaultParams,...r}}).then(n=>r.id_credential&&!n.length?Promise.reject({response:{status:"credential_not_found"}}):this.syncService.getOrganizationSites({id_site_organization:n[0].id_site_organization}).then(a=>{if(r.id_credential&&!a.length)return Promise.reject({response:{status:"credential_not_found"}});let i=a[0].sites.find(o=>o.id_site===n[0].id_site);if(i)i={...i};else return Promise.reject({response:{status:"credential_not_found"}});return i.organizationSite=a[0],{site:i,credential:n[0]}}).catch(a=>Promise.reject(a)))}reopenSocket(r){this.isSocketOpen=!1,this.socketTimeoutAfterError||this.setSocket(r.target.url)}reopenSocketAfterError(){if(!this.socketTimeoutAfterError){this.socketTimeoutAfterError=new Date().getTime()+12e4,this.setSocket(this.response.ws);const r=setInterval(()=>{this.isSocketOpen?clearInterval(r):new Date().getTime()<this.socketTimeoutAfterError?(this.socket.close(),this.setSocket(this.response.ws)):(clearInterval(r),this.socket.close(),this.loading=!1,this.status="socket-error")},2e3)}}setSocket(r){this.socket=new WebSocket(r),this.socket.onclose=n=>this.reopenSocket(n),this.socket.onerror=()=>this.socketError(),this.socket.onmessage=n=>this.socketMessage(n),this.socket.onopen=()=>this.socketOpen()}socketClose(r){this.clearTimer(),this.socket.onclose=()=>{this.twofa=null,r&&r(this)},this.socket.close()}socketError(){this.isSocketOpen=!1,this.socketOpened?this.reopenSocketAfterError():(this.loading=!1,this.status="socket-error")}socketMessage(r){const n=JSON.parse(r.data);if(this.clearTimer(),this.config.quickAnswer&&n.code===102){this.socketClose(()=>{this.loading=!1,this.twofa&&(this.twofa.loading=!1),this.status="socket-quick-answer"}),this.configuredMeasureEvent("sync_credential_success",{code:n.code,id_credential:this.config.id_credential,id_site:this.config.id_site});return}n.code===401&&this.configuredMeasureEvent("unauthorized",{id_site:this.config.id_site}),n.code===410&&(this.twofa=new wx({...n,id_site:this.config.id_site},this.httpService)),this.emit("socket-message",n),this.startTimer(),n.code===411&&this.configuredMeasureEvent("twofa_timeout",{id_site:this.config.id_site}),200<=n.code&&n.code<300||400<=n.code&&n.code<600&&n.code!==410?(this.loading=!1,this.twofa&&(this.twofa.loading=!1),n.code<300?(this.configuredMeasureEvent("sync_credential_success",{code:n.code,id_credential:this.config.id_credential,id_site:this.config.id_site}),this.message=n,this.status="success"):(this.configuredMeasureEvent("sync_credential_error",{code:n.code,code_origin:"socket",id_credential:this.config.id_credential,id_site:this.config.id_site}),this.error=n,this.status="error"),this.socketClose()):this.twofa&&n.code!==410&&this.twofa.statusChanged()}socketOpen(){this.isSocketOpen=this.socketOpened=!0,this.socketTimeoutAfterError=void 0}socketTimeout(){this.status="socket-timeout",this.socketClose()}spreadOptions(){return Object.keys(this.options).length?{options:{...this.options}}:{}}startTimer(){this.timer=setTimeout(()=>{this.socketTimeout()},this.socketTimeoutTime)}}$a.defaults.baseURL="https://sync.paybook.com";class ML extends gs.EventEmitter{constructor(r,n={}){super();kt(this,"baseURL");kt(this,"isStrict");kt(this,"jwk");this.token=r,n.baseURL&&(this.baseURL=$a.defaults.baseURL=n.baseURL),this.isStrict=n.isStrict||!1,$a.defaults.headers.common={"x-app-version":`sync-widget:${n.widgetVersion}:${yw.os.name}:${yw.os.version}`},$a.interceptors.request.use(a=>(a.headers.Authorization=`Bearer ${this.token}`,a),function(a){return Promise.reject(a)}),$a.interceptors.response.use(a=>a.data.response||a.data||a,a=>(a.response&&a.response.status===401&&this.emit("401"),Promise.reject(a)))}getInstance(){const r=$a.create({baseURL:this.baseURL});return r.interceptors.request.use(n=>(n.headers.Authorization=`Bearer ${this.token}`,n),function(n){return Promise.reject(n)}),r.interceptors.response.use(n=>n.data.response||n.data||n,n=>(n.response&&n.response.status===401&&this.emit("401"),Promise.reject(n))),this.isStrict&&r.interceptors.request.use(n=>n.data?$B(n.data,this.jwk).then(a=>(n.data={jwe:a},Promise.resolve(n))):Promise.resolve(n),n=>Promise.reject(n)),r}updateToken(r,n){this.token=r,n&&(this.jwk=n)}}class CL extends gs.EventEmitter{constructor(r,n,a){super();kt(this,"config");kt(this,"response");kt(this,"testMode",!1);kt(this,"http");kt(this,"_finalResponse",null);kt(this,"_lastSocketMessage");kt(this,"_loading",!1);kt(this,"_status","start");kt(this,"_twofa");kt(this,"isSocketOpen",!1);kt(this,"options",{});kt(this,"socket");kt(this,"socketOpened",!1);kt(this,"socketTimeoutAfterError");kt(this,"timer",null);this.httpService=n,this.userConfig=a,this.config=r,this.http=n.getInstance()}get finalResponse(){return this._finalResponse}set finalResponse(r){this._finalResponse=r,this.status="finish"}get lastSocketMessage(){return this._lastSocketMessage}set lastSocketMessage(r){this._lastSocketMessage=r}get loading(){return this._loading}set loading(r){this._loading=r,r&&(this.status="loading")}get status(){return this._status}set status(r){const n=this._status!==r;this._status=r,n&&(this.emit(r),this.emit("status-update",r))}get twofa(){return this._twofa}set twofa(r){this._twofa=r,r&&(this.status="twofa",r.on("loading",()=>{this._twofa===r&&this.status==="twofa"&&(this.status="twofa-loading")}))}setOption(r,n){this.options[r]=n}toggleTestMode(){this.testMode=!this.testMode}configuredMeasureEvent(r,n){this.userConfig.isHeadless||Ln(r,n)}clearTimer(){clearTimeout(this.timer)}reopenSocket(r){this.setSocket(r.target.url)}setRules(r){const n=[];return r.required&&n.push({required:!0,message:"required"}),r.validation&&r.validation.forEach(a=>{switch(a.type){case"text":break;case"regex":n.push({pattern:a.value,message:"regex"});break}}),n}setSocket(r){this.socket=new WebSocket(r),this.socket.onclose=n=>this.reopenSocket(n),this.socket.onerror=()=>this.socketError(),this.socket.onmessage=n=>this.socketMessage(n),this.socket.onopen=()=>this.socketOpen()}reopenSocketAfterError(){if(!this.socketTimeoutAfterError){this.socketTimeoutAfterError=new Date().getTime()+12e4,this.setSocket(this.response.ws);const r=setInterval(()=>{this.isSocketOpen?clearInterval(r):new Date().getTime()<this.socketTimeoutAfterError?(this.socket.close(),this.setSocket(this.response.ws)):(clearInterval(r),this.socket.close(),this.loading=!1,this.emit("socket-error"),this.finalResponse="error")},2e3)}}socketClose(r){this.clearTimer(),this.socket.onclose=n=>{this.twofa=null,this.emit("socket-close",n),r&&r(this)},this.socket.close()}socketError(){this.isSocketOpen=!1,this.socketOpened?this.reopenSocketAfterError():(this.loading=!1,this.emit("socket-error"),this.finalResponse="error")}socketMessage(r){const n=JSON.parse(r.data);if(this.lastSocketMessage=n,this.clearTimer(),this.config.quickAnswer&&n.code===102){this.socketClose(()=>{this.finalResponse="success",this.loading=!1,this.twofa&&(this.twofa.loading=!1),this.emit("socket-quick-answer")}),this.configuredMeasureEvent("sync_success",{code:n.code,id_site:this.config.id_site});return}n.code===401&&this.configuredMeasureEvent("unauthorized",{id_site:this.config.id_site}),n.code===410&&(this.twofa=new wx({...n,id_site:this.config.id_site},this.httpService,!this.userConfig.isHeadless),this.emit("twofa",this.twofa),this.twofa.on("twofa-api-error",()=>{this.socketClose()})),this.emit("socket-message",n),this.startTimer(),n.code===411&&this.configuredMeasureEvent("twofa_timeout",{id_site:this.config.id_site}),(200<=n.code&&n.code<300||400<=n.code&&n.code<600&&n.code!==410)&&(n.code<300?(this.finalResponse="success",this.configuredMeasureEvent("sync_success",{code:n.code,id_site:this.config.id_site})):(this.finalResponse="error",this.configuredMeasureEvent("sync_error",{code:n.code,code_origin:"socket",id_site:this.config.id_site})),this.loading=!1,this.twofa&&(this.twofa.loading=!1),this.socketClose()),!(400<=n.code&&n.code<600&&n.code!==410||200<=n.code&&n.code<300)&&this.twofa&&n.code!==410&&(this.twofa.loading=!0,this.status="twofa-loading")}socketOpen(){this.isSocketOpen=this.socketOpened=!0,this.socketTimeoutAfterError=void 0}socketTimeout(){this.socketClose(()=>{this.finalResponse="error",this.loading=!1,this.twofa&&(this.twofa.loading=!1),this.emit("socket-timeout")})}spreadOptions(){return Object.keys(this.options).length?{options:{...this.options}}:{}}startTimer(){this.timer=setTimeout(()=>{this.socketTimeout()},this.userConfig.socketTimeoutTime)}}class d5e extends CL{constructor(r,n,a,i){super(r,n,i);kt(this,"data",{});kt(this,"rules",{});if(this.defaultParams=a,this.userConfig=i,r.credentials&&r.credentials.length)i.isHeadless||r.credentials.forEach(o=>{const l=o.name;Object.defineProperty(this.rules,l,{enumerable:!0,value:this.setRules(o)})});else throw new Error("Site credentials are required.")}get version(){return 1}connect(r){this.data={...r};const n={...this.defaultParams,id_site:this.config.id_site,credentials:{...this.data},...this.spreadOptions()};return this.config.request?Promise.resolve(n.credentials):(this.configuredMeasureEvent("sync",{id_site:this.config.id_site}),this.loading=!0,this.userConfig.saveCredential||(n.save_credential=this.userConfig.saveCredential),this.testMode&&(n.test=1),this.startTimer(),this.http.post(this.config.endpoint,n).then(a=>(this.response=a,this.emit("login-success"),this.setSocket(a.ws),a)).catch(a=>(this.configuredMeasureEvent("sync_error",{code:a.response?a.response.status:a.toString(),code_origin:"endpoint",id_site:this.config.id_site}),this.loading=!1,this.status="start",this.clearTimer(),Promise.reject(a))))}getFields(){return this.config.credentials}}class p5e extends CL{constructor(r,n,a,i){super(r,n,i);kt(this,"input",[]);this.defaultParams=a,this.userConfig=i,r.input.forEach(o=>{const l={rules:{},data:{}};o.fields.forEach(f=>{const c=f.name;Object.defineProperty(l.rules,c,{enumerable:!0,value:this.setRules(f)}),l.data[c]=null}),this.input.push(l)})}get version(){return 3}connect(r,n){this.updateData(r,n);const a=r||0,i={...this.defaultParams,id_site:this.config.id_site,input_name:this.config.input[r].name,input:{...this.input[a].data},...this.spreadOptions()};return this.config.request?Promise.resolve(i.input):(this.configuredMeasureEvent("sync",{id_site:this.config.id_site}),this.loading=!0,this.userConfig.saveCredential||(i.save_credential=this.userConfig.saveCredential),this.testMode&&(i.test=1),this.startTimer(),this.http.post(this.config.endpoint,i).then(o=>(this.response=o,this.emit("login-success"),this.setSocket(o.ws),o)).catch(o=>(this.configuredMeasureEvent("sync_error",{code:o.response?o.response.status:o.toString(),code_origin:"endpoint",id_site:this.config.id_site}),this.loading=!1,this.status="start",this.clearTimer(),Promise.reject(o))))}getFields(r){return this.config.input[r].fields}getOptions(){return this.config.input}updateData(r,n){this.input[r].data={...n}}}class TL extends gs.EventEmitter{constructor(r,n){super();kt(this,"http");kt(this,"httpService");this.token=r,this.config=n,this.httpService=n.http?new ML(r,{...n.http,widgetVersion:n.widgetVersion}):new ML(r,{widgetVersion:n.widgetVersion}),this.http=this.httpService.getInstance(),this.httpService.on("401",this.debounce401())}get defaultParams(){return this.config.defaultParams}set defaultParams(r){this.config.defaultParams=r}get quickAnswer(){return this.config.quickAnswer}getAccounts(r){if(!this.token)throw new Error("Token is required. Try calling first getToken()");return this.http.get("/v1/accounts",{params:{...this.config.defaultParams,...r}})}getCountries(){if(!this.token)throw new Error("Token is required. Try calling first getToken()");return this.http.get("/v1/catalogues/countries",{params:{...this.config.defaultParams}})}getHttpService(){return this.httpService}getOrganizationSites(r){if(!this.token)throw new Error("Token is required. Try calling first getToken()");return this.http.get("/v1/catalogues/organizations/sites",{params:{...this.config.defaultParams,...r}})}getOrganizationTypes(){if(!this.token)throw new Error("Token is required. Try calling first getToken()");return this.http.get("/v1/catalogues/site_organization_types",{params:{...this.config.defaultParams}})}getSite(r){if(!this.token)throw new Error("Token is required. Try calling first getToken()");return this.http.get(`/v1/catalogues/widget/sites/${r}`,{params:{...this.config.defaultParams}})}siteConnection(r){switch(r.version){case 3:return new p5e({...r,quickAnswer:this.config.quickAnswer},this.httpService,this.config.defaultParams,{isHeadless:this.config.isHeadless,saveCredential:this.config.saveCredential,socketTimeoutTime:this.config.socketTimeout});default:return new d5e({...r,quickAnswer:this.config.quickAnswer},this.httpService,this.config.defaultParams,{isHeadless:this.config.isHeadless,saveCredential:this.config.saveCredential,socketTimeoutTime:this.config.socketTimeout})}}strictMode({token:r,strict:n}){return this.token=r,Npe(n).then(({strictAuthorizationKey:a,strictBodyKey:i})=>DB({token:r},a).then(o=>(this.httpService.updateToken(o),kpe().then(({authorization:l})=>{const f={authorization:btoa(JSON.stringify(l.toJSON(!0)))};return $B(f,i).then(c=>this.updateStrictSession(r,o,c).then(()=>DB({token:r},l).then(d=>this.updateToken(d).then(()=>(this.httpService.updateToken(this.token,i),{jws:d,jwe:i})))))}))))}syncCredential(r){return new h5e(r,this,this.httpService,this.config.socketTimeout,this.config.isHeadless)}updateApiBaseUrl(r){this.http.defaults.baseURL=r,$a.defaults.baseURL=r}updateEnvironment(r){switch(r){case"production":this.http.defaults.baseURL="https://sync.paybook.com",$a.defaults.baseURL="https://sync.paybook.com";break;case"development":this.http.defaults.baseURL="https://api.syncfy.paybook.dev",$a.defaults.baseURL="https://api.syncfy.paybook.dev";break;default:this.http.defaults.baseURL="https://sync.paybook.com",$a.defaults.baseURL="https://sync.paybook.com";break}}updateToken(r){return new Promise(n=>{this.token!==r&&(this.token=r,this.httpService.updateToken(this.token)),n({token:r})})}debounce401(){return SL(200,()=>{this.emit("sync_401")})}updateStrictSession(r,n,a){return $a.put(`/v1/sessions/jwt/${r}`,{type:"jwt","payload/jwe":a},{headers:{Authorization:`Bearer ${n}`}})}}class Ex{constructor(t){kt(this,"callback");kt(this,"messages");this.messages=t}getMessages(){return this.messages}subscribe(t){this.callback=t}updateMessages(t){this.messages={...this.messages,...t},this.callback&&this.callback()}}const mBe="",v5e=["aria-label"],m5e={key:1},g5e=["aria-label"],y5e={key:0},b5e=wi(rt({__name:"DataWidget",props:{client:{},enableTestMode:{type:Boolean},entrypoint:{},internal:{},locale:{},navigation:{},refreshTokenFunction:{type:Function},strict:{},token:{}},emits:["tokenRefreshed"],setup(e,{expose:t,emit:r}){const n=e,a=wt(Ea),{t:i,locale:o}=bo({useScope:"global"}),{mobile:l}=ix(),f=Oe([]),c=Oe(null),d=Oe(null),v=Oe(!1),m=Oe(null),y=Oe(null),b=Oe(""),S=Oe(""),T=Oe(!0),C=Oe(!1),I=Oe(null),B=Oe([]),N=Oe(null),R=Oe(!1),P=Oe(null),D=Oe(null),$=Oe(!1);let U="https://s.paybook.com",K=null,M=`${Nd()}${n.strict?"-strict":""}`,s=null,h,p=[],g=null,_=null,w=null;const A=be(()=>T.value?!1:P.value?n.entrypoint.site&&n.navigation.oneSiteFlow?P.value==="twofa":P.value==="finish"?n.navigation.enableBackNavigation:P.value==="twofa"?n.navigation.enableTwofaBackNavigation:n.navigation.enableBackNavigation&&P.value==="start":!!N.value),E=be(()=>f.value.filter(_e=>(_e.id_country==="51ad44db3b8e77631200047d"||_e.id_country==="51ad44793b8e77631200027a")&&n.internal.plaidSites||ae(_e.id_country).length).sort((_e,pe)=>_e.name.localeCompare(pe.name))),u=be(()=>j(c.value,N.value)),x=be(()=>ae(c.value)),k=be(()=>se(c.value,N.value,I.value)),O=be(()=>({short:S.value,long:b.value})),q=be(()=>{let _e=[];return B.value&&B.value.forEach(pe=>{_e=[..._e,...pe.sites.map(Te=>({...Te,avatar:pe.avatar,cover:pe.cover,organizationSite:pe}))]}),_e}),Y=be(()=>v.value||C.value?"":R.value?i("accounts_selection.title"):P.value?P.value==="start"?i("common.header.login"):"":N.value?c.value&&N.value?i("common.header.select"):"":i("common.header.link"));dt(()=>n.locale,(_e,pe)=>{_e!==pe&&["es","en"].includes(_e)&&(o.value=_e)}),dt(()=>n.internal,(_e,pe)=>{if(w.defaultParams=_e.defaultHttpParams||{},w.defaultParams.locale=n.locale,_e.apiEnv!==pe.apiEnv)switch(w.updateEnvironment(_e.apiEnv),_e.apiEnv){case"production":U="https://s.paybook.com";break;case"development":U="https://s.paybook.dev";break;default:U="https://s.paybook.com";break}_e.apiBaseUrl!==pe.apiBaseUrl&&_e.apiBaseUrl&&w.updateApiBaseUrl(_e.apiBaseUrl),_e.assetsBaseUrl!==pe.assetsBaseUrl&&_e.assetsBaseUrl&&(U=_e.assetsBaseUrl),F()}),dt(()=>n.navigation.displayPersonalSites,()=>{F()}),dt(()=>n.navigation.displayBusinessSites,()=>{F()}),dt(S,_e=>{s&&h.updateMessages({short:_e})}),dt(b,_e=>{s&&h.updateMessages({long:_e})}),dt($,()=>{!$.value&&!s&&P.value&&P.value!=="start"&&P.value!=="finish"?(h=new Ex({short:b.value}),s=an.info({duration:0,message:Ot(un,{assetsPath:U,buttonDisabledStyle:n.navigation.formButtonsDisabledStyle,disableFormAutocomplete:n.navigation.disableFormAutocomplete,duration:0,enableBackNavigation:n.navigation.enableTwofaBackNavigation,item:g,messagesUpdater:h,rootEmit:a,selectClass:n.navigation.selectClass,showLogo:n.navigation.displayLogoImages,showPasswordStyle:n.navigation.formShowPasswordStyle,t:i,type:"info",onBack:()=>{a("back"),ie(),g=P.value=null,H(_,!1),$.value=!0},onError:_e=>{ne(_e)},onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),position:n.navigation.toastPosition,showClose:!1})):$.value&&s&&($.value=!1,an.error({duration:0,position:n.navigation.toastPosition,message:Ot(un,{duration:0,initMessage:i("common.process_running"),initTitle:i("common.error"),showLogo:!1,t:i,type:"error",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}})}))}),ur(()=>{Xt(()=>{a("dom-updated")})}),xh(()=>{Xt(()=>{a("dom-updated")})});function W(){["es","en"].includes(n.locale)&&(o.value=n.locale),U=n.internal.apiEnv?n.internal.apiEnv==="production"?"https://s.paybook.com":"https://s.paybook.dev":"https://s.paybook.com",n.internal.assetsBaseUrl&&(U=n.internal.assetsBaseUrl),n.strict?(de(),T.value=!0,setTimeout(()=>{w.strictMode({token:n.token,strict:n.strict}).then(()=>{F()})},400)):(de(),F())}function X(){Ln("close"),$.value=!1,(P.value==="start"||P.value==="finish")&&(P.value=g=null),a("closed")}function ie(){s&&(s.close(),s=null)}function ne(_e){const pe=V(_e);!n.navigation.displayErrorsInToast&&$?(m.value=i(`${pe}long_description`),y.value=i(`${pe}short_description`)):an.error({position:n.navigation.toastPosition,message:Ot(un,{displayLongDescription:n.navigation.displayLongDescription,duration:0,initLongMessage:i(`${pe}long_description`),initMessage:i(`${pe}short_description`),initTitle:i("common.error"),showLogo:!1,t:i,type:"error",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:0}),te(_e,pe)}const ce=SL(200,function(){if(v.value=!1,n.entrypoint.credential)return G(n.entrypoint.credential,!0);if(n.entrypoint.site&&n.navigation.oneSiteFlow)w.getSite(n.entrypoint.site).then(_e=>{if(a("loaded"),_e&&_e.length){const pe=_e[0].site_organization;H({..._e[0],avatar:pe.avatar,cover:pe.avatar,organizationSite:pe})}else z({response:{status:"site_not_found"}})}).catch(z).finally(()=>{T.value=!1});else{const _e={};I.value=null,(n.navigation.displayPersonalSites||n.navigation.displayBusinessSites)&&!(n.navigation.displayPersonalSites&&n.navigation.displayBusinessSites)&&(n.navigation.displayPersonalSites?_e.is_personal=1:_e.is_business=1);const pe=[w.getCountries(),w.getOrganizationTypes(),w.getOrganizationSites(_e)];return Promise.all(pe).then(Te=>{f.value=Te[0],p=Te[1],n.internal.plaidSites&&p.unshift({id_site_organization_type:"__internal__.plaidSites",label:"webapp_add_banks",name:"plaid"}),B.value=Te[2]}).then(()=>Xt().then(()=>{if(a("loaded"),me(),n.entrypoint.site){const Te=q.value.find(it=>it.id_site===n.entrypoint.site);return Te?H(Te):Promise.reject({response:{status:"site_not_found"}})}})).catch(z).finally(()=>{T.value=!1})}});function te(_e,pe){a("api-error",_e.response?_e.response.status:500,{longMessage:i(`${pe}real.long_description`),message:i(`${pe}real.short_description`),noInternet:!_e.response})}function Z(_e){a("socket-error",{longMessage:i(`socket.${_e}.long_description`),type:_e,message:i(`socket.${_e}.short_description`)})}function j(_e,pe){return(n.navigation.displaySiteOrganizations.length||n.navigation.hideSiteOrganizations.length?B.value.filter(Te=>{if(n.navigation.displaySiteOrganizations.length)return!!n.navigation.displaySiteOrganizations.find(it=>it===Te.name||it===Te.id_site_organization);if(n.navigation.hideSiteOrganizations.length)return!n.navigation.hideSiteOrganizations.find(it=>it===Te.name||it===Te.id_site_organization)}):B.value).filter(Te=>_e===Te.id_country&&pe===Te.id_site_organization_type&&se(_e,pe,Te.id_site_organization).length)}function ae(_e){return(n.navigation.displaySiteOrganizationTypes.length||n.navigation.hideSiteOrganizationTypes.length?p.filter(pe=>{if(n.navigation.displaySiteOrganizationTypes.length)return!!n.navigation.displaySiteOrganizationTypes.find(Te=>Te===pe.name||Te===pe.id_site_organization_type);if(n.navigation.hideSiteOrganizationTypes.length)return!n.navigation.hideSiteOrganizationTypes.find(Te=>Te===pe.name||Te===pe.id_site_organization_type)}):p).filter(pe=>(_e==="51ad44db3b8e77631200047d"||_e==="51ad44793b8e77631200027a")&&n.internal.plaidSites&&pe.id_site_organization_type==="__internal__.plaidSites"?!0:j(_e,pe.id_site_organization_type).length)}function se(_e,pe,Te){return(n.navigation.displaySites.length||n.navigation.hideSites.length?q.value.filter(it=>{if(n.navigation.displaySites.length)return!!n.navigation.displaySites.find(Me=>Me===it.name||Me===it.id_site);if(n.navigation.hideSites.length)return!n.navigation.hideSites.find(Me=>Me===it.name||Me===it.id_site)}):q.value).filter(it=>_e===it.organizationSite.id_country&&pe===it.organizationSite.id_site_organization_type&&Te===it.organizationSite.id_site_organization)}function V(_e){return typeof _e=="string"?_e:_e.response&&_e.response.data&&_e.response.data.message==="Credential error, please consider updating credential password"?"api_errors.credential_error.":`api_errors.${_e.response?_e.response.status?_e.response.status:500:"no_internet"}.`}function L(){if(!P.value)I.value?Q():(a("back"),N.value=null);else if(P.value==="finish")re();else if(P.value==="twofa")Se();else return Ee()}function F(){T.value=!0,ce()}function z(_e){const pe=V(_e);v.value=i(`${pe}short_description`),!_e.response&&n.navigation.displayErrorsInToast&&an.error({position:n.navigation.toastPosition,message:Ot(un,{duration:0,initLongMessage:i(`${pe}long_description`),initMessage:i(`${pe}short_description`),showLogo:!1,t:i,type:"error",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:0}),a("loaded"),te(_e,pe)}function le(){Ln("open"),T.value||me(),$.value=!0,a("opened")}function Q(){a("back"),I.value=null}function re(){P.value=I.value=g=null}function ue(_e){a("organization-selected",_e),Ln("open_site_organization",{id_site_organization:_e.id_site_organization}),I.value=_e.id_site_organization,Xt(()=>{k.value.length===1&&H(k.value[0])})}function H(_e,pe=!0){let Te;pe&&(a("organization-site-selected",_e),Ln("open_site",{id_site:_e.id_site})),!g||!g.loading?(_=_e,Te=g=w.siteConnection(_e),P.value="start",y.value=null,m.value=null,g.on("login-success",()=>{$.value&&n.navigation.displayStatusInToast&&X()}),g.on("socket-close",ie),g.on("socket-error",()=>{n.navigation.displayErrorsInToast?an.error({position:n.navigation.toastPosition,message:Ot(un,{assetsPath:U,duration:0,hideForm:!0,initLongMessage:i("socket.error.long_description"),initMessage:i("socket.error.short_description"),item:g,showLogo:n.navigation.displayLogoImages,t:i,type:"error",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:0}):(m.value=i("socket.error.long_description"),y.value=i("socket.error.short_description")),Z("error")}),g.on("socket-message",it=>{const Me=`socket.message.${it.code?it.code:500}.`,Ne=i(`${Me}short_description`),mt=i(`${Me}long_description`);switch(!0){case(400<=it.code&&it.code<600&&it.code!==410):ie(),y.value=Ne,m.value=mt,a("error",g.response,{code:it.code,longMessage:mt,message:Ne}),$.value?n.navigation.returnToSiteFormOnUserError!==!1&&(n.navigation.returnToSiteFormOnUserError===!0&&[401,403,411].includes(it.code)||n.navigation.returnToSiteFormOnUserError!==!0&&n.navigation.returnToSiteFormOnUserError.includes(it.code))&&(P.value=g=null,H(_,!1),D.value={short:Ne,long:mt}):(an.error({position:n.navigation.toastPosition,message:Ot(un,{assetsPath:U,displayLongDescription:n.navigation.displayLongDescription,duration:0,hideForm:!0,initLongMessage:mt,initMessage:Ne,item:g,showLogo:n.navigation.displayLogoImages,t:i,type:"error",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:0}),re(),me());break;case(200<=it.code&&it.code<300):ie(),y.value=Ne,m.value=mt,a("success",g.response),$.value||(an.success({position:n.navigation.toastPosition,message:Ot(un,{assetsPath:U,displayLongDescription:n.navigation.displayLongDescription,duration:n.navigation.toastDuration,hideForm:!0,initLongMessage:mt,initMessage:Ne,item:g,showLogo:n.navigation.displayLogoImages,t:i,type:"success",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:n.navigation.toastDuration}),re(),me());break;default:S.value=Ne,b.value=mt}a("status",it)}),g.on("socket-quick-answer",()=>{y.value=i("socket.quick_answer.short_description"),m.value=i("socket.quick_answer.long_description"),a("success",g.response),ie(),$.value||(an.success({position:n.navigation.toastPosition,message:Ot(un,{assetsPath:U,displayLongDescription:n.navigation.displayLongDescription,duration:n.navigation.toastDuration,hideForm:!0,initLongMessage:i("socket.quick_answer.long_description"),initMessage:i("socket.quick_answer.short_description"),item:g,showLogo:n.navigation.displayLogoImages,t:i,type:"success",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:n.navigation.toastDuration}),re(),me())}),g.on("socket-timeout",()=>{y.value=i("socket.timeout.short_description"),m.value=i("socket.timeout.long_description"),a("error",g.response),$.value||(an.error({position:n.navigation.toastPosition,message:Ot(un,{assetsPath:U,displayLongDescription:n.navigation.displayLongDescription,duration:0,hideForm:!0,initLongMessage:i("socket.timeout.long_description"),initMessage:i("socket.timeout.short_description"),item:g,showLogo:n.navigation.displayLogoImages,t:i,type:"error",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:0}),re(),me()),Z("timeout")}),g.on("status-update",it=>{g===Te&&(P.value=it)}),g.on("twofa",()=>{S.value=i("twofa.waiting")})):an.error({position:n.navigation.toastPosition,message:Ot(un,{duration:0,initMessage:i("common.process_running"),initTitle:i("common.error"),showLogo:!1,t:i,type:"error",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:0})}function G(_e,pe=!1){if(Ln("open_credential",{id_credential:_e}),!K||!K.loading){let Te=new Ex({short:i("credential.search.title")}),it;n.navigation.displayCredentialInModal?(a("opened"),d.value={loaderType:"loading",loading:!0,messages:{short:i("credential.search.title"),long:i("credential.search.message")}}):it=an.info({showClose:!1,position:n.navigation.toastPosition,duration:0,message:Ot(un,{assetsPath:U,duration:0,initTitle:i("credential.search.title"),messagesUpdater:Te,showLogo:!1,t:i,type:"info",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}})}),K=w.syncCredential(_e),K.on("error",()=>{const{code:Me}=K.error,Ne=K.error.response?V(K.error):`socket.message.${Me||500}.`,mt=i(`${Ne}short_description`),Re=i(`${Ne}long_description`);n.navigation.displayCredentialInModal?d.value={...d.value,loaderType:"error",messages:{short:mt,long:Re}}:(K.error.response?it.close():ie(),an.error({position:n.navigation.toastPosition,message:Ot(un,{assetsPath:U,displayLongDescription:n.navigation.displayLongDescription,duration:0,hideForm:!0,initLongMessage:Re,initMessage:mt,item:K,showLogo:n.navigation.displayLogoImages,t:i,type:"error",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:0})),K.error.response?te(K.error,Ne):a("error",K.response,{code:Me,longMessage:Re,message:mt})}),K.on("found",()=>{pe&&a("loaded"),n.navigation.displayCredentialInModal?d.value={...d.value,avatar:n.navigation.displayLogoImages?`${U}${K.config.avatar}`:void 0,messages:{short:i("credential.found.title"),long:i("credential.found.message")}}:Te.updateMessages({short:i("credential.found.message")})}),K.on("loading",()=>{a("updated",K.response),n.navigation.displayCredentialInModal?d.value={...d.value,messages:{short:i("credential.loading.title"),long:i("credential.loading.message")}}:(it.close(),h=new Ex({}),s=an.info({showClose:!1,position:n.navigation.toastPosition,duration:0,message:Ot(un,{assetsPath:U,buttonDisabledStyle:n.navigation.formButtonsDisabledStyle,disableFormAutocomplete:n.navigation.disableFormAutocomplete,duration:0,item:K,messagesUpdater:h,rootEmit:a,selectClass:n.navigation.selectClass,showLogo:n.navigation.displayLogoImages,showPasswordStyle:n.navigation.formShowPasswordStyle,t:i,type:"info",onError:Me=>{ie(),ne(Me)},onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}})}))}),K.on("not-found",()=>{const Me=V(K.error);pe&&a("loaded"),n.navigation.displayCredentialInModal?d.value={...d.value,loaderType:"error",messages:{short:i(`${Me}short_description`),long:i(`${Me}long_description`)}}:(it.close(),an.error({position:n.navigation.toastPosition,message:Ot(un,{assetsPath:U,displayLongDescription:n.navigation.displayLongDescription,duration:0,hideForm:!0,initLongMessage:i(`${Me}long_description`),initMessage:i(`${Me}short_description`),t:i,type:"error",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:0})),te(K.error,Me)}),K.on("socket-error",()=>{n.navigation.displayCredentialInModal?d.value={...d.value,loaderType:"error",messages:{short:i("socket.error.short_description"),long:i("socket.error.long_description")}}:(ie(),an.error({position:n.navigation.toastPosition,message:Ot(un,{assetsPath:U,displayLongDescription:n.navigation.displayLongDescription,duration:0,initLongMessage:i("socket.error.long_description"),initMessage:i("socket.error.short_description"),item:K,hideForm:!0,showLogo:n.navigation.displayLogoImages,t:i,type:"error",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:0})),Z("error")}),K.on("socket-message",Me=>{const Ne=`socket.message.${Me.code?Me.code:500}.`,mt=i(`${Ne}short_description`),Re=i(`${Ne}long_description`);n.navigation.displayCredentialInModal?d.value={...d.value,messages:{short:mt,long:Re}}:h.updateMessages({long:Re,short:mt}),a("status",Me)}),K.on("socket-quick-answer",()=>{y.value=i("socket.quick_answer.short_description"),m.value=i("socket.quick_answer.long_description"),a("success",K.response),n.navigation.displayCredentialInModal?d.value={...d.value,loaderType:"success",messages:{short:i("socket.quick_answer.short_description"),long:i("socket.quick_answer.long_description")}}:(ie(),an.success({position:n.navigation.toastPosition,message:Ot(un,{assetsPath:U,displayLongDescription:n.navigation.displayLongDescription,duration:n.navigation.toastDuration,initLongMessage:i("socket.quick_answer.long_description"),initMessage:i("socket.quick_answer.short_description"),item:K,hideForm:!0,showLogo:n.navigation.displayLogoImages,t:i,type:"success",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:n.navigation.toastDuration}))}),K.on("socket-timeout",()=>{n.navigation.displayCredentialInModal?d.value={...d.value,loaderType:"error",messages:{short:i("socket.timeout.short_description"),long:i("socket.timeout.long_description")}}:(ie(),an.error({position:n.navigation.toastPosition,message:Ot(un,{assetsPath:U,displayLongDescription:n.navigation.displayLongDescription,duration:0,hideForm:!0,initLongMessage:i("socket.timeout.long_description"),initMessage:i("socket.timeout.short_description"),item:K,showLogo:n.navigation.displayLogoImages,t:i,type:"error",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:0})),a("error",K.response),Z("timeout")}),K.on("success",()=>{const{code:Me}=K.message,Ne=`socket.message.${Me||500}.`,mt=i(`${Ne}short_description`),Re=i(`${Ne}long_description`);n.navigation.displayCredentialInModal?d.value={...d.value,loaderType:"success",messages:{short:mt,long:Re}}:(ie(),an.success({position:n.navigation.toastPosition,message:Ot(un,{assetsPath:U,displayLongDescription:n.navigation.displayLongDescription,duration:n.navigation.toastDuration,hideForm:!0,initLongMessage:Re,initMessage:mt,item:K,showLogo:n.navigation.displayLogoImages,t:i,type:"success",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:n.navigation.toastDuration})),a("success",K.response)}),K.on("twofa",()=>{d.value={...d.value,loading:!1}}),K.on("twofa-api-error",()=>{n.navigation.displayCredentialInModal?d.value={...d.value,loaderType:"error",messages:{short:i("credential.api_error.title"),long:i("credential.api_error.message")}}:ie()}),K.on("twofa-loading",()=>{d.value={...d.value,loading:!0,loaderType:"loading",messages:{short:i("twofa.waiting"),long:i("twofa.waiting")}}})}else an.error({position:n.navigation.toastPosition,message:Ot(un,{duration:0,initMessage:i("common.process_running"),initTitle:i("common.error"),showLogo:!1,t:i,type:"error",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:0})}function me(){if(v.value)return;let _e;n.entrypoint.country&&(_e=E.value.find(pe=>pe.code===n.entrypoint.country||pe.id_country===n.entrypoint.country)),E.value.length?(c.value=_e?_e.id_country:E.value[0].id_country,Ln("open_country",{id_country:c.value}),oe(),C.value=!1):C.value=!0}function oe(){if(n.entrypoint.siteOrganizationType){const _e=x.value.find(pe=>pe.id_site_organization_type===n.entrypoint.siteOrganizationType);if(_e){const pe=_e.id_site_organization_type;Ln("open_site_organization_type",{id_site_organization_type:pe}),N.value=pe}}}function de(){w=new TL(n.token,{http:{baseURL:n.internal.apiBaseUrl?n.internal.apiBaseUrl:n.internal.apiEnv?n.internal.apiEnv==="production"?"https://sync.paybook.com":"https://api.syncfy.paybook.dev":"https://sync.paybook.com",isStrict:!!n.strict},defaultParams:{locale:n.locale,...n.internal.defaultHttpParams},isHeadless:!1,quickAnswer:n.navigation.quickAnswer,saveCredential:n.navigation.saveCredential,socketTimeout:n.navigation.socketTimeout,widgetVersion:M});let _e=null;w.on("sync_401",()=>{n.refreshTokenFunction&&!_e&&(_e=an.error({position:n.navigation.toastPosition,showClose:!1,message:Ot(DTe,{initTitle:i("common.unauthorized"),initMessage:i("common.unauthorized_message"),refreshTokenFunction:n.refreshTokenFunction,t:i,onClosed:()=>{_e=null},onCloseNotification:()=>{_e.close()},onRefreshToken:({token:pe,strict:Te,resolve:it})=>{r("tokenRefreshed",pe),Xe(pe,Te).then(()=>(_e.close(),an.success({position:n.navigation.toastPosition,message:Ot(un,{displayLongDescription:!1,duration:n.navigation.toastDuration,initMessage:i("common.session_refreshed_message"),initTitle:i("common.session_refreshed"),showLogo:!1,t:i,type:"success",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:n.navigation.toastDuration}),F(),it(null)))},onRefreshTokenError:()=>{an.error({position:n.navigation.toastPosition,message:Ot(un,{displayLongDescription:!1,duration:0,initMessage:i("common.session_error"),initTitle:i("common.error"),showLogo:!1,t:i,type:"error",onImagesLoaded:()=>{a("images-loaded")},onImagesLoading:()=>{a("images-loading")}}),duration:0})}}),duration:0})),a("401")})}function Xe(_e,pe){return pe?w.strictMode({token:_e,strict:pe}):w.updateToken(_e)}function Ee(){a("back"),Ln("close_site",{id_site:g.config.id_site}),P.value=g=null,D.value=null,k.value.length===1&&(I.value=null)}function Se(_e=!0){_e&&a("back"),P.value=g=null,H(_,!1)}return W(),t({close:X,open:le,setCredential:G,setToken:Xe}),(_e,pe)=>(he(),ke(Ct,null,[Et(CTe,{visible:$.value,"onUpdate:visible":pe[5]||(pe[5]=Te=>$.value=Te),mobile:J(l)},{default:lt(()=>[$.value?(he(),ke("div",{key:0,class:Ce([_e.$style.container,{[_e.$style["is-mobile"]]:J(l)}])},[ze("div",{class:Ce(_e.$style["widget-header"])},[A.value?(he(),ke("button",{key:0,"aria-label":J(i)("common.back"),class:Ce(_e.$style["widget-back-button"]),onClick:L},[Et(ol,{icon:"back"})],10,v5e)):(he(),ke("span",m5e)),ze("h1",null,st(P.value&&n.entrypoint.site?J(i)("common.update_title"):Y.value),1),ze("button",{class:Ce(_e.$style["widget-close-button"]),"aria-label":J(i)("common.close"),onClick:X},[Et(ol,{icon:"close"})],10,g5e)],2),ze("div",{class:Ce(_e.$style["widget-content"])},[d.value?(he(),ke("div",{key:0,class:Ce([[_e.$style["credential-content"]],{[_e.$style["credential-twofa"]]:!d.value.loading}])},[d.value.loading?(he(),nt(Nf,{key:0,avatar:d.value.avatar,grow:d.value.loaderType==="loading",message:d.value.messages.long,size:"large",title:d.value.messages.short,type:d.value.loaderType},null,8,["avatar","grow","message","title","type"])):J(K).twofa?(he(),nt(nx,{key:1,avatar:d.value.avatar,"button-disabled-style":n.navigation.formButtonsDisabledStyle,cover:`${J(U)}${J(K).config.cover}`,"disable-form-autocomplete":n.navigation.disableFormAutocomplete,"enable-back-navigation":!1,"in-notification":!1,"loader-message":O.value,"select-class":n.navigation.selectClass,"show-logo":n.navigation.displayLogoImages,"show-password-style":n.navigation.formShowPasswordStyle,"site-name":J(K).config.name,twofa:J(K).twofa},null,8,["avatar","button-disabled-style","cover","disable-form-autocomplete","loader-message","select-class","show-logo","show-password-style","site-name","twofa"])):Ye("",!0),d.value.loaderType!=="loading"?(he(),ke("button",{key:2,class:"pb-w-sync_primary-button",onClick:X},st(J(i)("common.finish")),1)):Ye("",!0)],2)):(he(),ke(Ct,{key:1},[T.value?(he(),nt(Nf,{key:0})):Ye("",!0),!T.value&&!v.value&&!C.value?(he(),ke(Ct,{key:1},[P.value?(he(),ke(Ct,{key:1},[P.value==="start"||P.value==="loading"?(he(),nt(ETe,{key:0,"assets-path":J(U),"button-disabled-style":n.navigation.formButtonsDisabledStyle,"disable-form-autocomplete":n.navigation.disableFormAutocomplete,"error-message":D.value,"loader-message":O.value,"select-class":n.navigation.selectClass,"show-logo":n.navigation.displayLogoImages,"show-password-style":n.navigation.formShowPasswordStyle,site:J(g),"test-mode":_e.enableTestMode,onBack:Ee,onError:ne,onSuccess:pe[2]||(pe[2]=()=>{S.value=J(i)("site.login.success")}),onValid:pe[3]||(pe[3]=()=>{S.value=J(i)("site.login.authenticating"),D.value=null})},null,8,["assets-path","button-disabled-style","disable-form-autocomplete","error-message","loader-message","select-class","show-logo","show-password-style","site","test-mode"])):Ye("",!0),P.value==="twofa"||P.value==="twofa-loading"?(he(),nt(nx,{key:1,avatar:`${J(U)}${J(g).config.avatar}`,"button-disabled-style":n.navigation.formButtonsDisabledStyle,cover:`${J(U)}${J(g).config.cover}`,"disable-form-autocomplete":n.navigation.disableFormAutocomplete,"enable-back-navigation":n.navigation.enableTwofaBackNavigation,"in-notification":!1,"loader-message":O.value,"select-class":n.navigation.selectClass,"show-logo":n.navigation.displayLogoImages,"show-password-style":n.navigation.formShowPasswordStyle,"site-name":J(g).config.name,twofa:J(g).twofa,onBack:Se,onError:ne},null,8,["avatar","button-disabled-style","cover","disable-form-autocomplete","enable-back-navigation","loader-message","select-class","show-logo","show-password-style","site-name","twofa"])):Ye("",!0),P.value==="finish"?(he(),ke(Ct,{key:2},[R.value?(he(),nt(rTe,{key:0,avatar:n.navigation.displayLogoImages?`${J(U)}${J(g).config.avatar}`:void 0,"button-disabled-style":n.navigation.formButtonsDisabledStyle,client:n.client,credential:J(g).response.id_credential,"disable-form-autocomplete":n.navigation.disableFormAutocomplete,"select-class":n.navigation.selectClass,sync:J(w),onDone:X},null,8,["avatar","button-disabled-style","client","credential","disable-form-autocomplete","select-class","sync"])):(he(),nt(nTe,{key:1,avatar:`${J(U)}${J(g).config.avatar}`,"display-accounts-selection":n.navigation.displayAccountsSelection,"long-message":m.value,message:y.value,"one-site-flow":n.navigation.oneSiteFlow&&!!n.entrypoint.site,"show-logo":n.navigation.displayLogoImages,type:J(g).finalResponse,onAddOther:re,onSelectAccounts:pe[4]||(pe[4]=()=>{R.value=!0})},null,8,["avatar","display-accounts-selection","long-message","message","one-site-flow","show-logo","type"]))],64)):Ye("",!0)],64)):(he(),ke("div",y5e,[N.value?Ye("",!0):(he(),nt(fTe,{key:0,"country-id":c.value,"onUpdate:countryId":pe[0]||(pe[0]=Te=>c.value=Te),"organization-type-id":N.value,"onUpdate:organizationTypeId":pe[1]||(pe[1]=Te=>N.value=Te),"filtered-countries":E.value,"filtered-organization-types":x.value,"select-class":n.navigation.selectClass,"show-countries":!n.navigation.hideSelectCountry},null,8,["country-id","organization-type-id","filtered-countries","filtered-organization-types","select-class","show-countries"])),c.value&&N.value&&!I.value?(he(),nt(dTe,{key:1,"assets-path":J(U),items:u.value,"show-logo":n.navigation.displayLogoImages,"show-plaid-sites-button":n.internal.plaidSites&&N.value==="__internal__.plaidSites",onSelect:ue},null,8,["assets-path","items","show-logo","show-plaid-sites-button"])):Ye("",!0),c.value&&N.value&&I.value?(he(),nt(MTe,{key:2,"assets-path":J(U),items:k.value,organization:u.value.find(Te=>Te.id_site_organization===I.value),"show-logo":n.navigation.displayLogoImages,onSelect:H},null,8,["assets-path","items","organization","show-logo"])):Ye("",!0)]))],64)):Ye("",!0),v.value?(he(),ke("div",{key:2,class:Ce(_e.$style["widget-data-error"])},[ze("p",null,st(v.value.length?v.value:J(i)("common.data_error")),1),ze("button",{class:"pb-w-sync_primary-button",onClick:F},st(J(i)("common.retry")),1)],2)):Ye("",!0),C.value?(he(),ke("div",{key:3,class:Ce(_e.$style["widget-data-error"])},[ze("p",null,st(J(i)("common.no_filtered_data")),1),ze("button",{class:"pb-w-sync_primary-button",onClick:X},st(J(i)("common.close")),1)],2)):Ye("",!0)],64)),!T.value&&!v.value&&!C.value||d.value?(he(),ke("div",{key:2,class:Ce(_e.$style["security-banner"])},[ze("p",null,st(J(i)("common.security_banner_title")),1),ze("p",null,st(J(i)("common.security_banner_content")),1)],2)):Ye("",!0)],2)],2)):Ye("",!0)]),_:1},8,["visible","mobile"]),ze("div",{class:Ce(_e.$style["widget-version"])},st(J(M)),3)],64))}}),[["__cssModules",{$style:{container:"pb-w-sync_container","credential-content":"pb-w-sync_credential-content","credential-twofa":"pb-w-sync_credential-twofa","is-mobile":"pb-w-sync_is-mobile","security-banner":"pb-w-sync_security-banner","widget-back-button":"pb-w-sync_widget-back-button","widget-close-button":"pb-w-sync_widget-close-button","widget-content":"pb-w-sync_widget-content","widget-data-error":"pb-w-sync_widget-data-error","widget-header":"pb-w-sync_widget-header","widget-version":"pb-w-sync_widget-version"}}]]),_5e=rt({__name:"App",props:{config:{default:()=>({})},enableTestMode:{type:Boolean,default:!1},refreshTokenFunction:{type:Function,default:void 0},strict:{default:void 0},token:{}},setup(e,{expose:t}){const r=e,n=Oe(null),{t:a}=bo();sn(mw,a);const i={client:{},locale:"en",entrypoint:{country:"MX"},navigation:{disableFormAutocomplete:!1,displayAccountsSelection:!1,displayBusinessSites:!0,displayCredentialInModal:!1,displayErrorsInToast:!0,displayLogoImages:!0,displayLongDescription:!1,displayPersonalSites:!0,displaySiteOrganizations:[],displaySiteOrganizationTypes:[],displaySites:[],displayStatusInToast:!1,enableBackNavigation:!0,enableTwofaBackNavigation:!1,formButtonsDisabledStyle:!1,formShowPasswordStyle:"icon",hideSelectCountry:!1,hideSiteOrganizations:[],hideSiteOrganizationTypes:[],hideSites:[],oneSiteFlow:!1,quickAnswer:!1,returnToSiteFormOnUserError:!1,saveCredential:!0,selectClass:"",socketTimeout:24e4,toastDuration:5e3,toastPosition:"top-right"},__internal__:{apiBaseUrl:null,apiEnv:null,assetsBaseUrl:null,plaidSites:!1,defaultHttpParams:{}}},o=vn({client:{...i.client,...b(r.config.client)},enableTestMode:r.enableTestMode,entrypoint:{...i.entrypoint,...b(r.config.entrypoint)},internal:{...i.__internal__,...b(r.config.__internal__)},locale:r.config.locale||i.locale,navigation:{...i.navigation,...b(r.config.navigation)},refreshTokenFunction:r.refreshTokenFunction,strict:r.strict,token:r.token,onTokenRefreshed:S=>{o.token=S}});function l(){n.value.close()}function f(){Xt(()=>{n.value.open()})}function c(S={}){try{zg.validateSync(S)}catch(T){if(T.name==="ValidationError")throw new Error(`ValidationError: ${T.message}`)}o.client={...i.client,...b(S.client)},o.entrypoint={...i.entrypoint,...b(S.entrypoint)},o.internal={...i.__internal__,...b(S.__internal__)},o.locale=S.locale||i.locale,o.navigation={...i.navigation,...b(S.navigation)}}function d(S){n.value.setCredential&&n.value.setCredential(S)}function v(S){o.entrypoint={...o.entrypoint,site:S},f()}function m(S,T){return n.value.setToken(S,T)}function y(S={}){try{zg.validateSync(S)}catch(T){if(T.name==="ValidationError")throw new Error(`ValidationError: ${T.message}`)}o.client={...o.client,...b(S.client)},o.entrypoint={...o.entrypoint,...b(S.entrypoint)},o.internal={...o.internal,...b(S.__internal__)},o.locale=S.locale||o.locale,o.navigation={...o.navigation,...b(S.navigation)}}function b(S={}){const T={...S};return Object.keys(T).forEach(C=>{T[C]===void 0&&delete T[C]}),T}return t({close:l,open:f,setConfig:c,setEntrypointCredential:d,setEntrypointSite:v,setToken:m,upsertConfig:y}),(S,T)=>(he(),nt(J(D8e),{locale:o.locale==="es"?J(RCe):J(OCe)},{default:lt(()=>[Et(b5e,sa(o,{ref_key:"widgetComponent",ref:n}),null,16)]),_:1},8,["locale"]))}});function sl(e){return e||(e={}),{locale:e.locale?e.locale:"en",quickAnswer:!!e.quickAnswer,socketTimeout:e.socketTimeout||24e4}}function ll(e,t){return new Promise(n=>{const a=new TL(e.token,{http:{baseURL:"https://sync.paybook.com",isStrict:!!e.strict},defaultParams:{locale:t.locale},isHeadless:!0,quickAnswer:t.quickAnswer,socketTimeout:t.socketTimeout,widgetVersion:`${Nd()}-headless`});e.strict?a.strictMode({token:e.token,strict:e.strict}).then(()=>{n(a)}):n(a)})}function w5e(e,t,r){return new Promise((a,i)=>{const o=sl(r);ll(e,o).then(l=>{l.getAccounts({id_credential:t}).then(f=>{a(f)}).catch(f=>{i(f)})})})}function E5e(e,t){return new Promise((n,a)=>{const i=sl(t);ll(e,i).then(o=>{o.getCountries().then(l=>{n(l)}).catch(l=>{a(l)})})})}function x5e(e,t={},r){return new Promise((a,i)=>{const o=sl(r);ll(e,o).then(l=>{l.getOrganizationSites(t).then(f=>{a(f)}).catch(f=>{i(f)})})})}function S5e(e,t){return new Promise((n,a)=>{const i=sl(t);ll(e,i).then(o=>{o.getOrganizationTypes().then(l=>{n(l)}).catch(l=>{a(l)})})})}function M5e(e,t,r){return new Promise((a,i)=>{const o=sl(r);ll(e,o).then(l=>{l.getSite(t).then(f=>{a(f[0])}).catch(f=>{i(f)})})})}function C5e(e,t,r){return new Promise(a=>{const i=sl(r);ll(e,i).then(o=>{a(o.siteConnection(t))})})}function T5e(e,t,r){return new Promise(a=>{const i=sl(r);ll(e,i).then(o=>{a(o.syncCredential(t))})})}function A5e(e,t,r,n){return new Promise(i=>{const o=sl(n);ll(e,o).then(l=>{i(new wx({...t,id_site:r},l.getHttpService(),!1))})})}const I5e={getAccounts:w5e,getCountries:E5e,getOrganizationSites:x5e,getOrganizationTypes:S5e,getSite:M5e,siteConnection:C5e,syncCredential:T5e,twofa:A5e},wBe="";$U();class xx{constructor(t){const r=new Lpe({accessToken:"2d928ea9aa674c6ea84dbf6f3901a403",captureUncaught:!1,captureUnhandledRejections:!1,enabled:!0,environment:"production",payload:{code_version:Nd()}});let n;if(typeof t=="string")n={token:t};else if(typeof t=="object")n=t;else throw new Error("Invalid params type. Params must be either string or object.");try{Cz.validateSync(n)}catch(d){if(d.name==="ValidationError")throw new Error(`ValidationError: ${d.message}`)}Ln("instantiation");const a=aN(_5e,{config:n.config,enableTestMode:n.enableTestMode,refreshTokenFunction:n.refreshTokenFunction,strict:n.strict,token:n.token}),i=zye({availableLocales:["en","es"],fallbackLocale:"en",legacy:!1,locale:"en",messages:{en:pa,es:Ei}});a.use(i),a.use(s1e),a.config.errorHandler=d=>{throw r.error(d),d};const o=[];function l(d,v){o.push({callback:v,e:d})}function f(d,...v){o.forEach(({callback:m,e:y})=>{d===y&&m(...v)})}a.provide(Ea,f);const c=a.mount(n.element||"#widget");return{on:l,close:c.close,open:c.open,setConfig:c.setConfig,setEntrypointCredential:c.setEntrypointCredential,setEntrypointSite:c.setEntrypointSite,setToken:c.setToken,upsertConfig:c.upsertConfig}}static getVersion(){return Nd()}}return kt(xx,"headless",I5e),window.SyncfyWidget=xx,xx});